summaryrefslogtreecommitdiffstats
path: root/gl/m4/limits-h.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/limits-h.m4')
-rw-r--r--gl/m4/limits-h.m411
1 files changed, 4 insertions, 7 deletions
diff --git a/gl/m4/limits-h.m4 b/gl/m4/limits-h.m4
index 00c9fe9..5d5a5bf 100644
--- a/gl/m4/limits-h.m4
+++ b/gl/m4/limits-h.m4
@@ -1,6 +1,6 @@
1dnl Check whether limits.h has needed features. 1dnl Check whether limits.h has needed features.
2 2
3dnl Copyright 2016-2021 Free Software Foundation, Inc. 3dnl Copyright 2016-2022 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -27,18 +27,15 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
27 [gl_cv_header_limits_width=yes], 27 [gl_cv_header_limits_width=yes],
28 [gl_cv_header_limits_width=no])]) 28 [gl_cv_header_limits_width=no])])
29 if test "$gl_cv_header_limits_width" = yes; then 29 if test "$gl_cv_header_limits_width" = yes; then
30 LIMITS_H= 30 GL_GENERATE_LIMITS_H=false
31 else 31 else
32 LIMITS_H=limits.h 32 GL_GENERATE_LIMITS_H=true
33 fi 33 fi
34 AC_SUBST([LIMITS_H])
35 AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
36]) 34])
37 35
38dnl Unconditionally enables the replacement of <limits.h>. 36dnl Unconditionally enables the replacement of <limits.h>.
39AC_DEFUN([gl_REPLACE_LIMITS_H], 37AC_DEFUN([gl_REPLACE_LIMITS_H],
40[ 38[
41 AC_REQUIRE([gl_LIMITS_H]) 39 AC_REQUIRE([gl_LIMITS_H])
42 LIMITS_H='limits.h' 40 GL_GENERATE_LIMITS_H=true
43 AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
44]) 41])