From: Alexandre Oliva Date: Fri, 3 Dec 1999 03:21:29 +0000 (+0000) Subject: * ltconfig.in (ac_compile): Use $ac_ext instead of .c. X-Git-Tag: multi-language-fork X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b1b95eabf46e7b994adecb5667f73a2b9fb9d8a;p=thirdparty%2Flibtool.git * 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 --- diff --git a/ChangeLog b/ChangeLog index 6ebc0d62d..970f67de0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 1999-12-03 Alexandre Oliva + * 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 + * ltconfig.in (linux-gnu*): Disable hardcode_into_libs until it works together with fast_install. diff --git a/ltconfig.in b/ltconfig.in index b8c0805de..85c2f051d 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -181,8 +181,8 @@ PROGRAM=ltconfig 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." @@ -2248,7 +2248,7 @@ else #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