1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
4 dnl distribution information.
7 AC_INIT(libmd5, 1.21, courier-users@lists.sourceforge.net)
9 >confdefs.h # Kill PACKAGE_ macros
11 AC_CONFIG_SRCDIR([hmac.c])
12 AC_CONFIG_AUX_DIR(../..)
13 AM_CONFIG_HEADER([config.h])
14 AM_INIT_AUTOMAKE([foreign no-define])
16 AM_CONDITIONAL(HMACC, test -d ${srcdir}/../libhmac)
18 dnl Checks for programs.
27 CFLAGS="-Wall $CFLAGS"
30 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
32 dnl Checks for libraries.
34 dnl Checks for header files.
37 AC_CHECK_HEADERS(sys/types.h)
41 [ --with-int32='type' use 'type' for an unsigned 32 bit integer type
42 ( default is 'unsigned')],
45 AC_MSG_CHECKING(for uint32_t)
49 #include <sys/types.h>
53 ], [ AC_MSG_RESULT(yes) ; int32="uint32_t"], [
56 AC_MSG_CHECKING(for u_int_32_t)
60 #include <sys/types.h>
64 ], [AC_MSG_RESULT(yes); int32="u_int32_t"],[
68 AC_CHECK_SIZEOF(unsigned, 0)
69 if test "$ac_cv_sizeof_unsigned" != 4
71 AC_CHECK_SIZEOF(unsigned long, 0)
72 if test "$ac_cv_sizeof_unsigned_long" != 4
74 AC_CHECK_SIZEOF(unsigned short, 0)
75 if test "$ac_cv_sizeof_unsigned_short" != 4
77 AC_ERROR(--with-int32 option is required)
79 int32="unsigned short"
91 AC_DEFINE_UNQUOTED(MD5_WORD, $UINT32, [ 32 bit data type ])
93 dnl Checks for typedefs, structures, and compiler characteristics.
97 dnl Checks for library functions.