configure 1.09 MB
Newer Older
powelld's avatar
powelld committed
32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 32047 32048 32049 32050 32051 32052 32053 32054 32055 32056 32057 32058 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 32282 32283 32284 32285 32286 32287 32288 32289 32290 32291 32292 32293 32294 32295 32296 32297 32298 32299 32300 32301 32302 32303 32304 32305 32306 32307 32308 32309 32310 32311 32312 32313 32314 32315 32316 32317 32318 32319 32320 32321 32322 32323 32324 32325 32326 32327 32328 32329 32330 32331 32332 32333 32334 32335 32336 32337 32338 32339 32340 32341 32342 32343 32344 32345 32346 32347 32348 32349 32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 32435 32436 32437 32438 32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 32467 32468 32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 32527 32528 32529 32530 32531 32532 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 32557 32558 32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 32829 32830 32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 32851 32852 32853 32854 32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 32924 32925 32926 32927 32928 32929 32930 32931 32932 32933 32934 32935 32936 32937 32938 32939 32940 32941 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 32952 32953 32954 32955 32956 32957 32958 32959 32960 32961 32962 32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 32973 32974 32975 32976 32977 32978 32979 32980 32981 32982 32983 32984 32985 32986 32987 32988 32989 32990 32991 32992 32993 32994 32995 32996 32997 32998 32999 33000
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_bytraffic.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYTRAFFIC_LDADD"



  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
$as_echo_n "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
    # Check whether --enable-lbmethod-bybusyness was given.
if test "${enable_lbmethod_bybusyness+set}" = set; then :
  enableval=$enable_lbmethod_bybusyness; force_lbmethod_bybusyness=$enableval
else
  enable_lbmethod_bybusyness=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_bybusyness" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_bybusyness" = "static" -o "$enable_lbmethod_bybusyness" = "shared"; then
    :
  elif test "$enable_lbmethod_bybusyness" = "yes"; then
    enable_lbmethod_bybusyness=$module_default
  elif test "$enable_lbmethod_bybusyness" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
    else
      enable_lbmethod_bybusyness=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bybusyness" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
    else
      enable_lbmethod_bybusyness=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bybusyness" = "all" -o "$enable_lbmethod_bybusyness" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bybusyness=no
    fi
  elif test "$enable_lbmethod_bybusyness" = "reallyall" -o "$enable_lbmethod_bybusyness" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_bybusyness" != "no" ; then
      enable_lbmethod_bybusyness=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bybusyness=no
    fi
  else
    enable_lbmethod_bybusyness=no
  fi
  if test "$enable_lbmethod_bybusyness" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
$as_echo "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_bybusyness=no
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bybusyness\"" >&5
$as_echo "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bybusyness\"" >&2;}
                            elif test "$enable_lbmethod_bybusyness" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_bybusyness=$enable_proxy_balancer
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_bybusyness shared because mod_proxy_balancer is built shared\"" >&5
$as_echo "$as_me: WARNING: \"building mod_lbmethod_bybusyness shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
$as_echo_n "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
            if test "$enable_lbmethod_bybusyness" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_bybusyness has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bybusyness$_apmod_extra_msg" >&5
$as_echo "$enable_lbmethod_bybusyness$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_bybusyness" != "no"; then
    case "$enable_lbmethod_bybusyness" in
    static*)
      MODLIST="$MODLIST lbmethod_bybusyness"
      if test "lbmethod_bybusyness" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_bybusyness"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bybusyness"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_bybusyness.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_bybusyness.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_bybusyness.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYBUSYNESS_LDADD"



  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
$as_echo_n "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
    # Check whether --enable-lbmethod-heartbeat was given.
if test "${enable_lbmethod_heartbeat+set}" = set; then :
  enableval=$enable_lbmethod_heartbeat; force_lbmethod_heartbeat=$enableval
else
  enable_lbmethod_heartbeat=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_heartbeat" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_heartbeat" = "static" -o "$enable_lbmethod_heartbeat" = "shared"; then
    :
  elif test "$enable_lbmethod_heartbeat" = "yes"; then
    enable_lbmethod_heartbeat=$module_default
  elif test "$enable_lbmethod_heartbeat" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
    else
      enable_lbmethod_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_heartbeat" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
    else
      enable_lbmethod_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_heartbeat" = "all" -o "$enable_lbmethod_heartbeat" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_heartbeat=no
    fi
  elif test "$enable_lbmethod_heartbeat" = "reallyall" -o "$enable_lbmethod_heartbeat" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_heartbeat" != "no" ; then
      enable_lbmethod_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_heartbeat=no
    fi
  else
    enable_lbmethod_heartbeat=no
  fi
  if test "$enable_lbmethod_heartbeat" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
