1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
dnl modules enabled in this directory by default
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
APACHE_MODPATH_INIT(mappers)
APACHE_MODULE(vhost_alias, mass hosting module, , , most)
APACHE_MODULE(negotiation, content negoatiation, , , yes)
APACHE_MODULE(dir, directory request handling, , , yes)
APACHE_MODULE(imap, internal imagemaps, , , yes)
APACHE_MODULE(actions, Action triggering on requests, , , yes)
APACHE_MODULE(speling, correct common URL misspellings, , , most)
APACHE_MODULE(userdir, mapping of user requests, , , yes)
APACHE_MODULE(alias, translation of requests, , , yes)
APACHE_MODULE(rewrite, regex URL translation, , , most, [
APR_ADDTO(CFLAGS,-DNO_DBM_REWRITEMAP)
])
dnl mod_so should only be built as a static DSO
if test "$enable_so" = "yes"; then
enable_so="static"
elif test "$enable_so" = "shared"; then
AC_MSG_ERROR([mod_so can not be built as a shared DSO])
fi
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_DSO
#error You need APR DSO support to use mod_so.
#endif
], ap_enable_so="static", [
if test "$enable_so" = "static"; then
AC_MSG_ERROR([mod_so has been requested but cannot be built on your system])
else if test "$sharedobjs" = "yes"; then
AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so cannot be built])
else
ap_enable_so="no"
fi
fi
])
CPPFLAGS=$ap_old_cppflags
APACHE_MODULE(so, DSO capability, , , $ap_enable_so)
dnl ### why save the cache?
AC_CACHE_SAVE
APACHE_MODPATH_FINISH
|