(ac_link): Likewise.
(dlfcn.h, ac_try): Do not add filename, it is already in
ac_compile.
Reported by Stephane Conversy <Stephane.Conversy@lri.fr>
* ltconfig.in (linux-gnu*): Disable hardcode_into_libs until it
works together with fast_install.
* libtool.m4: Use host when --target is not specified.
* configure.in: AC_SUBST variables that are used by ltconfig to
build libtool.
* ltconfig.in (irix6*): Do not override deplibs_check_method
here.
* libtool.m4: Do not AC_SUBST anything other than LIBTOOL.
+1999-12-03 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * ltconfig.in (ac_compile): Use $ac_ext instead of .c.
+ (ac_link): Likewise.
+ (dlfcn.h, ac_try): Do not add filename, it is already in
+ ac_compile.
+ Reported by Stephane Conversy <Stephane.Conversy@lri.fr>
+
+ * ltconfig.in (linux-gnu*): Disable hardcode_into_libs until it
+ works together with fast_install.
+
+ * libtool.m4: Use host when --target is not specified.
+
+ * configure.in: AC_SUBST variables that are used by ltconfig to
+ build libtool.
+
+ * ltconfig.in (irix6*): Do not override deplibs_check_method
+ here.
+
+ * libtool.m4: Do not AC_SUBST anything other than LIBTOOL.
+
1999-11-29 Gary V. Vaughan <gary@oranda.demon.co.uk>
* ltconfig.in: Be friendlier to C++ compilers when testing
AC_PROG_CC
AC_PROG_RANLIB
AM_PROG_LD
+AC_SUBST(LD)
AM_PROG_NM
+AC_SUBST(NM)
AC_PROG_LN_S
dnl For the `lineno' script (which puts line numbers into `ltconfig').
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_SETUP
AC_SUBST(DLLTOOL)
+AC_SUBST(FILE)
AC_SUBST(OBJDUMP)
AC_SUBST(AS)
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
-$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $target \
+$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
+case "$target" in
+NONE) lt_target="$host" ;;
+*) lt_target="$target" ;;
+esac
+
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
-case "$target" in
+case "$lt_target" in
*-*-irix6*)
# Find out which ABI we are using.
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-AC_SUBST(LD)
AC_PROG_LD_GNU
])
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
-AC_SUBST(NM)
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
-case "$target" in
+case "$lt_target" in
*-*-beos* | *-*-cygwin*)
# These system don't have libm
;;
PACKAGE=@PACKAGE@
VERSION=@VERSION@
TIMESTAMP="@TIMESTAMP@"
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
rm="rm -f"
help="Try \`$progname --help' for more information."
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
*) libsuff= shlibsuff= libmagic=never-match;;
esac
- # this will be overridden with pass_all, but let us keep it just in case
- deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
;;
esac
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
file_magic_cmd=/usr/bin/file
file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ # hardcode_into_libs=yes
if test -f /lib/ld.so.1; then
dynamic_linker='GNU ld.so'
#include <$ac_hdr>
int fnord = 0;
EOF
-ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_compile >/dev/null 2>conftest.out"
{ (eval echo $progname:@LINENO@: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then