|
Packit |
90a5c9 |
dnl modules enabled in this directory by default
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APACHE_MODPATH_INIT(generators)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APACHE_MODULE(status, process/thread monitoring, , , yes)
|
|
Packit |
90a5c9 |
APACHE_MODULE(autoindex, directory listing, , , yes)
|
|
Packit |
90a5c9 |
APACHE_MODULE(asis, as-is filetypes, , , )
|
|
Packit |
90a5c9 |
APACHE_MODULE(info, server information, , , most)
|
|
Packit |
90a5c9 |
APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
|
|
Packit |
90a5c9 |
other_targets=suexec ] )
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Is mod_cgid needed?
|
|
Packit |
90a5c9 |
case $host in
|
|
Packit |
90a5c9 |
*mingw*)
|
|
Packit |
90a5c9 |
dnl No fork+thread+fd issues, and cgid doesn't work anyway.
|
|
Packit |
90a5c9 |
cgid_needed="no"
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
*)
|
|
Packit |
90a5c9 |
if ap_mpm_is_threaded; then
|
|
Packit |
90a5c9 |
dnl if we are using a threaded MPM on Unix, we can get better
|
|
Packit |
90a5c9 |
dnl performance with mod_cgid, and also avoid potential issues
|
|
Packit |
90a5c9 |
dnl with forking from a threaded process.
|
|
Packit |
90a5c9 |
cgid_needed="yes"
|
|
Packit |
90a5c9 |
else
|
|
Packit |
90a5c9 |
dnl if we are using a non-threaded MPM, it makes little sense to
|
|
Packit |
90a5c9 |
dnl use mod_cgid, and it just opens up holes we don't need.
|
|
Packit |
90a5c9 |
cgid_needed="no"
|
|
Packit |
90a5c9 |
fi
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
esac
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
if test $cgid_needed = "yes"; then
|
|
Packit |
90a5c9 |
APACHE_MODULE(cgid, CGI scripts. Enabled by default with threaded MPMs, , , most, [
|
|
Packit |
90a5c9 |
case $host in
|
|
Packit |
90a5c9 |
*-solaris2*)
|
|
Packit |
90a5c9 |
case `uname -r` in
|
|
Packit |
90a5c9 |
5.10)
|
|
Packit |
90a5c9 |
dnl Does the system have the appropriate patches?
|
|
Packit |
90a5c9 |
case `uname -p` in
|
|
Packit |
90a5c9 |
i386)
|
|
Packit |
90a5c9 |
patch_id="120665"
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
sparc)
|
|
Packit |
90a5c9 |
patch_id="120664"
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
*)
|
|
Packit |
90a5c9 |
AC_MSG_WARN([Unknown platform])
|
|
Packit |
90a5c9 |
patch_id="120664"
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
esac
|
|
Packit |
90a5c9 |
AC_MSG_CHECKING([for Solaris patch $patch_id])
|
|
Packit |
90a5c9 |
showrev -p | grep "$patch_id" >/dev/null 2>&1
|
|
Packit |
90a5c9 |
if test $? -eq 1; then
|
|
Packit |
90a5c9 |
dnl Solaris 11 (next release) as of snv_19 doesn't have this problem.
|
|
Packit |
90a5c9 |
dnl It may be possible to use /kernel/drv/tl from later releases.
|
|
Packit |
90a5c9 |
AC_MSG_ERROR([Please apply either patch # 120664 (Sparc) or # 120665 (x86).
|
|
Packit |
90a5c9 |
Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
|
|
Packit |
90a5c9 |
bug with AF_UNIX sockets.
|
|
Packit |
90a5c9 |
If you can not apply these patches, you can do one of the following:
|
|
Packit |
90a5c9 |
- run configure with --disable-cgid
|
|
Packit |
90a5c9 |
- switch to the prefork MPM
|
|
Packit |
90a5c9 |
For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>])
|
|
Packit |
90a5c9 |
else
|
|
Packit |
90a5c9 |
AC_MSG_RESULT(yes)
|
|
Packit |
90a5c9 |
fi
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
esac
|
|
Packit |
90a5c9 |
;;
|
|
Packit |
90a5c9 |
esac
|
|
Packit |
90a5c9 |
])
|
|
Packit |
90a5c9 |
APACHE_MODULE(cgi, CGI scripts. Enabled by default with non-threaded MPMs, , , no)
|
|
Packit |
90a5c9 |
else
|
|
Packit |
90a5c9 |
APACHE_MODULE(cgi, CGI scripts. Enabled by default with non-threaded MPMs, , , most)
|
|
Packit |
90a5c9 |
APACHE_MODULE(cgid, CGI scripts. Enabled by default with threaded MPMs, , , no)
|
|
Packit |
90a5c9 |
fi
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APACHE_MODPATH_FINISH
|