diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..0cc92c4 --- /dev/null +++ b/configure.ac | |||
@@ -0,0 +1,41 @@ | |||
1 | AC_INIT | ||
2 | OOO_CONFIG_NICE(config.nice) | ||
3 | AC_CONFIG_SRCDIR([src/mod_gnutls.c]) | ||
4 | AM_MAINTAINER_MODE | ||
5 | AC_CANONICAL_TARGET | ||
6 | AM_INIT_AUTOMAKE(mod_gnutls, 0.1.0) | ||
7 | AM_CONFIG_HEADER([include/mod_gnutls_config.h:config.in]) | ||
8 | |||
9 | |||
10 | AC_PROG_CC | ||
11 | AC_PROG_LD | ||
12 | AC_PROG_INSTALL | ||
13 | AM_PROG_LIBTOOL | ||
14 | |||
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 | ||
24 | CHECK_APACHE(,$AP_VERSION, | ||
25 | :,:, | ||
26 | AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]) | ||
27 | ) | ||
28 | |||
29 | MODULE_CFLAGS="${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | ||
30 | |||
31 | AC_SUBST(MODULE_CFLAGS) | ||
32 | |||
33 | AC_CONFIG_FILES([Makefile src/Makefile]) | ||
34 | AC_OUTPUT | ||
35 | |||
36 | echo "---" | ||
37 | echo "Configuration summary for mod_gnutls" | ||
38 | echo "" | ||
39 | echo " * Apache modules directory = ${AP_LIBEXECDIR}" | ||
40 | echo "" | ||
41 | echo "---" | ||