X-Git-Url: http://git.sthu.org/?a=blobdiff_plain;f=keyanalyze%2Fpgpring%2Fconfigure.in;fp=keyanalyze%2Fpgpring%2Fconfigure.in;h=15044ad5219a9a114a69adf07cc0dc3ae9be7d46;hb=e69aea6f5797cb54f3748b983ffc977958f347cc;hp=0000000000000000000000000000000000000000;hpb=6b7cb7ca3a817c2e0510957115a2d1f1bed5c549;p=pgp-tools.git diff --git a/keyanalyze/pgpring/configure.in b/keyanalyze/pgpring/configure.in new file mode 100644 index 0000000..15044ad --- /dev/null +++ b/keyanalyze/pgpring/configure.in @@ -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 +#if HAVE_INTTYPES_H +#include +#else +#if HAVE_STDINT_H +#include +#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)