From: Gary V. Vaughan Date: Wed, 9 Jun 1999 13:11:13 +0000 (+0000) Subject: * ltconfig.in (exeext): autoconf's AC_EXEEXT uses "no" to indicate X-Git-Tag: release-1-3b~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=545785bd22226d21d135a71b21a2ce3b5ba9d161;p=thirdparty%2Flibtool.git * ltconfig.in (exeext): autoconf's AC_EXEEXT uses "no" to indicate no extension, and we must do the same in order to share the cache value. Also we must ignore conftest.err which HPsUX (at least) fills with gratuitous warnings. (objext): for consistency, do the same as above. Reported by Pavel Roskin --- diff --git a/ChangeLog b/ChangeLog index f59eccca2..d57d59af8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1999-06-09 Gary V. Vaughan + + * ltconfig.in (exeext): autoconf's AC_EXEEXT uses "no" to indicate + no extension, and we must do the same in order to share the cache + value. Also we must ignore conftest.err which HPsUX (at least) + fills with gratuitous warnings. + (objext): for consistency, do the same as above. + Reported by Pavel Roskin + 1999-06-09 Pavel Roskin * ltconfig.in (exeext): Use quotes in the test, to prevent a diff --git a/ltconfig.in b/ltconfig.in index 50802f67d..1f3239f96 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -836,7 +836,7 @@ echo "$progname:@LINENO@: checking for object suffix" 1>&5 if test "X${ac_cv_objext+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_cv_objext="none" + ac_cv_objext="no" $rm conftest* echo 'int i = 1;' > conftest.c if { (eval echo $progname:@LINENO@: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then @@ -845,7 +845,7 @@ else for ac_file in conftest.*; do case $ac_file in - *.c) ;; + *.c | *.err) ;; *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; esac done @@ -856,7 +856,9 @@ else fi $rm conftest* fi -if test "X$ac_cv_objext" != Xnone; then +if test "X$ac_cv_objext" = Xno; then + objext="" +else objext="$ac_cv_objext" fi echo "$ac_t$ac_cv_objext" 1>&6 @@ -866,7 +868,7 @@ echo "$progname:@LINENO@: checking for executable suffix" 1>&5 if test "X${ac_cv_exeext+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_cv_exeext="none" + ac_cv_exeext="no" $rm conftest* echo 'main () { return 0; }' > conftest.c if { (eval echo $progname:@LINENO@: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then @@ -875,7 +877,7 @@ else for ac_file in conftest.*; do case $ac_file in - *.c | *.$objext ) ;; + *.c | *.err | *.$objext ) ;; *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;; esac done @@ -886,7 +888,9 @@ else fi $rm conftest* fi -if test "X$ac_cv_exeext" != Xnone; then +if test "X$ac_cv_exeext" = Xno; then + exeext="" +else exeext="$ac_cv_exeext" fi echo "$ac_t$ac_cv_exeext" 1>&6