$as_echo "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_heartbeat=no
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_heartbeat\"" >&5
$as_echo "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_heartbeat\"" >&2;}
                            elif test "$enable_lbmethod_heartbeat" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_heartbeat=$enable_proxy_balancer
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_heartbeat shared because mod_proxy_balancer is built shared\"" >&5
$as_echo "$as_me: WARNING: \"building mod_lbmethod_heartbeat shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
$as_echo_n "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
            if test "$enable_lbmethod_heartbeat" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_heartbeat has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_heartbeat$_apmod_extra_msg" >&5
$as_echo "$enable_lbmethod_heartbeat$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_heartbeat" != "no"; then
    case "$enable_lbmethod_heartbeat" in
    static*)
      MODLIST="$MODLIST lbmethod_heartbeat"
      if test "lbmethod_heartbeat" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_heartbeat"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_heartbeat"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_heartbeat.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_heartbeat.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_HEARTBEAT_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_heartbeat.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_HEARTBEAT_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPM to use by default" >&5
$as_echo_n "checking which MPM to use by default... " >&6; }

# Check whether --with-mpm was given.
if test "${with_mpm+set}" = set; then :
  withval=$with_mpm;
    default_mpm=$withval
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
$as_echo "$withval" >&6; };

else

                if ap_mpm_is_supported "winnt"; then
        default_mpm=winnt
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: winnt" >&5
$as_echo "winnt" >&6; }
    elif ap_mpm_is_supported "mpmt_os2"; then
        default_mpm=mpmt_os2
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpmt_os2" >&5
$as_echo "mpmt_os2" >&6; }
    elif ap_mpm_is_supported "event"; then
        default_mpm=event
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: event" >&5
$as_echo "event" >&6; }
    elif ap_mpm_is_supported "worker"; then
        default_mpm=worker
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: worker - event is not supported" >&5
$as_echo "worker - event is not supported" >&6; }
    else
        default_mpm=prefork
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefork - event and worker are not supported" >&5
$as_echo "prefork - event and worker are not supported" >&6; }
    fi

fi



    if ap_mpm_is_enabled $default_mpm; then
        :
    else
        eval "ap_enabled_mpm_$default_mpm=yes"
        ap_enabled_mpms="$ap_enabled_mpms $default_mpm "
    fi


# Check whether --enable-mpms-shared was given.
if test "${enable_mpms_shared+set}" = set; then :
  enableval=$enable_mpms_shared;
    if test "$enableval" = "no"; then
        mpm_build=static
    else
        mpm_build=shared
        if test "$enableval" = "yes"; then
            enableval=$default_mpm
        fi
        for i in $enableval; do
            if test "$i" = "all"; then
                for j in $ap_supported_shared_mpms; do
                    eval "enable_mpm_$j=shared"

    if ap_mpm_is_enabled $j; then
        :
    else
        eval "ap_enabled_mpm_$j=yes"
        ap_enabled_mpms="$ap_enabled_mpms $j "
    fi

                done
            else
                i=`echo $i | sed 's/-/_/g'`
                if ap_mpm_supports_shared $i; then
                    eval "enable_mpm_$i=shared"

    if ap_mpm_is_enabled $i; then
        :
    else
        eval "ap_enabled_mpm_$i=yes"
        ap_enabled_mpms="$ap_enabled_mpms $i "
    fi

                else
                    as_fn_error $? "MPM $i does not support dynamic loading." "$LINENO" 5
                fi
            fi
        done
    fi

else
  mpm_build=static
fi


for i in $ap_enabled_mpms; do
    if ap_mpm_is_supported $i; then
        :
    else
        as_fn_error $? "MPM $i is not supported on this platform." "$LINENO" 5
    fi
done

if test $mpm_build = "shared"; then
    eval "tmp=\$enable_mpm_$default_mpm"
    if test "$tmp" != "shared"; then
        as_fn_error $? "The default MPM ($default_mpm) must be included in --enable-mpms-shared.  Use --with-mpm to change the default MPM." "$LINENO" 5
    fi
fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"


if test $mpm_build = "shared"; then
    MPM_LIB=""
