config.m4 revision a95ff7cb19f4f5c467d8e34722b210c5d62e39d2
dnl modules enabled in this directory by default
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
APACHE_MODPATH_INIT(aaa)
APACHE_MODULE(access, host-based access control, , , yes)
APACHE_MODULE(auth, user-based access control, , , yes)
APACHE_MODULE(auth_anon, anonymous user access, , , most)
APACHE_MODULE(auth_dbm, DBM-based access databases, , , most, [
AC_SEARCH_LIBS(dbm_open,[c db1],,enable_auth_dbm=no)
ap_good_db_path="yes", ap_good_db_path="no")
if test "$ap_good_db_path" = "no"; then
ap_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I/usr/include/db1"
ap_good_db_path="yes", ap_good_db_path="no")
if test "$ap_good_db_path" = "no"; then
CPPFLAGS=$ap_old_cppflags
enable_auth_dbm=no
fi
fi
])
APACHE_MODULE(auth_db, DB-based access databases, , , , [
AC_CHECK_HEADERS(db.h,,enable_auth_db=no)
AC_SEARCH_LIBS(dbopen,[c db],,enable_auth_db=no)
])
APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [
ap_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include -I$abs_builddir/srclib/apr/include"
AC_TRY_COMPILE([#include <apr.h>],
[#if !APR_HAS_RANDOM
#error You need APR random support to use auth_digest.
#endif],,
enable_auth_digest=no)
CPPFLAGS=$ap_old_cppflags
])
APR_ADDTO(LT_LDFLAGS,-export-dynamic)
APACHE_MODPATH_FINISH