*printf-posix: Put more info into config.log.
authorBruno Haible <bruno@clisp.org>
Tue, 19 Jun 2012 10:43:51 +0000 (12:43 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 19 Jun 2012 10:44:02 +0000 (12:44 +0200)
* m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
exit code into config.log.

ChangeLog
m4/printf.m4

index 0253664..bf20750 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-06-19  Bruno Haible  <bruno@clisp.org>
 
+       *printf-posix: Put more info into config.log.
+       * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
+       exit code into config.log.
+
+2012-06-19  Bruno Haible  <bruno@clisp.org>
+
        getopt-gnu: Fix exit code overflow in autoconf test.
        * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
        to keep them below < 128.
index d75aca0..68b15b5 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 48
+# printf.m4 serial 49
 dnl Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1028,8 +1028,9 @@ int main()
 changequote([,])dnl
           ])])
           if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
-            (./conftest
+            (./conftest 2>&AS_MESSAGE_LOG_FD
              result=$?
+             _AS_ECHO_LOG([\$? = $result])
              if test $result != 0 && test $result != 77; then result=1; fi
              exit $result
             ) >/dev/null 2>/dev/null