bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gl_STDINT_H: avoid false-negative in C99 conformance test


From: Jim Meyering
Subject: gl_STDINT_H: avoid false-negative in C99 conformance test
Date: Sat, 28 Apr 2007 19:23:28 +0200

I was surprised to see gl_cv_header_working_stdint_h=no in config.cache
when building coreutils on a rawhide-based system.  That check
for stdint.h conformance to C99 was failing due to e.g., sig_atomic_t
not being defined.  Here's a fix:

2007-04-28  Jim Meyering  <address@hidden>

        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>.

Index: m4/stdint.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/stdint.m4,v
retrieving revision 1.28
diff -u -p -r1.28 stdint.m4
--- m4/stdint.m4        5 Apr 2007 03:41:14 -0000       1.28
+++ m4/stdint.m4        28 Apr 2007 17:16:56 -0000
@@ -66,8 +66,8 @@ AC_DEFUN([gl_STDINT_H],
       [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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]