I'm getting a bit lost with info about both <stdint.h> versus
<inttypes.h>, but does the following patch fix the problem?
2006-06-12 Paul Eggert <[EMAIL PROTECTED]>
* m4/stdint.m4 (gl_STDINT_H): Reject <stdint.h> if it
doesn't declare intmax_t. Problem reported by
Larry Jones and Derek Price in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00030.html>.
--- old/m4/stdint.m4 2006-01-09 05:20:01.000000000 -0800
+++ new/m4/stdint.m4 2006-06-12 09:25:44.000000000 -0700
@@ -17,7 +17,7 @@ AC_CHECK_HEADERS([sys/bitypes.h])
AC_MSG_CHECKING([for stdint.h])
AC_CACHE_VAL(gl_cv_header_stdint_h, [
- AC_TRY_COMPILE([#include <stdint.h>], [],
+ AC_TRY_COMPILE([#include <stdint.h>], [intmax_t i = -1; return i != 0;],
gl_cv_header_stdint_h=yes, gl_cv_header_stdint_h=no)])
AC_MSG_RESULT([$gl_cv_header_stdint_h])
if test $gl_cv_header_stdint_h = yes; then