#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_default_prefix=/usr/local/apache2
ac_help="$ac_help
  --enable-layout=LAYOUT"
ac_help="$ac_help
  --with-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
                          or the full path to apr-config"
ac_help="$ac_help
  --with-apr-util=DIR     prefix for installed APU, or path to APU build tree"
ac_help="$ac_help
  --with-port=PORT        Port on which to listen (default is 80)"
ac_help="$ac_help
  --enable-maintainer-mode Turn on debugging and compile time warnings"
ac_help="$ac_help
  --enable-modules=MODULE-LIST Modules to enable"
ac_help="$ac_help
  --enable-mods-shared=MODULE-LIST Shared modules to enable"
ac_help="$ac_help
  --disable-access        host-based access control"
ac_help="$ac_help
  --disable-auth          user-based access control"
ac_help="$ac_help
  --enable-auth-anon      anonymous user access"
ac_help="$ac_help
  --enable-auth-dbm       DBM-based access databases"
ac_help="$ac_help
  --enable-auth-digest    RFC2617 Digest authentication"
ac_help="$ac_help
  --enable-file-cache     File cache"
ac_help="$ac_help
  --enable-echo           ECHO server"
ac_help="$ac_help
  --disable-charset-lite  character set translation"
ac_help="$ac_help
  --enable-charset-lite   character set translation"
ac_help="$ac_help
  --enable-cache          dynamic file caching"
ac_help="$ac_help
  --enable-disk-cache     disk caching module"
ac_help="$ac_help
  --enable-mem-cache      memory caching module"
ac_help="$ac_help
  --enable-example        example and demo module"
ac_help="$ac_help
  --enable-ext-filter     external filter module"
ac_help="$ac_help
  --enable-case-filter    example uppercase conversion filter"
ac_help="$ac_help
  --enable-case-filter-in example uppercase conversion input filter"
ac_help="$ac_help
  --disable-include       Server Side Includes"
ac_help="$ac_help
  --enable-deflate        Deflate transfer encoding support"
ac_help="$ac_help
  --with-z=DIR            use a specific zlib library"
ac_help="$ac_help
  --disable-log-config    logging configuration"
ac_help="$ac_help
  --disable-env           clearing/setting of ENV vars"
ac_help="$ac_help
  --enable-mime-magic     automagically determining MIME type"
ac_help="$ac_help
  --enable-cern-meta      CERN-type meta files"
ac_help="$ac_help
  --enable-expires        Expires header control"
ac_help="$ac_help
  --enable-headers        HTTP header control"
ac_help="$ac_help
  --enable-usertrack      user-session tracking"
ac_help="$ac_help
  --enable-unique-id      per-request unique ids"
ac_help="$ac_help
  --disable-setenvif      basing ENV vars on headers"
ac_help="$ac_help
  --enable-proxy          Apache proxy module"
ac_help="$ac_help
  --enable-proxy-connect  Apache proxy CONNECT module"
ac_help="$ac_help
  --enable-proxy-ftp      Apache proxy FTP module"
ac_help="$ac_help
  --enable-proxy-http     Apache proxy HTTP module"
ac_help="$ac_help
  --enable-ssl            SSL/TLS support (mod_ssl)"
ac_help="$ac_help
  --with-ssl=DIR          SSL/TLS toolkit (OpenSSL)"
ac_help="$ac_help
  --enable-optional-hook-export example optional hook exporter"
ac_help="$ac_help
  --enable-optional-hook-import example optional hook importer"
ac_help="$ac_help
  --enable-optional-fn-import example optional function importer"
ac_help="$ac_help
  --enable-optional-fn-export example optional function exporter"
ac_help="$ac_help
  --enable-bucketeer      buckets manipulation filter"
ac_help="$ac_help
  --with-mpm=MPM          Choose the process model for Apache to use.
                          MPM={beos|worker|prefork|mpmt_os2|perchild|leader|threadpool}"
ac_help="$ac_help
  --enable-static-support Build a statically linked version the support binaries"
ac_help="$ac_help
  --enable-static-htpasswd Build a statically linked version of htpasswd"
ac_help="$ac_help
  --enable-static-htdigest Build a statically linked version of htdigest"
ac_help="$ac_help
  --enable-static-rotatelogs Build a statically linked version of rotatelogs"
ac_help="$ac_help
  --enable-static-logresolve Build a statically linked version of logresolve"
ac_help="$ac_help
  --enable-static-htdbm   Build a statically linked version of htdbm"
ac_help="$ac_help
  --enable-static-ab      Build a statically linked version of ab"
ac_help="$ac_help
  --enable-static-checkgid Build a statically linked version of checkgid"
ac_help="$ac_help
  --enable-http           HTTP protocol handling"
ac_help="$ac_help
  --disable-mime          mapping of file-extension to MIME"
ac_help="$ac_help
  --with-module=module-type:module-file Enable module-file in the modules/<module-type> directory."
ac_help="$ac_help
  --enable-dav            WebDAV protocol handling"
ac_help="$ac_help
  --disable-status        process/thread monitoring"
ac_help="$ac_help
  --disable-autoindex     directory listing"
ac_help="$ac_help
  --disable-asis          as-is filetypes"
ac_help="$ac_help
  --enable-info           server information"
ac_help="$ac_help
  --enable-suexec         set uid and gid for spawned processes"
ac_help="$ac_help
  --disable-cgid          CGI scripts"
ac_help="$ac_help
  --enable-cgi            CGI scripts"
ac_help="$ac_help
  --disable-cgi           CGI scripts"
ac_help="$ac_help
  --enable-cgid           CGI scripts"
ac_help="$ac_help
  --enable-dav-fs         DAV provider for the filesystem"
ac_help="$ac_help
  --enable-vhost-alias    mass hosting module"
ac_help="$ac_help
  --disable-negotiation   content negoatiation"
ac_help="$ac_help
  --disable-dir           directory request handling"
ac_help="$ac_help
  --disable-imap          internal imagemaps"
ac_help="$ac_help
  --disable-actions       Action triggering on requests"
ac_help="$ac_help
  --enable-speling        correct common URL misspellings"
ac_help="$ac_help
  --disable-userdir       mapping of user requests"
ac_help="$ac_help
  --disable-alias         translation of requests"
ac_help="$ac_help
  --enable-rewrite        regex URL translation"
ac_help="$ac_help
  --enable-so             DSO capability"
ac_help="$ac_help
  --with-program-name     alternate executable name"
ac_help="$ac_help
  --with-suexec-bin       Path to suexec binary"
ac_help="$ac_help
  --with-suexec-caller    User allowed to call SuExec"
ac_help="$ac_help
  --with-suexec-userdir   User subdirectory"
ac_help="$ac_help
  --with-suexec-docroot   SuExec root directory"
ac_help="$ac_help
  --with-suexec-uidmin    Minimal allowed UID"
ac_help="$ac_help
  --with-suexec-gidmin    Minimal allowed GID"
ac_help="$ac_help
  --with-suexec-logfile   Set the logfile"
ac_help="$ac_help
  --with-suexec-safepath  Set the safepath"
ac_help="$ac_help
  --with-suexec-umask     umask for suexec'd process"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=ABOUT_APACHE

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi




ac_aux_dir=
for ac_dir in srclib/apr/build $srcdir/srclib/apr/build; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in srclib/apr/build $srcdir/srclib/apr/build" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.












 























































































































































# Check whether --enable-layout or --disable-layout was given.
if test "${enable_layout+set}" = set; then
  enableval="$enable_layout"
  
  LAYOUT=$enableval

fi


if test -z "$LAYOUT"; then
  LAYOUT="Apache"
fi

  if test ! -f $srcdir/config.layout; then
    echo "** Error: Layout file $srcdir/config.layout not found"
    echo "** Error: Cannot use undefined layout '$LAYOUT'"
    exit 1
  fi
  pldconf=./config.pld
  
  sed -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
      -e "s/^[ 	]*//g" \
      -e "s/:[ 	]*/=\'/g" \
      -e "s/[ 	]*$/'/g" \
      $srcdir/config.layout > $pldconf
  layout_name=$LAYOUT
  . $pldconf
  rm $pldconf
  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
             sysconfdir datadir errordir iconsdir htdocsdir cgidir \
             includedir localstatedir runtimedir logfiledir libdir \
             manualdir proxycachedir installbuilddir; do
    eval "val=\"\$$var\""
    case $val in
      *+)
        val=`echo $val | sed -e 's;\+$;;'`
        eval "$var=\"\$val\""
        autosuffix=yes
        ;;
      *)
        autosuffix=no
        ;;
    esac
    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
    if test "$autosuffix" = "yes"; then
      if echo $val | grep apache >/dev/null; then
        addtarget=no
      else
        addtarget=yes
      fi
      if test "$addtarget" = "yes"; then
        val="$val/apache2"
      fi
    fi
    eval "$var='$val'"
  done
  


echo $ac_n "checking for chosen layout""... $ac_c" 1>&6
echo "configure:952: checking for chosen layout" >&5
echo "$ac_t""$layout_name" 1>&6



ac_prev=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  case $ac_option in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  esac
done

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" 1>&2; exit 1; };;
  esac
done




  
  
ap_last=
ap_cur="$exec_prefix"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_exec_prefix="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
  

  
ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_exec_prefix="$exp_exec_prefix"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
  


  
  
ap_last=
ap_cur="$bindir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_bindir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
  

  
ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_bindir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_bindir="$exp_bindir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
  


  
  
ap_last=
ap_cur="$sbindir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_sbindir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
  

  
ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_sbindir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_sbindir="$exp_sbindir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
  


  
  
ap_last=
ap_cur="$libdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_libdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
  

  
ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_libdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_libdir="$exp_libdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
  


  
  
ap_last=
ap_cur="$libexecdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_libexecdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
  

  
ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_libexecdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_libexecdir="$exp_libexecdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
  


  
  
ap_last=
ap_cur="$mandir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_mandir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
  

  
ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_mandir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_mandir="$exp_mandir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
  


  
  
ap_last=
ap_cur="$sysconfdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_sysconfdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
  

  
ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_sysconfdir="$exp_sysconfdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
  


  
  
ap_last=
ap_cur="$datadir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_datadir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
  

  
ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_datadir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_datadir="$exp_datadir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
  


  
  
ap_last=
ap_cur="$installbuilddir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_installbuilddir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
  

  
ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_installbuilddir="$exp_installbuilddir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
  


  
  
ap_last=
ap_cur="$errordir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_errordir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
  

  
ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_errordir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_errordir="$exp_errordir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
  


  
  
ap_last=
ap_cur="$iconsdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_iconsdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
  

  
ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_iconsdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_iconsdir="$exp_iconsdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
  


  
  
ap_last=
ap_cur="$htdocsdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_htdocsdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
  

  
ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_htdocsdir="$exp_htdocsdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
  


  
  
ap_last=
ap_cur="$manualdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_manualdir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
  

  
ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_manualdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_manualdir="$exp_manualdir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
  


  
  
ap_last=
ap_cur="$cgidir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_cgidir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
  

  
ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_cgidir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_cgidir="$exp_cgidir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
  


  
  
ap_last=
ap_cur="$includedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_includedir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
  

  
ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_includedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_includedir="$exp_includedir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
  


  
  
ap_last=
ap_cur="$localstatedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_localstatedir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
  

  
ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_localstatedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_localstatedir="$exp_localstatedir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
  


  
  
ap_last=
ap_cur="$runtimedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_runtimedir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
  

  
ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_runtimedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_runtimedir="$exp_runtimedir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
  


  
  
ap_last=
ap_cur="$logfiledir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_logfiledir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
  

  
ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_logfiledir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_logfiledir="$exp_logfiledir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
  


  
  
ap_last=
ap_cur="$proxycachedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_proxycachedir="${ap_cur}"

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
  

  
ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_proxycachedir="$exp_proxycachedir"
fi

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
  





  apr_ste_save_CPPFLAGS="$CPPFLAGS"


  apr_ste_save_CFLAGS="$CFLAGS"


  apr_ste_save_CXXFLAGS="$CXXFLAGS"


  apr_ste_save_LDFLAGS="$LDFLAGS"


  apr_ste_save_LIBS="$LIBS"


  apr_ste_save_INCLUDES="$INCLUDES"



  rm -f config.nice
  cat >config.nice<<EOF
#! /bin/sh
#
# Created by configure

EOF
  if test -n "$CFLAGS"; then
    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
  fi
  if test -n "$CPPFLAGS"; then
    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
  fi
  if test -n "$LDFLAGS"; then
    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
  fi
  if test -n "$LIBS"; then
    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
  fi
  if test -n "$INCLUDES"; then
    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
  fi
  if test -n "$NOTEST_CFLAGS"; then
    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_CPPFLAGS"; then
    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_LDFLAGS"; then
    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_LIBS"; then
    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
  fi

  for arg in $0 "$@"; do
    echo "\"$arg\" \\" >> config.nice
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice


nl='
'

  echo $ac_n "checking for working mkdir -p""... $ac_c" 1>&6
echo "configure:1731: checking for working mkdir -p" >&5
if eval "test \"`echo '$''{'ac_cv_mkdir_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    test -d conftestdir && rm -rf conftestdir
    mkdir -p conftestdir/somedir >/dev/null 2>&1
    if test -d conftestdir/somedir; then
      ac_cv_mkdir_p=yes
    else
      ac_cv_mkdir_p=no
    fi
    rm -rf conftestdir
  
fi

echo "$ac_t""$ac_cv_mkdir_p" 1>&6
  if test "$ac_cv_mkdir_p" = "yes"; then
      mkdir_p="mkdir -p"
  else
      mkdir_p="$top_srcdir/build/mkdir.sh"
  fi





# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:1785: checking host system type" >&5

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:1806: checking target system type" >&5

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:1824: checking build system type" >&5

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-


orig_prefix="$prefix"

echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"


  apr_found="no"

  if test "$ac_cv_emxos2" = "yes"; then
    # Scripts don't pass test -x on OS/2
    TEST_X="test -f"
  else
    TEST_X="test -x"
  fi

  echo $ac_n "checking for APR""... $ac_c" 1>&6
echo "configure:1862: checking for APR" >&5
  # Check whether --with-apr or --without-apr was given.
