configure 1.09 MB
Newer Older
powelld's avatar
powelld committed
26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000
if test "$enable_session_crypto" != ""; then
  session_mods_enable_crypto=$enable_session_crypto
else
  session_mods_enable_crypto=$session_mods_enable
fi
if test "$session_mods_enable_crypto" != "no"; then
  saved_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <apr_crypto.h>
int
main ()
{

#if APU_HAVE_CRYPTO == 0
#error no crypto support
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ap_HAVE_APR_CRYPTO="yes"
else
  ap_HAVE_APR_CRYPTO="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  CPPFLAGS="$saved_CPPFLAGS"
  if test $ap_HAVE_APR_CRYPTO = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&5
$as_echo "$as_me: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&2;}
    if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then
        as_fn_error $? "mod_session_crypto cannot be enabled" "$LINENO" 5
    fi
    session_mods_enable_crypto="no"
  fi
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
    # Check whether --enable-session-crypto was given.
if test "${enable_session_crypto+set}" = set; then :
  enableval=$enable_session_crypto; force_session_crypto=$enableval
else
  enable_session_crypto=$session_mods_enable_crypto
fi

    _apmod_extra_msg=""
      case "$enable_session_crypto" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session_crypto" = "static" -o "$enable_session_crypto" = "shared"; then
    :
  elif test "$enable_session_crypto" = "yes"; then
    enable_session_crypto=$module_default
  elif test "$enable_session_crypto" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
    else
      enable_session_crypto=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_crypto" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
    else
      enable_session_crypto=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_crypto" = "all" -o "$enable_session_crypto" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_crypto=no
    fi
  elif test "$enable_session_crypto" = "reallyall" -o "$enable_session_crypto" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session_crypto" != "no" ; then
      enable_session_crypto=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_crypto=no
    fi
  else
    enable_session_crypto=no
  fi
  if test "$enable_session_crypto" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
$as_echo "checking dependencies" >&6; }
            if test "$enable_session" = "no" ; then
                              enable_session_crypto=no
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&5
$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&2;}
                            elif test "$enable_session_crypto" = "static" && test "$enable_session" != "static" ; then
                              enable_session_crypto=$enable_session
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_session_crypto shared because mod_session is built shared\"" >&5
$as_echo "$as_me: WARNING: \"building mod_session_crypto shared because mod_session is built shared\"" >&2;}
                            else

if test "$session_mods_enable_crypto" = "no" ; then
  enable_session_crypto=no
fi

            fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
            if test "$enable_session_crypto" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_session_crypto 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_session_crypto$_apmod_extra_msg" >&5
$as_echo "$enable_session_crypto$_apmod_extra_msg" >&6; }
  if test "$enable_session_crypto" != "no"; then
    case "$enable_session_crypto" in
    static*)
      MODLIST="$MODLIST session_crypto"
      if test "session_crypto" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session_crypto"
      if test "$session_mods_enable_crypto" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_crypto"
      fi
      ;;
    esac


  if test -z "$session_crypto_objects"; then
    objects="mod_session_crypto.lo"
  else
    objects="$session_crypto_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_session_crypto.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_SESSION_CRYPTO_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_CRYPTO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_CRYPTO_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_CRYPTO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_CRYPTO_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_session_crypto.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_SESSION_CRYPTO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_CRYPTO_LDADD"



  fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
    # Check whether --enable-session-dbd was given.
if test "${enable_session_dbd+set}" = set; then :
  enableval=$enable_session_dbd; force_session_dbd=$enableval
else
  enable_session_dbd=$session_mods_enable
fi

    _apmod_extra_msg=""
      case "$enable_session_dbd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session_dbd" = "static" -o "$enable_session_dbd" = "shared"; then
    :
  elif test "$enable_session_dbd" = "yes"; then
    enable_session_dbd=$module_default
  elif test "$enable_session_dbd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
    else
      enable_session_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_dbd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
    else
      enable_session_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_dbd" = "all" -o "$enable_session_dbd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_dbd=no
    fi
  elif test "$enable_session_dbd" = "reallyall" -o "$enable_session_dbd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session_dbd" != "no" ; then
      enable_session_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_dbd=no
    fi
  else
    enable_session_dbd=no
  fi
  if test "$enable_session_dbd" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
$as_echo "checking dependencies" >&6; }
            if test "$enable_session" = "no" ; then
                              enable_session_dbd=no
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&5
$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&2;}
                            elif test "$enable_session_dbd" = "static" && test "$enable_session" != "static" ; then
                              enable_session_dbd=$enable_session
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_session_dbd shared because mod_session is built shared\"" >&5
$as_echo "$as_me: WARNING: \"building mod_session_dbd shared because mod_session is built shared\"" >&2;}
                            else
            :
            fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
            if test "$enable_session_dbd" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_session_dbd 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_session_dbd$_apmod_extra_msg" >&5
