Somehow during execution of configure, ac_aux_dir becomes unset (!) To repeat, create this highly complex configure.ac:
AC_INIT([autoprob],[1.0]) AC_PROG_LIBTOOL AC_OUTPUT automake -a cp /usr/local/share/automake/config.{sub,guess} . libtoolize aclocal autoconf Then apply something like the attached patch to configure to see what is going on (some hunks will probably fail, as configure is so system dependent! but you see all I'm trying to do is track the value of ltmain). If I patch _LT_PROG_LTMAIN directly, gm4 runs out of memory(!) Then ./configure shows: checking build system type... i386-unknown-netbsdelf1.6ZF ... checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes 1ac_aux_dir: . 1srcdir: . 1ltmain1: ./ltmain.sh 1ltmain2: ./ltmain.sh configure: creating ./config.status config.status: executing libtool commands 2ac_aux_dir: 2srcdir: . 2ltmain1: 2ltmain2: /ltmain.sh sed: /ltmain.sh: No such file or directory mv: rename libtoolT to libtool: No such file or directory cp: libtoolT: No such file or directory chmod: libtool: No such file or directory 3ac_aux_dir: 3srcdir: . 3ltmain1: /ltmain.sh 3ltmain2: /ltmain.sh So at first ac_aux_dir is correctly set to '.' but then somehow becomes unset, but I don't see how. Adding AC_CONFIG_AUX_DIR() doesn't change the outcome - ac_aux_dir still ends up unset. How 2ltmain1 and 3ltmain1 come to be different is also strange.. This is with autoconf (GNU Autoconf) 2.59a automake (GNU automake) 1.7c and ltmain.sh (GNU libtool) 1.5a (1.1328 2003/11/14 15:14:11) NetBSD /bin/sh and ltmain.sh (GNU libtool) 1.5a (1.1334 2003/11/17 17:20:06) GNU bash, version 2.03.0(1)-release (i386-pc-netbsd1.4F) and All 108 tests passed Thoughts? Cheers, Patrick
--- configure 2003-11-19 07:45:01.000000000 +0000 +++ myconfigure 2003-11-19 07:44:53.000000000 +0000 @@ -16088,11 +16088,15 @@ ac_config_commands="$ac_config_commands libtool-tags" +echo "1ac_aux_dir: $ac_aux_dir" +echo "1srcdir: $srcdir" case $ac_aux_dir in $srcdir) ltmain=./ltmain.sh ;; $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; esac +echo "1ltmain1: $ltmain" test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" +echo "1ltmain2: $ltmain" # This can be used to rebuild libtool when needed @@ -17826,11 +17830,15 @@ ;; esac +echo "2ac_aux_dir: $ac_aux_dir" +echo "2srcdir: $srcdir" case $ac_aux_dir in $srcdir) ltmain=./ltmain.sh ;; $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; esac +echo "2ltmain1: $ltmain" test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" +echo "2ltmain2: $ltmain" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in @@ -19096,11 +19104,15 @@ ;; libtool-tags ) +echo "3ac_aux_dir: $ac_aux_dir" +echo "3srcdir: $srcdir" case $ac_aux_dir in $srcdir) ltmain=./ltmain.sh ;; $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; esac +echo "3ltmain1: $ltmain" test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" +echo "3ltmain2: $ltmain" if test -f "$ltmain"; then if test ! -f "${ofile}"; then
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool