]> Savannah Git Hosting - gnulib.git/commitdiff
limits-h: Formalize side effects from other modules.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Aug 2018 18:57:24 +0000 (20:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Aug 2018 18:57:24 +0000 (20:57 +0200)
* m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
* m4/stdint.m4 (gl_STDINT_H): Invoke it.

ChangeLog
m4/limits-h.m4
m4/stdint.m4

index 7d20b21ce9607a45af38cee5357a9e758fe6b776..b38be6b5ca540ac302d1a296068b6233c57306db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-19  Bruno Haible  <bruno@clisp.org>
+
+       limits-h: Formalize side effects from other modules.
+       * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
+       * m4/stdint.m4 (gl_STDINT_H): Invoke it.
+
 2018-08-19  Bruno Haible  <bruno@clisp.org>
 
        getpass: Move declaration to <unistd.h>.
index 511dcef5e04d68ca21df71f9d9cc5e4e31fbc2cd..838866343961cdbdaae12a80840488a879802fa7 100644 (file)
@@ -29,3 +29,11 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
   AC_SUBST([LIMITS_H])
   AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
 ])
+
+dnl Unconditionally enables the replacement of <limits.h>.
+AC_DEFUN([gl_REPLACE_LIMITS_H],
+[
+  AC_REQUIRE([gl_LIMITS_H])
+  LIMITS_H='limits.h'
+  AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
+])
index b86184c2ea6f8294fc2c49016f6432bd8e136cf9..38dbbedffec9d64806b5c7e6d59e6f5a4d82125b 100644 (file)
@@ -1,4 +1,4 @@
-# stdint.m4 serial 51
+# stdint.m4 serial 52
 dnl Copyright (C) 2001-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -364,8 +364,7 @@ int32_t i32 = INT32_C (0x7fffffff);
   esac
 
   dnl 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"])
+  gl_REPLACE_LIMITS_H
 
   AC_SUBST([HAVE_C99_STDINT_H])
   AC_SUBST([HAVE_SYS_BITYPES_H])