STANDARD_LIBS="$STANDARD_LIBS libapachemod_$1.la"
])
-dnl AC_DEFUN(modulename, modulestructname, defaultonoroff)
+dnl AC_DEFUN(modulename, modulestructname, defaultonoroff, configmacros)
dnl XXX - Need to add help text to --enable-module flags
-dnl XXX - Need to add support for per-module config
+dnl XXX - Need to allow --enable-module to fail if optional config fails
AC_DEFUN(APACHE_CHECK_STANDARD_MODULE, [
AC_MSG_CHECKING([whether to enable mod_$1])
AC_ARG_ENABLE(patsubst([$1], _, -), [ --enable-]patsubst([$1], _, -), [],
[enable_$1=]ifelse([$3], , no, [$3]))
+ AC_MSG_RESULT([$enable_$1])
if test "$enable_[$1]" != "no" ; then
+ ifelse([$4], , :, [$4])
MODLIST="$MODLIST ifelse([$2], , [$1], [$2])"
STANDARD_MODULE([$1])
fi
- AC_MSG_RESULT([$enable_$1])
])
APACHE_CHECK_STANDARD_MODULE(mmap_static, , no)
APACHE_CHECK_STANDARD_MODULE(expires, , no)
APACHE_CHECK_STANDARD_MODULE(headers, , no)
-AC_CHECK_HEADERS(sys/times.h)
-AC_CHECK_FUNCS(times)
-APACHE_CHECK_STANDARD_MODULE(usertrack, , no)
+APACHE_CHECK_STANDARD_MODULE(usertrack, , no, [
+ AC_CHECK_HEADERS(sys/times.h)
+ AC_CHECK_FUNCS(times)
+])
APACHE_CHECK_STANDARD_MODULE(unique_id, , no)
APACHE_CHECK_STANDARD_MODULE(so, , no)