if test "${with_apr+set}" = set; then
  withval="$with_apr"
  
    if test "$withval" = "no" || test "$withval" = "yes"; then
      { echo "configure: error: --with-apr requires a directory to be provided" 1>&2; exit 1; }
    fi

    if $TEST_X "$withval/bin/apr-config"; then
      apr_found="yes"
      apr_config="$withval/bin/apr-config"
    elif $TEST_X "$withval/apr-config"; then
      apr_found="yes"
      apr_config="$withval/apr-config"
    elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
      apr_found="yes"
      apr_config="$withval"
    fi

        if test "$apr_found" != "yes"; then
      { echo "configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
build directory, or an apr-config file." 1>&2; exit 1; }
    fi
  
else
  
    if test -n "" && test "" = "1"; then
      if apr-config --help > /dev/null 2>&1 ; then
        apr_found="yes"
        apr_config="apr-config"
      else
                for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
          if $TEST_X "$lookdir/bin/apr-config"; then
            apr_found="yes"
            apr_config="$lookdir/bin/apr-config"
            break
          fi
        done
      fi
    fi
        if test -d ""$srcdir/srclib/apr""; then
      apr_temp_abs_srcdir="`cd "$srcdir/srclib/apr" && pwd`"
      if test "$apr_found" = "yes" \
         && test "`$apr_config --srcdir`" = "$apr_temp_abs_srcdir"; then
                        apr_found="no"
      fi
            if test "$apr_found" = "no"; then
        apr_found="reconfig"
        if test -n ""./srclib/apr""; then
          apr_config=""./srclib/apr"/apr-config"
        else
          apr_config=""$srcdir/srclib/apr"/apr-config"
        fi
      fi
    fi
  
fi


  echo "$ac_t""$apr_found" 1>&6


if test "$apr_found" = "no"; then
  { echo "configure: error: APR not found.  Please read the documentation." 1>&2; exit 1; }
fi

if test "$apr_found" = "reconfig"; then
  
  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


  echo "configuring package in srclib/apr now"
  ac_popdir=`pwd`
  apr_config_subdirs="srclib/apr"
  test -d srclib/apr || $mkdir_p srclib/apr
  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
  cd srclib/apr

      # A "../" for each directory in /$config_subdirs.
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`

  # Make the cache file pathname absolute for the subdirs
  # required to correctly handle subdirs that might actually
  # be symlinks
  case "$cache_file" in
  /*) # already absolute
    ac_sub_cache_file=$cache_file ;;
  *)  # Was relative path.
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir "$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir"
  then :
    echo "srclib/apr configured properly"
  else
    echo "configure failed for srclib/apr"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi


    AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
fi


  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"`$apr_config --cflags`\""
    CFLAGS="`$apr_config --cflags`"
  else
    apr_addto_bugger="`$apr_config --cflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi


  if test "x$CPPFLAGS" = "x"; then
    echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
    CPPFLAGS="`$apr_config --cppflags`"
  else
    apr_addto_bugger="`$apr_config --cppflags`"
    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
        echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
    LDFLAGS="`$apr_config --ldflags`"
  else
    apr_addto_bugger="`$apr_config --ldflags`"
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"`$apr_config --includes`\""
    INCLUDES="`$apr_config --includes`"
  else
    apr_addto_bugger="`$apr_config --includes`"
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

SHLIBPATH_VAR=`$apr_config --shlib-path-var`

echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"


  apu_found="no"

  echo $ac_n "checking for APR-util""... $ac_c" 1>&6
echo "configure:2117: checking for APR-util" >&5
  # Check whether --with-apr-util or --without-apr-util was given.
if test "${with_apr_util+set}" = set; then
  withval="$with_apr_util"
  
    if test "$withval" = "no" || test "$withval" = "yes"; then
      { echo "configure: error: --with-apr-util requires a directory to be provided" 1>&2; exit 1; }
    fi

    if test -x "$withval/bin/apu-config"; then
       apu_found="yes"
       apu_config="$withval/bin/apu-config"
    elif test -x "$withval/apu-config"; then
              apu_found="yes"
       apu_config="$withval/apu-config"
    elif test -x "$withval" && $withval --help > /dev/null 2>&1 ; then
       apu_found="yes"
       apu_config="$withval"
    fi

            if test "$apu_found" != "yes"; then
      { echo "configure: error: 
The directory given to --with-apr-util does not specify a prefix for an 
installed APU, nor an APR-util build directory." 1>&2; exit 1; }
    fi
  
else
  
    if test -n "" && test "" = "1"; then
      if apu-config --help > /dev/null 2>&1 ; then
        apu_found="yes"
        apu_config="apu-config"
      else
                for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
          if test -x "$lookdir/bin/apu-config"; then
            apu_found="yes"
            apu_config="$lookdir/bin/apu-config"
            break
          fi
        done
      fi
    fi
        if test -d ""$srcdir/srclib/apr-util""; then
      apu_temp_abs_srcdir="`cd "$srcdir/srclib/apr-util" && pwd`"
      if test "$apu_found" = "yes" \
         && test "`$apu_config --srcdir`" = "$apu_temp_abs_srcdir"; then
                        apu_found="no"
      fi
            if test "$apu_found" = "no"; then
        apu_found="reconfig"
        if test -n ""./srclib/apr-util""; then
          apu_config=""./srclib/apr-util"/apu-config"
        else
          apu_config=""$srcdir/srclib/apr-util"/apu-config"
        fi
      fi
    fi
  
fi


  echo "$ac_t""$apu_found" 1>&6


if test "$apu_found" = "no"; then
  { echo "configure: error: APR-util not found.  Please read the documentation." 1>&2; exit 1; }
fi

if test "$apu_found" = "reconfig"; then
  
  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


  echo "configuring package in srclib/apr-util now"
  ac_popdir=`pwd`
  apr_config_subdirs="srclib/apr-util"
  test -d srclib/apr-util || $mkdir_p srclib/apr-util
  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
  cd srclib/apr-util

      # A "../" for each directory in /$config_subdirs.
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`

  # Make the cache file pathname absolute for the subdirs
  # required to correctly handle subdirs that might actually
  # be symlinks
  case "$cache_file" in
  /*) # already absolute
    ac_sub_cache_file=$cache_file ;;
  *)  # Was relative path.
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir "--with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir"
  then :
    echo "srclib/apr-util configured properly"
  else
    echo "configure failed for srclib/apr-util"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi


    AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
  AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
fi


  if test "x$LDFLAGS" = "x"; then
    echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
    LDFLAGS="`$apu_config --ldflags`"
  else
    apr_addto_bugger="`$apu_config --ldflags`"
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"`$apu_config --includes`\""
    INCLUDES="`$apu_config --includes`"
  else
    apr_addto_bugger="`$apu_config --includes`"
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"


  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


  echo "configuring package in srclib/pcre now"
  ac_popdir=`pwd`
  apr_config_subdirs="srclib/pcre"
  test -d srclib/pcre || $mkdir_p srclib/pcre
  ac_abs_srcdir=`(cd $srcdir/srclib/pcre && pwd)`
  cd srclib/pcre

      # A "../" for each directory in /$config_subdirs.
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`

  # Make the cache file pathname absolute for the subdirs
  # required to correctly handle subdirs that might actually
  # be symlinks
  case "$cache_file" in
  /*) # already absolute
    ac_sub_cache_file=$cache_file ;;
  *)  # Was relative path.
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir "--prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir"
  then :
    echo "srclib/pcre configured properly"
  else
    echo "configure failed for srclib/pcre"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi



echo $ac_n "${nl}Configuring Apache httpd ...${nl}"

abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`


if test "$abs_builddir" != "$abs_srcdir"; then
  USE_VPATH=1
  
  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_builddir)/modules/proxy -I\$(top_srcdir)/modules/proxy -I\$(top_builddir)/modules/filters -I\$(top_srcdir)/modules/filters -I\$(top_builddir)/include -I\$(top_srcdir)/include\""
    INCLUDES="-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_builddir)/modules/proxy -I\$(top_srcdir)/modules/proxy -I\$(top_builddir)/modules/filters -I\$(top_srcdir)/modules/filters -I\$(top_builddir)/include -I\$(top_srcdir)/include"
  else
    apr_addto_bugger="-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_builddir)/modules/proxy -I\$(top_srcdir)/modules/proxy -I\$(top_builddir)/modules/filters -I\$(top_srcdir)/modules/filters -I\$(top_builddir)/include -I\$(top_srcdir)/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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

else
  
  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include\""
    INCLUDES="-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include"
  else
    apr_addto_bugger="-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

fi

echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"

case $host in
  *os2*)
      # Use a custom made libtool replacement
      echo "using aplibtool"
      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
      SH_LIBTOOL="$LIBTOOL --shared --export-all"
      SH_LIBS="\$(ALL_LIBS)"
      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
      MK_IMPLIB="emximp"
      other_targets="$other_targets os2core"
      INSTALL_PROG_FLAGS="-e .exe"
      SHLTCFLAGS=""
      LTCFLAGS=""
      ;;
  *)
      if test "x$LTFLAGS" = "x"; then
          LTFLAGS='--silent'
      fi
      my_libtool=`$apr_config --apr-libtool`
      LIBTOOL="$my_libtool \$(LTFLAGS)"
      libtoolversion=`$my_libtool --version`
      case $libtoolversion in
          *1.4*)
              SH_LIBTOOL='$(LIBTOOL)'
              SHLTCFLAGS="-prefer-pic"
              LTCFLAGS="-prefer-non-pic -static"
              ;;
          *)
              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
              SHLTCFLAGS=""
              LTCFLAGS=""
              ;;
      esac
      ;;
esac

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
  


AP_SIG_GRACEFUL=USR1

case $host in
  *-apple-aux3*)
      
  echo "  forcing APACHE_MPM to \"prefork\""
  APACHE_MPM="prefork"

      
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *-beos*)
      
  echo "  forcing APACHE_MPM to \"beos\""
  APACHE_MPM="beos"

      
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *os2_emx*)
      
  echo "  forcing APACHE_MPM to \"mpmt_os2\""
  APACHE_MPM="mpmt_os2"

      
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *-linux-*)
      case `uname -r` in
        2.0* ) 
            AP_SIG_GRACEFUL=WINCH
            ;;
        2.[2-9]* ) 
            
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

            ;;
        * )
            ;;
      esac
      ;;
  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
      
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *-solaris2*)
            ap_platform_runtime_link_flag="-R"
                  case `uname -r` in
        5.567*)
            ;;
        * )
            
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

            ;;
      esac
      ;;
  *cygwin*)
      
  echo "  forcing APACHE_MPM to \"prefork\""
  APACHE_MPM="prefork"

      
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *aix*)
      aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
      if test $aixver -ge 4320; then
        
  echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      fi
      ;;
esac



# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2611: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$RM" in
  /*)
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_RM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
RM="$ac_cv_path_RM"
if test -n "$RM"; then
  echo "$ac_t""$RM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2648: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AWK" && break
done

# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2680: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2710: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2761: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:2793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 2804 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:2840: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
else
  GCC=
fi

ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:2868: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi

echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:2900: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 2915 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 2932 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 2949 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:2991: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_IFS"

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
fi
echo "$ac_t""$INSTALL" 1>&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3044: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test $host != $build; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3073: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3105: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  RANLIB="true"
fi
fi


echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:3139: checking for AIX" >&5
cat > conftest.$ac_ext <<EOF
#line 3141 "configure"
#include "confdefs.h"
#ifdef _AIX
  yes
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
#define _ALL_SOURCE 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*


echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:3163: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$ac_t""yes" 1>&6
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$ac_t""no" 1>&6
  ISC=
fi

ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
echo "configure:3185: checking for minix/config.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3190 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  MINIX=yes
else
  echo "$ac_t""no" 1>&6
MINIX=
fi

if test "$MINIX" = yes; then
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  cat >> confdefs.h <<\EOF
#define _POSIX_1_SOURCE 2
EOF

  cat >> confdefs.h <<\EOF
#define _MINIX 1
EOF

fi






echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3238: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3243 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3268 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3286 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 3307 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

for ac_hdr in \
string.h \
limits.h \
unistd.h \
sys/socket.h \
pwd.h \
grp.h \
strings.h \
sys/processor.h \
sys/sem.h

do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3355: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3360 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:3392: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3397 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
int main() {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi



echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:3436: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3441 "configure"
#include "confdefs.h"

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

if test "$ac_cv_prog_gcc" = "yes"; then
  
  if test "x$NOTEST_CPPFLAGS" = "x"; then
    echo "  setting NOTEST_CPPFLAGS to \"-DAP_HAVE_DESIGNATED_INITIALIZER\""
    NOTEST_CPPFLAGS="-DAP_HAVE_DESIGNATED_INITIALIZER"
  else
    apr_addto_bugger="-DAP_HAVE_DESIGNATED_INITIALIZER"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to NOTEST_CPPFLAGS"
        NOTEST_CPPFLAGS="$NOTEST_CPPFLAGS $i"
      fi
    done
  fi

fi



for ac_func in \
getpwnam \
getgrnam \
initgroups \
bindprocessor \
timegm \

do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3545: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3550 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:3599: checking for tm_gmtoff in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm_gmtoff'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3604 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int main() {
struct tm tm; tm.tm_gmtoff;
; return 0; }
EOF
if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_tm_gmtoff=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_tm_gmtoff=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_struct_tm_gmtoff" 1>&6
if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_GMTOFF 1
EOF

fi


case $host in
    *aix*)
        # for 32-bit builds, increase MAXDATA to allow lots of threads
        if test x$OBJECT_MODE != x64; then
            OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
        fi
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
        ;;
    *os390*)
        OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
        ;;
    *)
        OS_SPECIFIC_VARS=""
esac
      
# Check whether --with-port or --without-port was given.
if test "${with_port+set}" = set; then
  withval="$with_port"
  if test "$withval" = "yes"; then { echo "configure: error: 'option --with-port requires a value (the TCP port number)'" 1>&2; exit 1; }; else PORT="$withval"; fi
else
  PORT=80
fi


# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval="$enable_maintainer_mode"
  
  
  if test "x$CPPFLAGS" = "x"; then
    echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
    CPPFLAGS="-DAP_DEBUG"
  else
    apr_addto_bugger="-DAP_DEBUG"
    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
        echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


fi

prefix="$orig_prefix"

  module_selection=default
  module_default=yes

  # Check whether --enable-modules or --disable-modules was given.
if test "${enable_modules+set}" = set; then
  enableval="$enable_modules"
  
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most"; then
        module_selection=$i
      else
        eval "enable_$i=yes"
      fi
    done
  
fi

  
  # Check whether --enable-mods-shared or --disable-mods-shared was given.
if test "${enable_mods_shared+set}" = set; then
  enableval="$enable_mods_shared"
  
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most"; then
        module_selection=$i
        module_default=shared
      else
        i=`echo $i | sed 's/-/_/g'`
    	eval "enable_$i=shared"
      fi
    done
  
fi






  current_dir=aaa
  modpath_current=modules/aaa
  modpath_static=
  modpath_shared=
  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_access""... $ac_c" 1>&6
echo "configure:3736: checking whether to enable mod_access" >&5
    # Check whether --enable-access or --disable-access was given.
if test "${enable_access+set}" = set; then
  enableval="$enable_access"
  :
else
  enable_access=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_access" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_access" = "static"; then
    enable_access=yes
  elif test "$enable_access" = "yes"; then
    enable_access=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_access" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_access=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_access" != "yes"; then
      enable_access=no
    fi
  elif test "$enable_access" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_access=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_access=no
    fi
  fi
  if test "$enable_access" != "no"; then
            :
  fi
  echo "$ac_t""$enable_access$_apmod_extra_msg" 1>&6
  if test "$enable_access" != "no"; then
    case "$enable_access" in
    shared*)
      enable_access=`echo $ac_n $enable_access$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES access"
      ;;
    *)
      MODLIST="$MODLIST access"
      if test "access" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_access.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_access.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_access.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth""... $ac_c" 1>&6
echo "configure:3822: checking whether to enable mod_auth" >&5
    # Check whether --enable-auth or --disable-auth was given.
if test "${enable_auth+set}" = set; then
  enableval="$enable_auth"
  :
else
  enable_auth=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_auth" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_auth" = "static"; then
    enable_auth=yes
  elif test "$enable_auth" = "yes"; then
    enable_auth=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_auth" != "yes"; then
      enable_auth=no
    fi
  elif test "$enable_auth" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth=no
    fi
  fi
  if test "$enable_auth" != "no"; then
            :
  fi
  echo "$ac_t""$enable_auth$_apmod_extra_msg" 1>&6
  if test "$enable_auth" != "no"; then
    case "$enable_auth" in
    shared*)
      enable_auth=`echo $ac_n $enable_auth$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth"
      ;;
    *)
      MODLIST="$MODLIST auth"
      if test "auth" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_auth.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth_anon""... $ac_c" 1>&6
echo "configure:3908: checking whether to enable mod_auth_anon" >&5
    # Check whether --enable-auth-anon or --disable-auth-anon was given.
if test "${enable_auth_anon+set}" = set; then
  enableval="$enable_auth_anon"
  :
else
  enable_auth_anon=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_auth_anon" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_auth_anon" = "static"; then
    enable_auth_anon=yes
  elif test "$enable_auth_anon" = "yes"; then
    enable_auth_anon=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_anon" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_anon=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_auth_anon" != "yes"; then
      enable_auth_anon=no
    fi
  elif test "$enable_auth_anon" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_anon=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_anon=no
    fi
  fi
  if test "$enable_auth_anon" != "no"; then
            :
  fi
  echo "$ac_t""$enable_auth_anon$_apmod_extra_msg" 1>&6
  if test "$enable_auth_anon" != "no"; then
    case "$enable_auth_anon" in
    shared*)
      enable_auth_anon=`echo $ac_n $enable_auth_anon$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_anon"
      ;;
    *)
      MODLIST="$MODLIST auth_anon"
      if test "auth_anon" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_auth_anon.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_anon.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_anon.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth_dbm""... $ac_c" 1>&6
echo "configure:3994: checking whether to enable mod_auth_dbm" >&5
    # Check whether --enable-auth-dbm or --disable-auth-dbm was given.
if test "${enable_auth_dbm+set}" = set; then
  enableval="$enable_auth_dbm"
  :
else
  enable_auth_dbm=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_auth_dbm" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_auth_dbm" = "static"; then
    enable_auth_dbm=yes
  elif test "$enable_auth_dbm" = "yes"; then
    enable_auth_dbm=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_dbm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_auth_dbm" != "yes"; then
      enable_auth_dbm=no
    fi
  elif test "$enable_auth_dbm" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_dbm=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_dbm=no
    fi
  fi
  if test "$enable_auth_dbm" != "no"; then
            :
  fi
  echo "$ac_t""$enable_auth_dbm$_apmod_extra_msg" 1>&6
  if test "$enable_auth_dbm" != "no"; then
    case "$enable_auth_dbm" in
    shared*)
      enable_auth_dbm=`echo $ac_n $enable_auth_dbm$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_dbm"
      ;;
    *)
      MODLIST="$MODLIST auth_dbm"
      if test "auth_dbm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_auth_dbm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_dbm.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_dbm.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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_auth_digest""... $ac_c" 1>&6
echo "configure:4081: checking whether to enable mod_auth_digest" >&5
    # Check whether --enable-auth-digest or --disable-auth-digest was given.
if test "${enable_auth_digest+set}" = set; then
  enableval="$enable_auth_digest"
  :
else
  enable_auth_digest=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_auth_digest" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_auth_digest" = "static"; then
    enable_auth_digest=yes
  elif test "$enable_auth_digest" = "yes"; then
    enable_auth_digest=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_digest" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_auth_digest" != "yes"; then
      enable_auth_digest=no
    fi
  elif test "$enable_auth_digest" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_digest=no
    fi
  fi
  if test "$enable_auth_digest" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
  ap_old_cppflags=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include -I$abs_builddir/srclib/apr/include"
  cat > conftest.$ac_ext <<EOF
#line 4122 "configure"
#include "confdefs.h"
#include <apr.h>
int main() {
#if !APR_HAS_RANDOM 
                  #error You need APR random support to use auth_digest. 
                  #endif
; return 0; }
EOF
if { (eval echo configure:4131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  enable_auth_digest=no
fi
rm -f conftest*
  CPPFLAGS=$ap_old_cppflags

                    echo $ac_n "checking whether to enable mod_auth_digest""... $ac_c" 1>&6
echo "configure:4143: checking whether to enable mod_auth_digest" >&5
                    if test "$enable_auth_digest" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_auth_digest$_apmod_extra_msg" 1>&6
  if test "$enable_auth_digest" != "no"; then
    case "$enable_auth_digest" in
    shared*)
      enable_auth_digest=`echo $ac_n $enable_auth_digest$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_digest"
      ;;
    *)
      MODLIST="$MODLIST auth_digest"
      if test "auth_digest" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_auth_digest.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_digest.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_digest.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $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
  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=cache
  modpath_current=modules/cache
  modpath_static=
  modpath_shared=
  test -d cache || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_file_cache""... $ac_c" 1>&6
echo "configure:4248: checking whether to enable mod_file_cache" >&5
    # Check whether --enable-file-cache or --disable-file-cache was given.
if test "${enable_file_cache+set}" = set; then
  enableval="$enable_file_cache"
  :
else
  enable_file_cache=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_file_cache" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_file_cache" = "static"; then
    enable_file_cache=yes
  elif test "$enable_file_cache" = "yes"; then
    enable_file_cache=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_file_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_file_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_file_cache" != "yes"; then
      enable_file_cache=no
    fi
  elif test "$enable_file_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_file_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_file_cache=no
    fi
  fi
  if test "$enable_file_cache" != "no"; then
            :
  fi
  echo "$ac_t""$enable_file_cache$_apmod_extra_msg" 1>&6
  if test "$enable_file_cache" != "no"; then
    case "$enable_file_cache" in
    shared*)
      enable_file_cache=`echo $ac_n $enable_file_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES file_cache"
      ;;
    *)
      MODLIST="$MODLIST file_cache"
      if test "file_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_file_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_file_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_file_cache.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $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
  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=echo
  modpath_current=modules/echo
  modpath_static=
  modpath_shared=
  test -d echo || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_echo""... $ac_c" 1>&6
echo "configure:4382: checking whether to enable mod_echo" >&5
    # Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  :
else
  enable_echo=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_echo" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_echo" = "static"; then
    enable_echo=yes
  elif test "$enable_echo" = "yes"; then
    enable_echo=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_echo" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_echo=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_echo" != "yes"; then
      enable_echo=no
    fi
  elif test "$enable_echo" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_echo=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_echo=no
    fi
  fi
  if test "$enable_echo" != "no"; then
            :
  fi
  echo "$ac_t""$enable_echo$_apmod_extra_msg" 1>&6
  if test "$enable_echo" != "no"; then
    case "$enable_echo" in
    shared*)
      enable_echo=`echo $ac_n $enable_echo$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES echo"
      ;;
    *)
      MODLIST="$MODLIST echo"
      if test "echo" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_echo.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_echo.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_echo.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $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
  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=experimental
  modpath_current=modules/experimental
  modpath_static=
  modpath_shared=
  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


if test "$ac_cv_ebcdic" = "yes"; then
# mod_charset_lite can be very useful on an ebcdic system, 
#   so include it by default
    
  echo $ac_n "checking whether to enable mod_charset_lite""... $ac_c" 1>&6
echo "configure:4518: checking whether to enable mod_charset_lite" >&5
    # Check whether --enable-charset-lite or --disable-charset-lite was given.
if test "${enable_charset_lite+set}" = set; then
  enableval="$enable_charset_lite"
  :
else
  enable_charset_lite=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_charset_lite" = "static"; then
    enable_charset_lite=yes
  elif test "$enable_charset_lite" = "yes"; then
    enable_charset_lite=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_charset_lite" != "yes"; then
      enable_charset_lite=no
    fi
  elif test "$enable_charset_lite" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_charset_lite=no
    fi
  fi
  if test "$enable_charset_lite" != "no"; then
            :
  fi
  echo "$ac_t""$enable_charset_lite$_apmod_extra_msg" 1>&6
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    shared*)
      enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES charset_lite"
      ;;
    *)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_charset_lite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

else
    
  echo $ac_n "checking whether to enable mod_charset_lite""... $ac_c" 1>&6
echo "configure:4605: checking whether to enable mod_charset_lite" >&5
    # Check whether --enable-charset-lite or --disable-charset-lite was given.
if test "${enable_charset_lite+set}" = set; then
  enableval="$enable_charset_lite"
  :
else
  enable_charset_lite=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_charset_lite" = "static"; then
    enable_charset_lite=yes
  elif test "$enable_charset_lite" = "yes"; then
    enable_charset_lite=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_charset_lite" != "yes"; then
      enable_charset_lite=no
    fi
  elif test "$enable_charset_lite" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_charset_lite=no
    fi
  fi
  if test "$enable_charset_lite" != "no"; then
            :
  fi
  echo "$ac_t""$enable_charset_lite$_apmod_extra_msg" 1>&6
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    shared*)
      enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES charset_lite"
      ;;
    *)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_charset_lite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

fi

cache_objs="mod_cache.lo cache_storage.lo cache_util.lo " 
mem_cache_objs="mod_mem_cache.lo cache_cache.lo cache_pqueue.lo cache_hash.lo " 

  echo $ac_n "checking whether to enable mod_cache""... $ac_c" 1>&6
echo "configure:4695: checking whether to enable mod_cache" >&5
    # Check whether --enable-cache or --disable-cache was given.
if test "${enable_cache+set}" = set; then
  enableval="$enable_cache"
  :
else
  enable_cache=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cache" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cache" = "static"; then
    enable_cache=yes
  elif test "$enable_cache" = "yes"; then
    enable_cache=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cache" != "yes"; then
      enable_cache=no
    fi
  elif test "$enable_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cache=no
    fi
  fi
  if test "$enable_cache" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cache$_apmod_extra_msg" 1>&6
  if test "$enable_cache" != "no"; then
    case "$enable_cache" in
    shared*)
      enable_cache=`echo $ac_n $enable_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cache"
      ;;
    *)
      MODLIST="$MODLIST cache"
      if test "cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$cache_objs"; then
    objects="mod_cache.lo"
  else
    objects="$cache_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cache.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_disk_cache""... $ac_c" 1>&6
echo "configure:4781: checking whether to enable mod_disk_cache" >&5
    # Check whether --enable-disk-cache or --disable-disk-cache was given.
if test "${enable_disk_cache+set}" = set; then
  enableval="$enable_disk_cache"
  :
else
  enable_disk_cache=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_disk_cache" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_disk_cache" = "static"; then
    enable_disk_cache=yes
  elif test "$enable_disk_cache" = "yes"; then
    enable_disk_cache=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_disk_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_disk_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_disk_cache" != "yes"; then
      enable_disk_cache=no
    fi
  elif test "$enable_disk_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_disk_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_disk_cache=no
    fi
  fi
  if test "$enable_disk_cache" != "no"; then
            :
  fi
  echo "$ac_t""$enable_disk_cache$_apmod_extra_msg" 1>&6
  if test "$enable_disk_cache" != "no"; then
    case "$enable_disk_cache" in
    shared*)
      enable_disk_cache=`echo $ac_n $enable_disk_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES disk_cache"
      ;;
    *)
      MODLIST="$MODLIST disk_cache"
      if test "disk_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_disk_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_disk_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_disk_cache.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_mem_cache""... $ac_c" 1>&6
echo "configure:4867: checking whether to enable mod_mem_cache" >&5
    # Check whether --enable-mem-cache or --disable-mem-cache was given.
if test "${enable_mem_cache+set}" = set; then
  enableval="$enable_mem_cache"
  :
else
  enable_mem_cache=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_mem_cache" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_mem_cache" = "static"; then
    enable_mem_cache=yes
  elif test "$enable_mem_cache" = "yes"; then
    enable_mem_cache=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mem_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_mem_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_mem_cache" != "yes"; then
      enable_mem_cache=no
    fi
  elif test "$enable_mem_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_mem_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_mem_cache=no
    fi
  fi
  if test "$enable_mem_cache" != "no"; then
            :
  fi
  echo "$ac_t""$enable_mem_cache$_apmod_extra_msg" 1>&6
  if test "$enable_mem_cache" != "no"; then
    case "$enable_mem_cache" in
    shared*)
      enable_mem_cache=`echo $ac_n $enable_mem_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES mem_cache"
      ;;
    *)
      MODLIST="$MODLIST mem_cache"
      if test "mem_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$mem_cache_objs"; then
    objects="mod_mem_cache.lo"
  else
    objects="$mem_cache_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_mem_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_mem_cache.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_example""... $ac_c" 1>&6
echo "configure:4953: checking whether to enable mod_example" >&5
    # Check whether --enable-example or --disable-example was given.
if test "${enable_example+set}" = set; then
  enableval="$enable_example"
  :
else
  enable_example=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_example" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_example" = "static"; then
    enable_example=yes
  elif test "$enable_example" = "yes"; then
    enable_example=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_example" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_example=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_example" != "yes"; then
      enable_example=no
    fi
  elif test "$enable_example" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_example=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_example=no
    fi
  fi
  if test "$enable_example" != "no"; then
            :
  fi
  echo "$ac_t""$enable_example$_apmod_extra_msg" 1>&6
  if test "$enable_example" != "no"; then
    case "$enable_example" in
    shared*)
      enable_example=`echo $ac_n $enable_example$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES example"
      ;;
    *)
      MODLIST="$MODLIST example"
      if test "example" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_example.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_example.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_example.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_ext_filter""... $ac_c" 1>&6
echo "configure:5039: checking whether to enable mod_ext_filter" >&5
    # Check whether --enable-ext-filter or --disable-ext-filter was given.
if test "${enable_ext_filter+set}" = set; then
  enableval="$enable_ext_filter"
  :
else
  enable_ext_filter=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_ext_filter" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_ext_filter" = "static"; then
    enable_ext_filter=yes
  elif test "$enable_ext_filter" = "yes"; then
    enable_ext_filter=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ext_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_ext_filter" != "yes"; then
      enable_ext_filter=no
    fi
  elif test "$enable_ext_filter" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_ext_filter=no
    fi
  fi
  if test "$enable_ext_filter" != "no"; then
            :
  fi
  echo "$ac_t""$enable_ext_filter$_apmod_extra_msg" 1>&6
  if test "$enable_ext_filter" != "no"; then
    case "$enable_ext_filter" in
    shared*)
      enable_ext_filter=`echo $ac_n $enable_ext_filter$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ext_filter"
      ;;
    *)
      MODLIST="$MODLIST ext_filter"
      if test "ext_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_ext_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_ext_filter.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_ext_filter.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_case_filter""... $ac_c" 1>&6
echo "configure:5125: checking whether to enable mod_case_filter" >&5
    # Check whether --enable-case-filter or --disable-case-filter was given.
if test "${enable_case_filter+set}" = set; then
  enableval="$enable_case_filter"
  :
else
  enable_case_filter=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_case_filter" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_case_filter" = "static"; then
    enable_case_filter=yes
  elif test "$enable_case_filter" = "yes"; then
    enable_case_filter=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_case_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_case_filter" != "yes"; then
      enable_case_filter=no
    fi
  elif test "$enable_case_filter" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_case_filter=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_case_filter=no
    fi
  fi
  if test "$enable_case_filter" != "no"; then
            :
  fi
  echo "$ac_t""$enable_case_filter$_apmod_extra_msg" 1>&6
  if test "$enable_case_filter" != "no"; then
    case "$enable_case_filter" in
    shared*)
      enable_case_filter=`echo $ac_n $enable_case_filter$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES case_filter"
      ;;
    *)
      MODLIST="$MODLIST case_filter"
      if test "case_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_case_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_case_filter.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_case_filter.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_case_filter_in""... $ac_c" 1>&6
echo "configure:5211: checking whether to enable mod_case_filter_in" >&5
    # Check whether --enable-case-filter-in or --disable-case-filter-in was given.
if test "${enable_case_filter_in+set}" = set; then
  enableval="$enable_case_filter_in"
  :
else
  enable_case_filter_in=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_case_filter_in" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_case_filter_in" = "static"; then
    enable_case_filter_in=yes
  elif test "$enable_case_filter_in" = "yes"; then
    enable_case_filter_in=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter_in" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_case_filter_in=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_case_filter_in" != "yes"; then
      enable_case_filter_in=no
    fi
  elif test "$enable_case_filter_in" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_case_filter_in=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_case_filter_in=no
    fi
  fi
  if test "$enable_case_filter_in" != "no"; then
            :
  fi
  echo "$ac_t""$enable_case_filter_in$_apmod_extra_msg" 1>&6
  if test "$enable_case_filter_in" != "no"; then
    case "$enable_case_filter_in" in
    shared*)
      enable_case_filter_in=`echo $ac_n $enable_case_filter_in$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES case_filter_in"
      ;;
    *)
      MODLIST="$MODLIST case_filter_in"
      if test "case_filter_in" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_case_filter_in.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_case_filter_in.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_case_filter_in.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 
EOF
    fi
  fi

  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
  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=filters
  modpath_current=modules/filters
  modpath_static=
  modpath_shared=
  test -d filters || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_include""... $ac_c" 1>&6
echo "configure:5323: checking whether to enable mod_include" >&5
    # Check whether --enable-include or --disable-include was given.
if test "${enable_include+set}" = set; then
  enableval="$enable_include"
  :
else
  enable_include=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_include" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_include" = "static"; then
    enable_include=yes
  elif test "$enable_include" = "yes"; then
    enable_include=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_include" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_include=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_include" != "yes"; then
      enable_include=no
    fi
  elif test "$enable_include" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_include=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_include=no
    fi
  fi
  if test "$enable_include" != "no"; then
            :
  fi
  echo "$ac_t""$enable_include$_apmod_extra_msg" 1>&6
  if test "$enable_include" != "no"; then
    case "$enable_include" in
    shared*)
      enable_include=`echo $ac_n $enable_include$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES include"
      ;;
    *)
      MODLIST="$MODLIST include"
      if test "include" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_include.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_include.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_include.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $i"
      fi
    done
  fi



  echo $ac_n "checking whether to enable mod_deflate""... $ac_c" 1>&6
echo "configure:5432: checking whether to enable mod_deflate" >&5
    # Check whether --enable-deflate or --disable-deflate was given.
if test "${enable_deflate+set}" = set; then
  enableval="$enable_deflate"
  :
else
  enable_deflate=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_deflate" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_deflate" = "static"; then
    enable_deflate=yes
  elif test "$enable_deflate" = "yes"; then
    enable_deflate=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_deflate" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_deflate=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_deflate" != "yes"; then
      enable_deflate=no
    fi
  elif test "$enable_deflate" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_deflate=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_deflate=no
    fi
  fi
  if test "$enable_deflate" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
  # Check whether --with-z or --without-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"
    fi
  
fi

  if test "x$ap_zlib_base" = "x"; then
    echo $ac_n "checking for zlib location""... $ac_c" 1>&6
echo "configure:5482: checking for zlib location" >&5
    if eval "test \"`echo '$''{'ap_cv_zlib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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
      echo "$ac_t""not found" 1>&6
    else
      echo "$ac_t""$ap_zlib_base" 1>&6
    fi
  fi
  if test "$enable_deflate" != "no"; then
    ap_save_includes=$INCLUDE
    ap_save_ldflags=$LDFLAGS
    ap_save_libs=$LIBS
    ap_save_cppflags=$CPPFLAGS
    if test "$ap_zlib_base" != "/usr"; then
      
  if test "x$INCLUDES" = "x"; then
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

            CPPFLAGS="$CPPFLAGS -I${ap_zlib_base}/include"
      
  if test "x$LDFLAGS" = "x"; then
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then
         
  if test "x$LDFLAGS" = "x"; then
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

      fi
    fi
    
  if test "x$LIBS" = "x"; then
    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
        echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi

    echo $ac_n "checking for zlib library""... $ac_c" 1>&6
echo "configure:5599: checking for zlib library" >&5
    cat > conftest.$ac_ext <<EOF
#line 5601 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
return Z_OK;
; return 0; }
EOF
if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  echo "$ac_t""found" 1>&6 
     for ac_hdr in zutil.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5615: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5620 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""not found" 1>&6
     enable_deflate=no
     INCLUDES=$ap_save_includes
     LDFLAGS=$ap_save_ldflags
     LIBS=$ap_save_libs
fi
rm -f conftest*
    CPPFLAGS=$ap_save_cppflags
  fi

                    echo $ac_n "checking whether to enable mod_deflate""... $ac_c" 1>&6
echo "configure:5666: checking whether to enable mod_deflate" >&5
                    if test "$enable_deflate" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_deflate has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_deflate$_apmod_extra_msg" 1>&6
  if test "$enable_deflate" != "no"; then
    case "$enable_deflate" in
    shared*)
      enable_deflate=`echo $ac_n $enable_deflate$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES deflate"
      ;;
    *)
      MODLIST="$MODLIST deflate"
      if test "deflate" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_deflate.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  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=loggers
  modpath_current=modules/loggers
  modpath_static=
  modpath_shared=
  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk

	

  echo $ac_n "checking whether to enable mod_log_config""... $ac_c" 1>&6
echo "configure:5749: checking whether to enable mod_log_config" >&5
    # Check whether --enable-log-config or --disable-log-config was given.
if test "${enable_log_config+set}" = set; then
  enableval="$enable_log_config"
  :
else
  enable_log_config=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_log_config" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_log_config" = "static"; then
    enable_log_config=yes
  elif test "$enable_log_config" = "yes"; then
    enable_log_config=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_config" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_log_config=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_log_config" != "yes"; then
      enable_log_config=no
    fi
  elif test "$enable_log_config" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_log_config=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_log_config=no
    fi
  fi
  if test "$enable_log_config" != "no"; then
            :
  fi
  echo "$ac_t""$enable_log_config$_apmod_extra_msg" 1>&6
  if test "$enable_log_config" != "no"; then
    case "$enable_log_config" in
    shared*)
      enable_log_config=`echo $ac_n $enable_log_config$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES log_config"
      ;;
    *)
      MODLIST="$MODLIST log_config"
      if test "log_config" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_log_config.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_log_config.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_log_config.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 
EOF
    fi
  fi

  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
  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=metadata
  modpath_current=modules/metadata
  modpath_static=
  modpath_shared=
  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_env""... $ac_c" 1>&6
echo "configure:5861: checking whether to enable mod_env" >&5
    # Check whether --enable-env or --disable-env was given.
if test "${enable_env+set}" = set; then
  enableval="$enable_env"
  :
else
  enable_env=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_env" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_env" = "static"; then
    enable_env=yes
  elif test "$enable_env" = "yes"; then
    enable_env=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_env" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_env=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_env" != "yes"; then
      enable_env=no
    fi
  elif test "$enable_env" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_env=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_env=no
    fi
  fi
  if test "$enable_env" != "no"; then
            :
  fi
  echo "$ac_t""$enable_env$_apmod_extra_msg" 1>&6
  if test "$enable_env" != "no"; then
    case "$enable_env" in
    shared*)
      enable_env=`echo $ac_n $enable_env$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES env"
      ;;
    *)
      MODLIST="$MODLIST env"
      if test "env" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_env.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_env.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_env.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_mime_magic""... $ac_c" 1>&6
echo "configure:5947: checking whether to enable mod_mime_magic" >&5
    # Check whether --enable-mime-magic or --disable-mime-magic was given.
if test "${enable_mime_magic+set}" = set; then
  enableval="$enable_mime_magic"
  :
else
  enable_mime_magic=maybe-all
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_mime_magic" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_mime_magic" = "static"; then
    enable_mime_magic=yes
  elif test "$enable_mime_magic" = "yes"; then
    enable_mime_magic=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime_magic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_mime_magic" != "yes"; then
      enable_mime_magic=no
    fi
  elif test "$enable_mime_magic" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_mime_magic=no
    fi
  fi
  if test "$enable_mime_magic" != "no"; then
            :
  fi
  echo "$ac_t""$enable_mime_magic$_apmod_extra_msg" 1>&6
  if test "$enable_mime_magic" != "no"; then
    case "$enable_mime_magic" in
    shared*)
      enable_mime_magic=`echo $ac_n $enable_mime_magic$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES mime_magic"
      ;;
    *)
      MODLIST="$MODLIST mime_magic"
      if test "mime_magic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_mime_magic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_mime_magic.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_mime_magic.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_cern_meta""... $ac_c" 1>&6
echo "configure:6033: checking whether to enable mod_cern_meta" >&5
    # Check whether --enable-cern-meta or --disable-cern-meta was given.
if test "${enable_cern_meta+set}" = set; then
  enableval="$enable_cern_meta"
  :
else
  enable_cern_meta=maybe-all
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cern_meta" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cern_meta" = "static"; then
    enable_cern_meta=yes
  elif test "$enable_cern_meta" = "yes"; then
    enable_cern_meta=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cern_meta" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cern_meta" != "yes"; then
      enable_cern_meta=no
    fi
  elif test "$enable_cern_meta" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cern_meta=no
    fi
  fi
  if test "$enable_cern_meta" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cern_meta$_apmod_extra_msg" 1>&6
  if test "$enable_cern_meta" != "no"; then
    case "$enable_cern_meta" in
    shared*)
      enable_cern_meta=`echo $ac_n $enable_cern_meta$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cern_meta"
      ;;
    *)
      MODLIST="$MODLIST cern_meta"
      if test "cern_meta" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_cern_meta.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cern_meta.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cern_meta.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_expires""... $ac_c" 1>&6
echo "configure:6119: checking whether to enable mod_expires" >&5
    # Check whether --enable-expires or --disable-expires was given.
if test "${enable_expires+set}" = set; then
  enableval="$enable_expires"
  :
else
  enable_expires=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_expires" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_expires" = "static"; then
    enable_expires=yes
  elif test "$enable_expires" = "yes"; then
    enable_expires=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_expires" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_expires=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_expires" != "yes"; then
      enable_expires=no
    fi
  elif test "$enable_expires" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_expires=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_expires=no
    fi
  fi
  if test "$enable_expires" != "no"; then
            :
  fi
  echo "$ac_t""$enable_expires$_apmod_extra_msg" 1>&6
  if test "$enable_expires" != "no"; then
    case "$enable_expires" in
    shared*)
      enable_expires=`echo $ac_n $enable_expires$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES expires"
      ;;
    *)
      MODLIST="$MODLIST expires"
      if test "expires" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_expires.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_expires.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_expires.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_headers""... $ac_c" 1>&6
echo "configure:6205: checking whether to enable mod_headers" >&5
    # Check whether --enable-headers or --disable-headers was given.
if test "${enable_headers+set}" = set; then
  enableval="$enable_headers"
  :
else
  enable_headers=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_headers" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_headers" = "static"; then
    enable_headers=yes
  elif test "$enable_headers" = "yes"; then
    enable_headers=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_headers" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_headers=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_headers" != "yes"; then
      enable_headers=no
    fi
  elif test "$enable_headers" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_headers=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_headers=no
    fi
  fi
  if test "$enable_headers" != "no"; then
            :
  fi
  echo "$ac_t""$enable_headers$_apmod_extra_msg" 1>&6
  if test "$enable_headers" != "no"; then
    case "$enable_headers" in
    shared*)
      enable_headers=`echo $ac_n $enable_headers$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES headers"
      ;;
    *)
      MODLIST="$MODLIST headers"
      if test "headers" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_headers.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_headers.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_headers.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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_usertrack""... $ac_c" 1>&6
echo "configure:6292: checking whether to enable mod_usertrack" >&5
    # Check whether --enable-usertrack or --disable-usertrack was given.
if test "${enable_usertrack+set}" = set; then
  enableval="$enable_usertrack"
  :
else
  enable_usertrack=maybe-all
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_usertrack" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_usertrack" = "static"; then
    enable_usertrack=yes
  elif test "$enable_usertrack" = "yes"; then
    enable_usertrack=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_usertrack" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_usertrack=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_usertrack" != "yes"; then
      enable_usertrack=no
    fi
  elif test "$enable_usertrack" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_usertrack=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_usertrack=no
    fi
  fi
  if test "$enable_usertrack" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
  for ac_hdr in sys/times.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6334: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6339 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6373: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6378 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


                    echo $ac_n "checking whether to enable mod_usertrack""... $ac_c" 1>&6
echo "configure:6427: checking whether to enable mod_usertrack" >&5
                    if test "$enable_usertrack" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_usertrack has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_usertrack$_apmod_extra_msg" 1>&6
  if test "$enable_usertrack" != "no"; then
    case "$enable_usertrack" in
    shared*)
      enable_usertrack=`echo $ac_n $enable_usertrack$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES usertrack"
      ;;
    *)
      MODLIST="$MODLIST usertrack"
      if test "usertrack" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_usertrack.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_usertrack.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_usertrack.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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_unique_id""... $ac_c" 1>&6
echo "configure:6485: checking whether to enable mod_unique_id" >&5
    # Check whether --enable-unique-id or --disable-unique-id was given.
if test "${enable_unique_id+set}" = set; then
  enableval="$enable_unique_id"
  :
else
  enable_unique_id=maybe-all
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_unique_id" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_unique_id" = "static"; then
    enable_unique_id=yes
  elif test "$enable_unique_id" = "yes"; then
    enable_unique_id=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unique_id" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_unique_id=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_unique_id" != "yes"; then
      enable_unique_id=no
    fi
  elif test "$enable_unique_id" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_unique_id=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_unique_id=no
    fi
  fi
  if test "$enable_unique_id" != "no"; then
            :
  fi
  echo "$ac_t""$enable_unique_id$_apmod_extra_msg" 1>&6
  if test "$enable_unique_id" != "no"; then
    case "$enable_unique_id" in
    shared*)
      enable_unique_id=`echo $ac_n $enable_unique_id$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES unique_id"
      ;;
    *)
      MODLIST="$MODLIST unique_id"
      if test "unique_id" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_unique_id.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_unique_id.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_unique_id.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_setenvif""... $ac_c" 1>&6
echo "configure:6571: checking whether to enable mod_setenvif" >&5
    # Check whether --enable-setenvif or --disable-setenvif was given.
if test "${enable_setenvif+set}" = set; then
  enableval="$enable_setenvif"
  :
else
  enable_setenvif=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_setenvif" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_setenvif" = "static"; then
    enable_setenvif=yes
  elif test "$enable_setenvif" = "yes"; then
    enable_setenvif=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_setenvif" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_setenvif=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_setenvif" != "yes"; then
      enable_setenvif=no
    fi
  elif test "$enable_setenvif" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_setenvif=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_setenvif=no
    fi
  fi
  if test "$enable_setenvif" != "no"; then
            :
  fi
  echo "$ac_t""$enable_setenvif$_apmod_extra_msg" 1>&6
  if test "$enable_setenvif" != "no"; then
    case "$enable_setenvif" in
    shared*)
      enable_setenvif=`echo $ac_n $enable_setenvif$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES setenvif"
      ;;
    *)
      MODLIST="$MODLIST setenvif"
      if test "setenvif" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_setenvif.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_setenvif.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_setenvif.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $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
  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=proxy
  modpath_current=modules/proxy
  modpath_static=
  modpath_shared=
  test -d proxy || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


if test "$enable_proxy" = "shared"; then
  proxy_mods_enable=shared
elif test "$enable_proxy" = "yes"; then
  proxy_mods_enable=yes
else
  proxy_mods_enable=no
fi

proxy_objs="mod_proxy.lo proxy_util.lo"

  echo $ac_n "checking whether to enable mod_proxy""... $ac_c" 1>&6
echo "configure:6713: checking whether to enable mod_proxy" >&5
    # Check whether --enable-proxy or --disable-proxy was given.
if test "${enable_proxy+set}" = set; then
  enableval="$enable_proxy"
  :
else
  enable_proxy=$proxy_mods_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_proxy" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_proxy" = "static"; then
    enable_proxy=yes
  elif test "$enable_proxy" = "yes"; then
    enable_proxy=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_proxy=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_proxy" != "yes"; then
      enable_proxy=no
    fi
  elif test "$enable_proxy" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_proxy=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_proxy=no
    fi
  fi
  if test "$enable_proxy" != "no"; then
            :
  fi
  echo "$ac_t""$enable_proxy$_apmod_extra_msg" 1>&6
  if test "$enable_proxy" != "no"; then
    case "$enable_proxy" in
    shared*)
      enable_proxy=`echo $ac_n $enable_proxy$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy"
      ;;
    *)
      MODLIST="$MODLIST proxy"
      if test "proxy" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$proxy_objs"; then
    objects="mod_proxy.lo"
  else
    objects="$proxy_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_proxy.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_proxy.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 
EOF
    fi
  fi

  fi


proxy_connect_objs="proxy_connect.lo"
proxy_ftp_objs="proxy_ftp.lo"
proxy_http_objs="proxy_http.lo"

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time and
    # these sub-modules need some from the main proxy module
    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
    proxy_http_objs="$proxy_http_objs mod_proxy.la"
    ;;
esac


  echo $ac_n "checking whether to enable mod_proxy_connect""... $ac_c" 1>&6
echo "configure:6814: checking whether to enable mod_proxy_connect" >&5
    # Check whether --enable-proxy-connect or --disable-proxy-connect was given.
if test "${enable_proxy_connect+set}" = set; then
  enableval="$enable_proxy_connect"
  :
else
  enable_proxy_connect=$proxy_mods_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_proxy_connect" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_proxy_connect" = "static"; then
    enable_proxy_connect=yes
  elif test "$enable_proxy_connect" = "yes"; then
    enable_proxy_connect=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_connect" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_proxy_connect=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_proxy_connect" != "yes"; then
      enable_proxy_connect=no
    fi
  elif test "$enable_proxy_connect" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_proxy_connect=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_proxy_connect=no
    fi
  fi
  if test "$enable_proxy_connect" != "no"; then
            :
  fi
  echo "$ac_t""$enable_proxy_connect$_apmod_extra_msg" 1>&6
  if test "$enable_proxy_connect" != "no"; then
    case "$enable_proxy_connect" in
    shared*)
      enable_proxy_connect=`echo $ac_n $enable_proxy_connect$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_connect"
      ;;
    *)
      MODLIST="$MODLIST proxy_connect"
      if test "proxy_connect" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$proxy_connect_objs"; then
    objects="mod_proxy_connect.lo"
  else
    objects="$proxy_connect_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_proxy_connect.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_proxy_connect.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_proxy_ftp""... $ac_c" 1>&6
echo "configure:6900: checking whether to enable mod_proxy_ftp" >&5
    # Check whether --enable-proxy-ftp or --disable-proxy-ftp was given.
if test "${enable_proxy_ftp+set}" = set; then
  enableval="$enable_proxy_ftp"
  :
else
  enable_proxy_ftp=$proxy_mods_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_proxy_ftp" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_proxy_ftp" = "static"; then
    enable_proxy_ftp=yes
  elif test "$enable_proxy_ftp" = "yes"; then
    enable_proxy_ftp=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_ftp" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_proxy_ftp=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_proxy_ftp" != "yes"; then
      enable_proxy_ftp=no
    fi
  elif test "$enable_proxy_ftp" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_proxy_ftp=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_proxy_ftp=no
    fi
  fi
  if test "$enable_proxy_ftp" != "no"; then
            :
  fi
  echo "$ac_t""$enable_proxy_ftp$_apmod_extra_msg" 1>&6
  if test "$enable_proxy_ftp" != "no"; then
    case "$enable_proxy_ftp" in
    shared*)
      enable_proxy_ftp=`echo $ac_n $enable_proxy_ftp$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_ftp"
      ;;
    *)
      MODLIST="$MODLIST proxy_ftp"
      if test "proxy_ftp" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$proxy_ftp_objs"; then
    objects="mod_proxy_ftp.lo"
  else
    objects="$proxy_ftp_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_proxy_ftp.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_proxy_ftp.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_proxy_http""... $ac_c" 1>&6
echo "configure:6986: checking whether to enable mod_proxy_http" >&5
    # Check whether --enable-proxy-http or --disable-proxy-http was given.
if test "${enable_proxy_http+set}" = set; then
  enableval="$enable_proxy_http"
  :
else
  enable_proxy_http=$proxy_mods_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_proxy_http" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_proxy_http" = "static"; then
    enable_proxy_http=yes
  elif test "$enable_proxy_http" = "yes"; then
    enable_proxy_http=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_http" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_proxy_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_proxy_http" != "yes"; then
      enable_proxy_http=no
    fi
  elif test "$enable_proxy_http" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_proxy_http=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_proxy_http=no
    fi
  fi
  if test "$enable_proxy_http" != "no"; then
            :
  fi
  echo "$ac_t""$enable_proxy_http$_apmod_extra_msg" 1>&6
  if test "$enable_proxy_http" != "no"; then
    case "$enable_proxy_http" in
    shared*)
      enable_proxy_http=`echo $ac_n $enable_proxy_http$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_http"
      ;;
    *)
      MODLIST="$MODLIST proxy_http"
      if test "proxy_http" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$proxy_http_objs"; then
    objects="mod_proxy_http.lo"
  else
    objects="$proxy_http_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_proxy_http.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_proxy_http.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 
EOF
    fi
  fi

  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
  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=
  test -d ssl || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_dh.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_expr.lo ssl_expr_eval.lo ssl_expr_parse.lo ssl_expr_scan.lo ssl_scache.lo ssl_scache_dbm.lo ssl_scache_shmcb.lo ssl_scache_shmht.lo ssl_util.lo ssl_util_ssl.lo ssl_util_table.lo "

  echo $ac_n "checking whether to enable mod_ssl""... $ac_c" 1>&6
echo "configure:7098: checking whether to enable mod_ssl" >&5
    # Check whether --enable-ssl or --disable-ssl was given.
if test "${enable_ssl+set}" = set; then
  enableval="$enable_ssl"
  :
else
  enable_ssl=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_ssl" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_ssl" = "static"; then
    enable_ssl=yes
  elif test "$enable_ssl" = "yes"; then
    enable_ssl=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ssl" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_ssl=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_ssl" != "yes"; then
      enable_ssl=no
    fi
  elif test "$enable_ssl" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_ssl=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_ssl=no
    fi
  fi
  if test "$enable_ssl" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
    
if test "x$ap_ssltk_base" = "x"; then
  echo $ac_n "checking for SSL/TLS toolkit base""... $ac_c" 1>&6
echo "configure:7139: checking for SSL/TLS toolkit base" >&5
  ap_ssltk_base=""
  # Check whether --with-ssl or --without-ssl was given.
if test "${with_ssl+set}" = set; then
  withval="$with_ssl"
  
    if test "x$withval" != "xyes" -a "x$withval" != "x"; then
      ap_ssltk_base="$withval"
    fi
  
fi

  if test "x$ap_ssltk_base" = "x"; then
    if eval "test \"`echo '$''{'ap_cv_ssltk'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
      #
      # shotgun approach: find all occurrences of the openssl program
      #
      ap_ssltk_try=""
      # The IFS=... trick eliminates the colons from $PATH, without using an external program
      for p in `IFS=":$IFS"; echo $PATH` /usr/local/openssl/bin /usr/local/ssl/bin; do
        if test -f "$p/openssl"; then
          ap_ssltk_try="$ap_ssltk_try $p"
        fi
      done
      if test "x$ap_ssltk_try" = "x"; then
        { echo "configure: error: 'openssl' not found in path" 1>&2; exit 1; }
      fi
      for p in $ap_ssltk_try; do
        ap_ssltk_version="`$p/openssl version`"
        case "$ap_ssltk_version" in
            "OpenSSL "[1-9]* | \
            "OpenSSL "0.9.[6-9]* | \
            "OpenSSL "0.[1-9][0-9]* )
                ap_cv_ssltk="`(cd $p/.. && pwd)`"
                break
                ;;
            *)
                # skip because it is too old or a bad result
                ;;
        esac
      done
      if test "x$ap_cv_ssltk" = "x"; then
        { echo "configure: error: requires OpenSSL 0.9.6 or higher" 1>&2; exit 1; }
      fi
    
fi

    ap_ssltk_base="$ap_cv_ssltk"
  fi
  if test ! -d $ap_ssltk_base; then
    { echo "configure: error: invalid SSL/TLS toolkit base directory $ap_ssltk_base" 1>&2; exit 1; }
  fi
  echo "$ac_t""$ap_ssltk_base" 1>&6
    
  echo $ac_n "checking for SSL/TLS toolkit version""... $ac_c" 1>&6
echo "configure:7197: checking for SSL/TLS toolkit version" >&5
  echo "$ac_t""$ap_ssltk_version" 1>&6
    
  echo $ac_n "checking for SSL/TLS toolkit includes""... $ac_c" 1>&6
echo "configure:7201: checking for SSL/TLS toolkit includes" >&5
  ap_ssltk_incdir=""
  for p in $ap_ssltk_base/include /usr/local/openssl/include \
           /usr/local/ssl/include /usr/local/include /usr/include; do
    if test -f "$p/openssl/ssl.h"; then
      ap_ssltk_incdir="$p"
      break
    elif test -f "$p/ssl.h"; then
      ap_ssltk_incdir="$p"
      break
    fi
  done
  if test "x$ap_ssltk_incdir" = "x"; then
    { echo "configure: error: OpenSSL headers not found" 1>&2; exit 1; }
  fi
  echo "$ac_t""$ap_ssltk_incdir" 1>&6

  echo $ac_n "checking for SSL/TLS toolkit libraries""... $ac_c" 1>&6
echo "configure:7219: checking for SSL/TLS toolkit libraries" >&5
  ap_ssltk_libdir=""
  for p in $ap_ssltk_base/lib /usr/local/openssl/lib \
           /usr/local/ssl/lib /usr/local/lib /usr/lib /lib; do
    if test -f "$p/libssl.a" -o -f "$p/libssl.so"; then
      ap_ssltk_libdir="$p"
      break
    fi
  done
  if test ".$ap_ssltk_libdir" = .; then
    { echo "configure: error: OpenSSL libraries not found" 1>&2; exit 1; }
  fi
  echo "$ac_t""$ap_ssltk_libdir" 1>&6

    
  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"-I$ap_ssltk_incdir/openssl\""
    INCLUDES="-I$ap_ssltk_incdir/openssl"
  else
    apr_addto_bugger="-I$ap_ssltk_incdir/openssl"
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

  if test "x$ap_ssltk_incdir" != "x/usr/include"; then
    
  if test "x$INCLUDES" = "x"; then
    echo "  setting INCLUDES to \"-I$ap_ssltk_incdir\""
    INCLUDES="-I$ap_ssltk_incdir"
  else
    apr_addto_bugger="-I$ap_ssltk_incdir"
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

  fi
  if test "x$ap_ssltk_libdir" != "x/usr/lib"; then
    
  if test "x$LDFLAGS" = "x"; then
    echo "  setting LDFLAGS to \"-L$ap_ssltk_libdir\""
    LDFLAGS="-L$ap_ssltk_libdir"
  else
    apr_addto_bugger="-L$ap_ssltk_libdir"
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

    if test "x$ap_platform_runtime_link_flag" != "x"; then
      
  if test "x$LDFLAGS" = "x"; then
    echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_ssltk_libdir\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
    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
        echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

    fi
  fi
  
  if test "x$LIBS" = "x"; then
    echo "  setting LIBS to \"-lssl -lcrypto\""
    LIBS="-lssl -lcrypto"
  else
    apr_addto_bugger="-lssl -lcrypto"
    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
        echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi

  ap_cv_ssltk="$ap_ssltk_base"
fi

    for ac_func in SSL_set_state
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7350: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7355 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    for ac_func in SSL_set_cert_store
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7405: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7410 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


                    echo $ac_n "checking whether to enable mod_ssl""... $ac_c" 1>&6
echo "configure:7459: checking whether to enable mod_ssl" >&5
                    if test "$enable_ssl" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_ssl has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_ssl$_apmod_extra_msg" 1>&6
  if test "$enable_ssl" != "no"; then
    case "$enable_ssl" in
    shared*)
      enable_ssl=`echo $ac_n $enable_ssl$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ssl"
      ;;
    *)
      MODLIST="$MODLIST ssl"
      if test "ssl" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$ssl_objs"; then
    objects="mod_ssl.lo"
  else
    objects="$ssl_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_ssl.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_ssl.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 
EOF
    fi
  fi

  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
  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=test
  modpath_current=modules/test
  modpath_static=
  modpath_shared=
  test -d test || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_optional_hook_export""... $ac_c" 1>&6
echo "configure:7542: checking whether to enable mod_optional_hook_export" >&5
    # Check whether --enable-optional-hook-export or --disable-optional-hook-export was given.
if test "${enable_optional_hook_export+set}" = set; then
  enableval="$enable_optional_hook_export"
  :
else
  enable_optional_hook_export=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_optional_hook_export" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_optional_hook_export" = "static"; then
    enable_optional_hook_export=yes
  elif test "$enable_optional_hook_export" = "yes"; then
    enable_optional_hook_export=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_optional_hook_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_optional_hook_export" != "yes"; then
      enable_optional_hook_export=no
    fi
  elif test "$enable_optional_hook_export" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_hook_export=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_hook_export=no
    fi
  fi
  if test "$enable_optional_hook_export" != "no"; then
            :
  fi
  echo "$ac_t""$enable_optional_hook_export$_apmod_extra_msg" 1>&6
  if test "$enable_optional_hook_export" != "no"; then
    case "$enable_optional_hook_export" in
    shared*)
      enable_optional_hook_export=`echo $ac_n $enable_optional_hook_export$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_hook_export"
      ;;
    *)
      MODLIST="$MODLIST optional_hook_export"
      if test "optional_hook_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_optional_hook_export.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_optional_hook_export.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_optional_hook_export.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_optional_hook_import""... $ac_c" 1>&6
echo "configure:7628: checking whether to enable mod_optional_hook_import" >&5
    # Check whether --enable-optional-hook-import or --disable-optional-hook-import was given.
if test "${enable_optional_hook_import+set}" = set; then
  enableval="$enable_optional_hook_import"
  :
else
  enable_optional_hook_import=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_optional_hook_import" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_optional_hook_import" = "static"; then
    enable_optional_hook_import=yes
  elif test "$enable_optional_hook_import" = "yes"; then
    enable_optional_hook_import=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_optional_hook_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_optional_hook_import" != "yes"; then
      enable_optional_hook_import=no
    fi
  elif test "$enable_optional_hook_import" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_hook_import=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_hook_import=no
    fi
  fi
  if test "$enable_optional_hook_import" != "no"; then
            :
  fi
  echo "$ac_t""$enable_optional_hook_import$_apmod_extra_msg" 1>&6
  if test "$enable_optional_hook_import" != "no"; then
    case "$enable_optional_hook_import" in
    shared*)
      enable_optional_hook_import=`echo $ac_n $enable_optional_hook_import$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_hook_import"
      ;;
    *)
      MODLIST="$MODLIST optional_hook_import"
      if test "optional_hook_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_optional_hook_import.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_optional_hook_import.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_optional_hook_import.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_optional_fn_import""... $ac_c" 1>&6
echo "configure:7714: checking whether to enable mod_optional_fn_import" >&5
    # Check whether --enable-optional-fn-import or --disable-optional-fn-import was given.
if test "${enable_optional_fn_import+set}" = set; then
  enableval="$enable_optional_fn_import"
  :
else
  enable_optional_fn_import=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_optional_fn_import" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_optional_fn_import" = "static"; then
    enable_optional_fn_import=yes
  elif test "$enable_optional_fn_import" = "yes"; then
    enable_optional_fn_import=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_optional_fn_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_optional_fn_import" != "yes"; then
      enable_optional_fn_import=no
    fi
  elif test "$enable_optional_fn_import" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_fn_import=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_fn_import=no
    fi
  fi
  if test "$enable_optional_fn_import" != "no"; then
            :
  fi
  echo "$ac_t""$enable_optional_fn_import$_apmod_extra_msg" 1>&6
  if test "$enable_optional_fn_import" != "no"; then
    case "$enable_optional_fn_import" in
    shared*)
      enable_optional_fn_import=`echo $ac_n $enable_optional_fn_import$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_fn_import"
      ;;
    *)
      MODLIST="$MODLIST optional_fn_import"
      if test "optional_fn_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_optional_fn_import.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_optional_fn_import.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_optional_fn_import.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_optional_fn_export""... $ac_c" 1>&6
echo "configure:7800: checking whether to enable mod_optional_fn_export" >&5
    # Check whether --enable-optional-fn-export or --disable-optional-fn-export was given.
if test "${enable_optional_fn_export+set}" = set; then
  enableval="$enable_optional_fn_export"
  :
else
  enable_optional_fn_export=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_optional_fn_export" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_optional_fn_export" = "static"; then
    enable_optional_fn_export=yes
  elif test "$enable_optional_fn_export" = "yes"; then
    enable_optional_fn_export=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_optional_fn_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_optional_fn_export" != "yes"; then
      enable_optional_fn_export=no
    fi
  elif test "$enable_optional_fn_export" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_fn_export=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_fn_export=no
    fi
  fi
  if test "$enable_optional_fn_export" != "no"; then
            :
  fi
  echo "$ac_t""$enable_optional_fn_export$_apmod_extra_msg" 1>&6
  if test "$enable_optional_fn_export" != "no"; then
    case "$enable_optional_fn_export" in
    shared*)
      enable_optional_fn_export=`echo $ac_n $enable_optional_fn_export$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_fn_export"
      ;;
    *)
      MODLIST="$MODLIST optional_fn_export"
      if test "optional_fn_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_optional_fn_export.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_optional_fn_export.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_optional_fn_export.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_bucketeer""... $ac_c" 1>&6
echo "configure:7886: checking whether to enable mod_bucketeer" >&5
    # Check whether --enable-bucketeer or --disable-bucketeer was given.
if test "${enable_bucketeer+set}" = set; then
  enableval="$enable_bucketeer"
  :
else
  enable_bucketeer=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_bucketeer" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_bucketeer" = "static"; then
    enable_bucketeer=yes
  elif test "$enable_bucketeer" = "yes"; then
    enable_bucketeer=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_bucketeer" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_bucketeer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_bucketeer" != "yes"; then
      enable_bucketeer=no
    fi
  elif test "$enable_bucketeer" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_bucketeer=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_bucketeer=no
    fi
  fi
  if test "$enable_bucketeer" != "no"; then
            :
  fi
  echo "$ac_t""$enable_bucketeer$_apmod_extra_msg" 1>&6
  if test "$enable_bucketeer" != "no"; then
    case "$enable_bucketeer" in
    shared*)
      enable_bucketeer=`echo $ac_n $enable_bucketeer$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES bucketeer"
      ;;
    *)
      MODLIST="$MODLIST bucketeer"
      if test "bucketeer" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_bucketeer.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_bucketeer.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_bucketeer.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 
EOF
    fi
  fi

  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
  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"



if test "$OS" = "beos" ; then
    
  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"-DBEOS\""
    CFLAGS="-DBEOS"
  else
    apr_addto_bugger="-DBEOS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi

fi

echo $ac_n "checking for target platform""... $ac_c" 1>&6
echo "configure:8010: checking for target platform" >&5

case $host in
*beos*)
  OS="beos"
  OS_DIR=$OS
  ;;
*pc-os2_emx*)
  OS="os2"
  OS_DIR=$OS
  ;;
bs2000*)
  OS="unix"
  OS_DIR=bs2000  # only the OS_DIR is platform specific.
  ;;
*cygwin*)
  OS="cygwin"
  OS_DIR="unix"
  ;;
*)
  OS="unix"
  OS_DIR=$OS;;
esac

echo "$ac_t""$OS" 1>&6

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/$OS_DIR/Makefile"


if test "$OS" = "os2" ; then
  
  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"-DOS2 -O2\""
    CFLAGS="-DOS2 -O2"
  else
    apr_addto_bugger="-DOS2 -O2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi

fi

if test "$OS" = "unix" ; then
    
  echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
echo "configure:8066: checking for rlim_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    cat > conftest.$ac_ext <<EOF
#line 8072 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

int main() {
rlim_t spoon;
; return 0; }
EOF
if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  
      ac_cv_type_rlim_t=yes
    
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_rlim_t=no
    
fi
rm -f conftest*
  
fi

echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
  if test "$ac_cv_type_rlim_t" = "no" ; then
      cat >> confdefs.h <<\EOF
#define rlim_t int
EOF

  fi


    for ac_hdr in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:8112: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8117 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


    for ac_func in setsid killpg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8152: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8157 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi



for ac_hdr in bstring.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:8212: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8217 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done




for ac_func in syslog
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8254: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8259 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


    for ac_hdr in sys/times.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:8311: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8316 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8350: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8355 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking which MPM to use""... $ac_c" 1>&6
echo "configure:8404: checking which MPM to use" >&5
# Check whether --with-mpm or --without-mpm was given.
if test "${with_mpm+set}" = set; then
  withval="$with_mpm"
  
  APACHE_MPM=$withval

else
  
  if test "x$APACHE_MPM" = "x"; then
    APACHE_MPM=prefork
  fi

fi

echo "$ac_t""$APACHE_MPM" 1>&6

apache_cv_mpm=$APACHE_MPM
	
if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild" -o "$apache_cv_mpm" = "leader" -o "$apache_cv_mpm" = "threadpool" ; then
  
    cat > conftest.$ac_ext <<EOF
#line 8426 "configure"
#include "confdefs.h"

    #include "srclib/apr/include/apr.h"
    #if APR_HAS_THREADS
    YES_IS_DEFINED
    #endif
    
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "YES_IS_DEFINED" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_define_APR_HAS_THREADS=yes
else
  rm -rf conftest*
  ac_cv_define_APR_HAS_THREADS=no
fi
rm -f conftest*



  if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
    echo "$ac_t""The currently selected MPM requires threads which your system seems to lack" 1>&6
    echo $ac_n "checking checking for replacement""... $ac_c" 1>&6
echo "configure:8450: checking checking for replacement" >&5
    echo "$ac_t""prefork selected" 1>&6
    apache_cv_mpm=prefork
  fi
fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"


MPM_NAME=$apache_cv_mpm
if test "$MPM_NAME" = "leader" -o "$MPM_NAME" = "threadpool" -o "$MPM_NAME" = "perchild"; then
  echo "configure: warning: You have selected an EXPERIMENTAL MPM.  Be warned!" 1>&2
  MPM_SUBDIR_NAME=experimental/$MPM_NAME
else
  MPM_SUBDIR_NAME=$MPM_NAME
fi
MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la

if test ! -f "$abs_srcdir/$MPM_DIR/mpm.h"; then
    { echo "configure: error: the selected mpm -- $apache_cv_mpm -- is not supported" 1>&2; exit 1; }
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_NAME"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIR_NAME"
  

MODLIST="$MODLIST mpm_${MPM_NAME}"


if test "$MPM_NAME" = "prefork" ; then
    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi

htpasswd_LTFLAGS=""
htdigest_LTFLAGS=""
rotatelogs_LTFLAGS=""
logresolve_LTFLAGS=""
htdbm_LTFLAGS=""
ab_LTFLAGS=""
checkgid_LTFLAGS=""

# Check whether --enable-static-support or --disable-static-support was given.
if test "${enable_static_support+set}" = set; then
  enableval="$enable_static_support"
  
if test "$enableval" = "yes" ; then
  
  if test "x$htpasswd_LTFLAGS" = "x"; then
    echo "  setting htpasswd_LTFLAGS to \"-static\""
    htpasswd_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htpasswd_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htpasswd_LTFLAGS"
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$htdigest_LTFLAGS" = "x"; then
    echo "  setting htdigest_LTFLAGS to \"-static\""
    htdigest_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdigest_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htdigest_LTFLAGS"
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$rotatelogs_LTFLAGS" = "x"; then
    echo "  setting rotatelogs_LTFLAGS to \"-static\""
    rotatelogs_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $rotatelogs_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to rotatelogs_LTFLAGS"
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$logresolve_LTFLAGS" = "x"; then
    echo "  setting logresolve_LTFLAGS to \"-static\""
    logresolve_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $logresolve_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to logresolve_LTFLAGS"
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$htdbm_LTFLAGS" = "x"; then
    echo "  setting htdbm_LTFLAGS to \"-static\""
    htdbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htdbm_LTFLAGS"
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$ab_LTFLAGS" = "x"; then
    echo "  setting ab_LTFLAGS to \"-static\""
    ab_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to ab_LTFLAGS"
        ab_LTFLAGS="$ab_LTFLAGS $i"
      fi
    done
  fi

  
  if test "x$checkgid_LTFLAGS" = "x"; then
    echo "  setting checkgid_LTFLAGS to \"-static\""
    checkgid_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $checkgid_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to checkgid_LTFLAGS"
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
      fi
    done
  fi

fi

fi


# Check whether --enable-static-htpasswd or --disable-static-htpasswd was given.
if test "${enable_static_htpasswd+set}" = set; then
  enableval="$enable_static_htpasswd"
  
if test "$enableval" = "yes" ; then
  
  if test "x$htpasswd_LTFLAGS" = "x"; then
    echo "  setting htpasswd_LTFLAGS to \"-static\""
    htpasswd_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htpasswd_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htpasswd_LTFLAGS"
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$htpasswd_LTFLAGS" = "x-static"; then
    echo "  nulling htpasswd_LTFLAGS"
    htpasswd_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htpasswd_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from htpasswd_LTFLAGS"
      htpasswd_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
  


# Check whether --enable-static-htdigest or --disable-static-htdigest was given.
if test "${enable_static_htdigest+set}" = set; then
  enableval="$enable_static_htdigest"
  
if test "$enableval" = "yes" ; then
  
  if test "x$htdigest_LTFLAGS" = "x"; then
    echo "  setting htdigest_LTFLAGS to \"-static\""
    htdigest_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdigest_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htdigest_LTFLAGS"
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$htdigest_LTFLAGS" = "x-static"; then
    echo "  nulling htdigest_LTFLAGS"
    htdigest_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htdigest_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from htdigest_LTFLAGS"
      htdigest_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
  


# Check whether --enable-static-rotatelogs or --disable-static-rotatelogs was given.
if test "${enable_static_rotatelogs+set}" = set; then
  enableval="$enable_static_rotatelogs"
  
if test "$enableval" = "yes" ; then
  
  if test "x$rotatelogs_LTFLAGS" = "x"; then
    echo "  setting rotatelogs_LTFLAGS to \"-static\""
    rotatelogs_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $rotatelogs_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to rotatelogs_LTFLAGS"
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$rotatelogs_LTFLAGS" = "x-static"; then
    echo "  nulling rotatelogs_LTFLAGS"
    rotatelogs_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $rotatelogs_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from rotatelogs_LTFLAGS"
      rotatelogs_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
  


# Check whether --enable-static-logresolve or --disable-static-logresolve was given.
if test "${enable_static_logresolve+set}" = set; then
  enableval="$enable_static_logresolve"
  
if test "$enableval" = "yes" ; then
  
  if test "x$logresolve_LTFLAGS" = "x"; then
    echo "  setting logresolve_LTFLAGS to \"-static\""
    logresolve_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $logresolve_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to logresolve_LTFLAGS"
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$logresolve_LTFLAGS" = "x-static"; then
    echo "  nulling logresolve_LTFLAGS"
    logresolve_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $logresolve_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from logresolve_LTFLAGS"
      logresolve_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
  


# Check whether --enable-static-htdbm or --disable-static-htdbm was given.
if test "${enable_static_htdbm+set}" = set; then
  enableval="$enable_static_htdbm"
  
if test "$enableval" = "yes" ; then
  
  if test "x$htdbm_LTFLAGS" = "x"; then
    echo "  setting htdbm_LTFLAGS to \"-static\""
    htdbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to htdbm_LTFLAGS"
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$htdbm_LTFLAGS" = "x-static"; then
    echo "  nulling htdbm_LTFLAGS"
    htdbm_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htdbm_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from htdbm_LTFLAGS"
      htdbm_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
  


# Check whether --enable-static-ab or --disable-static-ab was given.
if test "${enable_static_ab+set}" = set; then
  enableval="$enable_static_ab"
  
if test "$enableval" = "yes" ; then
  
  if test "x$ab_LTFLAGS" = "x"; then
    echo "  setting ab_LTFLAGS to \"-static\""
    ab_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to ab_LTFLAGS"
        ab_LTFLAGS="$ab_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$ab_LTFLAGS" = "x-static"; then
    echo "  nulling ab_LTFLAGS"
    ab_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $ab_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from ab_LTFLAGS"
      ab_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
  


# Check whether --enable-static-checkgid or --disable-static-checkgid was given.
if test "${enable_static_checkgid+set}" = set; then
  enableval="$enable_static_checkgid"
  
if test "$enableval" = "yes" ; then
  
  if test "x$checkgid_LTFLAGS" = "x"; then
    echo "  setting checkgid_LTFLAGS to \"-static\""
    checkgid_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $checkgid_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to checkgid_LTFLAGS"
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
      fi
    done
  fi

else
  
  if test "x$checkgid_LTFLAGS" = "x-static"; then
    echo "  nulling checkgid_LTFLAGS"
    checkgid_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $checkgid_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      echo "  removed \"-static\" from checkgid_LTFLAGS"
      checkgid_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
  





  current_dir=http
  modpath_current=modules/http
  modpath_static=
  modpath_shared=
  test -d http || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


http_objects="http_core.lo http_protocol.lo http_request.lo"

if test "$enable_http" = "yes"; then
    enable_http="static"
elif test "$enable_http" = "shared"; then
    { echo "configure: error: mod_http can not be built as a shared DSO" 1>&2; exit 1; }
fi


  echo $ac_n "checking whether to enable mod_http""... $ac_c" 1>&6
echo "configure:9069: checking whether to enable mod_http" >&5
    # Check whether --enable-http or --disable-http was given.
if test "${enable_http+set}" = set; then
  enableval="$enable_http"
  :
else
  enable_http=static
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_http" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_http" = "static"; then
    enable_http=yes
  elif test "$enable_http" = "yes"; then
    enable_http=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_http" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_http" != "yes"; then
      enable_http=no
    fi
  elif test "$enable_http" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_http=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_http=no
    fi
  fi
  if test "$enable_http" != "no"; then
            :
  fi
  echo "$ac_t""$enable_http$_apmod_extra_msg" 1>&6
  if test "$enable_http" != "no"; then
    case "$enable_http" in
    shared*)
      enable_http=`echo $ac_n $enable_http$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES http"
      ;;
    *)
      MODLIST="$MODLIST http"
      if test "http" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$http_objects"; then
    objects="mod_http.lo"
  else
    objects="$http_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_http.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_http.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_mime""... $ac_c" 1>&6
echo "configure:9155: checking whether to enable mod_mime" >&5
    # Check whether --enable-mime or --disable-mime was given.
if test "${enable_mime+set}" = set; then
  enableval="$enable_mime"
  :
else
  enable_mime=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_mime" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_mime" = "static"; then
    enable_mime=yes
  elif test "$enable_mime" = "yes"; then
    enable_mime=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_mime=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_mime" != "yes"; then
      enable_mime=no
    fi
  elif test "$enable_mime" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_mime=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_mime=no
    fi
  fi
  if test "$enable_mime" != "no"; then
            :
  fi
  echo "$ac_t""$enable_mime$_apmod_extra_msg" 1>&6
  if test "$enable_mime" != "no"; then
    case "$enable_mime" in
    shared*)
      enable_mime=`echo $ac_n $enable_mime$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES mime"
      ;;
    *)
      MODLIST="$MODLIST mime"
      if test "mime" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_mime.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_mime.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_mime.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 
EOF
    fi
  fi

  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
  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"



echo $ac_n "checking for extra modules""... $ac_c" 1>&6
echo "configure:9255: checking for extra modules" >&5
# Check whether --with-module or --without-module was given.
if test "${with_module+set}" = set; then
  withval="$with_module"
  
    modtype=`echo $withval | sed -e's/\(.*\):.*/\1/'`
    pkg=`echo $withval | sed -e's/.*:\(.*\)/\1/'`
    modfilec=`echo $pkg | sed -e 's;^.*/;;'`
    modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`

    if test "x$withval" != "xmodules/$modtype/$modfilec"; then
        cp $pkg modules/$modtype/$modfilec
    fi
    module=`echo $pkg | sed -e 's;.*/mod_\(.*\).c;\1;'`
    objects="mod_$module.lo"
    libname="mod_$module.la"
    modpath_current="modules/$modtype"
    BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
    if test ! -s "$modpath_current/modules.mk"; then
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
    else
      cat >>$modpath_current/modules.mk.tmp<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
      cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
      rm $modpath_current/modules.mk
      mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
      sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
      rm $modpath_current/modules.mk
      mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
    fi
    MODLIST="$MODLIST $module"
  echo "$ac_t""added $withval" 1>&6
  
else
   echo "$ac_t""no extra modules" 1>&6 
  
fi




  current_dir=dav/main
  modpath_current=modules/dav/main
  modpath_static=
  modpath_shared=
  test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"

if test "$enable_http" = "no"; then
  dav_enable=no
else
  dav_enable=most
fi


  echo $ac_n "checking whether to enable mod_dav""... $ac_c" 1>&6
echo "configure:9322: checking whether to enable mod_dav" >&5
    # Check whether --enable-dav or --disable-dav was given.
if test "${enable_dav+set}" = set; then
  enableval="$enable_dav"
  :
else
  enable_dav=$dav_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_dav" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_dav" = "static"; then
    enable_dav=yes
  elif test "$enable_dav" = "yes"; then
    enable_dav=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dav=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_dav" != "yes"; then
      enable_dav=no
    fi
  elif test "$enable_dav" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dav=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dav=no
    fi
  fi
  if test "$enable_dav" != "no"; then
            :
  fi
  echo "$ac_t""$enable_dav$_apmod_extra_msg" 1>&6
  if test "$enable_dav" != "no"; then
    case "$enable_dav" in
    shared*)
      enable_dav=`echo $ac_n $enable_dav$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dav"
      ;;
    *)
      MODLIST="$MODLIST dav"
      if test "dav" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$dav_objects"; then
    objects="mod_dav.lo"
  else
    objects="$dav_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_dav.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_dav.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 
EOF
    fi
  fi

  fi


if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
  apache_need_expat=yes

  
  if test "x$INCLUDES" = "x"; then
    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
        echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

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
  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=generators
  modpath_current=modules/generators
  modpath_static=
  modpath_shared=
  test -d generators || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_status""... $ac_c" 1>&6
echo "configure:9461: checking whether to enable mod_status" >&5
    # Check whether --enable-status or --disable-status was given.
if test "${enable_status+set}" = set; then
  enableval="$enable_status"
  :
else
  enable_status=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_status" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_status" = "static"; then
    enable_status=yes
  elif test "$enable_status" = "yes"; then
    enable_status=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_status" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_status=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_status" != "yes"; then
      enable_status=no
    fi
  elif test "$enable_status" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_status=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_status=no
    fi
  fi
  if test "$enable_status" != "no"; then
            :
  fi
  echo "$ac_t""$enable_status$_apmod_extra_msg" 1>&6
  if test "$enable_status" != "no"; then
    case "$enable_status" in
    shared*)
      enable_status=`echo $ac_n $enable_status$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES status"
      ;;
    *)
      MODLIST="$MODLIST status"
      if test "status" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_status.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_status.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_status.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_autoindex""... $ac_c" 1>&6
echo "configure:9547: checking whether to enable mod_autoindex" >&5
    # Check whether --enable-autoindex or --disable-autoindex was given.
if test "${enable_autoindex+set}" = set; then
  enableval="$enable_autoindex"
  :
else
  enable_autoindex=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_autoindex" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_autoindex" = "static"; then
    enable_autoindex=yes
  elif test "$enable_autoindex" = "yes"; then
    enable_autoindex=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_autoindex" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_autoindex=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_autoindex" != "yes"; then
      enable_autoindex=no
    fi
  elif test "$enable_autoindex" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_autoindex=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_autoindex=no
    fi
  fi
  if test "$enable_autoindex" != "no"; then
            :
  fi
  echo "$ac_t""$enable_autoindex$_apmod_extra_msg" 1>&6
  if test "$enable_autoindex" != "no"; then
    case "$enable_autoindex" in
    shared*)
      enable_autoindex=`echo $ac_n $enable_autoindex$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES autoindex"
      ;;
    *)
      MODLIST="$MODLIST autoindex"
      if test "autoindex" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_autoindex.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_autoindex.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_autoindex.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_asis""... $ac_c" 1>&6
