On 09/22/2016 11:08 AM, Jim Meyering wrote:
it still fails (no limits.h is created)


Sorry about that. I managed to reproduce the problem with Fedora 24 GCC 6.2.1 by overriding its limits.h, and installed the attached further patch which fixed it for me.

From 6f146246dbd68ae4739d8a2209074de729235510 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 22 Sep 2016 11:44:39 -0700
Subject: [PATCH] stdint: also set GL_GENERATE_LIMITS_H

Problem reported by Jim Meyering in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
* m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
---
 ChangeLog    | 5 +++++
 m4/stdint.m4 | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 61ac981..8b2629a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
 
+	stdint: also set GL_GENERATE_LIMITS_H
+	Problem reported by Jim Meyering in:
+	http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
+	* m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
+
 	limits-h, stdint: Don't assume extensions, fix typo
 	* m4/limits-h.m4 (gl_LIMITS_H):
 	* m4/stdint.m4 (gl_STDINT_H):
diff --git a/m4/stdint.m4 b/m4/stdint.m4
index 7328096..fa6f103 100644
--- a/m4/stdint.m4
+++ b/m4/stdint.m4
@@ -1,4 +1,4 @@
-# stdint.m4 serial 46
+# stdint.m4 serial 47
 dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -347,6 +347,7 @@ int32_t i32 = INT32_C (0x7fffffff);
 
   # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
   LIMITS_H=limits.h
+  AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
 
   AC_SUBST([HAVE_C99_STDINT_H])
   AC_SUBST([HAVE_SYS_BITYPES_H])
-- 
2.7.4

Reply via email to