1 AC_MSG_CHECKING(which MPM to use)
3 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
4 MPM={simple|event|worker|prefork|winnt}
5 Specify "shared" instead of an MPM name to load MPMs dynamically.
9 if test "x$APACHE_MPM" = "x"; then
13 AC_MSG_RESULT($APACHE_MPM)
15 apache_cv_mpm=$APACHE_MPM
17 dnl Note that a build with an explicitly loaded MPM must support threaded MPMs.
20 if test "$apache_cv_mpm" = "shared" -o "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "simple" -o "$apache_cv_mpm" = "winnt" ; then
27 if ap_mpm_is_threaded; then
28 APR_CHECK_APR_DEFINE(APR_HAS_THREADS)
30 if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
31 AC_MSG_RESULT(The currently selected MPM requires threads which your system seems to lack)
32 AC_MSG_CHECKING(checking for replacement)
33 AC_MSG_RESULT(prefork selected)
40 dnl Threaded MPM's are not supported on Linux 2.0
41 dnl as on 2.0 the linuxthreads library uses SIGUSR1
42 dnl and SIGUSR2 internally
43 echo "Threaded MPM's are not supported on this platform"
44 AC_MSG_CHECKING(checking for replacement)
45 AC_MSG_RESULT(prefork selected)
54 APACHE_FAST_OUTPUT(server/mpm/Makefile)
56 if test "$apache_cv_mpm" = "shared"; then
62 MPM_NAME=$apache_cv_mpm
63 MPM_SUBDIR_NAME=$MPM_NAME
64 MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
65 MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
67 APACHE_SUBST(MPM_NAME)
68 APACHE_SUBST(MPM_SUBDIR_NAME)
69 MODLIST="$MODLIST mpm_${MPM_NAME}"
72 APACHE_SUBST(MPM_NAME)
73 APACHE_SUBST(MPM_SUBDIR_NAME)