]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix test suite failures reported by Pierre in
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2006 07:10:24 +0000 (07:10 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2006 07:10:24 +0000 (07:10 +0000)
<http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
the compiler created a file "b.out" when it didn't create anything
at all.
* lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
Discard stderr too, when invoking the test script.

ChangeLog
lib/autoconf/lang.m4
lib/autoconf/specific.m4

index 8d11e23f73f172392a1cc540ff16a2d280e33a5d..d336435c07be248f54212f6e5b79d4be5220a8ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix test suite failures reported by Pierre in
+       <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
+       * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
+       the compiler created a file "b.out" when it didn't create anything
+       at all.
+       * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
+       Discard stderr too, when invoking the test script.
+
 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
 
        * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
index a5f5db39e185fb0938d59fa84888007dd77aaa61..c0b2505d645bee905782b99f2cfde87a53126c90 100644 (file)
@@ -500,7 +500,7 @@ AS_IF([_AC_DO_VAR(ac_link_default)],
 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 # so that the user can short-circuit this test for compilers unknown to
 # Autoconf.
-for ac_file in $ac_files
+for ac_file in $ac_files ''
 do
   test -f "$ac_file" || continue
   case $ac_file in
@@ -527,10 +527,12 @@ do
 done
 test "$ac_cv_exeext" = no && ac_cv_exeext=
 ],
-      [_AC_MSG_LOG_CONFTEST
+      [ac_file=''])
+AC_MSG_RESULT([$ac_file])
+AS_IF([test -z "$ac_file"],
+[_AC_MSG_LOG_CONFTEST
 AC_MSG_FAILURE([_AC_LANG compiler cannot create executables], 77)])
 ac_exeext=$ac_cv_exeext
-AC_MSG_RESULT([$ac_file])
 ])# _AC_COMPILER_EXEEXT_DEFAULT
 
 
index 8512bcd2bad8436aed89c55e0bb4aa8815b5e605..8a6c6fa226d25e5e8b921663452a1fda998f58df 100644 (file)
@@ -85,7 +85,7 @@ AC_DEFUN([AC_SYS_INTERPRETER],
 exit 69
 ' >conftest
 chmod u+x conftest
-(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
+(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
 if test $? -ne 69; then
    ac_cv_sys_interpreter=yes
 else