]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (ac_compile): Use $ac_ext instead of .c. multi-language-fork
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Fri, 3 Dec 1999 03:21:29 +0000 (03:21 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 3 Dec 1999 03:21:29 +0000 (03:21 +0000)
(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>

ChangeLog
ltconfig.in

index 6ebc0d62dea702eb2744535886750495c8f1c1bd..970f67de0c2f15184d6630299f41d0cdbf51e299 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
 
index b8c0805deec7e3ee3551bdf7fa8e07dcf7941f11..85c2f051dfe6e6c99d82a950a9a7f71d63ea5134 100755 (executable)
@@ -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