source: mod_gnutls/configure.ac @ 4ecf14f

debian/masterdebian/stretch-backportsjessie-backportsupstream upstream/0.5.4
Last change on this file since 4ecf14f was 4ecf14f, checked in by Daniel Kahn Gillmor <dkg@…>, 8 years ago

Imported Upstream version 0.5.4

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[70c2d86]1dnl
[4ecf14f]2AC_INIT(mod_gnutls, 0.5.4)
[de80d66]3OOO_CONFIG_NICE(config.nice)
4MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION
5AC_PREREQ(2.53)
6AC_CONFIG_SRCDIR([src/mod_gnutls.c])
7AC_CONFIG_AUX_DIR(config)
[70c2d86]8
[8eb6ccd]9OOO_MAINTAIN_MODE
[de80d66]10AM_MAINTAINER_MODE
11AC_CANONICAL_TARGET
12AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
13AM_CONFIG_HEADER(include/mod_gnutls_config.h:config.in)
14
15AC_SUBST(MOD_GNUTLS_VERSION)
16
17AC_PROG_CC
18AC_PROG_LD
19AC_PROG_INSTALL
[70c2d86]20AC_PROG_LIBTOOL
[de80d66]21
22AP_VERSION=2.0.40
23CHECK_APACHE(,$AP_VERSION,
24    :,:,
25    AC_MSG_ERROR([*** Apache version $AP_VERSION not found!])
26)
27
[70c2d86]28dnl LIBTOOL="`${APR_CONFIG} --apr-libtool`"
29dnl AC_SUBST(LIBTOOL)
[de80d66]30
[8ce897a]31MIN_TLS_VERSION=2.4.0
32AM_PATH_LIBGNUTLS($MIN_TLS_VERSION,,
[8df5b25]33        AC_MSG_ERROR([[
34*** 
[8ce897a]35*** libgnutls was not found. You may want to get it from
[8df5b25]36*** http://www.gnutls.org/
37***
38]]))
[de80d66]39
[8df5b25]40AC_ARG_ENABLE(srp,
41       AS_HELP_STRING([--disable-srp],
42               [unconditionally disable the SRP functionality]),
43       use_srp=$enableval, use_srp=yes)
44
45SRP_CFLAGS=""
46if test "$use_srp" != "no"; then
[9d9b093]47        SRP_CFLAGS="-DENABLE_SRP=1"
[8df5b25]48fi
49AC_MSG_CHECKING([whether to enable SRP functionality])
50AC_MSG_RESULT($use_srp)
51
[9d9b093]52dnl CHECK_LUA()
53
54have_apr_memcache=0
55CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0])
56AC_SUBST(have_apr_memcache)
57
[f8ffc43]58MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${SRP_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}"
59MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}"
[de80d66]60
61AC_SUBST(MODULE_CFLAGS)
62AC_SUBST(MODULE_LIBS)
63
[2a2272d]64AC_CONFIG_FILES([Makefile src/Makefile include/mod_gnutls.h])
[de80d66]65AC_OUTPUT
66
67echo "---"
68echo "Configuration summary for mod_gnutls:"
69echo ""
[9d9b093]70echo "   * mod_gnutls version:  ${MOD_GNUTLS_VERSION}"
71echo "   * Apache Modules directory:    ${AP_LIBEXECDIR}"
72echo "   * GnuTLS Library version:      ${LIBGNUTLS_VERSION}"
73echo "   * SRP Authentication:          ${use_srp}"
[de80d66]74echo ""
75echo "---"
Note: See TracBrowser for help on using the repository browser.