else
    MPM_LIB=server/mpm/$default_mpm/lib${default_mpm}.la
    MODLIST="$MODLIST mpm_${default_mpm}"
fi

MPM_SUBDIRS=$ap_enabled_mpms

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"





  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MPM_EVENT_LDADD"




    if ap_mpm_is_enabled event; then
        if test -z "event.lo fdqueue.lo"; then
            objects="event.lo"
        else
            objects="event.lo fdqueue.lo"
        fi

        if test -z ""; then
            mpmpath="server/mpm/event"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_event"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MPM_EVENT_LDADD)\""
    AP_LIBS="\$(MOD_MPM_EVENT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MPM_EVENT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libevent.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_event.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MPM_EVENT_LDADD)
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_event"
            # add default MPM to LoadModule list
            if test event = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_event"
            fi
        fi

    for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF

fi
done


    fi



    if ap_mpm_is_enabled prefork; then
        if test -z ""; then
            objects="prefork.lo"
        else
            objects=""
        fi

        if test -z ""; then
            mpmpath="server/mpm/prefork"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_prefork"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libprefork.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_prefork.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_prefork"
            # add default MPM to LoadModule list
            if test prefork = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_prefork"
            fi
        fi

    fi


winnt_objects="child.lo mpm_winnt.lo nt_eventlog.lo service.lo"

    if ap_mpm_is_enabled winnt; then
        if test -z "$winnt_objects"; then
            objects="winnt.lo"
        else
            objects="$winnt_objects"
        fi

        if test -z ""; then
            mpmpath="server/mpm/winnt"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_winnt"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libwinnt.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_winnt.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_winnt"
            # add default MPM to LoadModule list
            if test winnt = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_winnt"
            fi
        fi

    fi




    if ap_mpm_is_enabled worker; then
        if test -z "worker.lo fdqueue.lo"; then
            objects="worker.lo"
        else
            objects="worker.lo fdqueue.lo"
        fi

        if test -z ""; then
            mpmpath="server/mpm/worker"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_worker"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libworker.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_worker.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_worker"
            # add default MPM to LoadModule list
            if test worker = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_worker"
            fi
        fi

    for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF

fi
done


    fi




  current_dir=arch/unix
  modpath_current=modules/arch/unix
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d arch/unix || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


if ap_mpm_is_enabled "worker" \
   || ap_mpm_is_enabled "event" \
   || ap_mpm_is_enabled "prefork"; then
    unixd_mods_enable=yes
else
    unixd_mods_enable=no
fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unixd" >&5
$as_echo_n "checking whether to enable mod_unixd... " >&6; }
    # Check whether --enable-unixd was given.
if test "${enable_unixd+set}" = set; then :
  enableval=$enable_unixd; force_unixd=$enableval
else
  enable_unixd=$unixd_mods_enable
fi

    _apmod_extra_msg=""
      case "$enable_unixd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_unixd" = "static" -o "$enable_unixd" = "shared"; then
    :
  elif test "$enable_unixd" = "yes"; then
    enable_unixd=$module_default
  elif test "$enable_unixd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
    else
      enable_unixd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unixd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
    else
      enable_unixd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unixd" = "all" -o "$enable_unixd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unixd=no
    fi
  elif test "$enable_unixd" = "reallyall" -o "$enable_unixd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_unixd" != "no" ; then
      enable_unixd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unixd=no
    fi
  else
    enable_unixd=no
  fi
  if test "$enable_unixd" != "no"; then
            :
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unixd$_apmod_extra_msg" >&5
$as_echo "$enable_unixd$_apmod_extra_msg" >&6; }
  if test "$enable_unixd" != "no"; then
    case "$enable_unixd" in
    static*)
      MODLIST="$MODLIST unixd"
      if test "unixd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES unixd"
      if test "$unixd_mods_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unixd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_unixd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_unixd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_UNIXD_LDADD)
EOF
      if test ! -z "\$(MOD_UNIXD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIXD_LDADD)\""
    AP_LIBS="\$(MOD_UNIXD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_UNIXD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_unixd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIXD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIXD_LDADD"



  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
$as_echo_n "checking whether to enable mod_privileges... " >&6; }
    # Check whether --enable-privileges was given.
if test "${enable_privileges+set}" = set; then :
  enableval=$enable_privileges; force_privileges=$enableval
else
  enable_privileges=no
fi

    _apmod_extra_msg=""
      case "$enable_privileges" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_privileges" = "static" -o "$enable_privileges" = "shared"; then