1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
4 dnl distribution information.
7 AC_INIT(libhmac, 1.00, [courier-users@lists.sourceforge.net])
9 >confdefs.h # Kill PACKAGE_ macros
11 AC_CONFIG_SRCDIR(hmac.h)
12 AC_CONFIG_AUX_DIR(../..)
13 AM_INIT_AUTOMAKE([foreign no-define])
16 AM_CONFIG_HEADER(config.h)
18 dnl Checks for programs.
27 CFLAGS="-Wall $CFLAGS"
30 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
32 dnl Checks for libraries.
34 dnl Checks for header files.
37 dnl Checks for typedefs, structures, and compiler characteristics.
41 dnl Checks for library functions.
50 if test -d ${srcdir}/../md5
52 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
53 hmac_list="$hmac_list &hmac_md5,"
54 hashlibs="$hashlibs ../md5/libmd5.la"
57 if test -d ${srcdir}/../sha1
59 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
60 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
61 hashlibs="$hashlibs ../sha1/libsha1.la"
65 hmac_list="$hmac_list 0"
68 AC_DEFINE_UNQUOTED(HMAC_LIST,$hmac_list,
69 [ Dynamically-generated list of installed HMAC hash functions ])