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={beos|event|worker|prefork|mpmt_os2|perchild|leader|threadpool}),[
7 if test "x$APACHE_MPM" = "x"; then
11 AC_MSG_RESULT($APACHE_MPM)
13 apache_cv_mpm=$APACHE_MPM
17 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "perchild" -o "$apache_cv_mpm" = "leader" -o "$apache_cv_mpm" = "threadpool" ; then
24 ap_mpm_is_experimental ()
26 if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "perchild" -o "$apache_cv_mpm" = "leader" -o "$apache_cv_mpm" = "threadpool" ; then
33 if ap_mpm_is_threaded; then
34 APR_CHECK_APR_DEFINE(APR_HAS_THREADS)
36 if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
37 AC_MSG_RESULT(The currently selected MPM requires threads which your system seems to lack)
38 AC_MSG_CHECKING(checking for replacement)
39 AC_MSG_RESULT(prefork selected)
44 APACHE_FAST_OUTPUT(server/mpm/Makefile)
46 MPM_NAME=$apache_cv_mpm
47 if ap_mpm_is_experimental; then
48 AC_MSG_WARN(You have selected an EXPERIMENTAL MPM. Be warned!)
49 MPM_SUBDIR_NAME=experimental/$MPM_NAME
51 MPM_SUBDIR_NAME=$MPM_NAME
53 MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
54 MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
56 if test ! -f "$abs_srcdir/$MPM_DIR/mpm.h"; then
57 AC_MSG_ERROR(the selected mpm -- $apache_cv_mpm -- is not supported)
60 APACHE_SUBST(MPM_NAME)
61 APACHE_SUBST(MPM_SUBDIR_NAME)
62 MODLIST="$MODLIST mpm_${MPM_NAME}"