]> git.sthu.org Git - pgp-tools.git/blob - keyanalyze/pgpring/configure.in
* Import keyanalyze into signing-party. Thanks to Matthew Wilcox for the
[pgp-tools.git] / keyanalyze / pgpring / configure.in
1 AC_INIT(pgppubring.c)
2 AM_CONFIG_HEADER(config.h)
3 AM_INIT_AUTOMAKE(pgpring, 0.0)
4 AC_CANONICAL_HOST
5 AC_PROG_CC
6 AC_ISC_POSIX
7 AM_C_PROTOTYPES
8 AC_PROG_CPP
9 AC_PROG_MAKE_SET
10 AC_PROG_INSTALL
11 AC_C_INLINE
12 AC_C_CONST
13
14 dnl For MD5 and SHA1 on 64-bit systems
15 AC_C_BIGENDIAN
16 AC_CHECK_HEADERS(inttypes.h stdint.h)
17 dnl This is the method autoconf-2.50's new AC_CHECK_TYPE macro uses.
18 dnl We need to be backwards compatible to autoconf 2.13, though. -lh
19 AC_MSG_CHECKING(for uint32_t)
20 AC_TRY_COMPILE([
21 #include <sys/types.h>
22 #if HAVE_INTTYPES_H
23 #include <inttypes.h>
24 #else
25 #if HAVE_STDINT_H
26 #include <stdint.h>
27 #endif
28 #endif],
29 [if ((uint32_t *) 0)
30 return 0;
31 if (sizeof (uint32_t))
32 return 0;
33 ],[
34 AC_DEFINE(HAVE_UINT32_T, 1, [ Define if you have the uint32_t type. ])
35 AC_MSG_RESULT(yes)
36 ], AC_MSG_RESULT(no)
37 )
38 AC_CHECK_SIZEOF(int)
39 AC_CHECK_SIZEOF(long)
40
41 AC_DEFINE(HAVE_PGP)
42
43 AC_OUTPUT(Makefile)