Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / libs / libhmac / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
4 dnl distribution information.
5
6
7 AC_INIT(libhmac, 1.00, [courier-users@lists.sourceforge.net])
8
9 >confdefs.h # Kill PACKAGE_ macros
10
11 AC_CONFIG_SRCDIR(hmac.h)
12 AC_CONFIG_AUX_DIR(../..)
13 AM_INIT_AUTOMAKE([foreign no-define])
14
15
16 AC_CONFIG_HEADERS(config.h)
17
18 dnl Checks for programs.
19 AC_PROG_AWK
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PROG_CC
23 AC_PROG_LIBTOOL
24
25 if test "$GCC" = yes
26 then
27 CFLAGS="-Wall $CFLAGS"
28 fi
29
30 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
31
32 dnl Checks for libraries.
33
34 dnl Checks for header files.
35 AC_HEADER_STDC
36
37 dnl Checks for typedefs, structures, and compiler characteristics.
38 AC_C_CONST
39 AC_TYPE_SIZE_T
40
41 dnl Checks for library functions.
42
43 dnl Other checks
44
45 TESTPROGS=""
46
47 hmac_list=""
48
49 hashlibs=""
50 if test -d ${srcdir}/../md5
51 then
52 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
53 hmac_list="$hmac_list &hmac_md5,"
54 hashlibs="$hashlibs ../md5/libmd5.la"
55 fi
56
57 if test -d ${srcdir}/../sha1
58 then
59 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
60 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
61 hashlibs="$hashlibs ../sha1/libsha1.la"
62 fi
63
64 AC_SUBST(hashlibs)
65 hmac_list="$hmac_list 0"
66
67 AC_SUBST(TESTPROGS)
68 AC_DEFINE_UNQUOTED(HMAC_LIST,$hmac_list,
69 [ Dynamically-generated list of installed HMAC hash functions ])
70
71 AC_OUTPUT(Makefile)