changeset 8748:cecd0b715bab

Avoid false-negative in gl_STDINT_H's C99 conformance test. * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 28 Apr 2007 18:05:58 +0000
parents 55ce433164f3
children 6f41e2822863
files ChangeLog m4/stdint.m4
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-28  Jim Meyering  <jim@meyering.net>
+
+	Avoid false-negative in gl_STDINT_H's C99 conformance test.
+	* m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
+	to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
+
 2007-04-27  Eric Blake  <ebb9@byu.net>
 
 	* doc/headers/assert.texi (assert.h): Document assert module use.
--- a/m4/stdint.m4
+++ b/m4/stdint.m4
@@ -66,8 +66,8 @@
       [gl_cv_header_working_stdint_h],
       [gl_cv_header_working_stdint_h=no
        AC_COMPILE_IFELSE([
-         AC_LANG_PROGRAM([[
-#include <stddef.h>
+         AC_LANG_PROGRAM([gl_STDINT_INCLUDES
+         [
 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 #include ABSOLUTE_STDINT_H