* Import keyanalyze into signing-party. Thanks to Matthew Wilcox for the
[pgp-tools.git] / keyanalyze / pgpring / configure.in
diff --git a/keyanalyze/pgpring/configure.in b/keyanalyze/pgpring/configure.in
new file mode 100644 (file)
index 0000000..15044ad
--- /dev/null
@@ -0,0 +1,43 @@
+AC_INIT(pgppubring.c)
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(pgpring, 0.0)
+AC_CANONICAL_HOST
+AC_PROG_CC
+AC_ISC_POSIX
+AM_C_PROTOTYPES
+AC_PROG_CPP
+AC_PROG_MAKE_SET
+AC_PROG_INSTALL
+AC_C_INLINE
+AC_C_CONST
+
+dnl For MD5 and SHA1 on 64-bit systems
+AC_C_BIGENDIAN
+AC_CHECK_HEADERS(inttypes.h stdint.h)
+dnl This is the method autoconf-2.50's new AC_CHECK_TYPE macro uses.
+dnl We need to be backwards compatible to autoconf 2.13, though. -lh
+AC_MSG_CHECKING(for uint32_t)
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#else
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
+#endif],
+[if ((uint32_t *) 0)
+  return 0;
+if (sizeof (uint32_t))
+  return 0;
+],[
+    AC_DEFINE(HAVE_UINT32_T, 1, [ Define if you have the uint32_t type. ])
+    AC_MSG_RESULT(yes)
+  ], AC_MSG_RESULT(no)
+)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
+
+AC_DEFINE(HAVE_PGP)
+
+AC_OUTPUT(Makefile)