]> git.ipfire.org Git - thirdparty/git.git/blobdiff - configure.ac
Build: add NO_UINTMAX_T to support ancient systems
[thirdparty/git.git] / configure.ac
index 27bab00a454c1a29946bbbc0a573ae83f83ee07f..a0d53f31241aa8400b62583ade516f2ca1413935 100644 (file)
@@ -436,6 +436,14 @@ AC_CHECK_FUNC(strlcpy,
 [NO_STRLCPY=YesPlease])
 AC_SUBST(NO_STRLCPY)
 #
+# Define NO_UINTMAX_T if your platform does not have uintmax_t
+AC_CHECK_TYPE(uintmax_t,
+[NO_UINTMAX_T=],
+[NO_UINTMAX_T=YesPlease],[
+#include <inttypes.h>
+])
+AC_SUBST(NO_UINTMAX_T)
+#
 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
 AC_CHECK_FUNC(strtoumax,
 [NO_STRTOUMAX=],