echo "configure:9633: checking whether to enable mod_asis" >&5
    # Check whether --enable-asis or --disable-asis was given.
if test "${enable_asis+set}" = set; then
  enableval="$enable_asis"
  :
else
  enable_asis=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_asis" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_asis" = "static"; then
    enable_asis=yes
  elif test "$enable_asis" = "yes"; then
    enable_asis=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_asis" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_asis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_asis" != "yes"; then
      enable_asis=no
    fi
  elif test "$enable_asis" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_asis=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_asis=no
    fi
  fi
  if test "$enable_asis" != "no"; then
            :
  fi
  echo "$ac_t""$enable_asis$_apmod_extra_msg" 1>&6
  if test "$enable_asis" != "no"; then
    case "$enable_asis" in
    shared*)
      enable_asis=`echo $ac_n $enable_asis$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES asis"
      ;;
    *)
      MODLIST="$MODLIST asis"
      if test "asis" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_asis.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_asis.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_asis.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_info""... $ac_c" 1>&6
echo "configure:9719: checking whether to enable mod_info" >&5
    # Check whether --enable-info or --disable-info was given.
if test "${enable_info+set}" = set; then
  enableval="$enable_info"
  :
else
  enable_info=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_info" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_info" = "static"; then
    enable_info=yes
  elif test "$enable_info" = "yes"; then
    enable_info=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_info" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_info=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_info" != "yes"; then
      enable_info=no
    fi
  elif test "$enable_info" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_info=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_info=no
    fi
  fi
  if test "$enable_info" != "no"; then
            :
  fi
  echo "$ac_t""$enable_info$_apmod_extra_msg" 1>&6
  if test "$enable_info" != "no"; then
    case "$enable_info" in
    shared*)
      enable_info=`echo $ac_n $enable_info$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES info"
      ;;
    *)
      MODLIST="$MODLIST info"
      if test "info" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_info.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_info.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_info.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_suexec""... $ac_c" 1>&6
