diff options
author | Nokis Mavrogiannopoulos | 2008-03-05 17:38:09 +0000 |
---|---|---|
committer | Nokis Mavrogiannopoulos | 2008-03-05 17:38:09 +0000 |
commit | 2cb49bd5137176e1445550399b6e9592607858a3 (patch) | |
tree | e7c8933ce56ecdac588fbaa9af0c4beb03850c3e /configure.ac | |
parent | fc05b4b880d4247da9353cae6be44180dee17b23 (diff) |
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 259e289..b95f362 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,5 +1,5 @@ | |||
1 | dnl | 1 | dnl |
2 | AC_INIT(mod_gnutls, 0.4.2.1) | 2 | AC_INIT(mod_gnutls, 0.4.3) |
3 | OOO_CONFIG_NICE(config.nice) | 3 | OOO_CONFIG_NICE(config.nice) |
4 | MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION | 4 | MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION |
5 | AC_PREREQ(2.53) | 5 | AC_PREREQ(2.53) |
@@ -28,8 +28,14 @@ CHECK_APACHE(,$AP_VERSION, | |||
28 | dnl LIBTOOL="`${APR_CONFIG} --apr-libtool`" | 28 | dnl LIBTOOL="`${APR_CONFIG} --apr-libtool`" |
29 | dnl AC_SUBST(LIBTOOL) | 29 | dnl AC_SUBST(LIBTOOL) |
30 | 30 | ||
31 | MIN_TLS_VERSION=2.1.7 | 31 | MIN_TLS_VERSION=2.2.1 |
32 | CHECK_LIBGNUTLS($MIN_TLS_VERSION) | 32 | AM_PATH_LIBGNUTLS($MIN_TLS_VERSION,, |
33 | AC_MSG_ERROR([[ | ||
34 | *** | ||
35 | *** libgnutls were not found. You may want to get it from | ||
36 | *** http://www.gnutls.org/ | ||
37 | *** | ||
38 | ]])) | ||
33 | 39 | ||
34 | dnl CHECK_LUA() | 40 | dnl CHECK_LUA() |
35 | 41 | ||
@@ -37,7 +43,19 @@ have_apr_memcache=0 | |||
37 | CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0]) | 43 | CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0]) |
38 | AC_SUBST(have_apr_memcache) | 44 | AC_SUBST(have_apr_memcache) |
39 | 45 | ||
40 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | 46 | AC_ARG_ENABLE(srp, |
47 | AS_HELP_STRING([--disable-srp], | ||
48 | [unconditionally disable the SRP functionality]), | ||
49 | use_srp=$enableval, use_srp=yes) | ||
50 | |||
51 | SRP_CFLAGS="" | ||
52 | if test "$use_srp" != "no"; then | ||
53 | SRP_CFLAGS="-DENABLE_SRP=1" | ||
54 | fi | ||
55 | AC_MSG_CHECKING([whether to enable SRP functionality]) | ||
56 | AC_MSG_RESULT($use_srp) | ||
57 | |||
58 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${SRP_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | ||
41 | MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" | 59 | MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" |
42 | 60 | ||
43 | AC_SUBST(MODULE_CFLAGS) | 61 | AC_SUBST(MODULE_CFLAGS) |
@@ -49,8 +67,9 @@ AC_OUTPUT | |||
49 | echo "---" | 67 | echo "---" |
50 | echo "Configuration summary for mod_gnutls:" | 68 | echo "Configuration summary for mod_gnutls:" |
51 | echo "" | 69 | echo "" |
52 | echo " * mod_gnutls version: ${MOD_GNUTLS_VERSION}" | 70 | echo " * mod_gnutls version: ${MOD_GNUTLS_VERSION}" |
53 | echo " * Apache Modules directory: ${AP_LIBEXECDIR}" | 71 | echo " * Apache Modules directory: ${AP_LIBEXECDIR}" |
54 | echo " * GnuTLS Library version: ${LIBGNUTLS_VERSION}" | 72 | echo " * GnuTLS Library version: ${LIBGNUTLS_VERSION}" |
73 | echo " * SRP authentication: ${use_srp}" | ||
55 | echo "" | 74 | echo "" |
56 | echo "---" | 75 | echo "---" |