summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 6197950a..4846072e 100755
--- a/configure
+++ b/configure
@@ -1571,6 +1571,25 @@ then
printf "typedef superulong_t double_uintptr_t;\n" >> config.h
fi
+printf "Checking for intmax_t ... "
+cat > conftest.c <<!
+#include <inttypes.h>
+
+int main(void)
+{
+ intmax_t i = 0;
+ untmax_t u = 0;
+ return (uintmax_t) i + u;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_INTMAX_T 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
#
# Endianness.
#