1 dnl modules enabled in this directory by default
3 dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
5 APACHE_MODPATH_INIT(core)
7 APR_CHECK_APR_DEFINE(APR_HAS_DSO)
11 if test $ac_cv_define_APR_HAS_DSO = "no"; then
12 AC_MSG_ERROR([mod_so has been requested but cannot be built on your system])
16 AC_MSG_ERROR([mod_so can not be built as a shared DSO])
21 enable_so=$ac_cv_define_APR_HAS_DSO
25 dnl mod_so can only be built statically. Override the default here.
26 if test "x$enable_so" = "xyes"; then
30 if test "x$enable_so" = "xstatic"; then
31 APR_ADDTO(HTTPD_LDFLAGS, [-export-dynamic])
36 APACHE_SUBST(INSTALL_DSO)
38 if test "$sharedobjs" = "yes"; then
39 if test $ac_cv_define_APR_HAS_DSO = "no"; then
40 AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so cannot be built])
41 elif test $enable_so = "no"; then
42 AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so was disabled])
46 APACHE_MODULE(so, DSO capability. This module will be automatically enabled unless you build all modules statically., , , $enable_so)
48 APACHE_MODULE(watchdog, Watchdog module, , , most, [
49 APR_CHECK_APR_DEFINE(APR_HAS_THREADS)
50 if test $ac_cv_define_APR_HAS_THREADS = "no"; then
51 AC_MSG_WARN([mod_watchdog requires apr to be built with --enable-threads])
56 APACHE_MODULE(macro, Define and use macros in configuration files, , , most)
58 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])