changeset 16915:3aded6c8d483

*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.
author Bruno Haible <bruno@clisp.org>
date Tue, 19 Jun 2012 12:43:51 +0200
parents 80e5b1a6673a
children 3d02d25fa13d
files ChangeLog m4/printf.m4
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 19 12:11:04 2012 +0200
+++ b/ChangeLog	Tue Jun 19 12:43:51 2012 +0200
@@ -1,3 +1,9 @@
+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.
--- a/m4/printf.m4	Tue Jun 19 12:11:04 2012 +0200
+++ b/m4/printf.m4	Tue Jun 19 12:43:51 2012 +0200
@@ -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 @@
 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