echo "configure:9805: checking whether to enable mod_suexec" >&5
    # Check whether --enable-suexec or --disable-suexec was given.
if test "${enable_suexec+set}" = set; then
  enableval="$enable_suexec"
  :
else
  enable_suexec=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_suexec" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_suexec" = "static"; then
    enable_suexec=yes
  elif test "$enable_suexec" = "yes"; then
    enable_suexec=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_suexec" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_suexec=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_suexec" != "yes"; then
      enable_suexec=no
    fi
  elif test "$enable_suexec" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_suexec=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_suexec=no
    fi
  fi
  if test "$enable_suexec" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
              other_targets=suexec  
                    echo $ac_n "checking whether to enable mod_suexec""... $ac_c" 1>&6
echo "configure:9845: checking whether to enable mod_suexec" >&5
                    if test "$enable_suexec" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_suexec has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_suexec$_apmod_extra_msg" 1>&6
  if test "$enable_suexec" != "no"; then
    case "$enable_suexec" in
    shared*)
      enable_suexec=`echo $ac_n $enable_suexec$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES suexec"
      ;;
    *)
      MODLIST="$MODLIST suexec"
      if test "suexec" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_suexec.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_suexec.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_suexec.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 
EOF
    fi
  fi

  fi



  if test "x$LT_LDFLAGS" = "x"; then
    echo "  setting LT_LDFLAGS to \"-export-dynamic\""
    LT_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LT_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to LT_LDFLAGS"
        LT_LDFLAGS="$LT_LDFLAGS $i"
      fi
    done
  fi


if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
# if we are using a threaded MPM, we will get better performance with
# mod_cgid, so make it the default.
    
  echo $ac_n "checking whether to enable mod_cgid""... $ac_c" 1>&6
echo "configure:9928: checking whether to enable mod_cgid" >&5
    # Check whether --enable-cgid or --disable-cgid was given.
if test "${enable_cgid+set}" = set; then
  enableval="$enable_cgid"
  :
else
  enable_cgid=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cgid" = "static"; then
    enable_cgid=yes
  elif test "$enable_cgid" = "yes"; then
    enable_cgid=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cgid" != "yes"; then
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgid=no
    fi
  fi
  if test "$enable_cgid" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cgid$_apmod_extra_msg" 1>&6
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    shared*)
      enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgid"
      ;;
    *)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cgid.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cgid.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 
EOF
    fi
  fi

  fi

    
  echo $ac_n "checking whether to enable mod_cgi""... $ac_c" 1>&6
echo "configure:10014: checking whether to enable mod_cgi" >&5
    # Check whether --enable-cgi or --disable-cgi was given.
if test "${enable_cgi+set}" = set; then
  enableval="$enable_cgi"
  :
else
  enable_cgi=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cgi" = "static"; then
    enable_cgi=yes
  elif test "$enable_cgi" = "yes"; then
    enable_cgi=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cgi" != "yes"; then
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgi=no
    fi
  fi
  if test "$enable_cgi" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cgi$_apmod_extra_msg" 1>&6
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    shared*)
      enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgi"
      ;;
    *)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cgi.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 
EOF
    fi
  fi

  fi

else
# if we are using a non-threaded MPM, it makes little sense to use
# mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
# default
    
  echo $ac_n "checking whether to enable mod_cgi""... $ac_c" 1>&6
echo "configure:10104: checking whether to enable mod_cgi" >&5
    # Check whether --enable-cgi or --disable-cgi was given.
if test "${enable_cgi+set}" = set; then
  enableval="$enable_cgi"
  :
else
  enable_cgi=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cgi" = "static"; then
    enable_cgi=yes
  elif test "$enable_cgi" = "yes"; then
    enable_cgi=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cgi" != "yes"; then
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgi=no
    fi
  fi
  if test "$enable_cgi" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cgi$_apmod_extra_msg" 1>&6
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    shared*)
      enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgi"
      ;;
    *)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cgi.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 
EOF
    fi
  fi

  fi

    
  echo $ac_n "checking whether to enable mod_cgid""... $ac_c" 1>&6
echo "configure:10190: checking whether to enable mod_cgid" >&5
    # Check whether --enable-cgid or --disable-cgid was given.
if test "${enable_cgid+set}" = set; then
  enableval="$enable_cgid"
  :
else
  enable_cgid=no
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_cgid" = "static"; then
    enable_cgid=yes
  elif test "$enable_cgid" = "yes"; then
    enable_cgid=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_cgid" != "yes"; then
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgid=no
    fi
  fi
  if test "$enable_cgid" != "no"; then
            :
  fi
  echo "$ac_t""$enable_cgid$_apmod_extra_msg" 1>&6
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    shared*)
      enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgid"
      ;;
    *)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_cgid.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_cgid.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 
EOF
    fi
  fi

  fi

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
  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"




if test "$MPM_NAME" = "beos" ; then
    apache_apr_flags="--enable-threads"

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi


if test "$MPM_NAME" = "leader" ; then
    for ac_func in pthread_kill
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10304: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10309 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:10332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"

fi


if test "$MPM_NAME" = "perchild" ; then

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"

fi


if test "$MPM_NAME" = "threadpool" ; then
    for ac_func in pthread_kill
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10374: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10379 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"

fi

if test "$MPM_NAME" = "mpmt_os2" ; then
    cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

    
  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"-Zmt\""
    CFLAGS="-Zmt"
  else
    apr_addto_bugger="-Zmt"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi

fi


if test "$MPM_NAME" = "worker" ; then
    for ac_func in pthread_kill
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10510: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10515 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi



  current_dir=dav/fs
  modpath_current=modules/dav/fs
  modpath_static=
  modpath_shared=
  test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"

if test "x$enable_dav" != "x"; then
  dav_fs_enable=$enable_dav
else
  dav_fs_enable=$dav_enable
fi

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main DAV module
    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
    ;;
esac


  echo $ac_n "checking whether to enable mod_dav_fs""... $ac_c" 1>&6
echo "configure:10595: checking whether to enable mod_dav_fs" >&5
    # Check whether --enable-dav-fs or --disable-dav-fs was given.
if test "${enable_dav_fs+set}" = set; then
  enableval="$enable_dav_fs"
  :
else
  enable_dav_fs=$dav_fs_enable
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_dav_fs" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_dav_fs" = "static"; then
    enable_dav_fs=yes
  elif test "$enable_dav_fs" = "yes"; then
    enable_dav_fs=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav_fs" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_dav_fs" != "yes"; then
      enable_dav_fs=no
    fi
  elif test "$enable_dav_fs" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dav_fs=no
    fi
  fi
  if test "$enable_dav_fs" != "no"; then
            :
  fi
  echo "$ac_t""$enable_dav_fs$_apmod_extra_msg" 1>&6
  if test "$enable_dav_fs" != "no"; then
    case "$enable_dav_fs" in
    shared*)
      enable_dav_fs=`echo $ac_n $enable_dav_fs$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dav_fs"
      ;;
    *)
      MODLIST="$MODLIST dav_fs"
      if test "dav_fs" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z "$dav_fs_objects"; then
    objects="mod_dav_fs.lo"
  else
    objects="$dav_fs_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_dav_fs.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_dav_fs.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 
