mirror of
https://github.com/apache/httpd.git
synced 2025-11-11 02:42:23 +03:00
This module was created in 1998 and has been distributed independently ever since. It is hereby donated to the Apache Software Foundation. There are quite a few comments in the source code to explain how it works, as well as extensive non regression tests. Some utilities about array processing could be moved to "core.c". However, I finally decided against for now so that it stays as an external and independent module, and thus may be backported with minimal impact on the source tree. Details of the addition: * modules/core/mod_macro.c: module source code * modules/core/test: non regression tests modules/core/test/conf/: configuration files modules/core/test/ref/: expected results * docs/manual/mod/mod_macro.xml: English documentation * docs/manual/mod/mod_macro.xml.fr: French documentation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435811 13f79535-47bb-0310-9956-ffa450edef68
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
dnl modules enabled in this directory by default
|
|
|
|
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
|
|
|
|
APACHE_MODPATH_INIT(core)
|
|
|
|
APR_CHECK_APR_DEFINE(APR_HAS_DSO)
|
|
|
|
case "x$enable_so" in
|
|
"xyes")
|
|
if test $ac_cv_define_APR_HAS_DSO = "no"; then
|
|
AC_MSG_ERROR([mod_so has been requested but cannot be built on your system])
|
|
fi
|
|
;;
|
|
"xshared")
|
|
AC_MSG_ERROR([mod_so can not be built as a shared DSO])
|
|
;;
|
|
"xno")
|
|
;;
|
|
"x")
|
|
enable_so=$ac_cv_define_APR_HAS_DSO
|
|
;;
|
|
esac
|
|
|
|
dnl mod_so can only be built statically. Override the default here.
|
|
if test "x$enable_so" = "xyes"; then
|
|
enable_so="static"
|
|
fi
|
|
|
|
if test "x$enable_so" = "xstatic"; then
|
|
APR_ADDTO(HTTPD_LDFLAGS, [-export-dynamic])
|
|
INSTALL_DSO=yes
|
|
else
|
|
INSTALL_DSO=no
|
|
fi
|
|
APACHE_SUBST(INSTALL_DSO)
|
|
|
|
if test "$sharedobjs" = "yes"; then
|
|
if test $ac_cv_define_APR_HAS_DSO = "no"; then
|
|
AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so cannot be built])
|
|
elif test $enable_so = "no"; then
|
|
AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so was disabled])
|
|
fi
|
|
fi
|
|
|
|
APACHE_MODULE(so, DSO capability. This module will be automatically enabled unless you build all modules statically., , , $enable_so)
|
|
|
|
APACHE_MODULE(watchdog, Watchdog module, , , , [
|
|
APR_CHECK_APR_DEFINE(APR_HAS_THREADS)
|
|
if test $ac_cv_define_APR_HAS_THREADS = "no"; then
|
|
AC_MSG_WARN([mod_watchdog requires apr to be built with --enable-threads])
|
|
enable_watchdog=no
|
|
fi
|
|
])
|
|
|
|
APACHE_MODULE(macro, Define and use macros in configuration files, , , most)
|
|
|
|
APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
|
|
|
|
APACHE_MODPATH_FINISH
|