bug-libtool
[Top][All Lists]
Advanced

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

LIBTOOL_DEPS wrong when AC_CANONICAL_BUILD not called before initializin


From: Jakub Bogusz
Subject: LIBTOOL_DEPS wrong when AC_CANONICAL_BUILD not called before initializing libtool
Date: Fri, 14 Mar 2008 20:18:55 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

On Fri, Mar 14, 2008 at 07:53:13PM +0100, Jakub Bogusz wrote:
> Reduced test:
> 
> #v+
> AC_INIT([libtool-test], [0])
> 
> if test "$with_canonical" != ""; then
>         AC_CANONICAL_HOST
> fi
> 
> AC_LIBTOOL_WIN32_DLL
> AC_PROG_LIBTOOL
> 
> echo "NM: $NM"
> echo "OBJDUMP: $OBJDUMP"
> #v-

And I've just found another problem related to AC_CANONICAL_BUILD placed
to late (or ltmain= substitution too early). For this one cross compiler
is not needed. Just add one more line at the end of the above configure.ac:

echo "LIBTOOL_DEPS: $LIBTOOL_DEPS"

then regenerate configure.

`./configure` output ends with:
LIBTOOL_DEPS: /ltmain.sh

`./configure --with-canonical` output ends with:
LIBTOOL_DEPS: ./ltmain.sh

Note the missing "." in the first case. It's because of empty ac_aux_dir
(used for ltmain substitution in configure) which is set by one of
AC_CONFIG_AUX_DIR* macros, with default one called from
AC_CANONICAL_BUILD.


-- 
Jakub Bogusz    http://qboosh.pl/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]