EOF
    fi
  fi

  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
  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=mappers
  modpath_current=modules/mappers
  modpath_static=
  modpath_shared=
  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_vhost_alias""... $ac_c" 1>&6
echo "configure:10707: checking whether to enable mod_vhost_alias" >&5
    # Check whether --enable-vhost-alias or --disable-vhost-alias was given.
if test "${enable_vhost_alias+set}" = set; then
  enableval="$enable_vhost_alias"
  :
else
  enable_vhost_alias=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_vhost_alias" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_vhost_alias" = "static"; then
    enable_vhost_alias=yes
  elif test "$enable_vhost_alias" = "yes"; then
    enable_vhost_alias=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_vhost_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_vhost_alias" != "yes"; then
      enable_vhost_alias=no
    fi
  elif test "$enable_vhost_alias" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_vhost_alias=no
    fi
  fi
  if test "$enable_vhost_alias" != "no"; then
            :
  fi
  echo "$ac_t""$enable_vhost_alias$_apmod_extra_msg" 1>&6
  if test "$enable_vhost_alias" != "no"; then
    case "$enable_vhost_alias" in
    shared*)
      enable_vhost_alias=`echo $ac_n $enable_vhost_alias$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES vhost_alias"
      ;;
    *)
      MODLIST="$MODLIST vhost_alias"
      if test "vhost_alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_vhost_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_vhost_alias.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_vhost_alias.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_negotiation""... $ac_c" 1>&6
echo "configure:10793: checking whether to enable mod_negotiation" >&5
    # Check whether --enable-negotiation or --disable-negotiation was given.
if test "${enable_negotiation+set}" = set; then
  enableval="$enable_negotiation"
  :
else
  enable_negotiation=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_negotiation" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_negotiation" = "static"; then
    enable_negotiation=yes
  elif test "$enable_negotiation" = "yes"; then
    enable_negotiation=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_negotiation" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_negotiation=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_negotiation" != "yes"; then
      enable_negotiation=no
    fi
  elif test "$enable_negotiation" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_negotiation=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_negotiation=no
    fi
  fi
  if test "$enable_negotiation" != "no"; then
            :
  fi
  echo "$ac_t""$enable_negotiation$_apmod_extra_msg" 1>&6
  if test "$enable_negotiation" != "no"; then
    case "$enable_negotiation" in
    shared*)
      enable_negotiation=`echo $ac_n $enable_negotiation$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES negotiation"
      ;;
    *)
      MODLIST="$MODLIST negotiation"
      if test "negotiation" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_negotiation.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_negotiation.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_negotiation.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_dir""... $ac_c" 1>&6
