diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-10-28 16:06:59 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-10-28 16:27:53 +1100 |
commit | 2912596aecfcf48e5115c7a906d1e664f7717a4b (patch) | |
tree | 08afe73fa8dcabea663c86947671c9fc9467e259 /configure.ac | |
parent | 7169e31121e8c8cc729b55154deb722ae495b316 (diff) |
Define UINT32_MAX if needed.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8bc96bb45..268fe1a4b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -3541,6 +3541,17 @@ fprint_ll(FILE *f, long long n) | |||
3541 | ) | 3541 | ) |
3542 | fi | 3542 | fi |
3543 | 3543 | ||
3544 | AC_CHECK_DECLS([UINT32_MAX], , , [[ | ||
3545 | #ifdef HAVE_SYS_LIMITS_H | ||
3546 | # include <sys/limits.h> | ||
3547 | #endif | ||
3548 | #ifdef HAVE_LIMITS_H | ||
3549 | # include <limits.h> | ||
3550 | #endif | ||
3551 | #ifdef HAVE_STDINT_H | ||
3552 | # include <stdint.h> | ||
3553 | #endif | ||
3554 | ]]) | ||
3544 | 3555 | ||
3545 | # More checks for data types | 3556 | # More checks for data types |
3546 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ | 3557 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ |