configure 1.09 MB
Newer Older
powelld's avatar
powelld committed
18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000
  if test "$enable_charset_lite" != "no"; then
            :
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
$as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    static*)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES charset_lite"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_charset_lite.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_charset_lite.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_CHARSET_LITE_LDADD)
EOF
      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then

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


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"



  fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
$as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
    # Check whether --enable-charset-lite was given.
if test "${enable_charset_lite+set}" = set; then :
  enableval=$enable_charset_lite; force_charset_lite=$enableval
else
  enable_charset_lite=maybe-all
fi

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


  if test -z ""; then
    objects="mod_charset_lite.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_charset_lite.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_CHARSET_LITE_LDADD)
EOF
      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then

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


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"



  fi

fi



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

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


# Check whether --with-z was given.
if test "${with_z+set}" = set; then :
  withval=$with_z;
    if test "x$withval" != "xyes" && test "x$withval" != "x"; then
      ap_zlib_base="$withval"
      ap_zlib_with="yes"
    fi

fi

  if test "x$ap_zlib_base" = "x"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib location" >&5
$as_echo_n "checking for zlib location... " >&6; }
    if ${ap_cv_zlib+:} false; then :
  $as_echo_n "(cached) " >&6
else

      for dir in /usr/local /usr ; do
        if test -d $dir && test -f $dir/include/zlib.h; then
          ap_cv_zlib=$dir
          break
        fi
      done

fi

    ap_zlib_base=$ap_cv_zlib
    if test "x$ap_zlib_base" = "x"; then
      enable_deflate=no
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_zlib_base" >&5
$as_echo "$ap_zlib_base" >&6; }
    fi
  fi
  if test "$enable_deflate" != "no"; then
    ap_save_includes=$INCLUDES
    ap_save_ldflags=$LDFLAGS
    ap_save_cppflags=$CPPFLAGS
    ap_zlib_ldflags=""
    if test "$ap_zlib_base" != "/usr"; then

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
    INCLUDES="-I${ap_zlib_base}/include"
  else
    apr_addto_bugger="-I${ap_zlib_base}/include"
    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


  if test "x$MOD_INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I${ap_zlib_base}/include\""
    MOD_INCLUDES="-I${ap_zlib_base}/include"
  else
    apr_addto_bugger="-I${ap_zlib_base}/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_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 MOD_INCLUDES"
        MOD_INCLUDES="$MOD_INCLUDES $i"
      fi
    done
  fi

            CPPFLAGS="$CPPFLAGS $INCLUDES"

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

      if test "x$ap_platform_runtime_link_flag" != "x"; then

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

      fi
    fi

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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
$as_echo_n "checking for zlib library... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <zlib.h>
int
main ()
{
int i = Z_OK;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }

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

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
       enable_deflate=no
       if test "x$ap_zlib_with" = "x"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, zlib was missing or unusable" >&5
$as_echo "$as_me: WARNING: ... Error, zlib was missing or unusable" >&2;}
       else
         as_fn_error $? "... Error, zlib was missing or unusable" "$LINENO" 5
       fi

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    INCLUDES=$ap_save_includes
    LDFLAGS=$ap_save_ldflags
    CPPFLAGS=$ap_save_cppflags

  if test "x$LIBS" = "x-lz"; then
    test "x$silent" != "xyes" && echo "  nulling LIBS"
    LIBS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $LIBS; do
      if test "x$i" != "x-lz"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-lz\" from LIBS"
      LIBS=$apr_new_bugger
    fi
  fi

  fi

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


  if test -z ""; then
    objects="mod_deflate.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_deflate.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_DEFLATE_LDADD)
EOF
      if test ! -z "\$(MOD_DEFLATE_LDADD)"; then

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


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"



  fi





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

    _apmod_extra_msg=""
      case "$enable_xml2enc" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_xml2enc" = "static" -o "$enable_xml2enc" = "shared"; then
    :
  elif test "$enable_xml2enc" = "yes"; then
    enable_xml2enc=$module_default
  elif test "$enable_xml2enc" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
    else
      enable_xml2enc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_xml2enc" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
    else
      enable_xml2enc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_xml2enc" = "all" -o "$enable_xml2enc" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_xml2enc=no
    fi
  elif test "$enable_xml2enc" = "reallyall" -o "$enable_xml2enc" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_xml2enc" != "no" ; then
      enable_xml2enc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_xml2enc=no
    fi
  else
    enable_xml2enc=no
  fi
  if test "$enable_xml2enc" != "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 libxml2" >&5
$as_echo_n "checking for libxml2... " >&6; }
if ${ac_cv_libxml2+:} false; then :
  $as_echo_n "(cached) " >&6
else


# Check whether --with-libxml2 was given.
if test "${with_libxml2+set}" = set; then :
  withval=$with_libxml2; test_paths="${with_libxml2}"
else
  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
$as_echo_n "checking for libxml2... " >&6; }
    xml2_path=""
    for x in ${test_paths}; do
        if test -f "${x}/libxml/parser.h"; then
          xml2_path="${x}"
          break
        fi
    done
    if test -n "${xml2_path}" ; then
      ac_cv_libxml2=yes
      XML2_INCLUDES="${xml2_path}"
    else
      ac_cv_libxml2=no
    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
$as_echo "$ac_cv_libxml2" >&6; }

  if test "$ac_cv_libxml2" = "yes" ; then

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

  else
    enable_xml2enc=no
  fi

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


  if test -z ""; then
    objects="mod_xml2enc.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_xml2enc.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_XML2ENC_LDADD)
EOF
      if test ! -z "\$(MOD_XML2ENC_LDADD)"; then

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


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_XML2ENC_LDADD"



  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
$as_echo_n "checking whether to enable mod_proxy_html... " >&6; }
    # Check whether --enable-proxy-html was given.
if test "${enable_proxy_html+set}" = set; then :
  enableval=$enable_proxy_html; force_proxy_html=$enableval
else
  enable_proxy_html=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_proxy_html" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_html" = "static" -o "$enable_proxy_html" = "shared"; then
    :
  elif test "$enable_proxy_html" = "yes"; then
    enable_proxy_html=$module_default
  elif test "$enable_proxy_html" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
    else
      enable_proxy_html=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_html" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
    else
      enable_proxy_html=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_html" = "all" -o "$enable_proxy_html" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_html=no
    fi
  elif test "$enable_proxy_html" = "reallyall" -o "$enable_proxy_html" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_html" != "no" ; then
      enable_proxy_html=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_html=no
    fi
  else
    enable_proxy_html=no
  fi
  if test "$enable_proxy_html" != "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 libxml2" >&5
$as_echo_n "checking for libxml2... " >&6; }
if ${ac_cv_libxml2+:} false; then :
  $as_echo_n "(cached) " >&6
else


# Check whether --with-libxml2 was given.
if test "${with_libxml2+set}" = set; then :
  withval=$with_libxml2; test_paths="${with_libxml2}"
else
  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
$as_echo_n "checking for libxml2... " >&6; }
    xml2_path=""
    for x in ${test_paths}; do
        if test -f "${x}/libxml/parser.h"; then
          xml2_path="${x}"
          break
        fi
    done
    if test -n "${xml2_path}" ; then
      ac_cv_libxml2=yes
      XML2_INCLUDES="${xml2_path}"
    else
      ac_cv_libxml2=no
    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
$as_echo "$ac_cv_libxml2" >&6; }

  if test "$ac_cv_libxml2" = "yes" ; then

  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
    MOD_CFLAGS="-I${XML2_INCLUDES}"
  else
    apr_addto_bugger="-I${XML2_INCLUDES}"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"