echo "configure:10879: checking whether to enable mod_dir" >&5
    # Check whether --enable-dir or --disable-dir was given.
if test "${enable_dir+set}" = set; then
  enableval="$enable_dir"
  :
else
  enable_dir=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_dir" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_dir" = "static"; then
    enable_dir=yes
  elif test "$enable_dir" = "yes"; then
    enable_dir=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_dir" != "yes"; then
      enable_dir=no
    fi
  elif test "$enable_dir" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dir=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dir=no
    fi
  fi
  if test "$enable_dir" != "no"; then
            :
  fi
  echo "$ac_t""$enable_dir$_apmod_extra_msg" 1>&6
  if test "$enable_dir" != "no"; then
    case "$enable_dir" in
    shared*)
      enable_dir=`echo $ac_n $enable_dir$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dir"
      ;;
    *)
      MODLIST="$MODLIST dir"
      if test "dir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_dir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_dir.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_dir.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_imap""... $ac_c" 1>&6
echo "configure:10965: checking whether to enable mod_imap" >&5
    # Check whether --enable-imap or --disable-imap was given.
if test "${enable_imap+set}" = set; then
  enableval="$enable_imap"
  :
else
  enable_imap=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_imap" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_imap" = "static"; then
    enable_imap=yes
  elif test "$enable_imap" = "yes"; then
    enable_imap=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_imap" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_imap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_imap" != "yes"; then
      enable_imap=no
    fi
  elif test "$enable_imap" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_imap=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_imap=no
    fi
  fi
  if test "$enable_imap" != "no"; then
            :
  fi
  echo "$ac_t""$enable_imap$_apmod_extra_msg" 1>&6
  if test "$enable_imap" != "no"; then
    case "$enable_imap" in
    shared*)
      enable_imap=`echo $ac_n $enable_imap$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES imap"
      ;;
    *)
      MODLIST="$MODLIST imap"
      if test "imap" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_imap.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_imap.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_imap.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_actions""... $ac_c" 1>&6
