Re: Problems compiling glib.



Johan Groth <jgroth@xpress.se> writes:

> Thank you,
> hacking in the autogen.sh file solved it (although I still can't figure
> out why autogen.sh does not pass --prefix=[installprefix] to aclocal as
> -I installprefix). 

This won't work:

$ which aclocal
/home/baulig/INSTALL/bin/aclocal
$ aclocal --print-ac-dir
/home/baulig/INSTALL/share/aclocal

Now try to install with --prefix=/home/baulig/INSTALL and you'll get this:

$ aclocal -I ~baulig/INSTALL/share/aclocal -I macros
aclocal: /home/baulig/INSTALL/share/aclocal/ccstdc.m4: 23: duplicated macro `AM_PROG_CC_STDC'
aclocal: /home/baulig/INSTALL/share/aclocal/cond.m4: 3: duplicated macro `AM_CONDITIONAL'
[... and so on ...]

The problem is that

$ aclocal -I `aclocal --print-ac-dir`

always fails.

============================================================================

But if you have a closer look at the autogen.sh you'll find this:

        (cd $i; \
        aclocalinclude="$ACLOCAL_FLAGS"; \
        for k in $macrodirs; do \
            if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
            else echo "**Warning**: No such directory \`$k'.  Ignored."; fi; 
\
        done; \
        libtoolize --copy --force; \
        aclocal $aclocalinclude; \

So just do a

$ export ACLOCAL_FLAGS='-I /path/to/where/you/install/GNOME'

and it should work.

Martin

-- 
----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   
   baulig@castor.uni-trier.de, http://www.home-of-linux.com/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger baulig@math38 or fetch mykey.asc from the url above
-----------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]