diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 001f145..086b9f5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,16 +1,18 @@ | |||
1 | AC_INIT | 1 | |
2 | AC_INIT(mod_gnutls, 0.1.0) | ||
2 | OOO_CONFIG_NICE(config.nice) | 3 | OOO_CONFIG_NICE(config.nice) |
4 | AC_PREREQ(2.53) | ||
3 | AC_CONFIG_SRCDIR([src/mod_gnutls.c]) | 5 | AC_CONFIG_SRCDIR([src/mod_gnutls.c]) |
6 | AC_CONFIG_AUX_DIR(config) | ||
4 | AM_MAINTAINER_MODE | 7 | AM_MAINTAINER_MODE |
5 | AC_CANONICAL_TARGET | 8 | AC_CANONICAL_TARGET |
6 | AM_INIT_AUTOMAKE(mod_gnutls, 0.1.0) | 9 | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
7 | AM_CONFIG_HEADER([include/mod_gnutls_config.h:config.in]) | 10 | AM_CONFIG_HEADER(include/mod_gnutls_config.h:config.in) |
8 | 11 | ||
9 | 12 | ||
10 | AC_PROG_CC | 13 | AC_PROG_CC |
11 | AC_PROG_LD | 14 | AC_PROG_LD |
12 | AC_PROG_INSTALL | 15 | AC_PROG_INSTALL |
13 | AM_PROG_LIBTOOL | ||
14 | 16 | ||
15 | 17 | ||
16 | AP_VERSION=2.0.40 | 18 | AP_VERSION=2.0.40 |
@@ -19,10 +21,15 @@ CHECK_APACHE(,$AP_VERSION, | |||
19 | AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]) | 21 | AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]) |
20 | ) | 22 | ) |
21 | 23 | ||
22 | MIN_TLS_VERSION=1.1.0 | 24 | LIBTOOL="`${APR_CONFIG} --apr-libtool`" |
25 | AC_SUBST(LIBTOOL) | ||
26 | |||
27 | MIN_TLS_VERSION=1.2.0 | ||
23 | CHECK_LIBGNUTLS($MIN_TLS_VERSION) | 28 | CHECK_LIBGNUTLS($MIN_TLS_VERSION) |
24 | 29 | ||
25 | CHECK_APR_MEMCACHE() | 30 | have_apr_memcache=0 |
31 | CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0]) | ||
32 | AC_SUBST(have_apr_memcache) | ||
26 | 33 | ||
27 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | 34 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" |
28 | MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" | 35 | MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" |
@@ -30,7 +37,7 @@ MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" | |||
30 | AC_SUBST(MODULE_CFLAGS) | 37 | AC_SUBST(MODULE_CFLAGS) |
31 | AC_SUBST(MODULE_LIBS) | 38 | AC_SUBST(MODULE_LIBS) |
32 | 39 | ||
33 | AC_CONFIG_FILES([Makefile src/Makefile]) | 40 | AC_CONFIG_FILES([Makefile src/Makefile include/mod_gnutls.h]) |
34 | AC_OUTPUT | 41 | AC_OUTPUT |
35 | 42 | ||
36 | echo "---" | 43 | echo "---" |