echo "configure:11051: checking whether to enable mod_actions" >&5
    # Check whether --enable-actions or --disable-actions was given.
if test "${enable_actions+set}" = set; then
  enableval="$enable_actions"
  :
else
  enable_actions=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_actions" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_actions" = "static"; then
    enable_actions=yes
  elif test "$enable_actions" = "yes"; then
    enable_actions=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_actions" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_actions=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_actions" != "yes"; then
      enable_actions=no
    fi
  elif test "$enable_actions" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_actions=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_actions=no
    fi
  fi
  if test "$enable_actions" != "no"; then
            :
  fi
  echo "$ac_t""$enable_actions$_apmod_extra_msg" 1>&6
  if test "$enable_actions" != "no"; then
    case "$enable_actions" in
    shared*)
      enable_actions=`echo $ac_n $enable_actions$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES actions"
      ;;
    *)
      MODLIST="$MODLIST actions"
      if test "actions" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_actions.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_actions.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_actions.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_speling""... $ac_c" 1>&6
echo "configure:11137: checking whether to enable mod_speling" >&5
    # Check whether --enable-speling or --disable-speling was given.
if test "${enable_speling+set}" = set; then
  enableval="$enable_speling"
  :
else
  enable_speling=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_speling" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_speling" = "static"; then
    enable_speling=yes
  elif test "$enable_speling" = "yes"; then
    enable_speling=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_speling" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_speling=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_speling" != "yes"; then
      enable_speling=no
    fi
  elif test "$enable_speling" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_speling=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_speling=no
    fi
  fi
  if test "$enable_speling" != "no"; then
            :
  fi
  echo "$ac_t""$enable_speling$_apmod_extra_msg" 1>&6
  if test "$enable_speling" != "no"; then
    case "$enable_speling" in
    shared*)
      enable_speling=`echo $ac_n $enable_speling$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES speling"
      ;;
    *)
      MODLIST="$MODLIST speling"
      if test "speling" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_speling.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_speling.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_speling.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_userdir""... $ac_c" 1>&6
echo "configure:11223: checking whether to enable mod_userdir" >&5
    # Check whether --enable-userdir or --disable-userdir was given.
if test "${enable_userdir+set}" = set; then
  enableval="$enable_userdir"
  :
else
  enable_userdir=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_userdir" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_userdir" = "static"; then
    enable_userdir=yes
  elif test "$enable_userdir" = "yes"; then
    enable_userdir=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_userdir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_userdir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_userdir" != "yes"; then
      enable_userdir=no
    fi
  elif test "$enable_userdir" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_userdir=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_userdir=no
    fi
  fi
  if test "$enable_userdir" != "no"; then
            :
  fi
  echo "$ac_t""$enable_userdir$_apmod_extra_msg" 1>&6
  if test "$enable_userdir" != "no"; then
    case "$enable_userdir" in
    shared*)
      enable_userdir=`echo $ac_n $enable_userdir$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES userdir"
      ;;
    *)
      MODLIST="$MODLIST userdir"
      if test "userdir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_userdir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_userdir.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_userdir.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_alias""... $ac_c" 1>&6
echo "configure:11309: checking whether to enable mod_alias" >&5
    # Check whether --enable-alias or --disable-alias was given.
if test "${enable_alias+set}" = set; then
  enableval="$enable_alias"
  :
else
  enable_alias=yes
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_alias" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_alias" = "static"; then
    enable_alias=yes
  elif test "$enable_alias" = "yes"; then
    enable_alias=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_alias" != "yes"; then
      enable_alias=no
    fi
  elif test "$enable_alias" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_alias=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_alias=no
    fi
  fi
  if test "$enable_alias" != "no"; then
            :
  fi
  echo "$ac_t""$enable_alias$_apmod_extra_msg" 1>&6
  if test "$enable_alias" != "no"; then
    case "$enable_alias" in
    shared*)
      enable_alias=`echo $ac_n $enable_alias$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES alias"
      ;;
    *)
      MODLIST="$MODLIST alias"
      if test "alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_alias.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_alias.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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_rewrite""... $ac_c" 1>&6
echo "configure:11396: checking whether to enable mod_rewrite" >&5
    # Check whether --enable-rewrite or --disable-rewrite was given.
if test "${enable_rewrite+set}" = set; then
  enableval="$enable_rewrite"
  :
else
  enable_rewrite=most
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_rewrite" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_rewrite" = "static"; then
    enable_rewrite=yes
  elif test "$enable_rewrite" = "yes"; then
    enable_rewrite=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_rewrite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_rewrite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_rewrite" != "yes"; then
      enable_rewrite=no
    fi
  elif test "$enable_rewrite" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_rewrite=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_rewrite=no
    fi
  fi
  if test "$enable_rewrite" != "no"; then
            echo "$ac_t""checking dependencies" 1>&6
                    
  
  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"-DNO_DBM_REWRITEMAP\""
    CFLAGS="-DNO_DBM_REWRITEMAP"
  else
    apr_addto_bugger="-DNO_DBM_REWRITEMAP"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi


                    echo $ac_n "checking whether to enable mod_rewrite""... $ac_c" 1>&6
echo "configure:11457: checking whether to enable mod_rewrite" >&5
                    if test "$enable_rewrite" = "no"; then
                      if test "$_apmod_error_fatal" = "no"; then
                        _apmod_extra_msg=" (disabled)"
                      else
                        { echo "configure: error: mod_rewrite has been requested but can not be built due to prerequisite failures" 1>&2; exit 1; }
                      fi
                    fi
  fi
  echo "$ac_t""$enable_rewrite$_apmod_extra_msg" 1>&6
  if test "$enable_rewrite" != "no"; then
    case "$enable_rewrite" in
    shared*)
      enable_rewrite=`echo $ac_n $enable_rewrite$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES rewrite"
      ;;
    *)
      MODLIST="$MODLIST rewrite"
      if test "rewrite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_rewrite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_rewrite.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_rewrite.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 
EOF
    fi
  fi

  fi


if test "$enable_so" = "yes"; then
    enable_so="static"
elif test "$enable_so" = "shared"; then
    { echo "configure: error: mod_so can not be built as a shared DSO" 1>&2; exit 1; }
fi

ap_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include -I$abs_builddir/srclib/apr/include"
cat > conftest.$ac_ext <<EOF
#line 11522 "configure"
#include "confdefs.h"
#include <apr.h>
int main() {

#if !APR_HAS_DSO
#error You need APR DSO support to use mod_so. 
#endif

; return 0; }
EOF
if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ap_enable_so="static"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
if test "$enable_so" = "static"; then
    { echo "configure: error: mod_so has been requested but cannot be built on your system" 1>&2; exit 1; }
else if test "$sharedobjs" = "yes"; then
    { echo "configure: error: shared objects have been requested but cannot be built since mod_so cannot be built" 1>&2; exit 1; }
else
    ap_enable_so="no"
fi
fi

fi
rm -f conftest*
CPPFLAGS=$ap_old_cppflags


  echo $ac_n "checking whether to enable mod_so""... $ac_c" 1>&6
echo "configure:11556: checking whether to enable mod_so" >&5
    # Check whether --enable-so or --disable-so was given.
if test "${enable_so+set}" = set; then
  enableval="$enable_so"
  :
else
  enable_so=$ap_enable_so
fi

    _apmod_extra_msg=""
      if test "$module_selection" = "most" -a "$enable_so" = "most"; then
    _apmod_error_fatal="no"
  else
    _apmod_error_fatal="yes"
  fi
  if test "$enable_so" = "static"; then
    enable_so=yes
  elif test "$enable_so" = "yes"; then
    enable_so=$module_default
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_so" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" ($module_selection)"
    elif test "$enable_so" != "yes"; then
      enable_so=no
    fi
  elif test "$enable_so" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_so=no
    fi
  fi
  if test "$enable_so" != "no"; then
            :
  fi
  echo "$ac_t""$enable_so$_apmod_extra_msg" 1>&6
  if test "$enable_so" != "no"; then
    case "$enable_so" in
    shared*)
      enable_so=`echo $ac_n $enable_so$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES so"
      ;;
    *)
      MODLIST="$MODLIST so"
      if test "so" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  if test -z ""; then
    objects="mod_so.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_so.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_so.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 
