summaryrefslogtreecommitdiffstats
path: root/sha1/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'sha1/configure.ac')
-rw-r--r--sha1/configure.ac22
1 files changed, 17 insertions, 5 deletions
diff --git a/sha1/configure.ac b/sha1/configure.ac
index d424b26..6bc8351 100644
--- a/sha1/configure.ac
+++ b/sha1/configure.ac
@@ -32,7 +32,7 @@ dnl Checks for libraries.
dnl Checks for header files.
-AC_CHECK_HEADERS(sys/types.h)
+AC_CHECK_HEADERS(sys/types.h stdint.h)
AC_ARG_WITH(int32,
[ --with-int32='type' use 'type' for an unsigned 32 bit integer type
@@ -45,8 +45,11 @@ AC_ARG_WITH(int32,
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
+uint32_t i;
],[
- uint32_t i=0;
], [ AC_MSG_RESULT(yes) ; int32="uint32_t"], [
AC_MSG_RESULT(no)
@@ -56,8 +59,11 @@ AC_ARG_WITH(int32,
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
+u_int32_t i;
],[
- u_int32_t i=0;
], [AC_MSG_RESULT(yes); int32="u_int32_t"],[
AC_MSG_RESULT(no)
@@ -99,8 +105,11 @@ AC_ARG_WITH(int64,
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
+uint64_t i;
],[
- uint64_t i=0;
], [ AC_MSG_RESULT(yes) ; int64="uint64_t"], [
AC_MSG_RESULT(no)
@@ -110,8 +119,11 @@ AC_ARG_WITH(int64,
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
+u_int64_t i;
],[
- u_int64_t i=0;
], [AC_MSG_RESULT(yes); int64="u_int64_t"],[
AC_MSG_RESULT(no)