diff options
-rw-r--r-- | configure.ac | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 0cc92c4..0d1ae58 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -13,22 +13,20 @@ AC_PROG_INSTALL | |||
13 | AM_PROG_LIBTOOL | 13 | AM_PROG_LIBTOOL |
14 | 14 | ||
15 | 15 | ||
16 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
17 | if test "x$PKG_CONFIG" = "xno"; then | ||
18 | AC_MSG_ERROR([You need to install pkg-config]) | ||
19 | fi | ||
20 | |||
21 | PKG_PATH= | ||
22 | |||
23 | AP_VERSION=2.0.40 | 16 | AP_VERSION=2.0.40 |
24 | CHECK_APACHE(,$AP_VERSION, | 17 | CHECK_APACHE(,$AP_VERSION, |
25 | :,:, | 18 | :,:, |
26 | AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]) | 19 | AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]) |
27 | ) | 20 | ) |
28 | 21 | ||
29 | MODULE_CFLAGS="${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | 22 | MIN_TLS_VERSION=1.1.0 |
23 | CHECK_LIBGNUTLS($MIN_TLS_VERSION) | ||
24 | |||
25 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | ||
26 | MODULE_LIBS="${LIBGNUTLS_LIBS}" | ||
30 | 27 | ||
31 | AC_SUBST(MODULE_CFLAGS) | 28 | AC_SUBST(MODULE_CFLAGS) |
29 | AC_SUBST(MODULE_LIBS) | ||
32 | 30 | ||
33 | AC_CONFIG_FILES([Makefile src/Makefile]) | 31 | AC_CONFIG_FILES([Makefile src/Makefile]) |
34 | AC_OUTPUT | 32 | AC_OUTPUT |
@@ -36,6 +34,7 @@ AC_OUTPUT | |||
36 | echo "---" | 34 | echo "---" |
37 | echo "Configuration summary for mod_gnutls" | 35 | echo "Configuration summary for mod_gnutls" |
38 | echo "" | 36 | echo "" |
39 | echo " * Apache modules directory = ${AP_LIBEXECDIR}" | 37 | echo " * Apache Modules directory: ${AP_LIBEXECDIR}" |
38 | echo " * GnuTLS Library Version: ${LIBGNUTLS_VERSION}" | ||
40 | echo "" | 39 | echo "" |
41 | echo "---" | 40 | echo "---" |