EOF
    fi
  fi

  fi


cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache



  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
  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"






  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
  


PRE_SHARED_CMDS='echo ""'
POST_SHARED_CMDS='echo ""'


if test "$apache_need_shared" = "yes"; then
  if test -f $ac_aux_dir/ltconfig; then
    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
  fi
  shared_build="shared-build"
fi


if test "$enable_so" = "yes"; then
  case $host in
    *-ibm-aix*)
      HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
      SH_LDFLAGS="$SH_LDFLAGS \$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
      UTIL_LDFLAGS="$UTIL_LDFLAGS -Wl,-uXML_Parse"
      ;;
    *beos)
      SH_LDFLAGS='$(top_builddir)/_APP_'
      PRE_SHARED_CMDS='ln -s $(top_builddir)/httpd $(top_builddir)/_APP_'
      POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
      ;;
    *os390)
      HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
      SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
  esac
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
  


# Check whether --with-program-name or --without-program-name was given.
if test "${with_program_name+set}" = set; then
  withval="$with_program_name"
  
  progname="$withval" 
else
  
  progname="httpd" 
fi


# SuExec parameters
# Check whether --with-suexec-bin or --without-suexec-bin was given.
if test "${with_suexec_bin+set}" = set; then
  withval="$with_suexec_bin"
  
  cat >> confdefs.h <<EOF
#define SUEXEC_BIN "$withval"
EOF

 
fi


# Check whether --with-suexec-caller or --without-suexec-caller was given.
if test "${with_suexec_caller+set}" = set; then
  withval="$with_suexec_caller"
  
  cat >> confdefs.h <<EOF
#define AP_HTTPD_USER "$withval"
EOF
  
fi


# Check whether --with-suexec-userdir or --without-suexec-userdir was given.
if test "${with_suexec_userdir+set}" = set; then
  withval="$with_suexec_userdir"
  
  cat >> confdefs.h <<EOF
#define AP_USERDIR_SUFFIX "$withval"
EOF
  
fi


# Check whether --with-suexec-docroot or --without-suexec-docroot was given.
if test "${with_suexec_docroot+set}" = set; then
  withval="$with_suexec_docroot"
  
  cat >> confdefs.h <<EOF
#define AP_DOC_ROOT "$withval"
EOF
  
fi


# Check whether --with-suexec-uidmin or --without-suexec-uidmin was given.
if test "${with_suexec_uidmin+set}" = set; then
  withval="$with_suexec_uidmin"
  
  cat >> confdefs.h <<EOF
#define AP_UID_MIN $withval
EOF
  
fi


# Check whether --with-suexec-gidmin or --without-suexec-gidmin was given.
if test "${with_suexec_gidmin+set}" = set; then
  withval="$with_suexec_gidmin"
  
  cat >> confdefs.h <<EOF
#define AP_GID_MIN $withval
EOF
  
fi


# Check whether --with-suexec-logfile or --without-suexec-logfile was given.
if test "${with_suexec_logfile+set}" = set; then
  withval="$with_suexec_logfile"
  
  cat >> confdefs.h <<EOF
#define AP_LOG_EXEC "$withval"
EOF
  
fi


# Check whether --with-suexec-safepath or --without-suexec-safepath was given.
if test "${with_suexec_safepath+set}" = set; then
  withval="$with_suexec_safepath"
  
  cat >> confdefs.h <<EOF
#define AP_SAFE_PATH "$withval"
EOF
  
fi


# Check whether --with-suexec-umask or --without-suexec-umask was given.
if test "${with_suexec_umask+set}" = set; then
  withval="$with_suexec_umask"
  
  cat >> confdefs.h <<EOF
#define AP_SUEXEC_UMASK 0$withval
EOF
  
fi


AP_LIBS="$abs_builddir/srclib/pcre/libpcre.la $AP_LIBS"

AP_LIBS="$AP_LIBS `$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
  


cat >> confdefs.h <<\EOF
#define AP_USING_AUTOCONF 1
EOF


if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
    cat >> confdefs.h <<\EOF
#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1
EOF

fi

cat >> confdefs.h <<EOF
#define AP_SIG_GRACEFUL SIG$AP_SIG_GRACEFUL
EOF

cat >> confdefs.h <<EOF
#define AP_SIG_GRACEFUL_STRING "SIG$AP_SIG_GRACEFUL"
EOF

cat >> confdefs.h <<EOF
#define AP_SIG_GRACEFUL_SHORT $AP_SIG_GRACEFUL
EOF

AP_SIG_GRACEFUL_SHORT=$AP_SIG_GRACEFUL
AP_SIG_GRACEFUL=SIG$AP_SIG_GRACEFUL_SHORT




if test "$cross_compiling" = "no"; then
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:11937: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 11944 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:11955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 11959 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_bigendian=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
fi
rm -f conftest*
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 11990 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_bigendian=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi

else
  cat >> confdefs.h <<\EOF
#define AP_UNKNOWN_BYTE_ORDER 1
EOF

fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
 

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/beos/Makefile os/os2/Makefile os/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/unix/Makefile server/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile srclib/pcre/Makefile"


if test -d ./test; then
    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"

fi

echo $ac_n "${nl}Restore user-defined environment settings...${nl}"


if test "x$apr_ste_save_CPPFLAGS" = "x"; then
  EXTRA_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS=
else
  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
    EXTRA_CPPFLAGS=
  else
    EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
    CPPFLAGS="$apr_ste_save_CPPFLAGS"
  fi
fi
echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""



if test "x$apr_ste_save_CFLAGS" = "x"; then
  EXTRA_CFLAGS="$CFLAGS"
  CFLAGS=
else
  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
    EXTRA_CFLAGS=
  else
    EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
    CFLAGS="$apr_ste_save_CFLAGS"
  fi
fi
echo "  restoring CFLAGS to \"$CFLAGS\""
echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""



if test "x$apr_ste_save_CXXFLAGS" = "x"; then
  EXTRA_CXXFLAGS="$CXXFLAGS"
  CXXFLAGS=
else
  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
    EXTRA_CXXFLAGS=
  else
    EXTRA_CXXFLAGS=`echo $CXXFLAGS | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
    CXXFLAGS="$apr_ste_save_CXXFLAGS"
  fi
fi
echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""



if test "x$apr_ste_save_LDFLAGS" = "x"; then
  EXTRA_LDFLAGS="$LDFLAGS"
  LDFLAGS=
else
  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
    EXTRA_LDFLAGS=
  else
    EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
    LDFLAGS="$apr_ste_save_LDFLAGS"
  fi
fi
echo "  restoring LDFLAGS to \"$LDFLAGS\""
echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""



if test "x$apr_ste_save_LIBS" = "x"; then
  EXTRA_LIBS="$LIBS"
  LIBS=
else
  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
    EXTRA_LIBS=
  else
    EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
    LIBS="$apr_ste_save_LIBS"
  fi
fi
echo "  restoring LIBS to \"$LIBS\""
echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""



if test "x$apr_ste_save_INCLUDES" = "x"; then
  EXTRA_INCLUDES="$INCLUDES"
  INCLUDES=
else
  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
    EXTRA_INCLUDES=
  else
    EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
    INCLUDES="$apr_ste_save_INCLUDES"
  fi
fi
echo "  restoring INCLUDES to \"$INCLUDES\""
echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""



echo $ac_n "${nl}Construct makefiles and header files...${nl}"


  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
  


  abs_srcdir="`(cd $srcdir && pwd)`"

  echo creating config_vars.mk
  test -d build || $mkdir_p build
  > build/config_vars.mk
  for i in $APACHE_VAR_SUBST; do
    eval echo "$i = \$$i" >> build/config_vars.mk
  done


rm -f modules.c
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c


ap_last=
ap_cur="$prefix"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
ap_prefix="${ap_cur}"

cat >> confdefs.h <<EOF
#define HTTPD_ROOT "${ap_prefix}"
EOF

cat >> confdefs.h <<EOF
#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
EOF

cat >> confdefs.h <<EOF
#define APACHE_MPM_DIR "$MPM_DIR"
EOF


perlbin=`$ac_aux_dir/PrintPath perl`
if test "x$perlbin" = "x"; then
    perlbin="/replace/with/path/to/perl/interpreter"
fi



BSD_MAKEFILE=no
ap_make_include=include
ap_make_delimiter=' '
case $host in
*bsdi*)
    # Check whether they've installed GNU make
    if make --version > /dev/null 2>&1; then
        true
    else
        BSD_MAKEFILE=yes
        ap_make_include=.include
        ap_make_delimiter='"'
    fi
    ;;
esac



test -d docs/conf||$mkdir_p docs/conf

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "$APACHE_OUTPUT_FILES docs/conf/httpd-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk include/ap_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@exp_exec_prefix@%$exp_exec_prefix%g
s%@rel_exec_prefix@%$rel_exec_prefix%g
s%@exp_bindir@%$exp_bindir%g
s%@rel_bindir@%$rel_bindir%g
s%@exp_sbindir@%$exp_sbindir%g
s%@rel_sbindir@%$rel_sbindir%g
s%@exp_libdir@%$exp_libdir%g
s%@rel_libdir@%$rel_libdir%g
s%@exp_libexecdir@%$exp_libexecdir%g
s%@rel_libexecdir@%$rel_libexecdir%g
s%@exp_mandir@%$exp_mandir%g
s%@rel_mandir@%$rel_mandir%g
s%@exp_sysconfdir@%$exp_sysconfdir%g
s%@rel_sysconfdir@%$rel_sysconfdir%g
s%@exp_datadir@%$exp_datadir%g
s%@rel_datadir@%$rel_datadir%g
s%@exp_installbuilddir@%$exp_installbuilddir%g
s%@rel_installbuilddir@%$rel_installbuilddir%g
s%@exp_errordir@%$exp_errordir%g
s%@rel_errordir@%$rel_errordir%g
s%@exp_iconsdir@%$exp_iconsdir%g
s%@rel_iconsdir@%$rel_iconsdir%g
s%@exp_htdocsdir@%$exp_htdocsdir%g
s%@rel_htdocsdir@%$rel_htdocsdir%g
s%@exp_manualdir@%$exp_manualdir%g
s%@rel_manualdir@%$rel_manualdir%g
s%@exp_cgidir@%$exp_cgidir%g
s%@rel_cgidir@%$rel_cgidir%g
s%@exp_includedir@%$exp_includedir%g
s%@rel_includedir@%$rel_includedir%g
s%@exp_localstatedir@%$exp_localstatedir%g
s%@rel_localstatedir@%$rel_localstatedir%g
s%@exp_runtimedir@%$exp_runtimedir%g
s%@rel_runtimedir@%$rel_runtimedir%g
s%@exp_logfiledir@%$exp_logfiledir%g
s%@rel_logfiledir@%$rel_logfiledir%g
s%@exp_proxycachedir@%$exp_proxycachedir%g
s%@rel_proxycachedir@%$rel_proxycachedir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@SHLTCFLAGS@%$SHLTCFLAGS%g
s%@LTCFLAGS@%$LTCFLAGS%g
s%@RM@%$RM%g
s%@AWK@%$AWK%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@LN_S@%$LN_S%g
s%@RANLIB@%$RANLIB%g
s%@MPM_NAME@%$MPM_NAME%g
s%@MPM_SUBDIR_NAME@%$MPM_SUBDIR_NAME%g
s%@htpasswd_LTFLAGS@%$htpasswd_LTFLAGS%g
s%@htdigest_LTFLAGS@%$htdigest_LTFLAGS%g
s%@rotatelogs_LTFLAGS@%$rotatelogs_LTFLAGS%g
s%@logresolve_LTFLAGS@%$logresolve_LTFLAGS%g
s%@htdbm_LTFLAGS@%$htdbm_LTFLAGS%g
s%@ab_LTFLAGS@%$ab_LTFLAGS%g
s%@checkgid_LTFLAGS@%$checkgid_LTFLAGS%g
s%@progname@%$progname%g
s%@MPM_LIB@%$MPM_LIB%g
s%@OS@%$OS%g
s%@OS_DIR@%$OS_DIR%g
s%@BUILTIN_LIBS@%$BUILTIN_LIBS%g
s%@SHLIBPATH_VAR@%$SHLIBPATH_VAR%g
s%@OS_SPECIFIC_VARS@%$OS_SPECIFIC_VARS%g
s%@PRE_SHARED_CMDS@%$PRE_SHARED_CMDS%g
s%@POST_SHARED_CMDS@%$POST_SHARED_CMDS%g
s%@shared_build@%$shared_build%g
s%@AP_LIBS@%$AP_LIBS%g
s%@AP_BUILD_SRCLIB_DIRS@%$AP_BUILD_SRCLIB_DIRS%g
s%@AP_CLEAN_SRCLIB_DIRS@%$AP_CLEAN_SRCLIB_DIRS%g
s%@AP_SIG_GRACEFUL@%$AP_SIG_GRACEFUL%g
s%@AP_SIG_GRACEFUL_STRING@%$AP_SIG_GRACEFUL_STRING%g
s%@AP_SIG_GRACEFUL_SHORT@%$AP_SIG_GRACEFUL_SHORT%g
s%@EXTRA_CPPFLAGS@%$EXTRA_CPPFLAGS%g
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
s%@EXTRA_CXXFLAGS@%$EXTRA_CXXFLAGS%g
s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g
s%@EXTRA_LIBS@%$EXTRA_LIBS%g
s%@EXTRA_INCLUDES@%$EXTRA_INCLUDES%g
s%@abs_srcdir@%$abs_srcdir%g
s%@cgidir@%$cgidir%g
s%@logfiledir@%$logfiledir%g
s%@htdocsdir@%$htdocsdir%g
s%@manualdir@%$manualdir%g
s%@errordir@%$errordir%g
s%@iconsdir@%$iconsdir%g
s%@installbuilddir@%$installbuilddir%g
s%@runtimedir@%$runtimedir%g
s%@proxycachedir@%$proxycachedir%g
s%@other_targets@%$other_targets%g
s%@CXX@%$CXX%g
s%@LTFLAGS@%$LTFLAGS%g
s%@LT_LDFLAGS@%$LT_LDFLAGS%g
s%@SH_LDFLAGS@%$SH_LDFLAGS%g
s%@HTTPD_LDFLAGS@%$HTTPD_LDFLAGS%g
s%@UTIL_LDFLAGS@%$UTIL_LDFLAGS%g
s%@INCLUDES@%$INCLUDES%g
s%@NOTEST_CPPFLAGS@%$NOTEST_CPPFLAGS%g
s%@NOTEST_CFLAGS@%$NOTEST_CFLAGS%g
s%@NOTEST_CXXFLAGS@%$NOTEST_CXXFLAGS%g
s%@NOTEST_LDFLAGS@%$NOTEST_LDFLAGS%g
s%@NOTEST_LIBS@%$NOTEST_LIBS%g
s%@LIBTOOL@%$LIBTOOL%g
s%@MODULE_DIRS@%$MODULE_DIRS%g
s%@MODULE_CLEANDIRS@%$MODULE_CLEANDIRS%g
s%@PORT@%$PORT%g
s%@CORE_IMPLIB_FILE@%$CORE_IMPLIB_FILE%g
s%@CORE_IMPLIB@%$CORE_IMPLIB%g
s%@SH_LIBS@%$SH_LIBS%g
s%@SH_LIBTOOL@%$SH_LIBTOOL%g
s%@MK_IMPLIB@%$MK_IMPLIB%g
s%@INSTALL_PROG_FLAGS@%$INSTALL_PROG_FLAGS%g
s%@DSO_MODULES@%$DSO_MODULES%g
s%@perlbin@%$perlbin%g
s%@ap_make_include@%$ap_make_include%g
s%@ap_make_delimiter@%$ap_make_delimiter%g

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"$APACHE_OUTPUT_FILES docs/conf/httpd-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/ap_config_auto.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done

EOF
cat >> $CONFIG_STATUS <<EOF

  
  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES


EOF
cat >> $CONFIG_STATUS <<\EOF
true
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1