$as_echo "$enable_session_dbd$_apmod_extra_msg" >&6; }
  if test "$enable_session_dbd" != "no"; then
    case "$enable_session_dbd" in
    static*)
      MODLIST="$MODLIST session_dbd"
      if test "session_dbd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session_dbd"
      if test "$session_mods_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_dbd"
      fi
      ;;
    esac


  if test -z "$session_dbd_objects"; then
    objects="mod_session_dbd.lo"
  else
    objects="$session_dbd_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_session_dbd.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_SESSION_DBD_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_DBD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_DBD_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_DBD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_DBD_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_session_dbd.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_SESSION_DBD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_DBD_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; 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 INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  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"







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



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_shm" >&5
$as_echo_n "checking whether to enable mod_slotmem_shm... " >&6; }
    # Check whether --enable-slotmem-shm was given.
if test "${enable_slotmem_shm+set}" = set; then :
  enableval=$enable_slotmem_shm; force_slotmem_shm=$enableval
else
  enable_slotmem_shm=most
fi

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


  if test -z ""; then
    objects="mod_slotmem_shm.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_slotmem_shm.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_SLOTMEM_SHM_LDADD)
EOF
      if test ! -z "\$(MOD_SLOTMEM_SHM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_SHM_LDADD)\""
    AP_LIBS="\$(MOD_SLOTMEM_SHM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SLOTMEM_SHM_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_slotmem_shm.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_SLOTMEM_SHM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_SHM_LDADD"



  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_plain" >&5
$as_echo_n "checking whether to enable mod_slotmem_plain... " >&6; }
    # Check whether --enable-slotmem-plain was given.
if test "${enable_slotmem_plain+set}" = set; then :
  enableval=$enable_slotmem_plain; force_slotmem_plain=$enableval
else
  enable_slotmem_plain=maybe-all
fi

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


  if test -z ""; then
    objects="mod_slotmem_plain.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_slotmem_plain.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_SLOTMEM_PLAIN_LDADD)
EOF
      if test ! -z "\$(MOD_SLOTMEM_PLAIN_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_PLAIN_LDADD)\""
    AP_LIBS="\$(MOD_SLOTMEM_PLAIN_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SLOTMEM_PLAIN_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_slotmem_plain.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_SLOTMEM_PLAIN_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_PLAIN_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"





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


ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_mc_api.lo ssl_mc_private.lo ssl_scache.lo ssl_util_stapling.lo ssl_util.lo ssl_util_ssl.lo ssl_engine_ocsp.lo ssl_util_ocsp.lo "

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
$as_echo_n "checking whether to enable mod_ssl... " >&6; }
    # Check whether --enable-ssl was given.
if test "${enable_ssl+set}" = set; then :
  enableval=$enable_ssl; force_ssl=$enableval
else
  enable_ssl=most
fi

    _apmod_extra_msg=""
      case "$enable_ssl" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ssl" = "static" -o "$enable_ssl" = "shared"; then
    :
  elif test "$enable_ssl" = "yes"; then
    enable_ssl=$module_default
  elif test "$enable_ssl" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
    else
      enable_ssl=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ssl" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
    else
      enable_ssl=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ssl" = "all" -o "$enable_ssl" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ssl=no
    fi
  elif test "$enable_ssl" = "reallyall" -o "$enable_ssl" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ssl" != "no" ; then
      enable_ssl=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ssl=no
    fi
  else
    enable_ssl=no
  fi
  if test "$enable_ssl" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
$as_echo "checking dependencies" >&6; }
            :


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
$as_echo_n "checking for OpenSSL... " >&6; }
if ${ac_cv_openssl+:} false; then :
  $as_echo_n "(cached) " >&6
else

        ac_cv_openssl=no
    ap_openssl_found=""
    ap_openssl_base=""
    ap_openssl_libs=""
    ap_openssl_mod_cflags=""
    ap_openssl_mod_ldflags=""

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
$as_echo_n "checking for user-provided OpenSSL base directory... " >&6; }

# Check whether --with-ssl was given.
if test "${with_ssl+set}" = set; then :
  withval=$with_ssl;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_openssl_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_openssl_base" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
$as_echo "$ap_openssl_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      if test "x$ap_openssl_base" != "x" -a \
              -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
                        PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
        export PKG_CONFIG_PATH
      fi
      # Check whether --enable-ssl-staticlib-deps was given.
if test "${enable_ssl_staticlib_deps+set}" = set; then :
  enableval=$enable_ssl_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
      if test $? -eq 0; then
        ap_openssl_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; 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 CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; 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 MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
    ab_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; 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 ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; 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 LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; 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 MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; 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 LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do