1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
dnl
AC_INIT(mod_gnutls, 0.5.1)
OOO_CONFIG_NICE(config.nice)
MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION
AC_PREREQ(2.53)
AC_CONFIG_SRCDIR([src/mod_gnutls.c])
AC_CONFIG_AUX_DIR(config)
OOO_MAINTAIN_MODE
AM_MAINTAINER_MODE
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(include/mod_gnutls_config.h:config.in)
AC_SUBST(MOD_GNUTLS_VERSION)
AC_PROG_CC
AC_PROG_LD
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AP_VERSION=2.0.40
CHECK_APACHE(,$AP_VERSION,
:,:,
AC_MSG_ERROR([*** Apache version $AP_VERSION not found!])
)
dnl LIBTOOL="`${APR_CONFIG} --apr-libtool`"
dnl AC_SUBST(LIBTOOL)
MIN_TLS_VERSION=2.2.1
AM_PATH_LIBGNUTLS_EXTRA($MIN_TLS_VERSION,,
AC_MSG_ERROR([[
***
*** libgnutls and libgnutls-extra were not found. You may want to get it from
*** http://www.gnutls.org/
***
]]))
AC_ARG_ENABLE(srp,
AS_HELP_STRING([--disable-srp],
[unconditionally disable the SRP functionality]),
use_srp=$enableval, use_srp=yes)
if test "$use_srp" != "no"; then
AC_DEFINE_UNQUOTED(ENABLE_SRP, 1, [whether to enable SRP])
fi
AC_MSG_CHECKING([whether to enable SRP functionality])
AC_MSG_RESULT($use_srp)
dnl CHECK_LUA()
have_apr_memcache=0
CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0])
AC_SUBST(have_apr_memcache)
MODULE_CFLAGS="${LIBGNUTLS_EXTRA_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}"
MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_EXTRA_LIBS}"
AC_SUBST(MODULE_CFLAGS)
AC_SUBST(MODULE_LIBS)
AC_CONFIG_FILES([Makefile src/Makefile include/mod_gnutls.h])
AC_OUTPUT
echo "---"
echo "Configuration summary for mod_gnutls:"
echo ""
echo " * mod_gnutls version: ${MOD_GNUTLS_VERSION}"
echo " * Apache Modules directory: ${AP_LIBEXECDIR}"
echo " * GnuTLS Library version: ${LIBGNUTLS_VERSION}"
echo ""
echo "---"
|