1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="ABOUT_APACHE"
586enable_option_checking=no
587ac_default_prefix=/usr/local/apache2
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626ap_make_delimiter
627ap_make_include
628perlbin
629APU_CONFIG
630APU_VERSION
631APU_INCLUDEDIR
632APU_BINDIR
633APR_CONFIG
634APR_VERSION
635APR_INCLUDEDIR
636APR_BINDIR
637LOAD_ALL_MODULES
638ENABLED_DSO_MODULES
639DSO_MODULES
640INSTALL_PROG_FLAGS
641MK_IMPLIB
642SH_LIBTOOL
643SH_LIBS
644CORE_IMPLIB
645CORE_IMPLIB_FILE
646SSLPORT
647PORT
648MODULE_CLEANDIRS
649MODULE_DIRS
650LIBTOOL
651INTERNAL_CPPFLAGS
652NOTEST_LIBS
653NOTEST_LDFLAGS
654NOTEST_CXXFLAGS
655NOTEST_CFLAGS
656NOTEST_CPPFLAGS
657INCLUDES
658UTIL_LDFLAGS
659HTTPD_LDFLAGS
660SH_LDFLAGS
661LT_LDFLAGS
662LTFLAGS
663CXXFLAGS
664CXX
665other_targets
666proxycachedir
667runtimedir
668installbuilddir
669iconsdir
670errordir
671manualdir
672htdocsdir
673logfiledir
674cgidir
675abs_srcdir
676EXTRA_INCLUDES
677EXTRA_LIBS
678EXTRA_LDFLAGS
679EXTRA_CXXFLAGS
680EXTRA_CFLAGS
681EXTRA_CPPFLAGS
682AP_CLEAN_SRCLIB_DIRS
683AP_BUILD_SRCLIB_DIRS
684AP_LIBS
685shared_build
686POST_SHARED_CMDS
687PRE_SHARED_CMDS
688MOD_SO_ENABLED
689OS_SPECIFIC_VARS
690SHLIBPATH_VAR
691BUILTIN_LIBS
692OS_DIR
693OS
694progname
695MOD_REWRITE_LDADD
696MOD_ALIAS_LDADD
697MOD_USERDIR_LDADD
698MOD_SPELING_LDADD
699MOD_ACTIONS_LDADD
700MOD_IMAGEMAP_LDADD
701MOD_DIR_LDADD
702MOD_NEGOTIATION_LDADD
703MOD_VHOST_ALIAS_LDADD
704MOD_DAV_LOCK_LDADD
705MOD_DAV_FS_LDADD
706MOD_CGI_LDADD
707MOD_CGID_LDADD
708MOD_SUEXEC_LDADD
709MOD_INFO_LDADD
710MOD_ASIS_LDADD
711MOD_AUTOINDEX_LDADD
712MOD_STATUS_LDADD
713MOD_DAV_LDADD
714MOD_HEARTMONITOR_LDADD
715MOD_HEARTBEAT_LDADD
716MOD_PRIVILEGES_LDADD
717MOD_UNIXD_LDADD
718MOD_MPM_EVENT_LDADD
719MPM_LIB
720MPM_SUBDIRS
721MOD_LBMETHOD_HEARTBEAT_LDADD
722MOD_LBMETHOD_BYBUSYNESS_LDADD
723MOD_LBMETHOD_BYTRAFFIC_LDADD
724MOD_LBMETHOD_BYREQUESTS_LDADD
725APACHECTL_ULIMIT
726NONPORTABLE_SUPPORT
727fcgistarter_LTFLAGS
728httxt2dbm_LTFLAGS
729htcacheclean_LTFLAGS
730checkgid_LTFLAGS
731ab_LTFLAGS
732htdbm_LTFLAGS
733logresolve_LTFLAGS
734rotatelogs_LTFLAGS
735htdigest_LTFLAGS
736htpasswd_LTFLAGS
737MOD_DIALUP_LDADD
738MOD_OPTIONAL_FN_EXPORT_LDADD
739MOD_OPTIONAL_FN_IMPORT_LDADD
740MOD_OPTIONAL_HOOK_IMPORT_LDADD
741MOD_OPTIONAL_HOOK_EXPORT_LDADD
742MOD_SSL_LDADD
743ab_LDFLAGS
744ab_CFLAGS
745MOD_SLOTMEM_PLAIN_LDADD
746MOD_SLOTMEM_SHM_LDADD
747MOD_SESSION_DBD_LDADD
748MOD_SESSION_CRYPTO_LDADD
749MOD_SESSION_COOKIE_LDADD
750MOD_SESSION_LDADD
751MOD_PROXY_EXPRESS_LDADD
752MOD_PROXY_BALANCER_LDADD
753MOD_PROXY_AJP_LDADD
754MOD_PROXY_WSTUNNEL_LDADD
755MOD_PROXY_FDPASS_LDADD
756MOD_PROXY_SCGI_LDADD
757MOD_PROXY_FCGI_LDADD
758MOD_PROXY_HTTP_LDADD
759MOD_PROXY_FTP_LDADD
760MOD_PROXY_CONNECT_LDADD
761MOD_PROXY_LDADD
762MOD_REMOTEIP_LDADD
763MOD_VERSION_LDADD
764MOD_SETENVIF_LDADD
765MOD_UNIQUE_ID_LDADD
766MOD_USERTRACK_LDADD
767MOD_IDENT_LDADD
768MOD_HEADERS_LDADD
769MOD_EXPIRES_LDADD
770MOD_CERN_META_LDADD
771MOD_MIME_MAGIC_LDADD
772MOD_ENV_LDADD
773MOD_LUA_LDADD
774LUA_CFLAGS
775LUA_LIBS
776MOD_LOGIO_LDADD
777MOD_LOG_FORENSIC_LDADD
778MOD_LOG_DEBUG_LDADD
779MOD_LOG_CONFIG_LDADD
780MOD_LDAP_LDADD
781MOD_MIME_LDADD
782MOD_HTTP_LDADD
783MOD_PROXY_HTML_LDADD
784MOD_XML2ENC_LDADD
785MOD_DEFLATE_LDADD
786MOD_CHARSET_LITE_LDADD
787MOD_SED_LDADD
788MOD_SUBSTITUTE_LDADD
789MOD_REFLECTOR_LDADD
790MOD_FILTER_LDADD
791MOD_INCLUDE_LDADD
792MOD_REQUEST_LDADD
793MOD_EXT_FILTER_LDADD
794MOD_REQTIMEOUT_LDADD
795MOD_RATELIMIT_LDADD
796MOD_DATA_LDADD
797MOD_BUFFER_LDADD
798MOD_EXAMPLE_IPC_LDADD
799MOD_CASE_FILTER_IN_LDADD
800MOD_CASE_FILTER_LDADD
801MOD_EXAMPLE_HOOKS_LDADD
802MOD_ECHO_LDADD
803MOD_DUMPIO_LDADD
804MOD_BUCKETEER_LDADD
805MOD_DBD_LDADD
806MOD_MACRO_LDADD
807MOD_WATCHDOG_LDADD
808MOD_SO_LDADD
809INSTALL_DSO
810MOD_SOCACHE_DC_LDADD
811MOD_SOCACHE_MEMCACHE_LDADD
812MOD_SOCACHE_DBM_LDADD
813MOD_SOCACHE_SHMCB_LDADD
814MOD_CACHE_SOCACHE_LDADD
815MOD_CACHE_DISK_LDADD
816MOD_CACHE_LDADD
817MOD_FILE_CACHE_LDADD
818MOD_ISAPI_LDADD
819MOD_ALLOWMETHODS_LDADD
820MOD_AUTH_DIGEST_LDADD
821MOD_AUTH_FORM_LDADD
822MOD_AUTH_BASIC_LDADD
823MOD_ACCESS_COMPAT_LDADD
824MOD_AUTHNZ_LDAP_LDADD
825MOD_AUTHZ_CORE_LDADD
826MOD_AUTHZ_DBD_LDADD
827MOD_AUTHZ_OWNER_LDADD
828MOD_AUTHZ_DBM_LDADD
829MOD_AUTHZ_USER_LDADD
830MOD_AUTHZ_GROUPFILE_LDADD
831MOD_AUTHZ_HOST_LDADD
832MOD_AUTHN_CORE_LDADD
833MOD_AUTHN_SOCACHE_LDADD
834MOD_AUTHN_DBD_LDADD
835MOD_AUTHN_ANON_LDADD
836MOD_AUTHN_DBM_LDADD
837MOD_AUTHN_FILE_LDADD
838PILDFLAGS
839PICFLAGS
840DTRACE
841CRYPT_LIBS
842MATH_LIBS
843MKDEP
844INSTALL
845MKINSTALLDIRS
846LYNX_PATH
847RANLIB
848LN_S
849AWK
850RSYNC
851PKGCONFIG
852RM
853LTCFLAGS
854SHLTCFLAGS
855PCRE_LIBS
856PCRE_CONFIG
857CPP
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865target_os
866target_vendor
867target_cpu
868target
869host_os
870host_vendor
871host_cpu
872host
873build_os
874build_vendor
875build_cpu
876build
877EGREP
878GREP
879rel_proxycachedir
880exp_proxycachedir
881rel_logfiledir
882exp_logfiledir
883rel_runtimedir
884exp_runtimedir
885rel_localstatedir
886exp_localstatedir
887rel_includedir
888exp_includedir
889rel_cgidir
890exp_cgidir
891rel_manualdir
892exp_manualdir
893rel_htdocsdir
894exp_htdocsdir
895rel_iconsdir
896exp_iconsdir
897rel_errordir
898exp_errordir
899rel_installbuilddir
900exp_installbuilddir
901rel_datadir
902exp_datadir
903rel_sysconfdir
904exp_sysconfdir
905rel_mandir
906exp_mandir
907rel_libexecdir
908exp_libexecdir
909rel_libdir
910exp_libdir
911rel_sbindir
912exp_sbindir
913rel_bindir
914exp_bindir
915rel_exec_prefix
916exp_exec_prefix
917HTTPD_VERSION
918target_alias
919host_alias
920build_alias
921LIBS
922ECHO_T
923ECHO_N
924ECHO_C
925DEFS
926mandir
927localedir
928libdir
929psdir
930pdfdir
931dvidir
932htmldir
933infodir
934docdir
935oldincludedir
936includedir
937localstatedir
938sharedstatedir
939sysconfdir
940datadir
941datarootdir
942libexecdir
943sbindir
944bindir
945program_transform_name
946prefix
947exec_prefix
948PACKAGE_URL
949PACKAGE_BUGREPORT
950PACKAGE_STRING
951PACKAGE_VERSION
952PACKAGE_TARNAME
953PACKAGE_NAME
954PATH_SEPARATOR
955SHELL'
956ac_subst_files=''
957ac_user_opts='
958enable_option_checking
959enable_layout
960with_included_apr
961with_apr
962with_apr_util
963with_pcre
964with_port
965with_sslport
966enable_dtrace
967enable_hook_probes
968enable_exception_hook
969enable_load_all_modules
970enable_maintainer_mode
971enable_debugger_mode
972enable_pie
973enable_modules
974enable_mods_shared
975enable_mods_static
976enable_authn_file
977enable_authn_dbm
978enable_authn_anon
979enable_authn_dbd
980enable_authn_socache
981enable_authn_core
982enable_authz_host
983enable_authz_groupfile
984enable_authz_user
985enable_authz_dbm
986enable_authz_owner
987enable_authz_dbd
988enable_authz_core
989enable_authnz_ldap
990enable_access_compat
991enable_auth_basic
992enable_auth_form
993enable_auth_digest
994enable_allowmethods
995enable_isapi
996enable_file_cache
997enable_cache
998enable_cache_disk
999enable_cache_socache
1000enable_socache_shmcb
1001enable_socache_dbm
1002enable_socache_memcache
1003enable_socache_dc
1004with_distcache
1005enable_so
1006enable_watchdog
1007enable_macro
1008enable_dbd
1009enable_bucketeer
1010enable_dumpio
1011enable_echo
1012enable_example_hooks
1013enable_case_filter
1014enable_case_filter_in
1015enable_example_ipc
1016enable_buffer
1017enable_data
1018enable_ratelimit
1019enable_reqtimeout
1020enable_ext_filter
1021enable_request
1022enable_include
1023enable_filter
1024enable_reflector
1025enable_substitute
1026enable_sed
1027enable_charset_lite
1028enable_deflate
1029with_z
1030enable_xml2enc
1031with_libxml2
1032enable_proxy_html
1033enable_http
1034enable_mime
1035enable_ldap
1036enable_log_config
1037enable_log_debug
1038enable_log_forensic
1039enable_logio
1040enable_lua
1041with_lua
1042enable_luajit
1043enable_env
1044enable_mime_magic
1045enable_cern_meta
1046enable_expires
1047enable_headers
1048enable_ident
1049enable_usertrack
1050enable_unique_id
1051enable_setenvif
1052enable_version
1053enable_remoteip
1054enable_proxy
1055enable_proxy_connect
1056enable_proxy_ftp
1057enable_proxy_http
1058enable_proxy_fcgi
1059enable_proxy_scgi
1060enable_proxy_fdpass
1061enable_proxy_wstunnel
1062enable_proxy_ajp
1063enable_proxy_balancer
1064enable_proxy_express
1065enable_session
1066enable_session_cookie
1067enable_session_crypto
1068enable_session_dbd
1069enable_slotmem_shm
1070enable_slotmem_plain
1071enable_ssl
1072with_ssl
1073enable_ssl_staticlib_deps
1074enable_optional_hook_export
1075enable_optional_hook_import
1076enable_optional_fn_import
1077enable_optional_fn_export
1078enable_dialup
1079enable_static_support
1080enable_static_htpasswd
1081enable_static_htdigest
1082enable_static_rotatelogs
1083enable_static_logresolve
1084enable_static_htdbm
1085enable_static_ab
1086enable_static_checkgid
1087enable_static_htcacheclean
1088enable_static_httxt2dbm
1089enable_static_fcgistarter
1090enable_lbmethod_byrequests
1091enable_lbmethod_bytraffic
1092enable_lbmethod_bybusyness
1093enable_lbmethod_heartbeat
1094with_mpm
1095enable_mpms_shared
1096enable_unixd
1097enable_privileges
1098enable_heartbeat
1099enable_heartmonitor
1100enable_dav
1101enable_status
1102enable_autoindex
1103enable_asis
1104enable_info
1105enable_suexec
1106enable_cgid
1107enable_cgi
1108enable_dav_fs
1109enable_dav_lock
1110with_module
1111enable_vhost_alias
1112enable_negotiation
1113enable_dir
1114enable_imagemap
1115enable_actions
1116enable_speling
1117enable_userdir
1118enable_alias
1119enable_rewrite
1120with_program_name
1121with_suexec_bin
1122with_suexec_caller
1123with_suexec_userdir
1124with_suexec_docroot
1125with_suexec_uidmin
1126with_suexec_gidmin
1127with_suexec_logfile
1128with_suexec_safepath
1129with_suexec_umask
1130enable_v4_mapped
1131'
1132      ac_precious_vars='build_alias
1133host_alias
1134target_alias
1135CC
1136CFLAGS
1137LDFLAGS
1138LIBS
1139CPPFLAGS
1140CPP'
1141
1142
1143# Initialize some variables set by options.
1144ac_init_help=
1145ac_init_version=false
1146ac_unrecognized_opts=
1147ac_unrecognized_sep=
1148# The variables have the same names as the options, with
1149# dashes changed to underlines.
1150cache_file=/dev/null
1151exec_prefix=NONE
1152no_create=
1153no_recursion=
1154prefix=NONE
1155program_prefix=NONE
1156program_suffix=NONE
1157program_transform_name=s,x,x,
1158silent=
1159site=
1160srcdir=
1161verbose=
1162x_includes=NONE
1163x_libraries=NONE
1164
1165# Installation directory options.
1166# These are left unexpanded so users can "make install exec_prefix=/foo"
1167# and all the variables that are supposed to be based on exec_prefix
1168# by default will actually change.
1169# Use braces instead of parens because sh, perl, etc. also accept them.
1170# (The list follows the same order as the GNU Coding Standards.)
1171bindir='${exec_prefix}/bin'
1172sbindir='${exec_prefix}/sbin'
1173libexecdir='${exec_prefix}/libexec'
1174datarootdir='${prefix}/share'
1175datadir='${datarootdir}'
1176sysconfdir='${prefix}/etc'
1177sharedstatedir='${prefix}/com'
1178localstatedir='${prefix}/var'
1179includedir='${prefix}/include'
1180oldincludedir='/usr/include'
1181docdir='${datarootdir}/doc/${PACKAGE}'
1182infodir='${datarootdir}/info'
1183htmldir='${docdir}'
1184dvidir='${docdir}'
1185pdfdir='${docdir}'
1186psdir='${docdir}'
1187libdir='${exec_prefix}/lib'
1188localedir='${datarootdir}/locale'
1189mandir='${datarootdir}/man'
1190
1191ac_prev=
1192ac_dashdash=
1193for ac_option
1194do
1195  # If the previous option needs an argument, assign it.
1196  if test -n "$ac_prev"; then
1197    eval $ac_prev=\$ac_option
1198    ac_prev=
1199    continue
1200  fi
1201
1202  case $ac_option in
1203  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1204  *=)   ac_optarg= ;;
1205  *)    ac_optarg=yes ;;
1206  esac
1207
1208  # Accept the important Cygnus configure options, so we can diagnose typos.
1209
1210  case $ac_dashdash$ac_option in
1211  --)
1212    ac_dashdash=yes ;;
1213
1214  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1215    ac_prev=bindir ;;
1216  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1217    bindir=$ac_optarg ;;
1218
1219  -build | --build | --buil | --bui | --bu)
1220    ac_prev=build_alias ;;
1221  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1222    build_alias=$ac_optarg ;;
1223
1224  -cache-file | --cache-file | --cache-fil | --cache-fi \
1225  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1226    ac_prev=cache_file ;;
1227  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1228  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1229    cache_file=$ac_optarg ;;
1230
1231  --config-cache | -C)
1232    cache_file=config.cache ;;
1233
1234  -datadir | --datadir | --datadi | --datad)
1235    ac_prev=datadir ;;
1236  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1237    datadir=$ac_optarg ;;
1238
1239  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1240  | --dataroo | --dataro | --datar)
1241    ac_prev=datarootdir ;;
1242  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1243  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1244    datarootdir=$ac_optarg ;;
1245
1246  -disable-* | --disable-*)
1247    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1248    # Reject names that are not valid shell variable names.
1249    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250      as_fn_error $? "invalid feature name: $ac_useropt"
1251    ac_useropt_orig=$ac_useropt
1252    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253    case $ac_user_opts in
1254      *"
1255"enable_$ac_useropt"
1256"*) ;;
1257      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1258	 ac_unrecognized_sep=', ';;
1259    esac
1260    eval enable_$ac_useropt=no ;;
1261
1262  -docdir | --docdir | --docdi | --doc | --do)
1263    ac_prev=docdir ;;
1264  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1265    docdir=$ac_optarg ;;
1266
1267  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1268    ac_prev=dvidir ;;
1269  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1270    dvidir=$ac_optarg ;;
1271
1272  -enable-* | --enable-*)
1273    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276      as_fn_error $? "invalid feature name: $ac_useropt"
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"enable_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval enable_$ac_useropt=\$ac_optarg ;;
1287
1288  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1289  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1290  | --exec | --exe | --ex)
1291    ac_prev=exec_prefix ;;
1292  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1293  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1294  | --exec=* | --exe=* | --ex=*)
1295    exec_prefix=$ac_optarg ;;
1296
1297  -gas | --gas | --ga | --g)
1298    # Obsolete; use --with-gas.
1299    with_gas=yes ;;
1300
1301  -help | --help | --hel | --he | -h)
1302    ac_init_help=long ;;
1303  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1304    ac_init_help=recursive ;;
1305  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1306    ac_init_help=short ;;
1307
1308  -host | --host | --hos | --ho)
1309    ac_prev=host_alias ;;
1310  -host=* | --host=* | --hos=* | --ho=*)
1311    host_alias=$ac_optarg ;;
1312
1313  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1314    ac_prev=htmldir ;;
1315  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1316  | --ht=*)
1317    htmldir=$ac_optarg ;;
1318
1319  -includedir | --includedir | --includedi | --included | --include \
1320  | --includ | --inclu | --incl | --inc)
1321    ac_prev=includedir ;;
1322  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1323  | --includ=* | --inclu=* | --incl=* | --inc=*)
1324    includedir=$ac_optarg ;;
1325
1326  -infodir | --infodir | --infodi | --infod | --info | --inf)
1327    ac_prev=infodir ;;
1328  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1329    infodir=$ac_optarg ;;
1330
1331  -libdir | --libdir | --libdi | --libd)
1332    ac_prev=libdir ;;
1333  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1334    libdir=$ac_optarg ;;
1335
1336  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1337  | --libexe | --libex | --libe)
1338    ac_prev=libexecdir ;;
1339  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1340  | --libexe=* | --libex=* | --libe=*)
1341    libexecdir=$ac_optarg ;;
1342
1343  -localedir | --localedir | --localedi | --localed | --locale)
1344    ac_prev=localedir ;;
1345  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1346    localedir=$ac_optarg ;;
1347
1348  -localstatedir | --localstatedir | --localstatedi | --localstated \
1349  | --localstate | --localstat | --localsta | --localst | --locals)
1350    ac_prev=localstatedir ;;
1351  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1352  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1353    localstatedir=$ac_optarg ;;
1354
1355  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1356    ac_prev=mandir ;;
1357  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1358    mandir=$ac_optarg ;;
1359
1360  -nfp | --nfp | --nf)
1361    # Obsolete; use --without-fp.
1362    with_fp=no ;;
1363
1364  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1365  | --no-cr | --no-c | -n)
1366    no_create=yes ;;
1367
1368  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1369  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1370    no_recursion=yes ;;
1371
1372  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1373  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1374  | --oldin | --oldi | --old | --ol | --o)
1375    ac_prev=oldincludedir ;;
1376  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1377  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1378  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1379    oldincludedir=$ac_optarg ;;
1380
1381  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1382    ac_prev=prefix ;;
1383  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1384    prefix=$ac_optarg ;;
1385
1386  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1387  | --program-pre | --program-pr | --program-p)
1388    ac_prev=program_prefix ;;
1389  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1390  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1391    program_prefix=$ac_optarg ;;
1392
1393  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1394  | --program-suf | --program-su | --program-s)
1395    ac_prev=program_suffix ;;
1396  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1397  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1398    program_suffix=$ac_optarg ;;
1399
1400  -program-transform-name | --program-transform-name \
1401  | --program-transform-nam | --program-transform-na \
1402  | --program-transform-n | --program-transform- \
1403  | --program-transform | --program-transfor \
1404  | --program-transfo | --program-transf \
1405  | --program-trans | --program-tran \
1406  | --progr-tra | --program-tr | --program-t)
1407    ac_prev=program_transform_name ;;
1408  -program-transform-name=* | --program-transform-name=* \
1409  | --program-transform-nam=* | --program-transform-na=* \
1410  | --program-transform-n=* | --program-transform-=* \
1411  | --program-transform=* | --program-transfor=* \
1412  | --program-transfo=* | --program-transf=* \
1413  | --program-trans=* | --program-tran=* \
1414  | --progr-tra=* | --program-tr=* | --program-t=*)
1415    program_transform_name=$ac_optarg ;;
1416
1417  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1418    ac_prev=pdfdir ;;
1419  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1420    pdfdir=$ac_optarg ;;
1421
1422  -psdir | --psdir | --psdi | --psd | --ps)
1423    ac_prev=psdir ;;
1424  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1425    psdir=$ac_optarg ;;
1426
1427  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428  | -silent | --silent | --silen | --sile | --sil)
1429    silent=yes ;;
1430
1431  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1432    ac_prev=sbindir ;;
1433  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1434  | --sbi=* | --sb=*)
1435    sbindir=$ac_optarg ;;
1436
1437  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1438  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1439  | --sharedst | --shareds | --shared | --share | --shar \
1440  | --sha | --sh)
1441    ac_prev=sharedstatedir ;;
1442  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1443  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1444  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1445  | --sha=* | --sh=*)
1446    sharedstatedir=$ac_optarg ;;
1447
1448  -site | --site | --sit)
1449    ac_prev=site ;;
1450  -site=* | --site=* | --sit=*)
1451    site=$ac_optarg ;;
1452
1453  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1454    ac_prev=srcdir ;;
1455  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1456    srcdir=$ac_optarg ;;
1457
1458  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1459  | --syscon | --sysco | --sysc | --sys | --sy)
1460    ac_prev=sysconfdir ;;
1461  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1462  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1463    sysconfdir=$ac_optarg ;;
1464
1465  -target | --target | --targe | --targ | --tar | --ta | --t)
1466    ac_prev=target_alias ;;
1467  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1468    target_alias=$ac_optarg ;;
1469
1470  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1471    verbose=yes ;;
1472
1473  -version | --version | --versio | --versi | --vers | -V)
1474    ac_init_version=: ;;
1475
1476  -with-* | --with-*)
1477    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1478    # Reject names that are not valid shell variable names.
1479    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480      as_fn_error $? "invalid package name: $ac_useropt"
1481    ac_useropt_orig=$ac_useropt
1482    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483    case $ac_user_opts in
1484      *"
1485"with_$ac_useropt"
1486"*) ;;
1487      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1488	 ac_unrecognized_sep=', ';;
1489    esac
1490    eval with_$ac_useropt=\$ac_optarg ;;
1491
1492  -without-* | --without-*)
1493    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1494    # Reject names that are not valid shell variable names.
1495    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1496      as_fn_error $? "invalid package name: $ac_useropt"
1497    ac_useropt_orig=$ac_useropt
1498    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499    case $ac_user_opts in
1500      *"
1501"with_$ac_useropt"
1502"*) ;;
1503      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1504	 ac_unrecognized_sep=', ';;
1505    esac
1506    eval with_$ac_useropt=no ;;
1507
1508  --x)
1509    # Obsolete; use --with-x.
1510    with_x=yes ;;
1511
1512  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1513  | --x-incl | --x-inc | --x-in | --x-i)
1514    ac_prev=x_includes ;;
1515  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1516  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1517    x_includes=$ac_optarg ;;
1518
1519  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1520  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1521    ac_prev=x_libraries ;;
1522  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1523  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1524    x_libraries=$ac_optarg ;;
1525
1526  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1527Try \`$0 --help' for more information"
1528    ;;
1529
1530  *=*)
1531    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1532    # Reject names that are not valid shell variable names.
1533    case $ac_envvar in #(
1534      '' | [0-9]* | *[!_$as_cr_alnum]* )
1535      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1536    esac
1537    eval $ac_envvar=\$ac_optarg
1538    export $ac_envvar ;;
1539
1540  *)
1541    # FIXME: should be removed in autoconf 3.0.
1542    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1543    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1544      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1545    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1546    ;;
1547
1548  esac
1549done
1550
1551if test -n "$ac_prev"; then
1552  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1553  as_fn_error $? "missing argument to $ac_option"
1554fi
1555
1556if test -n "$ac_unrecognized_opts"; then
1557  case $enable_option_checking in
1558    no) ;;
1559    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1560    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1561  esac
1562fi
1563
1564# Check all directory arguments for consistency.
1565for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1566		datadir sysconfdir sharedstatedir localstatedir includedir \
1567		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1568		libdir localedir mandir
1569do
1570  eval ac_val=\$$ac_var
1571  # Remove trailing slashes.
1572  case $ac_val in
1573    */ )
1574      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1575      eval $ac_var=\$ac_val;;
1576  esac
1577  # Be sure to have absolute directory names.
1578  case $ac_val in
1579    [\\/$]* | ?:[\\/]* )  continue;;
1580    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1581  esac
1582  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1583done
1584
1585# There might be people who depend on the old broken behavior: `$host'
1586# used to hold the argument of --host etc.
1587# FIXME: To remove some day.
1588build=$build_alias
1589host=$host_alias
1590target=$target_alias
1591
1592# FIXME: To remove some day.
1593if test "x$host_alias" != x; then
1594  if test "x$build_alias" = x; then
1595    cross_compiling=maybe
1596  elif test "x$build_alias" != "x$host_alias"; then
1597    cross_compiling=yes
1598  fi
1599fi
1600
1601ac_tool_prefix=
1602test -n "$host_alias" && ac_tool_prefix=$host_alias-
1603
1604test "$silent" = yes && exec 6>/dev/null
1605
1606
1607ac_pwd=`pwd` && test -n "$ac_pwd" &&
1608ac_ls_di=`ls -di .` &&
1609ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1610  as_fn_error $? "working directory cannot be determined"
1611test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1612  as_fn_error $? "pwd does not report name of working directory"
1613
1614
1615# Find the source files, if location was not specified.
1616if test -z "$srcdir"; then
1617  ac_srcdir_defaulted=yes
1618  # Try the directory containing this script, then the parent directory.
1619  ac_confdir=`$as_dirname -- "$as_myself" ||
1620$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1621	 X"$as_myself" : 'X\(//\)[^/]' \| \
1622	 X"$as_myself" : 'X\(//\)$' \| \
1623	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1624$as_echo X"$as_myself" |
1625    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1626	    s//\1/
1627	    q
1628	  }
1629	  /^X\(\/\/\)[^/].*/{
1630	    s//\1/
1631	    q
1632	  }
1633	  /^X\(\/\/\)$/{
1634	    s//\1/
1635	    q
1636	  }
1637	  /^X\(\/\).*/{
1638	    s//\1/
1639	    q
1640	  }
1641	  s/.*/./; q'`
1642  srcdir=$ac_confdir
1643  if test ! -r "$srcdir/$ac_unique_file"; then
1644    srcdir=..
1645  fi
1646else
1647  ac_srcdir_defaulted=no
1648fi
1649if test ! -r "$srcdir/$ac_unique_file"; then
1650  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1651  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1652fi
1653ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1654ac_abs_confdir=`(
1655	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1656	pwd)`
1657# When building in place, set srcdir=.
1658if test "$ac_abs_confdir" = "$ac_pwd"; then
1659  srcdir=.
1660fi
1661# Remove unnecessary trailing slashes from srcdir.
1662# Double slashes in file names in object file debugging info
1663# mess up M-x gdb in Emacs.
1664case $srcdir in
1665*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1666esac
1667for ac_var in $ac_precious_vars; do
1668  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1669  eval ac_env_${ac_var}_value=\$${ac_var}
1670  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1671  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1672done
1673
1674#
1675# Report the --help message.
1676#
1677if test "$ac_init_help" = "long"; then
1678  # Omit some internal or obsolete options to make the list less imposing.
1679  # This message is too long to be a string in the A/UX 3.1 sh.
1680  cat <<_ACEOF
1681\`configure' configures this package to adapt to many kinds of systems.
1682
1683Usage: $0 [OPTION]... [VAR=VALUE]...
1684
1685To assign environment variables (e.g., CC, CFLAGS...), specify them as
1686VAR=VALUE.  See below for descriptions of some of the useful variables.
1687
1688Defaults for the options are specified in brackets.
1689
1690Configuration:
1691  -h, --help              display this help and exit
1692      --help=short        display options specific to this package
1693      --help=recursive    display the short help of all the included packages
1694  -V, --version           display version information and exit
1695  -q, --quiet, --silent   do not print \`checking ...' messages
1696      --cache-file=FILE   cache test results in FILE [disabled]
1697  -C, --config-cache      alias for \`--cache-file=config.cache'
1698  -n, --no-create         do not create output files
1699      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1700
1701Installation directories:
1702  --prefix=PREFIX         install architecture-independent files in PREFIX
1703                          [$ac_default_prefix]
1704  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1705                          [PREFIX]
1706
1707By default, \`make install' will install all the files in
1708\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1709an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1710for instance \`--prefix=\$HOME'.
1711
1712For better control, use the options below.
1713
1714Fine tuning of the installation directories:
1715  --bindir=DIR            user executables [EPREFIX/bin]
1716  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1717  --libexecdir=DIR        program executables [EPREFIX/libexec]
1718  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1719  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1720  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1721  --libdir=DIR            object code libraries [EPREFIX/lib]
1722  --includedir=DIR        C header files [PREFIX/include]
1723  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1724  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1725  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1726  --infodir=DIR           info documentation [DATAROOTDIR/info]
1727  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1728  --mandir=DIR            man documentation [DATAROOTDIR/man]
1729  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1730  --htmldir=DIR           html documentation [DOCDIR]
1731  --dvidir=DIR            dvi documentation [DOCDIR]
1732  --pdfdir=DIR            pdf documentation [DOCDIR]
1733  --psdir=DIR             ps documentation [DOCDIR]
1734_ACEOF
1735
1736  cat <<\_ACEOF
1737
1738System types:
1739  --build=BUILD     configure for building on BUILD [guessed]
1740  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1741  --target=TARGET   configure for building compilers for TARGET [HOST]
1742_ACEOF
1743fi
1744
1745if test -n "$ac_init_help"; then
1746
1747  cat <<\_ACEOF
1748
1749Optional Features:
1750  --disable-option-checking  ignore unrecognized --enable/--with options
1751  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1752  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1753  --enable-layout=LAYOUT
1754  --enable-dtrace         Enable DTrace probes
1755  --enable-hook-probes    Enable APR hook probes
1756  --enable-exception-hook Enable fatal exception hook
1757  --enable-load-all-modules
1758                          Load all modules
1759  --enable-maintainer-mode
1760                          Turn on debugging and compile time warnings and load
1761                          all compiled modules
1762  --enable-debugger-mode  Turn on debugging and compile time warnings and turn
1763                          off optimization
1764  --enable-pie            Build httpd as a Position Independent Executable
1765  --enable-modules=MODULE-LIST
1766                          Space-separated list of modules to enable | "all" |
1767                          "most" | "few" | "none" | "reallyall"
1768  --enable-mods-shared=MODULE-LIST
1769                          Space-separated list of shared modules to enable |
1770                          "all" | "most" | "few" | "reallyall"
1771  --enable-mods-static=MODULE-LIST
1772                          Space-separated list of static modules to enable |
1773                          "all" | "most" | "few" | "reallyall"
1774  --disable-authn-file    file-based authentication control
1775  --enable-authn-dbm      DBM-based authentication control
1776  --enable-authn-anon     anonymous user authentication control
1777  --enable-authn-dbd      SQL-based authentication control
1778  --enable-authn-socache  Cached authentication control
1779  --disable-authn-core    core authentication module
1780  --disable-authz-host    host-based authorization control
1781  --disable-authz-groupfile
1782                          'require group' authorization control
1783  --disable-authz-user    'require user' authorization control
1784  --enable-authz-dbm      DBM-based authorization control
1785  --enable-authz-owner    'require file-owner' authorization control
1786  --enable-authz-dbd      SQL based authorization and Login/Session support
1787  --disable-authz-core    core authorization provider vector module
1788  --enable-authnz-ldap    LDAP based authentication
1789  --disable-access-compat mod_access compatibility
1790  --disable-auth-basic    basic authentication
1791  --enable-auth-form      form authentication
1792  --enable-auth-digest    RFC2617 Digest authentication
1793  --enable-allowmethods   restrict allowed HTTP methods
1794  --enable-isapi          isapi extension support
1795  --enable-file-cache     File cache
1796  --enable-cache          dynamic file caching. At least one storage
1797                          management module (e.g. mod_cache_disk) is also
1798                          necessary.
1799  --enable-cache-disk     disk caching module
1800  --enable-cache-socache  shared object caching module
1801  --enable-socache-shmcb  shmcb small object cache provider
1802  --enable-socache-dbm    dbm small object cache provider
1803  --enable-socache-memcache
1804                          memcache small object cache provider
1805  --enable-socache-dc     distcache small object cache provider
1806  --enable-so             DSO capability. This module will be automatically
1807                          enabled unless you build all modules statically.
1808  --enable-watchdog       Watchdog module
1809  --enable-macro          Define and use macros in configuration files
1810  --enable-dbd            Apache DBD Framework
1811  --enable-bucketeer      buckets manipulation filter. Useful only for
1812                          developers and testing purposes.
1813  --enable-dumpio         I/O dump filter
1814  --enable-echo           ECHO server
1815  --enable-example-hooks  Example hook callback handler module
1816  --enable-case-filter    Example uppercase conversion filter
1817  --enable-case-filter-in Example uppercase conversion input filter
1818  --enable-example-ipc    Example of shared memory and mutex usage
1819  --enable-buffer         Filter Buffering
1820  --enable-data           RFC2397 data encoder
1821  --enable-ratelimit      Output Bandwidth Limiting
1822  --disable-reqtimeout    Limit time waiting for request from client
1823  --enable-ext-filter     external filter module
1824  --enable-request        Request Body Filtering
1825  --enable-include        Server Side Includes
1826  --disable-filter        Smart Filtering
1827  --enable-reflector      Reflect request through the output filter stack
1828  --enable-substitute     response content rewrite-like filtering
1829  --enable-sed            filter request and/or response bodies through sed
1830  --disable-charset-lite  character set translation. Enabled by default only
1831                          on EBCDIC systems.
1832  --enable-charset-lite   character set translation. Enabled by default only
1833                          on EBCDIC systems.
1834  --enable-deflate        Deflate transfer encoding support
1835  --enable-xml2enc        i18n support for markup filters
1836  --enable-proxy-html     Fix HTML Links in a Reverse Proxy
1837  --enable-http           HTTP protocol handling. The http module is a basic
1838                          one that enables the server to function as an HTTP
1839                          server. It is only useful to disable it if you want
1840                          to use another protocol module instead. Don't
1841                          disable this module unless you are really sure what
1842                          you are doing. Note: This module will always be
1843                          linked statically.
1844  --disable-mime          mapping of file-extension to MIME. Disabling this
1845                          module is normally not recommended.
1846  --enable-ldap           LDAP caching and connection pooling services
1847  --disable-log-config    logging configuration. You won't be able to log
1848                          requests to the server without this module.
1849  --enable-log-debug      configurable debug logging
1850  --enable-log-forensic   forensic logging
1851  --enable-logio          input and output logging
1852  --enable-lua            Apache Lua Framework
1853  --enable-luajit         Enable LuaJit Support
1854  --disable-env           clearing/setting of ENV vars
1855  --enable-mime-magic     automagically determining MIME type
1856  --enable-cern-meta      CERN-type meta files
1857  --enable-expires        Expires header control
1858  --disable-headers       HTTP header control
1859  --enable-ident          RFC 1413 identity check
1860  --enable-usertrack      user-session tracking
1861  --enable-unique-id      per-request unique ids
1862  --disable-setenvif      basing ENV vars on headers
1863  --disable-version       determining httpd version in config files
1864  --enable-remoteip       translate header contents to an apparent client
1865                          remote_ip
1866  --enable-proxy          Apache proxy module
1867  --enable-proxy-connect  Apache proxy CONNECT module. Requires and is enabled
1868                          by --enable-proxy.
1869  --enable-proxy-ftp      Apache proxy FTP module. Requires and is enabled by
1870                          --enable-proxy.
1871  --enable-proxy-http     Apache proxy HTTP module. Requires and is enabled by
1872                          --enable-proxy.
1873  --enable-proxy-fcgi     Apache proxy FastCGI module. Requires and is enabled
1874                          by --enable-proxy.
1875  --enable-proxy-scgi     Apache proxy SCGI module. Requires and is enabled by
1876                          --enable-proxy.
1877  --enable-proxy-fdpass   Apache proxy to Unix Daemon Socket module. Requires
1878                          --enable-proxy.
1879  --enable-proxy-wstunnel Apache proxy Websocket Tunnel module. Requires and
1880                          is enabled by --enable-proxy.
1881  --enable-proxy-ajp      Apache proxy AJP module. Requires and is enabled by
1882                          --enable-proxy.
1883  --enable-proxy-balancer Apache proxy BALANCER module. Requires and is
1884                          enabled by --enable-proxy.
1885  --enable-proxy-express  mass reverse-proxy module. Requires --enable-proxy.
1886  --enable-session        session module
1887  --enable-session-cookie session cookie module
1888  --enable-session-crypto session crypto module
1889  --enable-session-dbd    session dbd module
1890  --enable-slotmem-shm    slotmem provider that uses shared memory
1891  --enable-slotmem-plain  slotmem provider that uses plain memory
1892  --enable-ssl            SSL/TLS support (mod_ssl)
1893  --enable-ssl-staticlib-deps
1894                          link mod_ssl with dependencies of OpenSSL's static
1895                          libraries (as indicated by "pkg-config --static").
1896                          Must be specified in addition to --enable-ssl.
1897  --enable-optional-hook-export
1898                          example optional hook exporter
1899  --enable-optional-hook-import
1900                          example optional hook importer
1901  --enable-optional-fn-import
1902                          example optional function importer
1903  --enable-optional-fn-export
1904                          example optional function exporter
1905  --enable-dialup         rate limits static files to dialup modem speeds
1906  --enable-static-support Build a statically linked version of the support
1907                          binaries
1908  --enable-static-htpasswd
1909                          Build a statically linked version of htpasswd
1910  --enable-static-htdigest
1911                          Build a statically linked version of htdigest
1912  --enable-static-rotatelogs
1913                          Build a statically linked version of rotatelogs
1914  --enable-static-logresolve
1915                          Build a statically linked version of logresolve
1916  --enable-static-htdbm   Build a statically linked version of htdbm
1917  --enable-static-ab      Build a statically linked version of ab
1918  --enable-static-checkgid
1919                          Build a statically linked version of checkgid
1920  --enable-static-htcacheclean
1921                          Build a statically linked version of htcacheclean
1922  --enable-static-httxt2dbm
1923                          Build a statically linked version of httxt2dbm
1924  --enable-static-fcgistarter
1925                          Build a statically linked version of fcgistarter
1926  --enable-lbmethod-byrequests
1927                          Apache proxy Load balancing by request counting
1928  --enable-lbmethod-bytraffic
1929                          Apache proxy Load balancing by traffic counting
1930  --enable-lbmethod-bybusyness
1931                          Apache proxy Load balancing by busyness
1932  --enable-lbmethod-heartbeat
1933                          Apache proxy Load balancing from Heartbeats
1934  --enable-mpms-shared=MPM-LIST
1935                          Space-separated list of MPM modules to enable for
1936                          dynamic loading. MPM-LIST=list | "all"
1937  --enable-unixd          unix specific support
1938  --enable-privileges     Per-virtualhost Unix UserIDs and enhanced security
1939                          for Solaris
1940  --enable-heartbeat      Generates Heartbeats
1941  --enable-heartmonitor   Collects Heartbeats
1942  --enable-dav            WebDAV protocol handling. --enable-dav also enables
1943                          mod_dav_fs
1944  --disable-status        process/thread monitoring
1945  --disable-autoindex     directory listing
1946  --enable-asis           as-is filetypes
1947  --enable-info           server information
1948  --enable-suexec         set uid and gid for spawned processes
1949  --enable-cgid           CGI scripts. Enabled by default with threaded MPMs
1950  --enable-cgi            CGI scripts. Enabled by default with non-threaded
1951                          MPMs
1952  --enable-dav-fs         DAV provider for the filesystem. --enable-dav also
1953                          enables mod_dav_fs.
1954  --enable-dav-lock       DAV provider for generic locking
1955  --enable-vhost-alias    mass virtual hosting module
1956  --enable-negotiation    content negotiation
1957  --disable-dir           directory request handling
1958  --enable-imagemap       server-side imagemaps
1959  --enable-actions        Action triggering on requests
1960  --enable-speling        correct common URL misspellings
1961  --enable-userdir        mapping of requests to user-specific directories
1962  --disable-alias         mapping of requests to different filesystem parts
1963  --enable-rewrite        rule based URL manipulation
1964  --enable-v4-mapped      Allow IPv6 sockets to handle IPv4 connections
1965
1966Optional Packages:
1967  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1968  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1969  --with-included-apr     Use bundled copies of APR/APR-Util
1970  --with-apr=PATH         prefix for installed APR or the full path to
1971                             apr-config
1972  --with-apr-util=PATH    prefix for installed APU or the full path to
1973                             apu-config
1974  --with-pcre=PATH        Use external PCRE library
1975  --with-port=PORT        Port on which to listen (default is 80)
1976  --with-sslport=SSLPORT  Port on which to securelisten (default is 443)
1977  --with-distcache=PATH   Distcache installation directory
1978  --with-z=PATH           use a specific zlib library
1979  --with-libxml2=PATH     location for libxml2
1980  --with-lua=PATH         Path to the Lua 5.1 prefix
1981  --with-ssl=PATH         OpenSSL installation directory
1982  --with-mpm=MPM          Choose the process model for Apache to use by
1983                          default. MPM={event|worker|prefork|winnt} This will
1984                          be statically linked as the only available MPM
1985                          unless --enable-mpms-shared is also specified.
1986  --with-module=module-type:module-file
1987                          Enable module-file in the modules/<module-type>
1988                          directory.
1989  --with-program-name     alternate executable name
1990  --with-suexec-bin       Path to suexec binary
1991  --with-suexec-caller    User allowed to call SuExec
1992  --with-suexec-userdir   User subdirectory
1993  --with-suexec-docroot   SuExec root directory
1994  --with-suexec-uidmin    Minimal allowed UID
1995  --with-suexec-gidmin    Minimal allowed GID
1996  --with-suexec-logfile   Set the logfile
1997  --with-suexec-safepath  Set the safepath
1998  --with-suexec-umask     umask for suexec'd process
1999
2000Some influential environment variables:
2001  CC          C compiler command
2002  CFLAGS      C compiler flags
2003  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2004              nonstandard directory <lib dir>
2005  LIBS        libraries to pass to the linker, e.g. -l<library>
2006  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2007              you have headers in a nonstandard directory <include dir>
2008  CPP         C preprocessor
2009
2010Use these variables to override the choices made by `configure' or to help
2011it to find libraries and programs with nonstandard names/locations.
2012
2013Report bugs to the package provider.
2014_ACEOF
2015ac_status=$?
2016fi
2017
2018if test "$ac_init_help" = "recursive"; then
2019  # If there are subdirs, report their specific --help.
2020  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021    test -d "$ac_dir" ||
2022      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023      continue
2024    ac_builddir=.
2025
2026case "$ac_dir" in
2027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028*)
2029  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030  # A ".." for each directory in $ac_dir_suffix.
2031  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032  case $ac_top_builddir_sub in
2033  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035  esac ;;
2036esac
2037ac_abs_top_builddir=$ac_pwd
2038ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039# for backward compatibility:
2040ac_top_builddir=$ac_top_build_prefix
2041
2042case $srcdir in
2043  .)  # We are building in place.
2044    ac_srcdir=.
2045    ac_top_srcdir=$ac_top_builddir_sub
2046    ac_abs_top_srcdir=$ac_pwd ;;
2047  [\\/]* | ?:[\\/]* )  # Absolute name.
2048    ac_srcdir=$srcdir$ac_dir_suffix;
2049    ac_top_srcdir=$srcdir
2050    ac_abs_top_srcdir=$srcdir ;;
2051  *) # Relative name.
2052    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053    ac_top_srcdir=$ac_top_build_prefix$srcdir
2054    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055esac
2056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2057
2058    cd "$ac_dir" || { ac_status=$?; continue; }
2059    # Check for guested configure.
2060    if test -f "$ac_srcdir/configure.gnu"; then
2061      echo &&
2062      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063    elif test -f "$ac_srcdir/configure"; then
2064      echo &&
2065      $SHELL "$ac_srcdir/configure" --help=recursive
2066    else
2067      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068    fi || ac_status=$?
2069    cd "$ac_pwd" || { ac_status=$?; break; }
2070  done
2071fi
2072
2073test -n "$ac_init_help" && exit $ac_status
2074if $ac_init_version; then
2075  cat <<\_ACEOF
2076configure
2077generated by GNU Autoconf 2.69
2078
2079Copyright (C) 2012 Free Software Foundation, Inc.
2080This configure script is free software; the Free Software Foundation
2081gives unlimited permission to copy, distribute and modify it.
2082_ACEOF
2083  exit
2084fi
2085
2086## ------------------------ ##
2087## Autoconf initialization. ##
2088## ------------------------ ##
2089
2090# ac_fn_c_try_compile LINENO
2091# --------------------------
2092# Try to compile conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_compile ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  rm -f conftest.$ac_objext
2097  if { { ac_try="$ac_compile"
2098case "(($ac_try" in
2099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100  *) ac_try_echo=$ac_try;;
2101esac
2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103$as_echo "$ac_try_echo"; } >&5
2104  (eval "$ac_compile") 2>conftest.err
2105  ac_status=$?
2106  if test -s conftest.err; then
2107    grep -v '^ *+' conftest.err >conftest.er1
2108    cat conftest.er1 >&5
2109    mv -f conftest.er1 conftest.err
2110  fi
2111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112  test $ac_status = 0; } && {
2113	 test -z "$ac_c_werror_flag" ||
2114	 test ! -s conftest.err
2115       } && test -s conftest.$ac_objext; then :
2116  ac_retval=0
2117else
2118  $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121	ac_retval=1
2122fi
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124  as_fn_set_status $ac_retval
2125
2126} # ac_fn_c_try_compile
2127
2128# ac_fn_c_try_cpp LINENO
2129# ----------------------
2130# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_cpp ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  if { { ac_try="$ac_cpp conftest.$ac_ext"
2135case "(($ac_try" in
2136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137  *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142  ac_status=$?
2143  if test -s conftest.err; then
2144    grep -v '^ *+' conftest.err >conftest.er1
2145    cat conftest.er1 >&5
2146    mv -f conftest.er1 conftest.err
2147  fi
2148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149  test $ac_status = 0; } > conftest.i && {
2150	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151	 test ! -s conftest.err
2152       }; then :
2153  ac_retval=0
2154else
2155  $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158    ac_retval=1
2159fi
2160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161  as_fn_set_status $ac_retval
2162
2163} # ac_fn_c_try_cpp
2164
2165# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166# -------------------------------------------------------
2167# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168# the include files in INCLUDES and setting the cache variable VAR
2169# accordingly.
2170ac_fn_c_check_header_mongrel ()
2171{
2172  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173  if eval \${$3+:} false; then :
2174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
2176if eval \${$3+:} false; then :
2177  $as_echo_n "(cached) " >&6
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182else
2183  # Is the header compilable?
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185$as_echo_n "checking $2 usability... " >&6; }
2186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$4
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192  ac_header_compiler=yes
2193else
2194  ac_header_compiler=no
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198$as_echo "$ac_header_compiler" >&6; }
2199
2200# Is the header present?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202$as_echo_n "checking $2 presence... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h.  */
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_cpp "$LINENO"; then :
2208  ac_header_preproc=yes
2209else
2210  ac_header_preproc=no
2211fi
2212rm -f conftest.err conftest.i conftest.$ac_ext
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214$as_echo "$ac_header_preproc" >&6; }
2215
2216# So?  What about this header?
2217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218  yes:no: )
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223    ;;
2224  no:yes:* )
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2228$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2232$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235    ;;
2236esac
2237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238$as_echo_n "checking for $2... " >&6; }
2239if eval \${$3+:} false; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  eval "$3=\$ac_header_compiler"
2243fi
2244eval ac_res=\$$3
2245	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247fi
2248  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250} # ac_fn_c_check_header_mongrel
2251
2252# ac_fn_c_try_run LINENO
2253# ----------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run.
2256ac_fn_c_try_run ()
2257{
2258  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259  if { { ac_try="$ac_link"
2260case "(($ac_try" in
2261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262  *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266  (eval "$ac_link") 2>&5
2267  ac_status=$?
2268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270  { { case "(($ac_try" in
2271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272  *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276  (eval "$ac_try") 2>&5
2277  ac_status=$?
2278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279  test $ac_status = 0; }; }; then :
2280  ac_retval=0
2281else
2282  $as_echo "$as_me: program exited with status $ac_status" >&5
2283       $as_echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286       ac_retval=$ac_status
2287fi
2288  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290  as_fn_set_status $ac_retval
2291
2292} # ac_fn_c_try_run
2293
2294# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2295# -------------------------------------------------------
2296# Tests whether HEADER exists and can be compiled using the include files in
2297# INCLUDES, setting the cache variable VAR accordingly.
2298ac_fn_c_check_header_compile ()
2299{
2300  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302$as_echo_n "checking for $2... " >&6; }
2303if eval \${$3+:} false; then :
2304  $as_echo_n "(cached) " >&6
2305else
2306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h.  */
2308$4
2309#include <$2>
2310_ACEOF
2311if ac_fn_c_try_compile "$LINENO"; then :
2312  eval "$3=yes"
2313else
2314  eval "$3=no"
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317fi
2318eval ac_res=\$$3
2319	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320$as_echo "$ac_res" >&6; }
2321  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322
2323} # ac_fn_c_check_header_compile
2324
2325# ac_fn_c_try_link LINENO
2326# -----------------------
2327# Try to link conftest.$ac_ext, and return whether this succeeded.
2328ac_fn_c_try_link ()
2329{
2330  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331  rm -f conftest.$ac_objext conftest$ac_exeext
2332  if { { ac_try="$ac_link"
2333case "(($ac_try" in
2334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335  *) ac_try_echo=$ac_try;;
2336esac
2337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338$as_echo "$ac_try_echo"; } >&5
2339  (eval "$ac_link") 2>conftest.err
2340  ac_status=$?
2341  if test -s conftest.err; then
2342    grep -v '^ *+' conftest.err >conftest.er1
2343    cat conftest.er1 >&5
2344    mv -f conftest.er1 conftest.err
2345  fi
2346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; } && {
2348	 test -z "$ac_c_werror_flag" ||
2349	 test ! -s conftest.err
2350       } && test -s conftest$ac_exeext && {
2351	 test "$cross_compiling" = yes ||
2352	 test -x conftest$ac_exeext
2353       }; then :
2354  ac_retval=0
2355else
2356  $as_echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359	ac_retval=1
2360fi
2361  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363  # interfere with the next link command; also delete a directory that is
2364  # left behind by Apple's compiler.  We do this before executing the actions.
2365  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367  as_fn_set_status $ac_retval
2368
2369} # ac_fn_c_try_link
2370
2371# ac_fn_c_check_func LINENO FUNC VAR
2372# ----------------------------------
2373# Tests whether FUNC exists, setting the cache variable VAR accordingly
2374ac_fn_c_check_func ()
2375{
2376  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378$as_echo_n "checking for $2... " >&6; }
2379if eval \${$3+:} false; then :
2380  $as_echo_n "(cached) " >&6
2381else
2382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2385   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2386#define $2 innocuous_$2
2387
2388/* System header to define __stub macros and hopefully few prototypes,
2389    which can conflict with char $2 (); below.
2390    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2391    <limits.h> exists even on freestanding compilers.  */
2392
2393#ifdef __STDC__
2394# include <limits.h>
2395#else
2396# include <assert.h>
2397#endif
2398
2399#undef $2
2400
2401/* Override any GCC internal prototype to avoid an error.
2402   Use char because int might match the return type of a GCC
2403   builtin and then its argument prototype would still apply.  */
2404#ifdef __cplusplus
2405extern "C"
2406#endif
2407char $2 ();
2408/* The GNU C library defines this for functions which it implements
2409    to always fail with ENOSYS.  Some functions are actually named
2410    something starting with __ and the normal name is an alias.  */
2411#if defined __stub_$2 || defined __stub___$2
2412choke me
2413#endif
2414
2415int
2416main ()
2417{
2418return $2 ();
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_link "$LINENO"; then :
2424  eval "$3=yes"
2425else
2426  eval "$3=no"
2427fi
2428rm -f core conftest.err conftest.$ac_objext \
2429    conftest$ac_exeext conftest.$ac_ext
2430fi
2431eval ac_res=\$$3
2432	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433$as_echo "$ac_res" >&6; }
2434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436} # ac_fn_c_check_func
2437
2438# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2439# ---------------------------------------------
2440# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2441# accordingly.
2442ac_fn_c_check_decl ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  as_decl_name=`echo $2|sed 's/ *(.*//'`
2446  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2448$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2449if eval \${$3+:} false; then :
2450  $as_echo_n "(cached) " >&6
2451else
2452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h.  */
2454$4
2455int
2456main ()
2457{
2458#ifndef $as_decl_name
2459#ifdef __cplusplus
2460  (void) $as_decl_use;
2461#else
2462  (void) $as_decl_name;
2463#endif
2464#endif
2465
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  eval "$3=yes"
2472else
2473  eval "$3=no"
2474fi
2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476fi
2477eval ac_res=\$$3
2478	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479$as_echo "$ac_res" >&6; }
2480  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481
2482} # ac_fn_c_check_decl
2483cat >config.log <<_ACEOF
2484This file contains any messages produced by compilers while
2485running configure, to aid debugging if configure makes a mistake.
2486
2487It was created by $as_me, which was
2488generated by GNU Autoconf 2.69.  Invocation command line was
2489
2490  $ $0 $@
2491
2492_ACEOF
2493exec 5>>config.log
2494{
2495cat <<_ASUNAME
2496## --------- ##
2497## Platform. ##
2498## --------- ##
2499
2500hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2501uname -m = `(uname -m) 2>/dev/null || echo unknown`
2502uname -r = `(uname -r) 2>/dev/null || echo unknown`
2503uname -s = `(uname -s) 2>/dev/null || echo unknown`
2504uname -v = `(uname -v) 2>/dev/null || echo unknown`
2505
2506/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2507/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2508
2509/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2510/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2511/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2512/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2513/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2514/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2515/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2516
2517_ASUNAME
2518
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524    $as_echo "PATH: $as_dir"
2525  done
2526IFS=$as_save_IFS
2527
2528} >&5
2529
2530cat >&5 <<_ACEOF
2531
2532
2533## ----------- ##
2534## Core tests. ##
2535## ----------- ##
2536
2537_ACEOF
2538
2539
2540# Keep a trace of the command line.
2541# Strip out --no-create and --no-recursion so they do not pile up.
2542# Strip out --silent because we don't want to record it for future runs.
2543# Also quote any args containing shell meta-characters.
2544# Make two passes to allow for proper duplicate-argument suppression.
2545ac_configure_args=
2546ac_configure_args0=
2547ac_configure_args1=
2548ac_must_keep_next=false
2549for ac_pass in 1 2
2550do
2551  for ac_arg
2552  do
2553    case $ac_arg in
2554    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2555    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2556    | -silent | --silent | --silen | --sile | --sil)
2557      continue ;;
2558    *\'*)
2559      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2560    esac
2561    case $ac_pass in
2562    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2563    2)
2564      as_fn_append ac_configure_args1 " '$ac_arg'"
2565      if test $ac_must_keep_next = true; then
2566	ac_must_keep_next=false # Got value, back to normal.
2567      else
2568	case $ac_arg in
2569	  *=* | --config-cache | -C | -disable-* | --disable-* \
2570	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2571	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2572	  | -with-* | --with-* | -without-* | --without-* | --x)
2573	    case "$ac_configure_args0 " in
2574	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2575	    esac
2576	    ;;
2577	  -* ) ac_must_keep_next=true ;;
2578	esac
2579      fi
2580      as_fn_append ac_configure_args " '$ac_arg'"
2581      ;;
2582    esac
2583  done
2584done
2585{ ac_configure_args0=; unset ac_configure_args0;}
2586{ ac_configure_args1=; unset ac_configure_args1;}
2587
2588# When interrupted or exit'd, cleanup temporary files, and complete
2589# config.log.  We remove comments because anyway the quotes in there
2590# would cause problems or look ugly.
2591# WARNING: Use '\'' to represent an apostrophe within the trap.
2592# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2593trap 'exit_status=$?
2594  # Save into config.log some information that might help in debugging.
2595  {
2596    echo
2597
2598    $as_echo "## ---------------- ##
2599## Cache variables. ##
2600## ---------------- ##"
2601    echo
2602    # The following way of writing the cache mishandles newlines in values,
2603(
2604  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2605    eval ac_val=\$$ac_var
2606    case $ac_val in #(
2607    *${as_nl}*)
2608      case $ac_var in #(
2609      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2610$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2611      esac
2612      case $ac_var in #(
2613      _ | IFS | as_nl) ;; #(
2614      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2615      *) { eval $ac_var=; unset $ac_var;} ;;
2616      esac ;;
2617    esac
2618  done
2619  (set) 2>&1 |
2620    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2621    *${as_nl}ac_space=\ *)
2622      sed -n \
2623	"s/'\''/'\''\\\\'\'''\''/g;
2624	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2625      ;; #(
2626    *)
2627      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2628      ;;
2629    esac |
2630    sort
2631)
2632    echo
2633
2634    $as_echo "## ----------------- ##
2635## Output variables. ##
2636## ----------------- ##"
2637    echo
2638    for ac_var in $ac_subst_vars
2639    do
2640      eval ac_val=\$$ac_var
2641      case $ac_val in
2642      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2643      esac
2644      $as_echo "$ac_var='\''$ac_val'\''"
2645    done | sort
2646    echo
2647
2648    if test -n "$ac_subst_files"; then
2649      $as_echo "## ------------------- ##
2650## File substitutions. ##
2651## ------------------- ##"
2652      echo
2653      for ac_var in $ac_subst_files
2654      do
2655	eval ac_val=\$$ac_var
2656	case $ac_val in
2657	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2658	esac
2659	$as_echo "$ac_var='\''$ac_val'\''"
2660      done | sort
2661      echo
2662    fi
2663
2664    if test -s confdefs.h; then
2665      $as_echo "## ----------- ##
2666## confdefs.h. ##
2667## ----------- ##"
2668      echo
2669      cat confdefs.h
2670      echo
2671    fi
2672    test "$ac_signal" != 0 &&
2673      $as_echo "$as_me: caught signal $ac_signal"
2674    $as_echo "$as_me: exit $exit_status"
2675  } >&5
2676  rm -f core *.core core.conftest.* &&
2677    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2678    exit $exit_status
2679' 0
2680for ac_signal in 1 2 13 15; do
2681  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2682done
2683ac_signal=0
2684
2685# confdefs.h avoids OS command line length limits that DEFS can exceed.
2686rm -f -r conftest* confdefs.h
2687
2688$as_echo "/* confdefs.h */" > confdefs.h
2689
2690# Predefined preprocessor variables.
2691
2692cat >>confdefs.h <<_ACEOF
2693#define PACKAGE_NAME "$PACKAGE_NAME"
2694_ACEOF
2695
2696cat >>confdefs.h <<_ACEOF
2697#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2698_ACEOF
2699
2700cat >>confdefs.h <<_ACEOF
2701#define PACKAGE_VERSION "$PACKAGE_VERSION"
2702_ACEOF
2703
2704cat >>confdefs.h <<_ACEOF
2705#define PACKAGE_STRING "$PACKAGE_STRING"
2706_ACEOF
2707
2708cat >>confdefs.h <<_ACEOF
2709#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2710_ACEOF
2711
2712cat >>confdefs.h <<_ACEOF
2713#define PACKAGE_URL "$PACKAGE_URL"
2714_ACEOF
2715
2716
2717# Let the site file select an alternate cache file if it wants to.
2718# Prefer an explicitly selected file to automatically selected ones.
2719ac_site_file1=NONE
2720ac_site_file2=NONE
2721if test -n "$CONFIG_SITE"; then
2722  # We do not want a PATH search for config.site.
2723  case $CONFIG_SITE in #((
2724    -*)  ac_site_file1=./$CONFIG_SITE;;
2725    */*) ac_site_file1=$CONFIG_SITE;;
2726    *)   ac_site_file1=./$CONFIG_SITE;;
2727  esac
2728elif test "x$prefix" != xNONE; then
2729  ac_site_file1=$prefix/share/config.site
2730  ac_site_file2=$prefix/etc/config.site
2731else
2732  ac_site_file1=$ac_default_prefix/share/config.site
2733  ac_site_file2=$ac_default_prefix/etc/config.site
2734fi
2735for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736do
2737  test "x$ac_site_file" = xNONE && continue
2738  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2739    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2740$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2741    sed 's/^/| /' "$ac_site_file" >&5
2742    . "$ac_site_file" \
2743      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error $? "failed to load site script $ac_site_file
2746See \`config.log' for more details" "$LINENO" 5; }
2747  fi
2748done
2749
2750if test -r "$cache_file"; then
2751  # Some versions of bash will fail to source /dev/null (special files
2752  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2753  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2754    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2755$as_echo "$as_me: loading cache $cache_file" >&6;}
2756    case $cache_file in
2757      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2758      *)                      . "./$cache_file";;
2759    esac
2760  fi
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2763$as_echo "$as_me: creating cache $cache_file" >&6;}
2764  >$cache_file
2765fi
2766
2767# Check that the precious variables saved in the cache have kept the same
2768# value.
2769ac_cache_corrupted=false
2770for ac_var in $ac_precious_vars; do
2771  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2772  eval ac_new_set=\$ac_env_${ac_var}_set
2773  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2774  eval ac_new_val=\$ac_env_${ac_var}_value
2775  case $ac_old_set,$ac_new_set in
2776    set,)
2777      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2778$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2779      ac_cache_corrupted=: ;;
2780    ,set)
2781      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2782$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2783      ac_cache_corrupted=: ;;
2784    ,);;
2785    *)
2786      if test "x$ac_old_val" != "x$ac_new_val"; then
2787	# differences in whitespace do not lead to failure.
2788	ac_old_val_w=`echo x $ac_old_val`
2789	ac_new_val_w=`echo x $ac_new_val`
2790	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2791	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2792$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2793	  ac_cache_corrupted=:
2794	else
2795	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2796$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2797	  eval $ac_var=\$ac_old_val
2798	fi
2799	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2800$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2801	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2802$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2803      fi;;
2804  esac
2805  # Pass precious variables to config.status.
2806  if test "$ac_new_set" = set; then
2807    case $ac_new_val in
2808    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2809    *) ac_arg=$ac_var=$ac_new_val ;;
2810    esac
2811    case " $ac_configure_args " in
2812      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2813      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2814    esac
2815  fi
2816done
2817if $ac_cache_corrupted; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2821$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2822  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2823fi
2824## -------------------- ##
2825## Main body of script. ##
2826## -------------------- ##
2827
2828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834
2835
2836ac_config_headers="$ac_config_headers include/ap_config_auto.h"
2837
2838ac_aux_dir=
2839for ac_dir in build "$srcdir"/build; do
2840  if test -f "$ac_dir/install-sh"; then
2841    ac_aux_dir=$ac_dir
2842    ac_install_sh="$ac_aux_dir/install-sh -c"
2843    break
2844  elif test -f "$ac_dir/install.sh"; then
2845    ac_aux_dir=$ac_dir
2846    ac_install_sh="$ac_aux_dir/install.sh -c"
2847    break
2848  elif test -f "$ac_dir/shtool"; then
2849    ac_aux_dir=$ac_dir
2850    ac_install_sh="$ac_aux_dir/shtool install -c"
2851    break
2852  fi
2853done
2854if test -z "$ac_aux_dir"; then
2855  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2856fi
2857
2858# These three variables are undocumented and unsupported,
2859# and are intended to be withdrawn in a future Autoconf release.
2860# They can cause serious problems if a builder's source tree is in a directory
2861# whose full name contains unusual characters.
2862ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2863ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2864ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2865
2866
2867
2868abs_srcdir=`(cd $srcdir && pwd)`
2869abs_builddir=`pwd`
2870
2871HTTPD_VERSION=`$abs_srcdir/build/get-version.sh all $abs_srcdir/include/ap_release.h AP_SERVER`
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002# Check whether --enable-layout was given.
3003if test "${enable_layout+set}" = set; then :
3004  enableval=$enable_layout;
3005  LAYOUT=$enableval
3006
3007fi
3008
3009
3010if test -z "$LAYOUT"; then
3011  LAYOUT="Apache"
3012fi
3013
3014  if test ! -f $srcdir/config.layout; then
3015    echo "** Error: Layout file $srcdir/config.layout not found"
3016    echo "** Error: Cannot use undefined layout '$LAYOUT'"
3017    exit 1
3018  fi
3019  # Catch layout names including a slash which will otherwise
3020  # confuse the heck out of the sed script.
3021  case $LAYOUT in
3022  */*)
3023    echo "** Error: $LAYOUT is not a valid layout name"
3024    exit 1 ;;
3025  esac
3026  pldconf=./config.pld
3027
3028  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
3029      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
3030      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
3031      -e "s/^[ 	]*//g" \
3032      -e "s/:[ 	]*/=\'/g" \
3033      -e "s/[ 	]*$/'/g" \
3034      $srcdir/config.layout > $pldconf
3035  layout_name=$LAYOUT
3036  if test ! -s $pldconf; then
3037    echo "** Error: unable to find layout $layout_name"
3038    exit 1
3039  fi
3040  . $pldconf
3041  rm $pldconf
3042  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
3043             sysconfdir datadir includedir localstatedir runtimedir \
3044             logfiledir libdir installbuilddir libsuffix errordir iconsdir htdocsdir cgidir; do
3045    eval "val=\"\$$var\""
3046    case $val in
3047      *+)
3048        val=`echo $val | sed -e 's;\+$;;'`
3049        eval "$var=\"\$val\""
3050        autosuffix=yes
3051        ;;
3052      *)
3053        autosuffix=no
3054        ;;
3055    esac
3056    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
3057    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
3058    if test "$autosuffix" = "yes"; then
3059      if echo $val | grep apache >/dev/null; then
3060        addtarget=no
3061      else
3062        addtarget=yes
3063      fi
3064      if test "$addtarget" = "yes"; then
3065        val="$val/apache2"
3066      fi
3067    fi
3068    eval "$var='$val'"
3069  done
3070
3071
3072
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
3074$as_echo_n "checking for chosen layout... " >&6; }
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
3076$as_echo "$layout_name" >&6; }
3077
3078
3079
3080ac_prev=
3081# Retrieve the command-line arguments.  The eval is needed because
3082# the arguments are quoted to preserve accuracy.
3083eval "set x $ac_configure_args"
3084shift
3085for ac_option
3086do
3087  # If the previous option needs an argument, assign it.
3088  if test -n "$ac_prev"; then
3089    eval "$ac_prev=\$ac_option"
3090    ac_prev=
3091    continue
3092  fi
3093
3094  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
3095
3096  case $ac_option in
3097
3098  -bindir | --bindir | --bindi | --bind | --bin | --bi)
3099    ac_prev=bindir ;;
3100  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3101    bindir="$ac_optarg" ;;
3102
3103  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
3104    ac_prev=datadir ;;
3105  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
3106  | --da=*)
3107    datadir="$ac_optarg" ;;
3108
3109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
3110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
3111  | --exec | --exe | --ex)
3112    ac_prev=exec_prefix ;;
3113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
3114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
3115  | --exec=* | --exe=* | --ex=*)
3116    exec_prefix="$ac_optarg" ;;
3117
3118  -includedir | --includedir | --includedi | --included | --include \
3119  | --includ | --inclu | --incl | --inc)
3120    ac_prev=includedir ;;
3121  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
3122  | --includ=* | --inclu=* | --incl=* | --inc=*)
3123    includedir="$ac_optarg" ;;
3124
3125  -infodir | --infodir | --infodi | --infod | --info | --inf)
3126    ac_prev=infodir ;;
3127  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3128    infodir="$ac_optarg" ;;
3129
3130  -libdir | --libdir | --libdi | --libd)
3131    ac_prev=libdir ;;
3132  -libdir=* | --libdir=* | --libdi=* | --libd=*)
3133    libdir="$ac_optarg" ;;
3134
3135  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
3136  | --libexe | --libex | --libe)
3137    ac_prev=libexecdir ;;
3138  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
3139  | --libexe=* | --libex=* | --libe=*)
3140    libexecdir="$ac_optarg" ;;
3141
3142  -localstatedir | --localstatedir | --localstatedi | --localstated \
3143  | --localstate | --localstat | --localsta | --localst \
3144  | --locals | --local | --loca | --loc | --lo)
3145    ac_prev=localstatedir ;;
3146  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3147  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3148  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3149    localstatedir="$ac_optarg" ;;
3150
3151  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3152    ac_prev=mandir ;;
3153  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3154    mandir="$ac_optarg" ;;
3155
3156  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3157    ac_prev=prefix ;;
3158  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3159    prefix="$ac_optarg" ;;
3160
3161  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3162    ac_prev=sbindir ;;
3163  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3164  | --sbi=* | --sb=*)
3165    sbindir="$ac_optarg" ;;
3166
3167  -sharedstatedir | --sharedstatedir | --sharedstatedi \
3168  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3169  | --sharedst | --shareds | --shared | --share | --shar \
3170  | --sha | --sh)
3171    ac_prev=sharedstatedir ;;
3172  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3173  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3174  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
3175  | --sha=* | --sh=*)
3176    sharedstatedir="$ac_optarg" ;;
3177
3178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
3179  | --syscon | --sysco | --sysc | --sys | --sy)
3180    ac_prev=sysconfdir ;;
3181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
3182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3183    sysconfdir="$ac_optarg" ;;
3184
3185  esac
3186done
3187
3188# Be sure to have absolute paths.
3189for ac_var in exec_prefix prefix
3190do
3191  eval ac_val=$`echo $ac_var`
3192  case $ac_val in
3193    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3194    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
3195  esac
3196done
3197
3198
3199
3200
3201
3202
3203ap_last=
3204ap_cur="$exec_prefix"
3205while test "x${ap_cur}" != "x${ap_last}";
3206do
3207  ap_last="${ap_cur}"
3208  ap_cur=`eval "echo ${ap_cur}"`
3209done
3210exp_exec_prefix="${ap_cur}"
3211
3212
3213  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
3214
3215
3216
3217ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
3218# check if the stripping was successful
3219if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
3220    # it was, so strip of any leading slashes
3221    rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3222else
3223    # it wasn't so return the original
3224    rel_exec_prefix="$exp_exec_prefix"
3225fi
3226
3227
3228  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
3229
3230
3231
3232
3233
3234ap_last=
3235ap_cur="$bindir"
3236while test "x${ap_cur}" != "x${ap_last}";
3237do
3238  ap_last="${ap_cur}"
3239  ap_cur=`eval "echo ${ap_cur}"`
3240done
3241exp_bindir="${ap_cur}"
3242
3243
3244  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
3245
3246
3247
3248ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
3249# check if the stripping was successful
3250if test "x$exp_bindir" != "x${ap_stripped}"; then
3251    # it was, so strip of any leading slashes
3252    rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3253else
3254    # it wasn't so return the original
3255    rel_bindir="$exp_bindir"
3256fi
3257
3258
3259  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
3260
3261
3262
3263
3264
3265ap_last=
3266ap_cur="$sbindir"
3267while test "x${ap_cur}" != "x${ap_last}";
3268do
3269  ap_last="${ap_cur}"
3270  ap_cur=`eval "echo ${ap_cur}"`
3271done
3272exp_sbindir="${ap_cur}"
3273
3274
3275  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
3276
3277
3278
3279ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
3280# check if the stripping was successful
3281if test "x$exp_sbindir" != "x${ap_stripped}"; then
3282    # it was, so strip of any leading slashes
3283    rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3284else
3285    # it wasn't so return the original
3286    rel_sbindir="$exp_sbindir"
3287fi
3288
3289
3290  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
3291
3292
3293
3294
3295
3296ap_last=
3297ap_cur="$libdir"
3298while test "x${ap_cur}" != "x${ap_last}";
3299do
3300  ap_last="${ap_cur}"
3301  ap_cur=`eval "echo ${ap_cur}"`
3302done
3303exp_libdir="${ap_cur}"
3304
3305
3306  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
3307
3308
3309
3310ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
3311# check if the stripping was successful
3312if test "x$exp_libdir" != "x${ap_stripped}"; then
3313    # it was, so strip of any leading slashes
3314    rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3315else
3316    # it wasn't so return the original
3317    rel_libdir="$exp_libdir"
3318fi
3319
3320
3321  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
3322
3323
3324
3325
3326
3327ap_last=
3328ap_cur="$libexecdir"
3329while test "x${ap_cur}" != "x${ap_last}";
3330do
3331  ap_last="${ap_cur}"
3332  ap_cur=`eval "echo ${ap_cur}"`
3333done
3334exp_libexecdir="${ap_cur}"
3335
3336
3337  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
3338
3339
3340
3341ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
3342# check if the stripping was successful
3343if test "x$exp_libexecdir" != "x${ap_stripped}"; then
3344    # it was, so strip of any leading slashes
3345    rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3346else
3347    # it wasn't so return the original
3348    rel_libexecdir="$exp_libexecdir"
3349fi
3350
3351
3352  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
3353
3354
3355
3356
3357
3358ap_last=
3359ap_cur="$mandir"
3360while test "x${ap_cur}" != "x${ap_last}";
3361do
3362  ap_last="${ap_cur}"
3363  ap_cur=`eval "echo ${ap_cur}"`
3364done
3365exp_mandir="${ap_cur}"
3366
3367
3368  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
3369
3370
3371
3372ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
3373# check if the stripping was successful
3374if test "x$exp_mandir" != "x${ap_stripped}"; then
3375    # it was, so strip of any leading slashes
3376    rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3377else
3378    # it wasn't so return the original
3379    rel_mandir="$exp_mandir"
3380fi
3381
3382
3383  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
3384
3385
3386
3387
3388
3389ap_last=
3390ap_cur="$sysconfdir"
3391while test "x${ap_cur}" != "x${ap_last}";
3392do
3393  ap_last="${ap_cur}"
3394  ap_cur=`eval "echo ${ap_cur}"`
3395done
3396exp_sysconfdir="${ap_cur}"
3397
3398
3399  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
3400
3401
3402
3403ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
3404# check if the stripping was successful
3405if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
3406    # it was, so strip of any leading slashes
3407    rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3408else
3409    # it wasn't so return the original
3410    rel_sysconfdir="$exp_sysconfdir"
3411fi
3412
3413
3414  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
3415
3416
3417
3418
3419
3420ap_last=
3421ap_cur="$datadir"
3422while test "x${ap_cur}" != "x${ap_last}";
3423do
3424  ap_last="${ap_cur}"
3425  ap_cur=`eval "echo ${ap_cur}"`
3426done
3427exp_datadir="${ap_cur}"
3428
3429
3430  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
3431
3432
3433
3434ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
3435# check if the stripping was successful
3436if test "x$exp_datadir" != "x${ap_stripped}"; then
3437    # it was, so strip of any leading slashes
3438    rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3439else
3440    # it wasn't so return the original
3441    rel_datadir="$exp_datadir"
3442fi
3443
3444
3445  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
3446
3447
3448
3449
3450
3451ap_last=
3452ap_cur="$installbuilddir"
3453while test "x${ap_cur}" != "x${ap_last}";
3454do
3455  ap_last="${ap_cur}"
3456  ap_cur=`eval "echo ${ap_cur}"`
3457done
3458exp_installbuilddir="${ap_cur}"
3459
3460
3461  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
3462
3463
3464
3465ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
3466# check if the stripping was successful
3467if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
3468    # it was, so strip of any leading slashes
3469    rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3470else
3471    # it wasn't so return the original
3472    rel_installbuilddir="$exp_installbuilddir"
3473fi
3474
3475
3476  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
3477
3478
3479
3480
3481
3482ap_last=
3483ap_cur="$errordir"
3484while test "x${ap_cur}" != "x${ap_last}";
3485do
3486  ap_last="${ap_cur}"
3487  ap_cur=`eval "echo ${ap_cur}"`
3488done
3489exp_errordir="${ap_cur}"
3490
3491
3492  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
3493
3494
3495
3496ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
3497# check if the stripping was successful
3498if test "x$exp_errordir" != "x${ap_stripped}"; then
3499    # it was, so strip of any leading slashes
3500    rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3501else
3502    # it wasn't so return the original
3503    rel_errordir="$exp_errordir"
3504fi
3505
3506
3507  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
3508
3509
3510
3511
3512
3513ap_last=
3514ap_cur="$iconsdir"
3515while test "x${ap_cur}" != "x${ap_last}";
3516do
3517  ap_last="${ap_cur}"
3518  ap_cur=`eval "echo ${ap_cur}"`
3519done
3520exp_iconsdir="${ap_cur}"
3521
3522
3523  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
3524
3525
3526
3527ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
3528# check if the stripping was successful
3529if test "x$exp_iconsdir" != "x${ap_stripped}"; then
3530    # it was, so strip of any leading slashes
3531    rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3532else
3533    # it wasn't so return the original
3534    rel_iconsdir="$exp_iconsdir"
3535fi
3536
3537
3538  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
3539
3540
3541
3542
3543
3544ap_last=
3545ap_cur="$htdocsdir"
3546while test "x${ap_cur}" != "x${ap_last}";
3547do
3548  ap_last="${ap_cur}"
3549  ap_cur=`eval "echo ${ap_cur}"`
3550done
3551exp_htdocsdir="${ap_cur}"
3552
3553
3554  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
3555
3556
3557
3558ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
3559# check if the stripping was successful
3560if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
3561    # it was, so strip of any leading slashes
3562    rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3563else
3564    # it wasn't so return the original
3565    rel_htdocsdir="$exp_htdocsdir"
3566fi
3567
3568
3569  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
3570
3571
3572
3573
3574
3575ap_last=
3576ap_cur="$manualdir"
3577while test "x${ap_cur}" != "x${ap_last}";
3578do
3579  ap_last="${ap_cur}"
3580  ap_cur=`eval "echo ${ap_cur}"`
3581done
3582exp_manualdir="${ap_cur}"
3583
3584
3585  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
3586
3587
3588
3589ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
3590# check if the stripping was successful
3591if test "x$exp_manualdir" != "x${ap_stripped}"; then
3592    # it was, so strip of any leading slashes
3593    rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3594else
3595    # it wasn't so return the original
3596    rel_manualdir="$exp_manualdir"
3597fi
3598
3599
3600  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
3601
3602
3603
3604
3605
3606ap_last=
3607ap_cur="$cgidir"
3608while test "x${ap_cur}" != "x${ap_last}";
3609do
3610  ap_last="${ap_cur}"
3611  ap_cur=`eval "echo ${ap_cur}"`
3612done
3613exp_cgidir="${ap_cur}"
3614
3615
3616  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
3617
3618
3619
3620ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
3621# check if the stripping was successful
3622if test "x$exp_cgidir" != "x${ap_stripped}"; then
3623    # it was, so strip of any leading slashes
3624    rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3625else
3626    # it wasn't so return the original
3627    rel_cgidir="$exp_cgidir"
3628fi
3629
3630
3631  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
3632
3633
3634
3635
3636
3637ap_last=
3638ap_cur="$includedir"
3639while test "x${ap_cur}" != "x${ap_last}";
3640do
3641  ap_last="${ap_cur}"
3642  ap_cur=`eval "echo ${ap_cur}"`
3643done
3644exp_includedir="${ap_cur}"
3645
3646
3647  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
3648
3649
3650
3651ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
3652# check if the stripping was successful
3653if test "x$exp_includedir" != "x${ap_stripped}"; then
3654    # it was, so strip of any leading slashes
3655    rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3656else
3657    # it wasn't so return the original
3658    rel_includedir="$exp_includedir"
3659fi
3660
3661
3662  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
3663
3664
3665
3666
3667
3668ap_last=
3669ap_cur="$localstatedir"
3670while test "x${ap_cur}" != "x${ap_last}";
3671do
3672  ap_last="${ap_cur}"
3673  ap_cur=`eval "echo ${ap_cur}"`
3674done
3675exp_localstatedir="${ap_cur}"
3676
3677
3678  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
3679
3680
3681
3682ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
3683# check if the stripping was successful
3684if test "x$exp_localstatedir" != "x${ap_stripped}"; then
3685    # it was, so strip of any leading slashes
3686    rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3687else
3688    # it wasn't so return the original
3689    rel_localstatedir="$exp_localstatedir"
3690fi
3691
3692
3693  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
3694
3695
3696
3697
3698
3699ap_last=
3700ap_cur="$runtimedir"
3701while test "x${ap_cur}" != "x${ap_last}";
3702do
3703  ap_last="${ap_cur}"
3704  ap_cur=`eval "echo ${ap_cur}"`
3705done
3706exp_runtimedir="${ap_cur}"
3707
3708
3709  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
3710
3711
3712
3713ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
3714# check if the stripping was successful
3715if test "x$exp_runtimedir" != "x${ap_stripped}"; then
3716    # it was, so strip of any leading slashes
3717    rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3718else
3719    # it wasn't so return the original
3720    rel_runtimedir="$exp_runtimedir"
3721fi
3722
3723
3724  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
3725
3726
3727
3728
3729
3730ap_last=
3731ap_cur="$logfiledir"
3732while test "x${ap_cur}" != "x${ap_last}";
3733do
3734  ap_last="${ap_cur}"
3735  ap_cur=`eval "echo ${ap_cur}"`
3736done
3737exp_logfiledir="${ap_cur}"
3738
3739
3740  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
3741
3742
3743
3744ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
3745# check if the stripping was successful
3746if test "x$exp_logfiledir" != "x${ap_stripped}"; then
3747    # it was, so strip of any leading slashes
3748    rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3749else
3750    # it wasn't so return the original
3751    rel_logfiledir="$exp_logfiledir"
3752fi
3753
3754
3755  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
3756
3757
3758
3759
3760
3761ap_last=
3762ap_cur="$proxycachedir"
3763while test "x${ap_cur}" != "x${ap_last}";
3764do
3765  ap_last="${ap_cur}"
3766  ap_cur=`eval "echo ${ap_cur}"`
3767done
3768exp_proxycachedir="${ap_cur}"
3769
3770
3771  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
3772
3773
3774
3775ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
3776# check if the stripping was successful
3777if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
3778    # it was, so strip of any leading slashes
3779    rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3780else
3781    # it wasn't so return the original
3782    rel_proxycachedir="$exp_proxycachedir"
3783fi
3784
3785
3786  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
3787
3788
3789
3790
3791
3792
3793  apr_ste_save_CPPFLAGS="$CPPFLAGS"
3794
3795
3796  apr_ste_save_CFLAGS="$CFLAGS"
3797
3798
3799  apr_ste_save_CXXFLAGS="$CXXFLAGS"
3800
3801
3802  apr_ste_save_LDFLAGS="$LDFLAGS"
3803
3804
3805  apr_ste_save_LIBS="$LIBS"
3806
3807
3808  apr_ste_save_INCLUDES="$INCLUDES"
3809
3810
3811
3812  rm -f config.nice
3813  cat >config.nice<<EOF
3814#! /bin/sh
3815#
3816# Created by configure
3817
3818EOF
3819  if test -n "$CC"; then
3820    echo "CC=\"$CC\"; export CC" >> config.nice
3821  fi
3822  if test -n "$CFLAGS"; then
3823    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
3824  fi
3825  if test -n "$CPPFLAGS"; then
3826    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
3827  fi
3828  if test -n "$LDFLAGS"; then
3829    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
3830  fi
3831  if test -n "$LTFLAGS"; then
3832    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
3833  fi
3834  if test -n "$LIBS"; then
3835    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
3836  fi
3837  if test -n "$INCLUDES"; then
3838    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
3839  fi
3840  if test -n "$NOTEST_CFLAGS"; then
3841    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
3842  fi
3843  if test -n "$NOTEST_CPPFLAGS"; then
3844    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
3845  fi
3846  if test -n "$NOTEST_LDFLAGS"; then
3847    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
3848  fi
3849  if test -n "$NOTEST_LIBS"; then
3850    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
3851  fi
3852
3853  # Retrieve command-line arguments.
3854  eval "set x $0 $ac_configure_args"
3855  shift
3856
3857  for arg
3858  do
3859
3860ap_last=
3861ap_cur="$arg"
3862while test "x${ap_cur}" != "x${ap_last}";
3863do
3864  ap_last="${ap_cur}"
3865  ap_cur=`eval "echo ${ap_cur}"`
3866done
3867arg="${ap_cur}"
3868
3869    echo "\"$arg\" \\" >> config.nice
3870  done
3871  echo '"$@"' >> config.nice
3872  chmod +x config.nice
3873
3874
3875nl='
3876'
3877
3878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
3879$as_echo_n "checking for working mkdir -p... " >&6; }
3880if ${ac_cv_mkdir_p+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883
3884    test -d conftestdir && rm -rf conftestdir
3885    mkdir -p conftestdir/somedir >/dev/null 2>&1
3886    if test -d conftestdir/somedir; then
3887      ac_cv_mkdir_p=yes
3888    else
3889      ac_cv_mkdir_p=no
3890    fi
3891    rm -rf conftestdir
3892
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
3895$as_echo "$ac_cv_mkdir_p" >&6; }
3896  if test "$ac_cv_mkdir_p" = "yes"; then
3897      mkdir_p="mkdir -p"
3898  else
3899      mkdir_p="$top_srcdir/build/mkdir.sh"
3900  fi
3901
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3904$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3905if ${ac_cv_path_GREP+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -z "$GREP"; then
3909  ac_path_GREP_found=false
3910  # Loop through the user's path and test for each of PROGNAME-LIST
3911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_prog in grep ggrep; do
3917    for ac_exec_ext in '' $ac_executable_extensions; do
3918      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919      as_fn_executable_p "$ac_path_GREP" || continue
3920# Check for GNU ac_path_GREP and select it if it is found.
3921  # Check for GNU $ac_path_GREP
3922case `"$ac_path_GREP" --version 2>&1` in
3923*GNU*)
3924  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3925*)
3926  ac_count=0
3927  $as_echo_n 0123456789 >"conftest.in"
3928  while :
3929  do
3930    cat "conftest.in" "conftest.in" >"conftest.tmp"
3931    mv "conftest.tmp" "conftest.in"
3932    cp "conftest.in" "conftest.nl"
3933    $as_echo 'GREP' >> "conftest.nl"
3934    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936    as_fn_arith $ac_count + 1 && ac_count=$as_val
3937    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938      # Best one so far, save it but keep looking for a better one
3939      ac_cv_path_GREP="$ac_path_GREP"
3940      ac_path_GREP_max=$ac_count
3941    fi
3942    # 10*(2^10) chars as input seems more than enough
3943    test $ac_count -gt 10 && break
3944  done
3945  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946esac
3947
3948      $ac_path_GREP_found && break 3
3949    done
3950  done
3951  done
3952IFS=$as_save_IFS
3953  if test -z "$ac_cv_path_GREP"; then
3954    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955  fi
3956else
3957  ac_cv_path_GREP=$GREP
3958fi
3959
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3962$as_echo "$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3964
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3967$as_echo_n "checking for egrep... " >&6; }
3968if ${ac_cv_path_EGREP+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972   then ac_cv_path_EGREP="$GREP -E"
3973   else
3974     if test -z "$EGREP"; then
3975  ac_path_EGREP_found=false
3976  # Loop through the user's path and test for each of PROGNAME-LIST
3977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982    for ac_prog in egrep; do
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985      as_fn_executable_p "$ac_path_EGREP" || continue
3986# Check for GNU ac_path_EGREP and select it if it is found.
3987  # Check for GNU $ac_path_EGREP
3988case `"$ac_path_EGREP" --version 2>&1` in
3989*GNU*)
3990  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991*)
3992  ac_count=0
3993  $as_echo_n 0123456789 >"conftest.in"
3994  while :
3995  do
3996    cat "conftest.in" "conftest.in" >"conftest.tmp"
3997    mv "conftest.tmp" "conftest.in"
3998    cp "conftest.in" "conftest.nl"
3999    $as_echo 'EGREP' >> "conftest.nl"
4000    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002    as_fn_arith $ac_count + 1 && ac_count=$as_val
4003    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004      # Best one so far, save it but keep looking for a better one
4005      ac_cv_path_EGREP="$ac_path_EGREP"
4006      ac_path_EGREP_max=$ac_count
4007    fi
4008    # 10*(2^10) chars as input seems more than enough
4009    test $ac_count -gt 10 && break
4010  done
4011  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012esac
4013
4014      $ac_path_EGREP_found && break 3
4015    done
4016  done
4017  done
4018IFS=$as_save_IFS
4019  if test -z "$ac_cv_path_EGREP"; then
4020    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4021  fi
4022else
4023  ac_cv_path_EGREP=$EGREP
4024fi
4025
4026   fi
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4029$as_echo "$ac_cv_path_EGREP" >&6; }
4030 EGREP="$ac_cv_path_EGREP"
4031
4032
4033
4034  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EGREP"
4035
4036
4037
4038
4039
4040# Make sure we can run config.sub.
4041$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4042  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4045$as_echo_n "checking build system type... " >&6; }
4046if ${ac_cv_build+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  ac_build_alias=$build_alias
4050test "x$ac_build_alias" = x &&
4051  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4052test "x$ac_build_alias" = x &&
4053  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4055  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4056
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4059$as_echo "$ac_cv_build" >&6; }
4060case $ac_cv_build in
4061*-*-*) ;;
4062*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4063esac
4064build=$ac_cv_build
4065ac_save_IFS=$IFS; IFS='-'
4066set x $ac_cv_build
4067shift
4068build_cpu=$1
4069build_vendor=$2
4070shift; shift
4071# Remember, the first character of IFS is used to create $*,
4072# except with old shells:
4073build_os=$*
4074IFS=$ac_save_IFS
4075case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4076
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4079$as_echo_n "checking host system type... " >&6; }
4080if ${ac_cv_host+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test "x$host_alias" = x; then
4084  ac_cv_host=$ac_cv_build
4085else
4086  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4087    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4088fi
4089
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4092$as_echo "$ac_cv_host" >&6; }
4093case $ac_cv_host in
4094*-*-*) ;;
4095*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4096esac
4097host=$ac_cv_host
4098ac_save_IFS=$IFS; IFS='-'
4099set x $ac_cv_host
4100shift
4101host_cpu=$1
4102host_vendor=$2
4103shift; shift
4104# Remember, the first character of IFS is used to create $*,
4105# except with old shells:
4106host_os=$*
4107IFS=$ac_save_IFS
4108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4109
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4112$as_echo_n "checking target system type... " >&6; }
4113if ${ac_cv_target+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  if test "x$target_alias" = x; then
4117  ac_cv_target=$ac_cv_host
4118else
4119  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4120    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4121fi
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4125$as_echo "$ac_cv_target" >&6; }
4126case $ac_cv_target in
4127*-*-*) ;;
4128*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4129esac
4130target=$ac_cv_target
4131ac_save_IFS=$IFS; IFS='-'
4132set x $ac_cv_target
4133shift
4134target_cpu=$1
4135target_vendor=$2
4136shift; shift
4137# Remember, the first character of IFS is used to create $*,
4138# except with old shells:
4139target_os=$*
4140IFS=$ac_save_IFS
4141case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4142
4143
4144# The aliases save the names the user supplied, while $host etc.
4145# will get canonicalized.
4146test -n "$target_alias" &&
4147  test "$program_prefix$program_suffix$program_transform_name" = \
4148    NONENONEs,x,x, &&
4149  program_prefix=${target_alias}-
4150
4151
4152orig_prefix="$prefix"
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4155$as_echo "$as_me: " >&6;}
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime library..." >&5
4157$as_echo "$as_me: Configuring Apache Portable Runtime library..." >&6;}
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4159$as_echo "$as_me: " >&6;}
4160
4161
4162# Check whether --with-included-apr was given.
4163if test "${with_included_apr+set}" = set; then :
4164  withval=$with_included_apr;
4165fi
4166
4167
4168if test "x$with_included_apr" = "xyes"; then
4169  apr_found=reconfig
4170  if test ! -d srclib/apr && test ! -d $srcdir/srclib/apr; then
4171    as_fn_error $? "Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/." "$LINENO" 5
4172  fi
4173else
4174
4175  apr_found="no"
4176
4177  if test "$target_os" = "os2-emx"; then
4178    # Scripts don't pass test -x on OS/2
4179    TEST_X="test -f"
4180  else
4181    TEST_X="test -x"
4182  fi
4183
4184  acceptable_majors="1 2"
4185
4186  apr_temp_acceptable_apr_config=""
4187  for apr_temp_major in $acceptable_majors
4188  do
4189    case $apr_temp_major in
4190      0)
4191      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4192      ;;
4193      *)
4194      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4195      ;;
4196    esac
4197  done
4198
4199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4200$as_echo_n "checking for APR... " >&6; }
4201
4202# Check whether --with-apr was given.
4203if test "${with_apr+set}" = set; then :
4204  withval=$with_apr;
4205    if test "$withval" = "no" || test "$withval" = "yes"; then
4206      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4207    fi
4208
4209    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4210    do
4211      for lookdir in "$withval/bin" "$withval"
4212      do
4213        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4214          apr_config="$lookdir/$apr_temp_apr_config_file"
4215
4216          apr_acceptable="yes"
4217
4218    version=`$apr_config --version`
4219    case x${version} in
4220    x1.[0-3].*)
4221      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4222$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4223      apr_acceptable=no
4224      ;;
4225    esac
4226    unset version
4227
4228          if test "$apr_acceptable" != "yes"; then
4229            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&5
4230$as_echo "$as_me: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&2;}
4231            continue
4232          fi
4233          apr_found="yes"
4234          break 2
4235        fi
4236      done
4237    done
4238
4239    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4240      apr_config="$withval"
4241
4242          apr_acceptable="yes"
4243
4244    version=`$apr_config --version`
4245    case x${version} in
4246    x1.[0-3].*)
4247      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4248$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4249      apr_acceptable=no
4250      ;;
4251    esac
4252    unset version
4253
4254          if test "$apr_acceptable" = "yes"; then
4255                apr_found="yes"
4256          fi
4257    fi
4258
4259            if test "$apr_found" != "yes"; then
4260      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4261    fi
4262
4263else
4264
4265        if test -n "1" && test "1" = "1"; then
4266      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4267      do
4268        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4269          apr_config="$apr_temp_apr_config_file"
4270
4271          apr_acceptable="yes"
4272
4273    version=`$apr_config --version`
4274    case x${version} in
4275    x1.[0-3].*)
4276      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4277$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4278      apr_acceptable=no
4279      ;;
4280    esac
4281    unset version
4282
4283          if test "$apr_acceptable" != "yes"; then
4284            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
4285$as_echo "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
4286            continue
4287          fi
4288          apr_found="yes"
4289          break
4290        else
4291                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4292            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4293              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4294
4295              apr_acceptable="yes"
4296
4297    version=`$apr_config --version`
4298    case x${version} in
4299    x1.[0-3].*)
4300      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4301$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4302      apr_acceptable=no
4303      ;;
4304    esac
4305    unset version
4306
4307              if test "$apr_acceptable" != "yes"; then
4308                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
4309$as_echo "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
4310                continue
4311              fi
4312              apr_found="yes"
4313              break 2
4314            fi
4315          done
4316        fi
4317      done
4318    fi
4319        if test "$apr_found" = "no" && test -d ""$srcdir/srclib/apr""; then
4320      apr_temp_abs_srcdir="`cd \""$srcdir/srclib/apr"\" && pwd`"
4321      apr_found="reconfig"
4322      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr"/include/apr_version.h\"`"
4323      case $apr_bundled_major in
4324        "")
4325          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4326        ;;
4327        0)
4328          apr_temp_apr_config_file="apr-config"
4329        ;;
4330        *)
4331          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4332        ;;
4333      esac
4334      if test -n ""./srclib/apr""; then
4335        apr_config=""./srclib/apr"/$apr_temp_apr_config_file"
4336      else
4337        apr_config=""$srcdir/srclib/apr"/$apr_temp_apr_config_file"
4338      fi
4339    fi
4340
4341fi
4342
4343
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4345$as_echo "$apr_found" >&6; }
4346
4347fi
4348
4349if test "$apr_found" = "no"; then
4350  as_fn_error $? "APR not found.  Please read the documentation." "$LINENO" 5
4351fi
4352
4353if test "$apr_found" = "reconfig"; then
4354
4355  # save our work to this point; this allows the sub-package to use it
4356  cat >confcache <<\_ACEOF
4357# This file is a shell script that caches the results of configure
4358# tests run on this system so they can be shared between configure
4359# scripts and configure runs, see configure's option --config-cache.
4360# It is not useful on other systems.  If it contains results you don't
4361# want to keep, you may remove or edit it.
4362#
4363# config.status only pays attention to the cache file if you give it
4364# the --recheck option to rerun configure.
4365#
4366# `ac_cv_env_foo' variables (set or unset) will be overridden when
4367# loading this file, other *unset* `ac_cv_foo' will be assigned the
4368# following values.
4369
4370_ACEOF
4371
4372# The following way of writing the cache mishandles newlines in values,
4373# but we know of no workaround that is simple, portable, and efficient.
4374# So, we kill variables containing newlines.
4375# Ultrix sh set writes to stderr and can't be redirected directly,
4376# and sets the high bit in the cache file unless we assign to the vars.
4377(
4378  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4379    eval ac_val=\$$ac_var
4380    case $ac_val in #(
4381    *${as_nl}*)
4382      case $ac_var in #(
4383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4385      esac
4386      case $ac_var in #(
4387      _ | IFS | as_nl) ;; #(
4388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4389      *) { eval $ac_var=; unset $ac_var;} ;;
4390      esac ;;
4391    esac
4392  done
4393
4394  (set) 2>&1 |
4395    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4396    *${as_nl}ac_space=\ *)
4397      # `set' does not quote correctly, so add quotes: double-quote
4398      # substitution turns \\\\ into \\, and sed turns \\ into \.
4399      sed -n \
4400	"s/'/'\\\\''/g;
4401	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4402      ;; #(
4403    *)
4404      # `set' quotes correctly as required by POSIX, so do not add quotes.
4405      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4406      ;;
4407    esac |
4408    sort
4409) |
4410  sed '
4411     /^ac_cv_env_/b end
4412     t clear
4413     :clear
4414     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4415     t end
4416     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4417     :end' >>confcache
4418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4419  if test -w "$cache_file"; then
4420    if test "x$cache_file" != "x/dev/null"; then
4421      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4422$as_echo "$as_me: updating cache $cache_file" >&6;}
4423      if test ! -f "$cache_file" || test -h "$cache_file"; then
4424	cat confcache >"$cache_file"
4425      else
4426        case $cache_file in #(
4427        */* | ?:*)
4428	  mv -f confcache "$cache_file"$$ &&
4429	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4430        *)
4431	  mv -f confcache "$cache_file" ;;
4432	esac
4433      fi
4434    fi
4435  else
4436    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4438  fi
4439fi
4440rm -f confcache
4441
4442  echo "configuring package in srclib/apr now"
4443  ac_popdir=`pwd`
4444  apr_config_subdirs="srclib/apr"
4445  test -d srclib/apr || $mkdir_p srclib/apr
4446  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
4447  cd srclib/apr
4448
4449      # A "../" for each directory in /$config_subdirs.
4450      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4451
4452  # Make the cache file pathname absolute for the subdirs
4453  # required to correctly handle subdirs that might actually
4454  # be symlinks
4455  case "$cache_file" in
4456  /*) # already absolute
4457    ac_sub_cache_file=$cache_file ;;
4458  *)  # Was relative path.
4459    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4460  esac
4461
4462
4463  apr_configure_args=
4464  apr_sep=
4465  for apr_configure_arg in $ac_configure_args
4466  do
4467    case "$apr_configure_arg" in
4468      --enable-layout=*|\'--enable-layout=*)
4469        continue ;;
4470    esac
4471    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4472    apr_sep=" "
4473  done
4474
4475
4476    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4477
4478    apr_configure_args="--disable-option-checking $apr_configure_args"
4479
4480              if eval $SHELL $ac_abs_srcdir/configure $apr_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
4481  then :
4482    echo "srclib/apr configured properly"
4483  else
4484    echo "configure failed for srclib/apr"
4485    exit 1
4486  fi
4487
4488  cd $ac_popdir
4489
4490  # grab any updates from the sub-package
4491  if test -r "$cache_file"; then
4492  # Some versions of bash will fail to source /dev/null (special files
4493  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4494  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4495    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4496$as_echo "$as_me: loading cache $cache_file" >&6;}
4497    case $cache_file in
4498      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4499      *)                      . "./$cache_file";;
4500    esac
4501  fi
4502else
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4504$as_echo "$as_me: creating cache $cache_file" >&6;}
4505  >$cache_file
4506fi
4507
4508
4509    AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
4510  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
4511
4512    for majorver in 1 2; do
4513    test_apr_config="./srclib/apr/apr-${majorver}-config"
4514    if test -f "$test_apr_config"; then
4515      apr_config="$test_apr_config"
4516    fi
4517  done
4518fi
4519
4520
4521  if test -z "$CC"; then
4522    test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
4523    CC="`$apr_config --cc`"
4524  fi
4525
4526
4527  if test -z "$CPP"; then
4528    test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
4529    CPP="`$apr_config --cpp`"
4530  fi
4531
4532
4533  if test "x$CFLAGS" = "x"; then
4534    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
4535    CFLAGS="`$apr_config --cflags`"
4536  else
4537    apr_addto_bugger="`$apr_config --cflags`"
4538    for i in $apr_addto_bugger; do
4539      apr_addto_duplicate="0"
4540      for j in $CFLAGS; do
4541        if test "x$i" = "x$j"; then
4542          apr_addto_duplicate="1"
4543          break
4544        fi
4545      done
4546      if test $apr_addto_duplicate = "0"; then
4547        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
4548        CFLAGS="$CFLAGS $i"
4549      fi
4550    done
4551  fi
4552
4553
4554  if test "x$CPPFLAGS" = "x"; then
4555    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
4556    CPPFLAGS="`$apr_config --cppflags`"
4557  else
4558    apr_addto_bugger="`$apr_config --cppflags`"
4559    for i in $apr_addto_bugger; do
4560      apr_addto_duplicate="0"
4561      for j in $CPPFLAGS; do
4562        if test "x$i" = "x$j"; then
4563          apr_addto_duplicate="1"
4564          break
4565        fi
4566      done
4567      if test $apr_addto_duplicate = "0"; then
4568        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
4569        CPPFLAGS="$CPPFLAGS $i"
4570      fi
4571    done
4572  fi
4573
4574INTERNAL_CPPFLAGS=""
4575
4576  if test "x$LDFLAGS" = "x"; then
4577    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
4578    LDFLAGS="`$apr_config --ldflags`"
4579  else
4580    apr_addto_bugger="`$apr_config --ldflags`"
4581    for i in $apr_addto_bugger; do
4582      apr_addto_duplicate="0"
4583      for j in $LDFLAGS; do
4584        if test "x$i" = "x$j"; then
4585          apr_addto_duplicate="1"
4586          break
4587        fi
4588      done
4589      if test $apr_addto_duplicate = "0"; then
4590        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4591        LDFLAGS="$LDFLAGS $i"
4592      fi
4593    done
4594  fi
4595
4596SHLIBPATH_VAR=`$apr_config --shlib-path-var`
4597APR_BINDIR=`$apr_config --bindir`
4598APR_INCLUDEDIR=`$apr_config --includedir`
4599APR_INCLUDES=`$apr_config --includes`
4600APR_VERSION=`$apr_config --version`
4601apr_major_version=`echo ${APR_VERSION} | sed 's,\..*,,'`
4602APR_CONFIG="$APR_BINDIR/apr-${apr_major_version}-config"
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4605$as_echo "$as_me: " >&6;}
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime Utility library..." >&5
4607$as_echo "$as_me: Configuring Apache Portable Runtime Utility library..." >&6;}
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4609$as_echo "$as_me: " >&6;}
4610
4611if test "x${apr_major_version}" = "x2"; then
4612  apu_found=obsolete
4613elif test "x$with_included_apr" = "xyes"; then
4614  apu_found=reconfig
4615  if test ! -d srclib/apr-util && test ! -d $srcdir/srclib/apr-util; then
4616    as_fn_error $? "Bundled APR-Util requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/." "$LINENO" 5
4617  fi
4618else
4619
4620
4621  apu_found="no"
4622
4623  if test "$target_os" = "os2-emx"; then
4624    # Scripts don't pass test -x on OS/2
4625    TEST_X="test -f"
4626  else
4627    TEST_X="test -x"
4628  fi
4629
4630  acceptable_majors="${apr_major_version}"
4631
4632  apu_temp_acceptable_apu_config=""
4633  for apu_temp_major in $acceptable_majors
4634  do
4635    case $apu_temp_major in
4636      0)
4637      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4638      ;;
4639      *)
4640      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4641      ;;
4642    esac
4643  done
4644
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4646$as_echo_n "checking for APR-util... " >&6; }
4647
4648# Check whether --with-apr-util was given.
4649if test "${with_apr_util+set}" = set; then :
4650  withval=$with_apr_util;
4651    if test "$withval" = "no" || test "$withval" = "yes"; then
4652      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4653    fi
4654
4655    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4656    do
4657      for lookdir in "$withval/bin" "$withval"
4658      do
4659        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4660          apu_config="$lookdir/$apu_temp_apu_config_file"
4661
4662          apu_found="yes"
4663          break 2
4664        fi
4665      done
4666    done
4667
4668    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4669      apu_config="$withval"
4670      apu_found="yes"
4671    fi
4672
4673            if test "$apu_found" != "yes"; then
4674      as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
4675    fi
4676
4677else
4678
4679    if test -n "1" && test "1" = "1"; then
4680      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4681      do
4682        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4683          apu_config="$apu_temp_apu_config_file"
4684
4685          apu_found="yes"
4686          break
4687        else
4688                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4689            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4690              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4691
4692              apu_found="yes"
4693              break 2
4694            fi
4695          done
4696        fi
4697      done
4698    fi
4699        if test "$apu_found" = "no" && test -d ""$srcdir/srclib/apr-util""; then
4700      apu_temp_abs_srcdir="`cd \""$srcdir/srclib/apr-util"\" && pwd`"
4701      apu_found="reconfig"
4702      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr-util"/include/apu_version.h\"`"
4703      case $apu_bundled_major in
4704        "")
4705          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4706        ;;
4707        0)
4708          apu_temp_apu_config_file="apu-config"
4709        ;;
4710        *)
4711          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4712        ;;
4713      esac
4714      if test -n ""./srclib/apr-util""; then
4715        apu_config=""./srclib/apr-util"/$apu_temp_apu_config_file"
4716      else
4717        apu_config=""$srcdir/srclib/apr-util"/$apu_temp_apu_config_file"
4718      fi
4719    fi
4720
4721fi
4722
4723
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4725$as_echo "$apu_found" >&6; }
4726
4727
4728fi
4729
4730if test "$apu_found" = "no"; then
4731  as_fn_error $? "APR-util not found.  Please read the documentation." "$LINENO" 5
4732fi
4733
4734# Catch some misconfigurations:
4735case ${apr_found}.${apu_found} in
4736reconfig.yes)
4737  as_fn_error $? "Cannot use an external APR-util with the bundled APR" "$LINENO" 5
4738  ;;
4739yes.reconfig)
4740  as_fn_error $? "Cannot use an external APR with the bundled APR-util" "$LINENO" 5
4741  ;;
4742esac
4743
4744if test "$apu_found" = "reconfig"; then
4745
4746  # save our work to this point; this allows the sub-package to use it
4747  cat >confcache <<\_ACEOF
4748# This file is a shell script that caches the results of configure
4749# tests run on this system so they can be shared between configure
4750# scripts and configure runs, see configure's option --config-cache.
4751# It is not useful on other systems.  If it contains results you don't
4752# want to keep, you may remove or edit it.
4753#
4754# config.status only pays attention to the cache file if you give it
4755# the --recheck option to rerun configure.
4756#
4757# `ac_cv_env_foo' variables (set or unset) will be overridden when
4758# loading this file, other *unset* `ac_cv_foo' will be assigned the
4759# following values.
4760
4761_ACEOF
4762
4763# The following way of writing the cache mishandles newlines in values,
4764# but we know of no workaround that is simple, portable, and efficient.
4765# So, we kill variables containing newlines.
4766# Ultrix sh set writes to stderr and can't be redirected directly,
4767# and sets the high bit in the cache file unless we assign to the vars.
4768(
4769  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4770    eval ac_val=\$$ac_var
4771    case $ac_val in #(
4772    *${as_nl}*)
4773      case $ac_var in #(
4774      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4776      esac
4777      case $ac_var in #(
4778      _ | IFS | as_nl) ;; #(
4779      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4780      *) { eval $ac_var=; unset $ac_var;} ;;
4781      esac ;;
4782    esac
4783  done
4784
4785  (set) 2>&1 |
4786    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4787    *${as_nl}ac_space=\ *)
4788      # `set' does not quote correctly, so add quotes: double-quote
4789      # substitution turns \\\\ into \\, and sed turns \\ into \.
4790      sed -n \
4791	"s/'/'\\\\''/g;
4792	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4793      ;; #(
4794    *)
4795      # `set' quotes correctly as required by POSIX, so do not add quotes.
4796      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4797      ;;
4798    esac |
4799    sort
4800) |
4801  sed '
4802     /^ac_cv_env_/b end
4803     t clear
4804     :clear
4805     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4806     t end
4807     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4808     :end' >>confcache
4809if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4810  if test -w "$cache_file"; then
4811    if test "x$cache_file" != "x/dev/null"; then
4812      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4813$as_echo "$as_me: updating cache $cache_file" >&6;}
4814      if test ! -f "$cache_file" || test -h "$cache_file"; then
4815	cat confcache >"$cache_file"
4816      else
4817        case $cache_file in #(
4818        */* | ?:*)
4819	  mv -f confcache "$cache_file"$$ &&
4820	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4821        *)
4822	  mv -f confcache "$cache_file" ;;
4823	esac
4824      fi
4825    fi
4826  else
4827    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4828$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4829  fi
4830fi
4831rm -f confcache
4832
4833  echo "configuring package in srclib/apr-util now"
4834  ac_popdir=`pwd`
4835  apr_config_subdirs="srclib/apr-util"
4836  test -d srclib/apr-util || $mkdir_p srclib/apr-util
4837  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
4838  cd srclib/apr-util
4839
4840      # A "../" for each directory in /$config_subdirs.
4841      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4842
4843  # Make the cache file pathname absolute for the subdirs
4844  # required to correctly handle subdirs that might actually
4845  # be symlinks
4846  case "$cache_file" in
4847  /*) # already absolute
4848    ac_sub_cache_file=$cache_file ;;
4849  *)  # Was relative path.
4850    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4851  esac
4852
4853
4854  apr_configure_args=
4855  apr_sep=
4856  for apr_configure_arg in $ac_configure_args
4857  do
4858    case "$apr_configure_arg" in
4859      --enable-layout=*|\'--enable-layout=*)
4860        continue ;;
4861    esac
4862    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4863    apr_sep=" "
4864  done
4865
4866
4867    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4868
4869    apr_configure_args="--disable-option-checking $apr_configure_args"
4870
4871              if eval $SHELL $ac_abs_srcdir/configure $apr_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
4872  then :
4873    echo "srclib/apr-util configured properly"
4874  else
4875    echo "configure failed for srclib/apr-util"
4876    exit 1
4877  fi
4878
4879  cd $ac_popdir
4880
4881  # grab any updates from the sub-package
4882  if test -r "$cache_file"; then
4883  # Some versions of bash will fail to source /dev/null (special files
4884  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4885  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4886    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4887$as_echo "$as_me: loading cache $cache_file" >&6;}
4888    case $cache_file in
4889      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4890      *)                      . "./$cache_file";;
4891    esac
4892  fi
4893else
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4895$as_echo "$as_me: creating cache $cache_file" >&6;}
4896  >$cache_file
4897fi
4898
4899
4900    AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
4901  AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
4902    apu_config="./srclib/apr-util/apu-${apr_major_version}-config"
4903fi
4904
4905if test "$apu_found" = "obsolete"; then
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: APR-util obsoleted, woohoo" >&5
4907$as_echo "$as_me: APR-util obsoleted, woohoo" >&6;}
4908else
4909
4910  if test "x$LDFLAGS" = "x"; then
4911    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
4912    LDFLAGS="`$apu_config --ldflags`"
4913  else
4914    apr_addto_bugger="`$apu_config --ldflags`"
4915    for i in $apr_addto_bugger; do
4916      apr_addto_duplicate="0"
4917      for j in $LDFLAGS; do
4918        if test "x$i" = "x$j"; then
4919          apr_addto_duplicate="1"
4920          break
4921        fi
4922      done
4923      if test $apr_addto_duplicate = "0"; then
4924        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4925        LDFLAGS="$LDFLAGS $i"
4926      fi
4927    done
4928  fi
4929
4930  APU_BINDIR=`$apu_config --bindir`
4931  APU_INCLUDEDIR=`$apu_config --includedir`
4932  APU_INCLUDES=`$apu_config --includes`
4933  APU_VERSION=`$apu_config --version`
4934  APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
4935fi
4936
4937ac_ext=c
4938ac_cpp='$CPP $CPPFLAGS'
4939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942if test -n "$ac_tool_prefix"; then
4943  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4944set dummy ${ac_tool_prefix}gcc; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_CC+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$CC"; then
4951  ac_cv_prog_CC="$CC" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970CC=$ac_cv_prog_CC
4971if test -n "$CC"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4973$as_echo "$CC" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_CC"; then
4982  ac_ct_CC=$CC
4983  # Extract the first word of "gcc", so it can be a program name with args.
4984set dummy gcc; ac_word=$2
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_ac_ct_CC+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -n "$ac_ct_CC"; then
4991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_ac_ct_CC="gcc"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_CC=$ac_cv_prog_ac_ct_CC
5011if test -n "$ac_ct_CC"; then
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5013$as_echo "$ac_ct_CC" >&6; }
5014else
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_CC" = x; then
5020    CC=""
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026ac_tool_warned=yes ;;
5027esac
5028    CC=$ac_ct_CC
5029  fi
5030else
5031  CC="$ac_cv_prog_CC"
5032fi
5033
5034if test -z "$CC"; then
5035          if test -n "$ac_tool_prefix"; then
5036    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5037set dummy ${ac_tool_prefix}cc; ac_word=$2
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
5040if ${ac_cv_prog_CC+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  if test -n "$CC"; then
5044  ac_cv_prog_CC="$CC" # Let the user override the test.
5045else
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049  IFS=$as_save_IFS
5050  test -z "$as_dir" && as_dir=.
5051    for ac_exec_ext in '' $ac_executable_extensions; do
5052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053    ac_cv_prog_CC="${ac_tool_prefix}cc"
5054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055    break 2
5056  fi
5057done
5058  done
5059IFS=$as_save_IFS
5060
5061fi
5062fi
5063CC=$ac_cv_prog_CC
5064if test -n "$CC"; then
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5066$as_echo "$CC" >&6; }
5067else
5068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069$as_echo "no" >&6; }
5070fi
5071
5072
5073  fi
5074fi
5075if test -z "$CC"; then
5076  # Extract the first word of "cc", so it can be a program name with args.
5077set dummy cc; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_prog_CC+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  if test -n "$CC"; then
5084  ac_cv_prog_CC="$CC" # Let the user override the test.
5085else
5086  ac_prog_rejected=no
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090  IFS=$as_save_IFS
5091  test -z "$as_dir" && as_dir=.
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5095       ac_prog_rejected=yes
5096       continue
5097     fi
5098    ac_cv_prog_CC="cc"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106if test $ac_prog_rejected = yes; then
5107  # We found a bogon in the path, so make sure we never use it.
5108  set dummy $ac_cv_prog_CC
5109  shift
5110  if test $# != 0; then
5111    # We chose a different compiler from the bogus one.
5112    # However, it has the same basename, so the bogon will be chosen
5113    # first if we set CC to just the basename; use the full file name.
5114    shift
5115    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5116  fi
5117fi
5118fi
5119fi
5120CC=$ac_cv_prog_CC
5121if test -n "$CC"; then
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5123$as_echo "$CC" >&6; }
5124else
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129
5130fi
5131if test -z "$CC"; then
5132  if test -n "$ac_tool_prefix"; then
5133  for ac_prog in cl.exe
5134  do
5135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if ${ac_cv_prog_CC+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -n "$CC"; then
5143  ac_cv_prog_CC="$CC" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150    for ac_exec_ext in '' $ac_executable_extensions; do
5151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157  done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162CC=$ac_cv_prog_CC
5163if test -n "$CC"; then
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5165$as_echo "$CC" >&6; }
5166else
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172    test -n "$CC" && break
5173  done
5174fi
5175if test -z "$CC"; then
5176  ac_ct_CC=$CC
5177  for ac_prog in cl.exe
5178do
5179  # Extract the first word of "$ac_prog", so it can be a program name with args.
5180set dummy $ac_prog; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if ${ac_cv_prog_ac_ct_CC+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  if test -n "$ac_ct_CC"; then
5187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    for ac_exec_ext in '' $ac_executable_extensions; do
5195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_ac_ct_CC="$ac_prog"
5197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201  done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206ac_ct_CC=$ac_cv_prog_ac_ct_CC
5207if test -n "$ac_ct_CC"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5209$as_echo "$ac_ct_CC" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216  test -n "$ac_ct_CC" && break
5217done
5218
5219  if test "x$ac_ct_CC" = x; then
5220    CC=""
5221  else
5222    case $cross_compiling:$ac_tool_warned in
5223yes:)
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226ac_tool_warned=yes ;;
5227esac
5228    CC=$ac_ct_CC
5229  fi
5230fi
5231
5232fi
5233
5234
5235test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237as_fn_error $? "no acceptable C compiler found in \$PATH
5238See \`config.log' for more details" "$LINENO" 5; }
5239
5240# Provide some information about the compiler.
5241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5242set X $ac_compile
5243ac_compiler=$2
5244for ac_option in --version -v -V -qversion; do
5245  { { ac_try="$ac_compiler $ac_option >&5"
5246case "(($ac_try" in
5247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248  *) ac_try_echo=$ac_try;;
5249esac
5250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251$as_echo "$ac_try_echo"; } >&5
5252  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5253  ac_status=$?
5254  if test -s conftest.err; then
5255    sed '10a\
5256... rest of stderr output deleted ...
5257         10q' conftest.err >conftest.er1
5258    cat conftest.er1 >&5
5259  fi
5260  rm -f conftest.er1 conftest.err
5261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262  test $ac_status = 0; }
5263done
5264
5265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267
5268int
5269main ()
5270{
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276ac_clean_files_save=$ac_clean_files
5277ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5278# Try to create an executable without -o first, disregard a.out.
5279# It will help us diagnose broken compilers, and finding out an intuition
5280# of exeext.
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5282$as_echo_n "checking whether the C compiler works... " >&6; }
5283ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5284
5285# The possible output files:
5286ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5287
5288ac_rmfiles=
5289for ac_file in $ac_files
5290do
5291  case $ac_file in
5292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5293    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5294  esac
5295done
5296rm -f $ac_rmfiles
5297
5298if { { ac_try="$ac_link_default"
5299case "(($ac_try" in
5300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301  *) ac_try_echo=$ac_try;;
5302esac
5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5304$as_echo "$ac_try_echo"; } >&5
5305  (eval "$ac_link_default") 2>&5
5306  ac_status=$?
5307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308  test $ac_status = 0; }; then :
5309  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5310# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5311# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5312# so that the user can short-circuit this test for compilers unknown to
5313# Autoconf.
5314for ac_file in $ac_files ''
5315do
5316  test -f "$ac_file" || continue
5317  case $ac_file in
5318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5319	;;
5320    [ab].out )
5321	# We found the default executable, but exeext='' is most
5322	# certainly right.
5323	break;;
5324    *.* )
5325	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5326	then :; else
5327	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5328	fi
5329	# We set ac_cv_exeext here because the later test for it is not
5330	# safe: cross compilers may not add the suffix if given an `-o'
5331	# argument, so we may need to know it at that point already.
5332	# Even if this section looks crufty: it has the advantage of
5333	# actually working.
5334	break;;
5335    * )
5336	break;;
5337  esac
5338done
5339test "$ac_cv_exeext" = no && ac_cv_exeext=
5340
5341else
5342  ac_file=''
5343fi
5344if test -z "$ac_file"; then :
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347$as_echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5352as_fn_error 77 "C compiler cannot create executables
5353See \`config.log' for more details" "$LINENO" 5; }
5354else
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5359$as_echo_n "checking for C compiler default output file name... " >&6; }
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5361$as_echo "$ac_file" >&6; }
5362ac_exeext=$ac_cv_exeext
5363
5364rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5365ac_clean_files=$ac_clean_files_save
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5367$as_echo_n "checking for suffix of executables... " >&6; }
5368if { { ac_try="$ac_link"
5369case "(($ac_try" in
5370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371  *) ac_try_echo=$ac_try;;
5372esac
5373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374$as_echo "$ac_try_echo"; } >&5
5375  (eval "$ac_link") 2>&5
5376  ac_status=$?
5377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5378  test $ac_status = 0; }; then :
5379  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5380# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5381# work properly (i.e., refer to `conftest.exe'), while it won't with
5382# `rm'.
5383for ac_file in conftest.exe conftest conftest.*; do
5384  test -f "$ac_file" || continue
5385  case $ac_file in
5386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5388	  break;;
5389    * ) break;;
5390  esac
5391done
5392else
5393  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5395as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5396See \`config.log' for more details" "$LINENO" 5; }
5397fi
5398rm -f conftest conftest$ac_cv_exeext
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5400$as_echo "$ac_cv_exeext" >&6; }
5401
5402rm -f conftest.$ac_ext
5403EXEEXT=$ac_cv_exeext
5404ac_exeext=$EXEEXT
5405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407#include <stdio.h>
5408int
5409main ()
5410{
5411FILE *f = fopen ("conftest.out", "w");
5412 return ferror (f) || fclose (f) != 0;
5413
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418ac_clean_files="$ac_clean_files conftest.out"
5419# Check that the compiler produces executables we can run.  If not, either
5420# the compiler is broken, or we cross compile.
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5422$as_echo_n "checking whether we are cross compiling... " >&6; }
5423if test "$cross_compiling" != yes; then
5424  { { ac_try="$ac_link"
5425case "(($ac_try" in
5426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427  *) ac_try_echo=$ac_try;;
5428esac
5429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430$as_echo "$ac_try_echo"; } >&5
5431  (eval "$ac_link") 2>&5
5432  ac_status=$?
5433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434  test $ac_status = 0; }
5435  if { ac_try='./conftest$ac_cv_exeext'
5436  { { case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5441$as_echo "$ac_try_echo"; } >&5
5442  (eval "$ac_try") 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445  test $ac_status = 0; }; }; then
5446    cross_compiling=no
5447  else
5448    if test "$cross_compiling" = maybe; then
5449	cross_compiling=yes
5450    else
5451	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453as_fn_error $? "cannot run C compiled programs.
5454If you meant to cross compile, use \`--host'.
5455See \`config.log' for more details" "$LINENO" 5; }
5456    fi
5457  fi
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5460$as_echo "$cross_compiling" >&6; }
5461
5462rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5463ac_clean_files=$ac_clean_files_save
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5465$as_echo_n "checking for suffix of object files... " >&6; }
5466if ${ac_cv_objext+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480rm -f conftest.o conftest.obj
5481if { { ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487$as_echo "$ac_try_echo"; } >&5
5488  (eval "$ac_compile") 2>&5
5489  ac_status=$?
5490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491  test $ac_status = 0; }; then :
5492  for ac_file in conftest.o conftest.obj conftest.*; do
5493  test -f "$ac_file" || continue;
5494  case $ac_file in
5495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5496    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5497       break;;
5498  esac
5499done
5500else
5501  $as_echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5506as_fn_error $? "cannot compute suffix of object files: cannot compile
5507See \`config.log' for more details" "$LINENO" 5; }
5508fi
5509rm -f conftest.$ac_cv_objext conftest.$ac_ext
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5512$as_echo "$ac_cv_objext" >&6; }
5513OBJEXT=$ac_cv_objext
5514ac_objext=$OBJEXT
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5516$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5517if ${ac_cv_c_compiler_gnu+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522
5523int
5524main ()
5525{
5526#ifndef __GNUC__
5527       choke me
5528#endif
5529
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  ac_compiler_gnu=yes
5536else
5537  ac_compiler_gnu=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540ac_cv_c_compiler_gnu=$ac_compiler_gnu
5541
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5544$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5545if test $ac_compiler_gnu = yes; then
5546  GCC=yes
5547else
5548  GCC=
5549fi
5550ac_test_CFLAGS=${CFLAGS+set}
5551ac_save_CFLAGS=$CFLAGS
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5553$as_echo_n "checking whether $CC accepts -g... " >&6; }
5554if ${ac_cv_prog_cc_g+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  ac_save_c_werror_flag=$ac_c_werror_flag
5558   ac_c_werror_flag=yes
5559   ac_cv_prog_cc_g=no
5560   CFLAGS="-g"
5561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563
5564int
5565main ()
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573  ac_cv_prog_cc_g=yes
5574else
5575  CFLAGS=""
5576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578
5579int
5580main ()
5581{
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587if ac_fn_c_try_compile "$LINENO"; then :
5588
5589else
5590  ac_c_werror_flag=$ac_save_c_werror_flag
5591	 CFLAGS="-g"
5592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594
5595int
5596main ()
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  ac_cv_prog_cc_g=yes
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611   ac_c_werror_flag=$ac_save_c_werror_flag
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5614$as_echo "$ac_cv_prog_cc_g" >&6; }
5615if test "$ac_test_CFLAGS" = set; then
5616  CFLAGS=$ac_save_CFLAGS
5617elif test $ac_cv_prog_cc_g = yes; then
5618  if test "$GCC" = yes; then
5619    CFLAGS="-g -O2"
5620  else
5621    CFLAGS="-g"
5622  fi
5623else
5624  if test "$GCC" = yes; then
5625    CFLAGS="-O2"
5626  else
5627    CFLAGS=
5628  fi
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5631$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5632if ${ac_cv_prog_cc_c89+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  ac_cv_prog_cc_c89=no
5636ac_save_CC=$CC
5637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639#include <stdarg.h>
5640#include <stdio.h>
5641struct stat;
5642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5643struct buf { int x; };
5644FILE * (*rcsopen) (struct buf *, struct stat *, int);
5645static char *e (p, i)
5646     char **p;
5647     int i;
5648{
5649  return p[i];
5650}
5651static char *f (char * (*g) (char **, int), char **p, ...)
5652{
5653  char *s;
5654  va_list v;
5655  va_start (v,p);
5656  s = g (p, va_arg (v,int));
5657  va_end (v);
5658  return s;
5659}
5660
5661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5662   function prototypes and stuff, but not '\xHH' hex character constants.
5663   These don't provoke an error unfortunately, instead are silently treated
5664   as 'x'.  The following induces an error, until -std is added to get
5665   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5666   array size at least.  It's necessary to write '\x00'==0 to get something
5667   that's true only with -std.  */
5668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5669
5670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5671   inside strings and character constants.  */
5672#define FOO(x) 'x'
5673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5674
5675int test (int i, double x);
5676struct s1 {int (*f) (int a);};
5677struct s2 {int (*f) (double a);};
5678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5679int argc;
5680char **argv;
5681int
5682main ()
5683{
5684return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5690	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5691do
5692  CC="$ac_save_CC $ac_arg"
5693  if ac_fn_c_try_compile "$LINENO"; then :
5694  ac_cv_prog_cc_c89=$ac_arg
5695fi
5696rm -f core conftest.err conftest.$ac_objext
5697  test "x$ac_cv_prog_cc_c89" != "xno" && break
5698done
5699rm -f conftest.$ac_ext
5700CC=$ac_save_CC
5701
5702fi
5703# AC_CACHE_VAL
5704case "x$ac_cv_prog_cc_c89" in
5705  x)
5706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5707$as_echo "none needed" >&6; } ;;
5708  xno)
5709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5710$as_echo "unsupported" >&6; } ;;
5711  *)
5712    CC="$CC $ac_cv_prog_cc_c89"
5713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5714$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5715esac
5716if test "x$ac_cv_prog_cc_c89" != xno; then :
5717
5718fi
5719
5720ac_ext=c
5721ac_cpp='$CPP $CPPFLAGS'
5722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5732$as_echo_n "checking how to run the C preprocessor... " >&6; }
5733# On Suns, sometimes $CPP names a directory.
5734if test -n "$CPP" && test -d "$CPP"; then
5735  CPP=
5736fi
5737if test -z "$CPP"; then
5738  if ${ac_cv_prog_CPP+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741      # Double quotes because CPP needs to be expanded
5742    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5743    do
5744      ac_preproc_ok=false
5745for ac_c_preproc_warn_flag in '' yes
5746do
5747  # Use a header file that comes with gcc, so configuring glibc
5748  # with a fresh cross-compiler works.
5749  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750  # <limits.h> exists even on freestanding compilers.
5751  # On the NeXT, cc -E runs the code through the compiler's parser,
5752  # not just through cpp. "Syntax error" is here to catch this case.
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755#ifdef __STDC__
5756# include <limits.h>
5757#else
5758# include <assert.h>
5759#endif
5760		     Syntax error
5761_ACEOF
5762if ac_fn_c_try_cpp "$LINENO"; then :
5763
5764else
5765  # Broken: fails on valid input.
5766continue
5767fi
5768rm -f conftest.err conftest.i conftest.$ac_ext
5769
5770  # OK, works on sane cases.  Now check whether nonexistent headers
5771  # can be detected and how.
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774#include <ac_nonexistent.h>
5775_ACEOF
5776if ac_fn_c_try_cpp "$LINENO"; then :
5777  # Broken: success on invalid input.
5778continue
5779else
5780  # Passes both tests.
5781ac_preproc_ok=:
5782break
5783fi
5784rm -f conftest.err conftest.i conftest.$ac_ext
5785
5786done
5787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788rm -f conftest.i conftest.err conftest.$ac_ext
5789if $ac_preproc_ok; then :
5790  break
5791fi
5792
5793    done
5794    ac_cv_prog_CPP=$CPP
5795
5796fi
5797  CPP=$ac_cv_prog_CPP
5798else
5799  ac_cv_prog_CPP=$CPP
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5802$as_echo "$CPP" >&6; }
5803ac_preproc_ok=false
5804for ac_c_preproc_warn_flag in '' yes
5805do
5806  # Use a header file that comes with gcc, so configuring glibc
5807  # with a fresh cross-compiler works.
5808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809  # <limits.h> exists even on freestanding compilers.
5810  # On the NeXT, cc -E runs the code through the compiler's parser,
5811  # not just through cpp. "Syntax error" is here to catch this case.
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814#ifdef __STDC__
5815# include <limits.h>
5816#else
5817# include <assert.h>
5818#endif
5819		     Syntax error
5820_ACEOF
5821if ac_fn_c_try_cpp "$LINENO"; then :
5822
5823else
5824  # Broken: fails on valid input.
5825continue
5826fi
5827rm -f conftest.err conftest.i conftest.$ac_ext
5828
5829  # OK, works on sane cases.  Now check whether nonexistent headers
5830  # can be detected and how.
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833#include <ac_nonexistent.h>
5834_ACEOF
5835if ac_fn_c_try_cpp "$LINENO"; then :
5836  # Broken: success on invalid input.
5837continue
5838else
5839  # Passes both tests.
5840ac_preproc_ok=:
5841break
5842fi
5843rm -f conftest.err conftest.i conftest.$ac_ext
5844
5845done
5846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5847rm -f conftest.i conftest.err conftest.$ac_ext
5848if $ac_preproc_ok; then :
5849
5850else
5851  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5854See \`config.log' for more details" "$LINENO" 5; }
5855fi
5856
5857ac_ext=c
5858ac_cpp='$CPP $CPPFLAGS'
5859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
5863
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5866if ${ac_cv_prog_cc_c99+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  ac_cv_prog_cc_c99=no
5870ac_save_CC=$CC
5871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873#include <stdarg.h>
5874#include <stdbool.h>
5875#include <stdlib.h>
5876#include <wchar.h>
5877#include <stdio.h>
5878
5879// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5880#define debug(...) fprintf (stderr, __VA_ARGS__)
5881#define showlist(...) puts (#__VA_ARGS__)
5882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5883static void
5884test_varargs_macros (void)
5885{
5886  int x = 1234;
5887  int y = 5678;
5888  debug ("Flag");
5889  debug ("X = %d\n", x);
5890  showlist (The first, second, and third items.);
5891  report (x>y, "x is %d but y is %d", x, y);
5892}
5893
5894// Check long long types.
5895#define BIG64 18446744073709551615ull
5896#define BIG32 4294967295ul
5897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5898#if !BIG_OK
5899  your preprocessor is broken;
5900#endif
5901#if BIG_OK
5902#else
5903  your preprocessor is broken;
5904#endif
5905static long long int bignum = -9223372036854775807LL;
5906static unsigned long long int ubignum = BIG64;
5907
5908struct incomplete_array
5909{
5910  int datasize;
5911  double data[];
5912};
5913
5914struct named_init {
5915  int number;
5916  const wchar_t *name;
5917  double average;
5918};
5919
5920typedef const char *ccp;
5921
5922static inline int
5923test_restrict (ccp restrict text)
5924{
5925  // See if C++-style comments work.
5926  // Iterate through items via the restricted pointer.
5927  // Also check for declarations in for loops.
5928  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5929    continue;
5930  return 0;
5931}
5932
5933// Check varargs and va_copy.
5934static void
5935test_varargs (const char *format, ...)
5936{
5937  va_list args;
5938  va_start (args, format);
5939  va_list args_copy;
5940  va_copy (args_copy, args);
5941
5942  const char *str;
5943  int number;
5944  float fnumber;
5945
5946  while (*format)
5947    {
5948      switch (*format++)
5949	{
5950	case 's': // string
5951	  str = va_arg (args_copy, const char *);
5952	  break;
5953	case 'd': // int
5954	  number = va_arg (args_copy, int);
5955	  break;
5956	case 'f': // float
5957	  fnumber = va_arg (args_copy, double);
5958	  break;
5959	default:
5960	  break;
5961	}
5962    }
5963  va_end (args_copy);
5964  va_end (args);
5965}
5966
5967int
5968main ()
5969{
5970
5971  // Check bool.
5972  _Bool success = false;
5973
5974  // Check restrict.
5975  if (test_restrict ("String literal") == 0)
5976    success = true;
5977  char *restrict newvar = "Another string";
5978
5979  // Check varargs.
5980  test_varargs ("s, d' f .", "string", 65, 34.234);
5981  test_varargs_macros ();
5982
5983  // Check flexible array members.
5984  struct incomplete_array *ia =
5985    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5986  ia->datasize = 10;
5987  for (int i = 0; i < ia->datasize; ++i)
5988    ia->data[i] = i * 1.234;
5989
5990  // Check named initializers.
5991  struct named_init ni = {
5992    .number = 34,
5993    .name = L"Test wide string",
5994    .average = 543.34343,
5995  };
5996
5997  ni.number = 58;
5998
5999  int dynamic_array[ni.number];
6000  dynamic_array[ni.number - 1] = 543;
6001
6002  // work around unused variable warnings
6003  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6004	  || dynamic_array[ni.number - 1] != 543);
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6011do
6012  CC="$ac_save_CC $ac_arg"
6013  if ac_fn_c_try_compile "$LINENO"; then :
6014  ac_cv_prog_cc_c99=$ac_arg
6015fi
6016rm -f core conftest.err conftest.$ac_objext
6017  test "x$ac_cv_prog_cc_c99" != "xno" && break
6018done
6019rm -f conftest.$ac_ext
6020CC=$ac_save_CC
6021
6022fi
6023# AC_CACHE_VAL
6024case "x$ac_cv_prog_cc_c99" in
6025  x)
6026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6027$as_echo "none needed" >&6; } ;;
6028  xno)
6029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6030$as_echo "unsupported" >&6; } ;;
6031  *)
6032    CC="$CC $ac_cv_prog_cc_c99"
6033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6035esac
6036if test "x$ac_cv_prog_cc_c99" != xno; then :
6037
6038fi
6039
6040
6041
6042if test "x${cache_file}" = "x/dev/null"; then
6043  # Likewise, ensure that CC and CPP are passed through to the pcre
6044  # configure script iff caching is disabled (the autoconf 2.5x default).
6045  export CC; export CPP
6046fi
6047
6048
6049# Check whether --with-pcre was given.
6050if test "${with_pcre+set}" = set; then :
6051  withval=$with_pcre;
6052fi
6053
6054
6055# Extract the first word of "pcre-config", so it can be a program name with args.
6056set dummy pcre-config; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_path_PCRE_CONFIG+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  case $PCRE_CONFIG in
6063  [\\/]* | ?:[\\/]*)
6064  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
6065  ;;
6066  *)
6067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070  IFS=$as_save_IFS
6071  test -z "$as_dir" && as_dir=.
6072    for ac_exec_ext in '' $ac_executable_extensions; do
6073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074    ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076    break 2
6077  fi
6078done
6079  done
6080IFS=$as_save_IFS
6081
6082  test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="false"
6083  ;;
6084esac
6085fi
6086PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
6087if test -n "$PCRE_CONFIG"; then
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
6089$as_echo "$PCRE_CONFIG" >&6; }
6090else
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096if test -d "$with_pcre" && test -x "$with_pcre/bin/pcre-config"; then
6097   PCRE_CONFIG=$with_pcre/bin/pcre-config
6098elif test -x "$with_pcre"; then
6099   PCRE_CONFIG=$with_pcre
6100fi
6101
6102if test "$PCRE_CONFIG" != "false"; then
6103  if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
6104    as_fn_error $? "Did not find pcre-config script at $PCRE_CONFIG" "$LINENO" 5
6105  fi
6106  case `$PCRE_CONFIG --version` in
6107  [1-5].*)
6108    as_fn_error $? "Need at least pcre version 6.0" "$LINENO" 5
6109    ;;
6110  esac
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: Using external PCRE library from $PCRE_CONFIG" >&5
6112$as_echo "$as_me: Using external PCRE library from $PCRE_CONFIG" >&6;}
6113
6114  if test "x$PCRE_INCLUDES" = "x"; then
6115    test "x$silent" != "xyes" && echo "  setting PCRE_INCLUDES to \"`$PCRE_CONFIG --cflags`\""
6116    PCRE_INCLUDES="`$PCRE_CONFIG --cflags`"
6117  else
6118    apr_addto_bugger="`$PCRE_CONFIG --cflags`"
6119    for i in $apr_addto_bugger; do
6120      apr_addto_duplicate="0"
6121      for j in $PCRE_INCLUDES; do
6122        if test "x$i" = "x$j"; then
6123          apr_addto_duplicate="1"
6124          break
6125        fi
6126      done
6127      if test $apr_addto_duplicate = "0"; then
6128        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_INCLUDES"
6129        PCRE_INCLUDES="$PCRE_INCLUDES $i"
6130      fi
6131    done
6132  fi
6133
6134
6135  if test "x$PCRE_LIBS" = "x"; then
6136    test "x$silent" != "xyes" && echo "  setting PCRE_LIBS to \"`$PCRE_CONFIG --libs`\""
6137    PCRE_LIBS="`$PCRE_CONFIG --libs`"
6138  else
6139    apr_addto_bugger="`$PCRE_CONFIG --libs`"
6140    for i in $apr_addto_bugger; do
6141      apr_addto_duplicate="0"
6142      for j in $PCRE_LIBS; do
6143        if test "x$i" = "x$j"; then
6144          apr_addto_duplicate="1"
6145          break
6146        fi
6147      done
6148      if test $apr_addto_duplicate = "0"; then
6149        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_LIBS"
6150        PCRE_LIBS="$PCRE_LIBS $i"
6151      fi
6152    done
6153  fi
6154
6155else
6156  as_fn_error $? "pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/" "$LINENO" 5
6157fi
6158
6159  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PCRE_LIBS"
6160
6161
6162
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6164$as_echo "$as_me: " >&6;}
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache httpd..." >&5
6166$as_echo "$as_me: Configuring Apache httpd..." >&6;}
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6168$as_echo "$as_me: " >&6;}
6169
6170
6171
6172  if test "x$INCLUDES" = "x"; then
6173    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I.\""
6174    INCLUDES="-I."
6175  else
6176    apr_addto_bugger="-I."
6177    for i in $apr_addto_bugger; do
6178      apr_addto_duplicate="0"
6179      for j in $INCLUDES; do
6180        if test "x$i" = "x$j"; then
6181          apr_addto_duplicate="1"
6182          break
6183        fi
6184      done
6185      if test $apr_addto_duplicate = "0"; then
6186        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6187        INCLUDES="$INCLUDES $i"
6188      fi
6189    done
6190  fi
6191
6192
6193if test "$abs_builddir" != "$abs_srcdir"; then
6194
6195  if test "x$INCLUDES" = "x"; then
6196    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/include\""
6197    INCLUDES="-I\$(top_builddir)/include"
6198  else
6199    apr_addto_bugger="-I\$(top_builddir)/include"
6200    for i in $apr_addto_bugger; do
6201      apr_addto_duplicate="0"
6202      for j in $INCLUDES; do
6203        if test "x$i" = "x$j"; then
6204          apr_addto_duplicate="1"
6205          break
6206        fi
6207      done
6208      if test $apr_addto_duplicate = "0"; then
6209        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6210        INCLUDES="$INCLUDES $i"
6211      fi
6212    done
6213  fi
6214
6215fi
6216
6217
6218  if test "x$INCLUDES" = "x"; then
6219    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include\""
6220    INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
6221  else
6222    apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
6223    for i in $apr_addto_bugger; do
6224      apr_addto_duplicate="0"
6225      for j in $INCLUDES; do
6226        if test "x$i" = "x$j"; then
6227          apr_addto_duplicate="1"
6228          break
6229        fi
6230      done
6231      if test $apr_addto_duplicate = "0"; then
6232        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6233        INCLUDES="$INCLUDES $i"
6234      fi
6235    done
6236  fi
6237
6238
6239# apr/apr-util --includes may pick up system paths for dependent
6240# libraries, so ensure these are later in INCLUDES than local source
6241# directories.
6242
6243  if test "x$INCLUDES" = "x"; then
6244    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APR_INCLUDES\""
6245    INCLUDES="$APR_INCLUDES"
6246  else
6247    apr_addto_bugger="$APR_INCLUDES"
6248    for i in $apr_addto_bugger; do
6249      apr_addto_duplicate="0"
6250      for j in $INCLUDES; do
6251        if test "x$i" = "x$j"; then
6252          apr_addto_duplicate="1"
6253          break
6254        fi
6255      done
6256      if test $apr_addto_duplicate = "0"; then
6257        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6258        INCLUDES="$INCLUDES $i"
6259      fi
6260    done
6261  fi
6262
6263
6264  if test "x$INCLUDES" = "x"; then
6265    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APU_INCLUDES\""
6266    INCLUDES="$APU_INCLUDES"
6267  else
6268    apr_addto_bugger="$APU_INCLUDES"
6269    for i in $apr_addto_bugger; do
6270      apr_addto_duplicate="0"
6271      for j in $INCLUDES; do
6272        if test "x$i" = "x$j"; then
6273          apr_addto_duplicate="1"
6274          break
6275        fi
6276      done
6277      if test $apr_addto_duplicate = "0"; then
6278        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6279        INCLUDES="$INCLUDES $i"
6280      fi
6281    done
6282  fi
6283
6284
6285
6286  if test "x$INCLUDES" = "x"; then
6287    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$PCRE_INCLUDES\""
6288    INCLUDES="$PCRE_INCLUDES"
6289  else
6290    apr_addto_bugger="$PCRE_INCLUDES"
6291    for i in $apr_addto_bugger; do
6292      apr_addto_duplicate="0"
6293      for j in $INCLUDES; do
6294        if test "x$i" = "x$j"; then
6295          apr_addto_duplicate="1"
6296          break
6297        fi
6298      done
6299      if test $apr_addto_duplicate = "0"; then
6300        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6301        INCLUDES="$INCLUDES $i"
6302      fi
6303    done
6304  fi
6305
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6308$as_echo "$as_me: " >&6;}
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: Applying OS-specific hints for httpd..." >&5
6310$as_echo "$as_me: Applying OS-specific hints for httpd..." >&6;}
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6312$as_echo "$as_me: " >&6;}
6313
6314case $host in
6315  *os2*)
6316      # Use a custom made libtool replacement
6317      echo "using aplibtool"
6318      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
6319      SH_LIBTOOL="$LIBTOOL --shared --export-all"
6320      SH_LIBS="\$(ALL_LIBS)"
6321      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
6322      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
6323      MK_IMPLIB="emximp"
6324      other_targets="$other_targets os2core"
6325      INSTALL_PROG_FLAGS="-e .exe"
6326      SHLTCFLAGS=""
6327      LTCFLAGS=""
6328      ;;
6329  *)
6330      if test "x$LTFLAGS" = "x"; then
6331          LTFLAGS='--silent'
6332      fi
6333      my_libtool=`$apr_config --apr-libtool`
6334      LIBTOOL="$my_libtool \$(LTFLAGS)"
6335      libtoolversion=`$my_libtool --version`
6336      case $libtoolversion in
6337          *1.[45]* | *[2-9].[0-9]*)
6338              SH_LIBTOOL='$(LIBTOOL)'
6339              SHLTCFLAGS=""
6340              LTCFLAGS="-mdynamic-no-pic"
6341              ;;
6342          *)
6343              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
6344              SHLTCFLAGS=""
6345              LTCFLAGS=""
6346              ;;
6347      esac
6348      ;;
6349esac
6350
6351  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
6352
6353
6354
6355  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
6356
6357
6358
6359case $host in
6360  *-apple-aux3*)
6361
6362  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6363  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6364
6365      ;;
6366  *os2-emx*)
6367
6368  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6369  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6370
6371      ;;
6372  *-linux-*)
6373      case `uname -r` in
6374        # Unserialized accept() was not recommended until Linux 2.2.
6375        [01].* | 2.[01]* )
6376            ;;
6377        * )
6378
6379  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6380  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6381
6382            ;;
6383      esac
6384      ;;
6385  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
6386
6387  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6388  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6389
6390      ;;
6391  *-solaris2*)
6392            ap_platform_runtime_link_flag="-R"
6393                  case `uname -r` in
6394        5.567*)
6395            ;;
6396        * )
6397
6398  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6399  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6400
6401            ;;
6402      esac
6403      ;;
6404  *cygwin*)
6405
6406  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6407  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6408
6409      ;;
6410  *mingw32*)
6411
6412  if test "x$INTERNAL_CPPFLAGS" = "x"; then
6413    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_DECLARE_EXPORT\""
6414    INTERNAL_CPPFLAGS="-DAP_DECLARE_EXPORT"
6415  else
6416    apr_addto_bugger="-DAP_DECLARE_EXPORT"
6417    for i in $apr_addto_bugger; do
6418      apr_addto_duplicate="0"
6419      for j in $INTERNAL_CPPFLAGS; do
6420        if test "x$i" = "x$j"; then
6421          apr_addto_duplicate="1"
6422          break
6423        fi
6424      done
6425      if test $apr_addto_duplicate = "0"; then
6426        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
6427        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
6428      fi
6429    done
6430  fi
6431
6432
6433  if test -z "$ac_cv_func_times"; then
6434    test "x$silent" != "xyes" && echo "  setting ac_cv_func_times to \"no\""
6435    ac_cv_func_times="no"
6436  fi
6437
6438
6439  if test -z "$ac_cv_func_getpwnam"; then
6440    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getpwnam to \"no\""
6441    ac_cv_func_getpwnam="no"
6442  fi
6443
6444
6445  if test -z "$ac_cv_func_getgrnam"; then
6446    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getgrnam to \"no\""
6447    ac_cv_func_getgrnam="no"
6448  fi
6449
6450      ;;
6451  *aix*)
6452      aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
6453      if test $aixver -ge 4320; then
6454
6455  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6456  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6457
6458      fi
6459      ;;
6460  *os390*)
6461
6462  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6463  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6464
6465      ;;
6466esac
6467
6468
6469  test "x$silent" != "xyes" && echo "  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
6470  AP_NONBLOCK_WHEN_MULTI_LISTEN="1"
6471
6472
6473
6474
6475# Extract the first word of "rm", so it can be a program name with args.
6476set dummy rm; ac_word=$2
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478$as_echo_n "checking for $ac_word... " >&6; }
6479if ${ac_cv_path_RM+:} false; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  case $RM in
6483  [\\/]* | ?:[\\/]*)
6484  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6485  ;;
6486  *)
6487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490  IFS=$as_save_IFS
6491  test -z "$as_dir" && as_dir=.
6492    for ac_exec_ext in '' $ac_executable_extensions; do
6493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496    break 2
6497  fi
6498done
6499  done
6500IFS=$as_save_IFS
6501
6502  ;;
6503esac
6504fi
6505RM=$ac_cv_path_RM
6506if test -n "$RM"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6508$as_echo "$RM" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514
6515# Extract the first word of "pkg-config", so it can be a program name with args.
6516set dummy pkg-config; ac_word=$2
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if ${ac_cv_path_PKGCONFIG+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  case $PKGCONFIG in
6523  [\\/]* | ?:[\\/]*)
6524  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
6525  ;;
6526  *)
6527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  test -z "$as_dir" && as_dir=.
6532    for ac_exec_ext in '' $ac_executable_extensions; do
6533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
6535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536    break 2
6537  fi
6538done
6539  done
6540IFS=$as_save_IFS
6541
6542  ;;
6543esac
6544fi
6545PKGCONFIG=$ac_cv_path_PKGCONFIG
6546if test -n "$PKGCONFIG"; then
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
6548$as_echo "$PKGCONFIG" >&6; }
6549else
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
6552fi
6553
6554
6555# Extract the first word of "rsync", so it can be a program name with args.
6556set dummy rsync; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if ${ac_cv_path_RSYNC+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  case $RSYNC in
6563  [\\/]* | ?:[\\/]*)
6564  ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
6565  ;;
6566  *)
6567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574    ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582  ;;
6583esac
6584fi
6585RSYNC=$ac_cv_path_RSYNC
6586if test -n "$RSYNC"; then
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC" >&5
6588$as_echo "$RSYNC" >&6; }
6589else
6590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591$as_echo "no" >&6; }
6592fi
6593
6594
6595for ac_prog in gawk mawk nawk awk
6596do
6597  # Extract the first word of "$ac_prog", so it can be a program name with args.
6598set dummy $ac_prog; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_AWK+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$AWK"; then
6605  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_AWK="$ac_prog"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624AWK=$ac_cv_prog_AWK
6625if test -n "$AWK"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6627$as_echo "$AWK" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634  test -n "$AWK" && break
6635done
6636
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6638$as_echo_n "checking whether ln -s works... " >&6; }
6639LN_S=$as_ln_s
6640if test "$LN_S" = "ln -s"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642$as_echo "yes" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6645$as_echo "no, using $LN_S" >&6; }
6646fi
6647
6648if test -n "$ac_tool_prefix"; then
6649  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if ${ac_cv_prog_RANLIB+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  if test -n "$RANLIB"; then
6657  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674fi
6675fi
6676RANLIB=$ac_cv_prog_RANLIB
6677if test -n "$RANLIB"; then
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6679$as_echo "$RANLIB" >&6; }
6680else
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
6683fi
6684
6685
6686fi
6687if test -z "$ac_cv_prog_RANLIB"; then
6688  ac_ct_RANLIB=$RANLIB
6689  # Extract the first word of "ranlib", so it can be a program name with args.
6690set dummy ranlib; ac_word=$2
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  if test -n "$ac_ct_RANLIB"; then
6697  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  test -z "$as_dir" && as_dir=.
6704    for ac_exec_ext in '' $ac_executable_extensions; do
6705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706    ac_cv_prog_ac_ct_RANLIB="ranlib"
6707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708    break 2
6709  fi
6710done
6711  done
6712IFS=$as_save_IFS
6713
6714fi
6715fi
6716ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6717if test -n "$ac_ct_RANLIB"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6719$as_echo "$ac_ct_RANLIB" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725  if test "x$ac_ct_RANLIB" = x; then
6726    RANLIB="true"
6727  else
6728    case $cross_compiling:$ac_tool_warned in
6729yes:)
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734    RANLIB=$ac_ct_RANLIB
6735  fi
6736else
6737  RANLIB="$ac_cv_prog_RANLIB"
6738fi
6739
6740for ac_prog in lynx links elinks
6741do
6742  # Extract the first word of "$ac_prog", so it can be a program name with args.
6743set dummy $ac_prog; ac_word=$2
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745$as_echo_n "checking for $ac_word... " >&6; }
6746if ${ac_cv_prog_LYNX_PATH+:} false; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  if test -n "$LYNX_PATH"; then
6750  ac_cv_prog_LYNX_PATH="$LYNX_PATH" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755  IFS=$as_save_IFS
6756  test -z "$as_dir" && as_dir=.
6757    for ac_exec_ext in '' $ac_executable_extensions; do
6758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759    ac_cv_prog_LYNX_PATH="$ac_prog"
6760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764  done
6765IFS=$as_save_IFS
6766
6767fi
6768fi
6769LYNX_PATH=$ac_cv_prog_LYNX_PATH
6770if test -n "$LYNX_PATH"; then
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX_PATH" >&5
6772$as_echo "$LYNX_PATH" >&6; }
6773else
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775$as_echo "no" >&6; }
6776fi
6777
6778
6779  test -n "$LYNX_PATH" && break
6780done
6781test -n "$LYNX_PATH" || LYNX_PATH="lynx"
6782
6783
6784# Hard-coded install programs
6785MKINSTALLDIRS="\$(abs_srcdir)/build/mkdir.sh"
6786INSTALL="\$(LIBTOOL) --mode=install \$(abs_srcdir)/build/install.sh -c"
6787
6788  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKINSTALLDIRS"
6789
6790
6791
6792  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL"
6793
6794
6795
6796
6797
6798
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6800$as_echo_n "checking for ANSI C header files... " >&6; }
6801if ${ac_cv_header_stdc+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805/* end confdefs.h.  */
6806#include <stdlib.h>
6807#include <stdarg.h>
6808#include <string.h>
6809#include <float.h>
6810
6811int
6812main ()
6813{
6814
6815  ;
6816  return 0;
6817}
6818_ACEOF
6819if ac_fn_c_try_compile "$LINENO"; then :
6820  ac_cv_header_stdc=yes
6821else
6822  ac_cv_header_stdc=no
6823fi
6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825
6826if test $ac_cv_header_stdc = yes; then
6827  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830#include <string.h>
6831
6832_ACEOF
6833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6834  $EGREP "memchr" >/dev/null 2>&1; then :
6835
6836else
6837  ac_cv_header_stdc=no
6838fi
6839rm -f conftest*
6840
6841fi
6842
6843if test $ac_cv_header_stdc = yes; then
6844  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847#include <stdlib.h>
6848
6849_ACEOF
6850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6851  $EGREP "free" >/dev/null 2>&1; then :
6852
6853else
6854  ac_cv_header_stdc=no
6855fi
6856rm -f conftest*
6857
6858fi
6859
6860if test $ac_cv_header_stdc = yes; then
6861  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6862  if test "$cross_compiling" = yes; then :
6863  :
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867#include <ctype.h>
6868#include <stdlib.h>
6869#if ((' ' & 0x0FF) == 0x020)
6870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6872#else
6873# define ISLOWER(c) \
6874		   (('a' <= (c) && (c) <= 'i') \
6875		     || ('j' <= (c) && (c) <= 'r') \
6876		     || ('s' <= (c) && (c) <= 'z'))
6877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6878#endif
6879
6880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881int
6882main ()
6883{
6884  int i;
6885  for (i = 0; i < 256; i++)
6886    if (XOR (islower (i), ISLOWER (i))
6887	|| toupper (i) != TOUPPER (i))
6888      return 2;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_run "$LINENO"; then :
6893
6894else
6895  ac_cv_header_stdc=no
6896fi
6897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6898  conftest.$ac_objext conftest.beam conftest.$ac_ext
6899fi
6900
6901fi
6902fi
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6904$as_echo "$ac_cv_header_stdc" >&6; }
6905if test $ac_cv_header_stdc = yes; then
6906
6907$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6908
6909fi
6910
6911# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6912for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6913		  inttypes.h stdint.h unistd.h
6914do :
6915  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6917"
6918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6919  cat >>confdefs.h <<_ACEOF
6920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6921_ACEOF
6922
6923fi
6924
6925done
6926
6927
6928
6929  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6930if test "x$ac_cv_header_minix_config_h" = xyes; then :
6931  MINIX=yes
6932else
6933  MINIX=
6934fi
6935
6936
6937  if test "$MINIX" = yes; then
6938
6939$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6940
6941
6942$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6943
6944
6945$as_echo "#define _MINIX 1" >>confdefs.h
6946
6947  fi
6948
6949
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6951$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6952if ${ac_cv_safe_to_define___extensions__+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956/* end confdefs.h.  */
6957
6958#         define __EXTENSIONS__ 1
6959          $ac_includes_default
6960int
6961main ()
6962{
6963
6964  ;
6965  return 0;
6966}
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"; then :
6969  ac_cv_safe_to_define___extensions__=yes
6970else
6971  ac_cv_safe_to_define___extensions__=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6976$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6977  test $ac_cv_safe_to_define___extensions__ = yes &&
6978    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6979
6980  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6981
6982  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6983
6984  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6985
6986  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6987
6988
6989
6990
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6992$as_echo_n "checking for library containing strerror... " >&6; }
6993if ${ac_cv_search_strerror+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  ac_func_search_save_LIBS=$LIBS
6997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999
7000/* Override any GCC internal prototype to avoid an error.
7001   Use char because int might match the return type of a GCC
7002   builtin and then its argument prototype would still apply.  */
7003#ifdef __cplusplus
7004extern "C"
7005#endif
7006char strerror ();
7007int
7008main ()
7009{
7010return strerror ();
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015for ac_lib in '' cposix; do
7016  if test -z "$ac_lib"; then
7017    ac_res="none required"
7018  else
7019    ac_res=-l$ac_lib
7020    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7021  fi
7022  if ac_fn_c_try_link "$LINENO"; then :
7023  ac_cv_search_strerror=$ac_res
7024fi
7025rm -f core conftest.err conftest.$ac_objext \
7026    conftest$ac_exeext
7027  if ${ac_cv_search_strerror+:} false; then :
7028  break
7029fi
7030done
7031if ${ac_cv_search_strerror+:} false; then :
7032
7033else
7034  ac_cv_search_strerror=no
7035fi
7036rm conftest.$ac_ext
7037LIBS=$ac_func_search_save_LIBS
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7040$as_echo "$ac_cv_search_strerror" >&6; }
7041ac_res=$ac_cv_search_strerror
7042if test "$ac_res" != no; then :
7043  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7044
7045fi
7046
7047
7048# Ensure that satisfactory versions of apr and apr-util are
7049# found if external copies are configured.
7050if test "${apr_found}" = "yes"; then
7051  # Require at least APR 1.3.x otherwise fail
7052
7053
7054
7055
7056
7057
7058ap_ckver_CPPFLAGS="$CPPFLAGS"
7059CPPFLAGS="$CPPFLAGS `$apr_config --includes`"
7060
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR version 1.3.0 or later" >&5
7062$as_echo_n "checking for APR version 1.3.0 or later... " >&6; }
7063if ${ap_cv_aprver13+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066
7067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070#include <apr_version.h>
7071#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 3)
7072good
7073#endif
7074
7075_ACEOF
7076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077  $EGREP "good" >/dev/null 2>&1; then :
7078  ap_cv_aprver13=yes
7079else
7080  ap_cv_aprver13=no
7081fi
7082rm -f conftest*
7083
7084fi
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_aprver13" >&5
7086$as_echo "$ap_cv_aprver13" >&6; }
7087
7088if test "$ap_cv_aprver13" = "yes"; then
7089  :
7090else
7091  as_fn_error $? "APR version 1.3.0 or later is required" "$LINENO" 5
7092fi
7093
7094CPPFLAGS="$ap_ckver_CPPFLAGS"
7095
7096
7097
7098
7099
7100
7101fi
7102
7103if test "${apu_found}" = "yes"; then
7104  # Require at least APR-util 1.3.x otherwise fail
7105  if test "${apr_found}" = "yes"; then
7106    # we need to add the APR includes to CPPFLAGS
7107    apu_ckver_CPPFLAGS="$CPPFLAGS"
7108    CPPFLAGS="$CPPFLAGS `$apr_config --includes`"
7109
7110
7111
7112
7113
7114
7115ap_ckver_CPPFLAGS="$CPPFLAGS"
7116CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
7119$as_echo_n "checking for APR-util version 1.3.0 or later... " >&6; }
7120if ${ap_cv_apuver13+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123
7124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126
7127#include <apu_version.h>
7128#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
7129good
7130#endif
7131
7132_ACEOF
7133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134  $EGREP "good" >/dev/null 2>&1; then :
7135  ap_cv_apuver13=yes
7136else
7137  ap_cv_apuver13=no
7138fi
7139rm -f conftest*
7140
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
7143$as_echo "$ap_cv_apuver13" >&6; }
7144
7145if test "$ap_cv_apuver13" = "yes"; then
7146  :
7147else
7148  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
7149fi
7150
7151CPPFLAGS="$ap_ckver_CPPFLAGS"
7152
7153
7154
7155
7156
7157
7158    CPPFLAGS="$apu_ckver_CPPFLAGS"
7159  else
7160
7161
7162
7163
7164
7165
7166ap_ckver_CPPFLAGS="$CPPFLAGS"
7167CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
7168
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
7170$as_echo_n "checking for APR-util version 1.3.0 or later... " >&6; }
7171if ${ap_cv_apuver13+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174
7175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177
7178#include <apu_version.h>
7179#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
7180good
7181#endif
7182
7183_ACEOF
7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185  $EGREP "good" >/dev/null 2>&1; then :
7186  ap_cv_apuver13=yes
7187else
7188  ap_cv_apuver13=no
7189fi
7190rm -f conftest*
7191
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
7194$as_echo "$ap_cv_apuver13" >&6; }
7195
7196if test "$ap_cv_apuver13" = "yes"; then
7197  :
7198else
7199  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
7200fi
7201
7202CPPFLAGS="$ap_ckver_CPPFLAGS"
7203
7204
7205
7206
7207
7208
7209  fi
7210fi
7211
7212
7213if test "$GCC" = "yes"; then
7214  MKDEP='$(CC) -MM'
7215else
7216  rm -f conftest.c
7217  cat > conftest.c <<EOF
7218#include <sys/types.h>
7219  int main() { return 0; }
7220EOF
7221  MKDEP="true"
7222  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
7223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
7224$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
7225    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
7226      MKDEP=$i
7227      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7228$as_echo "yes" >&6; }
7229      break;
7230    fi
7231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232$as_echo "no" >&6; }
7233  done
7234  rm -f conftest.c
7235fi
7236
7237
7238
7239
7240
7241
7242
7243
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7245$as_echo_n "checking for ANSI C header files... " >&6; }
7246if ${ac_cv_header_stdc+:} false; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251#include <stdlib.h>
7252#include <stdarg.h>
7253#include <string.h>
7254#include <float.h>
7255
7256int
7257main ()
7258{
7259
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"; then :
7265  ac_cv_header_stdc=yes
7266else
7267  ac_cv_header_stdc=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270
7271if test $ac_cv_header_stdc = yes; then
7272  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275#include <string.h>
7276
7277_ACEOF
7278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279  $EGREP "memchr" >/dev/null 2>&1; then :
7280
7281else
7282  ac_cv_header_stdc=no
7283fi
7284rm -f conftest*
7285
7286fi
7287
7288if test $ac_cv_header_stdc = yes; then
7289  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292#include <stdlib.h>
7293
7294_ACEOF
7295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296  $EGREP "free" >/dev/null 2>&1; then :
7297
7298else
7299  ac_cv_header_stdc=no
7300fi
7301rm -f conftest*
7302
7303fi
7304
7305if test $ac_cv_header_stdc = yes; then
7306  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7307  if test "$cross_compiling" = yes; then :
7308  :
7309else
7310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312#include <ctype.h>
7313#include <stdlib.h>
7314#if ((' ' & 0x0FF) == 0x020)
7315# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7316# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7317#else
7318# define ISLOWER(c) \
7319		   (('a' <= (c) && (c) <= 'i') \
7320		     || ('j' <= (c) && (c) <= 'r') \
7321		     || ('s' <= (c) && (c) <= 'z'))
7322# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7323#endif
7324
7325#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7326int
7327main ()
7328{
7329  int i;
7330  for (i = 0; i < 256; i++)
7331    if (XOR (islower (i), ISLOWER (i))
7332	|| toupper (i) != TOUPPER (i))
7333      return 2;
7334  return 0;
7335}
7336_ACEOF
7337if ac_fn_c_try_run "$LINENO"; then :
7338
7339else
7340  ac_cv_header_stdc=no
7341fi
7342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7343  conftest.$ac_objext conftest.beam conftest.$ac_ext
7344fi
7345
7346fi
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7349$as_echo "$ac_cv_header_stdc" >&6; }
7350if test $ac_cv_header_stdc = yes; then
7351
7352$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7353
7354fi
7355
7356for ac_header in \
7357string.h \
7358limits.h \
7359unistd.h \
7360sys/socket.h \
7361pwd.h \
7362grp.h \
7363strings.h \
7364sys/prctl.h \
7365sys/processor.h \
7366sys/sem.h \
7367sys/sdt.h \
7368sys/loadavg.h
7369
7370do :
7371  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7374  cat >>confdefs.h <<_ACEOF
7375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376_ACEOF
7377
7378fi
7379
7380done
7381
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7383$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7384if ${ac_cv_header_sys_wait_h+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h.  */
7389#include <sys/types.h>
7390#include <sys/wait.h>
7391#ifndef WEXITSTATUS
7392# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7393#endif
7394#ifndef WIFEXITED
7395# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7396#endif
7397
7398int
7399main ()
7400{
7401  int s;
7402  wait (&s);
7403  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7404  ;
7405  return 0;
7406}
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"; then :
7409  ac_cv_header_sys_wait_h=yes
7410else
7411  ac_cv_header_sys_wait_h=no
7412fi
7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414fi
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7416$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7417if test $ac_cv_header_sys_wait_h = yes; then
7418
7419$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7420
7421fi
7422
7423
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7426$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7427if ${ac_cv_c_const+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h.  */
7432
7433int
7434main ()
7435{
7436
7437#ifndef __cplusplus
7438  /* Ultrix mips cc rejects this sort of thing.  */
7439  typedef int charset[2];
7440  const charset cs = { 0, 0 };
7441  /* SunOS 4.1.1 cc rejects this.  */
7442  char const *const *pcpcc;
7443  char **ppc;
7444  /* NEC SVR4.0.2 mips cc rejects this.  */
7445  struct point {int x, y;};
7446  static struct point const zero = {0,0};
7447  /* AIX XL C 1.02.0.0 rejects this.
7448     It does not let you subtract one const X* pointer from another in
7449     an arm of an if-expression whose if-part is not a constant
7450     expression */
7451  const char *g = "string";
7452  pcpcc = &g + (g ? g-g : 0);
7453  /* HPUX 7.0 cc rejects these. */
7454  ++pcpcc;
7455  ppc = (char**) pcpcc;
7456  pcpcc = (char const *const *) ppc;
7457  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7458    char tx;
7459    char *t = &tx;
7460    char const *s = 0 ? (char *) 0 : (char const *) 0;
7461
7462    *t++ = 0;
7463    if (s) return 0;
7464  }
7465  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7466    int x[] = {25, 17};
7467    const int *foo = &x[0];
7468    ++foo;
7469  }
7470  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7471    typedef const int *iptr;
7472    iptr p = 0;
7473    ++p;
7474  }
7475  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7476       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7477    struct s { int j; const int *ap[3]; } bx;
7478    struct s *b = &bx; b->j = 5;
7479  }
7480  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7481    const int foo = 10;
7482    if (!foo) return 0;
7483  }
7484  return !cs[0] && !zero.x;
7485#endif
7486
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491if ac_fn_c_try_compile "$LINENO"; then :
7492  ac_cv_c_const=yes
7493else
7494  ac_cv_c_const=no
7495fi
7496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497fi
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7499$as_echo "$ac_cv_c_const" >&6; }
7500if test $ac_cv_c_const = no; then
7501
7502$as_echo "#define const /**/" >>confdefs.h
7503
7504fi
7505
7506
7507saved_LIBS="$LIBS"
7508LIBS=""
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
7510$as_echo_n "checking for library containing sqrt... " >&6; }
7511if ${ac_cv_search_sqrt+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  ac_func_search_save_LIBS=$LIBS
7515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h.  */
7517
7518/* Override any GCC internal prototype to avoid an error.
7519   Use char because int might match the return type of a GCC
7520   builtin and then its argument prototype would still apply.  */
7521#ifdef __cplusplus
7522extern "C"
7523#endif
7524char sqrt ();
7525int
7526main ()
7527{
7528return sqrt ();
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533for ac_lib in '' m; do
7534  if test -z "$ac_lib"; then
7535    ac_res="none required"
7536  else
7537    ac_res=-l$ac_lib
7538    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7539  fi
7540  if ac_fn_c_try_link "$LINENO"; then :
7541  ac_cv_search_sqrt=$ac_res
7542fi
7543rm -f core conftest.err conftest.$ac_objext \
7544    conftest$ac_exeext
7545  if ${ac_cv_search_sqrt+:} false; then :
7546  break
7547fi
7548done
7549if ${ac_cv_search_sqrt+:} false; then :
7550
7551else
7552  ac_cv_search_sqrt=no
7553fi
7554rm conftest.$ac_ext
7555LIBS=$ac_func_search_save_LIBS
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
7558$as_echo "$ac_cv_search_sqrt" >&6; }
7559ac_res=$ac_cv_search_sqrt
7560if test "$ac_res" != no; then :
7561  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7562
7563fi
7564
7565MATH_LIBS="$LIBS"
7566
7567  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MATH_LIBS"
7568
7569
7570LIBS="$saved_LIBS"
7571
7572saved_LIBS="$LIBS"
7573LIBS=""
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7575$as_echo_n "checking for library containing crypt... " >&6; }
7576if ${ac_cv_search_crypt+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  ac_func_search_save_LIBS=$LIBS
7580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582
7583/* Override any GCC internal prototype to avoid an error.
7584   Use char because int might match the return type of a GCC
7585   builtin and then its argument prototype would still apply.  */
7586#ifdef __cplusplus
7587extern "C"
7588#endif
7589char crypt ();
7590int
7591main ()
7592{
7593return crypt ();
7594  ;
7595  return 0;
7596}
7597_ACEOF
7598for ac_lib in '' crypt; do
7599  if test -z "$ac_lib"; then
7600    ac_res="none required"
7601  else
7602    ac_res=-l$ac_lib
7603    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7604  fi
7605  if ac_fn_c_try_link "$LINENO"; then :
7606  ac_cv_search_crypt=$ac_res
7607fi
7608rm -f core conftest.err conftest.$ac_objext \
7609    conftest$ac_exeext
7610  if ${ac_cv_search_crypt+:} false; then :
7611  break
7612fi
7613done
7614if ${ac_cv_search_crypt+:} false; then :
7615
7616else
7617  ac_cv_search_crypt=no
7618fi
7619rm conftest.$ac_ext
7620LIBS=$ac_func_search_save_LIBS
7621fi
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7623$as_echo "$ac_cv_search_crypt" >&6; }
7624ac_res=$ac_cv_search_crypt
7625if test "$ac_res" != no; then :
7626  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7627
7628fi
7629
7630CRYPT_LIBS="$LIBS"
7631
7632  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CRYPT_LIBS"
7633
7634
7635LIBS="$saved_LIBS"
7636
7637
7638for ac_func in \
7639getpwnam \
7640getgrnam \
7641initgroups \
7642bindprocessor \
7643prctl \
7644timegm \
7645getpgid \
7646fopen64 \
7647getloadavg
7648
7649do :
7650  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7651ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7652if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7653  cat >>confdefs.h <<_ACEOF
7654#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7655_ACEOF
7656
7657fi
7658done
7659
7660
7661
7662
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void pointer length" >&5
7664$as_echo_n "checking for void pointer length... " >&6; }
7665if ${ap_cv_void_ptr_lt_long+:} false; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  if test "$cross_compiling" = yes; then :
7669  ap_cv_void_ptr_lt_long=yes
7670else
7671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h.  */
7673
7674int main(void)
7675{
7676    return sizeof(void *) < sizeof(long);
7677}
7678_ACEOF
7679if ac_fn_c_try_run "$LINENO"; then :
7680  ap_cv_void_ptr_lt_long=no
7681else
7682  ap_cv_void_ptr_lt_long=yes
7683fi
7684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685  conftest.$ac_objext conftest.beam conftest.$ac_ext
7686fi
7687
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_void_ptr_lt_long" >&5
7690$as_echo "$ap_cv_void_ptr_lt_long" >&6; }
7691
7692if test "$ap_cv_void_ptr_lt_long" = "yes"; then
7693    as_fn_error $? "Size of \"void *\" is less than size of \"long\"" "$LINENO" 5
7694fi
7695
7696
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid()" >&5
7698$as_echo_n "checking for gettid()... " >&6; }
7699if ${ac_cv_gettid+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  if test "$cross_compiling" = yes; then :
7703  ac_cv_gettid=no
7704else
7705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707#define _GNU_SOURCE
7708#include <unistd.h>
7709#include <sys/syscall.h>
7710#include <sys/types.h>
7711int main(int argc, char **argv) {
7712pid_t t = syscall(SYS_gettid); return t == -1 ? 1 : 0; }
7713_ACEOF
7714if ac_fn_c_try_run "$LINENO"; then :
7715  ac_cv_gettid=yes
7716else
7717  ac_cv_gettid=no
7718fi
7719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7720  conftest.$ac_objext conftest.beam conftest.$ac_ext
7721fi
7722
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gettid" >&5
7725$as_echo "$ac_cv_gettid" >&6; }
7726if test "$ac_cv_gettid" = "yes"; then
7727
7728$as_echo "#define HAVE_GETTID 1" >>confdefs.h
7729
7730fi
7731
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
7733$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
7734if ${ac_cv_struct_tm_gmtoff+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739#include <sys/types.h>
7740#include <time.h>
7741int
7742main ()
7743{
7744struct tm tm; tm.tm_gmtoff;
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749if ac_fn_c_try_compile "$LINENO"; then :
7750  ac_cv_struct_tm_gmtoff=yes
7751else
7752  ac_cv_struct_tm_gmtoff=no
7753fi
7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
7757$as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
7758if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
7759
7760$as_echo "#define HAVE_GMTOFF 1" >>confdefs.h
7761
7762fi
7763
7764
7765case $host in
7766    *aix*)
7767        # for 32-bit builds, increase MAXDATA to allow lots of threads
7768        if test x$OBJECT_MODE != x64; then
7769            OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
7770        fi
7771        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
7772        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
7773        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
7774        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
7775        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
7776        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
7777        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
7778        ;;
7779    *os390*)
7780        OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
7781        ;;
7782    *)
7783        OS_SPECIFIC_VARS=""
7784esac
7785
7786
7787# Check whether --with-port was given.
7788if test "${with_port+set}" = set; then :
7789  withval=$with_port; if test "$withval" = "yes"; then as_fn_error $? "'option --with-port requires a value (the TCP port number)'" "$LINENO" 5; else PORT="$withval"; fi
7790else
7791  PORT=80
7792fi
7793
7794
7795
7796# Check whether --with-sslport was given.
7797if test "${with_sslport+set}" = set; then :
7798  withval=$with_sslport; if test "$withval" = "yes"; then as_fn_error $? "'option --with-sslport requires a value (the SSL TCP port number)'" "$LINENO" 5; else SSLPORT="$withval"; fi
7799else
7800  SSLPORT=443
7801fi
7802
7803
7804DTRACE=true
7805# Check whether --enable-dtrace was given.
7806if test "${enable_dtrace+set}" = set; then :
7807  enableval=$enable_dtrace;
7808  enable_dtrace=$enableval
7809  if test "$enableval" = "yes"; then
7810
7811  if test "x$CPPFLAGS" = "x"; then
7812    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_DTRACE_PROVIDER\""
7813    CPPFLAGS="-DAPR_DTRACE_PROVIDER"
7814  else
7815    apr_addto_bugger="-DAPR_DTRACE_PROVIDER"
7816    for i in $apr_addto_bugger; do
7817      apr_addto_duplicate="0"
7818      for j in $CPPFLAGS; do
7819        if test "x$i" = "x$j"; then
7820          apr_addto_duplicate="1"
7821          break
7822        fi
7823      done
7824      if test $apr_addto_duplicate = "0"; then
7825        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7826        CPPFLAGS="$CPPFLAGS $i"
7827      fi
7828    done
7829  fi
7830
7831    as_fn_error $? "'DTrace Support in the build system is not complete. Patches Welcome!'" "$LINENO" 5
7832  fi
7833
7834else
7835
7836  enable_dtrace=no
7837
7838fi
7839
7840
7841enable_dtrace=no
7842
7843case $host in
7844  *-solaris2*)
7845    if test $enable_dtrace = "yes" -a "$ac_cv_header_sys_sdt_h" = "yes"; then
7846
7847$as_echo "#define AP_ENABLE_DTRACE 1" >>confdefs.h
7848
7849        DTRACE="/usr/sbin/dtrace $DTRACEFLAGS"
7850        test -f include/apache_probes.h || $DTRACE -h -s apache_probes.d -o include/apache_probes.h
7851    fi
7852    ;;
7853esac
7854
7855
7856  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DTRACE"
7857
7858
7859
7860# Check whether --enable-hook-probes was given.
7861if test "${enable_hook_probes+set}" = set; then :
7862  enableval=$enable_hook_probes;
7863    if test "$enableval" = "yes"; then
7864
7865$as_echo "#define AP_HOOK_PROBES_ENABLED 1" >>confdefs.h
7866
7867
7868  if test "x$INTERNAL_CPPFLAGS" = "x"; then
7869    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_HOOK_PROBES_ENABLED\""
7870    INTERNAL_CPPFLAGS="-DAP_HOOK_PROBES_ENABLED"
7871  else
7872    apr_addto_bugger="-DAP_HOOK_PROBES_ENABLED"
7873    for i in $apr_addto_bugger; do
7874      apr_addto_duplicate="0"
7875      for j in $INTERNAL_CPPFLAGS; do
7876        if test "x$i" = "x$j"; then
7877          apr_addto_duplicate="1"
7878          break
7879        fi
7880      done
7881      if test $apr_addto_duplicate = "0"; then
7882        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
7883        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
7884      fi
7885    done
7886  fi
7887
7888    fi
7889
7890fi
7891
7892# Check whether --enable-exception-hook was given.
7893if test "${enable_exception_hook+set}" = set; then :
7894  enableval=$enable_exception_hook;
7895    if test "$enableval" = "yes"; then
7896
7897$as_echo "#define AP_ENABLE_EXCEPTION_HOOK 1" >>confdefs.h
7898
7899    fi
7900
7901fi
7902
7903# Check whether --enable-load-all-modules was given.
7904if test "${enable_load_all_modules+set}" = set; then :
7905  enableval=$enable_load_all_modules;
7906  LOAD_ALL_MODULES=$enableval
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
7908$as_echo "$as_me: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}
7909
7910else
7911
7912  LOAD_ALL_MODULES="no"
7913
7914fi
7915
7916
7917# Check whether --enable-maintainer-mode was given.
7918if test "${enable_maintainer_mode+set}" = set; then :
7919  enableval=$enable_maintainer_mode;
7920  if test "$enableval" = "yes"; then
7921
7922  if test "x$CPPFLAGS" = "x"; then
7923    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
7924    CPPFLAGS="-DAP_DEBUG"
7925  else
7926    apr_addto_bugger="-DAP_DEBUG"
7927    for i in $apr_addto_bugger; do
7928      apr_addto_duplicate="0"
7929      for j in $CPPFLAGS; do
7930        if test "x$i" = "x$j"; then
7931          apr_addto_duplicate="1"
7932          break
7933        fi
7934      done
7935      if test $apr_addto_duplicate = "0"; then
7936        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7937        CPPFLAGS="$CPPFLAGS $i"
7938      fi
7939    done
7940  fi
7941
7942    if test "$GCC" = "yes"; then
7943
7944  if test "x$CFLAGS" = "x"; then
7945    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith\""
7946    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith"
7947  else
7948    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith"
7949    for i in $apr_addto_bugger; do
7950      apr_addto_duplicate="0"
7951      for j in $CFLAGS; do
7952        if test "x$i" = "x$j"; then
7953          apr_addto_duplicate="1"
7954          break
7955        fi
7956      done
7957      if test $apr_addto_duplicate = "0"; then
7958        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7959        CFLAGS="$CFLAGS $i"
7960      fi
7961    done
7962  fi
7963
7964
7965
7966  if test "$GCC" = "yes"; then
7967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
7968$as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
7969if ${ac_cv_gcc__Wdeclaration_after_statement+:} false; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972
7973      save_CFLAGS="$CFLAGS"
7974      CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977int foo() { return 0; }
7978_ACEOF
7979if ac_fn_c_try_compile "$LINENO"; then :
7980  ac_cv_gcc__Wdeclaration_after_statement=yes
7981else
7982  ac_cv_gcc__Wdeclaration_after_statement=no
7983fi
7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985      CFLAGS="$save_CFLAGS"
7986
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
7989$as_echo "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
7990    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then
7991
7992  if test "x$CFLAGS" = "x"; then
7993    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wdeclaration-after-statement\""
7994    CFLAGS="-Wdeclaration-after-statement"
7995  else
7996    apr_addto_bugger="-Wdeclaration-after-statement"
7997    for i in $apr_addto_bugger; do
7998      apr_addto_duplicate="0"
7999      for j in $CFLAGS; do
8000        if test "x$i" = "x$j"; then
8001          apr_addto_duplicate="1"
8002          break
8003        fi
8004      done
8005      if test $apr_addto_duplicate = "0"; then
8006        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8007        CFLAGS="$CFLAGS $i"
8008      fi
8009    done
8010  fi
8011
8012    fi
8013  fi
8014
8015
8016
8017
8018  if test "$GCC" = "yes"; then
8019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=declaration-after-statement" >&5
8020$as_echo_n "checking whether gcc accepts -Werror=declaration-after-statement... " >&6; }
8021if ${ac_cv_gcc__Werror_declaration_after_statement+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024
8025      save_CFLAGS="$CFLAGS"
8026      CFLAGS="$CFLAGS -Werror=declaration-after-statement"
8027      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int foo() { return 0; }
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"; then :
8032  ac_cv_gcc__Werror_declaration_after_statement=yes
8033else
8034  ac_cv_gcc__Werror_declaration_after_statement=no
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037      CFLAGS="$save_CFLAGS"
8038
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_declaration_after_statement" >&5
8041$as_echo "$ac_cv_gcc__Werror_declaration_after_statement" >&6; }
8042    if test "$ac_cv_gcc__Werror_declaration_after_statement" = "yes" ; then
8043
8044  if test "x$CFLAGS" = "x"; then
8045    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=declaration-after-statement\""
8046    CFLAGS="-Werror=declaration-after-statement"
8047  else
8048    apr_addto_bugger="-Werror=declaration-after-statement"
8049    for i in $apr_addto_bugger; do
8050      apr_addto_duplicate="0"
8051      for j in $CFLAGS; do
8052        if test "x$i" = "x$j"; then
8053          apr_addto_duplicate="1"
8054          break
8055        fi
8056      done
8057      if test $apr_addto_duplicate = "0"; then
8058        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8059        CFLAGS="$CFLAGS $i"
8060      fi
8061    done
8062  fi
8063
8064    fi
8065  fi
8066
8067
8068
8069
8070  if test "$GCC" = "yes"; then
8071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
8072$as_echo_n "checking whether gcc accepts -Wformat... " >&6; }
8073if ${ac_cv_gcc__Wformat+:} false; then :
8074  $as_echo_n "(cached) " >&6
8075else
8076
8077      save_CFLAGS="$CFLAGS"
8078      CFLAGS="$CFLAGS -Wformat"
8079      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081int foo() { return 0; }
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"; then :
8084  ac_cv_gcc__Wformat=yes
8085else
8086  ac_cv_gcc__Wformat=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089      CFLAGS="$save_CFLAGS"
8090
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
8093$as_echo "$ac_cv_gcc__Wformat" >&6; }
8094    if test "$ac_cv_gcc__Wformat" = "yes" ; then
8095
8096  if test "x$CFLAGS" = "x"; then
8097    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat\""
8098    CFLAGS="-Wformat"
8099  else
8100    apr_addto_bugger="-Wformat"
8101    for i in $apr_addto_bugger; do
8102      apr_addto_duplicate="0"
8103      for j in $CFLAGS; do
8104        if test "x$i" = "x$j"; then
8105          apr_addto_duplicate="1"
8106          break
8107        fi
8108      done
8109      if test $apr_addto_duplicate = "0"; then
8110        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8111        CFLAGS="$CFLAGS $i"
8112      fi
8113    done
8114  fi
8115
8116    fi
8117  fi
8118
8119
8120
8121
8122  if test "$GCC" = "yes"; then
8123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
8124$as_echo_n "checking whether gcc accepts -Wformat-security... " >&6; }
8125if ${ac_cv_gcc__Wformat_security+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128
8129      save_CFLAGS="$CFLAGS"
8130      CFLAGS="$CFLAGS -Wformat-security"
8131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132/* end confdefs.h.  */
8133int foo() { return 0; }
8134_ACEOF
8135if ac_fn_c_try_compile "$LINENO"; then :
8136  ac_cv_gcc__Wformat_security=yes
8137else
8138  ac_cv_gcc__Wformat_security=no
8139fi
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141      CFLAGS="$save_CFLAGS"
8142
8143fi
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
8145$as_echo "$ac_cv_gcc__Wformat_security" >&6; }
8146    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then
8147
8148  if test "x$CFLAGS" = "x"; then
8149    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat-security\""
8150    CFLAGS="-Wformat-security"
8151  else
8152    apr_addto_bugger="-Wformat-security"
8153    for i in $apr_addto_bugger; do
8154      apr_addto_duplicate="0"
8155      for j in $CFLAGS; do
8156        if test "x$i" = "x$j"; then
8157          apr_addto_duplicate="1"
8158          break
8159        fi
8160      done
8161      if test $apr_addto_duplicate = "0"; then
8162        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8163        CFLAGS="$CFLAGS $i"
8164      fi
8165    done
8166  fi
8167
8168    fi
8169  fi
8170
8171
8172
8173
8174  if test "$GCC" = "yes"; then
8175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=format-security" >&5
8176$as_echo_n "checking whether gcc accepts -Werror=format-security... " >&6; }
8177if ${ac_cv_gcc__Werror_format_security+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180
8181      save_CFLAGS="$CFLAGS"
8182      CFLAGS="$CFLAGS -Werror=format-security"
8183      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int foo() { return 0; }
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  ac_cv_gcc__Werror_format_security=yes
8189else
8190  ac_cv_gcc__Werror_format_security=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193      CFLAGS="$save_CFLAGS"
8194
8195fi
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_format_security" >&5
8197$as_echo "$ac_cv_gcc__Werror_format_security" >&6; }
8198    if test "$ac_cv_gcc__Werror_format_security" = "yes" ; then
8199
8200  if test "x$CFLAGS" = "x"; then
8201    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=format-security\""
8202    CFLAGS="-Werror=format-security"
8203  else
8204    apr_addto_bugger="-Werror=format-security"
8205    for i in $apr_addto_bugger; do
8206      apr_addto_duplicate="0"
8207      for j in $CFLAGS; do
8208        if test "x$i" = "x$j"; then
8209          apr_addto_duplicate="1"
8210          break
8211        fi
8212      done
8213      if test $apr_addto_duplicate = "0"; then
8214        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8215        CFLAGS="$CFLAGS $i"
8216      fi
8217    done
8218  fi
8219
8220    fi
8221  fi
8222
8223
8224    elif test "$AIX_XLC" = "yes"; then
8225
8226  if test "x$CFLAGS" = "x"; then
8227    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
8228    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8229  else
8230    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8231    for i in $apr_addto_bugger; do
8232      apr_addto_duplicate="0"
8233      for j in $CFLAGS; do
8234        if test "x$i" = "x$j"; then
8235          apr_addto_duplicate="1"
8236          break
8237        fi
8238      done
8239      if test $apr_addto_duplicate = "0"; then
8240        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8241        CFLAGS="$CFLAGS $i"
8242      fi
8243    done
8244  fi
8245
8246    fi
8247    if test "x$enable_load_all_modules" = "x"; then
8248      LOAD_ALL_MODULES=yes
8249      { $as_echo "$as_me:${as_lineno-$LINENO}: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
8250$as_echo "$as_me: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}
8251    fi
8252    if test "x$enable_bucketeer" = "x"; then
8253      enable_bucketeer=yes
8254      { $as_echo "$as_me:${as_lineno-$LINENO}: Maintainer mode setting \"enable_bucketeer\" to yes" >&5
8255$as_echo "$as_me: Maintainer mode setting \"enable_bucketeer\" to yes" >&6;}
8256    fi
8257  fi
8258
8259fi
8260
8261# Check whether --enable-debugger-mode was given.
8262if test "${enable_debugger_mode+set}" = set; then :
8263  enableval=$enable_debugger_mode;
8264  if test "$enableval" = "yes"; then
8265
8266  if test "x$CPPFLAGS" = "x"; then
8267    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
8268    CPPFLAGS="-DAP_DEBUG"
8269  else
8270    apr_addto_bugger="-DAP_DEBUG"
8271    for i in $apr_addto_bugger; do
8272      apr_addto_duplicate="0"
8273      for j in $CPPFLAGS; do
8274        if test "x$i" = "x$j"; then
8275          apr_addto_duplicate="1"
8276          break
8277        fi
8278      done
8279      if test $apr_addto_duplicate = "0"; then
8280        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8281        CPPFLAGS="$CPPFLAGS $i"
8282      fi
8283    done
8284  fi
8285
8286    if test "$GCC" = "yes"; then
8287
8288  if test "x$CFLAGS" = "x"; then
8289    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0\""
8290    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0"
8291  else
8292    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0"
8293    for i in $apr_addto_bugger; do
8294      apr_addto_duplicate="0"
8295      for j in $CFLAGS; do
8296        if test "x$i" = "x$j"; then
8297          apr_addto_duplicate="1"
8298          break
8299        fi
8300      done
8301      if test $apr_addto_duplicate = "0"; then
8302        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8303        CFLAGS="$CFLAGS $i"
8304      fi
8305    done
8306  fi
8307
8308
8309
8310  if test "$GCC" = "yes"; then
8311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
8312$as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
8313if ${ac_cv_gcc__Wdeclaration_after_statement+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316
8317      save_CFLAGS="$CFLAGS"
8318      CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8319      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321int foo() { return 0; }
8322_ACEOF
8323if ac_fn_c_try_compile "$LINENO"; then :
8324  ac_cv_gcc__Wdeclaration_after_statement=yes
8325else
8326  ac_cv_gcc__Wdeclaration_after_statement=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329      CFLAGS="$save_CFLAGS"
8330
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
8333$as_echo "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
8334    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then
8335
8336  if test "x$CFLAGS" = "x"; then
8337    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wdeclaration-after-statement\""
8338    CFLAGS="-Wdeclaration-after-statement"
8339  else
8340    apr_addto_bugger="-Wdeclaration-after-statement"
8341    for i in $apr_addto_bugger; do
8342      apr_addto_duplicate="0"
8343      for j in $CFLAGS; do
8344        if test "x$i" = "x$j"; then
8345          apr_addto_duplicate="1"
8346          break
8347        fi
8348      done
8349      if test $apr_addto_duplicate = "0"; then
8350        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8351        CFLAGS="$CFLAGS $i"
8352      fi
8353    done
8354  fi
8355
8356    fi
8357  fi
8358
8359
8360
8361
8362  if test "$GCC" = "yes"; then
8363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=declaration-after-statement" >&5
8364$as_echo_n "checking whether gcc accepts -Werror=declaration-after-statement... " >&6; }
8365if ${ac_cv_gcc__Werror_declaration_after_statement+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368
8369      save_CFLAGS="$CFLAGS"
8370      CFLAGS="$CFLAGS -Werror=declaration-after-statement"
8371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373int foo() { return 0; }
8374_ACEOF
8375if ac_fn_c_try_compile "$LINENO"; then :
8376  ac_cv_gcc__Werror_declaration_after_statement=yes
8377else
8378  ac_cv_gcc__Werror_declaration_after_statement=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381      CFLAGS="$save_CFLAGS"
8382
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_declaration_after_statement" >&5
8385$as_echo "$ac_cv_gcc__Werror_declaration_after_statement" >&6; }
8386    if test "$ac_cv_gcc__Werror_declaration_after_statement" = "yes" ; then
8387
8388  if test "x$CFLAGS" = "x"; then
8389    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=declaration-after-statement\""
8390    CFLAGS="-Werror=declaration-after-statement"
8391  else
8392    apr_addto_bugger="-Werror=declaration-after-statement"
8393    for i in $apr_addto_bugger; do
8394      apr_addto_duplicate="0"
8395      for j in $CFLAGS; do
8396        if test "x$i" = "x$j"; then
8397          apr_addto_duplicate="1"
8398          break
8399        fi
8400      done
8401      if test $apr_addto_duplicate = "0"; then
8402        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8403        CFLAGS="$CFLAGS $i"
8404      fi
8405    done
8406  fi
8407
8408    fi
8409  fi
8410
8411
8412
8413
8414  if test "$GCC" = "yes"; then
8415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
8416$as_echo_n "checking whether gcc accepts -Wformat... " >&6; }
8417if ${ac_cv_gcc__Wformat+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420
8421      save_CFLAGS="$CFLAGS"
8422      CFLAGS="$CFLAGS -Wformat"
8423      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425int foo() { return 0; }
8426_ACEOF
8427if ac_fn_c_try_compile "$LINENO"; then :
8428  ac_cv_gcc__Wformat=yes
8429else
8430  ac_cv_gcc__Wformat=no
8431fi
8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433      CFLAGS="$save_CFLAGS"
8434
8435fi
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
8437$as_echo "$ac_cv_gcc__Wformat" >&6; }
8438    if test "$ac_cv_gcc__Wformat" = "yes" ; then
8439
8440  if test "x$CFLAGS" = "x"; then
8441    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat\""
8442    CFLAGS="-Wformat"
8443  else
8444    apr_addto_bugger="-Wformat"
8445    for i in $apr_addto_bugger; do
8446      apr_addto_duplicate="0"
8447      for j in $CFLAGS; do
8448        if test "x$i" = "x$j"; then
8449          apr_addto_duplicate="1"
8450          break
8451        fi
8452      done
8453      if test $apr_addto_duplicate = "0"; then
8454        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8455        CFLAGS="$CFLAGS $i"
8456      fi
8457    done
8458  fi
8459
8460    fi
8461  fi
8462
8463
8464
8465
8466  if test "$GCC" = "yes"; then
8467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
8468$as_echo_n "checking whether gcc accepts -Wformat-security... " >&6; }
8469if ${ac_cv_gcc__Wformat_security+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472
8473      save_CFLAGS="$CFLAGS"
8474      CFLAGS="$CFLAGS -Wformat-security"
8475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int foo() { return 0; }
8478_ACEOF
8479if ac_fn_c_try_compile "$LINENO"; then :
8480  ac_cv_gcc__Wformat_security=yes
8481else
8482  ac_cv_gcc__Wformat_security=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485      CFLAGS="$save_CFLAGS"
8486
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
8489$as_echo "$ac_cv_gcc__Wformat_security" >&6; }
8490    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then
8491
8492  if test "x$CFLAGS" = "x"; then
8493    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat-security\""
8494    CFLAGS="-Wformat-security"
8495  else
8496    apr_addto_bugger="-Wformat-security"
8497    for i in $apr_addto_bugger; do
8498      apr_addto_duplicate="0"
8499      for j in $CFLAGS; do
8500        if test "x$i" = "x$j"; then
8501          apr_addto_duplicate="1"
8502          break
8503        fi
8504      done
8505      if test $apr_addto_duplicate = "0"; then
8506        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8507        CFLAGS="$CFLAGS $i"
8508      fi
8509    done
8510  fi
8511
8512    fi
8513  fi
8514
8515
8516
8517
8518  if test "$GCC" = "yes"; then
8519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=format-security" >&5
8520$as_echo_n "checking whether gcc accepts -Werror=format-security... " >&6; }
8521if ${ac_cv_gcc__Werror_format_security+:} false; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524
8525      save_CFLAGS="$CFLAGS"
8526      CFLAGS="$CFLAGS -Werror=format-security"
8527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528/* end confdefs.h.  */
8529int foo() { return 0; }
8530_ACEOF
8531if ac_fn_c_try_compile "$LINENO"; then :
8532  ac_cv_gcc__Werror_format_security=yes
8533else
8534  ac_cv_gcc__Werror_format_security=no
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537      CFLAGS="$save_CFLAGS"
8538
8539fi
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_format_security" >&5
8541$as_echo "$ac_cv_gcc__Werror_format_security" >&6; }
8542    if test "$ac_cv_gcc__Werror_format_security" = "yes" ; then
8543
8544  if test "x$CFLAGS" = "x"; then
8545    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=format-security\""
8546    CFLAGS="-Werror=format-security"
8547  else
8548    apr_addto_bugger="-Werror=format-security"
8549    for i in $apr_addto_bugger; do
8550      apr_addto_duplicate="0"
8551      for j in $CFLAGS; do
8552        if test "x$i" = "x$j"; then
8553          apr_addto_duplicate="1"
8554          break
8555        fi
8556      done
8557      if test $apr_addto_duplicate = "0"; then
8558        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8559        CFLAGS="$CFLAGS $i"
8560      fi
8561    done
8562  fi
8563
8564    fi
8565  fi
8566
8567
8568    elif test "$AIX_XLC" = "yes"; then
8569
8570  if test "x$CFLAGS" = "x"; then
8571    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
8572    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8573  else
8574    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8575    for i in $apr_addto_bugger; do
8576      apr_addto_duplicate="0"
8577      for j in $CFLAGS; do
8578        if test "x$i" = "x$j"; then
8579          apr_addto_duplicate="1"
8580          break
8581        fi
8582      done
8583      if test $apr_addto_duplicate = "0"; then
8584        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8585        CFLAGS="$CFLAGS $i"
8586      fi
8587    done
8588  fi
8589
8590    fi
8591  fi
8592
8593fi
8594
8595# Check whether --enable-pie was given.
8596if test "${enable_pie+set}" = set; then :
8597  enableval=$enable_pie;
8598fi
8599
8600if test "$enable_pie" = "yes"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
8602$as_echo_n "checking whether $CC accepts PIE flags... " >&6; }
8603if ${ap_cv_cc_pie+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606
8607     save_CFLAGS=$CFLAGS
8608     save_LDFLAGS=$LDFLAGS
8609     CFLAGS="$CFLAGS -fPIE"
8610     LDFLAGS="$LDFLAGS -pie"
8611     if test "$cross_compiling" = yes; then :
8612  ap_cv_cc_pie=yes
8613else
8614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h.  */
8616static int foo[30000]; int main () { return 0; }
8617_ACEOF
8618if ac_fn_c_try_run "$LINENO"; then :
8619  ap_cv_cc_pie=yes
8620else
8621  ap_cv_cc_pie=no
8622fi
8623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8624  conftest.$ac_objext conftest.beam conftest.$ac_ext
8625fi
8626
8627     CFLAGS=$save_CFLAGS
8628     LDFLAGS=$save_LDFLAGS
8629
8630fi
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
8632$as_echo "$ap_cv_cc_pie" >&6; }
8633   if test "$ap_cv_cc_pie" = "yes"; then
8634     PICFLAGS="-fPIE"
8635     PILDFLAGS="-pie"
8636   else
8637     as_fn_error $? "--enable-pie requested but $CC failed using PIE flags" "$LINENO" 5
8638   fi
8639fi
8640
8641  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PICFLAGS"
8642
8643
8644
8645  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PILDFLAGS"
8646
8647
8648
8649prefix="$orig_prefix"
8650
8651  module_selection=most
8652  module_default=shared
8653
8654
8655apr_old_cppflags=$CPPFLAGS
8656CPPFLAGS="$CPPFLAGS $INCLUDES"
8657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659
8660#include <apr.h>
8661#if APR_HAS_DSO
8662YES_IS_DEFINED
8663#endif
8664
8665_ACEOF
8666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8667  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
8668  ac_cv_define_APR_HAS_DSO=yes
8669else
8670  ac_cv_define_APR_HAS_DSO=no
8671fi
8672rm -f conftest*
8673
8674CPPFLAGS=$apr_old_cppflags
8675
8676
8677  if test $ac_cv_define_APR_HAS_DSO = "no"; then
8678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing DSO support - building static modules by default." >&5
8679$as_echo "$as_me: WARNING: Missing DSO support - building static modules by default." >&2;}
8680    module_default=static
8681  fi
8682
8683
8684  # Check whether --enable-modules was given.
8685if test "${enable_modules+set}" = set; then :
8686  enableval=$enable_modules;
8687    if test "$enableval" = "none"; then
8688       module_default=no
8689       module_selection=none
8690    else
8691      for i in $enableval; do
8692        if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
8693        then
8694          module_selection=$i
8695        else
8696          i=`echo $i | sed 's/-/_/g'`
8697          eval "enable_$i=shared"
8698        fi
8699      done
8700    fi
8701
8702fi
8703
8704
8705  # Check whether --enable-mods-shared was given.
8706if test "${enable_mods_shared+set}" = set; then :
8707  enableval=$enable_mods_shared;
8708    for i in $enableval; do
8709      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
8710      then
8711        module_selection=$i
8712        module_default=shared
8713      else
8714        i=`echo $i | sed 's/-/_/g'`
8715    	eval "enable_$i=shared"
8716      fi
8717    done
8718
8719fi
8720
8721
8722  # Check whether --enable-mods-static was given.
8723if test "${enable_mods_static+set}" = set; then :
8724  enableval=$enable_mods_static;
8725    for i in $enableval; do
8726      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"; then
8727        module_selection=$i
8728        module_default=static
8729      else
8730        i=`echo $i | sed 's/-/_/g'`
8731    	eval "enable_$i=static"
8732      fi
8733    done
8734
8735fi
8736
8737
8738
8739
8740
8741
8742
8743  current_dir=aaa
8744  modpath_current=modules/aaa
8745  modpath_static=
8746  modpath_shared=
8747  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
8748    eval MOD_$var=
8749  done
8750  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
8751  > $modpath_current/modules.mk
8752
8753
8754
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_file" >&5
8756$as_echo_n "checking whether to enable mod_authn_file... " >&6; }
8757    # Check whether --enable-authn-file was given.
8758if test "${enable_authn_file+set}" = set; then :
8759  enableval=$enable_authn_file; force_authn_file=$enableval
8760else
8761  enable_authn_file=yes
8762fi
8763
8764    _apmod_extra_msg=""
8765        case "$enable_authn_file" in
8766    yes|static|shared)
8767      _apmod_required="yes"
8768      ;;
8769    *)
8770      case "$module_selection" in
8771      reallyall|all|most)
8772        _apmod_required="no"
8773        ;;
8774      *)
8775        _apmod_required="yes"
8776        ;;
8777      esac
8778  esac
8779  if test "$enable_authn_file" = "static"; then
8780    enable_authn_file=static
8781  elif test "$enable_authn_file" = "yes"; then
8782    enable_authn_file=$module_default
8783  elif test "$enable_authn_file" = "most"; then
8784    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
8785            "$module_selection" = "reallyall"
8786    then
8787      enable_authn_file=$module_default
8788    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
8789      enable_authn_file=no
8790    fi
8791    _apmod_extra_msg=" ($module_selection)"
8792  elif test "$enable_authn_file" = "maybe-all"; then
8793    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
8794    then
8795      enable_authn_file=$module_default
8796      _apmod_extra_msg=" ($module_selection)"
8797    else
8798      enable_authn_file=no
8799    fi
8800  elif test "$enable_authn_file" = "no" -a "$module_selection" = "reallyall" -a \
8801            "$force_authn_file" != "no" ; then
8802      enable_authn_file=$module_default
8803      _apmod_extra_msg=" ($module_selection)"
8804  fi
8805  if test "$enable_authn_file" != "no"; then
8806            :
8807  fi
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_file$_apmod_extra_msg" >&5
8809$as_echo "$enable_authn_file$_apmod_extra_msg" >&6; }
8810  if test "$enable_authn_file" != "no"; then
8811    case "$enable_authn_file" in
8812    static*)
8813      MODLIST="$MODLIST authn_file"
8814      if test "authn_file" = "so"; then
8815          sharedobjs=yes
8816      fi
8817      shared="";;
8818    *)
8819      enable_authn_file=`echo $enable_authn_file|sed 's/shared,*//'`
8820      sharedobjs=yes
8821      shared=yes
8822      DSO_MODULES="$DSO_MODULES authn_file"
8823      if test "yes" = "yes" ; then
8824        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_file"
8825      fi
8826      ;;
8827    esac
8828
8829
8830  if test -z ""; then
8831    objects="mod_authn_file.lo"
8832  else
8833    objects=""
8834  fi
8835
8836  if test -z "$module_standalone"; then
8837    if test -z "$shared"; then
8838      # The filename of a convenience library must have a "lib" prefix:
8839      libname="libmod_authn_file.la"
8840      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8841      modpath_static="$modpath_static $libname"
8842      cat >>$modpath_current/modules.mk<<EOF
8843$libname: $objects
8844	\$(MOD_LINK) $objects \$(MOD_AUTHN_FILE_LDADD)
8845EOF
8846      if test ! -z "\$(MOD_AUTHN_FILE_LDADD)"; then
8847
8848  if test "x$AP_LIBS" = "x"; then
8849    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_FILE_LDADD)\""
8850    AP_LIBS="\$(MOD_AUTHN_FILE_LDADD)"
8851  else
8852    apr_addto_bugger="\$(MOD_AUTHN_FILE_LDADD)"
8853    for i in $apr_addto_bugger; do
8854      apr_addto_duplicate="0"
8855      for j in $AP_LIBS; do
8856        if test "x$i" = "x$j"; then
8857          apr_addto_duplicate="1"
8858          break
8859        fi
8860      done
8861      if test $apr_addto_duplicate = "0"; then
8862        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
8863        AP_LIBS="$AP_LIBS $i"
8864      fi
8865    done
8866  fi
8867
8868      fi
8869    else
8870      apache_need_shared=yes
8871      libname="mod_authn_file.la"
8872      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8873      modpath_shared="$modpath_shared $libname"
8874      cat >>$modpath_current/modules.mk<<EOF
8875$libname: $shobjects
8876	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_FILE_LDADD)
8877EOF
8878    fi
8879  fi
8880
8881
8882  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_FILE_LDADD"
8883
8884
8885
8886  fi
8887
8888
8889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbm" >&5
8890$as_echo_n "checking whether to enable mod_authn_dbm... " >&6; }
8891    # Check whether --enable-authn-dbm was given.
8892if test "${enable_authn_dbm+set}" = set; then :
8893  enableval=$enable_authn_dbm; force_authn_dbm=$enableval
8894else
8895  enable_authn_dbm=most
8896fi
8897
8898    _apmod_extra_msg=""
8899        case "$enable_authn_dbm" in
8900    yes|static|shared)
8901      _apmod_required="yes"
8902      ;;
8903    *)
8904      case "$module_selection" in
8905      reallyall|all|most)
8906        _apmod_required="no"
8907        ;;
8908      *)
8909        _apmod_required="yes"
8910        ;;
8911      esac
8912  esac
8913  if test "$enable_authn_dbm" = "static"; then
8914    enable_authn_dbm=static
8915  elif test "$enable_authn_dbm" = "yes"; then
8916    enable_authn_dbm=$module_default
8917  elif test "$enable_authn_dbm" = "most"; then
8918    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
8919            "$module_selection" = "reallyall"
8920    then
8921      enable_authn_dbm=$module_default
8922    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
8923      enable_authn_dbm=no
8924    fi
8925    _apmod_extra_msg=" ($module_selection)"
8926  elif test "$enable_authn_dbm" = "maybe-all"; then
8927    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
8928    then
8929      enable_authn_dbm=$module_default
8930      _apmod_extra_msg=" ($module_selection)"
8931    else
8932      enable_authn_dbm=no
8933    fi
8934  elif test "$enable_authn_dbm" = "no" -a "$module_selection" = "reallyall" -a \
8935            "$force_authn_dbm" != "no" ; then
8936      enable_authn_dbm=$module_default
8937      _apmod_extra_msg=" ($module_selection)"
8938  fi
8939  if test "$enable_authn_dbm" != "no"; then
8940            :
8941  fi
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbm$_apmod_extra_msg" >&5
8943$as_echo "$enable_authn_dbm$_apmod_extra_msg" >&6; }
8944  if test "$enable_authn_dbm" != "no"; then
8945    case "$enable_authn_dbm" in
8946    static*)
8947      MODLIST="$MODLIST authn_dbm"
8948      if test "authn_dbm" = "so"; then
8949          sharedobjs=yes
8950      fi
8951      shared="";;
8952    *)
8953      enable_authn_dbm=`echo $enable_authn_dbm|sed 's/shared,*//'`
8954      sharedobjs=yes
8955      shared=yes
8956      DSO_MODULES="$DSO_MODULES authn_dbm"
8957      if test "most" = "yes" ; then
8958        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbm"
8959      fi
8960      ;;
8961    esac
8962
8963
8964  if test -z ""; then
8965    objects="mod_authn_dbm.lo"
8966  else
8967    objects=""
8968  fi
8969
8970  if test -z "$module_standalone"; then
8971    if test -z "$shared"; then
8972      # The filename of a convenience library must have a "lib" prefix:
8973      libname="libmod_authn_dbm.la"
8974      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8975      modpath_static="$modpath_static $libname"
8976      cat >>$modpath_current/modules.mk<<EOF
8977$libname: $objects
8978	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBM_LDADD)
8979EOF
8980      if test ! -z "\$(MOD_AUTHN_DBM_LDADD)"; then
8981
8982  if test "x$AP_LIBS" = "x"; then
8983    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBM_LDADD)\""
8984    AP_LIBS="\$(MOD_AUTHN_DBM_LDADD)"
8985  else
8986    apr_addto_bugger="\$(MOD_AUTHN_DBM_LDADD)"
8987    for i in $apr_addto_bugger; do
8988      apr_addto_duplicate="0"
8989      for j in $AP_LIBS; do
8990        if test "x$i" = "x$j"; then
8991          apr_addto_duplicate="1"
8992          break
8993        fi
8994      done
8995      if test $apr_addto_duplicate = "0"; then
8996        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
8997        AP_LIBS="$AP_LIBS $i"
8998      fi
8999    done
9000  fi
9001
9002      fi
9003    else
9004      apache_need_shared=yes
9005      libname="mod_authn_dbm.la"
9006      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9007      modpath_shared="$modpath_shared $libname"
9008      cat >>$modpath_current/modules.mk<<EOF
9009$libname: $shobjects
9010	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBM_LDADD)
9011EOF
9012    fi
9013  fi
9014
9015
9016  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBM_LDADD"
9017
9018
9019
9020  fi
9021
9022
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_anon" >&5
9024$as_echo_n "checking whether to enable mod_authn_anon... " >&6; }
9025    # Check whether --enable-authn-anon was given.
9026if test "${enable_authn_anon+set}" = set; then :
9027  enableval=$enable_authn_anon; force_authn_anon=$enableval
9028else
9029  enable_authn_anon=most
9030fi
9031
9032    _apmod_extra_msg=""
9033        case "$enable_authn_anon" in
9034    yes|static|shared)
9035      _apmod_required="yes"
9036      ;;
9037    *)
9038      case "$module_selection" in
9039      reallyall|all|most)
9040        _apmod_required="no"
9041        ;;
9042      *)
9043        _apmod_required="yes"
9044        ;;
9045      esac
9046  esac
9047  if test "$enable_authn_anon" = "static"; then
9048    enable_authn_anon=static
9049  elif test "$enable_authn_anon" = "yes"; then
9050    enable_authn_anon=$module_default
9051  elif test "$enable_authn_anon" = "most"; then
9052    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9053            "$module_selection" = "reallyall"
9054    then
9055      enable_authn_anon=$module_default
9056    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9057      enable_authn_anon=no
9058    fi
9059    _apmod_extra_msg=" ($module_selection)"
9060  elif test "$enable_authn_anon" = "maybe-all"; then
9061    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9062    then
9063      enable_authn_anon=$module_default
9064      _apmod_extra_msg=" ($module_selection)"
9065    else
9066      enable_authn_anon=no
9067    fi
9068  elif test "$enable_authn_anon" = "no" -a "$module_selection" = "reallyall" -a \
9069            "$force_authn_anon" != "no" ; then
9070      enable_authn_anon=$module_default
9071      _apmod_extra_msg=" ($module_selection)"
9072  fi
9073  if test "$enable_authn_anon" != "no"; then
9074            :
9075  fi
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_anon$_apmod_extra_msg" >&5
9077$as_echo "$enable_authn_anon$_apmod_extra_msg" >&6; }
9078  if test "$enable_authn_anon" != "no"; then
9079    case "$enable_authn_anon" in
9080    static*)
9081      MODLIST="$MODLIST authn_anon"
9082      if test "authn_anon" = "so"; then
9083          sharedobjs=yes
9084      fi
9085      shared="";;
9086    *)
9087      enable_authn_anon=`echo $enable_authn_anon|sed 's/shared,*//'`
9088      sharedobjs=yes
9089      shared=yes
9090      DSO_MODULES="$DSO_MODULES authn_anon"
9091      if test "most" = "yes" ; then
9092        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_anon"
9093      fi
9094      ;;
9095    esac
9096
9097
9098  if test -z ""; then
9099    objects="mod_authn_anon.lo"
9100  else
9101    objects=""
9102  fi
9103
9104  if test -z "$module_standalone"; then
9105    if test -z "$shared"; then
9106      # The filename of a convenience library must have a "lib" prefix:
9107      libname="libmod_authn_anon.la"
9108      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9109      modpath_static="$modpath_static $libname"
9110      cat >>$modpath_current/modules.mk<<EOF
9111$libname: $objects
9112	\$(MOD_LINK) $objects \$(MOD_AUTHN_ANON_LDADD)
9113EOF
9114      if test ! -z "\$(MOD_AUTHN_ANON_LDADD)"; then
9115
9116  if test "x$AP_LIBS" = "x"; then
9117    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_ANON_LDADD)\""
9118    AP_LIBS="\$(MOD_AUTHN_ANON_LDADD)"
9119  else
9120    apr_addto_bugger="\$(MOD_AUTHN_ANON_LDADD)"
9121    for i in $apr_addto_bugger; do
9122      apr_addto_duplicate="0"
9123      for j in $AP_LIBS; do
9124        if test "x$i" = "x$j"; then
9125          apr_addto_duplicate="1"
9126          break
9127        fi
9128      done
9129      if test $apr_addto_duplicate = "0"; then
9130        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9131        AP_LIBS="$AP_LIBS $i"
9132      fi
9133    done
9134  fi
9135
9136      fi
9137    else
9138      apache_need_shared=yes
9139      libname="mod_authn_anon.la"
9140      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9141      modpath_shared="$modpath_shared $libname"
9142      cat >>$modpath_current/modules.mk<<EOF
9143$libname: $shobjects
9144	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_ANON_LDADD)
9145EOF
9146    fi
9147  fi
9148
9149
9150  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_ANON_LDADD"
9151
9152
9153
9154  fi
9155
9156
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbd" >&5
9158$as_echo_n "checking whether to enable mod_authn_dbd... " >&6; }
9159    # Check whether --enable-authn-dbd was given.
9160if test "${enable_authn_dbd+set}" = set; then :
9161  enableval=$enable_authn_dbd; force_authn_dbd=$enableval
9162else
9163  enable_authn_dbd=most
9164fi
9165
9166    _apmod_extra_msg=""
9167        case "$enable_authn_dbd" in
9168    yes|static|shared)
9169      _apmod_required="yes"
9170      ;;
9171    *)
9172      case "$module_selection" in
9173      reallyall|all|most)
9174        _apmod_required="no"
9175        ;;
9176      *)
9177        _apmod_required="yes"
9178        ;;
9179      esac
9180  esac
9181  if test "$enable_authn_dbd" = "static"; then
9182    enable_authn_dbd=static
9183  elif test "$enable_authn_dbd" = "yes"; then
9184    enable_authn_dbd=$module_default
9185  elif test "$enable_authn_dbd" = "most"; then
9186    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9187            "$module_selection" = "reallyall"
9188    then
9189      enable_authn_dbd=$module_default
9190    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9191      enable_authn_dbd=no
9192    fi
9193    _apmod_extra_msg=" ($module_selection)"
9194  elif test "$enable_authn_dbd" = "maybe-all"; then
9195    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9196    then
9197      enable_authn_dbd=$module_default
9198      _apmod_extra_msg=" ($module_selection)"
9199    else
9200      enable_authn_dbd=no
9201    fi
9202  elif test "$enable_authn_dbd" = "no" -a "$module_selection" = "reallyall" -a \
9203            "$force_authn_dbd" != "no" ; then
9204      enable_authn_dbd=$module_default
9205      _apmod_extra_msg=" ($module_selection)"
9206  fi
9207  if test "$enable_authn_dbd" != "no"; then
9208            :
9209  fi
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbd$_apmod_extra_msg" >&5
9211$as_echo "$enable_authn_dbd$_apmod_extra_msg" >&6; }
9212  if test "$enable_authn_dbd" != "no"; then
9213    case "$enable_authn_dbd" in
9214    static*)
9215      MODLIST="$MODLIST authn_dbd"
9216      if test "authn_dbd" = "so"; then
9217          sharedobjs=yes
9218      fi
9219      shared="";;
9220    *)
9221      enable_authn_dbd=`echo $enable_authn_dbd|sed 's/shared,*//'`
9222      sharedobjs=yes
9223      shared=yes
9224      DSO_MODULES="$DSO_MODULES authn_dbd"
9225      if test "most" = "yes" ; then
9226        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbd"
9227      fi
9228      ;;
9229    esac
9230
9231
9232  if test -z ""; then
9233    objects="mod_authn_dbd.lo"
9234  else
9235    objects=""
9236  fi
9237
9238  if test -z "$module_standalone"; then
9239    if test -z "$shared"; then
9240      # The filename of a convenience library must have a "lib" prefix:
9241      libname="libmod_authn_dbd.la"
9242      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9243      modpath_static="$modpath_static $libname"
9244      cat >>$modpath_current/modules.mk<<EOF
9245$libname: $objects
9246	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBD_LDADD)
9247EOF
9248      if test ! -z "\$(MOD_AUTHN_DBD_LDADD)"; then
9249
9250  if test "x$AP_LIBS" = "x"; then
9251    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBD_LDADD)\""
9252    AP_LIBS="\$(MOD_AUTHN_DBD_LDADD)"
9253  else
9254    apr_addto_bugger="\$(MOD_AUTHN_DBD_LDADD)"
9255    for i in $apr_addto_bugger; do
9256      apr_addto_duplicate="0"
9257      for j in $AP_LIBS; do
9258        if test "x$i" = "x$j"; then
9259          apr_addto_duplicate="1"
9260          break
9261        fi
9262      done
9263      if test $apr_addto_duplicate = "0"; then
9264        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9265        AP_LIBS="$AP_LIBS $i"
9266      fi
9267    done
9268  fi
9269
9270      fi
9271    else
9272      apache_need_shared=yes
9273      libname="mod_authn_dbd.la"
9274      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9275      modpath_shared="$modpath_shared $libname"
9276      cat >>$modpath_current/modules.mk<<EOF
9277$libname: $shobjects
9278	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBD_LDADD)
9279EOF
9280    fi
9281  fi
9282
9283
9284  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBD_LDADD"
9285
9286
9287
9288  fi
9289
9290
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_socache" >&5
9292$as_echo_n "checking whether to enable mod_authn_socache... " >&6; }
9293    # Check whether --enable-authn-socache was given.
9294if test "${enable_authn_socache+set}" = set; then :
9295  enableval=$enable_authn_socache; force_authn_socache=$enableval
9296else
9297  enable_authn_socache=most
9298fi
9299
9300    _apmod_extra_msg=""
9301        case "$enable_authn_socache" in
9302    yes|static|shared)
9303      _apmod_required="yes"
9304      ;;
9305    *)
9306      case "$module_selection" in
9307      reallyall|all|most)
9308        _apmod_required="no"
9309        ;;
9310      *)
9311        _apmod_required="yes"
9312        ;;
9313      esac
9314  esac
9315  if test "$enable_authn_socache" = "static"; then
9316    enable_authn_socache=static
9317  elif test "$enable_authn_socache" = "yes"; then
9318    enable_authn_socache=$module_default
9319  elif test "$enable_authn_socache" = "most"; then
9320    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9321            "$module_selection" = "reallyall"
9322    then
9323      enable_authn_socache=$module_default
9324    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9325      enable_authn_socache=no
9326    fi
9327    _apmod_extra_msg=" ($module_selection)"
9328  elif test "$enable_authn_socache" = "maybe-all"; then
9329    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9330    then
9331      enable_authn_socache=$module_default
9332      _apmod_extra_msg=" ($module_selection)"
9333    else
9334      enable_authn_socache=no
9335    fi
9336  elif test "$enable_authn_socache" = "no" -a "$module_selection" = "reallyall" -a \
9337            "$force_authn_socache" != "no" ; then
9338      enable_authn_socache=$module_default
9339      _apmod_extra_msg=" ($module_selection)"
9340  fi
9341  if test "$enable_authn_socache" != "no"; then
9342            :
9343  fi
9344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_socache$_apmod_extra_msg" >&5
9345$as_echo "$enable_authn_socache$_apmod_extra_msg" >&6; }
9346  if test "$enable_authn_socache" != "no"; then
9347    case "$enable_authn_socache" in
9348    static*)
9349      MODLIST="$MODLIST authn_socache"
9350      if test "authn_socache" = "so"; then
9351          sharedobjs=yes
9352      fi
9353      shared="";;
9354    *)
9355      enable_authn_socache=`echo $enable_authn_socache|sed 's/shared,*//'`
9356      sharedobjs=yes
9357      shared=yes
9358      DSO_MODULES="$DSO_MODULES authn_socache"
9359      if test "most" = "yes" ; then
9360        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_socache"
9361      fi
9362      ;;
9363    esac
9364
9365
9366  if test -z ""; then
9367    objects="mod_authn_socache.lo"
9368  else
9369    objects=""
9370  fi
9371
9372  if test -z "$module_standalone"; then
9373    if test -z "$shared"; then
9374      # The filename of a convenience library must have a "lib" prefix:
9375      libname="libmod_authn_socache.la"
9376      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9377      modpath_static="$modpath_static $libname"
9378      cat >>$modpath_current/modules.mk<<EOF
9379$libname: $objects
9380	\$(MOD_LINK) $objects \$(MOD_AUTHN_SOCACHE_LDADD)
9381EOF
9382      if test ! -z "\$(MOD_AUTHN_SOCACHE_LDADD)"; then
9383
9384  if test "x$AP_LIBS" = "x"; then
9385    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_SOCACHE_LDADD)\""
9386    AP_LIBS="\$(MOD_AUTHN_SOCACHE_LDADD)"
9387  else
9388    apr_addto_bugger="\$(MOD_AUTHN_SOCACHE_LDADD)"
9389    for i in $apr_addto_bugger; do
9390      apr_addto_duplicate="0"
9391      for j in $AP_LIBS; do
9392        if test "x$i" = "x$j"; then
9393          apr_addto_duplicate="1"
9394          break
9395        fi
9396      done
9397      if test $apr_addto_duplicate = "0"; then
9398        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9399        AP_LIBS="$AP_LIBS $i"
9400      fi
9401    done
9402  fi
9403
9404      fi
9405    else
9406      apache_need_shared=yes
9407      libname="mod_authn_socache.la"
9408      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9409      modpath_shared="$modpath_shared $libname"
9410      cat >>$modpath_current/modules.mk<<EOF
9411$libname: $shobjects
9412	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_SOCACHE_LDADD)
9413EOF
9414    fi
9415  fi
9416
9417
9418  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_SOCACHE_LDADD"
9419
9420
9421
9422  fi
9423
9424
9425
9426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_core" >&5
9427$as_echo_n "checking whether to enable mod_authn_core... " >&6; }
9428    # Check whether --enable-authn-core was given.
9429if test "${enable_authn_core+set}" = set; then :
9430  enableval=$enable_authn_core; force_authn_core=$enableval
9431else
9432  enable_authn_core=yes
9433fi
9434
9435    _apmod_extra_msg=""
9436        case "$enable_authn_core" in
9437    yes|static|shared)
9438      _apmod_required="yes"
9439      ;;
9440    *)
9441      case "$module_selection" in
9442      reallyall|all|most)
9443        _apmod_required="no"
9444        ;;
9445      *)
9446        _apmod_required="yes"
9447        ;;
9448      esac
9449  esac
9450  if test "$enable_authn_core" = "static"; then
9451    enable_authn_core=static
9452  elif test "$enable_authn_core" = "yes"; then
9453    enable_authn_core=$module_default
9454  elif test "$enable_authn_core" = "most"; then
9455    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9456            "$module_selection" = "reallyall"
9457    then
9458      enable_authn_core=$module_default
9459    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9460      enable_authn_core=no
9461    fi
9462    _apmod_extra_msg=" ($module_selection)"
9463  elif test "$enable_authn_core" = "maybe-all"; then
9464    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9465    then
9466      enable_authn_core=$module_default
9467      _apmod_extra_msg=" ($module_selection)"
9468    else
9469      enable_authn_core=no
9470    fi
9471  elif test "$enable_authn_core" = "no" -a "$module_selection" = "reallyall" -a \
9472            "$force_authn_core" != "no" ; then
9473      enable_authn_core=$module_default
9474      _apmod_extra_msg=" ($module_selection)"
9475  fi
9476  if test "$enable_authn_core" != "no"; then
9477            :
9478  fi
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_core$_apmod_extra_msg" >&5
9480$as_echo "$enable_authn_core$_apmod_extra_msg" >&6; }
9481  if test "$enable_authn_core" != "no"; then
9482    case "$enable_authn_core" in
9483    static*)
9484      MODLIST="$MODLIST authn_core"
9485      if test "authn_core" = "so"; then
9486          sharedobjs=yes
9487      fi
9488      shared="";;
9489    *)
9490      enable_authn_core=`echo $enable_authn_core|sed 's/shared,*//'`
9491      sharedobjs=yes
9492      shared=yes
9493      DSO_MODULES="$DSO_MODULES authn_core"
9494      if test "yes" = "yes" ; then
9495        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_core"
9496      fi
9497      ;;
9498    esac
9499
9500
9501  if test -z ""; then
9502    objects="mod_authn_core.lo"
9503  else
9504    objects=""
9505  fi
9506
9507  if test -z "$module_standalone"; then
9508    if test -z "$shared"; then
9509      # The filename of a convenience library must have a "lib" prefix:
9510      libname="libmod_authn_core.la"
9511      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9512      modpath_static="$modpath_static $libname"
9513      cat >>$modpath_current/modules.mk<<EOF
9514$libname: $objects
9515	\$(MOD_LINK) $objects \$(MOD_AUTHN_CORE_LDADD)
9516EOF
9517      if test ! -z "\$(MOD_AUTHN_CORE_LDADD)"; then
9518
9519  if test "x$AP_LIBS" = "x"; then
9520    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_CORE_LDADD)\""
9521    AP_LIBS="\$(MOD_AUTHN_CORE_LDADD)"
9522  else
9523    apr_addto_bugger="\$(MOD_AUTHN_CORE_LDADD)"
9524    for i in $apr_addto_bugger; do
9525      apr_addto_duplicate="0"
9526      for j in $AP_LIBS; do
9527        if test "x$i" = "x$j"; then
9528          apr_addto_duplicate="1"
9529          break
9530        fi
9531      done
9532      if test $apr_addto_duplicate = "0"; then
9533        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9534        AP_LIBS="$AP_LIBS $i"
9535      fi
9536    done
9537  fi
9538
9539      fi
9540    else
9541      apache_need_shared=yes
9542      libname="mod_authn_core.la"
9543      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9544      modpath_shared="$modpath_shared $libname"
9545      cat >>$modpath_current/modules.mk<<EOF
9546$libname: $shobjects
9547	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_CORE_LDADD)
9548EOF
9549    fi
9550  fi
9551
9552
9553  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_CORE_LDADD"
9554
9555
9556
9557  fi
9558
9559
9560
9561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_host" >&5
9562$as_echo_n "checking whether to enable mod_authz_host... " >&6; }
9563    # Check whether --enable-authz-host was given.
9564if test "${enable_authz_host+set}" = set; then :
9565  enableval=$enable_authz_host; force_authz_host=$enableval
9566else
9567  enable_authz_host=yes
9568fi
9569
9570    _apmod_extra_msg=""
9571        case "$enable_authz_host" in
9572    yes|static|shared)
9573      _apmod_required="yes"
9574      ;;
9575    *)
9576      case "$module_selection" in
9577      reallyall|all|most)
9578        _apmod_required="no"
9579        ;;
9580      *)
9581        _apmod_required="yes"
9582        ;;
9583      esac
9584  esac
9585  if test "$enable_authz_host" = "static"; then
9586    enable_authz_host=static
9587  elif test "$enable_authz_host" = "yes"; then
9588    enable_authz_host=$module_default
9589  elif test "$enable_authz_host" = "most"; then
9590    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9591            "$module_selection" = "reallyall"
9592    then
9593      enable_authz_host=$module_default
9594    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9595      enable_authz_host=no
9596    fi
9597    _apmod_extra_msg=" ($module_selection)"
9598  elif test "$enable_authz_host" = "maybe-all"; then
9599    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9600    then
9601      enable_authz_host=$module_default
9602      _apmod_extra_msg=" ($module_selection)"
9603    else
9604      enable_authz_host=no
9605    fi
9606  elif test "$enable_authz_host" = "no" -a "$module_selection" = "reallyall" -a \
9607            "$force_authz_host" != "no" ; then
9608      enable_authz_host=$module_default
9609      _apmod_extra_msg=" ($module_selection)"
9610  fi
9611  if test "$enable_authz_host" != "no"; then
9612            :
9613  fi
9614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_host$_apmod_extra_msg" >&5
9615$as_echo "$enable_authz_host$_apmod_extra_msg" >&6; }
9616  if test "$enable_authz_host" != "no"; then
9617    case "$enable_authz_host" in
9618    static*)
9619      MODLIST="$MODLIST authz_host"
9620      if test "authz_host" = "so"; then
9621          sharedobjs=yes
9622      fi
9623      shared="";;
9624    *)
9625      enable_authz_host=`echo $enable_authz_host|sed 's/shared,*//'`
9626      sharedobjs=yes
9627      shared=yes
9628      DSO_MODULES="$DSO_MODULES authz_host"
9629      if test "yes" = "yes" ; then
9630        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_host"
9631      fi
9632      ;;
9633    esac
9634
9635
9636  if test -z ""; then
9637    objects="mod_authz_host.lo"
9638  else
9639    objects=""
9640  fi
9641
9642  if test -z "$module_standalone"; then
9643    if test -z "$shared"; then
9644      # The filename of a convenience library must have a "lib" prefix:
9645      libname="libmod_authz_host.la"
9646      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9647      modpath_static="$modpath_static $libname"
9648      cat >>$modpath_current/modules.mk<<EOF
9649$libname: $objects
9650	\$(MOD_LINK) $objects \$(MOD_AUTHZ_HOST_LDADD)
9651EOF
9652      if test ! -z "\$(MOD_AUTHZ_HOST_LDADD)"; then
9653
9654  if test "x$AP_LIBS" = "x"; then
9655    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_HOST_LDADD)\""
9656    AP_LIBS="\$(MOD_AUTHZ_HOST_LDADD)"
9657  else
9658    apr_addto_bugger="\$(MOD_AUTHZ_HOST_LDADD)"
9659    for i in $apr_addto_bugger; do
9660      apr_addto_duplicate="0"
9661      for j in $AP_LIBS; do
9662        if test "x$i" = "x$j"; then
9663          apr_addto_duplicate="1"
9664          break
9665        fi
9666      done
9667      if test $apr_addto_duplicate = "0"; then
9668        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9669        AP_LIBS="$AP_LIBS $i"
9670      fi
9671    done
9672  fi
9673
9674      fi
9675    else
9676      apache_need_shared=yes
9677      libname="mod_authz_host.la"
9678      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9679      modpath_shared="$modpath_shared $libname"
9680      cat >>$modpath_current/modules.mk<<EOF
9681$libname: $shobjects
9682	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_HOST_LDADD)
9683EOF
9684    fi
9685  fi
9686
9687
9688  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_HOST_LDADD"
9689
9690
9691
9692  fi
9693
9694
9695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_groupfile" >&5
9696$as_echo_n "checking whether to enable mod_authz_groupfile... " >&6; }
9697    # Check whether --enable-authz-groupfile was given.
9698if test "${enable_authz_groupfile+set}" = set; then :
9699  enableval=$enable_authz_groupfile; force_authz_groupfile=$enableval
9700else
9701  enable_authz_groupfile=yes
9702fi
9703
9704    _apmod_extra_msg=""
9705        case "$enable_authz_groupfile" in
9706    yes|static|shared)
9707      _apmod_required="yes"
9708      ;;
9709    *)
9710      case "$module_selection" in
9711      reallyall|all|most)
9712        _apmod_required="no"
9713        ;;
9714      *)
9715        _apmod_required="yes"
9716        ;;
9717      esac
9718  esac
9719  if test "$enable_authz_groupfile" = "static"; then
9720    enable_authz_groupfile=static
9721  elif test "$enable_authz_groupfile" = "yes"; then
9722    enable_authz_groupfile=$module_default
9723  elif test "$enable_authz_groupfile" = "most"; then
9724    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9725            "$module_selection" = "reallyall"
9726    then
9727      enable_authz_groupfile=$module_default
9728    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9729      enable_authz_groupfile=no
9730    fi
9731    _apmod_extra_msg=" ($module_selection)"
9732  elif test "$enable_authz_groupfile" = "maybe-all"; then
9733    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9734    then
9735      enable_authz_groupfile=$module_default
9736      _apmod_extra_msg=" ($module_selection)"
9737    else
9738      enable_authz_groupfile=no
9739    fi
9740  elif test "$enable_authz_groupfile" = "no" -a "$module_selection" = "reallyall" -a \
9741            "$force_authz_groupfile" != "no" ; then
9742      enable_authz_groupfile=$module_default
9743      _apmod_extra_msg=" ($module_selection)"
9744  fi
9745  if test "$enable_authz_groupfile" != "no"; then
9746            :
9747  fi
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_groupfile$_apmod_extra_msg" >&5
9749$as_echo "$enable_authz_groupfile$_apmod_extra_msg" >&6; }
9750  if test "$enable_authz_groupfile" != "no"; then
9751    case "$enable_authz_groupfile" in
9752    static*)
9753      MODLIST="$MODLIST authz_groupfile"
9754      if test "authz_groupfile" = "so"; then
9755          sharedobjs=yes
9756      fi
9757      shared="";;
9758    *)
9759      enable_authz_groupfile=`echo $enable_authz_groupfile|sed 's/shared,*//'`
9760      sharedobjs=yes
9761      shared=yes
9762      DSO_MODULES="$DSO_MODULES authz_groupfile"
9763      if test "yes" = "yes" ; then
9764        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_groupfile"
9765      fi
9766      ;;
9767    esac
9768
9769
9770  if test -z ""; then
9771    objects="mod_authz_groupfile.lo"
9772  else
9773    objects=""
9774  fi
9775
9776  if test -z "$module_standalone"; then
9777    if test -z "$shared"; then
9778      # The filename of a convenience library must have a "lib" prefix:
9779      libname="libmod_authz_groupfile.la"
9780      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9781      modpath_static="$modpath_static $libname"
9782      cat >>$modpath_current/modules.mk<<EOF
9783$libname: $objects
9784	\$(MOD_LINK) $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
9785EOF
9786      if test ! -z "\$(MOD_AUTHZ_GROUPFILE_LDADD)"; then
9787
9788  if test "x$AP_LIBS" = "x"; then
9789    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_GROUPFILE_LDADD)\""
9790    AP_LIBS="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
9791  else
9792    apr_addto_bugger="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
9793    for i in $apr_addto_bugger; do
9794      apr_addto_duplicate="0"
9795      for j in $AP_LIBS; do
9796        if test "x$i" = "x$j"; then
9797          apr_addto_duplicate="1"
9798          break
9799        fi
9800      done
9801      if test $apr_addto_duplicate = "0"; then
9802        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9803        AP_LIBS="$AP_LIBS $i"
9804      fi
9805    done
9806  fi
9807
9808      fi
9809    else
9810      apache_need_shared=yes
9811      libname="mod_authz_groupfile.la"
9812      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9813      modpath_shared="$modpath_shared $libname"
9814      cat >>$modpath_current/modules.mk<<EOF
9815$libname: $shobjects
9816	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
9817EOF
9818    fi
9819  fi
9820
9821
9822  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_GROUPFILE_LDADD"
9823
9824
9825
9826  fi
9827
9828
9829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_user" >&5
9830$as_echo_n "checking whether to enable mod_authz_user... " >&6; }
9831    # Check whether --enable-authz-user was given.
9832if test "${enable_authz_user+set}" = set; then :
9833  enableval=$enable_authz_user; force_authz_user=$enableval
9834else
9835  enable_authz_user=yes
9836fi
9837
9838    _apmod_extra_msg=""
9839        case "$enable_authz_user" in
9840    yes|static|shared)
9841      _apmod_required="yes"
9842      ;;
9843    *)
9844      case "$module_selection" in
9845      reallyall|all|most)
9846        _apmod_required="no"
9847        ;;
9848      *)
9849        _apmod_required="yes"
9850        ;;
9851      esac
9852  esac
9853  if test "$enable_authz_user" = "static"; then
9854    enable_authz_user=static
9855  elif test "$enable_authz_user" = "yes"; then
9856    enable_authz_user=$module_default
9857  elif test "$enable_authz_user" = "most"; then
9858    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9859            "$module_selection" = "reallyall"
9860    then
9861      enable_authz_user=$module_default
9862    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9863      enable_authz_user=no
9864    fi
9865    _apmod_extra_msg=" ($module_selection)"
9866  elif test "$enable_authz_user" = "maybe-all"; then
9867    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9868    then
9869      enable_authz_user=$module_default
9870      _apmod_extra_msg=" ($module_selection)"
9871    else
9872      enable_authz_user=no
9873    fi
9874  elif test "$enable_authz_user" = "no" -a "$module_selection" = "reallyall" -a \
9875            "$force_authz_user" != "no" ; then
9876      enable_authz_user=$module_default
9877      _apmod_extra_msg=" ($module_selection)"
9878  fi
9879  if test "$enable_authz_user" != "no"; then
9880            :
9881  fi
9882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_user$_apmod_extra_msg" >&5
9883$as_echo "$enable_authz_user$_apmod_extra_msg" >&6; }
9884  if test "$enable_authz_user" != "no"; then
9885    case "$enable_authz_user" in
9886    static*)
9887      MODLIST="$MODLIST authz_user"
9888      if test "authz_user" = "so"; then
9889          sharedobjs=yes
9890      fi
9891      shared="";;
9892    *)
9893      enable_authz_user=`echo $enable_authz_user|sed 's/shared,*//'`
9894      sharedobjs=yes
9895      shared=yes
9896      DSO_MODULES="$DSO_MODULES authz_user"
9897      if test "yes" = "yes" ; then
9898        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_user"
9899      fi
9900      ;;
9901    esac
9902
9903
9904  if test -z ""; then
9905    objects="mod_authz_user.lo"
9906  else
9907    objects=""
9908  fi
9909
9910  if test -z "$module_standalone"; then
9911    if test -z "$shared"; then
9912      # The filename of a convenience library must have a "lib" prefix:
9913      libname="libmod_authz_user.la"
9914      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9915      modpath_static="$modpath_static $libname"
9916      cat >>$modpath_current/modules.mk<<EOF
9917$libname: $objects
9918	\$(MOD_LINK) $objects \$(MOD_AUTHZ_USER_LDADD)
9919EOF
9920      if test ! -z "\$(MOD_AUTHZ_USER_LDADD)"; then
9921
9922  if test "x$AP_LIBS" = "x"; then
9923    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_USER_LDADD)\""
9924    AP_LIBS="\$(MOD_AUTHZ_USER_LDADD)"
9925  else
9926    apr_addto_bugger="\$(MOD_AUTHZ_USER_LDADD)"
9927    for i in $apr_addto_bugger; do
9928      apr_addto_duplicate="0"
9929      for j in $AP_LIBS; do
9930        if test "x$i" = "x$j"; then
9931          apr_addto_duplicate="1"
9932          break
9933        fi
9934      done
9935      if test $apr_addto_duplicate = "0"; then
9936        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9937        AP_LIBS="$AP_LIBS $i"
9938      fi
9939    done
9940  fi
9941
9942      fi
9943    else
9944      apache_need_shared=yes
9945      libname="mod_authz_user.la"
9946      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9947      modpath_shared="$modpath_shared $libname"
9948      cat >>$modpath_current/modules.mk<<EOF
9949$libname: $shobjects
9950	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_USER_LDADD)
9951EOF
9952    fi
9953  fi
9954
9955
9956  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_USER_LDADD"
9957
9958
9959
9960  fi
9961
9962
9963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbm" >&5
9964$as_echo_n "checking whether to enable mod_authz_dbm... " >&6; }
9965    # Check whether --enable-authz-dbm was given.
9966if test "${enable_authz_dbm+set}" = set; then :
9967  enableval=$enable_authz_dbm; force_authz_dbm=$enableval
9968else
9969  enable_authz_dbm=most
9970fi
9971
9972    _apmod_extra_msg=""
9973        case "$enable_authz_dbm" in
9974    yes|static|shared)
9975      _apmod_required="yes"
9976      ;;
9977    *)
9978      case "$module_selection" in
9979      reallyall|all|most)
9980        _apmod_required="no"
9981        ;;
9982      *)
9983        _apmod_required="yes"
9984        ;;
9985      esac
9986  esac
9987  if test "$enable_authz_dbm" = "static"; then
9988    enable_authz_dbm=static
9989  elif test "$enable_authz_dbm" = "yes"; then
9990    enable_authz_dbm=$module_default
9991  elif test "$enable_authz_dbm" = "most"; then
9992    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9993            "$module_selection" = "reallyall"
9994    then
9995      enable_authz_dbm=$module_default
9996    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9997      enable_authz_dbm=no
9998    fi
9999    _apmod_extra_msg=" ($module_selection)"
10000  elif test "$enable_authz_dbm" = "maybe-all"; then
10001    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10002    then
10003      enable_authz_dbm=$module_default
10004      _apmod_extra_msg=" ($module_selection)"
10005    else
10006      enable_authz_dbm=no
10007    fi
10008  elif test "$enable_authz_dbm" = "no" -a "$module_selection" = "reallyall" -a \
10009            "$force_authz_dbm" != "no" ; then
10010      enable_authz_dbm=$module_default
10011      _apmod_extra_msg=" ($module_selection)"
10012  fi
10013  if test "$enable_authz_dbm" != "no"; then
10014            :
10015  fi
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbm$_apmod_extra_msg" >&5
10017$as_echo "$enable_authz_dbm$_apmod_extra_msg" >&6; }
10018  if test "$enable_authz_dbm" != "no"; then
10019    case "$enable_authz_dbm" in
10020    static*)
10021      MODLIST="$MODLIST authz_dbm"
10022      if test "authz_dbm" = "so"; then
10023          sharedobjs=yes
10024      fi
10025      shared="";;
10026    *)
10027      enable_authz_dbm=`echo $enable_authz_dbm|sed 's/shared,*//'`
10028      sharedobjs=yes
10029      shared=yes
10030      DSO_MODULES="$DSO_MODULES authz_dbm"
10031      if test "most" = "yes" ; then
10032        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbm"
10033      fi
10034      ;;
10035    esac
10036
10037
10038  if test -z ""; then
10039    objects="mod_authz_dbm.lo"
10040  else
10041    objects=""
10042  fi
10043
10044  if test -z "$module_standalone"; then
10045    if test -z "$shared"; then
10046      # The filename of a convenience library must have a "lib" prefix:
10047      libname="libmod_authz_dbm.la"
10048      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10049      modpath_static="$modpath_static $libname"
10050      cat >>$modpath_current/modules.mk<<EOF
10051$libname: $objects
10052	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBM_LDADD)
10053EOF
10054      if test ! -z "\$(MOD_AUTHZ_DBM_LDADD)"; then
10055
10056  if test "x$AP_LIBS" = "x"; then
10057    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBM_LDADD)\""
10058    AP_LIBS="\$(MOD_AUTHZ_DBM_LDADD)"
10059  else
10060    apr_addto_bugger="\$(MOD_AUTHZ_DBM_LDADD)"
10061    for i in $apr_addto_bugger; do
10062      apr_addto_duplicate="0"
10063      for j in $AP_LIBS; do
10064        if test "x$i" = "x$j"; then
10065          apr_addto_duplicate="1"
10066          break
10067        fi
10068      done
10069      if test $apr_addto_duplicate = "0"; then
10070        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10071        AP_LIBS="$AP_LIBS $i"
10072      fi
10073    done
10074  fi
10075
10076      fi
10077    else
10078      apache_need_shared=yes
10079      libname="mod_authz_dbm.la"
10080      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10081      modpath_shared="$modpath_shared $libname"
10082      cat >>$modpath_current/modules.mk<<EOF
10083$libname: $shobjects
10084	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBM_LDADD)
10085EOF
10086    fi
10087  fi
10088
10089
10090  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBM_LDADD"
10091
10092
10093
10094  fi
10095
10096
10097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_owner" >&5
10098$as_echo_n "checking whether to enable mod_authz_owner... " >&6; }
10099    # Check whether --enable-authz-owner was given.
10100if test "${enable_authz_owner+set}" = set; then :
10101  enableval=$enable_authz_owner; force_authz_owner=$enableval
10102else
10103  enable_authz_owner=most
10104fi
10105
10106    _apmod_extra_msg=""
10107        case "$enable_authz_owner" in
10108    yes|static|shared)
10109      _apmod_required="yes"
10110      ;;
10111    *)
10112      case "$module_selection" in
10113      reallyall|all|most)
10114        _apmod_required="no"
10115        ;;
10116      *)
10117        _apmod_required="yes"
10118        ;;
10119      esac
10120  esac
10121  if test "$enable_authz_owner" = "static"; then
10122    enable_authz_owner=static
10123  elif test "$enable_authz_owner" = "yes"; then
10124    enable_authz_owner=$module_default
10125  elif test "$enable_authz_owner" = "most"; then
10126    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10127            "$module_selection" = "reallyall"
10128    then
10129      enable_authz_owner=$module_default
10130    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10131      enable_authz_owner=no
10132    fi
10133    _apmod_extra_msg=" ($module_selection)"
10134  elif test "$enable_authz_owner" = "maybe-all"; then
10135    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10136    then
10137      enable_authz_owner=$module_default
10138      _apmod_extra_msg=" ($module_selection)"
10139    else
10140      enable_authz_owner=no
10141    fi
10142  elif test "$enable_authz_owner" = "no" -a "$module_selection" = "reallyall" -a \
10143            "$force_authz_owner" != "no" ; then
10144      enable_authz_owner=$module_default
10145      _apmod_extra_msg=" ($module_selection)"
10146  fi
10147  if test "$enable_authz_owner" != "no"; then
10148            :
10149  fi
10150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_owner$_apmod_extra_msg" >&5
10151$as_echo "$enable_authz_owner$_apmod_extra_msg" >&6; }
10152  if test "$enable_authz_owner" != "no"; then
10153    case "$enable_authz_owner" in
10154    static*)
10155      MODLIST="$MODLIST authz_owner"
10156      if test "authz_owner" = "so"; then
10157          sharedobjs=yes
10158      fi
10159      shared="";;
10160    *)
10161      enable_authz_owner=`echo $enable_authz_owner|sed 's/shared,*//'`
10162      sharedobjs=yes
10163      shared=yes
10164      DSO_MODULES="$DSO_MODULES authz_owner"
10165      if test "most" = "yes" ; then
10166        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_owner"
10167      fi
10168      ;;
10169    esac
10170
10171
10172  if test -z ""; then
10173    objects="mod_authz_owner.lo"
10174  else
10175    objects=""
10176  fi
10177
10178  if test -z "$module_standalone"; then
10179    if test -z "$shared"; then
10180      # The filename of a convenience library must have a "lib" prefix:
10181      libname="libmod_authz_owner.la"
10182      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10183      modpath_static="$modpath_static $libname"
10184      cat >>$modpath_current/modules.mk<<EOF
10185$libname: $objects
10186	\$(MOD_LINK) $objects \$(MOD_AUTHZ_OWNER_LDADD)
10187EOF
10188      if test ! -z "\$(MOD_AUTHZ_OWNER_LDADD)"; then
10189
10190  if test "x$AP_LIBS" = "x"; then
10191    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_OWNER_LDADD)\""
10192    AP_LIBS="\$(MOD_AUTHZ_OWNER_LDADD)"
10193  else
10194    apr_addto_bugger="\$(MOD_AUTHZ_OWNER_LDADD)"
10195    for i in $apr_addto_bugger; do
10196      apr_addto_duplicate="0"
10197      for j in $AP_LIBS; do
10198        if test "x$i" = "x$j"; then
10199          apr_addto_duplicate="1"
10200          break
10201        fi
10202      done
10203      if test $apr_addto_duplicate = "0"; then
10204        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10205        AP_LIBS="$AP_LIBS $i"
10206      fi
10207    done
10208  fi
10209
10210      fi
10211    else
10212      apache_need_shared=yes
10213      libname="mod_authz_owner.la"
10214      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10215      modpath_shared="$modpath_shared $libname"
10216      cat >>$modpath_current/modules.mk<<EOF
10217$libname: $shobjects
10218	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_OWNER_LDADD)
10219EOF
10220    fi
10221  fi
10222
10223
10224  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_OWNER_LDADD"
10225
10226
10227
10228  fi
10229
10230
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbd" >&5
10232$as_echo_n "checking whether to enable mod_authz_dbd... " >&6; }
10233    # Check whether --enable-authz-dbd was given.
10234if test "${enable_authz_dbd+set}" = set; then :
10235  enableval=$enable_authz_dbd; force_authz_dbd=$enableval
10236else
10237  enable_authz_dbd=most
10238fi
10239
10240    _apmod_extra_msg=""
10241        case "$enable_authz_dbd" in
10242    yes|static|shared)
10243      _apmod_required="yes"
10244      ;;
10245    *)
10246      case "$module_selection" in
10247      reallyall|all|most)
10248        _apmod_required="no"
10249        ;;
10250      *)
10251        _apmod_required="yes"
10252        ;;
10253      esac
10254  esac
10255  if test "$enable_authz_dbd" = "static"; then
10256    enable_authz_dbd=static
10257  elif test "$enable_authz_dbd" = "yes"; then
10258    enable_authz_dbd=$module_default
10259  elif test "$enable_authz_dbd" = "most"; then
10260    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10261            "$module_selection" = "reallyall"
10262    then
10263      enable_authz_dbd=$module_default
10264    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10265      enable_authz_dbd=no
10266    fi
10267    _apmod_extra_msg=" ($module_selection)"
10268  elif test "$enable_authz_dbd" = "maybe-all"; then
10269    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10270    then
10271      enable_authz_dbd=$module_default
10272      _apmod_extra_msg=" ($module_selection)"
10273    else
10274      enable_authz_dbd=no
10275    fi
10276  elif test "$enable_authz_dbd" = "no" -a "$module_selection" = "reallyall" -a \
10277            "$force_authz_dbd" != "no" ; then
10278      enable_authz_dbd=$module_default
10279      _apmod_extra_msg=" ($module_selection)"
10280  fi
10281  if test "$enable_authz_dbd" != "no"; then
10282            :
10283  fi
10284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbd$_apmod_extra_msg" >&5
10285$as_echo "$enable_authz_dbd$_apmod_extra_msg" >&6; }
10286  if test "$enable_authz_dbd" != "no"; then
10287    case "$enable_authz_dbd" in
10288    static*)
10289      MODLIST="$MODLIST authz_dbd"
10290      if test "authz_dbd" = "so"; then
10291          sharedobjs=yes
10292      fi
10293      shared="";;
10294    *)
10295      enable_authz_dbd=`echo $enable_authz_dbd|sed 's/shared,*//'`
10296      sharedobjs=yes
10297      shared=yes
10298      DSO_MODULES="$DSO_MODULES authz_dbd"
10299      if test "most" = "yes" ; then
10300        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbd"
10301      fi
10302      ;;
10303    esac
10304
10305
10306  if test -z ""; then
10307    objects="mod_authz_dbd.lo"
10308  else
10309    objects=""
10310  fi
10311
10312  if test -z "$module_standalone"; then
10313    if test -z "$shared"; then
10314      # The filename of a convenience library must have a "lib" prefix:
10315      libname="libmod_authz_dbd.la"
10316      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10317      modpath_static="$modpath_static $libname"
10318      cat >>$modpath_current/modules.mk<<EOF
10319$libname: $objects
10320	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBD_LDADD)
10321EOF
10322      if test ! -z "\$(MOD_AUTHZ_DBD_LDADD)"; then
10323
10324  if test "x$AP_LIBS" = "x"; then
10325    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBD_LDADD)\""
10326    AP_LIBS="\$(MOD_AUTHZ_DBD_LDADD)"
10327  else
10328    apr_addto_bugger="\$(MOD_AUTHZ_DBD_LDADD)"
10329    for i in $apr_addto_bugger; do
10330      apr_addto_duplicate="0"
10331      for j in $AP_LIBS; do
10332        if test "x$i" = "x$j"; then
10333          apr_addto_duplicate="1"
10334          break
10335        fi
10336      done
10337      if test $apr_addto_duplicate = "0"; then
10338        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10339        AP_LIBS="$AP_LIBS $i"
10340      fi
10341    done
10342  fi
10343
10344      fi
10345    else
10346      apache_need_shared=yes
10347      libname="mod_authz_dbd.la"
10348      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10349      modpath_shared="$modpath_shared $libname"
10350      cat >>$modpath_current/modules.mk<<EOF
10351$libname: $shobjects
10352	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBD_LDADD)
10353EOF
10354    fi
10355  fi
10356
10357
10358  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBD_LDADD"
10359
10360
10361
10362  fi
10363
10364
10365
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_core" >&5
10367$as_echo_n "checking whether to enable mod_authz_core... " >&6; }
10368    # Check whether --enable-authz-core was given.
10369if test "${enable_authz_core+set}" = set; then :
10370  enableval=$enable_authz_core; force_authz_core=$enableval
10371else
10372  enable_authz_core=yes
10373fi
10374
10375    _apmod_extra_msg=""
10376        case "$enable_authz_core" in
10377    yes|static|shared)
10378      _apmod_required="yes"
10379      ;;
10380    *)
10381      case "$module_selection" in
10382      reallyall|all|most)
10383        _apmod_required="no"
10384        ;;
10385      *)
10386        _apmod_required="yes"
10387        ;;
10388      esac
10389  esac
10390  if test "$enable_authz_core" = "static"; then
10391    enable_authz_core=static
10392  elif test "$enable_authz_core" = "yes"; then
10393    enable_authz_core=$module_default
10394  elif test "$enable_authz_core" = "most"; then
10395    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10396            "$module_selection" = "reallyall"
10397    then
10398      enable_authz_core=$module_default
10399    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10400      enable_authz_core=no
10401    fi
10402    _apmod_extra_msg=" ($module_selection)"
10403  elif test "$enable_authz_core" = "maybe-all"; then
10404    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10405    then
10406      enable_authz_core=$module_default
10407      _apmod_extra_msg=" ($module_selection)"
10408    else
10409      enable_authz_core=no
10410    fi
10411  elif test "$enable_authz_core" = "no" -a "$module_selection" = "reallyall" -a \
10412            "$force_authz_core" != "no" ; then
10413      enable_authz_core=$module_default
10414      _apmod_extra_msg=" ($module_selection)"
10415  fi
10416  if test "$enable_authz_core" != "no"; then
10417            :
10418  fi
10419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_core$_apmod_extra_msg" >&5
10420$as_echo "$enable_authz_core$_apmod_extra_msg" >&6; }
10421  if test "$enable_authz_core" != "no"; then
10422    case "$enable_authz_core" in
10423    static*)
10424      MODLIST="$MODLIST authz_core"
10425      if test "authz_core" = "so"; then
10426          sharedobjs=yes
10427      fi
10428      shared="";;
10429    *)
10430      enable_authz_core=`echo $enable_authz_core|sed 's/shared,*//'`
10431      sharedobjs=yes
10432      shared=yes
10433      DSO_MODULES="$DSO_MODULES authz_core"
10434      if test "yes" = "yes" ; then
10435        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_core"
10436      fi
10437      ;;
10438    esac
10439
10440
10441  if test -z ""; then
10442    objects="mod_authz_core.lo"
10443  else
10444    objects=""
10445  fi
10446
10447  if test -z "$module_standalone"; then
10448    if test -z "$shared"; then
10449      # The filename of a convenience library must have a "lib" prefix:
10450      libname="libmod_authz_core.la"
10451      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10452      modpath_static="$modpath_static $libname"
10453      cat >>$modpath_current/modules.mk<<EOF
10454$libname: $objects
10455	\$(MOD_LINK) $objects \$(MOD_AUTHZ_CORE_LDADD)
10456EOF
10457      if test ! -z "\$(MOD_AUTHZ_CORE_LDADD)"; then
10458
10459  if test "x$AP_LIBS" = "x"; then
10460    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_CORE_LDADD)\""
10461    AP_LIBS="\$(MOD_AUTHZ_CORE_LDADD)"
10462  else
10463    apr_addto_bugger="\$(MOD_AUTHZ_CORE_LDADD)"
10464    for i in $apr_addto_bugger; do
10465      apr_addto_duplicate="0"
10466      for j in $AP_LIBS; do
10467        if test "x$i" = "x$j"; then
10468          apr_addto_duplicate="1"
10469          break
10470        fi
10471      done
10472      if test $apr_addto_duplicate = "0"; then
10473        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10474        AP_LIBS="$AP_LIBS $i"
10475      fi
10476    done
10477  fi
10478
10479      fi
10480    else
10481      apache_need_shared=yes
10482      libname="mod_authz_core.la"
10483      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10484      modpath_shared="$modpath_shared $libname"
10485      cat >>$modpath_current/modules.mk<<EOF
10486$libname: $shobjects
10487	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_CORE_LDADD)
10488EOF
10489    fi
10490  fi
10491
10492
10493  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_CORE_LDADD"
10494
10495
10496
10497  fi
10498
10499
10500
10501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
10502$as_echo_n "checking whether to enable mod_authnz_ldap... " >&6; }
10503    # Check whether --enable-authnz-ldap was given.
10504if test "${enable_authnz_ldap+set}" = set; then :
10505  enableval=$enable_authnz_ldap; force_authnz_ldap=$enableval
10506else
10507  enable_authnz_ldap=most
10508fi
10509
10510    _apmod_extra_msg=""
10511        case "$enable_authnz_ldap" in
10512    yes|static|shared)
10513      _apmod_required="yes"
10514      ;;
10515    *)
10516      case "$module_selection" in
10517      reallyall|all|most)
10518        _apmod_required="no"
10519        ;;
10520      *)
10521        _apmod_required="yes"
10522        ;;
10523      esac
10524  esac
10525  if test "$enable_authnz_ldap" = "static"; then
10526    enable_authnz_ldap=static
10527  elif test "$enable_authnz_ldap" = "yes"; then
10528    enable_authnz_ldap=$module_default
10529  elif test "$enable_authnz_ldap" = "most"; then
10530    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10531            "$module_selection" = "reallyall"
10532    then
10533      enable_authnz_ldap=$module_default
10534    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10535      enable_authnz_ldap=no
10536    fi
10537    _apmod_extra_msg=" ($module_selection)"
10538  elif test "$enable_authnz_ldap" = "maybe-all"; then
10539    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10540    then
10541      enable_authnz_ldap=$module_default
10542      _apmod_extra_msg=" ($module_selection)"
10543    else
10544      enable_authnz_ldap=no
10545    fi
10546  elif test "$enable_authnz_ldap" = "no" -a "$module_selection" = "reallyall" -a \
10547            "$force_authnz_ldap" != "no" ; then
10548      enable_authnz_ldap=$module_default
10549      _apmod_extra_msg=" ($module_selection)"
10550  fi
10551  if test "$enable_authnz_ldap" != "no"; then
10552            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
10553$as_echo "checking dependencies" >&6; }
10554            :
10555
10556
10557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
10558$as_echo_n "checking for ldap support in apr/apr-util... " >&6; }
10559if ${ac_cv_APR_HAS_LDAP+:} false; then :
10560  $as_echo_n "(cached) " >&6
10561else
10562
10563    apache_old_cppflags="$CPPFLAGS"
10564    CPPFLAGS="$CPPFLAGS $INCLUDES"
10565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h.  */
10567
10568#include <apr_ldap.h>
10569#if APR_HAS_LDAP
10570YES_IS_DEFINED
10571#endif
10572
10573_ACEOF
10574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10575  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
10576  ac_cv_APR_HAS_LDAP=yes
10577else
10578  ac_cv_APR_HAS_LDAP=no
10579fi
10580rm -f conftest*
10581
10582    CPPFLAGS="$apache_old_cppflags"
10583
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
10586$as_echo "$ac_cv_APR_HAS_LDAP" >&6; }
10587
10588  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
10589    if test -z "$apu_config" ; then
10590      LDAP_LIBS="`$apr_config --ldap-libs`"
10591    else
10592      LDAP_LIBS="`$apu_config --ldap-libs`"
10593    fi
10594
10595  if test "x$MOD_AUTHNZ_LDAP_LDADD" = "x"; then
10596    test "x$silent" != "xyes" && echo "  setting MOD_AUTHNZ_LDAP_LDADD to \"$LDAP_LIBS\""
10597    MOD_AUTHNZ_LDAP_LDADD="$LDAP_LIBS"
10598  else
10599    apr_addto_bugger="$LDAP_LIBS"
10600    for i in $apr_addto_bugger; do
10601      apr_addto_duplicate="0"
10602      for j in $MOD_AUTHNZ_LDAP_LDADD; do
10603        if test "x$i" = "x$j"; then
10604          apr_addto_duplicate="1"
10605          break
10606        fi
10607      done
10608      if test $apr_addto_duplicate = "0"; then
10609        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_AUTHNZ_LDAP_LDADD"
10610        MOD_AUTHNZ_LDAP_LDADD="$MOD_AUTHNZ_LDAP_LDADD $i"
10611      fi
10612    done
10613  fi
10614
10615
10616  else
10617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
10618$as_echo "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
10619    enable_authnz_ldap=no
10620  fi
10621
10622            :
10623            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
10624$as_echo_n "checking whether to enable mod_authnz_ldap... " >&6; }
10625            if test "$enable_authnz_ldap" = "no"; then
10626              if test "$_apmod_required" = "no"; then
10627                _apmod_extra_msg=" (disabled)"
10628              else
10629                as_fn_error $? "mod_authnz_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
10630              fi
10631            fi
10632  fi
10633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authnz_ldap$_apmod_extra_msg" >&5
10634$as_echo "$enable_authnz_ldap$_apmod_extra_msg" >&6; }
10635  if test "$enable_authnz_ldap" != "no"; then
10636    case "$enable_authnz_ldap" in
10637    static*)
10638      MODLIST="$MODLIST authnz_ldap"
10639      if test "authnz_ldap" = "so"; then
10640          sharedobjs=yes
10641      fi
10642      shared="";;
10643    *)
10644      enable_authnz_ldap=`echo $enable_authnz_ldap|sed 's/shared,*//'`
10645      sharedobjs=yes
10646      shared=yes
10647      DSO_MODULES="$DSO_MODULES authnz_ldap"
10648      if test "most" = "yes" ; then
10649        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authnz_ldap"
10650      fi
10651      ;;
10652    esac
10653
10654
10655  if test -z ""; then
10656    objects="mod_authnz_ldap.lo"
10657  else
10658    objects=""
10659  fi
10660
10661  if test -z "$module_standalone"; then
10662    if test -z "$shared"; then
10663      # The filename of a convenience library must have a "lib" prefix:
10664      libname="libmod_authnz_ldap.la"
10665      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10666      modpath_static="$modpath_static $libname"
10667      cat >>$modpath_current/modules.mk<<EOF
10668$libname: $objects
10669	\$(MOD_LINK) $objects \$(MOD_AUTHNZ_LDAP_LDADD)
10670EOF
10671      if test ! -z "\$(MOD_AUTHNZ_LDAP_LDADD)"; then
10672
10673  if test "x$AP_LIBS" = "x"; then
10674    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHNZ_LDAP_LDADD)\""
10675    AP_LIBS="\$(MOD_AUTHNZ_LDAP_LDADD)"
10676  else
10677    apr_addto_bugger="\$(MOD_AUTHNZ_LDAP_LDADD)"
10678    for i in $apr_addto_bugger; do
10679      apr_addto_duplicate="0"
10680      for j in $AP_LIBS; do
10681        if test "x$i" = "x$j"; then
10682          apr_addto_duplicate="1"
10683          break
10684        fi
10685      done
10686      if test $apr_addto_duplicate = "0"; then
10687        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10688        AP_LIBS="$AP_LIBS $i"
10689      fi
10690    done
10691  fi
10692
10693      fi
10694    else
10695      apache_need_shared=yes
10696      libname="mod_authnz_ldap.la"
10697      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10698      modpath_shared="$modpath_shared $libname"
10699      cat >>$modpath_current/modules.mk<<EOF
10700$libname: $shobjects
10701	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHNZ_LDAP_LDADD)
10702EOF
10703    fi
10704  fi
10705
10706
10707  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHNZ_LDAP_LDADD"
10708
10709
10710
10711  fi
10712
10713
10714
10715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_access_compat" >&5
10716$as_echo_n "checking whether to enable mod_access_compat... " >&6; }
10717    # Check whether --enable-access-compat was given.
10718if test "${enable_access_compat+set}" = set; then :
10719  enableval=$enable_access_compat; force_access_compat=$enableval
10720else
10721  enable_access_compat=yes
10722fi
10723
10724    _apmod_extra_msg=""
10725        case "$enable_access_compat" in
10726    yes|static|shared)
10727      _apmod_required="yes"
10728      ;;
10729    *)
10730      case "$module_selection" in
10731      reallyall|all|most)
10732        _apmod_required="no"
10733        ;;
10734      *)
10735        _apmod_required="yes"
10736        ;;
10737      esac
10738  esac
10739  if test "$enable_access_compat" = "static"; then
10740    enable_access_compat=static
10741  elif test "$enable_access_compat" = "yes"; then
10742    enable_access_compat=$module_default
10743  elif test "$enable_access_compat" = "most"; then
10744    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10745            "$module_selection" = "reallyall"
10746    then
10747      enable_access_compat=$module_default
10748    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10749      enable_access_compat=no
10750    fi
10751    _apmod_extra_msg=" ($module_selection)"
10752  elif test "$enable_access_compat" = "maybe-all"; then
10753    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10754    then
10755      enable_access_compat=$module_default
10756      _apmod_extra_msg=" ($module_selection)"
10757    else
10758      enable_access_compat=no
10759    fi
10760  elif test "$enable_access_compat" = "no" -a "$module_selection" = "reallyall" -a \
10761            "$force_access_compat" != "no" ; then
10762      enable_access_compat=$module_default
10763      _apmod_extra_msg=" ($module_selection)"
10764  fi
10765  if test "$enable_access_compat" != "no"; then
10766            :
10767  fi
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_access_compat$_apmod_extra_msg" >&5
10769$as_echo "$enable_access_compat$_apmod_extra_msg" >&6; }
10770  if test "$enable_access_compat" != "no"; then
10771    case "$enable_access_compat" in
10772    static*)
10773      MODLIST="$MODLIST access_compat"
10774      if test "access_compat" = "so"; then
10775          sharedobjs=yes
10776      fi
10777      shared="";;
10778    *)
10779      enable_access_compat=`echo $enable_access_compat|sed 's/shared,*//'`
10780      sharedobjs=yes
10781      shared=yes
10782      DSO_MODULES="$DSO_MODULES access_compat"
10783      if test "yes" = "yes" ; then
10784        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},access_compat"
10785      fi
10786      ;;
10787    esac
10788
10789
10790  if test -z ""; then
10791    objects="mod_access_compat.lo"
10792  else
10793    objects=""
10794  fi
10795
10796  if test -z "$module_standalone"; then
10797    if test -z "$shared"; then
10798      # The filename of a convenience library must have a "lib" prefix:
10799      libname="libmod_access_compat.la"
10800      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10801      modpath_static="$modpath_static $libname"
10802      cat >>$modpath_current/modules.mk<<EOF
10803$libname: $objects
10804	\$(MOD_LINK) $objects \$(MOD_ACCESS_COMPAT_LDADD)
10805EOF
10806      if test ! -z "\$(MOD_ACCESS_COMPAT_LDADD)"; then
10807
10808  if test "x$AP_LIBS" = "x"; then
10809    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACCESS_COMPAT_LDADD)\""
10810    AP_LIBS="\$(MOD_ACCESS_COMPAT_LDADD)"
10811  else
10812    apr_addto_bugger="\$(MOD_ACCESS_COMPAT_LDADD)"
10813    for i in $apr_addto_bugger; do
10814      apr_addto_duplicate="0"
10815      for j in $AP_LIBS; do
10816        if test "x$i" = "x$j"; then
10817          apr_addto_duplicate="1"
10818          break
10819        fi
10820      done
10821      if test $apr_addto_duplicate = "0"; then
10822        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10823        AP_LIBS="$AP_LIBS $i"
10824      fi
10825    done
10826  fi
10827
10828      fi
10829    else
10830      apache_need_shared=yes
10831      libname="mod_access_compat.la"
10832      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10833      modpath_shared="$modpath_shared $libname"
10834      cat >>$modpath_current/modules.mk<<EOF
10835$libname: $shobjects
10836	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACCESS_COMPAT_LDADD)
10837EOF
10838    fi
10839  fi
10840
10841
10842  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACCESS_COMPAT_LDADD"
10843
10844
10845
10846  fi
10847
10848
10849
10850
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_basic" >&5
10852$as_echo_n "checking whether to enable mod_auth_basic... " >&6; }
10853    # Check whether --enable-auth-basic was given.
10854if test "${enable_auth_basic+set}" = set; then :
10855  enableval=$enable_auth_basic; force_auth_basic=$enableval
10856else
10857  enable_auth_basic=yes
10858fi
10859
10860    _apmod_extra_msg=""
10861        case "$enable_auth_basic" in
10862    yes|static|shared)
10863      _apmod_required="yes"
10864      ;;
10865    *)
10866      case "$module_selection" in
10867      reallyall|all|most)
10868        _apmod_required="no"
10869        ;;
10870      *)
10871        _apmod_required="yes"
10872        ;;
10873      esac
10874  esac
10875  if test "$enable_auth_basic" = "static"; then
10876    enable_auth_basic=static
10877  elif test "$enable_auth_basic" = "yes"; then
10878    enable_auth_basic=$module_default
10879  elif test "$enable_auth_basic" = "most"; then
10880    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10881            "$module_selection" = "reallyall"
10882    then
10883      enable_auth_basic=$module_default
10884    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10885      enable_auth_basic=no
10886    fi
10887    _apmod_extra_msg=" ($module_selection)"
10888  elif test "$enable_auth_basic" = "maybe-all"; then
10889    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10890    then
10891      enable_auth_basic=$module_default
10892      _apmod_extra_msg=" ($module_selection)"
10893    else
10894      enable_auth_basic=no
10895    fi
10896  elif test "$enable_auth_basic" = "no" -a "$module_selection" = "reallyall" -a \
10897            "$force_auth_basic" != "no" ; then
10898      enable_auth_basic=$module_default
10899      _apmod_extra_msg=" ($module_selection)"
10900  fi
10901  if test "$enable_auth_basic" != "no"; then
10902            :
10903  fi
10904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_basic$_apmod_extra_msg" >&5
10905$as_echo "$enable_auth_basic$_apmod_extra_msg" >&6; }
10906  if test "$enable_auth_basic" != "no"; then
10907    case "$enable_auth_basic" in
10908    static*)
10909      MODLIST="$MODLIST auth_basic"
10910      if test "auth_basic" = "so"; then
10911          sharedobjs=yes
10912      fi
10913      shared="";;
10914    *)
10915      enable_auth_basic=`echo $enable_auth_basic|sed 's/shared,*//'`
10916      sharedobjs=yes
10917      shared=yes
10918      DSO_MODULES="$DSO_MODULES auth_basic"
10919      if test "yes" = "yes" ; then
10920        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_basic"
10921      fi
10922      ;;
10923    esac
10924
10925
10926  if test -z ""; then
10927    objects="mod_auth_basic.lo"
10928  else
10929    objects=""
10930  fi
10931
10932  if test -z "$module_standalone"; then
10933    if test -z "$shared"; then
10934      # The filename of a convenience library must have a "lib" prefix:
10935      libname="libmod_auth_basic.la"
10936      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10937      modpath_static="$modpath_static $libname"
10938      cat >>$modpath_current/modules.mk<<EOF
10939$libname: $objects
10940	\$(MOD_LINK) $objects \$(MOD_AUTH_BASIC_LDADD)
10941EOF
10942      if test ! -z "\$(MOD_AUTH_BASIC_LDADD)"; then
10943
10944  if test "x$AP_LIBS" = "x"; then
10945    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_BASIC_LDADD)\""
10946    AP_LIBS="\$(MOD_AUTH_BASIC_LDADD)"
10947  else
10948    apr_addto_bugger="\$(MOD_AUTH_BASIC_LDADD)"
10949    for i in $apr_addto_bugger; do
10950      apr_addto_duplicate="0"
10951      for j in $AP_LIBS; do
10952        if test "x$i" = "x$j"; then
10953          apr_addto_duplicate="1"
10954          break
10955        fi
10956      done
10957      if test $apr_addto_duplicate = "0"; then
10958        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10959        AP_LIBS="$AP_LIBS $i"
10960      fi
10961    done
10962  fi
10963
10964      fi
10965    else
10966      apache_need_shared=yes
10967      libname="mod_auth_basic.la"
10968      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10969      modpath_shared="$modpath_shared $libname"
10970      cat >>$modpath_current/modules.mk<<EOF
10971$libname: $shobjects
10972	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_BASIC_LDADD)
10973EOF
10974    fi
10975  fi
10976
10977
10978  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_BASIC_LDADD"
10979
10980
10981
10982  fi
10983
10984
10985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_form" >&5
10986$as_echo_n "checking whether to enable mod_auth_form... " >&6; }
10987    # Check whether --enable-auth-form was given.
10988if test "${enable_auth_form+set}" = set; then :
10989  enableval=$enable_auth_form; force_auth_form=$enableval
10990else
10991  enable_auth_form=most
10992fi
10993
10994    _apmod_extra_msg=""
10995        case "$enable_auth_form" in
10996    yes|static|shared)
10997      _apmod_required="yes"
10998      ;;
10999    *)
11000      case "$module_selection" in
11001      reallyall|all|most)
11002        _apmod_required="no"
11003        ;;
11004      *)
11005        _apmod_required="yes"
11006        ;;
11007      esac
11008  esac
11009  if test "$enable_auth_form" = "static"; then
11010    enable_auth_form=static
11011  elif test "$enable_auth_form" = "yes"; then
11012    enable_auth_form=$module_default
11013  elif test "$enable_auth_form" = "most"; then
11014    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11015            "$module_selection" = "reallyall"
11016    then
11017      enable_auth_form=$module_default
11018    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11019      enable_auth_form=no
11020    fi
11021    _apmod_extra_msg=" ($module_selection)"
11022  elif test "$enable_auth_form" = "maybe-all"; then
11023    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11024    then
11025      enable_auth_form=$module_default
11026      _apmod_extra_msg=" ($module_selection)"
11027    else
11028      enable_auth_form=no
11029    fi
11030  elif test "$enable_auth_form" = "no" -a "$module_selection" = "reallyall" -a \
11031            "$force_auth_form" != "no" ; then
11032      enable_auth_form=$module_default
11033      _apmod_extra_msg=" ($module_selection)"
11034  fi
11035  if test "$enable_auth_form" != "no"; then
11036            :
11037  fi
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_form$_apmod_extra_msg" >&5
11039$as_echo "$enable_auth_form$_apmod_extra_msg" >&6; }
11040  if test "$enable_auth_form" != "no"; then
11041    case "$enable_auth_form" in
11042    static*)
11043      MODLIST="$MODLIST auth_form"
11044      if test "auth_form" = "so"; then
11045          sharedobjs=yes
11046      fi
11047      shared="";;
11048    *)
11049      enable_auth_form=`echo $enable_auth_form|sed 's/shared,*//'`
11050      sharedobjs=yes
11051      shared=yes
11052      DSO_MODULES="$DSO_MODULES auth_form"
11053      if test "most" = "yes" ; then
11054        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_form"
11055      fi
11056      ;;
11057    esac
11058
11059
11060  if test -z ""; then
11061    objects="mod_auth_form.lo"
11062  else
11063    objects=""
11064  fi
11065
11066  if test -z "$module_standalone"; then
11067    if test -z "$shared"; then
11068      # The filename of a convenience library must have a "lib" prefix:
11069      libname="libmod_auth_form.la"
11070      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11071      modpath_static="$modpath_static $libname"
11072      cat >>$modpath_current/modules.mk<<EOF
11073$libname: $objects
11074	\$(MOD_LINK) $objects \$(MOD_AUTH_FORM_LDADD)
11075EOF
11076      if test ! -z "\$(MOD_AUTH_FORM_LDADD)"; then
11077
11078  if test "x$AP_LIBS" = "x"; then
11079    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_FORM_LDADD)\""
11080    AP_LIBS="\$(MOD_AUTH_FORM_LDADD)"
11081  else
11082    apr_addto_bugger="\$(MOD_AUTH_FORM_LDADD)"
11083    for i in $apr_addto_bugger; do
11084      apr_addto_duplicate="0"
11085      for j in $AP_LIBS; do
11086        if test "x$i" = "x$j"; then
11087          apr_addto_duplicate="1"
11088          break
11089        fi
11090      done
11091      if test $apr_addto_duplicate = "0"; then
11092        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11093        AP_LIBS="$AP_LIBS $i"
11094      fi
11095    done
11096  fi
11097
11098      fi
11099    else
11100      apache_need_shared=yes
11101      libname="mod_auth_form.la"
11102      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11103      modpath_shared="$modpath_shared $libname"
11104      cat >>$modpath_current/modules.mk<<EOF
11105$libname: $shobjects
11106	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_FORM_LDADD)
11107EOF
11108    fi
11109  fi
11110
11111
11112  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_FORM_LDADD"
11113
11114
11115
11116  fi
11117
11118
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
11120$as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
11121    # Check whether --enable-auth-digest was given.
11122if test "${enable_auth_digest+set}" = set; then :
11123  enableval=$enable_auth_digest; force_auth_digest=$enableval
11124else
11125  enable_auth_digest=most
11126fi
11127
11128    _apmod_extra_msg=""
11129        case "$enable_auth_digest" in
11130    yes|static|shared)
11131      _apmod_required="yes"
11132      ;;
11133    *)
11134      case "$module_selection" in
11135      reallyall|all|most)
11136        _apmod_required="no"
11137        ;;
11138      *)
11139        _apmod_required="yes"
11140        ;;
11141      esac
11142  esac
11143  if test "$enable_auth_digest" = "static"; then
11144    enable_auth_digest=static
11145  elif test "$enable_auth_digest" = "yes"; then
11146    enable_auth_digest=$module_default
11147  elif test "$enable_auth_digest" = "most"; then
11148    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11149            "$module_selection" = "reallyall"
11150    then
11151      enable_auth_digest=$module_default
11152    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11153      enable_auth_digest=no
11154    fi
11155    _apmod_extra_msg=" ($module_selection)"
11156  elif test "$enable_auth_digest" = "maybe-all"; then
11157    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11158    then
11159      enable_auth_digest=$module_default
11160      _apmod_extra_msg=" ($module_selection)"
11161    else
11162      enable_auth_digest=no
11163    fi
11164  elif test "$enable_auth_digest" = "no" -a "$module_selection" = "reallyall" -a \
11165            "$force_auth_digest" != "no" ; then
11166      enable_auth_digest=$module_default
11167      _apmod_extra_msg=" ($module_selection)"
11168  fi
11169  if test "$enable_auth_digest" != "no"; then
11170            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
11171$as_echo "checking dependencies" >&6; }
11172            :
11173
11174
11175apr_old_cppflags=$CPPFLAGS
11176CPPFLAGS="$CPPFLAGS $INCLUDES"
11177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179
11180#include <apr.h>
11181#if APR_HAS_RANDOM
11182YES_IS_DEFINED
11183#endif
11184
11185_ACEOF
11186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11187  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
11188  ac_cv_define_APR_HAS_RANDOM=yes
11189else
11190  ac_cv_define_APR_HAS_RANDOM=no
11191fi
11192rm -f conftest*
11193
11194CPPFLAGS=$apr_old_cppflags
11195
11196  if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
11197    echo "You need APR random support to use mod_auth_digest."
11198    echo "Look at APR configure options --with-egd and --with-devrandom."
11199    enable_auth_digest="no"
11200  fi
11201
11202            :
11203            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
11204$as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
11205            if test "$enable_auth_digest" = "no"; then
11206              if test "$_apmod_required" = "no"; then
11207                _apmod_extra_msg=" (disabled)"
11208              else
11209                as_fn_error $? "mod_auth_digest has been requested but can not be built due to prerequisite failures" "$LINENO" 5
11210              fi
11211            fi
11212  fi
11213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_digest$_apmod_extra_msg" >&5
11214$as_echo "$enable_auth_digest$_apmod_extra_msg" >&6; }
11215  if test "$enable_auth_digest" != "no"; then
11216    case "$enable_auth_digest" in
11217    static*)
11218      MODLIST="$MODLIST auth_digest"
11219      if test "auth_digest" = "so"; then
11220          sharedobjs=yes
11221      fi
11222      shared="";;
11223    *)
11224      enable_auth_digest=`echo $enable_auth_digest|sed 's/shared,*//'`
11225      sharedobjs=yes
11226      shared=yes
11227      DSO_MODULES="$DSO_MODULES auth_digest"
11228      if test "most" = "yes" ; then
11229        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_digest"
11230      fi
11231      ;;
11232    esac
11233
11234
11235  if test -z ""; then
11236    objects="mod_auth_digest.lo"
11237  else
11238    objects=""
11239  fi
11240
11241  if test -z "$module_standalone"; then
11242    if test -z "$shared"; then
11243      # The filename of a convenience library must have a "lib" prefix:
11244      libname="libmod_auth_digest.la"
11245      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11246      modpath_static="$modpath_static $libname"
11247      cat >>$modpath_current/modules.mk<<EOF
11248$libname: $objects
11249	\$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
11250EOF
11251      if test ! -z "\$(MOD_AUTH_DIGEST_LDADD)"; then
11252
11253  if test "x$AP_LIBS" = "x"; then
11254    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_DIGEST_LDADD)\""
11255    AP_LIBS="\$(MOD_AUTH_DIGEST_LDADD)"
11256  else
11257    apr_addto_bugger="\$(MOD_AUTH_DIGEST_LDADD)"
11258    for i in $apr_addto_bugger; do
11259      apr_addto_duplicate="0"
11260      for j in $AP_LIBS; do
11261        if test "x$i" = "x$j"; then
11262          apr_addto_duplicate="1"
11263          break
11264        fi
11265      done
11266      if test $apr_addto_duplicate = "0"; then
11267        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11268        AP_LIBS="$AP_LIBS $i"
11269      fi
11270    done
11271  fi
11272
11273      fi
11274    else
11275      apache_need_shared=yes
11276      libname="mod_auth_digest.la"
11277      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11278      modpath_shared="$modpath_shared $libname"
11279      cat >>$modpath_current/modules.mk<<EOF
11280$libname: $shobjects
11281	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DIGEST_LDADD)
11282EOF
11283    fi
11284  fi
11285
11286
11287  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"
11288
11289
11290
11291  fi
11292
11293
11294
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_allowmethods" >&5
11296$as_echo_n "checking whether to enable mod_allowmethods... " >&6; }
11297    # Check whether --enable-allowmethods was given.
11298if test "${enable_allowmethods+set}" = set; then :
11299  enableval=$enable_allowmethods; force_allowmethods=$enableval
11300else
11301  enable_allowmethods=most
11302fi
11303
11304    _apmod_extra_msg=""
11305        case "$enable_allowmethods" in
11306    yes|static|shared)
11307      _apmod_required="yes"
11308      ;;
11309    *)
11310      case "$module_selection" in
11311      reallyall|all|most)
11312        _apmod_required="no"
11313        ;;
11314      *)
11315        _apmod_required="yes"
11316        ;;
11317      esac
11318  esac
11319  if test "$enable_allowmethods" = "static"; then
11320    enable_allowmethods=static
11321  elif test "$enable_allowmethods" = "yes"; then
11322    enable_allowmethods=$module_default
11323  elif test "$enable_allowmethods" = "most"; then
11324    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11325            "$module_selection" = "reallyall"
11326    then
11327      enable_allowmethods=$module_default
11328    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11329      enable_allowmethods=no
11330    fi
11331    _apmod_extra_msg=" ($module_selection)"
11332  elif test "$enable_allowmethods" = "maybe-all"; then
11333    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11334    then
11335      enable_allowmethods=$module_default
11336      _apmod_extra_msg=" ($module_selection)"
11337    else
11338      enable_allowmethods=no
11339    fi
11340  elif test "$enable_allowmethods" = "no" -a "$module_selection" = "reallyall" -a \
11341            "$force_allowmethods" != "no" ; then
11342      enable_allowmethods=$module_default
11343      _apmod_extra_msg=" ($module_selection)"
11344  fi
11345  if test "$enable_allowmethods" != "no"; then
11346            :
11347  fi
11348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_allowmethods$_apmod_extra_msg" >&5
11349$as_echo "$enable_allowmethods$_apmod_extra_msg" >&6; }
11350  if test "$enable_allowmethods" != "no"; then
11351    case "$enable_allowmethods" in
11352    static*)
11353      MODLIST="$MODLIST allowmethods"
11354      if test "allowmethods" = "so"; then
11355          sharedobjs=yes
11356      fi
11357      shared="";;
11358    *)
11359      enable_allowmethods=`echo $enable_allowmethods|sed 's/shared,*//'`
11360      sharedobjs=yes
11361      shared=yes
11362      DSO_MODULES="$DSO_MODULES allowmethods"
11363      if test "most" = "yes" ; then
11364        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},allowmethods"
11365      fi
11366      ;;
11367    esac
11368
11369
11370  if test -z ""; then
11371    objects="mod_allowmethods.lo"
11372  else
11373    objects=""
11374  fi
11375
11376  if test -z "$module_standalone"; then
11377    if test -z "$shared"; then
11378      # The filename of a convenience library must have a "lib" prefix:
11379      libname="libmod_allowmethods.la"
11380      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11381      modpath_static="$modpath_static $libname"
11382      cat >>$modpath_current/modules.mk<<EOF
11383$libname: $objects
11384	\$(MOD_LINK) $objects \$(MOD_ALLOWMETHODS_LDADD)
11385EOF
11386      if test ! -z "\$(MOD_ALLOWMETHODS_LDADD)"; then
11387
11388  if test "x$AP_LIBS" = "x"; then
11389    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALLOWMETHODS_LDADD)\""
11390    AP_LIBS="\$(MOD_ALLOWMETHODS_LDADD)"
11391  else
11392    apr_addto_bugger="\$(MOD_ALLOWMETHODS_LDADD)"
11393    for i in $apr_addto_bugger; do
11394      apr_addto_duplicate="0"
11395      for j in $AP_LIBS; do
11396        if test "x$i" = "x$j"; then
11397          apr_addto_duplicate="1"
11398          break
11399        fi
11400      done
11401      if test $apr_addto_duplicate = "0"; then
11402        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11403        AP_LIBS="$AP_LIBS $i"
11404      fi
11405    done
11406  fi
11407
11408      fi
11409    else
11410      apache_need_shared=yes
11411      libname="mod_allowmethods.la"
11412      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11413      modpath_shared="$modpath_shared $libname"
11414      cat >>$modpath_current/modules.mk<<EOF
11415$libname: $shobjects
11416	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALLOWMETHODS_LDADD)
11417EOF
11418    fi
11419  fi
11420
11421
11422  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALLOWMETHODS_LDADD"
11423
11424
11425
11426  fi
11427
11428
11429
11430  if test "x$INCLUDES" = "x"; then
11431    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
11432    INCLUDES="-I\$(top_srcdir)/$modpath_current"
11433  else
11434    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
11435    for i in $apr_addto_bugger; do
11436      apr_addto_duplicate="0"
11437      for j in $INCLUDES; do
11438        if test "x$i" = "x$j"; then
11439          apr_addto_duplicate="1"
11440          break
11441        fi
11442      done
11443      if test $apr_addto_duplicate = "0"; then
11444        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
11445        INCLUDES="$INCLUDES $i"
11446      fi
11447    done
11448  fi
11449
11450
11451
11452  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11453  echo "static = $modpath_static" >> $modpath_current/modules.mk
11454  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11455  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11456    if eval val=\"\$MOD_$var\"; test -n "$val"; then
11457      echo "MOD_$var = $val" >> $modpath_current/modules.mk
11458    fi
11459  done
11460  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11461    MODULE_DIRS="$MODULE_DIRS $current_dir"
11462  else
11463    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11464  fi
11465
11466  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11467
11468
11469
11470
11471
11472
11473  current_dir=arch/win32
11474  modpath_current=modules/arch/win32
11475  modpath_static=
11476  modpath_shared=
11477  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11478    eval MOD_$var=
11479  done
11480  test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
11481  > $modpath_current/modules.mk
11482
11483
11484
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_isapi" >&5
11486$as_echo_n "checking whether to enable mod_isapi... " >&6; }
11487    # Check whether --enable-isapi was given.
11488if test "${enable_isapi+set}" = set; then :
11489  enableval=$enable_isapi; force_isapi=$enableval
11490else
11491  enable_isapi=no
11492fi
11493
11494    _apmod_extra_msg=""
11495        case "$enable_isapi" in
11496    yes|static|shared)
11497      _apmod_required="yes"
11498      ;;
11499    *)
11500      case "$module_selection" in
11501      reallyall|all|most)
11502        _apmod_required="no"
11503        ;;
11504      *)
11505        _apmod_required="yes"
11506        ;;
11507      esac
11508  esac
11509  if test "$enable_isapi" = "static"; then
11510    enable_isapi=static
11511  elif test "$enable_isapi" = "yes"; then
11512    enable_isapi=$module_default
11513  elif test "$enable_isapi" = "most"; then
11514    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11515            "$module_selection" = "reallyall"
11516    then
11517      enable_isapi=$module_default
11518    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11519      enable_isapi=no
11520    fi
11521    _apmod_extra_msg=" ($module_selection)"
11522  elif test "$enable_isapi" = "maybe-all"; then
11523    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11524    then
11525      enable_isapi=$module_default
11526      _apmod_extra_msg=" ($module_selection)"
11527    else
11528      enable_isapi=no
11529    fi
11530  elif test "$enable_isapi" = "no" -a "$module_selection" = "reallyall" -a \
11531            "$force_isapi" != "no" ; then
11532      enable_isapi=$module_default
11533      _apmod_extra_msg=" ($module_selection)"
11534  fi
11535  if test "$enable_isapi" != "no"; then
11536            :
11537  fi
11538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_isapi$_apmod_extra_msg" >&5
11539$as_echo "$enable_isapi$_apmod_extra_msg" >&6; }
11540  if test "$enable_isapi" != "no"; then
11541    case "$enable_isapi" in
11542    static*)
11543      MODLIST="$MODLIST isapi"
11544      if test "isapi" = "so"; then
11545          sharedobjs=yes
11546      fi
11547      shared="";;
11548    *)
11549      enable_isapi=`echo $enable_isapi|sed 's/shared,*//'`
11550      sharedobjs=yes
11551      shared=yes
11552      DSO_MODULES="$DSO_MODULES isapi"
11553      if test "no" = "yes" ; then
11554        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},isapi"
11555      fi
11556      ;;
11557    esac
11558
11559
11560  if test -z ""; then
11561    objects="mod_isapi.lo"
11562  else
11563    objects=""
11564  fi
11565
11566  if test -z "$module_standalone"; then
11567    if test -z "$shared"; then
11568      # The filename of a convenience library must have a "lib" prefix:
11569      libname="libmod_isapi.la"
11570      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11571      modpath_static="$modpath_static $libname"
11572      cat >>$modpath_current/modules.mk<<EOF
11573$libname: $objects
11574	\$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
11575EOF
11576      if test ! -z "\$(MOD_ISAPI_LDADD)"; then
11577
11578  if test "x$AP_LIBS" = "x"; then
11579    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ISAPI_LDADD)\""
11580    AP_LIBS="\$(MOD_ISAPI_LDADD)"
11581  else
11582    apr_addto_bugger="\$(MOD_ISAPI_LDADD)"
11583    for i in $apr_addto_bugger; do
11584      apr_addto_duplicate="0"
11585      for j in $AP_LIBS; do
11586        if test "x$i" = "x$j"; then
11587          apr_addto_duplicate="1"
11588          break
11589        fi
11590      done
11591      if test $apr_addto_duplicate = "0"; then
11592        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11593        AP_LIBS="$AP_LIBS $i"
11594      fi
11595    done
11596  fi
11597
11598      fi
11599    else
11600      apache_need_shared=yes
11601      libname="mod_isapi.la"
11602      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11603      modpath_shared="$modpath_shared $libname"
11604      cat >>$modpath_current/modules.mk<<EOF
11605$libname: $shobjects
11606	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ISAPI_LDADD)
11607EOF
11608    fi
11609  fi
11610
11611
11612  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"
11613
11614
11615
11616  fi
11617
11618
11619
11620  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11621  echo "static = $modpath_static" >> $modpath_current/modules.mk
11622  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11623  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11624    if eval val=\"\$MOD_$var\"; test -n "$val"; then
11625      echo "MOD_$var = $val" >> $modpath_current/modules.mk
11626    fi
11627  done
11628  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11629    MODULE_DIRS="$MODULE_DIRS $current_dir"
11630  else
11631    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11632  fi
11633
11634  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11635
11636
11637
11638
11639
11640
11641  current_dir=cache
11642  modpath_current=modules/cache
11643  modpath_static=
11644  modpath_shared=
11645  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11646    eval MOD_$var=
11647  done
11648  test -d cache || $srcdir/build/mkdir.sh $modpath_current
11649  > $modpath_current/modules.mk
11650
11651
11652
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_file_cache" >&5
11654$as_echo_n "checking whether to enable mod_file_cache... " >&6; }
11655    # Check whether --enable-file-cache was given.
11656if test "${enable_file_cache+set}" = set; then :
11657  enableval=$enable_file_cache; force_file_cache=$enableval
11658else
11659  enable_file_cache=most
11660fi
11661
11662    _apmod_extra_msg=""
11663        case "$enable_file_cache" in
11664    yes|static|shared)
11665      _apmod_required="yes"
11666      ;;
11667    *)
11668      case "$module_selection" in
11669      reallyall|all|most)
11670        _apmod_required="no"
11671        ;;
11672      *)
11673        _apmod_required="yes"
11674        ;;
11675      esac
11676  esac
11677  if test "$enable_file_cache" = "static"; then
11678    enable_file_cache=static
11679  elif test "$enable_file_cache" = "yes"; then
11680    enable_file_cache=$module_default
11681  elif test "$enable_file_cache" = "most"; then
11682    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11683            "$module_selection" = "reallyall"
11684    then
11685      enable_file_cache=$module_default
11686    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11687      enable_file_cache=no
11688    fi
11689    _apmod_extra_msg=" ($module_selection)"
11690  elif test "$enable_file_cache" = "maybe-all"; then
11691    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11692    then
11693      enable_file_cache=$module_default
11694      _apmod_extra_msg=" ($module_selection)"
11695    else
11696      enable_file_cache=no
11697    fi
11698  elif test "$enable_file_cache" = "no" -a "$module_selection" = "reallyall" -a \
11699            "$force_file_cache" != "no" ; then
11700      enable_file_cache=$module_default
11701      _apmod_extra_msg=" ($module_selection)"
11702  fi
11703  if test "$enable_file_cache" != "no"; then
11704            :
11705  fi
11706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_file_cache$_apmod_extra_msg" >&5
11707$as_echo "$enable_file_cache$_apmod_extra_msg" >&6; }
11708  if test "$enable_file_cache" != "no"; then
11709    case "$enable_file_cache" in
11710    static*)
11711      MODLIST="$MODLIST file_cache"
11712      if test "file_cache" = "so"; then
11713          sharedobjs=yes
11714      fi
11715      shared="";;
11716    *)
11717      enable_file_cache=`echo $enable_file_cache|sed 's/shared,*//'`
11718      sharedobjs=yes
11719      shared=yes
11720      DSO_MODULES="$DSO_MODULES file_cache"
11721      if test "most" = "yes" ; then
11722        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},file_cache"
11723      fi
11724      ;;
11725    esac
11726
11727
11728  if test -z ""; then
11729    objects="mod_file_cache.lo"
11730  else
11731    objects=""
11732  fi
11733
11734  if test -z "$module_standalone"; then
11735    if test -z "$shared"; then
11736      # The filename of a convenience library must have a "lib" prefix:
11737      libname="libmod_file_cache.la"
11738      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11739      modpath_static="$modpath_static $libname"
11740      cat >>$modpath_current/modules.mk<<EOF
11741$libname: $objects
11742	\$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
11743EOF
11744      if test ! -z "\$(MOD_FILE_CACHE_LDADD)"; then
11745
11746  if test "x$AP_LIBS" = "x"; then
11747    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILE_CACHE_LDADD)\""
11748    AP_LIBS="\$(MOD_FILE_CACHE_LDADD)"
11749  else
11750    apr_addto_bugger="\$(MOD_FILE_CACHE_LDADD)"
11751    for i in $apr_addto_bugger; do
11752      apr_addto_duplicate="0"
11753      for j in $AP_LIBS; do
11754        if test "x$i" = "x$j"; then
11755          apr_addto_duplicate="1"
11756          break
11757        fi
11758      done
11759      if test $apr_addto_duplicate = "0"; then
11760        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11761        AP_LIBS="$AP_LIBS $i"
11762      fi
11763    done
11764  fi
11765
11766      fi
11767    else
11768      apache_need_shared=yes
11769      libname="mod_file_cache.la"
11770      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11771      modpath_shared="$modpath_shared $libname"
11772      cat >>$modpath_current/modules.mk<<EOF
11773$libname: $shobjects
11774	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILE_CACHE_LDADD)
11775EOF
11776    fi
11777  fi
11778
11779
11780  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"
11781
11782
11783
11784  fi
11785
11786
11787cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
11788cache_disk_objs="mod_cache_disk.lo"
11789cache_socache_objs="mod_cache_socache.lo"
11790
11791case "$host" in
11792  *os2*)
11793    # OS/2 DLLs must resolve all symbols at build time
11794    # and we need some from main cache module
11795    cache_disk_objs="$cache_disk_objs mod_cache.la"
11796    cache_socache_objs="$cache_socache_objs mod_cache.la"
11797    ;;
11798esac
11799
11800
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache" >&5
11802$as_echo_n "checking whether to enable mod_cache... " >&6; }
11803    # Check whether --enable-cache was given.
11804if test "${enable_cache+set}" = set; then :
11805  enableval=$enable_cache; force_cache=$enableval
11806else
11807  enable_cache=most
11808fi
11809
11810    _apmod_extra_msg=""
11811        case "$enable_cache" in
11812    yes|static|shared)
11813      _apmod_required="yes"
11814      ;;
11815    *)
11816      case "$module_selection" in
11817      reallyall|all|most)
11818        _apmod_required="no"
11819        ;;
11820      *)
11821        _apmod_required="yes"
11822        ;;
11823      esac
11824  esac
11825  if test "$enable_cache" = "static"; then
11826    enable_cache=static
11827  elif test "$enable_cache" = "yes"; then
11828    enable_cache=$module_default
11829  elif test "$enable_cache" = "most"; then
11830    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11831            "$module_selection" = "reallyall"
11832    then
11833      enable_cache=$module_default
11834    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11835      enable_cache=no
11836    fi
11837    _apmod_extra_msg=" ($module_selection)"
11838  elif test "$enable_cache" = "maybe-all"; then
11839    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11840    then
11841      enable_cache=$module_default
11842      _apmod_extra_msg=" ($module_selection)"
11843    else
11844      enable_cache=no
11845    fi
11846  elif test "$enable_cache" = "no" -a "$module_selection" = "reallyall" -a \
11847            "$force_cache" != "no" ; then
11848      enable_cache=$module_default
11849      _apmod_extra_msg=" ($module_selection)"
11850  fi
11851  if test "$enable_cache" != "no"; then
11852            :
11853  fi
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache$_apmod_extra_msg" >&5
11855$as_echo "$enable_cache$_apmod_extra_msg" >&6; }
11856  if test "$enable_cache" != "no"; then
11857    case "$enable_cache" in
11858    static*)
11859      MODLIST="$MODLIST cache"
11860      if test "cache" = "so"; then
11861          sharedobjs=yes
11862      fi
11863      shared="";;
11864    *)
11865      enable_cache=`echo $enable_cache|sed 's/shared,*//'`
11866      sharedobjs=yes
11867      shared=yes
11868      DSO_MODULES="$DSO_MODULES cache"
11869      if test "most" = "yes" ; then
11870        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache"
11871      fi
11872      ;;
11873    esac
11874
11875
11876  if test -z "$cache_objs"; then
11877    objects="mod_cache.lo"
11878  else
11879    objects="$cache_objs"
11880  fi
11881
11882  if test -z "$module_standalone"; then
11883    if test -z "$shared"; then
11884      # The filename of a convenience library must have a "lib" prefix:
11885      libname="libmod_cache.la"
11886      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11887      modpath_static="$modpath_static $libname"
11888      cat >>$modpath_current/modules.mk<<EOF
11889$libname: $objects
11890	\$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
11891EOF
11892      if test ! -z "\$(MOD_CACHE_LDADD)"; then
11893
11894  if test "x$AP_LIBS" = "x"; then
11895    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_LDADD)\""
11896    AP_LIBS="\$(MOD_CACHE_LDADD)"
11897  else
11898    apr_addto_bugger="\$(MOD_CACHE_LDADD)"
11899    for i in $apr_addto_bugger; do
11900      apr_addto_duplicate="0"
11901      for j in $AP_LIBS; do
11902        if test "x$i" = "x$j"; then
11903          apr_addto_duplicate="1"
11904          break
11905        fi
11906      done
11907      if test $apr_addto_duplicate = "0"; then
11908        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11909        AP_LIBS="$AP_LIBS $i"
11910      fi
11911    done
11912  fi
11913
11914      fi
11915    else
11916      apache_need_shared=yes
11917      libname="mod_cache.la"
11918      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11919      modpath_shared="$modpath_shared $libname"
11920      cat >>$modpath_current/modules.mk<<EOF
11921$libname: $shobjects
11922	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_LDADD)
11923EOF
11924    fi
11925  fi
11926
11927
11928  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"
11929
11930
11931
11932  fi
11933
11934
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
11936$as_echo_n "checking whether to enable mod_cache_disk... " >&6; }
11937    # Check whether --enable-cache-disk was given.
11938if test "${enable_cache_disk+set}" = set; then :
11939  enableval=$enable_cache_disk; force_cache_disk=$enableval
11940else
11941  enable_cache_disk=most
11942fi
11943
11944    _apmod_extra_msg=""
11945        case "$enable_cache_disk" in
11946    yes|static|shared)
11947      _apmod_required="yes"
11948      ;;
11949    *)
11950      case "$module_selection" in
11951      reallyall|all|most)
11952        _apmod_required="no"
11953        ;;
11954      *)
11955        _apmod_required="yes"
11956        ;;
11957      esac
11958  esac
11959  if test "$enable_cache_disk" = "static"; then
11960    enable_cache_disk=static
11961  elif test "$enable_cache_disk" = "yes"; then
11962    enable_cache_disk=$module_default
11963  elif test "$enable_cache_disk" = "most"; then
11964    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11965            "$module_selection" = "reallyall"
11966    then
11967      enable_cache_disk=$module_default
11968    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11969      enable_cache_disk=no
11970    fi
11971    _apmod_extra_msg=" ($module_selection)"
11972  elif test "$enable_cache_disk" = "maybe-all"; then
11973    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11974    then
11975      enable_cache_disk=$module_default
11976      _apmod_extra_msg=" ($module_selection)"
11977    else
11978      enable_cache_disk=no
11979    fi
11980  elif test "$enable_cache_disk" = "no" -a "$module_selection" = "reallyall" -a \
11981            "$force_cache_disk" != "no" ; then
11982      enable_cache_disk=$module_default
11983      _apmod_extra_msg=" ($module_selection)"
11984  fi
11985  if test "$enable_cache_disk" != "no"; then
11986            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
11987$as_echo "checking dependencies" >&6; }
11988            if test "$enable_cache" = "no" ; then
11989                              enable_cache_disk=no
11990                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&5
11991$as_echo "$as_me: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&2;}
11992                            elif test "$enable_cache_disk" = "static" && test "$enable_cache" != "static" ; then
11993                              enable_cache_disk=no
11994                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_cache_disk statically if mod_cache is built shared\"" >&5
11995$as_echo "$as_me: WARNING: \"cannot build mod_cache_disk statically if mod_cache is built shared\"" >&2;}
11996                            else
11997            :
11998            fi
11999            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
12000$as_echo_n "checking whether to enable mod_cache_disk... " >&6; }
12001            if test "$enable_cache_disk" = "no"; then
12002              if test "$_apmod_required" = "no"; then
12003                _apmod_extra_msg=" (disabled)"
12004              else
12005                as_fn_error $? "mod_cache_disk has been requested but can not be built due to prerequisite failures" "$LINENO" 5
12006              fi
12007            fi
12008  fi
12009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache_disk$_apmod_extra_msg" >&5
12010$as_echo "$enable_cache_disk$_apmod_extra_msg" >&6; }
12011  if test "$enable_cache_disk" != "no"; then
12012    case "$enable_cache_disk" in
12013    static*)
12014      MODLIST="$MODLIST cache_disk"
12015      if test "cache_disk" = "so"; then
12016          sharedobjs=yes
12017      fi
12018      shared="";;
12019    *)
12020      enable_cache_disk=`echo $enable_cache_disk|sed 's/shared,*//'`
12021      sharedobjs=yes
12022      shared=yes
12023      DSO_MODULES="$DSO_MODULES cache_disk"
12024      if test "most" = "yes" ; then
12025        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_disk"
12026      fi
12027      ;;
12028    esac
12029
12030
12031  if test -z "$cache_disk_objs"; then
12032    objects="mod_cache_disk.lo"
12033  else
12034    objects="$cache_disk_objs"
12035  fi
12036
12037  if test -z "$module_standalone"; then
12038    if test -z "$shared"; then
12039      # The filename of a convenience library must have a "lib" prefix:
12040      libname="libmod_cache_disk.la"
12041      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12042      modpath_static="$modpath_static $libname"
12043      cat >>$modpath_current/modules.mk<<EOF
12044$libname: $objects
12045	\$(MOD_LINK) $objects \$(MOD_CACHE_DISK_LDADD)
12046EOF
12047      if test ! -z "\$(MOD_CACHE_DISK_LDADD)"; then
12048
12049  if test "x$AP_LIBS" = "x"; then
12050    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_DISK_LDADD)\""
12051    AP_LIBS="\$(MOD_CACHE_DISK_LDADD)"
12052  else
12053    apr_addto_bugger="\$(MOD_CACHE_DISK_LDADD)"
12054    for i in $apr_addto_bugger; do
12055      apr_addto_duplicate="0"
12056      for j in $AP_LIBS; do
12057        if test "x$i" = "x$j"; then
12058          apr_addto_duplicate="1"
12059          break
12060        fi
12061      done
12062      if test $apr_addto_duplicate = "0"; then
12063        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12064        AP_LIBS="$AP_LIBS $i"
12065      fi
12066    done
12067  fi
12068
12069      fi
12070    else
12071      apache_need_shared=yes
12072      libname="mod_cache_disk.la"
12073      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12074      modpath_shared="$modpath_shared $libname"
12075      cat >>$modpath_current/modules.mk<<EOF
12076$libname: $shobjects
12077	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_DISK_LDADD)
12078EOF
12079    fi
12080  fi
12081
12082
12083  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_DISK_LDADD"
12084
12085
12086
12087  fi
12088
12089
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_socache" >&5
12091$as_echo_n "checking whether to enable mod_cache_socache... " >&6; }
12092    # Check whether --enable-cache-socache was given.
12093if test "${enable_cache_socache+set}" = set; then :
12094  enableval=$enable_cache_socache; force_cache_socache=$enableval
12095else
12096  enable_cache_socache=most
12097fi
12098
12099    _apmod_extra_msg=""
12100        case "$enable_cache_socache" in
12101    yes|static|shared)
12102      _apmod_required="yes"
12103      ;;
12104    *)
12105      case "$module_selection" in
12106      reallyall|all|most)
12107        _apmod_required="no"
12108        ;;
12109      *)
12110        _apmod_required="yes"
12111        ;;
12112      esac
12113  esac
12114  if test "$enable_cache_socache" = "static"; then
12115    enable_cache_socache=static
12116  elif test "$enable_cache_socache" = "yes"; then
12117    enable_cache_socache=$module_default
12118  elif test "$enable_cache_socache" = "most"; then
12119    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12120            "$module_selection" = "reallyall"
12121    then
12122      enable_cache_socache=$module_default
12123    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12124      enable_cache_socache=no
12125    fi
12126    _apmod_extra_msg=" ($module_selection)"
12127  elif test "$enable_cache_socache" = "maybe-all"; then
12128    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12129    then
12130      enable_cache_socache=$module_default
12131      _apmod_extra_msg=" ($module_selection)"
12132    else
12133      enable_cache_socache=no
12134    fi
12135  elif test "$enable_cache_socache" = "no" -a "$module_selection" = "reallyall" -a \
12136            "$force_cache_socache" != "no" ; then
12137      enable_cache_socache=$module_default
12138      _apmod_extra_msg=" ($module_selection)"
12139  fi
12140  if test "$enable_cache_socache" != "no"; then
12141            :
12142  fi
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache_socache$_apmod_extra_msg" >&5
12144$as_echo "$enable_cache_socache$_apmod_extra_msg" >&6; }
12145  if test "$enable_cache_socache" != "no"; then
12146    case "$enable_cache_socache" in
12147    static*)
12148      MODLIST="$MODLIST cache_socache"
12149      if test "cache_socache" = "so"; then
12150          sharedobjs=yes
12151      fi
12152      shared="";;
12153    *)
12154      enable_cache_socache=`echo $enable_cache_socache|sed 's/shared,*//'`
12155      sharedobjs=yes
12156      shared=yes
12157      DSO_MODULES="$DSO_MODULES cache_socache"
12158      if test "most" = "yes" ; then
12159        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_socache"
12160      fi
12161      ;;
12162    esac
12163
12164
12165  if test -z "$cache_socache_objs"; then
12166    objects="mod_cache_socache.lo"
12167  else
12168    objects="$cache_socache_objs"
12169  fi
12170
12171  if test -z "$module_standalone"; then
12172    if test -z "$shared"; then
12173      # The filename of a convenience library must have a "lib" prefix:
12174      libname="libmod_cache_socache.la"
12175      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12176      modpath_static="$modpath_static $libname"
12177      cat >>$modpath_current/modules.mk<<EOF
12178$libname: $objects
12179	\$(MOD_LINK) $objects \$(MOD_CACHE_SOCACHE_LDADD)
12180EOF
12181      if test ! -z "\$(MOD_CACHE_SOCACHE_LDADD)"; then
12182
12183  if test "x$AP_LIBS" = "x"; then
12184    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_SOCACHE_LDADD)\""
12185    AP_LIBS="\$(MOD_CACHE_SOCACHE_LDADD)"
12186  else
12187    apr_addto_bugger="\$(MOD_CACHE_SOCACHE_LDADD)"
12188    for i in $apr_addto_bugger; do
12189      apr_addto_duplicate="0"
12190      for j in $AP_LIBS; do
12191        if test "x$i" = "x$j"; then
12192          apr_addto_duplicate="1"
12193          break
12194        fi
12195      done
12196      if test $apr_addto_duplicate = "0"; then
12197        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12198        AP_LIBS="$AP_LIBS $i"
12199      fi
12200    done
12201  fi
12202
12203      fi
12204    else
12205      apache_need_shared=yes
12206      libname="mod_cache_socache.la"
12207      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12208      modpath_shared="$modpath_shared $libname"
12209      cat >>$modpath_current/modules.mk<<EOF
12210$libname: $shobjects
12211	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_SOCACHE_LDADD)
12212EOF
12213    fi
12214  fi
12215
12216
12217  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_SOCACHE_LDADD"
12218
12219
12220
12221  fi
12222
12223
12224
12225
12226
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_shmcb" >&5
12228$as_echo_n "checking whether to enable mod_socache_shmcb... " >&6; }
12229    # Check whether --enable-socache-shmcb was given.
12230if test "${enable_socache_shmcb+set}" = set; then :
12231  enableval=$enable_socache_shmcb; force_socache_shmcb=$enableval
12232else
12233  enable_socache_shmcb=most
12234fi
12235
12236    _apmod_extra_msg=""
12237        case "$enable_socache_shmcb" in
12238    yes|static|shared)
12239      _apmod_required="yes"
12240      ;;
12241    *)
12242      case "$module_selection" in
12243      reallyall|all|most)
12244        _apmod_required="no"
12245        ;;
12246      *)
12247        _apmod_required="yes"
12248        ;;
12249      esac
12250  esac
12251  if test "$enable_socache_shmcb" = "static"; then
12252    enable_socache_shmcb=static
12253  elif test "$enable_socache_shmcb" = "yes"; then
12254    enable_socache_shmcb=$module_default
12255  elif test "$enable_socache_shmcb" = "most"; then
12256    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12257            "$module_selection" = "reallyall"
12258    then
12259      enable_socache_shmcb=$module_default
12260    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12261      enable_socache_shmcb=no
12262    fi
12263    _apmod_extra_msg=" ($module_selection)"
12264  elif test "$enable_socache_shmcb" = "maybe-all"; then
12265    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12266    then
12267      enable_socache_shmcb=$module_default
12268      _apmod_extra_msg=" ($module_selection)"
12269    else
12270      enable_socache_shmcb=no
12271    fi
12272  elif test "$enable_socache_shmcb" = "no" -a "$module_selection" = "reallyall" -a \
12273            "$force_socache_shmcb" != "no" ; then
12274      enable_socache_shmcb=$module_default
12275      _apmod_extra_msg=" ($module_selection)"
12276  fi
12277  if test "$enable_socache_shmcb" != "no"; then
12278            :
12279  fi
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_shmcb$_apmod_extra_msg" >&5
12281$as_echo "$enable_socache_shmcb$_apmod_extra_msg" >&6; }
12282  if test "$enable_socache_shmcb" != "no"; then
12283    case "$enable_socache_shmcb" in
12284    static*)
12285      MODLIST="$MODLIST socache_shmcb"
12286      if test "socache_shmcb" = "so"; then
12287          sharedobjs=yes
12288      fi
12289      shared="";;
12290    *)
12291      enable_socache_shmcb=`echo $enable_socache_shmcb|sed 's/shared,*//'`
12292      sharedobjs=yes
12293      shared=yes
12294      DSO_MODULES="$DSO_MODULES socache_shmcb"
12295      if test "most" = "yes" ; then
12296        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_shmcb"
12297      fi
12298      ;;
12299    esac
12300
12301
12302  if test -z ""; then
12303    objects="mod_socache_shmcb.lo"
12304  else
12305    objects=""
12306  fi
12307
12308  if test -z "$module_standalone"; then
12309    if test -z "$shared"; then
12310      # The filename of a convenience library must have a "lib" prefix:
12311      libname="libmod_socache_shmcb.la"
12312      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12313      modpath_static="$modpath_static $libname"
12314      cat >>$modpath_current/modules.mk<<EOF
12315$libname: $objects
12316	\$(MOD_LINK) $objects \$(MOD_SOCACHE_SHMCB_LDADD)
12317EOF
12318      if test ! -z "\$(MOD_SOCACHE_SHMCB_LDADD)"; then
12319
12320  if test "x$AP_LIBS" = "x"; then
12321    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_SHMCB_LDADD)\""
12322    AP_LIBS="\$(MOD_SOCACHE_SHMCB_LDADD)"
12323  else
12324    apr_addto_bugger="\$(MOD_SOCACHE_SHMCB_LDADD)"
12325    for i in $apr_addto_bugger; do
12326      apr_addto_duplicate="0"
12327      for j in $AP_LIBS; do
12328        if test "x$i" = "x$j"; then
12329          apr_addto_duplicate="1"
12330          break
12331        fi
12332      done
12333      if test $apr_addto_duplicate = "0"; then
12334        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12335        AP_LIBS="$AP_LIBS $i"
12336      fi
12337    done
12338  fi
12339
12340      fi
12341    else
12342      apache_need_shared=yes
12343      libname="mod_socache_shmcb.la"
12344      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12345      modpath_shared="$modpath_shared $libname"
12346      cat >>$modpath_current/modules.mk<<EOF
12347$libname: $shobjects
12348	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_SHMCB_LDADD)
12349EOF
12350    fi
12351  fi
12352
12353
12354  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_SHMCB_LDADD"
12355
12356
12357
12358  fi
12359
12360
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dbm" >&5
12362$as_echo_n "checking whether to enable mod_socache_dbm... " >&6; }
12363    # Check whether --enable-socache-dbm was given.
12364if test "${enable_socache_dbm+set}" = set; then :
12365  enableval=$enable_socache_dbm; force_socache_dbm=$enableval
12366else
12367  enable_socache_dbm=most
12368fi
12369
12370    _apmod_extra_msg=""
12371        case "$enable_socache_dbm" in
12372    yes|static|shared)
12373      _apmod_required="yes"
12374      ;;
12375    *)
12376      case "$module_selection" in
12377      reallyall|all|most)
12378        _apmod_required="no"
12379        ;;
12380      *)
12381        _apmod_required="yes"
12382        ;;
12383      esac
12384  esac
12385  if test "$enable_socache_dbm" = "static"; then
12386    enable_socache_dbm=static
12387  elif test "$enable_socache_dbm" = "yes"; then
12388    enable_socache_dbm=$module_default
12389  elif test "$enable_socache_dbm" = "most"; then
12390    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12391            "$module_selection" = "reallyall"
12392    then
12393      enable_socache_dbm=$module_default
12394    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12395      enable_socache_dbm=no
12396    fi
12397    _apmod_extra_msg=" ($module_selection)"
12398  elif test "$enable_socache_dbm" = "maybe-all"; then
12399    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12400    then
12401      enable_socache_dbm=$module_default
12402      _apmod_extra_msg=" ($module_selection)"
12403    else
12404      enable_socache_dbm=no
12405    fi
12406  elif test "$enable_socache_dbm" = "no" -a "$module_selection" = "reallyall" -a \
12407            "$force_socache_dbm" != "no" ; then
12408      enable_socache_dbm=$module_default
12409      _apmod_extra_msg=" ($module_selection)"
12410  fi
12411  if test "$enable_socache_dbm" != "no"; then
12412            :
12413  fi
12414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dbm$_apmod_extra_msg" >&5
12415$as_echo "$enable_socache_dbm$_apmod_extra_msg" >&6; }
12416  if test "$enable_socache_dbm" != "no"; then
12417    case "$enable_socache_dbm" in
12418    static*)
12419      MODLIST="$MODLIST socache_dbm"
12420      if test "socache_dbm" = "so"; then
12421          sharedobjs=yes
12422      fi
12423      shared="";;
12424    *)
12425      enable_socache_dbm=`echo $enable_socache_dbm|sed 's/shared,*//'`
12426      sharedobjs=yes
12427      shared=yes
12428      DSO_MODULES="$DSO_MODULES socache_dbm"
12429      if test "most" = "yes" ; then
12430        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dbm"
12431      fi
12432      ;;
12433    esac
12434
12435
12436  if test -z ""; then
12437    objects="mod_socache_dbm.lo"
12438  else
12439    objects=""
12440  fi
12441
12442  if test -z "$module_standalone"; then
12443    if test -z "$shared"; then
12444      # The filename of a convenience library must have a "lib" prefix:
12445      libname="libmod_socache_dbm.la"
12446      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12447      modpath_static="$modpath_static $libname"
12448      cat >>$modpath_current/modules.mk<<EOF
12449$libname: $objects
12450	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DBM_LDADD)
12451EOF
12452      if test ! -z "\$(MOD_SOCACHE_DBM_LDADD)"; then
12453
12454  if test "x$AP_LIBS" = "x"; then
12455    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DBM_LDADD)\""
12456    AP_LIBS="\$(MOD_SOCACHE_DBM_LDADD)"
12457  else
12458    apr_addto_bugger="\$(MOD_SOCACHE_DBM_LDADD)"
12459    for i in $apr_addto_bugger; do
12460      apr_addto_duplicate="0"
12461      for j in $AP_LIBS; do
12462        if test "x$i" = "x$j"; then
12463          apr_addto_duplicate="1"
12464          break
12465        fi
12466      done
12467      if test $apr_addto_duplicate = "0"; then
12468        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12469        AP_LIBS="$AP_LIBS $i"
12470      fi
12471    done
12472  fi
12473
12474      fi
12475    else
12476      apache_need_shared=yes
12477      libname="mod_socache_dbm.la"
12478      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12479      modpath_shared="$modpath_shared $libname"
12480      cat >>$modpath_current/modules.mk<<EOF
12481$libname: $shobjects
12482	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DBM_LDADD)
12483EOF
12484    fi
12485  fi
12486
12487
12488  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DBM_LDADD"
12489
12490
12491
12492  fi
12493
12494
12495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_memcache" >&5
12496$as_echo_n "checking whether to enable mod_socache_memcache... " >&6; }
12497    # Check whether --enable-socache-memcache was given.
12498if test "${enable_socache_memcache+set}" = set; then :
12499  enableval=$enable_socache_memcache; force_socache_memcache=$enableval
12500else
12501  enable_socache_memcache=most
12502fi
12503
12504    _apmod_extra_msg=""
12505        case "$enable_socache_memcache" in
12506    yes|static|shared)
12507      _apmod_required="yes"
12508      ;;
12509    *)
12510      case "$module_selection" in
12511      reallyall|all|most)
12512        _apmod_required="no"
12513        ;;
12514      *)
12515        _apmod_required="yes"
12516        ;;
12517      esac
12518  esac
12519  if test "$enable_socache_memcache" = "static"; then
12520    enable_socache_memcache=static
12521  elif test "$enable_socache_memcache" = "yes"; then
12522    enable_socache_memcache=$module_default
12523  elif test "$enable_socache_memcache" = "most"; then
12524    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12525            "$module_selection" = "reallyall"
12526    then
12527      enable_socache_memcache=$module_default
12528    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12529      enable_socache_memcache=no
12530    fi
12531    _apmod_extra_msg=" ($module_selection)"
12532  elif test "$enable_socache_memcache" = "maybe-all"; then
12533    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12534    then
12535      enable_socache_memcache=$module_default
12536      _apmod_extra_msg=" ($module_selection)"
12537    else
12538      enable_socache_memcache=no
12539    fi
12540  elif test "$enable_socache_memcache" = "no" -a "$module_selection" = "reallyall" -a \
12541            "$force_socache_memcache" != "no" ; then
12542      enable_socache_memcache=$module_default
12543      _apmod_extra_msg=" ($module_selection)"
12544  fi
12545  if test "$enable_socache_memcache" != "no"; then
12546            :
12547  fi
12548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_memcache$_apmod_extra_msg" >&5
12549$as_echo "$enable_socache_memcache$_apmod_extra_msg" >&6; }
12550  if test "$enable_socache_memcache" != "no"; then
12551    case "$enable_socache_memcache" in
12552    static*)
12553      MODLIST="$MODLIST socache_memcache"
12554      if test "socache_memcache" = "so"; then
12555          sharedobjs=yes
12556      fi
12557      shared="";;
12558    *)
12559      enable_socache_memcache=`echo $enable_socache_memcache|sed 's/shared,*//'`
12560      sharedobjs=yes
12561      shared=yes
12562      DSO_MODULES="$DSO_MODULES socache_memcache"
12563      if test "most" = "yes" ; then
12564        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_memcache"
12565      fi
12566      ;;
12567    esac
12568
12569
12570  if test -z ""; then
12571    objects="mod_socache_memcache.lo"
12572  else
12573    objects=""
12574  fi
12575
12576  if test -z "$module_standalone"; then
12577    if test -z "$shared"; then
12578      # The filename of a convenience library must have a "lib" prefix:
12579      libname="libmod_socache_memcache.la"
12580      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12581      modpath_static="$modpath_static $libname"
12582      cat >>$modpath_current/modules.mk<<EOF
12583$libname: $objects
12584	\$(MOD_LINK) $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
12585EOF
12586      if test ! -z "\$(MOD_SOCACHE_MEMCACHE_LDADD)"; then
12587
12588  if test "x$AP_LIBS" = "x"; then
12589    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_MEMCACHE_LDADD)\""
12590    AP_LIBS="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
12591  else
12592    apr_addto_bugger="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
12593    for i in $apr_addto_bugger; do
12594      apr_addto_duplicate="0"
12595      for j in $AP_LIBS; do
12596        if test "x$i" = "x$j"; then
12597          apr_addto_duplicate="1"
12598          break
12599        fi
12600      done
12601      if test $apr_addto_duplicate = "0"; then
12602        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12603        AP_LIBS="$AP_LIBS $i"
12604      fi
12605    done
12606  fi
12607
12608      fi
12609    else
12610      apache_need_shared=yes
12611      libname="mod_socache_memcache.la"
12612      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12613      modpath_shared="$modpath_shared $libname"
12614      cat >>$modpath_current/modules.mk<<EOF
12615$libname: $shobjects
12616	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
12617EOF
12618    fi
12619  fi
12620
12621
12622  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_MEMCACHE_LDADD"
12623
12624
12625
12626  fi
12627
12628
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
12630$as_echo_n "checking whether to enable mod_socache_dc... " >&6; }
12631    # Check whether --enable-socache-dc was given.
12632if test "${enable_socache_dc+set}" = set; then :
12633  enableval=$enable_socache_dc; force_socache_dc=$enableval
12634else
12635  enable_socache_dc=no
12636fi
12637
12638    _apmod_extra_msg=""
12639        case "$enable_socache_dc" in
12640    yes|static|shared)
12641      _apmod_required="yes"
12642      ;;
12643    *)
12644      case "$module_selection" in
12645      reallyall|all|most)
12646        _apmod_required="no"
12647        ;;
12648      *)
12649        _apmod_required="yes"
12650        ;;
12651      esac
12652  esac
12653  if test "$enable_socache_dc" = "static"; then
12654    enable_socache_dc=static
12655  elif test "$enable_socache_dc" = "yes"; then
12656    enable_socache_dc=$module_default
12657  elif test "$enable_socache_dc" = "most"; then
12658    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12659            "$module_selection" = "reallyall"
12660    then
12661      enable_socache_dc=$module_default
12662    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12663      enable_socache_dc=no
12664    fi
12665    _apmod_extra_msg=" ($module_selection)"
12666  elif test "$enable_socache_dc" = "maybe-all"; then
12667    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12668    then
12669      enable_socache_dc=$module_default
12670      _apmod_extra_msg=" ($module_selection)"
12671    else
12672      enable_socache_dc=no
12673    fi
12674  elif test "$enable_socache_dc" = "no" -a "$module_selection" = "reallyall" -a \
12675            "$force_socache_dc" != "no" ; then
12676      enable_socache_dc=$module_default
12677      _apmod_extra_msg=" ($module_selection)"
12678  fi
12679  if test "$enable_socache_dc" != "no"; then
12680            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
12681$as_echo "checking dependencies" >&6; }
12682            :
12683
12684
12685if test "x$ap_distcache_configured" = "x"; then
12686    ap_distcache_found=""
12687  ap_distcache_base=""
12688  ap_distcache_libs=""
12689  ap_distcache_ldflags=""
12690  ap_distcache_with=""
12691
12692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-provided distcache base" >&5
12693$as_echo_n "checking for user-provided distcache base... " >&6; }
12694
12695# Check whether --with-distcache was given.
12696if test "${with_distcache+set}" = set; then :
12697  withval=$with_distcache;
12698        if test "x$withval" != "xyes" -a "x$withval" != "x"; then
12699            ap_distcache_with="yes"
12700      ap_distcache_base="`cd $withval ; pwd`"
12701    fi
12702
12703fi
12704
12705  if test "x$ap_distcache_base" = "x"; then
12706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12707$as_echo "none" >&6; }
12708  else
12709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_base" >&5
12710$as_echo "$ap_distcache_base" >&6; }
12711  fi
12712
12713    saved_CPPFLAGS="$CPPFLAGS"
12714  saved_LIBS="$LIBS"
12715  saved_LDFLAGS="$LDFLAGS"
12716
12717  if test "x$ap_distcache_base" != "x"; then
12718
12719  if test "x$CPPFLAGS" = "x"; then
12720    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_distcache_base/include\""
12721    CPPFLAGS="-I$ap_distcache_base/include"
12722  else
12723    apr_addto_bugger="-I$ap_distcache_base/include"
12724    for i in $apr_addto_bugger; do
12725      apr_addto_duplicate="0"
12726      for j in $CPPFLAGS; do
12727        if test "x$i" = "x$j"; then
12728          apr_addto_duplicate="1"
12729          break
12730        fi
12731      done
12732      if test $apr_addto_duplicate = "0"; then
12733        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
12734        CPPFLAGS="$CPPFLAGS $i"
12735      fi
12736    done
12737  fi
12738
12739
12740  if test "x$MOD_INCLUDES" = "x"; then
12741    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I$ap_distcache_base/include\""
12742    MOD_INCLUDES="-I$ap_distcache_base/include"
12743  else
12744    apr_addto_bugger="-I$ap_distcache_base/include"
12745    for i in $apr_addto_bugger; do
12746      apr_addto_duplicate="0"
12747      for j in $MOD_INCLUDES; do
12748        if test "x$i" = "x$j"; then
12749          apr_addto_duplicate="1"
12750          break
12751        fi
12752      done
12753      if test $apr_addto_duplicate = "0"; then
12754        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
12755        MOD_INCLUDES="$MOD_INCLUDES $i"
12756      fi
12757    done
12758  fi
12759
12760
12761  if test "x$LDFLAGS" = "x"; then
12762    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_distcache_base/lib\""
12763    LDFLAGS="-L$ap_distcache_base/lib"
12764  else
12765    apr_addto_bugger="-L$ap_distcache_base/lib"
12766    for i in $apr_addto_bugger; do
12767      apr_addto_duplicate="0"
12768      for j in $LDFLAGS; do
12769        if test "x$i" = "x$j"; then
12770          apr_addto_duplicate="1"
12771          break
12772        fi
12773      done
12774      if test $apr_addto_duplicate = "0"; then
12775        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
12776        LDFLAGS="$LDFLAGS $i"
12777      fi
12778    done
12779  fi
12780
12781
12782  if test "x$ap_distcache_ldflags" = "x"; then
12783    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"-L$ap_distcache_base/lib\""
12784    ap_distcache_ldflags="-L$ap_distcache_base/lib"
12785  else
12786    apr_addto_bugger="-L$ap_distcache_base/lib"
12787    for i in $apr_addto_bugger; do
12788      apr_addto_duplicate="0"
12789      for j in $ap_distcache_ldflags; do
12790        if test "x$i" = "x$j"; then
12791          apr_addto_duplicate="1"
12792          break
12793        fi
12794      done
12795      if test $apr_addto_duplicate = "0"; then
12796        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
12797        ap_distcache_ldflags="$ap_distcache_ldflags $i"
12798      fi
12799    done
12800  fi
12801
12802    if test "x$ap_platform_runtime_link_flag" != "x"; then
12803
12804  if test "x$LDFLAGS" = "x"; then
12805    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
12806    LDFLAGS="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12807  else
12808    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12809    for i in $apr_addto_bugger; do
12810      apr_addto_duplicate="0"
12811      for j in $LDFLAGS; do
12812        if test "x$i" = "x$j"; then
12813          apr_addto_duplicate="1"
12814          break
12815        fi
12816      done
12817      if test $apr_addto_duplicate = "0"; then
12818        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
12819        LDFLAGS="$LDFLAGS $i"
12820      fi
12821    done
12822  fi
12823
12824
12825  if test "x$ap_distcache_ldflags" = "x"; then
12826    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
12827    ap_distcache_ldflags="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12828  else
12829    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12830    for i in $apr_addto_bugger; do
12831      apr_addto_duplicate="0"
12832      for j in $ap_distcache_ldflags; do
12833        if test "x$i" = "x$j"; then
12834          apr_addto_duplicate="1"
12835          break
12836        fi
12837      done
12838      if test $apr_addto_duplicate = "0"; then
12839        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
12840        ap_distcache_ldflags="$ap_distcache_ldflags $i"
12841      fi
12842    done
12843  fi
12844
12845    fi
12846  fi
12847    for ac_header in distcache/dc_client.h
12848do :
12849  ac_fn_c_check_header_mongrel "$LINENO" "distcache/dc_client.h" "ac_cv_header_distcache_dc_client_h" "$ac_includes_default"
12850if test "x$ac_cv_header_distcache_dc_client_h" = xyes; then :
12851  cat >>confdefs.h <<_ACEOF
12852#define HAVE_DISTCACHE_DC_CLIENT_H 1
12853_ACEOF
12854 ap_distcache_found="yes"
12855fi
12856
12857done
12858
12859  if test "$ap_distcache_found" = "yes"; then
12860        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for distcache version" >&5
12861$as_echo_n "checking for distcache version... " >&6; }
12862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863/* end confdefs.h.  */
12864#include <distcache/dc_client.h>
12865int
12866main ()
12867{
12868
12869#if DISTCACHE_CLIENT_API != 0x0001
12870#error "distcache API version is unrecognised"
12871#endif
12872  ;
12873  return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_compile "$LINENO"; then :
12877
12878else
12879  ap_distcache_found="no"
12880fi
12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
12883$as_echo "$ap_distcache_found" >&6; }
12884  fi
12885  if test "$ap_distcache_found" != "yes"; then
12886    if test "x$ap_distcache_with" = "x"; then
12887      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ...No distcache detected" >&5
12888$as_echo "$as_me: WARNING: ...No distcache detected" >&2;}
12889    else
12890      as_fn_error $? "...No distcache detected" "$LINENO" 5
12891    fi
12892  else
12893        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for distcache libraries" >&5
12894$as_echo_n "checking for distcache libraries... " >&6; }
12895    ap_distcache_libs="-ldistcache -lnal"
12896
12897  if test "x$LIBS" = "x"; then
12898    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_distcache_libs\""
12899    LIBS="$ap_distcache_libs"
12900  else
12901    apr_addto_bugger="$ap_distcache_libs"
12902    for i in $apr_addto_bugger; do
12903      apr_addto_duplicate="0"
12904      for j in $LIBS; do
12905        if test "x$i" = "x$j"; then
12906          apr_addto_duplicate="1"
12907          break
12908        fi
12909      done
12910      if test $apr_addto_duplicate = "0"; then
12911        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
12912        LIBS="$LIBS $i"
12913      fi
12914    done
12915  fi
12916
12917
12918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919/* end confdefs.h.  */
12920#include <distcache/dc_client.h>
12921int
12922main ()
12923{
12924DC_CTX *foo = DC_CTX_new((const char *)0,0);
12925  ;
12926  return 0;
12927}
12928_ACEOF
12929if ac_fn_c_try_link "$LINENO"; then :
12930
12931else
12932  ap_distcache_found="no"
12933fi
12934rm -f core conftest.err conftest.$ac_objext \
12935    conftest$ac_exeext conftest.$ac_ext
12936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
12937$as_echo "$ap_distcache_found" >&6; }
12938    if test "$ap_distcache_found" != "yes"; then
12939      if test "x$ap_distcache_base" = "x"; then
12940        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, distcache libraries were missing or unusable" >&5
12941$as_echo "$as_me: WARNING: ... Error, distcache libraries were missing or unusable" >&2;}
12942      else
12943        as_fn_error $? "... Error, distcache libraries were missing or unusable" "$LINENO" 5
12944      fi
12945    fi
12946  fi
12947
12948    CPPFLAGS="$saved_CPPFLAGS"
12949  LIBS="$saved_LIBS"
12950  LDFLAGS="$saved_LDFLAGS"
12951
12952    if test "$ap_distcache_found" = "yes"; then
12953
12954  if test "x$MOD_SOCACHE_DC_LDADD" = "x"; then
12955    test "x$silent" != "xyes" && echo "  setting MOD_SOCACHE_DC_LDADD to \"$ap_distcache_ldflags $ap_distcache_libs\""
12956    MOD_SOCACHE_DC_LDADD="$ap_distcache_ldflags $ap_distcache_libs"
12957  else
12958    apr_addto_bugger="$ap_distcache_ldflags $ap_distcache_libs"
12959    for i in $apr_addto_bugger; do
12960      apr_addto_duplicate="0"
12961      for j in $MOD_SOCACHE_DC_LDADD; do
12962        if test "x$i" = "x$j"; then
12963          apr_addto_duplicate="1"
12964          break
12965        fi
12966      done
12967      if test $apr_addto_duplicate = "0"; then
12968        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SOCACHE_DC_LDADD"
12969        MOD_SOCACHE_DC_LDADD="$MOD_SOCACHE_DC_LDADD $i"
12970      fi
12971    done
12972  fi
12973
12974
12975$as_echo "#define HAVE_DISTCACHE 1" >>confdefs.h
12976
12977  else
12978    enable_socache_dc=no
12979  fi
12980  ap_distcache_configured="yes"
12981fi
12982
12983
12984            :
12985            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
12986$as_echo_n "checking whether to enable mod_socache_dc... " >&6; }
12987            if test "$enable_socache_dc" = "no"; then
12988              if test "$_apmod_required" = "no"; then
12989                _apmod_extra_msg=" (disabled)"
12990              else
12991                as_fn_error $? "mod_socache_dc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
12992              fi
12993            fi
12994  fi
12995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dc$_apmod_extra_msg" >&5
12996$as_echo "$enable_socache_dc$_apmod_extra_msg" >&6; }
12997  if test "$enable_socache_dc" != "no"; then
12998    case "$enable_socache_dc" in
12999    static*)
13000      MODLIST="$MODLIST socache_dc"
13001      if test "socache_dc" = "so"; then
13002          sharedobjs=yes
13003      fi
13004      shared="";;
13005    *)
13006      enable_socache_dc=`echo $enable_socache_dc|sed 's/shared,*//'`
13007      sharedobjs=yes
13008      shared=yes
13009      DSO_MODULES="$DSO_MODULES socache_dc"
13010      if test "no" = "yes" ; then
13011        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dc"
13012      fi
13013      ;;
13014    esac
13015
13016
13017  if test -z ""; then
13018    objects="mod_socache_dc.lo"
13019  else
13020    objects=""
13021  fi
13022
13023  if test -z "$module_standalone"; then
13024    if test -z "$shared"; then
13025      # The filename of a convenience library must have a "lib" prefix:
13026      libname="libmod_socache_dc.la"
13027      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13028      modpath_static="$modpath_static $libname"
13029      cat >>$modpath_current/modules.mk<<EOF
13030$libname: $objects
13031	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DC_LDADD)
13032EOF
13033      if test ! -z "\$(MOD_SOCACHE_DC_LDADD)"; then
13034
13035  if test "x$AP_LIBS" = "x"; then
13036    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DC_LDADD)\""
13037    AP_LIBS="\$(MOD_SOCACHE_DC_LDADD)"
13038  else
13039    apr_addto_bugger="\$(MOD_SOCACHE_DC_LDADD)"
13040    for i in $apr_addto_bugger; do
13041      apr_addto_duplicate="0"
13042      for j in $AP_LIBS; do
13043        if test "x$i" = "x$j"; then
13044          apr_addto_duplicate="1"
13045          break
13046        fi
13047      done
13048      if test $apr_addto_duplicate = "0"; then
13049        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13050        AP_LIBS="$AP_LIBS $i"
13051      fi
13052    done
13053  fi
13054
13055      fi
13056    else
13057      apache_need_shared=yes
13058      libname="mod_socache_dc.la"
13059      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13060      modpath_shared="$modpath_shared $libname"
13061      cat >>$modpath_current/modules.mk<<EOF
13062$libname: $shobjects
13063	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DC_LDADD)
13064EOF
13065    fi
13066  fi
13067
13068
13069  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DC_LDADD"
13070
13071
13072
13073  fi
13074
13075
13076
13077  if test "x$INCLUDES" = "x"; then
13078    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13079    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13080  else
13081    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13082    for i in $apr_addto_bugger; do
13083      apr_addto_duplicate="0"
13084      for j in $INCLUDES; do
13085        if test "x$i" = "x$j"; then
13086          apr_addto_duplicate="1"
13087          break
13088        fi
13089      done
13090      if test $apr_addto_duplicate = "0"; then
13091        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13092        INCLUDES="$INCLUDES $i"
13093      fi
13094    done
13095  fi
13096
13097
13098
13099  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13100  echo "static = $modpath_static" >> $modpath_current/modules.mk
13101  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13102  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13103    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13104      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13105    fi
13106  done
13107  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13108    MODULE_DIRS="$MODULE_DIRS $current_dir"
13109  else
13110    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13111  fi
13112
13113  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13114
13115
13116
13117
13118
13119
13120  current_dir=core
13121  modpath_current=modules/core
13122  modpath_static=
13123  modpath_shared=
13124  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13125    eval MOD_$var=
13126  done
13127  test -d core || $srcdir/build/mkdir.sh $modpath_current
13128  > $modpath_current/modules.mk
13129
13130
13131
13132apr_old_cppflags=$CPPFLAGS
13133CPPFLAGS="$CPPFLAGS $INCLUDES"
13134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136
13137#include <apr.h>
13138#if APR_HAS_DSO
13139YES_IS_DEFINED
13140#endif
13141
13142_ACEOF
13143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13144  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13145  ac_cv_define_APR_HAS_DSO=yes
13146else
13147  ac_cv_define_APR_HAS_DSO=no
13148fi
13149rm -f conftest*
13150
13151CPPFLAGS=$apr_old_cppflags
13152
13153
13154case "x$enable_so" in
13155    "xyes")
13156        if test $ac_cv_define_APR_HAS_DSO = "no"; then
13157            as_fn_error $? "mod_so has been requested but cannot be built on your system" "$LINENO" 5
13158        fi
13159        ;;
13160    "xshared")
13161        as_fn_error $? "mod_so can not be built as a shared DSO" "$LINENO" 5
13162        ;;
13163    "xno")
13164        ;;
13165    "x")
13166        enable_so=$ac_cv_define_APR_HAS_DSO
13167        ;;
13168esac
13169
13170if test "x$enable_so" = "xyes"; then
13171    enable_so="static"
13172fi
13173
13174if test "x$enable_so" = "xstatic"; then
13175
13176  if test "x$HTTPD_LDFLAGS" = "x"; then
13177    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-export-dynamic\""
13178    HTTPD_LDFLAGS="-export-dynamic"
13179  else
13180    apr_addto_bugger="-export-dynamic"
13181    for i in $apr_addto_bugger; do
13182      apr_addto_duplicate="0"
13183      for j in $HTTPD_LDFLAGS; do
13184        if test "x$i" = "x$j"; then
13185          apr_addto_duplicate="1"
13186          break
13187        fi
13188      done
13189      if test $apr_addto_duplicate = "0"; then
13190        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
13191        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
13192      fi
13193    done
13194  fi
13195
13196    INSTALL_DSO=yes
13197else
13198    INSTALL_DSO=no
13199fi
13200
13201  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_DSO"
13202
13203
13204
13205if test "$sharedobjs" = "yes"; then
13206    if test $ac_cv_define_APR_HAS_DSO = "no"; then
13207        as_fn_error $? "shared objects have been requested but cannot be built since mod_so cannot be built" "$LINENO" 5
13208    elif test $enable_so = "no"; then
13209        as_fn_error $? "shared objects have been requested but cannot be built since mod_so was disabled" "$LINENO" 5
13210    fi
13211fi
13212
13213
13214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_so" >&5
13215$as_echo_n "checking whether to enable mod_so... " >&6; }
13216    # Check whether --enable-so was given.
13217if test "${enable_so+set}" = set; then :
13218  enableval=$enable_so; force_so=$enableval
13219else
13220  enable_so=$enable_so
13221fi
13222
13223    _apmod_extra_msg=""
13224        case "$enable_so" in
13225    yes|static|shared)
13226      _apmod_required="yes"
13227      ;;
13228    *)
13229      case "$module_selection" in
13230      reallyall|all|most)
13231        _apmod_required="no"
13232        ;;
13233      *)
13234        _apmod_required="yes"
13235        ;;
13236      esac
13237  esac
13238  if test "$enable_so" = "static"; then
13239    enable_so=static
13240  elif test "$enable_so" = "yes"; then
13241    enable_so=$module_default
13242  elif test "$enable_so" = "most"; then
13243    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13244            "$module_selection" = "reallyall"
13245    then
13246      enable_so=$module_default
13247    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13248      enable_so=no
13249    fi
13250    _apmod_extra_msg=" ($module_selection)"
13251  elif test "$enable_so" = "maybe-all"; then
13252    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13253    then
13254      enable_so=$module_default
13255      _apmod_extra_msg=" ($module_selection)"
13256    else
13257      enable_so=no
13258    fi
13259  elif test "$enable_so" = "no" -a "$module_selection" = "reallyall" -a \
13260            "$force_so" != "no" ; then
13261      enable_so=$module_default
13262      _apmod_extra_msg=" ($module_selection)"
13263  fi
13264  if test "$enable_so" != "no"; then
13265            :
13266  fi
13267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_so$_apmod_extra_msg" >&5
13268$as_echo "$enable_so$_apmod_extra_msg" >&6; }
13269  if test "$enable_so" != "no"; then
13270    case "$enable_so" in
13271    static*)
13272      MODLIST="$MODLIST so"
13273      if test "so" = "so"; then
13274          sharedobjs=yes
13275      fi
13276      shared="";;
13277    *)
13278      enable_so=`echo $enable_so|sed 's/shared,*//'`
13279      sharedobjs=yes
13280      shared=yes
13281      DSO_MODULES="$DSO_MODULES so"
13282      if test "$enable_so" = "yes" ; then
13283        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},so"
13284      fi
13285      ;;
13286    esac
13287
13288
13289  if test -z ""; then
13290    objects="mod_so.lo"
13291  else
13292    objects=""
13293  fi
13294
13295  if test -z "$module_standalone"; then
13296    if test -z "$shared"; then
13297      # The filename of a convenience library must have a "lib" prefix:
13298      libname="libmod_so.la"
13299      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13300      modpath_static="$modpath_static $libname"
13301      cat >>$modpath_current/modules.mk<<EOF
13302$libname: $objects
13303	\$(MOD_LINK) $objects \$(MOD_SO_LDADD)
13304EOF
13305      if test ! -z "\$(MOD_SO_LDADD)"; then
13306
13307  if test "x$AP_LIBS" = "x"; then
13308    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SO_LDADD)\""
13309    AP_LIBS="\$(MOD_SO_LDADD)"
13310  else
13311    apr_addto_bugger="\$(MOD_SO_LDADD)"
13312    for i in $apr_addto_bugger; do
13313      apr_addto_duplicate="0"
13314      for j in $AP_LIBS; do
13315        if test "x$i" = "x$j"; then
13316          apr_addto_duplicate="1"
13317          break
13318        fi
13319      done
13320      if test $apr_addto_duplicate = "0"; then
13321        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13322        AP_LIBS="$AP_LIBS $i"
13323      fi
13324    done
13325  fi
13326
13327      fi
13328    else
13329      apache_need_shared=yes
13330      libname="mod_so.la"
13331      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13332      modpath_shared="$modpath_shared $libname"
13333      cat >>$modpath_current/modules.mk<<EOF
13334$libname: $shobjects
13335	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SO_LDADD)
13336EOF
13337    fi
13338  fi
13339
13340
13341  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"
13342
13343
13344
13345  fi
13346
13347
13348
13349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
13350$as_echo_n "checking whether to enable mod_watchdog... " >&6; }
13351    # Check whether --enable-watchdog was given.
13352if test "${enable_watchdog+set}" = set; then :
13353  enableval=$enable_watchdog; force_watchdog=$enableval
13354else
13355  enable_watchdog=maybe-all
13356fi
13357
13358    _apmod_extra_msg=""
13359        case "$enable_watchdog" in
13360    yes|static|shared)
13361      _apmod_required="yes"
13362      ;;
13363    *)
13364      case "$module_selection" in
13365      reallyall|all|most)
13366        _apmod_required="no"
13367        ;;
13368      *)
13369        _apmod_required="yes"
13370        ;;
13371      esac
13372  esac
13373  if test "$enable_watchdog" = "static"; then
13374    enable_watchdog=static
13375  elif test "$enable_watchdog" = "yes"; then
13376    enable_watchdog=$module_default
13377  elif test "$enable_watchdog" = "most"; then
13378    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13379            "$module_selection" = "reallyall"
13380    then
13381      enable_watchdog=$module_default
13382    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13383      enable_watchdog=no
13384    fi
13385    _apmod_extra_msg=" ($module_selection)"
13386  elif test "$enable_watchdog" = "maybe-all"; then
13387    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13388    then
13389      enable_watchdog=$module_default
13390      _apmod_extra_msg=" ($module_selection)"
13391    else
13392      enable_watchdog=no
13393    fi
13394  elif test "$enable_watchdog" = "no" -a "$module_selection" = "reallyall" -a \
13395            "$force_watchdog" != "no" ; then
13396      enable_watchdog=$module_default
13397      _apmod_extra_msg=" ($module_selection)"
13398  fi
13399  if test "$enable_watchdog" != "no"; then
13400            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
13401$as_echo "checking dependencies" >&6; }
13402            :
13403
13404
13405apr_old_cppflags=$CPPFLAGS
13406CPPFLAGS="$CPPFLAGS $INCLUDES"
13407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h.  */
13409
13410#include <apr.h>
13411#if APR_HAS_THREADS
13412YES_IS_DEFINED
13413#endif
13414
13415_ACEOF
13416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13417  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13418  ac_cv_define_APR_HAS_THREADS=yes
13419else
13420  ac_cv_define_APR_HAS_THREADS=no
13421fi
13422rm -f conftest*
13423
13424CPPFLAGS=$apr_old_cppflags
13425
13426    if test $ac_cv_define_APR_HAS_THREADS = "no"; then
13427        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&5
13428$as_echo "$as_me: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&2;}
13429        enable_watchdog=no
13430    fi
13431
13432            :
13433            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
13434$as_echo_n "checking whether to enable mod_watchdog... " >&6; }
13435            if test "$enable_watchdog" = "no"; then
13436              if test "$_apmod_required" = "no"; then
13437                _apmod_extra_msg=" (disabled)"
13438              else
13439                as_fn_error $? "mod_watchdog has been requested but can not be built due to prerequisite failures" "$LINENO" 5
13440              fi
13441            fi
13442  fi
13443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_watchdog$_apmod_extra_msg" >&5
13444$as_echo "$enable_watchdog$_apmod_extra_msg" >&6; }
13445  if test "$enable_watchdog" != "no"; then
13446    case "$enable_watchdog" in
13447    static*)
13448      MODLIST="$MODLIST watchdog"
13449      if test "watchdog" = "so"; then
13450          sharedobjs=yes
13451      fi
13452      shared="";;
13453    *)
13454      enable_watchdog=`echo $enable_watchdog|sed 's/shared,*//'`
13455      sharedobjs=yes
13456      shared=yes
13457      DSO_MODULES="$DSO_MODULES watchdog"
13458      if test "" = "yes" ; then
13459        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},watchdog"
13460      fi
13461      ;;
13462    esac
13463
13464
13465  if test -z ""; then
13466    objects="mod_watchdog.lo"
13467  else
13468    objects=""
13469  fi
13470
13471  if test -z "$module_standalone"; then
13472    if test -z "$shared"; then
13473      # The filename of a convenience library must have a "lib" prefix:
13474      libname="libmod_watchdog.la"
13475      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13476      modpath_static="$modpath_static $libname"
13477      cat >>$modpath_current/modules.mk<<EOF
13478$libname: $objects
13479	\$(MOD_LINK) $objects \$(MOD_WATCHDOG_LDADD)
13480EOF
13481      if test ! -z "\$(MOD_WATCHDOG_LDADD)"; then
13482
13483  if test "x$AP_LIBS" = "x"; then
13484    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_WATCHDOG_LDADD)\""
13485    AP_LIBS="\$(MOD_WATCHDOG_LDADD)"
13486  else
13487    apr_addto_bugger="\$(MOD_WATCHDOG_LDADD)"
13488    for i in $apr_addto_bugger; do
13489      apr_addto_duplicate="0"
13490      for j in $AP_LIBS; do
13491        if test "x$i" = "x$j"; then
13492          apr_addto_duplicate="1"
13493          break
13494        fi
13495      done
13496      if test $apr_addto_duplicate = "0"; then
13497        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13498        AP_LIBS="$AP_LIBS $i"
13499      fi
13500    done
13501  fi
13502
13503      fi
13504    else
13505      apache_need_shared=yes
13506      libname="mod_watchdog.la"
13507      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13508      modpath_shared="$modpath_shared $libname"
13509      cat >>$modpath_current/modules.mk<<EOF
13510$libname: $shobjects
13511	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_WATCHDOG_LDADD)
13512EOF
13513    fi
13514  fi
13515
13516
13517  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_WATCHDOG_LDADD"
13518
13519
13520
13521  fi
13522
13523
13524
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_macro" >&5
13526$as_echo_n "checking whether to enable mod_macro... " >&6; }
13527    # Check whether --enable-macro was given.
13528if test "${enable_macro+set}" = set; then :
13529  enableval=$enable_macro; force_macro=$enableval
13530else
13531  enable_macro=most
13532fi
13533
13534    _apmod_extra_msg=""
13535        case "$enable_macro" in
13536    yes|static|shared)
13537      _apmod_required="yes"
13538      ;;
13539    *)
13540      case "$module_selection" in
13541      reallyall|all|most)
13542        _apmod_required="no"
13543        ;;
13544      *)
13545        _apmod_required="yes"
13546        ;;
13547      esac
13548  esac
13549  if test "$enable_macro" = "static"; then
13550    enable_macro=static
13551  elif test "$enable_macro" = "yes"; then
13552    enable_macro=$module_default
13553  elif test "$enable_macro" = "most"; then
13554    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13555            "$module_selection" = "reallyall"
13556    then
13557      enable_macro=$module_default
13558    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13559      enable_macro=no
13560    fi
13561    _apmod_extra_msg=" ($module_selection)"
13562  elif test "$enable_macro" = "maybe-all"; then
13563    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13564    then
13565      enable_macro=$module_default
13566      _apmod_extra_msg=" ($module_selection)"
13567    else
13568      enable_macro=no
13569    fi
13570  elif test "$enable_macro" = "no" -a "$module_selection" = "reallyall" -a \
13571            "$force_macro" != "no" ; then
13572      enable_macro=$module_default
13573      _apmod_extra_msg=" ($module_selection)"
13574  fi
13575  if test "$enable_macro" != "no"; then
13576            :
13577  fi
13578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_macro$_apmod_extra_msg" >&5
13579$as_echo "$enable_macro$_apmod_extra_msg" >&6; }
13580  if test "$enable_macro" != "no"; then
13581    case "$enable_macro" in
13582    static*)
13583      MODLIST="$MODLIST macro"
13584      if test "macro" = "so"; then
13585          sharedobjs=yes
13586      fi
13587      shared="";;
13588    *)
13589      enable_macro=`echo $enable_macro|sed 's/shared,*//'`
13590      sharedobjs=yes
13591      shared=yes
13592      DSO_MODULES="$DSO_MODULES macro"
13593      if test "most" = "yes" ; then
13594        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},macro"
13595      fi
13596      ;;
13597    esac
13598
13599
13600  if test -z ""; then
13601    objects="mod_macro.lo"
13602  else
13603    objects=""
13604  fi
13605
13606  if test -z "$module_standalone"; then
13607    if test -z "$shared"; then
13608      # The filename of a convenience library must have a "lib" prefix:
13609      libname="libmod_macro.la"
13610      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13611      modpath_static="$modpath_static $libname"
13612      cat >>$modpath_current/modules.mk<<EOF
13613$libname: $objects
13614	\$(MOD_LINK) $objects \$(MOD_MACRO_LDADD)
13615EOF
13616      if test ! -z "\$(MOD_MACRO_LDADD)"; then
13617
13618  if test "x$AP_LIBS" = "x"; then
13619    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MACRO_LDADD)\""
13620    AP_LIBS="\$(MOD_MACRO_LDADD)"
13621  else
13622    apr_addto_bugger="\$(MOD_MACRO_LDADD)"
13623    for i in $apr_addto_bugger; do
13624      apr_addto_duplicate="0"
13625      for j in $AP_LIBS; do
13626        if test "x$i" = "x$j"; then
13627          apr_addto_duplicate="1"
13628          break
13629        fi
13630      done
13631      if test $apr_addto_duplicate = "0"; then
13632        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13633        AP_LIBS="$AP_LIBS $i"
13634      fi
13635    done
13636  fi
13637
13638      fi
13639    else
13640      apache_need_shared=yes
13641      libname="mod_macro.la"
13642      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13643      modpath_shared="$modpath_shared $libname"
13644      cat >>$modpath_current/modules.mk<<EOF
13645$libname: $shobjects
13646	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MACRO_LDADD)
13647EOF
13648    fi
13649  fi
13650
13651
13652  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MACRO_LDADD"
13653
13654
13655
13656  fi
13657
13658
13659
13660  if test "x$INCLUDES" = "x"; then
13661    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13662    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13663  else
13664    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13665    for i in $apr_addto_bugger; do
13666      apr_addto_duplicate="0"
13667      for j in $INCLUDES; do
13668        if test "x$i" = "x$j"; then
13669          apr_addto_duplicate="1"
13670          break
13671        fi
13672      done
13673      if test $apr_addto_duplicate = "0"; then
13674        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13675        INCLUDES="$INCLUDES $i"
13676      fi
13677    done
13678  fi
13679
13680
13681
13682  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13683  echo "static = $modpath_static" >> $modpath_current/modules.mk
13684  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13685  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13686    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13687      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13688    fi
13689  done
13690  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13691    MODULE_DIRS="$MODULE_DIRS $current_dir"
13692  else
13693    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13694  fi
13695
13696  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13697
13698
13699
13700
13701
13702  current_dir=database
13703  modpath_current=modules/database
13704  modpath_static=
13705  modpath_shared=
13706  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13707    eval MOD_$var=
13708  done
13709  test -d database || $srcdir/build/mkdir.sh $modpath_current
13710  > $modpath_current/modules.mk
13711
13712
13713
13714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dbd" >&5
13715$as_echo_n "checking whether to enable mod_dbd... " >&6; }
13716    # Check whether --enable-dbd was given.
13717if test "${enable_dbd+set}" = set; then :
13718  enableval=$enable_dbd; force_dbd=$enableval
13719else
13720  enable_dbd=most
13721fi
13722
13723    _apmod_extra_msg=""
13724        case "$enable_dbd" in
13725    yes|static|shared)
13726      _apmod_required="yes"
13727      ;;
13728    *)
13729      case "$module_selection" in
13730      reallyall|all|most)
13731        _apmod_required="no"
13732        ;;
13733      *)
13734        _apmod_required="yes"
13735        ;;
13736      esac
13737  esac
13738  if test "$enable_dbd" = "static"; then
13739    enable_dbd=static
13740  elif test "$enable_dbd" = "yes"; then
13741    enable_dbd=$module_default
13742  elif test "$enable_dbd" = "most"; then
13743    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13744            "$module_selection" = "reallyall"
13745    then
13746      enable_dbd=$module_default
13747    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13748      enable_dbd=no
13749    fi
13750    _apmod_extra_msg=" ($module_selection)"
13751  elif test "$enable_dbd" = "maybe-all"; then
13752    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13753    then
13754      enable_dbd=$module_default
13755      _apmod_extra_msg=" ($module_selection)"
13756    else
13757      enable_dbd=no
13758    fi
13759  elif test "$enable_dbd" = "no" -a "$module_selection" = "reallyall" -a \
13760            "$force_dbd" != "no" ; then
13761      enable_dbd=$module_default
13762      _apmod_extra_msg=" ($module_selection)"
13763  fi
13764  if test "$enable_dbd" != "no"; then
13765            :
13766  fi
13767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dbd$_apmod_extra_msg" >&5
13768$as_echo "$enable_dbd$_apmod_extra_msg" >&6; }
13769  if test "$enable_dbd" != "no"; then
13770    case "$enable_dbd" in
13771    static*)
13772      MODLIST="$MODLIST dbd"
13773      if test "dbd" = "so"; then
13774          sharedobjs=yes
13775      fi
13776      shared="";;
13777    *)
13778      enable_dbd=`echo $enable_dbd|sed 's/shared,*//'`
13779      sharedobjs=yes
13780      shared=yes
13781      DSO_MODULES="$DSO_MODULES dbd"
13782      if test "most" = "yes" ; then
13783        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dbd"
13784      fi
13785      ;;
13786    esac
13787
13788
13789  if test -z ""; then
13790    objects="mod_dbd.lo"
13791  else
13792    objects=""
13793  fi
13794
13795  if test -z "$module_standalone"; then
13796    if test -z "$shared"; then
13797      # The filename of a convenience library must have a "lib" prefix:
13798      libname="libmod_dbd.la"
13799      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13800      modpath_static="$modpath_static $libname"
13801      cat >>$modpath_current/modules.mk<<EOF
13802$libname: $objects
13803	\$(MOD_LINK) $objects \$(MOD_DBD_LDADD)
13804EOF
13805      if test ! -z "\$(MOD_DBD_LDADD)"; then
13806
13807  if test "x$AP_LIBS" = "x"; then
13808    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DBD_LDADD)\""
13809    AP_LIBS="\$(MOD_DBD_LDADD)"
13810  else
13811    apr_addto_bugger="\$(MOD_DBD_LDADD)"
13812    for i in $apr_addto_bugger; do
13813      apr_addto_duplicate="0"
13814      for j in $AP_LIBS; do
13815        if test "x$i" = "x$j"; then
13816          apr_addto_duplicate="1"
13817          break
13818        fi
13819      done
13820      if test $apr_addto_duplicate = "0"; then
13821        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13822        AP_LIBS="$AP_LIBS $i"
13823      fi
13824    done
13825  fi
13826
13827      fi
13828    else
13829      apache_need_shared=yes
13830      libname="mod_dbd.la"
13831      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13832      modpath_shared="$modpath_shared $libname"
13833      cat >>$modpath_current/modules.mk<<EOF
13834$libname: $shobjects
13835	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DBD_LDADD)
13836EOF
13837    fi
13838  fi
13839
13840
13841  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DBD_LDADD"
13842
13843
13844
13845  fi
13846
13847
13848
13849  if test "x$INCLUDES" = "x"; then
13850    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13851    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13852  else
13853    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13854    for i in $apr_addto_bugger; do
13855      apr_addto_duplicate="0"
13856      for j in $INCLUDES; do
13857        if test "x$i" = "x$j"; then
13858          apr_addto_duplicate="1"
13859          break
13860        fi
13861      done
13862      if test $apr_addto_duplicate = "0"; then
13863        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13864        INCLUDES="$INCLUDES $i"
13865      fi
13866    done
13867  fi
13868
13869
13870
13871  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13872  echo "static = $modpath_static" >> $modpath_current/modules.mk
13873  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13874  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13875    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13876      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13877    fi
13878  done
13879  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13880    MODULE_DIRS="$MODULE_DIRS $current_dir"
13881  else
13882    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13883  fi
13884
13885  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13886
13887
13888
13889
13890
13891  current_dir=debugging
13892  modpath_current=modules/debugging
13893  modpath_static=
13894  modpath_shared=
13895  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13896    eval MOD_$var=
13897  done
13898  test -d debugging || $srcdir/build/mkdir.sh $modpath_current
13899  > $modpath_current/modules.mk
13900
13901
13902
13903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_bucketeer" >&5
13904$as_echo_n "checking whether to enable mod_bucketeer... " >&6; }
13905    # Check whether --enable-bucketeer was given.
13906if test "${enable_bucketeer+set}" = set; then :
13907  enableval=$enable_bucketeer; force_bucketeer=$enableval
13908else
13909  enable_bucketeer=no
13910fi
13911
13912    _apmod_extra_msg=""
13913        case "$enable_bucketeer" in
13914    yes|static|shared)
13915      _apmod_required="yes"
13916      ;;
13917    *)
13918      case "$module_selection" in
13919      reallyall|all|most)
13920        _apmod_required="no"
13921        ;;
13922      *)
13923        _apmod_required="yes"
13924        ;;
13925      esac
13926  esac
13927  if test "$enable_bucketeer" = "static"; then
13928    enable_bucketeer=static
13929  elif test "$enable_bucketeer" = "yes"; then
13930    enable_bucketeer=$module_default
13931  elif test "$enable_bucketeer" = "most"; then
13932    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13933            "$module_selection" = "reallyall"
13934    then
13935      enable_bucketeer=$module_default
13936    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13937      enable_bucketeer=no
13938    fi
13939    _apmod_extra_msg=" ($module_selection)"
13940  elif test "$enable_bucketeer" = "maybe-all"; then
13941    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13942    then
13943      enable_bucketeer=$module_default
13944      _apmod_extra_msg=" ($module_selection)"
13945    else
13946      enable_bucketeer=no
13947    fi
13948  elif test "$enable_bucketeer" = "no" -a "$module_selection" = "reallyall" -a \
13949            "$force_bucketeer" != "no" ; then
13950      enable_bucketeer=$module_default
13951      _apmod_extra_msg=" ($module_selection)"
13952  fi
13953  if test "$enable_bucketeer" != "no"; then
13954            :
13955  fi
13956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bucketeer$_apmod_extra_msg" >&5
13957$as_echo "$enable_bucketeer$_apmod_extra_msg" >&6; }
13958  if test "$enable_bucketeer" != "no"; then
13959    case "$enable_bucketeer" in
13960    static*)
13961      MODLIST="$MODLIST bucketeer"
13962      if test "bucketeer" = "so"; then
13963          sharedobjs=yes
13964      fi
13965      shared="";;
13966    *)
13967      enable_bucketeer=`echo $enable_bucketeer|sed 's/shared,*//'`
13968      sharedobjs=yes
13969      shared=yes
13970      DSO_MODULES="$DSO_MODULES bucketeer"
13971      if test "no" = "yes" ; then
13972        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},bucketeer"
13973      fi
13974      ;;
13975    esac
13976
13977
13978  if test -z ""; then
13979    objects="mod_bucketeer.lo"
13980  else
13981    objects=""
13982  fi
13983
13984  if test -z "$module_standalone"; then
13985    if test -z "$shared"; then
13986      # The filename of a convenience library must have a "lib" prefix:
13987      libname="libmod_bucketeer.la"
13988      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13989      modpath_static="$modpath_static $libname"
13990      cat >>$modpath_current/modules.mk<<EOF
13991$libname: $objects
13992	\$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
13993EOF
13994      if test ! -z "\$(MOD_BUCKETEER_LDADD)"; then
13995
13996  if test "x$AP_LIBS" = "x"; then
13997    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUCKETEER_LDADD)\""
13998    AP_LIBS="\$(MOD_BUCKETEER_LDADD)"
13999  else
14000    apr_addto_bugger="\$(MOD_BUCKETEER_LDADD)"
14001    for i in $apr_addto_bugger; do
14002      apr_addto_duplicate="0"
14003      for j in $AP_LIBS; do
14004        if test "x$i" = "x$j"; then
14005          apr_addto_duplicate="1"
14006          break
14007        fi
14008      done
14009      if test $apr_addto_duplicate = "0"; then
14010        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14011        AP_LIBS="$AP_LIBS $i"
14012      fi
14013    done
14014  fi
14015
14016      fi
14017    else
14018      apache_need_shared=yes
14019      libname="mod_bucketeer.la"
14020      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14021      modpath_shared="$modpath_shared $libname"
14022      cat >>$modpath_current/modules.mk<<EOF
14023$libname: $shobjects
14024	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUCKETEER_LDADD)
14025EOF
14026    fi
14027  fi
14028
14029
14030  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"
14031
14032
14033
14034  fi
14035
14036
14037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dumpio" >&5
14038$as_echo_n "checking whether to enable mod_dumpio... " >&6; }
14039    # Check whether --enable-dumpio was given.
14040if test "${enable_dumpio+set}" = set; then :
14041  enableval=$enable_dumpio; force_dumpio=$enableval
14042else
14043  enable_dumpio=most
14044fi
14045
14046    _apmod_extra_msg=""
14047        case "$enable_dumpio" in
14048    yes|static|shared)
14049      _apmod_required="yes"
14050      ;;
14051    *)
14052      case "$module_selection" in
14053      reallyall|all|most)
14054        _apmod_required="no"
14055        ;;
14056      *)
14057        _apmod_required="yes"
14058        ;;
14059      esac
14060  esac
14061  if test "$enable_dumpio" = "static"; then
14062    enable_dumpio=static
14063  elif test "$enable_dumpio" = "yes"; then
14064    enable_dumpio=$module_default
14065  elif test "$enable_dumpio" = "most"; then
14066    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14067            "$module_selection" = "reallyall"
14068    then
14069      enable_dumpio=$module_default
14070    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14071      enable_dumpio=no
14072    fi
14073    _apmod_extra_msg=" ($module_selection)"
14074  elif test "$enable_dumpio" = "maybe-all"; then
14075    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14076    then
14077      enable_dumpio=$module_default
14078      _apmod_extra_msg=" ($module_selection)"
14079    else
14080      enable_dumpio=no
14081    fi
14082  elif test "$enable_dumpio" = "no" -a "$module_selection" = "reallyall" -a \
14083            "$force_dumpio" != "no" ; then
14084      enable_dumpio=$module_default
14085      _apmod_extra_msg=" ($module_selection)"
14086  fi
14087  if test "$enable_dumpio" != "no"; then
14088            :
14089  fi
14090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dumpio$_apmod_extra_msg" >&5
14091$as_echo "$enable_dumpio$_apmod_extra_msg" >&6; }
14092  if test "$enable_dumpio" != "no"; then
14093    case "$enable_dumpio" in
14094    static*)
14095      MODLIST="$MODLIST dumpio"
14096      if test "dumpio" = "so"; then
14097          sharedobjs=yes
14098      fi
14099      shared="";;
14100    *)
14101      enable_dumpio=`echo $enable_dumpio|sed 's/shared,*//'`
14102      sharedobjs=yes
14103      shared=yes
14104      DSO_MODULES="$DSO_MODULES dumpio"
14105      if test "most" = "yes" ; then
14106        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dumpio"
14107      fi
14108      ;;
14109    esac
14110
14111
14112  if test -z ""; then
14113    objects="mod_dumpio.lo"
14114  else
14115    objects=""
14116  fi
14117
14118  if test -z "$module_standalone"; then
14119    if test -z "$shared"; then
14120      # The filename of a convenience library must have a "lib" prefix:
14121      libname="libmod_dumpio.la"
14122      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14123      modpath_static="$modpath_static $libname"
14124      cat >>$modpath_current/modules.mk<<EOF
14125$libname: $objects
14126	\$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
14127EOF
14128      if test ! -z "\$(MOD_DUMPIO_LDADD)"; then
14129
14130  if test "x$AP_LIBS" = "x"; then
14131    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DUMPIO_LDADD)\""
14132    AP_LIBS="\$(MOD_DUMPIO_LDADD)"
14133  else
14134    apr_addto_bugger="\$(MOD_DUMPIO_LDADD)"
14135    for i in $apr_addto_bugger; do
14136      apr_addto_duplicate="0"
14137      for j in $AP_LIBS; do
14138        if test "x$i" = "x$j"; then
14139          apr_addto_duplicate="1"
14140          break
14141        fi
14142      done
14143      if test $apr_addto_duplicate = "0"; then
14144        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14145        AP_LIBS="$AP_LIBS $i"
14146      fi
14147    done
14148  fi
14149
14150      fi
14151    else
14152      apache_need_shared=yes
14153      libname="mod_dumpio.la"
14154      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14155      modpath_shared="$modpath_shared $libname"
14156      cat >>$modpath_current/modules.mk<<EOF
14157$libname: $shobjects
14158	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DUMPIO_LDADD)
14159EOF
14160    fi
14161  fi
14162
14163
14164  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"
14165
14166
14167
14168  fi
14169
14170
14171
14172  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14173  echo "static = $modpath_static" >> $modpath_current/modules.mk
14174  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14175  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14176    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14177      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14178    fi
14179  done
14180  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14181    MODULE_DIRS="$MODULE_DIRS $current_dir"
14182  else
14183    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14184  fi
14185
14186  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14187
14188
14189
14190
14191
14192
14193  current_dir=echo
14194  modpath_current=modules/echo
14195  modpath_static=
14196  modpath_shared=
14197  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14198    eval MOD_$var=
14199  done
14200  test -d echo || $srcdir/build/mkdir.sh $modpath_current
14201  > $modpath_current/modules.mk
14202
14203
14204
14205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_echo" >&5
14206$as_echo_n "checking whether to enable mod_echo... " >&6; }
14207    # Check whether --enable-echo was given.
14208if test "${enable_echo+set}" = set; then :
14209  enableval=$enable_echo; force_echo=$enableval
14210else
14211  enable_echo=maybe-all
14212fi
14213
14214    _apmod_extra_msg=""
14215        case "$enable_echo" in
14216    yes|static|shared)
14217      _apmod_required="yes"
14218      ;;
14219    *)
14220      case "$module_selection" in
14221      reallyall|all|most)
14222        _apmod_required="no"
14223        ;;
14224      *)
14225        _apmod_required="yes"
14226        ;;
14227      esac
14228  esac
14229  if test "$enable_echo" = "static"; then
14230    enable_echo=static
14231  elif test "$enable_echo" = "yes"; then
14232    enable_echo=$module_default
14233  elif test "$enable_echo" = "most"; then
14234    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14235            "$module_selection" = "reallyall"
14236    then
14237      enable_echo=$module_default
14238    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14239      enable_echo=no
14240    fi
14241    _apmod_extra_msg=" ($module_selection)"
14242  elif test "$enable_echo" = "maybe-all"; then
14243    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14244    then
14245      enable_echo=$module_default
14246      _apmod_extra_msg=" ($module_selection)"
14247    else
14248      enable_echo=no
14249    fi
14250  elif test "$enable_echo" = "no" -a "$module_selection" = "reallyall" -a \
14251            "$force_echo" != "no" ; then
14252      enable_echo=$module_default
14253      _apmod_extra_msg=" ($module_selection)"
14254  fi
14255  if test "$enable_echo" != "no"; then
14256            :
14257  fi
14258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_echo$_apmod_extra_msg" >&5
14259$as_echo "$enable_echo$_apmod_extra_msg" >&6; }
14260  if test "$enable_echo" != "no"; then
14261    case "$enable_echo" in
14262    static*)
14263      MODLIST="$MODLIST echo"
14264      if test "echo" = "so"; then
14265          sharedobjs=yes
14266      fi
14267      shared="";;
14268    *)
14269      enable_echo=`echo $enable_echo|sed 's/shared,*//'`
14270      sharedobjs=yes
14271      shared=yes
14272      DSO_MODULES="$DSO_MODULES echo"
14273      if test "" = "yes" ; then
14274        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},echo"
14275      fi
14276      ;;
14277    esac
14278
14279
14280  if test -z ""; then
14281    objects="mod_echo.lo"
14282  else
14283    objects=""
14284  fi
14285
14286  if test -z "$module_standalone"; then
14287    if test -z "$shared"; then
14288      # The filename of a convenience library must have a "lib" prefix:
14289      libname="libmod_echo.la"
14290      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14291      modpath_static="$modpath_static $libname"
14292      cat >>$modpath_current/modules.mk<<EOF
14293$libname: $objects
14294	\$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
14295EOF
14296      if test ! -z "\$(MOD_ECHO_LDADD)"; then
14297
14298  if test "x$AP_LIBS" = "x"; then
14299    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ECHO_LDADD)\""
14300    AP_LIBS="\$(MOD_ECHO_LDADD)"
14301  else
14302    apr_addto_bugger="\$(MOD_ECHO_LDADD)"
14303    for i in $apr_addto_bugger; do
14304      apr_addto_duplicate="0"
14305      for j in $AP_LIBS; do
14306        if test "x$i" = "x$j"; then
14307          apr_addto_duplicate="1"
14308          break
14309        fi
14310      done
14311      if test $apr_addto_duplicate = "0"; then
14312        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14313        AP_LIBS="$AP_LIBS $i"
14314      fi
14315    done
14316  fi
14317
14318      fi
14319    else
14320      apache_need_shared=yes
14321      libname="mod_echo.la"
14322      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14323      modpath_shared="$modpath_shared $libname"
14324      cat >>$modpath_current/modules.mk<<EOF
14325$libname: $shobjects
14326	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ECHO_LDADD)
14327EOF
14328    fi
14329  fi
14330
14331
14332  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"
14333
14334
14335
14336  fi
14337
14338
14339
14340  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14341  echo "static = $modpath_static" >> $modpath_current/modules.mk
14342  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14343  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14344    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14345      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14346    fi
14347  done
14348  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14349    MODULE_DIRS="$MODULE_DIRS $current_dir"
14350  else
14351    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14352  fi
14353
14354  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14355
14356
14357
14358
14359
14360  current_dir=examples
14361  modpath_current=modules/examples
14362  modpath_static=
14363  modpath_shared=
14364  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14365    eval MOD_$var=
14366  done
14367  test -d examples || $srcdir/build/mkdir.sh $modpath_current
14368  > $modpath_current/modules.mk
14369
14370
14371
14372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_hooks" >&5
14373$as_echo_n "checking whether to enable mod_example_hooks... " >&6; }
14374    # Check whether --enable-example-hooks was given.
14375if test "${enable_example_hooks+set}" = set; then :
14376  enableval=$enable_example_hooks; force_example_hooks=$enableval
14377else
14378  enable_example_hooks=no
14379fi
14380
14381    _apmod_extra_msg=""
14382        case "$enable_example_hooks" in
14383    yes|static|shared)
14384      _apmod_required="yes"
14385      ;;
14386    *)
14387      case "$module_selection" in
14388      reallyall|all|most)
14389        _apmod_required="no"
14390        ;;
14391      *)
14392        _apmod_required="yes"
14393        ;;
14394      esac
14395  esac
14396  if test "$enable_example_hooks" = "static"; then
14397    enable_example_hooks=static
14398  elif test "$enable_example_hooks" = "yes"; then
14399    enable_example_hooks=$module_default
14400  elif test "$enable_example_hooks" = "most"; then
14401    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14402            "$module_selection" = "reallyall"
14403    then
14404      enable_example_hooks=$module_default
14405    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14406      enable_example_hooks=no
14407    fi
14408    _apmod_extra_msg=" ($module_selection)"
14409  elif test "$enable_example_hooks" = "maybe-all"; then
14410    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14411    then
14412      enable_example_hooks=$module_default
14413      _apmod_extra_msg=" ($module_selection)"
14414    else
14415      enable_example_hooks=no
14416    fi
14417  elif test "$enable_example_hooks" = "no" -a "$module_selection" = "reallyall" -a \
14418            "$force_example_hooks" != "no" ; then
14419      enable_example_hooks=$module_default
14420      _apmod_extra_msg=" ($module_selection)"
14421  fi
14422  if test "$enable_example_hooks" != "no"; then
14423            :
14424  fi
14425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_example_hooks$_apmod_extra_msg" >&5
14426$as_echo "$enable_example_hooks$_apmod_extra_msg" >&6; }
14427  if test "$enable_example_hooks" != "no"; then
14428    case "$enable_example_hooks" in
14429    static*)
14430      MODLIST="$MODLIST example_hooks"
14431      if test "example_hooks" = "so"; then
14432          sharedobjs=yes
14433      fi
14434      shared="";;
14435    *)
14436      enable_example_hooks=`echo $enable_example_hooks|sed 's/shared,*//'`
14437      sharedobjs=yes
14438      shared=yes
14439      DSO_MODULES="$DSO_MODULES example_hooks"
14440      if test "no" = "yes" ; then
14441        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_hooks"
14442      fi
14443      ;;
14444    esac
14445
14446
14447  if test -z ""; then
14448    objects="mod_example_hooks.lo"
14449  else
14450    objects=""
14451  fi
14452
14453  if test -z "$module_standalone"; then
14454    if test -z "$shared"; then
14455      # The filename of a convenience library must have a "lib" prefix:
14456      libname="libmod_example_hooks.la"
14457      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14458      modpath_static="$modpath_static $libname"
14459      cat >>$modpath_current/modules.mk<<EOF
14460$libname: $objects
14461	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
14462EOF
14463      if test ! -z "\$(MOD_EXAMPLE_HOOKS_LDADD)"; then
14464
14465  if test "x$AP_LIBS" = "x"; then
14466    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_HOOKS_LDADD)\""
14467    AP_LIBS="\$(MOD_EXAMPLE_HOOKS_LDADD)"
14468  else
14469    apr_addto_bugger="\$(MOD_EXAMPLE_HOOKS_LDADD)"
14470    for i in $apr_addto_bugger; do
14471      apr_addto_duplicate="0"
14472      for j in $AP_LIBS; do
14473        if test "x$i" = "x$j"; then
14474          apr_addto_duplicate="1"
14475          break
14476        fi
14477      done
14478      if test $apr_addto_duplicate = "0"; then
14479        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14480        AP_LIBS="$AP_LIBS $i"
14481      fi
14482    done
14483  fi
14484
14485      fi
14486    else
14487      apache_need_shared=yes
14488      libname="mod_example_hooks.la"
14489      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14490      modpath_shared="$modpath_shared $libname"
14491      cat >>$modpath_current/modules.mk<<EOF
14492$libname: $shobjects
14493	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
14494EOF
14495    fi
14496  fi
14497
14498
14499  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_HOOKS_LDADD"
14500
14501
14502
14503  fi
14504
14505
14506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter" >&5
14507$as_echo_n "checking whether to enable mod_case_filter... " >&6; }
14508    # Check whether --enable-case-filter was given.
14509if test "${enable_case_filter+set}" = set; then :
14510  enableval=$enable_case_filter; force_case_filter=$enableval
14511else
14512  enable_case_filter=no
14513fi
14514
14515    _apmod_extra_msg=""
14516        case "$enable_case_filter" in
14517    yes|static|shared)
14518      _apmod_required="yes"
14519      ;;
14520    *)
14521      case "$module_selection" in
14522      reallyall|all|most)
14523        _apmod_required="no"
14524        ;;
14525      *)
14526        _apmod_required="yes"
14527        ;;
14528      esac
14529  esac
14530  if test "$enable_case_filter" = "static"; then
14531    enable_case_filter=static
14532  elif test "$enable_case_filter" = "yes"; then
14533    enable_case_filter=$module_default
14534  elif test "$enable_case_filter" = "most"; then
14535    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14536            "$module_selection" = "reallyall"
14537    then
14538      enable_case_filter=$module_default
14539    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14540      enable_case_filter=no
14541    fi
14542    _apmod_extra_msg=" ($module_selection)"
14543  elif test "$enable_case_filter" = "maybe-all"; then
14544    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14545    then
14546      enable_case_filter=$module_default
14547      _apmod_extra_msg=" ($module_selection)"
14548    else
14549      enable_case_filter=no
14550    fi
14551  elif test "$enable_case_filter" = "no" -a "$module_selection" = "reallyall" -a \
14552            "$force_case_filter" != "no" ; then
14553      enable_case_filter=$module_default
14554      _apmod_extra_msg=" ($module_selection)"
14555  fi
14556  if test "$enable_case_filter" != "no"; then
14557            :
14558  fi
14559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter$_apmod_extra_msg" >&5
14560$as_echo "$enable_case_filter$_apmod_extra_msg" >&6; }
14561  if test "$enable_case_filter" != "no"; then
14562    case "$enable_case_filter" in
14563    static*)
14564      MODLIST="$MODLIST case_filter"
14565      if test "case_filter" = "so"; then
14566          sharedobjs=yes
14567      fi
14568      shared="";;
14569    *)
14570      enable_case_filter=`echo $enable_case_filter|sed 's/shared,*//'`
14571      sharedobjs=yes
14572      shared=yes
14573      DSO_MODULES="$DSO_MODULES case_filter"
14574      if test "no" = "yes" ; then
14575        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter"
14576      fi
14577      ;;
14578    esac
14579
14580
14581  if test -z ""; then
14582    objects="mod_case_filter.lo"
14583  else
14584    objects=""
14585  fi
14586
14587  if test -z "$module_standalone"; then
14588    if test -z "$shared"; then
14589      # The filename of a convenience library must have a "lib" prefix:
14590      libname="libmod_case_filter.la"
14591      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14592      modpath_static="$modpath_static $libname"
14593      cat >>$modpath_current/modules.mk<<EOF
14594$libname: $objects
14595	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
14596EOF
14597      if test ! -z "\$(MOD_CASE_FILTER_LDADD)"; then
14598
14599  if test "x$AP_LIBS" = "x"; then
14600    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_LDADD)\""
14601    AP_LIBS="\$(MOD_CASE_FILTER_LDADD)"
14602  else
14603    apr_addto_bugger="\$(MOD_CASE_FILTER_LDADD)"
14604    for i in $apr_addto_bugger; do
14605      apr_addto_duplicate="0"
14606      for j in $AP_LIBS; do
14607        if test "x$i" = "x$j"; then
14608          apr_addto_duplicate="1"
14609          break
14610        fi
14611      done
14612      if test $apr_addto_duplicate = "0"; then
14613        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14614        AP_LIBS="$AP_LIBS $i"
14615      fi
14616    done
14617  fi
14618
14619      fi
14620    else
14621      apache_need_shared=yes
14622      libname="mod_case_filter.la"
14623      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14624      modpath_shared="$modpath_shared $libname"
14625      cat >>$modpath_current/modules.mk<<EOF
14626$libname: $shobjects
14627	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_LDADD)
14628EOF
14629    fi
14630  fi
14631
14632
14633  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"
14634
14635
14636
14637  fi
14638
14639
14640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter_in" >&5
14641$as_echo_n "checking whether to enable mod_case_filter_in... " >&6; }
14642    # Check whether --enable-case-filter-in was given.
14643if test "${enable_case_filter_in+set}" = set; then :
14644  enableval=$enable_case_filter_in; force_case_filter_in=$enableval
14645else
14646  enable_case_filter_in=no
14647fi
14648
14649    _apmod_extra_msg=""
14650        case "$enable_case_filter_in" in
14651    yes|static|shared)
14652      _apmod_required="yes"
14653      ;;
14654    *)
14655      case "$module_selection" in
14656      reallyall|all|most)
14657        _apmod_required="no"
14658        ;;
14659      *)
14660        _apmod_required="yes"
14661        ;;
14662      esac
14663  esac
14664  if test "$enable_case_filter_in" = "static"; then
14665    enable_case_filter_in=static
14666  elif test "$enable_case_filter_in" = "yes"; then
14667    enable_case_filter_in=$module_default
14668  elif test "$enable_case_filter_in" = "most"; then
14669    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14670            "$module_selection" = "reallyall"
14671    then
14672      enable_case_filter_in=$module_default
14673    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14674      enable_case_filter_in=no
14675    fi
14676    _apmod_extra_msg=" ($module_selection)"
14677  elif test "$enable_case_filter_in" = "maybe-all"; then
14678    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14679    then
14680      enable_case_filter_in=$module_default
14681      _apmod_extra_msg=" ($module_selection)"
14682    else
14683      enable_case_filter_in=no
14684    fi
14685  elif test "$enable_case_filter_in" = "no" -a "$module_selection" = "reallyall" -a \
14686            "$force_case_filter_in" != "no" ; then
14687      enable_case_filter_in=$module_default
14688      _apmod_extra_msg=" ($module_selection)"
14689  fi
14690  if test "$enable_case_filter_in" != "no"; then
14691            :
14692  fi
14693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter_in$_apmod_extra_msg" >&5
14694$as_echo "$enable_case_filter_in$_apmod_extra_msg" >&6; }
14695  if test "$enable_case_filter_in" != "no"; then
14696    case "$enable_case_filter_in" in
14697    static*)
14698      MODLIST="$MODLIST case_filter_in"
14699      if test "case_filter_in" = "so"; then
14700          sharedobjs=yes
14701      fi
14702      shared="";;
14703    *)
14704      enable_case_filter_in=`echo $enable_case_filter_in|sed 's/shared,*//'`
14705      sharedobjs=yes
14706      shared=yes
14707      DSO_MODULES="$DSO_MODULES case_filter_in"
14708      if test "no" = "yes" ; then
14709        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter_in"
14710      fi
14711      ;;
14712    esac
14713
14714
14715  if test -z ""; then
14716    objects="mod_case_filter_in.lo"
14717  else
14718    objects=""
14719  fi
14720
14721  if test -z "$module_standalone"; then
14722    if test -z "$shared"; then
14723      # The filename of a convenience library must have a "lib" prefix:
14724      libname="libmod_case_filter_in.la"
14725      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14726      modpath_static="$modpath_static $libname"
14727      cat >>$modpath_current/modules.mk<<EOF
14728$libname: $objects
14729	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
14730EOF
14731      if test ! -z "\$(MOD_CASE_FILTER_IN_LDADD)"; then
14732
14733  if test "x$AP_LIBS" = "x"; then
14734    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_IN_LDADD)\""
14735    AP_LIBS="\$(MOD_CASE_FILTER_IN_LDADD)"
14736  else
14737    apr_addto_bugger="\$(MOD_CASE_FILTER_IN_LDADD)"
14738    for i in $apr_addto_bugger; do
14739      apr_addto_duplicate="0"
14740      for j in $AP_LIBS; do
14741        if test "x$i" = "x$j"; then
14742          apr_addto_duplicate="1"
14743          break
14744        fi
14745      done
14746      if test $apr_addto_duplicate = "0"; then
14747        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14748        AP_LIBS="$AP_LIBS $i"
14749      fi
14750    done
14751  fi
14752
14753      fi
14754    else
14755      apache_need_shared=yes
14756      libname="mod_case_filter_in.la"
14757      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14758      modpath_shared="$modpath_shared $libname"
14759      cat >>$modpath_current/modules.mk<<EOF
14760$libname: $shobjects
14761	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_IN_LDADD)
14762EOF
14763    fi
14764  fi
14765
14766
14767  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"
14768
14769
14770
14771  fi
14772
14773
14774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_ipc" >&5
14775$as_echo_n "checking whether to enable mod_example_ipc... " >&6; }
14776    # Check whether --enable-example-ipc was given.
14777if test "${enable_example_ipc+set}" = set; then :
14778  enableval=$enable_example_ipc; force_example_ipc=$enableval
14779else
14780  enable_example_ipc=no
14781fi
14782
14783    _apmod_extra_msg=""
14784        case "$enable_example_ipc" in
14785    yes|static|shared)
14786      _apmod_required="yes"
14787      ;;
14788    *)
14789      case "$module_selection" in
14790      reallyall|all|most)
14791        _apmod_required="no"
14792        ;;
14793      *)
14794        _apmod_required="yes"
14795        ;;
14796      esac
14797  esac
14798  if test "$enable_example_ipc" = "static"; then
14799    enable_example_ipc=static
14800  elif test "$enable_example_ipc" = "yes"; then
14801    enable_example_ipc=$module_default
14802  elif test "$enable_example_ipc" = "most"; then
14803    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14804            "$module_selection" = "reallyall"
14805    then
14806      enable_example_ipc=$module_default
14807    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14808      enable_example_ipc=no
14809    fi
14810    _apmod_extra_msg=" ($module_selection)"
14811  elif test "$enable_example_ipc" = "maybe-all"; then
14812    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14813    then
14814      enable_example_ipc=$module_default
14815      _apmod_extra_msg=" ($module_selection)"
14816    else
14817      enable_example_ipc=no
14818    fi
14819  elif test "$enable_example_ipc" = "no" -a "$module_selection" = "reallyall" -a \
14820            "$force_example_ipc" != "no" ; then
14821      enable_example_ipc=$module_default
14822      _apmod_extra_msg=" ($module_selection)"
14823  fi
14824  if test "$enable_example_ipc" != "no"; then
14825            :
14826  fi
14827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_example_ipc$_apmod_extra_msg" >&5
14828$as_echo "$enable_example_ipc$_apmod_extra_msg" >&6; }
14829  if test "$enable_example_ipc" != "no"; then
14830    case "$enable_example_ipc" in
14831    static*)
14832      MODLIST="$MODLIST example_ipc"
14833      if test "example_ipc" = "so"; then
14834          sharedobjs=yes
14835      fi
14836      shared="";;
14837    *)
14838      enable_example_ipc=`echo $enable_example_ipc|sed 's/shared,*//'`
14839      sharedobjs=yes
14840      shared=yes
14841      DSO_MODULES="$DSO_MODULES example_ipc"
14842      if test "no" = "yes" ; then
14843        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_ipc"
14844      fi
14845      ;;
14846    esac
14847
14848
14849  if test -z ""; then
14850    objects="mod_example_ipc.lo"
14851  else
14852    objects=""
14853  fi
14854
14855  if test -z "$module_standalone"; then
14856    if test -z "$shared"; then
14857      # The filename of a convenience library must have a "lib" prefix:
14858      libname="libmod_example_ipc.la"
14859      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14860      modpath_static="$modpath_static $libname"
14861      cat >>$modpath_current/modules.mk<<EOF
14862$libname: $objects
14863	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_IPC_LDADD)
14864EOF
14865      if test ! -z "\$(MOD_EXAMPLE_IPC_LDADD)"; then
14866
14867  if test "x$AP_LIBS" = "x"; then
14868    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_IPC_LDADD)\""
14869    AP_LIBS="\$(MOD_EXAMPLE_IPC_LDADD)"
14870  else
14871    apr_addto_bugger="\$(MOD_EXAMPLE_IPC_LDADD)"
14872    for i in $apr_addto_bugger; do
14873      apr_addto_duplicate="0"
14874      for j in $AP_LIBS; do
14875        if test "x$i" = "x$j"; then
14876          apr_addto_duplicate="1"
14877          break
14878        fi
14879      done
14880      if test $apr_addto_duplicate = "0"; then
14881        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14882        AP_LIBS="$AP_LIBS $i"
14883      fi
14884    done
14885  fi
14886
14887      fi
14888    else
14889      apache_need_shared=yes
14890      libname="mod_example_ipc.la"
14891      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14892      modpath_shared="$modpath_shared $libname"
14893      cat >>$modpath_current/modules.mk<<EOF
14894$libname: $shobjects
14895	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_IPC_LDADD)
14896EOF
14897    fi
14898  fi
14899
14900
14901  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_IPC_LDADD"
14902
14903
14904
14905  fi
14906
14907
14908
14909  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14910  echo "static = $modpath_static" >> $modpath_current/modules.mk
14911  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14912  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14913    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14914      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14915    fi
14916  done
14917  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14918    MODULE_DIRS="$MODULE_DIRS $current_dir"
14919  else
14920    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14921  fi
14922
14923  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14924
14925
14926
14927
14928
14929  current_dir=experimental
14930  modpath_current=modules/experimental
14931  modpath_static=
14932  modpath_shared=
14933  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14934    eval MOD_$var=
14935  done
14936  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
14937  > $modpath_current/modules.mk
14938
14939
14940
14941  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14942  echo "static = $modpath_static" >> $modpath_current/modules.mk
14943  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14944  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14945    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14946      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14947    fi
14948  done
14949  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14950    MODULE_DIRS="$MODULE_DIRS $current_dir"
14951  else
14952    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14953  fi
14954
14955  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14956
14957
14958
14959
14960
14961
14962  current_dir=filters
14963  modpath_current=modules/filters
14964  modpath_static=
14965  modpath_shared=
14966  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14967    eval MOD_$var=
14968  done
14969  test -d filters || $srcdir/build/mkdir.sh $modpath_current
14970  > $modpath_current/modules.mk
14971
14972
14973
14974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_buffer" >&5
14975$as_echo_n "checking whether to enable mod_buffer... " >&6; }
14976    # Check whether --enable-buffer was given.
14977if test "${enable_buffer+set}" = set; then :
14978  enableval=$enable_buffer; force_buffer=$enableval
14979else
14980  enable_buffer=most
14981fi
14982
14983    _apmod_extra_msg=""
14984        case "$enable_buffer" in
14985    yes|static|shared)
14986      _apmod_required="yes"
14987      ;;
14988    *)
14989      case "$module_selection" in
14990      reallyall|all|most)
14991        _apmod_required="no"
14992        ;;
14993      *)
14994        _apmod_required="yes"
14995        ;;
14996      esac
14997  esac
14998  if test "$enable_buffer" = "static"; then
14999    enable_buffer=static
15000  elif test "$enable_buffer" = "yes"; then
15001    enable_buffer=$module_default
15002  elif test "$enable_buffer" = "most"; then
15003    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15004            "$module_selection" = "reallyall"
15005    then
15006      enable_buffer=$module_default
15007    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15008      enable_buffer=no
15009    fi
15010    _apmod_extra_msg=" ($module_selection)"
15011  elif test "$enable_buffer" = "maybe-all"; then
15012    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15013    then
15014      enable_buffer=$module_default
15015      _apmod_extra_msg=" ($module_selection)"
15016    else
15017      enable_buffer=no
15018    fi
15019  elif test "$enable_buffer" = "no" -a "$module_selection" = "reallyall" -a \
15020            "$force_buffer" != "no" ; then
15021      enable_buffer=$module_default
15022      _apmod_extra_msg=" ($module_selection)"
15023  fi
15024  if test "$enable_buffer" != "no"; then
15025            :
15026  fi
15027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_buffer$_apmod_extra_msg" >&5
15028$as_echo "$enable_buffer$_apmod_extra_msg" >&6; }
15029  if test "$enable_buffer" != "no"; then
15030    case "$enable_buffer" in
15031    static*)
15032      MODLIST="$MODLIST buffer"
15033      if test "buffer" = "so"; then
15034          sharedobjs=yes
15035      fi
15036      shared="";;
15037    *)
15038      enable_buffer=`echo $enable_buffer|sed 's/shared,*//'`
15039      sharedobjs=yes
15040      shared=yes
15041      DSO_MODULES="$DSO_MODULES buffer"
15042      if test "most" = "yes" ; then
15043        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},buffer"
15044      fi
15045      ;;
15046    esac
15047
15048
15049  if test -z ""; then
15050    objects="mod_buffer.lo"
15051  else
15052    objects=""
15053  fi
15054
15055  if test -z "$module_standalone"; then
15056    if test -z "$shared"; then
15057      # The filename of a convenience library must have a "lib" prefix:
15058      libname="libmod_buffer.la"
15059      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15060      modpath_static="$modpath_static $libname"
15061      cat >>$modpath_current/modules.mk<<EOF
15062$libname: $objects
15063	\$(MOD_LINK) $objects \$(MOD_BUFFER_LDADD)
15064EOF
15065      if test ! -z "\$(MOD_BUFFER_LDADD)"; then
15066
15067  if test "x$AP_LIBS" = "x"; then
15068    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUFFER_LDADD)\""
15069    AP_LIBS="\$(MOD_BUFFER_LDADD)"
15070  else
15071    apr_addto_bugger="\$(MOD_BUFFER_LDADD)"
15072    for i in $apr_addto_bugger; do
15073      apr_addto_duplicate="0"
15074      for j in $AP_LIBS; do
15075        if test "x$i" = "x$j"; then
15076          apr_addto_duplicate="1"
15077          break
15078        fi
15079      done
15080      if test $apr_addto_duplicate = "0"; then
15081        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15082        AP_LIBS="$AP_LIBS $i"
15083      fi
15084    done
15085  fi
15086
15087      fi
15088    else
15089      apache_need_shared=yes
15090      libname="mod_buffer.la"
15091      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15092      modpath_shared="$modpath_shared $libname"
15093      cat >>$modpath_current/modules.mk<<EOF
15094$libname: $shobjects
15095	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUFFER_LDADD)
15096EOF
15097    fi
15098  fi
15099
15100
15101  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUFFER_LDADD"
15102
15103
15104
15105  fi
15106
15107
15108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_data" >&5
15109$as_echo_n "checking whether to enable mod_data... " >&6; }
15110    # Check whether --enable-data was given.
15111if test "${enable_data+set}" = set; then :
15112  enableval=$enable_data; force_data=$enableval
15113else
15114  enable_data=maybe-all
15115fi
15116
15117    _apmod_extra_msg=""
15118        case "$enable_data" in
15119    yes|static|shared)
15120      _apmod_required="yes"
15121      ;;
15122    *)
15123      case "$module_selection" in
15124      reallyall|all|most)
15125        _apmod_required="no"
15126        ;;
15127      *)
15128        _apmod_required="yes"
15129        ;;
15130      esac
15131  esac
15132  if test "$enable_data" = "static"; then
15133    enable_data=static
15134  elif test "$enable_data" = "yes"; then
15135    enable_data=$module_default
15136  elif test "$enable_data" = "most"; then
15137    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15138            "$module_selection" = "reallyall"
15139    then
15140      enable_data=$module_default
15141    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15142      enable_data=no
15143    fi
15144    _apmod_extra_msg=" ($module_selection)"
15145  elif test "$enable_data" = "maybe-all"; then
15146    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15147    then
15148      enable_data=$module_default
15149      _apmod_extra_msg=" ($module_selection)"
15150    else
15151      enable_data=no
15152    fi
15153  elif test "$enable_data" = "no" -a "$module_selection" = "reallyall" -a \
15154            "$force_data" != "no" ; then
15155      enable_data=$module_default
15156      _apmod_extra_msg=" ($module_selection)"
15157  fi
15158  if test "$enable_data" != "no"; then
15159            :
15160  fi
15161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_data$_apmod_extra_msg" >&5
15162$as_echo "$enable_data$_apmod_extra_msg" >&6; }
15163  if test "$enable_data" != "no"; then
15164    case "$enable_data" in
15165    static*)
15166      MODLIST="$MODLIST data"
15167      if test "data" = "so"; then
15168          sharedobjs=yes
15169      fi
15170      shared="";;
15171    *)
15172      enable_data=`echo $enable_data|sed 's/shared,*//'`
15173      sharedobjs=yes
15174      shared=yes
15175      DSO_MODULES="$DSO_MODULES data"
15176      if test "" = "yes" ; then
15177        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},data"
15178      fi
15179      ;;
15180    esac
15181
15182
15183  if test -z ""; then
15184    objects="mod_data.lo"
15185  else
15186    objects=""
15187  fi
15188
15189  if test -z "$module_standalone"; then
15190    if test -z "$shared"; then
15191      # The filename of a convenience library must have a "lib" prefix:
15192      libname="libmod_data.la"
15193      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15194      modpath_static="$modpath_static $libname"
15195      cat >>$modpath_current/modules.mk<<EOF
15196$libname: $objects
15197	\$(MOD_LINK) $objects \$(MOD_DATA_LDADD)
15198EOF
15199      if test ! -z "\$(MOD_DATA_LDADD)"; then
15200
15201  if test "x$AP_LIBS" = "x"; then
15202    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DATA_LDADD)\""
15203    AP_LIBS="\$(MOD_DATA_LDADD)"
15204  else
15205    apr_addto_bugger="\$(MOD_DATA_LDADD)"
15206    for i in $apr_addto_bugger; do
15207      apr_addto_duplicate="0"
15208      for j in $AP_LIBS; do
15209        if test "x$i" = "x$j"; then
15210          apr_addto_duplicate="1"
15211          break
15212        fi
15213      done
15214      if test $apr_addto_duplicate = "0"; then
15215        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15216        AP_LIBS="$AP_LIBS $i"
15217      fi
15218    done
15219  fi
15220
15221      fi
15222    else
15223      apache_need_shared=yes
15224      libname="mod_data.la"
15225      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15226      modpath_shared="$modpath_shared $libname"
15227      cat >>$modpath_current/modules.mk<<EOF
15228$libname: $shobjects
15229	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DATA_LDADD)
15230EOF
15231    fi
15232  fi
15233
15234
15235  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DATA_LDADD"
15236
15237
15238
15239  fi
15240
15241
15242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ratelimit" >&5
15243$as_echo_n "checking whether to enable mod_ratelimit... " >&6; }
15244    # Check whether --enable-ratelimit was given.
15245if test "${enable_ratelimit+set}" = set; then :
15246  enableval=$enable_ratelimit; force_ratelimit=$enableval
15247else
15248  enable_ratelimit=most
15249fi
15250
15251    _apmod_extra_msg=""
15252        case "$enable_ratelimit" in
15253    yes|static|shared)
15254      _apmod_required="yes"
15255      ;;
15256    *)
15257      case "$module_selection" in
15258      reallyall|all|most)
15259        _apmod_required="no"
15260        ;;
15261      *)
15262        _apmod_required="yes"
15263        ;;
15264      esac
15265  esac
15266  if test "$enable_ratelimit" = "static"; then
15267    enable_ratelimit=static
15268  elif test "$enable_ratelimit" = "yes"; then
15269    enable_ratelimit=$module_default
15270  elif test "$enable_ratelimit" = "most"; then
15271    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15272            "$module_selection" = "reallyall"
15273    then
15274      enable_ratelimit=$module_default
15275    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15276      enable_ratelimit=no
15277    fi
15278    _apmod_extra_msg=" ($module_selection)"
15279  elif test "$enable_ratelimit" = "maybe-all"; then
15280    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15281    then
15282      enable_ratelimit=$module_default
15283      _apmod_extra_msg=" ($module_selection)"
15284    else
15285      enable_ratelimit=no
15286    fi
15287  elif test "$enable_ratelimit" = "no" -a "$module_selection" = "reallyall" -a \
15288            "$force_ratelimit" != "no" ; then
15289      enable_ratelimit=$module_default
15290      _apmod_extra_msg=" ($module_selection)"
15291  fi
15292  if test "$enable_ratelimit" != "no"; then
15293            :
15294  fi
15295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ratelimit$_apmod_extra_msg" >&5
15296$as_echo "$enable_ratelimit$_apmod_extra_msg" >&6; }
15297  if test "$enable_ratelimit" != "no"; then
15298    case "$enable_ratelimit" in
15299    static*)
15300      MODLIST="$MODLIST ratelimit"
15301      if test "ratelimit" = "so"; then
15302          sharedobjs=yes
15303      fi
15304      shared="";;
15305    *)
15306      enable_ratelimit=`echo $enable_ratelimit|sed 's/shared,*//'`
15307      sharedobjs=yes
15308      shared=yes
15309      DSO_MODULES="$DSO_MODULES ratelimit"
15310      if test "most" = "yes" ; then
15311        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ratelimit"
15312      fi
15313      ;;
15314    esac
15315
15316
15317  if test -z ""; then
15318    objects="mod_ratelimit.lo"
15319  else
15320    objects=""
15321  fi
15322
15323  if test -z "$module_standalone"; then
15324    if test -z "$shared"; then
15325      # The filename of a convenience library must have a "lib" prefix:
15326      libname="libmod_ratelimit.la"
15327      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15328      modpath_static="$modpath_static $libname"
15329      cat >>$modpath_current/modules.mk<<EOF
15330$libname: $objects
15331	\$(MOD_LINK) $objects \$(MOD_RATELIMIT_LDADD)
15332EOF
15333      if test ! -z "\$(MOD_RATELIMIT_LDADD)"; then
15334
15335  if test "x$AP_LIBS" = "x"; then
15336    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_RATELIMIT_LDADD)\""
15337    AP_LIBS="\$(MOD_RATELIMIT_LDADD)"
15338  else
15339    apr_addto_bugger="\$(MOD_RATELIMIT_LDADD)"
15340    for i in $apr_addto_bugger; do
15341      apr_addto_duplicate="0"
15342      for j in $AP_LIBS; do
15343        if test "x$i" = "x$j"; then
15344          apr_addto_duplicate="1"
15345          break
15346        fi
15347      done
15348      if test $apr_addto_duplicate = "0"; then
15349        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15350        AP_LIBS="$AP_LIBS $i"
15351      fi
15352    done
15353  fi
15354
15355      fi
15356    else
15357      apache_need_shared=yes
15358      libname="mod_ratelimit.la"
15359      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15360      modpath_shared="$modpath_shared $libname"
15361      cat >>$modpath_current/modules.mk<<EOF
15362$libname: $shobjects
15363	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_RATELIMIT_LDADD)
15364EOF
15365    fi
15366  fi
15367
15368
15369  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_RATELIMIT_LDADD"
15370
15371
15372
15373  fi
15374
15375
15376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reqtimeout" >&5
15377$as_echo_n "checking whether to enable mod_reqtimeout... " >&6; }
15378    # Check whether --enable-reqtimeout was given.
15379if test "${enable_reqtimeout+set}" = set; then :
15380  enableval=$enable_reqtimeout; force_reqtimeout=$enableval
15381else
15382  enable_reqtimeout=yes
15383fi
15384
15385    _apmod_extra_msg=""
15386        case "$enable_reqtimeout" in
15387    yes|static|shared)
15388      _apmod_required="yes"
15389      ;;
15390    *)
15391      case "$module_selection" in
15392      reallyall|all|most)
15393        _apmod_required="no"
15394        ;;
15395      *)
15396        _apmod_required="yes"
15397        ;;
15398      esac
15399  esac
15400  if test "$enable_reqtimeout" = "static"; then
15401    enable_reqtimeout=static
15402  elif test "$enable_reqtimeout" = "yes"; then
15403    enable_reqtimeout=$module_default
15404  elif test "$enable_reqtimeout" = "most"; then
15405    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15406            "$module_selection" = "reallyall"
15407    then
15408      enable_reqtimeout=$module_default
15409    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15410      enable_reqtimeout=no
15411    fi
15412    _apmod_extra_msg=" ($module_selection)"
15413  elif test "$enable_reqtimeout" = "maybe-all"; then
15414    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15415    then
15416      enable_reqtimeout=$module_default
15417      _apmod_extra_msg=" ($module_selection)"
15418    else
15419      enable_reqtimeout=no
15420    fi
15421  elif test "$enable_reqtimeout" = "no" -a "$module_selection" = "reallyall" -a \
15422            "$force_reqtimeout" != "no" ; then
15423      enable_reqtimeout=$module_default
15424      _apmod_extra_msg=" ($module_selection)"
15425  fi
15426  if test "$enable_reqtimeout" != "no"; then
15427            :
15428  fi
15429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_reqtimeout$_apmod_extra_msg" >&5
15430$as_echo "$enable_reqtimeout$_apmod_extra_msg" >&6; }
15431  if test "$enable_reqtimeout" != "no"; then
15432    case "$enable_reqtimeout" in
15433    static*)
15434      MODLIST="$MODLIST reqtimeout"
15435      if test "reqtimeout" = "so"; then
15436          sharedobjs=yes
15437      fi
15438      shared="";;
15439    *)
15440      enable_reqtimeout=`echo $enable_reqtimeout|sed 's/shared,*//'`
15441      sharedobjs=yes
15442      shared=yes
15443      DSO_MODULES="$DSO_MODULES reqtimeout"
15444      if test "yes" = "yes" ; then
15445        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reqtimeout"
15446      fi
15447      ;;
15448    esac
15449
15450
15451  if test -z ""; then
15452    objects="mod_reqtimeout.lo"
15453  else
15454    objects=""
15455  fi
15456
15457  if test -z "$module_standalone"; then
15458    if test -z "$shared"; then
15459      # The filename of a convenience library must have a "lib" prefix:
15460      libname="libmod_reqtimeout.la"
15461      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15462      modpath_static="$modpath_static $libname"
15463      cat >>$modpath_current/modules.mk<<EOF
15464$libname: $objects
15465	\$(MOD_LINK) $objects \$(MOD_REQTIMEOUT_LDADD)
15466EOF
15467      if test ! -z "\$(MOD_REQTIMEOUT_LDADD)"; then
15468
15469  if test "x$AP_LIBS" = "x"; then
15470    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQTIMEOUT_LDADD)\""
15471    AP_LIBS="\$(MOD_REQTIMEOUT_LDADD)"
15472  else
15473    apr_addto_bugger="\$(MOD_REQTIMEOUT_LDADD)"
15474    for i in $apr_addto_bugger; do
15475      apr_addto_duplicate="0"
15476      for j in $AP_LIBS; do
15477        if test "x$i" = "x$j"; then
15478          apr_addto_duplicate="1"
15479          break
15480        fi
15481      done
15482      if test $apr_addto_duplicate = "0"; then
15483        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15484        AP_LIBS="$AP_LIBS $i"
15485      fi
15486    done
15487  fi
15488
15489      fi
15490    else
15491      apache_need_shared=yes
15492      libname="mod_reqtimeout.la"
15493      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15494      modpath_shared="$modpath_shared $libname"
15495      cat >>$modpath_current/modules.mk<<EOF
15496$libname: $shobjects
15497	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQTIMEOUT_LDADD)
15498EOF
15499    fi
15500  fi
15501
15502
15503  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQTIMEOUT_LDADD"
15504
15505
15506
15507  fi
15508
15509
15510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ext_filter" >&5
15511$as_echo_n "checking whether to enable mod_ext_filter... " >&6; }
15512    # Check whether --enable-ext-filter was given.
15513if test "${enable_ext_filter+set}" = set; then :
15514  enableval=$enable_ext_filter; force_ext_filter=$enableval
15515else
15516  enable_ext_filter=most
15517fi
15518
15519    _apmod_extra_msg=""
15520        case "$enable_ext_filter" in
15521    yes|static|shared)
15522      _apmod_required="yes"
15523      ;;
15524    *)
15525      case "$module_selection" in
15526      reallyall|all|most)
15527        _apmod_required="no"
15528        ;;
15529      *)
15530        _apmod_required="yes"
15531        ;;
15532      esac
15533  esac
15534  if test "$enable_ext_filter" = "static"; then
15535    enable_ext_filter=static
15536  elif test "$enable_ext_filter" = "yes"; then
15537    enable_ext_filter=$module_default
15538  elif test "$enable_ext_filter" = "most"; then
15539    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15540            "$module_selection" = "reallyall"
15541    then
15542      enable_ext_filter=$module_default
15543    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15544      enable_ext_filter=no
15545    fi
15546    _apmod_extra_msg=" ($module_selection)"
15547  elif test "$enable_ext_filter" = "maybe-all"; then
15548    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15549    then
15550      enable_ext_filter=$module_default
15551      _apmod_extra_msg=" ($module_selection)"
15552    else
15553      enable_ext_filter=no
15554    fi
15555  elif test "$enable_ext_filter" = "no" -a "$module_selection" = "reallyall" -a \
15556            "$force_ext_filter" != "no" ; then
15557      enable_ext_filter=$module_default
15558      _apmod_extra_msg=" ($module_selection)"
15559  fi
15560  if test "$enable_ext_filter" != "no"; then
15561            :
15562  fi
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ext_filter$_apmod_extra_msg" >&5
15564$as_echo "$enable_ext_filter$_apmod_extra_msg" >&6; }
15565  if test "$enable_ext_filter" != "no"; then
15566    case "$enable_ext_filter" in
15567    static*)
15568      MODLIST="$MODLIST ext_filter"
15569      if test "ext_filter" = "so"; then
15570          sharedobjs=yes
15571      fi
15572      shared="";;
15573    *)
15574      enable_ext_filter=`echo $enable_ext_filter|sed 's/shared,*//'`
15575      sharedobjs=yes
15576      shared=yes
15577      DSO_MODULES="$DSO_MODULES ext_filter"
15578      if test "most" = "yes" ; then
15579        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ext_filter"
15580      fi
15581      ;;
15582    esac
15583
15584
15585  if test -z ""; then
15586    objects="mod_ext_filter.lo"
15587  else
15588    objects=""
15589  fi
15590
15591  if test -z "$module_standalone"; then
15592    if test -z "$shared"; then
15593      # The filename of a convenience library must have a "lib" prefix:
15594      libname="libmod_ext_filter.la"
15595      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15596      modpath_static="$modpath_static $libname"
15597      cat >>$modpath_current/modules.mk<<EOF
15598$libname: $objects
15599	\$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
15600EOF
15601      if test ! -z "\$(MOD_EXT_FILTER_LDADD)"; then
15602
15603  if test "x$AP_LIBS" = "x"; then
15604    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXT_FILTER_LDADD)\""
15605    AP_LIBS="\$(MOD_EXT_FILTER_LDADD)"
15606  else
15607    apr_addto_bugger="\$(MOD_EXT_FILTER_LDADD)"
15608    for i in $apr_addto_bugger; do
15609      apr_addto_duplicate="0"
15610      for j in $AP_LIBS; do
15611        if test "x$i" = "x$j"; then
15612          apr_addto_duplicate="1"
15613          break
15614        fi
15615      done
15616      if test $apr_addto_duplicate = "0"; then
15617        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15618        AP_LIBS="$AP_LIBS $i"
15619      fi
15620    done
15621  fi
15622
15623      fi
15624    else
15625      apache_need_shared=yes
15626      libname="mod_ext_filter.la"
15627      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15628      modpath_shared="$modpath_shared $libname"
15629      cat >>$modpath_current/modules.mk<<EOF
15630$libname: $shobjects
15631	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXT_FILTER_LDADD)
15632EOF
15633    fi
15634  fi
15635
15636
15637  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"
15638
15639
15640
15641  fi
15642
15643
15644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_request" >&5
15645$as_echo_n "checking whether to enable mod_request... " >&6; }
15646    # Check whether --enable-request was given.
15647if test "${enable_request+set}" = set; then :
15648  enableval=$enable_request; force_request=$enableval
15649else
15650  enable_request=most
15651fi
15652
15653    _apmod_extra_msg=""
15654        case "$enable_request" in
15655    yes|static|shared)
15656      _apmod_required="yes"
15657      ;;
15658    *)
15659      case "$module_selection" in
15660      reallyall|all|most)
15661        _apmod_required="no"
15662        ;;
15663      *)
15664        _apmod_required="yes"
15665        ;;
15666      esac
15667  esac
15668  if test "$enable_request" = "static"; then
15669    enable_request=static
15670  elif test "$enable_request" = "yes"; then
15671    enable_request=$module_default
15672  elif test "$enable_request" = "most"; then
15673    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15674            "$module_selection" = "reallyall"
15675    then
15676      enable_request=$module_default
15677    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15678      enable_request=no
15679    fi
15680    _apmod_extra_msg=" ($module_selection)"
15681  elif test "$enable_request" = "maybe-all"; then
15682    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15683    then
15684      enable_request=$module_default
15685      _apmod_extra_msg=" ($module_selection)"
15686    else
15687      enable_request=no
15688    fi
15689  elif test "$enable_request" = "no" -a "$module_selection" = "reallyall" -a \
15690            "$force_request" != "no" ; then
15691      enable_request=$module_default
15692      _apmod_extra_msg=" ($module_selection)"
15693  fi
15694  if test "$enable_request" != "no"; then
15695            :
15696  fi
15697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_request$_apmod_extra_msg" >&5
15698$as_echo "$enable_request$_apmod_extra_msg" >&6; }
15699  if test "$enable_request" != "no"; then
15700    case "$enable_request" in
15701    static*)
15702      MODLIST="$MODLIST request"
15703      if test "request" = "so"; then
15704          sharedobjs=yes
15705      fi
15706      shared="";;
15707    *)
15708      enable_request=`echo $enable_request|sed 's/shared,*//'`
15709      sharedobjs=yes
15710      shared=yes
15711      DSO_MODULES="$DSO_MODULES request"
15712      if test "most" = "yes" ; then
15713        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},request"
15714      fi
15715      ;;
15716    esac
15717
15718
15719  if test -z ""; then
15720    objects="mod_request.lo"
15721  else
15722    objects=""
15723  fi
15724
15725  if test -z "$module_standalone"; then
15726    if test -z "$shared"; then
15727      # The filename of a convenience library must have a "lib" prefix:
15728      libname="libmod_request.la"
15729      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15730      modpath_static="$modpath_static $libname"
15731      cat >>$modpath_current/modules.mk<<EOF
15732$libname: $objects
15733	\$(MOD_LINK) $objects \$(MOD_REQUEST_LDADD)
15734EOF
15735      if test ! -z "\$(MOD_REQUEST_LDADD)"; then
15736
15737  if test "x$AP_LIBS" = "x"; then
15738    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQUEST_LDADD)\""
15739    AP_LIBS="\$(MOD_REQUEST_LDADD)"
15740  else
15741    apr_addto_bugger="\$(MOD_REQUEST_LDADD)"
15742    for i in $apr_addto_bugger; do
15743      apr_addto_duplicate="0"
15744      for j in $AP_LIBS; do
15745        if test "x$i" = "x$j"; then
15746          apr_addto_duplicate="1"
15747          break
15748        fi
15749      done
15750      if test $apr_addto_duplicate = "0"; then
15751        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15752        AP_LIBS="$AP_LIBS $i"
15753      fi
15754    done
15755  fi
15756
15757      fi
15758    else
15759      apache_need_shared=yes
15760      libname="mod_request.la"
15761      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15762      modpath_shared="$modpath_shared $libname"
15763      cat >>$modpath_current/modules.mk<<EOF
15764$libname: $shobjects
15765	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQUEST_LDADD)
15766EOF
15767    fi
15768  fi
15769
15770
15771  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQUEST_LDADD"
15772
15773
15774
15775  fi
15776
15777
15778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_include" >&5
15779$as_echo_n "checking whether to enable mod_include... " >&6; }
15780    # Check whether --enable-include was given.
15781if test "${enable_include+set}" = set; then :
15782  enableval=$enable_include; force_include=$enableval
15783else
15784  enable_include=most
15785fi
15786
15787    _apmod_extra_msg=""
15788        case "$enable_include" in
15789    yes|static|shared)
15790      _apmod_required="yes"
15791      ;;
15792    *)
15793      case "$module_selection" in
15794      reallyall|all|most)
15795        _apmod_required="no"
15796        ;;
15797      *)
15798        _apmod_required="yes"
15799        ;;
15800      esac
15801  esac
15802  if test "$enable_include" = "static"; then
15803    enable_include=static
15804  elif test "$enable_include" = "yes"; then
15805    enable_include=$module_default
15806  elif test "$enable_include" = "most"; then
15807    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15808            "$module_selection" = "reallyall"
15809    then
15810      enable_include=$module_default
15811    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15812      enable_include=no
15813    fi
15814    _apmod_extra_msg=" ($module_selection)"
15815  elif test "$enable_include" = "maybe-all"; then
15816    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15817    then
15818      enable_include=$module_default
15819      _apmod_extra_msg=" ($module_selection)"
15820    else
15821      enable_include=no
15822    fi
15823  elif test "$enable_include" = "no" -a "$module_selection" = "reallyall" -a \
15824            "$force_include" != "no" ; then
15825      enable_include=$module_default
15826      _apmod_extra_msg=" ($module_selection)"
15827  fi
15828  if test "$enable_include" != "no"; then
15829            :
15830  fi
15831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_include$_apmod_extra_msg" >&5
15832$as_echo "$enable_include$_apmod_extra_msg" >&6; }
15833  if test "$enable_include" != "no"; then
15834    case "$enable_include" in
15835    static*)
15836      MODLIST="$MODLIST include"
15837      if test "include" = "so"; then
15838          sharedobjs=yes
15839      fi
15840      shared="";;
15841    *)
15842      enable_include=`echo $enable_include|sed 's/shared,*//'`
15843      sharedobjs=yes
15844      shared=yes
15845      DSO_MODULES="$DSO_MODULES include"
15846      if test "most" = "yes" ; then
15847        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},include"
15848      fi
15849      ;;
15850    esac
15851
15852
15853  if test -z ""; then
15854    objects="mod_include.lo"
15855  else
15856    objects=""
15857  fi
15858
15859  if test -z "$module_standalone"; then
15860    if test -z "$shared"; then
15861      # The filename of a convenience library must have a "lib" prefix:
15862      libname="libmod_include.la"
15863      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15864      modpath_static="$modpath_static $libname"
15865      cat >>$modpath_current/modules.mk<<EOF
15866$libname: $objects
15867	\$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
15868EOF
15869      if test ! -z "\$(MOD_INCLUDE_LDADD)"; then
15870
15871  if test "x$AP_LIBS" = "x"; then
15872    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INCLUDE_LDADD)\""
15873    AP_LIBS="\$(MOD_INCLUDE_LDADD)"
15874  else
15875    apr_addto_bugger="\$(MOD_INCLUDE_LDADD)"
15876    for i in $apr_addto_bugger; do
15877      apr_addto_duplicate="0"
15878      for j in $AP_LIBS; do
15879        if test "x$i" = "x$j"; then
15880          apr_addto_duplicate="1"
15881          break
15882        fi
15883      done
15884      if test $apr_addto_duplicate = "0"; then
15885        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15886        AP_LIBS="$AP_LIBS $i"
15887      fi
15888    done
15889  fi
15890
15891      fi
15892    else
15893      apache_need_shared=yes
15894      libname="mod_include.la"
15895      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15896      modpath_shared="$modpath_shared $libname"
15897      cat >>$modpath_current/modules.mk<<EOF
15898$libname: $shobjects
15899	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INCLUDE_LDADD)
15900EOF
15901    fi
15902  fi
15903
15904
15905  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"
15906
15907
15908
15909  fi
15910
15911
15912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_filter" >&5
15913$as_echo_n "checking whether to enable mod_filter... " >&6; }
15914    # Check whether --enable-filter was given.
15915if test "${enable_filter+set}" = set; then :
15916  enableval=$enable_filter; force_filter=$enableval
15917else
15918  enable_filter=yes
15919fi
15920
15921    _apmod_extra_msg=""
15922        case "$enable_filter" in
15923    yes|static|shared)
15924      _apmod_required="yes"
15925      ;;
15926    *)
15927      case "$module_selection" in
15928      reallyall|all|most)
15929        _apmod_required="no"
15930        ;;
15931      *)
15932        _apmod_required="yes"
15933        ;;
15934      esac
15935  esac
15936  if test "$enable_filter" = "static"; then
15937    enable_filter=static
15938  elif test "$enable_filter" = "yes"; then
15939    enable_filter=$module_default
15940  elif test "$enable_filter" = "most"; then
15941    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15942            "$module_selection" = "reallyall"
15943    then
15944      enable_filter=$module_default
15945    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15946      enable_filter=no
15947    fi
15948    _apmod_extra_msg=" ($module_selection)"
15949  elif test "$enable_filter" = "maybe-all"; then
15950    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15951    then
15952      enable_filter=$module_default
15953      _apmod_extra_msg=" ($module_selection)"
15954    else
15955      enable_filter=no
15956    fi
15957  elif test "$enable_filter" = "no" -a "$module_selection" = "reallyall" -a \
15958            "$force_filter" != "no" ; then
15959      enable_filter=$module_default
15960      _apmod_extra_msg=" ($module_selection)"
15961  fi
15962  if test "$enable_filter" != "no"; then
15963            :
15964  fi
15965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_filter$_apmod_extra_msg" >&5
15966$as_echo "$enable_filter$_apmod_extra_msg" >&6; }
15967  if test "$enable_filter" != "no"; then
15968    case "$enable_filter" in
15969    static*)
15970      MODLIST="$MODLIST filter"
15971      if test "filter" = "so"; then
15972          sharedobjs=yes
15973      fi
15974      shared="";;
15975    *)
15976      enable_filter=`echo $enable_filter|sed 's/shared,*//'`
15977      sharedobjs=yes
15978      shared=yes
15979      DSO_MODULES="$DSO_MODULES filter"
15980      if test "yes" = "yes" ; then
15981        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},filter"
15982      fi
15983      ;;
15984    esac
15985
15986
15987  if test -z ""; then
15988    objects="mod_filter.lo"
15989  else
15990    objects=""
15991  fi
15992
15993  if test -z "$module_standalone"; then
15994    if test -z "$shared"; then
15995      # The filename of a convenience library must have a "lib" prefix:
15996      libname="libmod_filter.la"
15997      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15998      modpath_static="$modpath_static $libname"
15999      cat >>$modpath_current/modules.mk<<EOF
16000$libname: $objects
16001	\$(MOD_LINK) $objects \$(MOD_FILTER_LDADD)
16002EOF
16003      if test ! -z "\$(MOD_FILTER_LDADD)"; then
16004
16005  if test "x$AP_LIBS" = "x"; then
16006    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILTER_LDADD)\""
16007    AP_LIBS="\$(MOD_FILTER_LDADD)"
16008  else
16009    apr_addto_bugger="\$(MOD_FILTER_LDADD)"
16010    for i in $apr_addto_bugger; do
16011      apr_addto_duplicate="0"
16012      for j in $AP_LIBS; do
16013        if test "x$i" = "x$j"; then
16014          apr_addto_duplicate="1"
16015          break
16016        fi
16017      done
16018      if test $apr_addto_duplicate = "0"; then
16019        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16020        AP_LIBS="$AP_LIBS $i"
16021      fi
16022    done
16023  fi
16024
16025      fi
16026    else
16027      apache_need_shared=yes
16028      libname="mod_filter.la"
16029      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16030      modpath_shared="$modpath_shared $libname"
16031      cat >>$modpath_current/modules.mk<<EOF
16032$libname: $shobjects
16033	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILTER_LDADD)
16034EOF
16035    fi
16036  fi
16037
16038
16039  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILTER_LDADD"
16040
16041
16042
16043  fi
16044
16045
16046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reflector" >&5
16047$as_echo_n "checking whether to enable mod_reflector... " >&6; }
16048    # Check whether --enable-reflector was given.
16049if test "${enable_reflector+set}" = set; then :
16050  enableval=$enable_reflector; force_reflector=$enableval
16051else
16052  enable_reflector=maybe-all
16053fi
16054
16055    _apmod_extra_msg=""
16056        case "$enable_reflector" in
16057    yes|static|shared)
16058      _apmod_required="yes"
16059      ;;
16060    *)
16061      case "$module_selection" in
16062      reallyall|all|most)
16063        _apmod_required="no"
16064        ;;
16065      *)
16066        _apmod_required="yes"
16067        ;;
16068      esac
16069  esac
16070  if test "$enable_reflector" = "static"; then
16071    enable_reflector=static
16072  elif test "$enable_reflector" = "yes"; then
16073    enable_reflector=$module_default
16074  elif test "$enable_reflector" = "most"; then
16075    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16076            "$module_selection" = "reallyall"
16077    then
16078      enable_reflector=$module_default
16079    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16080      enable_reflector=no
16081    fi
16082    _apmod_extra_msg=" ($module_selection)"
16083  elif test "$enable_reflector" = "maybe-all"; then
16084    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16085    then
16086      enable_reflector=$module_default
16087      _apmod_extra_msg=" ($module_selection)"
16088    else
16089      enable_reflector=no
16090    fi
16091  elif test "$enable_reflector" = "no" -a "$module_selection" = "reallyall" -a \
16092            "$force_reflector" != "no" ; then
16093      enable_reflector=$module_default
16094      _apmod_extra_msg=" ($module_selection)"
16095  fi
16096  if test "$enable_reflector" != "no"; then
16097            :
16098  fi
16099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_reflector$_apmod_extra_msg" >&5
16100$as_echo "$enable_reflector$_apmod_extra_msg" >&6; }
16101  if test "$enable_reflector" != "no"; then
16102    case "$enable_reflector" in
16103    static*)
16104      MODLIST="$MODLIST reflector"
16105      if test "reflector" = "so"; then
16106          sharedobjs=yes
16107      fi
16108      shared="";;
16109    *)
16110      enable_reflector=`echo $enable_reflector|sed 's/shared,*//'`
16111      sharedobjs=yes
16112      shared=yes
16113      DSO_MODULES="$DSO_MODULES reflector"
16114      if test "" = "yes" ; then
16115        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reflector"
16116      fi
16117      ;;
16118    esac
16119
16120
16121  if test -z ""; then
16122    objects="mod_reflector.lo"
16123  else
16124    objects=""
16125  fi
16126
16127  if test -z "$module_standalone"; then
16128    if test -z "$shared"; then
16129      # The filename of a convenience library must have a "lib" prefix:
16130      libname="libmod_reflector.la"
16131      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16132      modpath_static="$modpath_static $libname"
16133      cat >>$modpath_current/modules.mk<<EOF
16134$libname: $objects
16135	\$(MOD_LINK) $objects \$(MOD_REFLECTOR_LDADD)
16136EOF
16137      if test ! -z "\$(MOD_REFLECTOR_LDADD)"; then
16138
16139  if test "x$AP_LIBS" = "x"; then
16140    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REFLECTOR_LDADD)\""
16141    AP_LIBS="\$(MOD_REFLECTOR_LDADD)"
16142  else
16143    apr_addto_bugger="\$(MOD_REFLECTOR_LDADD)"
16144    for i in $apr_addto_bugger; do
16145      apr_addto_duplicate="0"
16146      for j in $AP_LIBS; do
16147        if test "x$i" = "x$j"; then
16148          apr_addto_duplicate="1"
16149          break
16150        fi
16151      done
16152      if test $apr_addto_duplicate = "0"; then
16153        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16154        AP_LIBS="$AP_LIBS $i"
16155      fi
16156    done
16157  fi
16158
16159      fi
16160    else
16161      apache_need_shared=yes
16162      libname="mod_reflector.la"
16163      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16164      modpath_shared="$modpath_shared $libname"
16165      cat >>$modpath_current/modules.mk<<EOF
16166$libname: $shobjects
16167	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REFLECTOR_LDADD)
16168EOF
16169    fi
16170  fi
16171
16172
16173  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REFLECTOR_LDADD"
16174
16175
16176
16177  fi
16178
16179
16180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_substitute" >&5
16181$as_echo_n "checking whether to enable mod_substitute... " >&6; }
16182    # Check whether --enable-substitute was given.
16183if test "${enable_substitute+set}" = set; then :
16184  enableval=$enable_substitute; force_substitute=$enableval
16185else
16186  enable_substitute=most
16187fi
16188
16189    _apmod_extra_msg=""
16190        case "$enable_substitute" in
16191    yes|static|shared)
16192      _apmod_required="yes"
16193      ;;
16194    *)
16195      case "$module_selection" in
16196      reallyall|all|most)
16197        _apmod_required="no"
16198        ;;
16199      *)
16200        _apmod_required="yes"
16201        ;;
16202      esac
16203  esac
16204  if test "$enable_substitute" = "static"; then
16205    enable_substitute=static
16206  elif test "$enable_substitute" = "yes"; then
16207    enable_substitute=$module_default
16208  elif test "$enable_substitute" = "most"; then
16209    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16210            "$module_selection" = "reallyall"
16211    then
16212      enable_substitute=$module_default
16213    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16214      enable_substitute=no
16215    fi
16216    _apmod_extra_msg=" ($module_selection)"
16217  elif test "$enable_substitute" = "maybe-all"; then
16218    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16219    then
16220      enable_substitute=$module_default
16221      _apmod_extra_msg=" ($module_selection)"
16222    else
16223      enable_substitute=no
16224    fi
16225  elif test "$enable_substitute" = "no" -a "$module_selection" = "reallyall" -a \
16226            "$force_substitute" != "no" ; then
16227      enable_substitute=$module_default
16228      _apmod_extra_msg=" ($module_selection)"
16229  fi
16230  if test "$enable_substitute" != "no"; then
16231            :
16232  fi
16233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_substitute$_apmod_extra_msg" >&5
16234$as_echo "$enable_substitute$_apmod_extra_msg" >&6; }
16235  if test "$enable_substitute" != "no"; then
16236    case "$enable_substitute" in
16237    static*)
16238      MODLIST="$MODLIST substitute"
16239      if test "substitute" = "so"; then
16240          sharedobjs=yes
16241      fi
16242      shared="";;
16243    *)
16244      enable_substitute=`echo $enable_substitute|sed 's/shared,*//'`
16245      sharedobjs=yes
16246      shared=yes
16247      DSO_MODULES="$DSO_MODULES substitute"
16248      if test "most" = "yes" ; then
16249        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},substitute"
16250      fi
16251      ;;
16252    esac
16253
16254
16255  if test -z ""; then
16256    objects="mod_substitute.lo"
16257  else
16258    objects=""
16259  fi
16260
16261  if test -z "$module_standalone"; then
16262    if test -z "$shared"; then
16263      # The filename of a convenience library must have a "lib" prefix:
16264      libname="libmod_substitute.la"
16265      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16266      modpath_static="$modpath_static $libname"
16267      cat >>$modpath_current/modules.mk<<EOF
16268$libname: $objects
16269	\$(MOD_LINK) $objects \$(MOD_SUBSTITUTE_LDADD)
16270EOF
16271      if test ! -z "\$(MOD_SUBSTITUTE_LDADD)"; then
16272
16273  if test "x$AP_LIBS" = "x"; then
16274    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUBSTITUTE_LDADD)\""
16275    AP_LIBS="\$(MOD_SUBSTITUTE_LDADD)"
16276  else
16277    apr_addto_bugger="\$(MOD_SUBSTITUTE_LDADD)"
16278    for i in $apr_addto_bugger; do
16279      apr_addto_duplicate="0"
16280      for j in $AP_LIBS; do
16281        if test "x$i" = "x$j"; then
16282          apr_addto_duplicate="1"
16283          break
16284        fi
16285      done
16286      if test $apr_addto_duplicate = "0"; then
16287        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16288        AP_LIBS="$AP_LIBS $i"
16289      fi
16290    done
16291  fi
16292
16293      fi
16294    else
16295      apache_need_shared=yes
16296      libname="mod_substitute.la"
16297      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16298      modpath_shared="$modpath_shared $libname"
16299      cat >>$modpath_current/modules.mk<<EOF
16300$libname: $shobjects
16301	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUBSTITUTE_LDADD)
16302EOF
16303    fi
16304  fi
16305
16306
16307  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUBSTITUTE_LDADD"
16308
16309
16310
16311  fi
16312
16313
16314sed_obj="mod_sed.lo sed0.lo sed1.lo regexp.lo"
16315
16316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
16317$as_echo_n "checking whether to enable mod_sed... " >&6; }
16318    # Check whether --enable-sed was given.
16319if test "${enable_sed+set}" = set; then :
16320  enableval=$enable_sed; force_sed=$enableval
16321else
16322  enable_sed=most
16323fi
16324
16325    _apmod_extra_msg=""
16326        case "$enable_sed" in
16327    yes|static|shared)
16328      _apmod_required="yes"
16329      ;;
16330    *)
16331      case "$module_selection" in
16332      reallyall|all|most)
16333        _apmod_required="no"
16334        ;;
16335      *)
16336        _apmod_required="yes"
16337        ;;
16338      esac
16339  esac
16340  if test "$enable_sed" = "static"; then
16341    enable_sed=static
16342  elif test "$enable_sed" = "yes"; then
16343    enable_sed=$module_default
16344  elif test "$enable_sed" = "most"; then
16345    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16346            "$module_selection" = "reallyall"
16347    then
16348      enable_sed=$module_default
16349    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16350      enable_sed=no
16351    fi
16352    _apmod_extra_msg=" ($module_selection)"
16353  elif test "$enable_sed" = "maybe-all"; then
16354    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16355    then
16356      enable_sed=$module_default
16357      _apmod_extra_msg=" ($module_selection)"
16358    else
16359      enable_sed=no
16360    fi
16361  elif test "$enable_sed" = "no" -a "$module_selection" = "reallyall" -a \
16362            "$force_sed" != "no" ; then
16363      enable_sed=$module_default
16364      _apmod_extra_msg=" ($module_selection)"
16365  fi
16366  if test "$enable_sed" != "no"; then
16367            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
16368$as_echo "checking dependencies" >&6; }
16369            :
16370
16371    if test "x$enable_sed" = "xshared"; then
16372        # The only symbol which needs to be exported is the module
16373        # structure, so ask libtool to hide libsed internals:
16374
16375  if test "x$MOD_SED_LDADD" = "x"; then
16376    test "x$silent" != "xyes" && echo "  setting MOD_SED_LDADD to \"-export-symbols-regex sed_module\""
16377    MOD_SED_LDADD="-export-symbols-regex sed_module"
16378  else
16379    apr_addto_bugger="-export-symbols-regex sed_module"
16380    for i in $apr_addto_bugger; do
16381      apr_addto_duplicate="0"
16382      for j in $MOD_SED_LDADD; do
16383        if test "x$i" = "x$j"; then
16384          apr_addto_duplicate="1"
16385          break
16386        fi
16387      done
16388      if test $apr_addto_duplicate = "0"; then
16389        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SED_LDADD"
16390        MOD_SED_LDADD="$MOD_SED_LDADD $i"
16391      fi
16392    done
16393  fi
16394
16395    fi
16396
16397            :
16398            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
16399$as_echo_n "checking whether to enable mod_sed... " >&6; }
16400            if test "$enable_sed" = "no"; then
16401              if test "$_apmod_required" = "no"; then
16402                _apmod_extra_msg=" (disabled)"
16403              else
16404                as_fn_error $? "mod_sed has been requested but can not be built due to prerequisite failures" "$LINENO" 5
16405              fi
16406            fi
16407  fi
16408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sed$_apmod_extra_msg" >&5
16409$as_echo "$enable_sed$_apmod_extra_msg" >&6; }
16410  if test "$enable_sed" != "no"; then
16411    case "$enable_sed" in
16412    static*)
16413      MODLIST="$MODLIST sed"
16414      if test "sed" = "so"; then
16415          sharedobjs=yes
16416      fi
16417      shared="";;
16418    *)
16419      enable_sed=`echo $enable_sed|sed 's/shared,*//'`
16420      sharedobjs=yes
16421      shared=yes
16422      DSO_MODULES="$DSO_MODULES sed"
16423      if test "most" = "yes" ; then
16424        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},sed"
16425      fi
16426      ;;
16427    esac
16428
16429
16430  if test -z "$sed_obj"; then
16431    objects="mod_sed.lo"
16432  else
16433    objects="$sed_obj"
16434  fi
16435
16436  if test -z "$module_standalone"; then
16437    if test -z "$shared"; then
16438      # The filename of a convenience library must have a "lib" prefix:
16439      libname="libmod_sed.la"
16440      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16441      modpath_static="$modpath_static $libname"
16442      cat >>$modpath_current/modules.mk<<EOF
16443$libname: $objects
16444	\$(MOD_LINK) $objects \$(MOD_SED_LDADD)
16445EOF
16446      if test ! -z "\$(MOD_SED_LDADD)"; then
16447
16448  if test "x$AP_LIBS" = "x"; then
16449    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SED_LDADD)\""
16450    AP_LIBS="\$(MOD_SED_LDADD)"
16451  else
16452    apr_addto_bugger="\$(MOD_SED_LDADD)"
16453    for i in $apr_addto_bugger; do
16454      apr_addto_duplicate="0"
16455      for j in $AP_LIBS; do
16456        if test "x$i" = "x$j"; then
16457          apr_addto_duplicate="1"
16458          break
16459        fi
16460      done
16461      if test $apr_addto_duplicate = "0"; then
16462        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16463        AP_LIBS="$AP_LIBS $i"
16464      fi
16465    done
16466  fi
16467
16468      fi
16469    else
16470      apache_need_shared=yes
16471      libname="mod_sed.la"
16472      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16473      modpath_shared="$modpath_shared $libname"
16474      cat >>$modpath_current/modules.mk<<EOF
16475$libname: $shobjects
16476	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SED_LDADD)
16477EOF
16478    fi
16479  fi
16480
16481
16482  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SED_LDADD"
16483
16484
16485
16486  fi
16487
16488
16489if test "$ac_cv_ebcdic" = "yes"; then
16490# mod_charset_lite can be very useful on an ebcdic system,
16491#   so include it by default
16492
16493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
16494$as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
16495    # Check whether --enable-charset-lite was given.
16496if test "${enable_charset_lite+set}" = set; then :
16497  enableval=$enable_charset_lite; force_charset_lite=$enableval
16498else
16499  enable_charset_lite=yes
16500fi
16501
16502    _apmod_extra_msg=""
16503        case "$enable_charset_lite" in
16504    yes|static|shared)
16505      _apmod_required="yes"
16506      ;;
16507    *)
16508      case "$module_selection" in
16509      reallyall|all|most)
16510        _apmod_required="no"
16511        ;;
16512      *)
16513        _apmod_required="yes"
16514        ;;
16515      esac
16516  esac
16517  if test "$enable_charset_lite" = "static"; then
16518    enable_charset_lite=static
16519  elif test "$enable_charset_lite" = "yes"; then
16520    enable_charset_lite=$module_default
16521  elif test "$enable_charset_lite" = "most"; then
16522    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16523            "$module_selection" = "reallyall"
16524    then
16525      enable_charset_lite=$module_default
16526    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16527      enable_charset_lite=no
16528    fi
16529    _apmod_extra_msg=" ($module_selection)"
16530  elif test "$enable_charset_lite" = "maybe-all"; then
16531    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16532    then
16533      enable_charset_lite=$module_default
16534      _apmod_extra_msg=" ($module_selection)"
16535    else
16536      enable_charset_lite=no
16537    fi
16538  elif test "$enable_charset_lite" = "no" -a "$module_selection" = "reallyall" -a \
16539            "$force_charset_lite" != "no" ; then
16540      enable_charset_lite=$module_default
16541      _apmod_extra_msg=" ($module_selection)"
16542  fi
16543  if test "$enable_charset_lite" != "no"; then
16544            :
16545  fi
16546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
16547$as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
16548  if test "$enable_charset_lite" != "no"; then
16549    case "$enable_charset_lite" in
16550    static*)
16551      MODLIST="$MODLIST charset_lite"
16552      if test "charset_lite" = "so"; then
16553          sharedobjs=yes
16554      fi
16555      shared="";;
16556    *)
16557      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
16558      sharedobjs=yes
16559      shared=yes
16560      DSO_MODULES="$DSO_MODULES charset_lite"
16561      if test "yes" = "yes" ; then
16562        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
16563      fi
16564      ;;
16565    esac
16566
16567
16568  if test -z ""; then
16569    objects="mod_charset_lite.lo"
16570  else
16571    objects=""
16572  fi
16573
16574  if test -z "$module_standalone"; then
16575    if test -z "$shared"; then
16576      # The filename of a convenience library must have a "lib" prefix:
16577      libname="libmod_charset_lite.la"
16578      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16579      modpath_static="$modpath_static $libname"
16580      cat >>$modpath_current/modules.mk<<EOF
16581$libname: $objects
16582	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
16583EOF
16584      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then
16585
16586  if test "x$AP_LIBS" = "x"; then
16587    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
16588    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
16589  else
16590    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
16591    for i in $apr_addto_bugger; do
16592      apr_addto_duplicate="0"
16593      for j in $AP_LIBS; do
16594        if test "x$i" = "x$j"; then
16595          apr_addto_duplicate="1"
16596          break
16597        fi
16598      done
16599      if test $apr_addto_duplicate = "0"; then
16600        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16601        AP_LIBS="$AP_LIBS $i"
16602      fi
16603    done
16604  fi
16605
16606      fi
16607    else
16608      apache_need_shared=yes
16609      libname="mod_charset_lite.la"
16610      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16611      modpath_shared="$modpath_shared $libname"
16612      cat >>$modpath_current/modules.mk<<EOF
16613$libname: $shobjects
16614	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
16615EOF
16616    fi
16617  fi
16618
16619
16620  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
16621
16622
16623
16624  fi
16625
16626else
16627
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
16629$as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
16630    # Check whether --enable-charset-lite was given.
16631if test "${enable_charset_lite+set}" = set; then :
16632  enableval=$enable_charset_lite; force_charset_lite=$enableval
16633else
16634  enable_charset_lite=maybe-all
16635fi
16636
16637    _apmod_extra_msg=""
16638        case "$enable_charset_lite" in
16639    yes|static|shared)
16640      _apmod_required="yes"
16641      ;;
16642    *)
16643      case "$module_selection" in
16644      reallyall|all|most)
16645        _apmod_required="no"
16646        ;;
16647      *)
16648        _apmod_required="yes"
16649        ;;
16650      esac
16651  esac
16652  if test "$enable_charset_lite" = "static"; then
16653    enable_charset_lite=static
16654  elif test "$enable_charset_lite" = "yes"; then
16655    enable_charset_lite=$module_default
16656  elif test "$enable_charset_lite" = "most"; then
16657    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16658            "$module_selection" = "reallyall"
16659    then
16660      enable_charset_lite=$module_default
16661    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16662      enable_charset_lite=no
16663    fi
16664    _apmod_extra_msg=" ($module_selection)"
16665  elif test "$enable_charset_lite" = "maybe-all"; then
16666    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16667    then
16668      enable_charset_lite=$module_default
16669      _apmod_extra_msg=" ($module_selection)"
16670    else
16671      enable_charset_lite=no
16672    fi
16673  elif test "$enable_charset_lite" = "no" -a "$module_selection" = "reallyall" -a \
16674            "$force_charset_lite" != "no" ; then
16675      enable_charset_lite=$module_default
16676      _apmod_extra_msg=" ($module_selection)"
16677  fi
16678  if test "$enable_charset_lite" != "no"; then
16679            :
16680  fi
16681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
16682$as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
16683  if test "$enable_charset_lite" != "no"; then
16684    case "$enable_charset_lite" in
16685    static*)
16686      MODLIST="$MODLIST charset_lite"
16687      if test "charset_lite" = "so"; then
16688          sharedobjs=yes
16689      fi
16690      shared="";;
16691    *)
16692      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
16693      sharedobjs=yes
16694      shared=yes
16695      DSO_MODULES="$DSO_MODULES charset_lite"
16696      if test "" = "yes" ; then
16697        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
16698      fi
16699      ;;
16700    esac
16701
16702
16703  if test -z ""; then
16704    objects="mod_charset_lite.lo"
16705  else
16706    objects=""
16707  fi
16708
16709  if test -z "$module_standalone"; then
16710    if test -z "$shared"; then
16711      # The filename of a convenience library must have a "lib" prefix:
16712      libname="libmod_charset_lite.la"
16713      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16714      modpath_static="$modpath_static $libname"
16715      cat >>$modpath_current/modules.mk<<EOF
16716$libname: $objects
16717	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
16718EOF
16719      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then
16720
16721  if test "x$AP_LIBS" = "x"; then
16722    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
16723    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
16724  else
16725    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
16726    for i in $apr_addto_bugger; do
16727      apr_addto_duplicate="0"
16728      for j in $AP_LIBS; do
16729        if test "x$i" = "x$j"; then
16730          apr_addto_duplicate="1"
16731          break
16732        fi
16733      done
16734      if test $apr_addto_duplicate = "0"; then
16735        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16736        AP_LIBS="$AP_LIBS $i"
16737      fi
16738    done
16739  fi
16740
16741      fi
16742    else
16743      apache_need_shared=yes
16744      libname="mod_charset_lite.la"
16745      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16746      modpath_shared="$modpath_shared $libname"
16747      cat >>$modpath_current/modules.mk<<EOF
16748$libname: $shobjects
16749	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
16750EOF
16751    fi
16752  fi
16753
16754
16755  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
16756
16757
16758
16759  fi
16760
16761fi
16762
16763
16764
16765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
16766$as_echo_n "checking whether to enable mod_deflate... " >&6; }
16767    # Check whether --enable-deflate was given.
16768if test "${enable_deflate+set}" = set; then :
16769  enableval=$enable_deflate; force_deflate=$enableval
16770else
16771  enable_deflate=most
16772fi
16773
16774    _apmod_extra_msg=""
16775        case "$enable_deflate" in
16776    yes|static|shared)
16777      _apmod_required="yes"
16778      ;;
16779    *)
16780      case "$module_selection" in
16781      reallyall|all|most)
16782        _apmod_required="no"
16783        ;;
16784      *)
16785        _apmod_required="yes"
16786        ;;
16787      esac
16788  esac
16789  if test "$enable_deflate" = "static"; then
16790    enable_deflate=static
16791  elif test "$enable_deflate" = "yes"; then
16792    enable_deflate=$module_default
16793  elif test "$enable_deflate" = "most"; then
16794    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16795            "$module_selection" = "reallyall"
16796    then
16797      enable_deflate=$module_default
16798    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16799      enable_deflate=no
16800    fi
16801    _apmod_extra_msg=" ($module_selection)"
16802  elif test "$enable_deflate" = "maybe-all"; then
16803    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16804    then
16805      enable_deflate=$module_default
16806      _apmod_extra_msg=" ($module_selection)"
16807    else
16808      enable_deflate=no
16809    fi
16810  elif test "$enable_deflate" = "no" -a "$module_selection" = "reallyall" -a \
16811            "$force_deflate" != "no" ; then
16812      enable_deflate=$module_default
16813      _apmod_extra_msg=" ($module_selection)"
16814  fi
16815  if test "$enable_deflate" != "no"; then
16816            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
16817$as_echo "checking dependencies" >&6; }
16818            :
16819
16820
16821# Check whether --with-z was given.
16822if test "${with_z+set}" = set; then :
16823  withval=$with_z;
16824    if test "x$withval" != "xyes" && test "x$withval" != "x"; then
16825      ap_zlib_base="$withval"
16826      ap_zlib_with="yes"
16827    fi
16828
16829fi
16830
16831  if test "x$ap_zlib_base" = "x"; then
16832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib location" >&5
16833$as_echo_n "checking for zlib location... " >&6; }
16834    if ${ap_cv_zlib+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837
16838      for dir in /usr/local /usr ; do
16839        if test -d $dir && test -f $dir/include/zlib.h; then
16840          ap_cv_zlib=$dir
16841          break
16842        fi
16843      done
16844
16845fi
16846
16847    ap_zlib_base=$ap_cv_zlib
16848    if test "x$ap_zlib_base" = "x"; then
16849      enable_deflate=no
16850      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16851$as_echo "not found" >&6; }
16852    else
16853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_zlib_base" >&5
16854$as_echo "$ap_zlib_base" >&6; }
16855    fi
16856  fi
16857  if test "$enable_deflate" != "no"; then
16858    ap_save_includes=$INCLUDES
16859    ap_save_ldflags=$LDFLAGS
16860    ap_save_cppflags=$CPPFLAGS
16861    ap_zlib_ldflags=""
16862    if test "$ap_zlib_base" != "/usr"; then
16863
16864  if test "x$INCLUDES" = "x"; then
16865    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
16866    INCLUDES="-I${ap_zlib_base}/include"
16867  else
16868    apr_addto_bugger="-I${ap_zlib_base}/include"
16869    for i in $apr_addto_bugger; do
16870      apr_addto_duplicate="0"
16871      for j in $INCLUDES; do
16872        if test "x$i" = "x$j"; then
16873          apr_addto_duplicate="1"
16874          break
16875        fi
16876      done
16877      if test $apr_addto_duplicate = "0"; then
16878        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
16879        INCLUDES="$INCLUDES $i"
16880      fi
16881    done
16882  fi
16883
16884
16885  if test "x$MOD_INCLUDES" = "x"; then
16886    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I${ap_zlib_base}/include\""
16887    MOD_INCLUDES="-I${ap_zlib_base}/include"
16888  else
16889    apr_addto_bugger="-I${ap_zlib_base}/include"
16890    for i in $apr_addto_bugger; do
16891      apr_addto_duplicate="0"
16892      for j in $MOD_INCLUDES; do
16893        if test "x$i" = "x$j"; then
16894          apr_addto_duplicate="1"
16895          break
16896        fi
16897      done
16898      if test $apr_addto_duplicate = "0"; then
16899        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
16900        MOD_INCLUDES="$MOD_INCLUDES $i"
16901      fi
16902    done
16903  fi
16904
16905            CPPFLAGS="$CPPFLAGS $INCLUDES"
16906
16907  if test "x$LDFLAGS" = "x"; then
16908    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
16909    LDFLAGS="-L${ap_zlib_base}/lib"
16910  else
16911    apr_addto_bugger="-L${ap_zlib_base}/lib"
16912    for i in $apr_addto_bugger; do
16913      apr_addto_duplicate="0"
16914      for j in $LDFLAGS; do
16915        if test "x$i" = "x$j"; then
16916          apr_addto_duplicate="1"
16917          break
16918        fi
16919      done
16920      if test $apr_addto_duplicate = "0"; then
16921        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
16922        LDFLAGS="$LDFLAGS $i"
16923      fi
16924    done
16925  fi
16926
16927
16928  if test "x$ap_zlib_ldflags" = "x"; then
16929    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"-L${ap_zlib_base}/lib\""
16930    ap_zlib_ldflags="-L${ap_zlib_base}/lib"
16931  else
16932    apr_addto_bugger="-L${ap_zlib_base}/lib"
16933    for i in $apr_addto_bugger; do
16934      apr_addto_duplicate="0"
16935      for j in $ap_zlib_ldflags; do
16936        if test "x$i" = "x$j"; then
16937          apr_addto_duplicate="1"
16938          break
16939        fi
16940      done
16941      if test $apr_addto_duplicate = "0"; then
16942        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
16943        ap_zlib_ldflags="$ap_zlib_ldflags $i"
16944      fi
16945    done
16946  fi
16947
16948      if test "x$ap_platform_runtime_link_flag" != "x"; then
16949
16950  if test "x$LDFLAGS" = "x"; then
16951    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
16952    LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16953  else
16954    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16955    for i in $apr_addto_bugger; do
16956      apr_addto_duplicate="0"
16957      for j in $LDFLAGS; do
16958        if test "x$i" = "x$j"; then
16959          apr_addto_duplicate="1"
16960          break
16961        fi
16962      done
16963      if test $apr_addto_duplicate = "0"; then
16964        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
16965        LDFLAGS="$LDFLAGS $i"
16966      fi
16967    done
16968  fi
16969
16970
16971  if test "x$ap_zlib_ldflags" = "x"; then
16972    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
16973    ap_zlib_ldflags="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16974  else
16975    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16976    for i in $apr_addto_bugger; do
16977      apr_addto_duplicate="0"
16978      for j in $ap_zlib_ldflags; do
16979        if test "x$i" = "x$j"; then
16980          apr_addto_duplicate="1"
16981          break
16982        fi
16983      done
16984      if test $apr_addto_duplicate = "0"; then
16985        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
16986        ap_zlib_ldflags="$ap_zlib_ldflags $i"
16987      fi
16988    done
16989  fi
16990
16991      fi
16992    fi
16993
16994  if test "x$LIBS" = "x"; then
16995    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lz\""
16996    LIBS="-lz"
16997  else
16998    apr_addto_bugger="-lz"
16999    for i in $apr_addto_bugger; do
17000      apr_addto_duplicate="0"
17001      for j in $LIBS; do
17002        if test "x$i" = "x$j"; then
17003          apr_addto_duplicate="1"
17004          break
17005        fi
17006      done
17007      if test $apr_addto_duplicate = "0"; then
17008        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
17009        LIBS="$LIBS $i"
17010      fi
17011    done
17012  fi
17013
17014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
17015$as_echo_n "checking for zlib library... " >&6; }
17016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017/* end confdefs.h.  */
17018#include <zlib.h>
17019int
17020main ()
17021{
17022int i = Z_OK;
17023  ;
17024  return 0;
17025}
17026_ACEOF
17027if ac_fn_c_try_link "$LINENO"; then :
17028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17029$as_echo "found" >&6; }
17030
17031  if test "x$MOD_DEFLATE_LDADD" = "x"; then
17032    test "x$silent" != "xyes" && echo "  setting MOD_DEFLATE_LDADD to \"$ap_zlib_ldflags -lz\""
17033    MOD_DEFLATE_LDADD="$ap_zlib_ldflags -lz"
17034  else
17035    apr_addto_bugger="$ap_zlib_ldflags -lz"
17036    for i in $apr_addto_bugger; do
17037      apr_addto_duplicate="0"
17038      for j in $MOD_DEFLATE_LDADD; do
17039        if test "x$i" = "x$j"; then
17040          apr_addto_duplicate="1"
17041          break
17042        fi
17043      done
17044      if test $apr_addto_duplicate = "0"; then
17045        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_DEFLATE_LDADD"
17046        MOD_DEFLATE_LDADD="$MOD_DEFLATE_LDADD $i"
17047      fi
17048    done
17049  fi
17050
17051else
17052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17053$as_echo "not found" >&6; }
17054       enable_deflate=no
17055       if test "x$ap_zlib_with" = "x"; then
17056         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, zlib was missing or unusable" >&5
17057$as_echo "$as_me: WARNING: ... Error, zlib was missing or unusable" >&2;}
17058       else
17059         as_fn_error $? "... Error, zlib was missing or unusable" "$LINENO" 5
17060       fi
17061
17062fi
17063rm -f core conftest.err conftest.$ac_objext \
17064    conftest$ac_exeext conftest.$ac_ext
17065    INCLUDES=$ap_save_includes
17066    LDFLAGS=$ap_save_ldflags
17067    CPPFLAGS=$ap_save_cppflags
17068
17069  if test "x$LIBS" = "x-lz"; then
17070    test "x$silent" != "xyes" && echo "  nulling LIBS"
17071    LIBS=""
17072  else
17073    apr_new_bugger=""
17074    apr_removed=0
17075    for i in $LIBS; do
17076      if test "x$i" != "x-lz"; then
17077        apr_new_bugger="$apr_new_bugger $i"
17078      else
17079        apr_removed=1
17080      fi
17081    done
17082    if test $apr_removed = "1"; then
17083      test "x$silent" != "xyes" && echo "  removed \"-lz\" from LIBS"
17084      LIBS=$apr_new_bugger
17085    fi
17086  fi
17087
17088  fi
17089
17090            :
17091            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
17092$as_echo_n "checking whether to enable mod_deflate... " >&6; }
17093            if test "$enable_deflate" = "no"; then
17094              if test "$_apmod_required" = "no"; then
17095                _apmod_extra_msg=" (disabled)"
17096              else
17097                as_fn_error $? "mod_deflate has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17098              fi
17099            fi
17100  fi
17101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_deflate$_apmod_extra_msg" >&5
17102$as_echo "$enable_deflate$_apmod_extra_msg" >&6; }
17103  if test "$enable_deflate" != "no"; then
17104    case "$enable_deflate" in
17105    static*)
17106      MODLIST="$MODLIST deflate"
17107      if test "deflate" = "so"; then
17108          sharedobjs=yes
17109      fi
17110      shared="";;
17111    *)
17112      enable_deflate=`echo $enable_deflate|sed 's/shared,*//'`
17113      sharedobjs=yes
17114      shared=yes
17115      DSO_MODULES="$DSO_MODULES deflate"
17116      if test "most" = "yes" ; then
17117        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},deflate"
17118      fi
17119      ;;
17120    esac
17121
17122
17123  if test -z ""; then
17124    objects="mod_deflate.lo"
17125  else
17126    objects=""
17127  fi
17128
17129  if test -z "$module_standalone"; then
17130    if test -z "$shared"; then
17131      # The filename of a convenience library must have a "lib" prefix:
17132      libname="libmod_deflate.la"
17133      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17134      modpath_static="$modpath_static $libname"
17135      cat >>$modpath_current/modules.mk<<EOF
17136$libname: $objects
17137	\$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
17138EOF
17139      if test ! -z "\$(MOD_DEFLATE_LDADD)"; then
17140
17141  if test "x$AP_LIBS" = "x"; then
17142    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DEFLATE_LDADD)\""
17143    AP_LIBS="\$(MOD_DEFLATE_LDADD)"
17144  else
17145    apr_addto_bugger="\$(MOD_DEFLATE_LDADD)"
17146    for i in $apr_addto_bugger; do
17147      apr_addto_duplicate="0"
17148      for j in $AP_LIBS; do
17149        if test "x$i" = "x$j"; then
17150          apr_addto_duplicate="1"
17151          break
17152        fi
17153      done
17154      if test $apr_addto_duplicate = "0"; then
17155        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17156        AP_LIBS="$AP_LIBS $i"
17157      fi
17158    done
17159  fi
17160
17161      fi
17162    else
17163      apache_need_shared=yes
17164      libname="mod_deflate.la"
17165      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17166      modpath_shared="$modpath_shared $libname"
17167      cat >>$modpath_current/modules.mk<<EOF
17168$libname: $shobjects
17169	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DEFLATE_LDADD)
17170EOF
17171    fi
17172  fi
17173
17174
17175  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"
17176
17177
17178
17179  fi
17180
17181
17182
17183
17184
17185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
17186$as_echo_n "checking whether to enable mod_xml2enc... " >&6; }
17187    # Check whether --enable-xml2enc was given.
17188if test "${enable_xml2enc+set}" = set; then :
17189  enableval=$enable_xml2enc; force_xml2enc=$enableval
17190else
17191  enable_xml2enc=maybe-all
17192fi
17193
17194    _apmod_extra_msg=""
17195        case "$enable_xml2enc" in
17196    yes|static|shared)
17197      _apmod_required="yes"
17198      ;;
17199    *)
17200      case "$module_selection" in
17201      reallyall|all|most)
17202        _apmod_required="no"
17203        ;;
17204      *)
17205        _apmod_required="yes"
17206        ;;
17207      esac
17208  esac
17209  if test "$enable_xml2enc" = "static"; then
17210    enable_xml2enc=static
17211  elif test "$enable_xml2enc" = "yes"; then
17212    enable_xml2enc=$module_default
17213  elif test "$enable_xml2enc" = "most"; then
17214    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17215            "$module_selection" = "reallyall"
17216    then
17217      enable_xml2enc=$module_default
17218    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17219      enable_xml2enc=no
17220    fi
17221    _apmod_extra_msg=" ($module_selection)"
17222  elif test "$enable_xml2enc" = "maybe-all"; then
17223    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17224    then
17225      enable_xml2enc=$module_default
17226      _apmod_extra_msg=" ($module_selection)"
17227    else
17228      enable_xml2enc=no
17229    fi
17230  elif test "$enable_xml2enc" = "no" -a "$module_selection" = "reallyall" -a \
17231            "$force_xml2enc" != "no" ; then
17232      enable_xml2enc=$module_default
17233      _apmod_extra_msg=" ($module_selection)"
17234  fi
17235  if test "$enable_xml2enc" != "no"; then
17236            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
17237$as_echo "checking dependencies" >&6; }
17238            :
17239
17240
17241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17242$as_echo_n "checking for libxml2... " >&6; }
17243if ${ac_cv_libxml2+:} false; then :
17244  $as_echo_n "(cached) " >&6
17245else
17246
17247
17248# Check whether --with-libxml2 was given.
17249if test "${with_libxml2+set}" = set; then :
17250  withval=$with_libxml2; test_paths="${with_libxml2}"
17251else
17252  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"
17253
17254fi
17255
17256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17257$as_echo_n "checking for libxml2... " >&6; }
17258    xml2_path=""
17259    for x in ${test_paths}; do
17260        if test -f "${x}/libxml/parser.h"; then
17261          xml2_path="${x}"
17262          break
17263        fi
17264    done
17265    if test -n "${xml2_path}" ; then
17266      ac_cv_libxml2=yes
17267      XML2_INCLUDES="${xml2_path}"
17268    else
17269      ac_cv_libxml2=no
17270    fi
17271
17272fi
17273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
17274$as_echo "$ac_cv_libxml2" >&6; }
17275
17276  if test "$ac_cv_libxml2" = "yes" ; then
17277
17278  if test "x$MOD_CFLAGS" = "x"; then
17279    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
17280    MOD_CFLAGS="-I${XML2_INCLUDES}"
17281  else
17282    apr_addto_bugger="-I${XML2_INCLUDES}"
17283    for i in $apr_addto_bugger; do
17284      apr_addto_duplicate="0"
17285      for j in $MOD_CFLAGS; do
17286        if test "x$i" = "x$j"; then
17287          apr_addto_duplicate="1"
17288          break
17289        fi
17290      done
17291      if test $apr_addto_duplicate = "0"; then
17292        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
17293        MOD_CFLAGS="$MOD_CFLAGS $i"
17294      fi
17295    done
17296  fi
17297
17298
17299  if test "x$MOD_XML2ENC_LDADD" = "x"; then
17300    test "x$silent" != "xyes" && echo "  setting MOD_XML2ENC_LDADD to \"-lxml2\""
17301    MOD_XML2ENC_LDADD="-lxml2"
17302  else
17303    apr_addto_bugger="-lxml2"
17304    for i in $apr_addto_bugger; do
17305      apr_addto_duplicate="0"
17306      for j in $MOD_XML2ENC_LDADD; do
17307        if test "x$i" = "x$j"; then
17308          apr_addto_duplicate="1"
17309          break
17310        fi
17311      done
17312      if test $apr_addto_duplicate = "0"; then
17313        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_XML2ENC_LDADD"
17314        MOD_XML2ENC_LDADD="$MOD_XML2ENC_LDADD $i"
17315      fi
17316    done
17317  fi
17318
17319  else
17320    enable_xml2enc=no
17321  fi
17322
17323            :
17324            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
17325$as_echo_n "checking whether to enable mod_xml2enc... " >&6; }
17326            if test "$enable_xml2enc" = "no"; then
17327              if test "$_apmod_required" = "no"; then
17328                _apmod_extra_msg=" (disabled)"
17329              else
17330                as_fn_error $? "mod_xml2enc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17331              fi
17332            fi
17333  fi
17334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xml2enc$_apmod_extra_msg" >&5
17335$as_echo "$enable_xml2enc$_apmod_extra_msg" >&6; }
17336  if test "$enable_xml2enc" != "no"; then
17337    case "$enable_xml2enc" in
17338    static*)
17339      MODLIST="$MODLIST xml2enc"
17340      if test "xml2enc" = "so"; then
17341          sharedobjs=yes
17342      fi
17343      shared="";;
17344    *)
17345      enable_xml2enc=`echo $enable_xml2enc|sed 's/shared,*//'`
17346      sharedobjs=yes
17347      shared=yes
17348      DSO_MODULES="$DSO_MODULES xml2enc"
17349      if test "" = "yes" ; then
17350        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},xml2enc"
17351      fi
17352      ;;
17353    esac
17354
17355
17356  if test -z ""; then
17357    objects="mod_xml2enc.lo"
17358  else
17359    objects=""
17360  fi
17361
17362  if test -z "$module_standalone"; then
17363    if test -z "$shared"; then
17364      # The filename of a convenience library must have a "lib" prefix:
17365      libname="libmod_xml2enc.la"
17366      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17367      modpath_static="$modpath_static $libname"
17368      cat >>$modpath_current/modules.mk<<EOF
17369$libname: $objects
17370	\$(MOD_LINK) $objects \$(MOD_XML2ENC_LDADD)
17371EOF
17372      if test ! -z "\$(MOD_XML2ENC_LDADD)"; then
17373
17374  if test "x$AP_LIBS" = "x"; then
17375    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_XML2ENC_LDADD)\""
17376    AP_LIBS="\$(MOD_XML2ENC_LDADD)"
17377  else
17378    apr_addto_bugger="\$(MOD_XML2ENC_LDADD)"
17379    for i in $apr_addto_bugger; do
17380      apr_addto_duplicate="0"
17381      for j in $AP_LIBS; do
17382        if test "x$i" = "x$j"; then
17383          apr_addto_duplicate="1"
17384          break
17385        fi
17386      done
17387      if test $apr_addto_duplicate = "0"; then
17388        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17389        AP_LIBS="$AP_LIBS $i"
17390      fi
17391    done
17392  fi
17393
17394      fi
17395    else
17396      apache_need_shared=yes
17397      libname="mod_xml2enc.la"
17398      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17399      modpath_shared="$modpath_shared $libname"
17400      cat >>$modpath_current/modules.mk<<EOF
17401$libname: $shobjects
17402	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_XML2ENC_LDADD)
17403EOF
17404    fi
17405  fi
17406
17407
17408  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_XML2ENC_LDADD"
17409
17410
17411
17412  fi
17413
17414
17415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
17416$as_echo_n "checking whether to enable mod_proxy_html... " >&6; }
17417    # Check whether --enable-proxy-html was given.
17418if test "${enable_proxy_html+set}" = set; then :
17419  enableval=$enable_proxy_html; force_proxy_html=$enableval
17420else
17421  enable_proxy_html=maybe-all
17422fi
17423
17424    _apmod_extra_msg=""
17425        case "$enable_proxy_html" in
17426    yes|static|shared)
17427      _apmod_required="yes"
17428      ;;
17429    *)
17430      case "$module_selection" in
17431      reallyall|all|most)
17432        _apmod_required="no"
17433        ;;
17434      *)
17435        _apmod_required="yes"
17436        ;;
17437      esac
17438  esac
17439  if test "$enable_proxy_html" = "static"; then
17440    enable_proxy_html=static
17441  elif test "$enable_proxy_html" = "yes"; then
17442    enable_proxy_html=$module_default
17443  elif test "$enable_proxy_html" = "most"; then
17444    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17445            "$module_selection" = "reallyall"
17446    then
17447      enable_proxy_html=$module_default
17448    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17449      enable_proxy_html=no
17450    fi
17451    _apmod_extra_msg=" ($module_selection)"
17452  elif test "$enable_proxy_html" = "maybe-all"; then
17453    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17454    then
17455      enable_proxy_html=$module_default
17456      _apmod_extra_msg=" ($module_selection)"
17457    else
17458      enable_proxy_html=no
17459    fi
17460  elif test "$enable_proxy_html" = "no" -a "$module_selection" = "reallyall" -a \
17461            "$force_proxy_html" != "no" ; then
17462      enable_proxy_html=$module_default
17463      _apmod_extra_msg=" ($module_selection)"
17464  fi
17465  if test "$enable_proxy_html" != "no"; then
17466            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
17467$as_echo "checking dependencies" >&6; }
17468            :
17469
17470
17471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17472$as_echo_n "checking for libxml2... " >&6; }
17473if ${ac_cv_libxml2+:} false; then :
17474  $as_echo_n "(cached) " >&6
17475else
17476
17477
17478# Check whether --with-libxml2 was given.
17479if test "${with_libxml2+set}" = set; then :
17480  withval=$with_libxml2; test_paths="${with_libxml2}"
17481else
17482  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"
17483
17484fi
17485
17486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17487$as_echo_n "checking for libxml2... " >&6; }
17488    xml2_path=""
17489    for x in ${test_paths}; do
17490        if test -f "${x}/libxml/parser.h"; then
17491          xml2_path="${x}"
17492          break
17493        fi
17494    done
17495    if test -n "${xml2_path}" ; then
17496      ac_cv_libxml2=yes
17497      XML2_INCLUDES="${xml2_path}"
17498    else
17499      ac_cv_libxml2=no
17500    fi
17501
17502fi
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
17504$as_echo "$ac_cv_libxml2" >&6; }
17505
17506  if test "$ac_cv_libxml2" = "yes" ; then
17507
17508  if test "x$MOD_CFLAGS" = "x"; then
17509    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
17510    MOD_CFLAGS="-I${XML2_INCLUDES}"
17511  else
17512    apr_addto_bugger="-I${XML2_INCLUDES}"
17513    for i in $apr_addto_bugger; do
17514      apr_addto_duplicate="0"
17515      for j in $MOD_CFLAGS; do
17516        if test "x$i" = "x$j"; then
17517          apr_addto_duplicate="1"
17518          break
17519        fi
17520      done
17521      if test $apr_addto_duplicate = "0"; then
17522        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
17523        MOD_CFLAGS="$MOD_CFLAGS $i"
17524      fi
17525    done
17526  fi
17527
17528
17529  if test "x$MOD_PROXY_HTML_LDADD" = "x"; then
17530    test "x$silent" != "xyes" && echo "  setting MOD_PROXY_HTML_LDADD to \"-lxml2\""
17531    MOD_PROXY_HTML_LDADD="-lxml2"
17532  else
17533    apr_addto_bugger="-lxml2"
17534    for i in $apr_addto_bugger; do
17535      apr_addto_duplicate="0"
17536      for j in $MOD_PROXY_HTML_LDADD; do
17537        if test "x$i" = "x$j"; then
17538          apr_addto_duplicate="1"
17539          break
17540        fi
17541      done
17542      if test $apr_addto_duplicate = "0"; then
17543        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_PROXY_HTML_LDADD"
17544        MOD_PROXY_HTML_LDADD="$MOD_PROXY_HTML_LDADD $i"
17545      fi
17546    done
17547  fi
17548
17549  else
17550    enable_proxy_html=no
17551  fi
17552
17553
17554            :
17555            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
17556$as_echo_n "checking whether to enable mod_proxy_html... " >&6; }
17557            if test "$enable_proxy_html" = "no"; then
17558              if test "$_apmod_required" = "no"; then
17559                _apmod_extra_msg=" (disabled)"
17560              else
17561                as_fn_error $? "mod_proxy_html has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17562              fi
17563            fi
17564  fi
17565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_html$_apmod_extra_msg" >&5
17566$as_echo "$enable_proxy_html$_apmod_extra_msg" >&6; }
17567  if test "$enable_proxy_html" != "no"; then
17568    case "$enable_proxy_html" in
17569    static*)
17570      MODLIST="$MODLIST proxy_html"
17571      if test "proxy_html" = "so"; then
17572          sharedobjs=yes
17573      fi
17574      shared="";;
17575    *)
17576      enable_proxy_html=`echo $enable_proxy_html|sed 's/shared,*//'`
17577      sharedobjs=yes
17578      shared=yes
17579      DSO_MODULES="$DSO_MODULES proxy_html"
17580      if test "" = "yes" ; then
17581        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_html"
17582      fi
17583      ;;
17584    esac
17585
17586
17587  if test -z ""; then
17588    objects="mod_proxy_html.lo"
17589  else
17590    objects=""
17591  fi
17592
17593  if test -z "$module_standalone"; then
17594    if test -z "$shared"; then
17595      # The filename of a convenience library must have a "lib" prefix:
17596      libname="libmod_proxy_html.la"
17597      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17598      modpath_static="$modpath_static $libname"
17599      cat >>$modpath_current/modules.mk<<EOF
17600$libname: $objects
17601	\$(MOD_LINK) $objects \$(MOD_PROXY_HTML_LDADD)
17602EOF
17603      if test ! -z "\$(MOD_PROXY_HTML_LDADD)"; then
17604
17605  if test "x$AP_LIBS" = "x"; then
17606    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTML_LDADD)\""
17607    AP_LIBS="\$(MOD_PROXY_HTML_LDADD)"
17608  else
17609    apr_addto_bugger="\$(MOD_PROXY_HTML_LDADD)"
17610    for i in $apr_addto_bugger; do
17611      apr_addto_duplicate="0"
17612      for j in $AP_LIBS; do
17613        if test "x$i" = "x$j"; then
17614          apr_addto_duplicate="1"
17615          break
17616        fi
17617      done
17618      if test $apr_addto_duplicate = "0"; then
17619        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17620        AP_LIBS="$AP_LIBS $i"
17621      fi
17622    done
17623  fi
17624
17625      fi
17626    else
17627      apache_need_shared=yes
17628      libname="mod_proxy_html.la"
17629      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17630      modpath_shared="$modpath_shared $libname"
17631      cat >>$modpath_current/modules.mk<<EOF
17632$libname: $shobjects
17633	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTML_LDADD)
17634EOF
17635    fi
17636  fi
17637
17638
17639  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTML_LDADD"
17640
17641
17642
17643  fi
17644
17645
17646
17647  if test "x$INCLUDES" = "x"; then
17648    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
17649    INCLUDES="-I\$(top_srcdir)/$modpath_current"
17650  else
17651    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
17652    for i in $apr_addto_bugger; do
17653      apr_addto_duplicate="0"
17654      for j in $INCLUDES; do
17655        if test "x$i" = "x$j"; then
17656          apr_addto_duplicate="1"
17657          break
17658        fi
17659      done
17660      if test $apr_addto_duplicate = "0"; then
17661        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
17662        INCLUDES="$INCLUDES $i"
17663      fi
17664    done
17665  fi
17666
17667
17668
17669  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17670  echo "static = $modpath_static" >> $modpath_current/modules.mk
17671  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17672  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17673    if eval val=\"\$MOD_$var\"; test -n "$val"; then
17674      echo "MOD_$var = $val" >> $modpath_current/modules.mk
17675    fi
17676  done
17677  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17678    MODULE_DIRS="$MODULE_DIRS $current_dir"
17679  else
17680    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17681  fi
17682
17683  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17684
17685
17686
17687
17688
17689  current_dir=http
17690  modpath_current=modules/http
17691  modpath_static=
17692  modpath_shared=
17693  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17694    eval MOD_$var=
17695  done
17696  test -d http || $srcdir/build/mkdir.sh $modpath_current
17697  > $modpath_current/modules.mk
17698
17699
17700http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo http_etag.lo"
17701
17702if test "$enable_http" = "yes"; then
17703    enable_http="static"
17704elif test "$enable_http" = "shared"; then
17705    as_fn_error $? "mod_http can not be built as a shared DSO" "$LINENO" 5
17706fi
17707
17708
17709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_http" >&5
17710$as_echo_n "checking whether to enable mod_http... " >&6; }
17711    # Check whether --enable-http was given.
17712if test "${enable_http+set}" = set; then :
17713  enableval=$enable_http; force_http=$enableval
17714else
17715  enable_http=static
17716fi
17717
17718    _apmod_extra_msg=""
17719        case "$enable_http" in
17720    yes|static|shared)
17721      _apmod_required="yes"
17722      ;;
17723    *)
17724      case "$module_selection" in
17725      reallyall|all|most)
17726        _apmod_required="no"
17727        ;;
17728      *)
17729        _apmod_required="yes"
17730        ;;
17731      esac
17732  esac
17733  if test "$enable_http" = "static"; then
17734    enable_http=static
17735  elif test "$enable_http" = "yes"; then
17736    enable_http=$module_default
17737  elif test "$enable_http" = "most"; then
17738    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17739            "$module_selection" = "reallyall"
17740    then
17741      enable_http=$module_default
17742    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17743      enable_http=no
17744    fi
17745    _apmod_extra_msg=" ($module_selection)"
17746  elif test "$enable_http" = "maybe-all"; then
17747    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17748    then
17749      enable_http=$module_default
17750      _apmod_extra_msg=" ($module_selection)"
17751    else
17752      enable_http=no
17753    fi
17754  elif test "$enable_http" = "no" -a "$module_selection" = "reallyall" -a \
17755            "$force_http" != "no" ; then
17756      enable_http=$module_default
17757      _apmod_extra_msg=" ($module_selection)"
17758  fi
17759  if test "$enable_http" != "no"; then
17760            :
17761  fi
17762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_http$_apmod_extra_msg" >&5
17763$as_echo "$enable_http$_apmod_extra_msg" >&6; }
17764  if test "$enable_http" != "no"; then
17765    case "$enable_http" in
17766    static*)
17767      MODLIST="$MODLIST http"
17768      if test "http" = "so"; then
17769          sharedobjs=yes
17770      fi
17771      shared="";;
17772    *)
17773      enable_http=`echo $enable_http|sed 's/shared,*//'`
17774      sharedobjs=yes
17775      shared=yes
17776      DSO_MODULES="$DSO_MODULES http"
17777      if test "static" = "yes" ; then
17778        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},http"
17779      fi
17780      ;;
17781    esac
17782
17783
17784  if test -z "$http_objects"; then
17785    objects="mod_http.lo"
17786  else
17787    objects="$http_objects"
17788  fi
17789
17790  if test -z "$module_standalone"; then
17791    if test -z "$shared"; then
17792      # The filename of a convenience library must have a "lib" prefix:
17793      libname="libmod_http.la"
17794      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17795      modpath_static="$modpath_static $libname"
17796      cat >>$modpath_current/modules.mk<<EOF
17797$libname: $objects
17798	\$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
17799EOF
17800      if test ! -z "\$(MOD_HTTP_LDADD)"; then
17801
17802  if test "x$AP_LIBS" = "x"; then
17803    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HTTP_LDADD)\""
17804    AP_LIBS="\$(MOD_HTTP_LDADD)"
17805  else
17806    apr_addto_bugger="\$(MOD_HTTP_LDADD)"
17807    for i in $apr_addto_bugger; do
17808      apr_addto_duplicate="0"
17809      for j in $AP_LIBS; do
17810        if test "x$i" = "x$j"; then
17811          apr_addto_duplicate="1"
17812          break
17813        fi
17814      done
17815      if test $apr_addto_duplicate = "0"; then
17816        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17817        AP_LIBS="$AP_LIBS $i"
17818      fi
17819    done
17820  fi
17821
17822      fi
17823    else
17824      apache_need_shared=yes
17825      libname="mod_http.la"
17826      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17827      modpath_shared="$modpath_shared $libname"
17828      cat >>$modpath_current/modules.mk<<EOF
17829$libname: $shobjects
17830	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP_LDADD)
17831EOF
17832    fi
17833  fi
17834
17835
17836  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"
17837
17838
17839
17840  fi
17841
17842
17843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime" >&5
17844$as_echo_n "checking whether to enable mod_mime... " >&6; }
17845    # Check whether --enable-mime was given.
17846if test "${enable_mime+set}" = set; then :
17847  enableval=$enable_mime; force_mime=$enableval
17848else
17849  enable_mime=yes
17850fi
17851
17852    _apmod_extra_msg=""
17853        case "$enable_mime" in
17854    yes|static|shared)
17855      _apmod_required="yes"
17856      ;;
17857    *)
17858      case "$module_selection" in
17859      reallyall|all|most)
17860        _apmod_required="no"
17861        ;;
17862      *)
17863        _apmod_required="yes"
17864        ;;
17865      esac
17866  esac
17867  if test "$enable_mime" = "static"; then
17868    enable_mime=static
17869  elif test "$enable_mime" = "yes"; then
17870    enable_mime=$module_default
17871  elif test "$enable_mime" = "most"; then
17872    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17873            "$module_selection" = "reallyall"
17874    then
17875      enable_mime=$module_default
17876    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17877      enable_mime=no
17878    fi
17879    _apmod_extra_msg=" ($module_selection)"
17880  elif test "$enable_mime" = "maybe-all"; then
17881    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17882    then
17883      enable_mime=$module_default
17884      _apmod_extra_msg=" ($module_selection)"
17885    else
17886      enable_mime=no
17887    fi
17888  elif test "$enable_mime" = "no" -a "$module_selection" = "reallyall" -a \
17889            "$force_mime" != "no" ; then
17890      enable_mime=$module_default
17891      _apmod_extra_msg=" ($module_selection)"
17892  fi
17893  if test "$enable_mime" != "no"; then
17894            :
17895  fi
17896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mime$_apmod_extra_msg" >&5
17897$as_echo "$enable_mime$_apmod_extra_msg" >&6; }
17898  if test "$enable_mime" != "no"; then
17899    case "$enable_mime" in
17900    static*)
17901      MODLIST="$MODLIST mime"
17902      if test "mime" = "so"; then
17903          sharedobjs=yes
17904      fi
17905      shared="";;
17906    *)
17907      enable_mime=`echo $enable_mime|sed 's/shared,*//'`
17908      sharedobjs=yes
17909      shared=yes
17910      DSO_MODULES="$DSO_MODULES mime"
17911      if test "yes" = "yes" ; then
17912        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime"
17913      fi
17914      ;;
17915    esac
17916
17917
17918  if test -z ""; then
17919    objects="mod_mime.lo"
17920  else
17921    objects=""
17922  fi
17923
17924  if test -z "$module_standalone"; then
17925    if test -z "$shared"; then
17926      # The filename of a convenience library must have a "lib" prefix:
17927      libname="libmod_mime.la"
17928      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17929      modpath_static="$modpath_static $libname"
17930      cat >>$modpath_current/modules.mk<<EOF
17931$libname: $objects
17932	\$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
17933EOF
17934      if test ! -z "\$(MOD_MIME_LDADD)"; then
17935
17936  if test "x$AP_LIBS" = "x"; then
17937    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_LDADD)\""
17938    AP_LIBS="\$(MOD_MIME_LDADD)"
17939  else
17940    apr_addto_bugger="\$(MOD_MIME_LDADD)"
17941    for i in $apr_addto_bugger; do
17942      apr_addto_duplicate="0"
17943      for j in $AP_LIBS; do
17944        if test "x$i" = "x$j"; then
17945          apr_addto_duplicate="1"
17946          break
17947        fi
17948      done
17949      if test $apr_addto_duplicate = "0"; then
17950        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17951        AP_LIBS="$AP_LIBS $i"
17952      fi
17953    done
17954  fi
17955
17956      fi
17957    else
17958      apache_need_shared=yes
17959      libname="mod_mime.la"
17960      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17961      modpath_shared="$modpath_shared $libname"
17962      cat >>$modpath_current/modules.mk<<EOF
17963$libname: $shobjects
17964	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_LDADD)
17965EOF
17966    fi
17967  fi
17968
17969
17970  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"
17971
17972
17973
17974  fi
17975
17976
17977
17978  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17979  echo "static = $modpath_static" >> $modpath_current/modules.mk
17980  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17981  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17982    if eval val=\"\$MOD_$var\"; test -n "$val"; then
17983      echo "MOD_$var = $val" >> $modpath_current/modules.mk
17984    fi
17985  done
17986  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17987    MODULE_DIRS="$MODULE_DIRS $current_dir"
17988  else
17989    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17990  fi
17991
17992  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17993
17994
17995
17996
17997
17998
17999  current_dir=ldap
18000  modpath_current=modules/ldap
18001  modpath_static=
18002  modpath_shared=
18003  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18004    eval MOD_$var=
18005  done
18006  test -d ldap || $srcdir/build/mkdir.sh $modpath_current
18007  > $modpath_current/modules.mk
18008
18009
18010ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
18011
18012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
18013$as_echo_n "checking whether to enable mod_ldap... " >&6; }
18014    # Check whether --enable-ldap was given.
18015if test "${enable_ldap+set}" = set; then :
18016  enableval=$enable_ldap; force_ldap=$enableval
18017else
18018  enable_ldap=most
18019fi
18020
18021    _apmod_extra_msg=""
18022        case "$enable_ldap" in
18023    yes|static|shared)
18024      _apmod_required="yes"
18025      ;;
18026    *)
18027      case "$module_selection" in
18028      reallyall|all|most)
18029        _apmod_required="no"
18030        ;;
18031      *)
18032        _apmod_required="yes"
18033        ;;
18034      esac
18035  esac
18036  if test "$enable_ldap" = "static"; then
18037    enable_ldap=static
18038  elif test "$enable_ldap" = "yes"; then
18039    enable_ldap=$module_default
18040  elif test "$enable_ldap" = "most"; then
18041    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18042            "$module_selection" = "reallyall"
18043    then
18044      enable_ldap=$module_default
18045    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18046      enable_ldap=no
18047    fi
18048    _apmod_extra_msg=" ($module_selection)"
18049  elif test "$enable_ldap" = "maybe-all"; then
18050    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18051    then
18052      enable_ldap=$module_default
18053      _apmod_extra_msg=" ($module_selection)"
18054    else
18055      enable_ldap=no
18056    fi
18057  elif test "$enable_ldap" = "no" -a "$module_selection" = "reallyall" -a \
18058            "$force_ldap" != "no" ; then
18059      enable_ldap=$module_default
18060      _apmod_extra_msg=" ($module_selection)"
18061  fi
18062  if test "$enable_ldap" != "no"; then
18063            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
18064$as_echo "checking dependencies" >&6; }
18065            :
18066
18067
18068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
18069$as_echo_n "checking for ldap support in apr/apr-util... " >&6; }
18070if ${ac_cv_APR_HAS_LDAP+:} false; then :
18071  $as_echo_n "(cached) " >&6
18072else
18073
18074    apache_old_cppflags="$CPPFLAGS"
18075    CPPFLAGS="$CPPFLAGS $INCLUDES"
18076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077/* end confdefs.h.  */
18078
18079#include <apr_ldap.h>
18080#if APR_HAS_LDAP
18081YES_IS_DEFINED
18082#endif
18083
18084_ACEOF
18085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18086  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18087  ac_cv_APR_HAS_LDAP=yes
18088else
18089  ac_cv_APR_HAS_LDAP=no
18090fi
18091rm -f conftest*
18092
18093    CPPFLAGS="$apache_old_cppflags"
18094
18095fi
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
18097$as_echo "$ac_cv_APR_HAS_LDAP" >&6; }
18098
18099  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
18100    if test -z "$apu_config" ; then
18101      LDAP_LIBS="`$apr_config --ldap-libs`"
18102    else
18103      LDAP_LIBS="`$apu_config --ldap-libs`"
18104    fi
18105
18106  if test "x$MOD_LDAP_LDADD" = "x"; then
18107    test "x$silent" != "xyes" && echo "  setting MOD_LDAP_LDADD to \"$LDAP_LIBS\""
18108    MOD_LDAP_LDADD="$LDAP_LIBS"
18109  else
18110    apr_addto_bugger="$LDAP_LIBS"
18111    for i in $apr_addto_bugger; do
18112      apr_addto_duplicate="0"
18113      for j in $MOD_LDAP_LDADD; do
18114        if test "x$i" = "x$j"; then
18115          apr_addto_duplicate="1"
18116          break
18117        fi
18118      done
18119      if test $apr_addto_duplicate = "0"; then
18120        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDAP_LDADD"
18121        MOD_LDAP_LDADD="$MOD_LDAP_LDADD $i"
18122      fi
18123    done
18124  fi
18125
18126
18127  else
18128    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
18129$as_echo "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
18130    enable_ldap=no
18131  fi
18132
18133            :
18134            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
18135$as_echo_n "checking whether to enable mod_ldap... " >&6; }
18136            if test "$enable_ldap" = "no"; then
18137              if test "$_apmod_required" = "no"; then
18138                _apmod_extra_msg=" (disabled)"
18139              else
18140                as_fn_error $? "mod_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
18141              fi
18142            fi
18143  fi
18144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ldap$_apmod_extra_msg" >&5
18145$as_echo "$enable_ldap$_apmod_extra_msg" >&6; }
18146  if test "$enable_ldap" != "no"; then
18147    case "$enable_ldap" in
18148    static*)
18149      MODLIST="$MODLIST ldap"
18150      if test "ldap" = "so"; then
18151          sharedobjs=yes
18152      fi
18153      shared="";;
18154    *)
18155      enable_ldap=`echo $enable_ldap|sed 's/shared,*//'`
18156      sharedobjs=yes
18157      shared=yes
18158      DSO_MODULES="$DSO_MODULES ldap"
18159      if test "most " = "yes" ; then
18160        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ldap"
18161      fi
18162      ;;
18163    esac
18164
18165
18166  if test -z "$ldap_objects"; then
18167    objects="mod_ldap.lo"
18168  else
18169    objects="$ldap_objects"
18170  fi
18171
18172  if test -z "$module_standalone"; then
18173    if test -z "$shared"; then
18174      # The filename of a convenience library must have a "lib" prefix:
18175      libname="libmod_ldap.la"
18176      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18177      modpath_static="$modpath_static $libname"
18178      cat >>$modpath_current/modules.mk<<EOF
18179$libname: $objects
18180	\$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
18181EOF
18182      if test ! -z "\$(MOD_LDAP_LDADD)"; then
18183
18184  if test "x$AP_LIBS" = "x"; then
18185    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LDAP_LDADD)\""
18186    AP_LIBS="\$(MOD_LDAP_LDADD)"
18187  else
18188    apr_addto_bugger="\$(MOD_LDAP_LDADD)"
18189    for i in $apr_addto_bugger; do
18190      apr_addto_duplicate="0"
18191      for j in $AP_LIBS; do
18192        if test "x$i" = "x$j"; then
18193          apr_addto_duplicate="1"
18194          break
18195        fi
18196      done
18197      if test $apr_addto_duplicate = "0"; then
18198        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18199        AP_LIBS="$AP_LIBS $i"
18200      fi
18201    done
18202  fi
18203
18204      fi
18205    else
18206      apache_need_shared=yes
18207      libname="mod_ldap.la"
18208      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18209      modpath_shared="$modpath_shared $libname"
18210      cat >>$modpath_current/modules.mk<<EOF
18211$libname: $shobjects
18212	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LDAP_LDADD)
18213EOF
18214    fi
18215  fi
18216
18217
18218  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"
18219
18220
18221
18222  fi
18223
18224
18225
18226  if test "x$INCLUDES" = "x"; then
18227    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
18228    INCLUDES="-I\$(top_srcdir)/$modpath_current"
18229  else
18230    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
18231    for i in $apr_addto_bugger; do
18232      apr_addto_duplicate="0"
18233      for j in $INCLUDES; do
18234        if test "x$i" = "x$j"; then
18235          apr_addto_duplicate="1"
18236          break
18237        fi
18238      done
18239      if test $apr_addto_duplicate = "0"; then
18240        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18241        INCLUDES="$INCLUDES $i"
18242      fi
18243    done
18244  fi
18245
18246
18247
18248  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
18249  echo "static = $modpath_static" >> $modpath_current/modules.mk
18250  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
18251  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18252    if eval val=\"\$MOD_$var\"; test -n "$val"; then
18253      echo "MOD_$var = $val" >> $modpath_current/modules.mk
18254    fi
18255  done
18256  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
18257    MODULE_DIRS="$MODULE_DIRS $current_dir"
18258  else
18259    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
18260  fi
18261
18262  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
18263
18264
18265
18266
18267
18268
18269  current_dir=loggers
18270  modpath_current=modules/loggers
18271  modpath_static=
18272  modpath_shared=
18273  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18274    eval MOD_$var=
18275  done
18276  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
18277  > $modpath_current/modules.mk
18278
18279
18280
18281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_config" >&5
18282$as_echo_n "checking whether to enable mod_log_config... " >&6; }
18283    # Check whether --enable-log-config was given.
18284if test "${enable_log_config+set}" = set; then :
18285  enableval=$enable_log_config; force_log_config=$enableval
18286else
18287  enable_log_config=yes
18288fi
18289
18290    _apmod_extra_msg=""
18291        case "$enable_log_config" in
18292    yes|static|shared)
18293      _apmod_required="yes"
18294      ;;
18295    *)
18296      case "$module_selection" in
18297      reallyall|all|most)
18298        _apmod_required="no"
18299        ;;
18300      *)
18301        _apmod_required="yes"
18302        ;;
18303      esac
18304  esac
18305  if test "$enable_log_config" = "static"; then
18306    enable_log_config=static
18307  elif test "$enable_log_config" = "yes"; then
18308    enable_log_config=$module_default
18309  elif test "$enable_log_config" = "most"; then
18310    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18311            "$module_selection" = "reallyall"
18312    then
18313      enable_log_config=$module_default
18314    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18315      enable_log_config=no
18316    fi
18317    _apmod_extra_msg=" ($module_selection)"
18318  elif test "$enable_log_config" = "maybe-all"; then
18319    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18320    then
18321      enable_log_config=$module_default
18322      _apmod_extra_msg=" ($module_selection)"
18323    else
18324      enable_log_config=no
18325    fi
18326  elif test "$enable_log_config" = "no" -a "$module_selection" = "reallyall" -a \
18327            "$force_log_config" != "no" ; then
18328      enable_log_config=$module_default
18329      _apmod_extra_msg=" ($module_selection)"
18330  fi
18331  if test "$enable_log_config" != "no"; then
18332            :
18333  fi
18334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_config$_apmod_extra_msg" >&5
18335$as_echo "$enable_log_config$_apmod_extra_msg" >&6; }
18336  if test "$enable_log_config" != "no"; then
18337    case "$enable_log_config" in
18338    static*)
18339      MODLIST="$MODLIST log_config"
18340      if test "log_config" = "so"; then
18341          sharedobjs=yes
18342      fi
18343      shared="";;
18344    *)
18345      enable_log_config=`echo $enable_log_config|sed 's/shared,*//'`
18346      sharedobjs=yes
18347      shared=yes
18348      DSO_MODULES="$DSO_MODULES log_config"
18349      if test "yes" = "yes" ; then
18350        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_config"
18351      fi
18352      ;;
18353    esac
18354
18355
18356  if test -z ""; then
18357    objects="mod_log_config.lo"
18358  else
18359    objects=""
18360  fi
18361
18362  if test -z "$module_standalone"; then
18363    if test -z "$shared"; then
18364      # The filename of a convenience library must have a "lib" prefix:
18365      libname="libmod_log_config.la"
18366      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18367      modpath_static="$modpath_static $libname"
18368      cat >>$modpath_current/modules.mk<<EOF
18369$libname: $objects
18370	\$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
18371EOF
18372      if test ! -z "\$(MOD_LOG_CONFIG_LDADD)"; then
18373
18374  if test "x$AP_LIBS" = "x"; then
18375    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_CONFIG_LDADD)\""
18376    AP_LIBS="\$(MOD_LOG_CONFIG_LDADD)"
18377  else
18378    apr_addto_bugger="\$(MOD_LOG_CONFIG_LDADD)"
18379    for i in $apr_addto_bugger; do
18380      apr_addto_duplicate="0"
18381      for j in $AP_LIBS; do
18382        if test "x$i" = "x$j"; then
18383          apr_addto_duplicate="1"
18384          break
18385        fi
18386      done
18387      if test $apr_addto_duplicate = "0"; then
18388        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18389        AP_LIBS="$AP_LIBS $i"
18390      fi
18391    done
18392  fi
18393
18394      fi
18395    else
18396      apache_need_shared=yes
18397      libname="mod_log_config.la"
18398      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18399      modpath_shared="$modpath_shared $libname"
18400      cat >>$modpath_current/modules.mk<<EOF
18401$libname: $shobjects
18402	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_CONFIG_LDADD)
18403EOF
18404    fi
18405  fi
18406
18407
18408  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"
18409
18410
18411
18412  fi
18413
18414
18415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_debug" >&5
18416$as_echo_n "checking whether to enable mod_log_debug... " >&6; }
18417    # Check whether --enable-log-debug was given.
18418if test "${enable_log_debug+set}" = set; then :
18419  enableval=$enable_log_debug; force_log_debug=$enableval
18420else
18421  enable_log_debug=most
18422fi
18423
18424    _apmod_extra_msg=""
18425        case "$enable_log_debug" in
18426    yes|static|shared)
18427      _apmod_required="yes"
18428      ;;
18429    *)
18430      case "$module_selection" in
18431      reallyall|all|most)
18432        _apmod_required="no"
18433        ;;
18434      *)
18435        _apmod_required="yes"
18436        ;;
18437      esac
18438  esac
18439  if test "$enable_log_debug" = "static"; then
18440    enable_log_debug=static
18441  elif test "$enable_log_debug" = "yes"; then
18442    enable_log_debug=$module_default
18443  elif test "$enable_log_debug" = "most"; then
18444    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18445            "$module_selection" = "reallyall"
18446    then
18447      enable_log_debug=$module_default
18448    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18449      enable_log_debug=no
18450    fi
18451    _apmod_extra_msg=" ($module_selection)"
18452  elif test "$enable_log_debug" = "maybe-all"; then
18453    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18454    then
18455      enable_log_debug=$module_default
18456      _apmod_extra_msg=" ($module_selection)"
18457    else
18458      enable_log_debug=no
18459    fi
18460  elif test "$enable_log_debug" = "no" -a "$module_selection" = "reallyall" -a \
18461            "$force_log_debug" != "no" ; then
18462      enable_log_debug=$module_default
18463      _apmod_extra_msg=" ($module_selection)"
18464  fi
18465  if test "$enable_log_debug" != "no"; then
18466            :
18467  fi
18468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_debug$_apmod_extra_msg" >&5
18469$as_echo "$enable_log_debug$_apmod_extra_msg" >&6; }
18470  if test "$enable_log_debug" != "no"; then
18471    case "$enable_log_debug" in
18472    static*)
18473      MODLIST="$MODLIST log_debug"
18474      if test "log_debug" = "so"; then
18475          sharedobjs=yes
18476      fi
18477      shared="";;
18478    *)
18479      enable_log_debug=`echo $enable_log_debug|sed 's/shared,*//'`
18480      sharedobjs=yes
18481      shared=yes
18482      DSO_MODULES="$DSO_MODULES log_debug"
18483      if test "most" = "yes" ; then
18484        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_debug"
18485      fi
18486      ;;
18487    esac
18488
18489
18490  if test -z ""; then
18491    objects="mod_log_debug.lo"
18492  else
18493    objects=""
18494  fi
18495
18496  if test -z "$module_standalone"; then
18497    if test -z "$shared"; then
18498      # The filename of a convenience library must have a "lib" prefix:
18499      libname="libmod_log_debug.la"
18500      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18501      modpath_static="$modpath_static $libname"
18502      cat >>$modpath_current/modules.mk<<EOF
18503$libname: $objects
18504	\$(MOD_LINK) $objects \$(MOD_LOG_DEBUG_LDADD)
18505EOF
18506      if test ! -z "\$(MOD_LOG_DEBUG_LDADD)"; then
18507
18508  if test "x$AP_LIBS" = "x"; then
18509    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_DEBUG_LDADD)\""
18510    AP_LIBS="\$(MOD_LOG_DEBUG_LDADD)"
18511  else
18512    apr_addto_bugger="\$(MOD_LOG_DEBUG_LDADD)"
18513    for i in $apr_addto_bugger; do
18514      apr_addto_duplicate="0"
18515      for j in $AP_LIBS; do
18516        if test "x$i" = "x$j"; then
18517          apr_addto_duplicate="1"
18518          break
18519        fi
18520      done
18521      if test $apr_addto_duplicate = "0"; then
18522        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18523        AP_LIBS="$AP_LIBS $i"
18524      fi
18525    done
18526  fi
18527
18528      fi
18529    else
18530      apache_need_shared=yes
18531      libname="mod_log_debug.la"
18532      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18533      modpath_shared="$modpath_shared $libname"
18534      cat >>$modpath_current/modules.mk<<EOF
18535$libname: $shobjects
18536	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_DEBUG_LDADD)
18537EOF
18538    fi
18539  fi
18540
18541
18542  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_DEBUG_LDADD"
18543
18544
18545
18546  fi
18547
18548
18549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_forensic" >&5
18550$as_echo_n "checking whether to enable mod_log_forensic... " >&6; }
18551    # Check whether --enable-log-forensic was given.
18552if test "${enable_log_forensic+set}" = set; then :
18553  enableval=$enable_log_forensic; force_log_forensic=$enableval
18554else
18555  enable_log_forensic=maybe-all
18556fi
18557
18558    _apmod_extra_msg=""
18559        case "$enable_log_forensic" in
18560    yes|static|shared)
18561      _apmod_required="yes"
18562      ;;
18563    *)
18564      case "$module_selection" in
18565      reallyall|all|most)
18566        _apmod_required="no"
18567        ;;
18568      *)
18569        _apmod_required="yes"
18570        ;;
18571      esac
18572  esac
18573  if test "$enable_log_forensic" = "static"; then
18574    enable_log_forensic=static
18575  elif test "$enable_log_forensic" = "yes"; then
18576    enable_log_forensic=$module_default
18577  elif test "$enable_log_forensic" = "most"; then
18578    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18579            "$module_selection" = "reallyall"
18580    then
18581      enable_log_forensic=$module_default
18582    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18583      enable_log_forensic=no
18584    fi
18585    _apmod_extra_msg=" ($module_selection)"
18586  elif test "$enable_log_forensic" = "maybe-all"; then
18587    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18588    then
18589      enable_log_forensic=$module_default
18590      _apmod_extra_msg=" ($module_selection)"
18591    else
18592      enable_log_forensic=no
18593    fi
18594  elif test "$enable_log_forensic" = "no" -a "$module_selection" = "reallyall" -a \
18595            "$force_log_forensic" != "no" ; then
18596      enable_log_forensic=$module_default
18597      _apmod_extra_msg=" ($module_selection)"
18598  fi
18599  if test "$enable_log_forensic" != "no"; then
18600            :
18601  fi
18602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_forensic$_apmod_extra_msg" >&5
18603$as_echo "$enable_log_forensic$_apmod_extra_msg" >&6; }
18604  if test "$enable_log_forensic" != "no"; then
18605    case "$enable_log_forensic" in
18606    static*)
18607      MODLIST="$MODLIST log_forensic"
18608      if test "log_forensic" = "so"; then
18609          sharedobjs=yes
18610      fi
18611      shared="";;
18612    *)
18613      enable_log_forensic=`echo $enable_log_forensic|sed 's/shared,*//'`
18614      sharedobjs=yes
18615      shared=yes
18616      DSO_MODULES="$DSO_MODULES log_forensic"
18617      if test "" = "yes" ; then
18618        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_forensic"
18619      fi
18620      ;;
18621    esac
18622
18623
18624  if test -z ""; then
18625    objects="mod_log_forensic.lo"
18626  else
18627    objects=""
18628  fi
18629
18630  if test -z "$module_standalone"; then
18631    if test -z "$shared"; then
18632      # The filename of a convenience library must have a "lib" prefix:
18633      libname="libmod_log_forensic.la"
18634      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18635      modpath_static="$modpath_static $libname"
18636      cat >>$modpath_current/modules.mk<<EOF
18637$libname: $objects
18638	\$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
18639EOF
18640      if test ! -z "\$(MOD_LOG_FORENSIC_LDADD)"; then
18641
18642  if test "x$AP_LIBS" = "x"; then
18643    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_FORENSIC_LDADD)\""
18644    AP_LIBS="\$(MOD_LOG_FORENSIC_LDADD)"
18645  else
18646    apr_addto_bugger="\$(MOD_LOG_FORENSIC_LDADD)"
18647    for i in $apr_addto_bugger; do
18648      apr_addto_duplicate="0"
18649      for j in $AP_LIBS; do
18650        if test "x$i" = "x$j"; then
18651          apr_addto_duplicate="1"
18652          break
18653        fi
18654      done
18655      if test $apr_addto_duplicate = "0"; then
18656        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18657        AP_LIBS="$AP_LIBS $i"
18658      fi
18659    done
18660  fi
18661
18662      fi
18663    else
18664      apache_need_shared=yes
18665      libname="mod_log_forensic.la"
18666      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18667      modpath_shared="$modpath_shared $libname"
18668      cat >>$modpath_current/modules.mk<<EOF
18669$libname: $shobjects
18670	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_FORENSIC_LDADD)
18671EOF
18672    fi
18673  fi
18674
18675
18676  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"
18677
18678
18679
18680  fi
18681
18682
18683if test "x$enable_log_forensic" != "xno"; then
18684    # mod_log_forensic needs test_char.h
18685
18686  if test "x$INCLUDES" = "x"; then
18687    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/server\""
18688    INCLUDES="-I\$(top_builddir)/server"
18689  else
18690    apr_addto_bugger="-I\$(top_builddir)/server"
18691    for i in $apr_addto_bugger; do
18692      apr_addto_duplicate="0"
18693      for j in $INCLUDES; do
18694        if test "x$i" = "x$j"; then
18695          apr_addto_duplicate="1"
18696          break
18697        fi
18698      done
18699      if test $apr_addto_duplicate = "0"; then
18700        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18701        INCLUDES="$INCLUDES $i"
18702      fi
18703    done
18704  fi
18705
18706fi
18707
18708
18709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_logio" >&5
18710$as_echo_n "checking whether to enable mod_logio... " >&6; }
18711    # Check whether --enable-logio was given.
18712if test "${enable_logio+set}" = set; then :
18713  enableval=$enable_logio; force_logio=$enableval
18714else
18715  enable_logio=most
18716fi
18717
18718    _apmod_extra_msg=""
18719        case "$enable_logio" in
18720    yes|static|shared)
18721      _apmod_required="yes"
18722      ;;
18723    *)
18724      case "$module_selection" in
18725      reallyall|all|most)
18726        _apmod_required="no"
18727        ;;
18728      *)
18729        _apmod_required="yes"
18730        ;;
18731      esac
18732  esac
18733  if test "$enable_logio" = "static"; then
18734    enable_logio=static
18735  elif test "$enable_logio" = "yes"; then
18736    enable_logio=$module_default
18737  elif test "$enable_logio" = "most"; then
18738    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18739            "$module_selection" = "reallyall"
18740    then
18741      enable_logio=$module_default
18742    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18743      enable_logio=no
18744    fi
18745    _apmod_extra_msg=" ($module_selection)"
18746  elif test "$enable_logio" = "maybe-all"; then
18747    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18748    then
18749      enable_logio=$module_default
18750      _apmod_extra_msg=" ($module_selection)"
18751    else
18752      enable_logio=no
18753    fi
18754  elif test "$enable_logio" = "no" -a "$module_selection" = "reallyall" -a \
18755            "$force_logio" != "no" ; then
18756      enable_logio=$module_default
18757      _apmod_extra_msg=" ($module_selection)"
18758  fi
18759  if test "$enable_logio" != "no"; then
18760            :
18761  fi
18762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_logio$_apmod_extra_msg" >&5
18763$as_echo "$enable_logio$_apmod_extra_msg" >&6; }
18764  if test "$enable_logio" != "no"; then
18765    case "$enable_logio" in
18766    static*)
18767      MODLIST="$MODLIST logio"
18768      if test "logio" = "so"; then
18769          sharedobjs=yes
18770      fi
18771      shared="";;
18772    *)
18773      enable_logio=`echo $enable_logio|sed 's/shared,*//'`
18774      sharedobjs=yes
18775      shared=yes
18776      DSO_MODULES="$DSO_MODULES logio"
18777      if test "most" = "yes" ; then
18778        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},logio"
18779      fi
18780      ;;
18781    esac
18782
18783
18784  if test -z ""; then
18785    objects="mod_logio.lo"
18786  else
18787    objects=""
18788  fi
18789
18790  if test -z "$module_standalone"; then
18791    if test -z "$shared"; then
18792      # The filename of a convenience library must have a "lib" prefix:
18793      libname="libmod_logio.la"
18794      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18795      modpath_static="$modpath_static $libname"
18796      cat >>$modpath_current/modules.mk<<EOF
18797$libname: $objects
18798	\$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
18799EOF
18800      if test ! -z "\$(MOD_LOGIO_LDADD)"; then
18801
18802  if test "x$AP_LIBS" = "x"; then
18803    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOGIO_LDADD)\""
18804    AP_LIBS="\$(MOD_LOGIO_LDADD)"
18805  else
18806    apr_addto_bugger="\$(MOD_LOGIO_LDADD)"
18807    for i in $apr_addto_bugger; do
18808      apr_addto_duplicate="0"
18809      for j in $AP_LIBS; do
18810        if test "x$i" = "x$j"; then
18811          apr_addto_duplicate="1"
18812          break
18813        fi
18814      done
18815      if test $apr_addto_duplicate = "0"; then
18816        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18817        AP_LIBS="$AP_LIBS $i"
18818      fi
18819    done
18820  fi
18821
18822      fi
18823    else
18824      apache_need_shared=yes
18825      libname="mod_logio.la"
18826      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18827      modpath_shared="$modpath_shared $libname"
18828      cat >>$modpath_current/modules.mk<<EOF
18829$libname: $shobjects
18830	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOGIO_LDADD)
18831EOF
18832    fi
18833  fi
18834
18835
18836  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"
18837
18838
18839
18840  fi
18841
18842
18843
18844  if test "x$INCLUDES" = "x"; then
18845    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
18846    INCLUDES="-I\$(top_srcdir)/$modpath_current"
18847  else
18848    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
18849    for i in $apr_addto_bugger; do
18850      apr_addto_duplicate="0"
18851      for j in $INCLUDES; do
18852        if test "x$i" = "x$j"; then
18853          apr_addto_duplicate="1"
18854          break
18855        fi
18856      done
18857      if test $apr_addto_duplicate = "0"; then
18858        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18859        INCLUDES="$INCLUDES $i"
18860      fi
18861    done
18862  fi
18863
18864
18865
18866  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
18867  echo "static = $modpath_static" >> $modpath_current/modules.mk
18868  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
18869  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18870    if eval val=\"\$MOD_$var\"; test -n "$val"; then
18871      echo "MOD_$var = $val" >> $modpath_current/modules.mk
18872    fi
18873  done
18874  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
18875    MODULE_DIRS="$MODULE_DIRS $current_dir"
18876  else
18877    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
18878  fi
18879
18880  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
18881
18882
18883
18884
18885
18886  current_dir=lua
18887  modpath_current=modules/lua
18888  modpath_static=
18889  modpath_shared=
18890  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18891    eval MOD_$var=
18892  done
18893  test -d lua || $srcdir/build/mkdir.sh $modpath_current
18894  > $modpath_current/modules.mk
18895
18896
18897
18898
18899lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo lua_dbd.lo lua_passwd.lo"
18900
18901
18902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
18903$as_echo_n "checking whether to enable mod_lua... " >&6; }
18904    # Check whether --enable-lua was given.
18905if test "${enable_lua+set}" = set; then :
18906  enableval=$enable_lua; force_lua=$enableval
18907else
18908  enable_lua=maybe-all
18909fi
18910
18911    _apmod_extra_msg=""
18912        case "$enable_lua" in
18913    yes|static|shared)
18914      _apmod_required="yes"
18915      ;;
18916    *)
18917      case "$module_selection" in
18918      reallyall|all|most)
18919        _apmod_required="no"
18920        ;;
18921      *)
18922        _apmod_required="yes"
18923        ;;
18924      esac
18925  esac
18926  if test "$enable_lua" = "static"; then
18927    enable_lua=static
18928  elif test "$enable_lua" = "yes"; then
18929    enable_lua=$module_default
18930  elif test "$enable_lua" = "most"; then
18931    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18932            "$module_selection" = "reallyall"
18933    then
18934      enable_lua=$module_default
18935    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18936      enable_lua=no
18937    fi
18938    _apmod_extra_msg=" ($module_selection)"
18939  elif test "$enable_lua" = "maybe-all"; then
18940    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18941    then
18942      enable_lua=$module_default
18943      _apmod_extra_msg=" ($module_selection)"
18944    else
18945      enable_lua=no
18946    fi
18947  elif test "$enable_lua" = "no" -a "$module_selection" = "reallyall" -a \
18948            "$force_lua" != "no" ; then
18949      enable_lua=$module_default
18950      _apmod_extra_msg=" ($module_selection)"
18951  fi
18952  if test "$enable_lua" != "no"; then
18953            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
18954$as_echo "checking dependencies" >&6; }
18955            :
18956
18957
18958
18959# Check whether --with-lua was given.
18960if test "${with_lua+set}" = set; then :
18961  withval=$with_lua; lua_path="$withval"
18962else
18963  :
18964fi
18965
18966
18967if test -z "$lua_path"; then
18968    test_paths=". /usr/local /usr"
18969else
18970    test_paths="${lua_path}"
18971fi
18972
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18974$as_echo_n "checking for pow in -lm... " >&6; }
18975if ${ac_cv_lib_m_pow+:} false; then :
18976  $as_echo_n "(cached) " >&6
18977else
18978  ac_check_lib_save_LIBS=$LIBS
18979LIBS="-lm  $LIBS"
18980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981/* end confdefs.h.  */
18982
18983/* Override any GCC internal prototype to avoid an error.
18984   Use char because int might match the return type of a GCC
18985   builtin and then its argument prototype would still apply.  */
18986#ifdef __cplusplus
18987extern "C"
18988#endif
18989char pow ();
18990int
18991main ()
18992{
18993return pow ();
18994  ;
18995  return 0;
18996}
18997_ACEOF
18998if ac_fn_c_try_link "$LINENO"; then :
18999  ac_cv_lib_m_pow=yes
19000else
19001  ac_cv_lib_m_pow=no
19002fi
19003rm -f core conftest.err conftest.$ac_objext \
19004    conftest$ac_exeext conftest.$ac_ext
19005LIBS=$ac_check_lib_save_LIBS
19006fi
19007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
19008$as_echo "$ac_cv_lib_m_pow" >&6; }
19009if test "x$ac_cv_lib_m_pow" = xyes; then :
19010  lib_m="-lm"
19011fi
19012
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
19014$as_echo_n "checking for sqrt in -lm... " >&6; }
19015if ${ac_cv_lib_m_sqrt+:} false; then :
19016  $as_echo_n "(cached) " >&6
19017else
19018  ac_check_lib_save_LIBS=$LIBS
19019LIBS="-lm  $LIBS"
19020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022
19023/* Override any GCC internal prototype to avoid an error.
19024   Use char because int might match the return type of a GCC
19025   builtin and then its argument prototype would still apply.  */
19026#ifdef __cplusplus
19027extern "C"
19028#endif
19029char sqrt ();
19030int
19031main ()
19032{
19033return sqrt ();
19034  ;
19035  return 0;
19036}
19037_ACEOF
19038if ac_fn_c_try_link "$LINENO"; then :
19039  ac_cv_lib_m_sqrt=yes
19040else
19041  ac_cv_lib_m_sqrt=no
19042fi
19043rm -f core conftest.err conftest.$ac_objext \
19044    conftest$ac_exeext conftest.$ac_ext
19045LIBS=$ac_check_lib_save_LIBS
19046fi
19047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
19048$as_echo "$ac_cv_lib_m_sqrt" >&6; }
19049if test "x$ac_cv_lib_m_sqrt" = xyes; then :
19050  lib_m="-lm"
19051fi
19052
19053for x in $test_paths ; do
19054  if test "x$x" = "x."; then
19055    ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
19056if test "x$ac_cv_header_lua_h" = xyes; then :
19057
19058        save_CFLAGS=$CFLAGS
19059        save_LDFLAGS=$LDFLAGS
19060        CFLAGS="$CFLAGS"
19061        LDFLAGS="$LDFLAGS $lib_m"
19062        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1" >&5
19063$as_echo_n "checking for luaL_newstate in -llua5.1... " >&6; }
19064if ${ac_cv_lib_lua5_1_luaL_newstate+:} false; then :
19065  $as_echo_n "(cached) " >&6
19066else
19067  ac_check_lib_save_LIBS=$LIBS
19068LIBS="-llua5.1  $LIBS"
19069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070/* end confdefs.h.  */
19071
19072/* Override any GCC internal prototype to avoid an error.
19073   Use char because int might match the return type of a GCC
19074   builtin and then its argument prototype would still apply.  */
19075#ifdef __cplusplus
19076extern "C"
19077#endif
19078char luaL_newstate ();
19079int
19080main ()
19081{
19082return luaL_newstate ();
19083  ;
19084  return 0;
19085}
19086_ACEOF
19087if ac_fn_c_try_link "$LINENO"; then :
19088  ac_cv_lib_lua5_1_luaL_newstate=yes
19089else
19090  ac_cv_lib_lua5_1_luaL_newstate=no
19091fi
19092rm -f core conftest.err conftest.$ac_objext \
19093    conftest$ac_exeext conftest.$ac_ext
19094LIBS=$ac_check_lib_save_LIBS
19095fi
19096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
19097$as_echo "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
19098if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes; then :
19099
19100            LUA_LIBS="-llua5.1 $lib_m"
19101
19102else
19103
19104            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.1" >&5
19105$as_echo_n "checking for luaL_newstate in -llua-5.1... " >&6; }
19106if ${ac_cv_lib_lua_5_1_luaL_newstate+:} false; then :
19107  $as_echo_n "(cached) " >&6
19108else
19109  ac_check_lib_save_LIBS=$LIBS
19110LIBS="-llua-5.1  $LIBS"
19111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112/* end confdefs.h.  */
19113
19114/* Override any GCC internal prototype to avoid an error.
19115   Use char because int might match the return type of a GCC
19116   builtin and then its argument prototype would still apply.  */
19117#ifdef __cplusplus
19118extern "C"
19119#endif
19120char luaL_newstate ();
19121int
19122main ()
19123{
19124return luaL_newstate ();
19125  ;
19126  return 0;
19127}
19128_ACEOF
19129if ac_fn_c_try_link "$LINENO"; then :
19130  ac_cv_lib_lua_5_1_luaL_newstate=yes
19131else
19132  ac_cv_lib_lua_5_1_luaL_newstate=no
19133fi
19134rm -f core conftest.err conftest.$ac_objext \
19135    conftest$ac_exeext conftest.$ac_ext
19136LIBS=$ac_check_lib_save_LIBS
19137fi
19138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_1_luaL_newstate" >&5
19139$as_echo "$ac_cv_lib_lua_5_1_luaL_newstate" >&6; }
19140if test "x$ac_cv_lib_lua_5_1_luaL_newstate" = xyes; then :
19141
19142                LUA_LIBS="-llua-5.1 $lib_m"
19143
19144else
19145
19146                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19147$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19148if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19149  $as_echo_n "(cached) " >&6
19150else
19151  ac_check_lib_save_LIBS=$LIBS
19152LIBS="-llua  $LIBS"
19153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154/* end confdefs.h.  */
19155
19156/* Override any GCC internal prototype to avoid an error.
19157   Use char because int might match the return type of a GCC
19158   builtin and then its argument prototype would still apply.  */
19159#ifdef __cplusplus
19160extern "C"
19161#endif
19162char luaL_newstate ();
19163int
19164main ()
19165{
19166return luaL_newstate ();
19167  ;
19168  return 0;
19169}
19170_ACEOF
19171if ac_fn_c_try_link "$LINENO"; then :
19172  ac_cv_lib_lua_luaL_newstate=yes
19173else
19174  ac_cv_lib_lua_luaL_newstate=no
19175fi
19176rm -f core conftest.err conftest.$ac_objext \
19177    conftest$ac_exeext conftest.$ac_ext
19178LIBS=$ac_check_lib_save_LIBS
19179fi
19180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19181$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19182if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19183
19184                    LUA_LIBS="-llua $lib_m"
19185
19186fi
19187
19188
19189fi
19190
19191
19192fi
19193
19194        LUA_CFLAGS=
19195        CFLAGS=$save_CFLAGS
19196        LDFLAGS=$save_LDFLAGS
19197        break
19198
19199fi
19200
19201
19202  else
19203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.1" >&5
19204$as_echo_n "checking for lua.h in ${x}/include/lua5.1... " >&6; }
19205    if test -f ${x}/include/lua5.1/lua.h; then
19206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19207$as_echo "yes" >&6; }
19208        save_CFLAGS=$CFLAGS
19209        save_LDFLAGS=$LDFLAGS
19210        CFLAGS="$CFLAGS"
19211        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
19212        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1" >&5
19213$as_echo_n "checking for luaL_newstate in -llua5.1... " >&6; }
19214if ${ac_cv_lib_lua5_1_luaL_newstate+:} false; then :
19215  $as_echo_n "(cached) " >&6
19216else
19217  ac_check_lib_save_LIBS=$LIBS
19218LIBS="-llua5.1  $LIBS"
19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h.  */
19221
19222/* Override any GCC internal prototype to avoid an error.
19223   Use char because int might match the return type of a GCC
19224   builtin and then its argument prototype would still apply.  */
19225#ifdef __cplusplus
19226extern "C"
19227#endif
19228char luaL_newstate ();
19229int
19230main ()
19231{
19232return luaL_newstate ();
19233  ;
19234  return 0;
19235}
19236_ACEOF
19237if ac_fn_c_try_link "$LINENO"; then :
19238  ac_cv_lib_lua5_1_luaL_newstate=yes
19239else
19240  ac_cv_lib_lua5_1_luaL_newstate=no
19241fi
19242rm -f core conftest.err conftest.$ac_objext \
19243    conftest$ac_exeext conftest.$ac_ext
19244LIBS=$ac_check_lib_save_LIBS
19245fi
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
19247$as_echo "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
19248if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes; then :
19249
19250            LUA_LIBS="-L$x/lib -llua5.1 $lib_m"
19251            if test "x$ap_platform_runtime_link_flag" != "x"; then
19252
19253  if test "x$LUA_LIBS" = "x"; then
19254    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib\""
19255    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib"
19256  else
19257    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib"
19258    for i in $apr_addto_bugger; do
19259      apr_addto_duplicate="0"
19260      for j in $LUA_LIBS; do
19261        if test "x$i" = "x$j"; then
19262          apr_addto_duplicate="1"
19263          break
19264        fi
19265      done
19266      if test $apr_addto_duplicate = "0"; then
19267        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19268        LUA_LIBS="$LUA_LIBS $i"
19269      fi
19270    done
19271  fi
19272
19273            fi
19274            LUA_CFLAGS="-I$x/include/lua5.1"
19275
19276fi
19277
19278        CFLAGS=$save_CFLAGS
19279        LDFLAGS=$save_LDFLAGS
19280        break
19281    else
19282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284    fi
19285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua51" >&5
19286$as_echo_n "checking for lua.h in ${x}/include/lua51... " >&6; }
19287    if test -f ${x}/include/lua51/lua.h; then
19288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289$as_echo "yes" >&6; }
19290        save_CFLAGS=$CFLAGS
19291        save_LDFLAGS=$LDFLAGS
19292        CFLAGS="$CFLAGS"
19293        LDFLAGS="-L$x/lib/lua51 $LDFLAGS $lib_m"
19294        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19295$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19296if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19297  $as_echo_n "(cached) " >&6
19298else
19299  ac_check_lib_save_LIBS=$LIBS
19300LIBS="-llua  $LIBS"
19301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h.  */
19303
19304/* Override any GCC internal prototype to avoid an error.
19305   Use char because int might match the return type of a GCC
19306   builtin and then its argument prototype would still apply.  */
19307#ifdef __cplusplus
19308extern "C"
19309#endif
19310char luaL_newstate ();
19311int
19312main ()
19313{
19314return luaL_newstate ();
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319if ac_fn_c_try_link "$LINENO"; then :
19320  ac_cv_lib_lua_luaL_newstate=yes
19321else
19322  ac_cv_lib_lua_luaL_newstate=no
19323fi
19324rm -f core conftest.err conftest.$ac_objext \
19325    conftest$ac_exeext conftest.$ac_ext
19326LIBS=$ac_check_lib_save_LIBS
19327fi
19328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19329$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19330if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19331
19332            LUA_LIBS="-L$x/lib/lua51 -llua $lib_m"
19333            if test "x$ap_platform_runtime_link_flag" != "x"; then
19334
19335  if test "x$LUA_LIBS" = "x"; then
19336    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib/lua51\""
19337    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib/lua51"
19338  else
19339    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib/lua51"
19340    for i in $apr_addto_bugger; do
19341      apr_addto_duplicate="0"
19342      for j in $LUA_LIBS; do
19343        if test "x$i" = "x$j"; then
19344          apr_addto_duplicate="1"
19345          break
19346        fi
19347      done
19348      if test $apr_addto_duplicate = "0"; then
19349        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19350        LUA_LIBS="$LUA_LIBS $i"
19351      fi
19352    done
19353  fi
19354
19355            fi
19356            LUA_CFLAGS="-I$x/include/lua51"
19357
19358fi
19359
19360        CFLAGS=$save_CFLAGS
19361        LDFLAGS=$save_LDFLAGS
19362        break
19363    else
19364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365$as_echo "no" >&6; }
19366    fi
19367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include" >&5
19368$as_echo_n "checking for lua.h in ${x}/include... " >&6; }
19369    if test -f ${x}/include/lua.h; then
19370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19371$as_echo "yes" >&6; }
19372        save_CFLAGS=$CFLAGS
19373        save_LDFLAGS=$LDFLAGS
19374        CFLAGS="$CFLAGS"
19375        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
19376        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19377$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19378if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19379  $as_echo_n "(cached) " >&6
19380else
19381  ac_check_lib_save_LIBS=$LIBS
19382LIBS="-llua  $LIBS"
19383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384/* end confdefs.h.  */
19385
19386/* Override any GCC internal prototype to avoid an error.
19387   Use char because int might match the return type of a GCC
19388   builtin and then its argument prototype would still apply.  */
19389#ifdef __cplusplus
19390extern "C"
19391#endif
19392char luaL_newstate ();
19393int
19394main ()
19395{
19396return luaL_newstate ();
19397  ;
19398  return 0;
19399}
19400_ACEOF
19401if ac_fn_c_try_link "$LINENO"; then :
19402  ac_cv_lib_lua_luaL_newstate=yes
19403else
19404  ac_cv_lib_lua_luaL_newstate=no
19405fi
19406rm -f core conftest.err conftest.$ac_objext \
19407    conftest$ac_exeext conftest.$ac_ext
19408LIBS=$ac_check_lib_save_LIBS
19409fi
19410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19411$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19412if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19413
19414            LUA_LIBS="-L$x/lib -llua $lib_m"
19415            if test "x$ap_platform_runtime_link_flag" != "x"; then
19416
19417  if test "x$LUA_LIBS" = "x"; then
19418    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib\""
19419    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib"
19420  else
19421    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib"
19422    for i in $apr_addto_bugger; do
19423      apr_addto_duplicate="0"
19424      for j in $LUA_LIBS; do
19425        if test "x$i" = "x$j"; then
19426          apr_addto_duplicate="1"
19427          break
19428        fi
19429      done
19430      if test $apr_addto_duplicate = "0"; then
19431        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19432        LUA_LIBS="$LUA_LIBS $i"
19433      fi
19434    done
19435  fi
19436
19437            fi
19438            LUA_CFLAGS="-I$x/include"
19439
19440fi
19441
19442        CFLAGS=$save_CFLAGS
19443        LDFLAGS=$save_LDFLAGS
19444        break
19445    else
19446        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19447$as_echo "no" >&6; }
19448    fi
19449  fi
19450done
19451
19452
19453
19454
19455if test -z "${LUA_LIBS}"; then
19456  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Lua 5.1 library not found." >&5
19457$as_echo "$as_me: WARNING: *** Lua 5.1 library not found." >&2;}
19458  enable_lua="no"
19459    if test -z "${lua_path}"; then
19460        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua 5.1 library is required" >&5
19461$as_echo "$as_me: WARNING: Lua 5.1 library is required" >&2;}
19462    else
19463        as_fn_error $? "Lua 5.1 library is required" "$LINENO" 5
19464    fi
19465else
19466  { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LUA_LIBS}' for Lua Library" >&5
19467$as_echo "$as_me: using '${LUA_LIBS}' for Lua Library" >&6;}
19468  # Check whether --enable-luajit was given.
19469if test "${enable_luajit+set}" = set; then :
19470  enableval=$enable_luajit;
19471    if test "$enableval" = "yes"; then
19472
19473  if test "x$MOD_CPPFLAGS" = "x"; then
19474    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DAP_ENABLE_LUAJIT"\""
19475    MOD_CPPFLAGS=""-DAP_ENABLE_LUAJIT""
19476  else
19477    apr_addto_bugger=""-DAP_ENABLE_LUAJIT""
19478    for i in $apr_addto_bugger; do
19479      apr_addto_duplicate="0"
19480      for j in $MOD_CPPFLAGS; do
19481        if test "x$i" = "x$j"; then
19482          apr_addto_duplicate="1"
19483          break
19484        fi
19485      done
19486      if test $apr_addto_duplicate = "0"; then
19487        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
19488        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
19489      fi
19490    done
19491  fi
19492
19493    fi
19494
19495fi
19496
19497
19498fi
19499
19500  if test "x$enable_lua" != "xno" ; then
19501
19502  if test "x$MOD_INCLUDES" = "x"; then
19503    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"$LUA_CFLAGS\""
19504    MOD_INCLUDES="$LUA_CFLAGS"
19505  else
19506    apr_addto_bugger="$LUA_CFLAGS"
19507    for i in $apr_addto_bugger; do
19508      apr_addto_duplicate="0"
19509      for j in $MOD_INCLUDES; do
19510        if test "x$i" = "x$j"; then
19511          apr_addto_duplicate="1"
19512          break
19513        fi
19514      done
19515      if test $apr_addto_duplicate = "0"; then
19516        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
19517        MOD_INCLUDES="$MOD_INCLUDES $i"
19518      fi
19519    done
19520  fi
19521
19522
19523  if test "x$MOD_LUA_LDADD" = "x"; then
19524    test "x$silent" != "xyes" && echo "  setting MOD_LUA_LDADD to \"$LUA_LIBS\""
19525    MOD_LUA_LDADD="$LUA_LIBS"
19526  else
19527    apr_addto_bugger="$LUA_LIBS"
19528    for i in $apr_addto_bugger; do
19529      apr_addto_duplicate="0"
19530      for j in $MOD_LUA_LDADD; do
19531        if test "x$i" = "x$j"; then
19532          apr_addto_duplicate="1"
19533          break
19534        fi
19535      done
19536      if test $apr_addto_duplicate = "0"; then
19537        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LUA_LDADD"
19538        MOD_LUA_LDADD="$MOD_LUA_LDADD $i"
19539      fi
19540    done
19541  fi
19542
19543  fi
19544
19545            :
19546            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
19547$as_echo_n "checking whether to enable mod_lua... " >&6; }
19548            if test "$enable_lua" = "no"; then
19549              if test "$_apmod_required" = "no"; then
19550                _apmod_extra_msg=" (disabled)"
19551              else
19552                as_fn_error $? "mod_lua has been requested but can not be built due to prerequisite failures" "$LINENO" 5
19553              fi
19554            fi
19555  fi
19556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lua$_apmod_extra_msg" >&5
19557$as_echo "$enable_lua$_apmod_extra_msg" >&6; }
19558  if test "$enable_lua" != "no"; then
19559    case "$enable_lua" in
19560    static*)
19561      MODLIST="$MODLIST lua"
19562      if test "lua" = "so"; then
19563          sharedobjs=yes
19564      fi
19565      shared="";;
19566    *)
19567      enable_lua=`echo $enable_lua|sed 's/shared,*//'`
19568      sharedobjs=yes
19569      shared=yes
19570      DSO_MODULES="$DSO_MODULES lua"
19571      if test "" = "yes" ; then
19572        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lua"
19573      fi
19574      ;;
19575    esac
19576
19577
19578  if test -z "$lua_objects"; then
19579    objects="mod_lua.lo"
19580  else
19581    objects="$lua_objects"
19582  fi
19583
19584  if test -z "$module_standalone"; then
19585    if test -z "$shared"; then
19586      # The filename of a convenience library must have a "lib" prefix:
19587      libname="libmod_lua.la"
19588      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19589      modpath_static="$modpath_static $libname"
19590      cat >>$modpath_current/modules.mk<<EOF
19591$libname: $objects
19592	\$(MOD_LINK) $objects \$(MOD_LUA_LDADD)
19593EOF
19594      if test ! -z "\$(MOD_LUA_LDADD)"; then
19595
19596  if test "x$AP_LIBS" = "x"; then
19597    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LUA_LDADD)\""
19598    AP_LIBS="\$(MOD_LUA_LDADD)"
19599  else
19600    apr_addto_bugger="\$(MOD_LUA_LDADD)"
19601    for i in $apr_addto_bugger; do
19602      apr_addto_duplicate="0"
19603      for j in $AP_LIBS; do
19604        if test "x$i" = "x$j"; then
19605          apr_addto_duplicate="1"
19606          break
19607        fi
19608      done
19609      if test $apr_addto_duplicate = "0"; then
19610        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19611        AP_LIBS="$AP_LIBS $i"
19612      fi
19613    done
19614  fi
19615
19616      fi
19617    else
19618      apache_need_shared=yes
19619      libname="mod_lua.la"
19620      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19621      modpath_shared="$modpath_shared $libname"
19622      cat >>$modpath_current/modules.mk<<EOF
19623$libname: $shobjects
19624	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LUA_LDADD)
19625EOF
19626    fi
19627  fi
19628
19629
19630  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LUA_LDADD"
19631
19632
19633
19634  fi
19635
19636
19637
19638  if test "x$INCLUDES" = "x"; then
19639    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
19640    INCLUDES="-I\$(top_srcdir)/$modpath_current"
19641  else
19642    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
19643    for i in $apr_addto_bugger; do
19644      apr_addto_duplicate="0"
19645      for j in $INCLUDES; do
19646        if test "x$i" = "x$j"; then
19647          apr_addto_duplicate="1"
19648          break
19649        fi
19650      done
19651      if test $apr_addto_duplicate = "0"; then
19652        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
19653        INCLUDES="$INCLUDES $i"
19654      fi
19655    done
19656  fi
19657
19658
19659
19660  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
19661  echo "static = $modpath_static" >> $modpath_current/modules.mk
19662  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
19663  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
19664    if eval val=\"\$MOD_$var\"; test -n "$val"; then
19665      echo "MOD_$var = $val" >> $modpath_current/modules.mk
19666    fi
19667  done
19668  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
19669    MODULE_DIRS="$MODULE_DIRS $current_dir"
19670  else
19671    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
19672  fi
19673
19674  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
19675
19676
19677
19678
19679
19680
19681  current_dir=metadata
19682  modpath_current=modules/metadata
19683  modpath_static=
19684  modpath_shared=
19685  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
19686    eval MOD_$var=
19687  done
19688  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
19689  > $modpath_current/modules.mk
19690
19691
19692
19693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_env" >&5
19694$as_echo_n "checking whether to enable mod_env... " >&6; }
19695    # Check whether --enable-env was given.
19696if test "${enable_env+set}" = set; then :
19697  enableval=$enable_env; force_env=$enableval
19698else
19699  enable_env=yes
19700fi
19701
19702    _apmod_extra_msg=""
19703        case "$enable_env" in
19704    yes|static|shared)
19705      _apmod_required="yes"
19706      ;;
19707    *)
19708      case "$module_selection" in
19709      reallyall|all|most)
19710        _apmod_required="no"
19711        ;;
19712      *)
19713        _apmod_required="yes"
19714        ;;
19715      esac
19716  esac
19717  if test "$enable_env" = "static"; then
19718    enable_env=static
19719  elif test "$enable_env" = "yes"; then
19720    enable_env=$module_default
19721  elif test "$enable_env" = "most"; then
19722    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19723            "$module_selection" = "reallyall"
19724    then
19725      enable_env=$module_default
19726    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19727      enable_env=no
19728    fi
19729    _apmod_extra_msg=" ($module_selection)"
19730  elif test "$enable_env" = "maybe-all"; then
19731    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
19732    then
19733      enable_env=$module_default
19734      _apmod_extra_msg=" ($module_selection)"
19735    else
19736      enable_env=no
19737    fi
19738  elif test "$enable_env" = "no" -a "$module_selection" = "reallyall" -a \
19739            "$force_env" != "no" ; then
19740      enable_env=$module_default
19741      _apmod_extra_msg=" ($module_selection)"
19742  fi
19743  if test "$enable_env" != "no"; then
19744            :
19745  fi
19746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_env$_apmod_extra_msg" >&5
19747$as_echo "$enable_env$_apmod_extra_msg" >&6; }
19748  if test "$enable_env" != "no"; then
19749    case "$enable_env" in
19750    static*)
19751      MODLIST="$MODLIST env"
19752      if test "env" = "so"; then
19753          sharedobjs=yes
19754      fi
19755      shared="";;
19756    *)
19757      enable_env=`echo $enable_env|sed 's/shared,*//'`
19758      sharedobjs=yes
19759      shared=yes
19760      DSO_MODULES="$DSO_MODULES env"
19761      if test "yes" = "yes" ; then
19762        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},env"
19763      fi
19764      ;;
19765    esac
19766
19767
19768  if test -z ""; then
19769    objects="mod_env.lo"
19770  else
19771    objects=""
19772  fi
19773
19774  if test -z "$module_standalone"; then
19775    if test -z "$shared"; then
19776      # The filename of a convenience library must have a "lib" prefix:
19777      libname="libmod_env.la"
19778      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19779      modpath_static="$modpath_static $libname"
19780      cat >>$modpath_current/modules.mk<<EOF
19781$libname: $objects
19782	\$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
19783EOF
19784      if test ! -z "\$(MOD_ENV_LDADD)"; then
19785
19786  if test "x$AP_LIBS" = "x"; then
19787    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ENV_LDADD)\""
19788    AP_LIBS="\$(MOD_ENV_LDADD)"
19789  else
19790    apr_addto_bugger="\$(MOD_ENV_LDADD)"
19791    for i in $apr_addto_bugger; do
19792      apr_addto_duplicate="0"
19793      for j in $AP_LIBS; do
19794        if test "x$i" = "x$j"; then
19795          apr_addto_duplicate="1"
19796          break
19797        fi
19798      done
19799      if test $apr_addto_duplicate = "0"; then
19800        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19801        AP_LIBS="$AP_LIBS $i"
19802      fi
19803    done
19804  fi
19805
19806      fi
19807    else
19808      apache_need_shared=yes
19809      libname="mod_env.la"
19810      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19811      modpath_shared="$modpath_shared $libname"
19812      cat >>$modpath_current/modules.mk<<EOF
19813$libname: $shobjects
19814	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ENV_LDADD)
19815EOF
19816    fi
19817  fi
19818
19819
19820  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"
19821
19822
19823
19824  fi
19825
19826
19827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime_magic" >&5
19828$as_echo_n "checking whether to enable mod_mime_magic... " >&6; }
19829    # Check whether --enable-mime-magic was given.
19830if test "${enable_mime_magic+set}" = set; then :
19831  enableval=$enable_mime_magic; force_mime_magic=$enableval
19832else
19833  enable_mime_magic=maybe-all
19834fi
19835
19836    _apmod_extra_msg=""
19837        case "$enable_mime_magic" in
19838    yes|static|shared)
19839      _apmod_required="yes"
19840      ;;
19841    *)
19842      case "$module_selection" in
19843      reallyall|all|most)
19844        _apmod_required="no"
19845        ;;
19846      *)
19847        _apmod_required="yes"
19848        ;;
19849      esac
19850  esac
19851  if test "$enable_mime_magic" = "static"; then
19852    enable_mime_magic=static
19853  elif test "$enable_mime_magic" = "yes"; then
19854    enable_mime_magic=$module_default
19855  elif test "$enable_mime_magic" = "most"; then
19856    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19857            "$module_selection" = "reallyall"
19858    then
19859      enable_mime_magic=$module_default
19860    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19861      enable_mime_magic=no
19862    fi
19863    _apmod_extra_msg=" ($module_selection)"
19864  elif test "$enable_mime_magic" = "maybe-all"; then
19865    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
19866    then
19867      enable_mime_magic=$module_default
19868      _apmod_extra_msg=" ($module_selection)"
19869    else
19870      enable_mime_magic=no
19871    fi
19872  elif test "$enable_mime_magic" = "no" -a "$module_selection" = "reallyall" -a \
19873            "$force_mime_magic" != "no" ; then
19874      enable_mime_magic=$module_default
19875      _apmod_extra_msg=" ($module_selection)"
19876  fi
19877  if test "$enable_mime_magic" != "no"; then
19878            :
19879  fi
19880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mime_magic$_apmod_extra_msg" >&5
19881$as_echo "$enable_mime_magic$_apmod_extra_msg" >&6; }
19882  if test "$enable_mime_magic" != "no"; then
19883    case "$enable_mime_magic" in
19884    static*)
19885      MODLIST="$MODLIST mime_magic"
19886      if test "mime_magic" = "so"; then
19887          sharedobjs=yes
19888      fi
19889      shared="";;
19890    *)
19891      enable_mime_magic=`echo $enable_mime_magic|sed 's/shared,*//'`
19892      sharedobjs=yes
19893      shared=yes
19894      DSO_MODULES="$DSO_MODULES mime_magic"
19895      if test "" = "yes" ; then
19896        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime_magic"
19897      fi
19898      ;;
19899    esac
19900
19901
19902  if test -z ""; then
19903    objects="mod_mime_magic.lo"
19904  else
19905    objects=""
19906  fi
19907
19908  if test -z "$module_standalone"; then
19909    if test -z "$shared"; then
19910      # The filename of a convenience library must have a "lib" prefix:
19911      libname="libmod_mime_magic.la"
19912      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19913      modpath_static="$modpath_static $libname"
19914      cat >>$modpath_current/modules.mk<<EOF
19915$libname: $objects
19916	\$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
19917EOF
19918      if test ! -z "\$(MOD_MIME_MAGIC_LDADD)"; then
19919
19920  if test "x$AP_LIBS" = "x"; then
19921    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_MAGIC_LDADD)\""
19922    AP_LIBS="\$(MOD_MIME_MAGIC_LDADD)"
19923  else
19924    apr_addto_bugger="\$(MOD_MIME_MAGIC_LDADD)"
19925    for i in $apr_addto_bugger; do
19926      apr_addto_duplicate="0"
19927      for j in $AP_LIBS; do
19928        if test "x$i" = "x$j"; then
19929          apr_addto_duplicate="1"
19930          break
19931        fi
19932      done
19933      if test $apr_addto_duplicate = "0"; then
19934        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19935        AP_LIBS="$AP_LIBS $i"
19936      fi
19937    done
19938  fi
19939
19940      fi
19941    else
19942      apache_need_shared=yes
19943      libname="mod_mime_magic.la"
19944      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19945      modpath_shared="$modpath_shared $libname"
19946      cat >>$modpath_current/modules.mk<<EOF
19947$libname: $shobjects
19948	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_MAGIC_LDADD)
19949EOF
19950    fi
19951  fi
19952
19953
19954  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"
19955
19956
19957
19958  fi
19959
19960
19961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cern_meta" >&5
19962$as_echo_n "checking whether to enable mod_cern_meta... " >&6; }
19963    # Check whether --enable-cern-meta was given.
19964if test "${enable_cern_meta+set}" = set; then :
19965  enableval=$enable_cern_meta; force_cern_meta=$enableval
19966else
19967  enable_cern_meta=no
19968fi
19969
19970    _apmod_extra_msg=""
19971        case "$enable_cern_meta" in
19972    yes|static|shared)
19973      _apmod_required="yes"
19974      ;;
19975    *)
19976      case "$module_selection" in
19977      reallyall|all|most)
19978        _apmod_required="no"
19979        ;;
19980      *)
19981        _apmod_required="yes"
19982        ;;
19983      esac
19984  esac
19985  if test "$enable_cern_meta" = "static"; then
19986    enable_cern_meta=static
19987  elif test "$enable_cern_meta" = "yes"; then
19988    enable_cern_meta=$module_default
19989  elif test "$enable_cern_meta" = "most"; then
19990    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19991            "$module_selection" = "reallyall"
19992    then
19993      enable_cern_meta=$module_default
19994    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19995      enable_cern_meta=no
19996    fi
19997    _apmod_extra_msg=" ($module_selection)"
19998  elif test "$enable_cern_meta" = "maybe-all"; then
19999    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20000    then
20001      enable_cern_meta=$module_default
20002      _apmod_extra_msg=" ($module_selection)"
20003    else
20004      enable_cern_meta=no
20005    fi
20006  elif test "$enable_cern_meta" = "no" -a "$module_selection" = "reallyall" -a \
20007            "$force_cern_meta" != "no" ; then
20008      enable_cern_meta=$module_default
20009      _apmod_extra_msg=" ($module_selection)"
20010  fi
20011  if test "$enable_cern_meta" != "no"; then
20012            :
20013  fi
20014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cern_meta$_apmod_extra_msg" >&5
20015$as_echo "$enable_cern_meta$_apmod_extra_msg" >&6; }
20016  if test "$enable_cern_meta" != "no"; then
20017    case "$enable_cern_meta" in
20018    static*)
20019      MODLIST="$MODLIST cern_meta"
20020      if test "cern_meta" = "so"; then
20021          sharedobjs=yes
20022      fi
20023      shared="";;
20024    *)
20025      enable_cern_meta=`echo $enable_cern_meta|sed 's/shared,*//'`
20026      sharedobjs=yes
20027      shared=yes
20028      DSO_MODULES="$DSO_MODULES cern_meta"
20029      if test "no" = "yes" ; then
20030        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cern_meta"
20031      fi
20032      ;;
20033    esac
20034
20035
20036  if test -z ""; then
20037    objects="mod_cern_meta.lo"
20038  else
20039    objects=""
20040  fi
20041
20042  if test -z "$module_standalone"; then
20043    if test -z "$shared"; then
20044      # The filename of a convenience library must have a "lib" prefix:
20045      libname="libmod_cern_meta.la"
20046      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20047      modpath_static="$modpath_static $libname"
20048      cat >>$modpath_current/modules.mk<<EOF
20049$libname: $objects
20050	\$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
20051EOF
20052      if test ! -z "\$(MOD_CERN_META_LDADD)"; then
20053
20054  if test "x$AP_LIBS" = "x"; then
20055    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CERN_META_LDADD)\""
20056    AP_LIBS="\$(MOD_CERN_META_LDADD)"
20057  else
20058    apr_addto_bugger="\$(MOD_CERN_META_LDADD)"
20059    for i in $apr_addto_bugger; do
20060      apr_addto_duplicate="0"
20061      for j in $AP_LIBS; do
20062        if test "x$i" = "x$j"; then
20063          apr_addto_duplicate="1"
20064          break
20065        fi
20066      done
20067      if test $apr_addto_duplicate = "0"; then
20068        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20069        AP_LIBS="$AP_LIBS $i"
20070      fi
20071    done
20072  fi
20073
20074      fi
20075    else
20076      apache_need_shared=yes
20077      libname="mod_cern_meta.la"
20078      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20079      modpath_shared="$modpath_shared $libname"
20080      cat >>$modpath_current/modules.mk<<EOF
20081$libname: $shobjects
20082	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CERN_META_LDADD)
20083EOF
20084    fi
20085  fi
20086
20087
20088  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"
20089
20090
20091
20092  fi
20093
20094
20095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_expires" >&5
20096$as_echo_n "checking whether to enable mod_expires... " >&6; }
20097    # Check whether --enable-expires was given.
20098if test "${enable_expires+set}" = set; then :
20099  enableval=$enable_expires; force_expires=$enableval
20100else
20101  enable_expires=most
20102fi
20103
20104    _apmod_extra_msg=""
20105        case "$enable_expires" in
20106    yes|static|shared)
20107      _apmod_required="yes"
20108      ;;
20109    *)
20110      case "$module_selection" in
20111      reallyall|all|most)
20112        _apmod_required="no"
20113        ;;
20114      *)
20115        _apmod_required="yes"
20116        ;;
20117      esac
20118  esac
20119  if test "$enable_expires" = "static"; then
20120    enable_expires=static
20121  elif test "$enable_expires" = "yes"; then
20122    enable_expires=$module_default
20123  elif test "$enable_expires" = "most"; then
20124    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20125            "$module_selection" = "reallyall"
20126    then
20127      enable_expires=$module_default
20128    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20129      enable_expires=no
20130    fi
20131    _apmod_extra_msg=" ($module_selection)"
20132  elif test "$enable_expires" = "maybe-all"; then
20133    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20134    then
20135      enable_expires=$module_default
20136      _apmod_extra_msg=" ($module_selection)"
20137    else
20138      enable_expires=no
20139    fi
20140  elif test "$enable_expires" = "no" -a "$module_selection" = "reallyall" -a \
20141            "$force_expires" != "no" ; then
20142      enable_expires=$module_default
20143      _apmod_extra_msg=" ($module_selection)"
20144  fi
20145  if test "$enable_expires" != "no"; then
20146            :
20147  fi
20148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_expires$_apmod_extra_msg" >&5
20149$as_echo "$enable_expires$_apmod_extra_msg" >&6; }
20150  if test "$enable_expires" != "no"; then
20151    case "$enable_expires" in
20152    static*)
20153      MODLIST="$MODLIST expires"
20154      if test "expires" = "so"; then
20155          sharedobjs=yes
20156      fi
20157      shared="";;
20158    *)
20159      enable_expires=`echo $enable_expires|sed 's/shared,*//'`
20160      sharedobjs=yes
20161      shared=yes
20162      DSO_MODULES="$DSO_MODULES expires"
20163      if test "most" = "yes" ; then
20164        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},expires"
20165      fi
20166      ;;
20167    esac
20168
20169
20170  if test -z ""; then
20171    objects="mod_expires.lo"
20172  else
20173    objects=""
20174  fi
20175
20176  if test -z "$module_standalone"; then
20177    if test -z "$shared"; then
20178      # The filename of a convenience library must have a "lib" prefix:
20179      libname="libmod_expires.la"
20180      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20181      modpath_static="$modpath_static $libname"
20182      cat >>$modpath_current/modules.mk<<EOF
20183$libname: $objects
20184	\$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
20185EOF
20186      if test ! -z "\$(MOD_EXPIRES_LDADD)"; then
20187
20188  if test "x$AP_LIBS" = "x"; then
20189    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXPIRES_LDADD)\""
20190    AP_LIBS="\$(MOD_EXPIRES_LDADD)"
20191  else
20192    apr_addto_bugger="\$(MOD_EXPIRES_LDADD)"
20193    for i in $apr_addto_bugger; do
20194      apr_addto_duplicate="0"
20195      for j in $AP_LIBS; do
20196        if test "x$i" = "x$j"; then
20197          apr_addto_duplicate="1"
20198          break
20199        fi
20200      done
20201      if test $apr_addto_duplicate = "0"; then
20202        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20203        AP_LIBS="$AP_LIBS $i"
20204      fi
20205    done
20206  fi
20207
20208      fi
20209    else
20210      apache_need_shared=yes
20211      libname="mod_expires.la"
20212      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20213      modpath_shared="$modpath_shared $libname"
20214      cat >>$modpath_current/modules.mk<<EOF
20215$libname: $shobjects
20216	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXPIRES_LDADD)
20217EOF
20218    fi
20219  fi
20220
20221
20222  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"
20223
20224
20225
20226  fi
20227
20228
20229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_headers" >&5
20230$as_echo_n "checking whether to enable mod_headers... " >&6; }
20231    # Check whether --enable-headers was given.
20232if test "${enable_headers+set}" = set; then :
20233  enableval=$enable_headers; force_headers=$enableval
20234else
20235  enable_headers=yes
20236fi
20237
20238    _apmod_extra_msg=""
20239        case "$enable_headers" in
20240    yes|static|shared)
20241      _apmod_required="yes"
20242      ;;
20243    *)
20244      case "$module_selection" in
20245      reallyall|all|most)
20246        _apmod_required="no"
20247        ;;
20248      *)
20249        _apmod_required="yes"
20250        ;;
20251      esac
20252  esac
20253  if test "$enable_headers" = "static"; then
20254    enable_headers=static
20255  elif test "$enable_headers" = "yes"; then
20256    enable_headers=$module_default
20257  elif test "$enable_headers" = "most"; then
20258    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20259            "$module_selection" = "reallyall"
20260    then
20261      enable_headers=$module_default
20262    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20263      enable_headers=no
20264    fi
20265    _apmod_extra_msg=" ($module_selection)"
20266  elif test "$enable_headers" = "maybe-all"; then
20267    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20268    then
20269      enable_headers=$module_default
20270      _apmod_extra_msg=" ($module_selection)"
20271    else
20272      enable_headers=no
20273    fi
20274  elif test "$enable_headers" = "no" -a "$module_selection" = "reallyall" -a \
20275            "$force_headers" != "no" ; then
20276      enable_headers=$module_default
20277      _apmod_extra_msg=" ($module_selection)"
20278  fi
20279  if test "$enable_headers" != "no"; then
20280            :
20281  fi
20282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_headers$_apmod_extra_msg" >&5
20283$as_echo "$enable_headers$_apmod_extra_msg" >&6; }
20284  if test "$enable_headers" != "no"; then
20285    case "$enable_headers" in
20286    static*)
20287      MODLIST="$MODLIST headers"
20288      if test "headers" = "so"; then
20289          sharedobjs=yes
20290      fi
20291      shared="";;
20292    *)
20293      enable_headers=`echo $enable_headers|sed 's/shared,*//'`
20294      sharedobjs=yes
20295      shared=yes
20296      DSO_MODULES="$DSO_MODULES headers"
20297      if test "yes" = "yes" ; then
20298        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},headers"
20299      fi
20300      ;;
20301    esac
20302
20303
20304  if test -z ""; then
20305    objects="mod_headers.lo"
20306  else
20307    objects=""
20308  fi
20309
20310  if test -z "$module_standalone"; then
20311    if test -z "$shared"; then
20312      # The filename of a convenience library must have a "lib" prefix:
20313      libname="libmod_headers.la"
20314      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20315      modpath_static="$modpath_static $libname"
20316      cat >>$modpath_current/modules.mk<<EOF
20317$libname: $objects
20318	\$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
20319EOF
20320      if test ! -z "\$(MOD_HEADERS_LDADD)"; then
20321
20322  if test "x$AP_LIBS" = "x"; then
20323    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEADERS_LDADD)\""
20324    AP_LIBS="\$(MOD_HEADERS_LDADD)"
20325  else
20326    apr_addto_bugger="\$(MOD_HEADERS_LDADD)"
20327    for i in $apr_addto_bugger; do
20328      apr_addto_duplicate="0"
20329      for j in $AP_LIBS; do
20330        if test "x$i" = "x$j"; then
20331          apr_addto_duplicate="1"
20332          break
20333        fi
20334      done
20335      if test $apr_addto_duplicate = "0"; then
20336        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20337        AP_LIBS="$AP_LIBS $i"
20338      fi
20339    done
20340  fi
20341
20342      fi
20343    else
20344      apache_need_shared=yes
20345      libname="mod_headers.la"
20346      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20347      modpath_shared="$modpath_shared $libname"
20348      cat >>$modpath_current/modules.mk<<EOF
20349$libname: $shobjects
20350	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEADERS_LDADD)
20351EOF
20352    fi
20353  fi
20354
20355
20356  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"
20357
20358
20359
20360  fi
20361
20362
20363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ident" >&5
20364$as_echo_n "checking whether to enable mod_ident... " >&6; }
20365    # Check whether --enable-ident was given.
20366if test "${enable_ident+set}" = set; then :
20367  enableval=$enable_ident; force_ident=$enableval
20368else
20369  enable_ident=no
20370fi
20371
20372    _apmod_extra_msg=""
20373        case "$enable_ident" in
20374    yes|static|shared)
20375      _apmod_required="yes"
20376      ;;
20377    *)
20378      case "$module_selection" in
20379      reallyall|all|most)
20380        _apmod_required="no"
20381        ;;
20382      *)
20383        _apmod_required="yes"
20384        ;;
20385      esac
20386  esac
20387  if test "$enable_ident" = "static"; then
20388    enable_ident=static
20389  elif test "$enable_ident" = "yes"; then
20390    enable_ident=$module_default
20391  elif test "$enable_ident" = "most"; then
20392    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20393            "$module_selection" = "reallyall"
20394    then
20395      enable_ident=$module_default
20396    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20397      enable_ident=no
20398    fi
20399    _apmod_extra_msg=" ($module_selection)"
20400  elif test "$enable_ident" = "maybe-all"; then
20401    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20402    then
20403      enable_ident=$module_default
20404      _apmod_extra_msg=" ($module_selection)"
20405    else
20406      enable_ident=no
20407    fi
20408  elif test "$enable_ident" = "no" -a "$module_selection" = "reallyall" -a \
20409            "$force_ident" != "no" ; then
20410      enable_ident=$module_default
20411      _apmod_extra_msg=" ($module_selection)"
20412  fi
20413  if test "$enable_ident" != "no"; then
20414            :
20415  fi
20416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ident$_apmod_extra_msg" >&5
20417$as_echo "$enable_ident$_apmod_extra_msg" >&6; }
20418  if test "$enable_ident" != "no"; then
20419    case "$enable_ident" in
20420    static*)
20421      MODLIST="$MODLIST ident"
20422      if test "ident" = "so"; then
20423          sharedobjs=yes
20424      fi
20425      shared="";;
20426    *)
20427      enable_ident=`echo $enable_ident|sed 's/shared,*//'`
20428      sharedobjs=yes
20429      shared=yes
20430      DSO_MODULES="$DSO_MODULES ident"
20431      if test "no" = "yes" ; then
20432        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ident"
20433      fi
20434      ;;
20435    esac
20436
20437
20438  if test -z ""; then
20439    objects="mod_ident.lo"
20440  else
20441    objects=""
20442  fi
20443
20444  if test -z "$module_standalone"; then
20445    if test -z "$shared"; then
20446      # The filename of a convenience library must have a "lib" prefix:
20447      libname="libmod_ident.la"
20448      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20449      modpath_static="$modpath_static $libname"
20450      cat >>$modpath_current/modules.mk<<EOF
20451$libname: $objects
20452	\$(MOD_LINK) $objects \$(MOD_IDENT_LDADD)
20453EOF
20454      if test ! -z "\$(MOD_IDENT_LDADD)"; then
20455
20456  if test "x$AP_LIBS" = "x"; then
20457    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IDENT_LDADD)\""
20458    AP_LIBS="\$(MOD_IDENT_LDADD)"
20459  else
20460    apr_addto_bugger="\$(MOD_IDENT_LDADD)"
20461    for i in $apr_addto_bugger; do
20462      apr_addto_duplicate="0"
20463      for j in $AP_LIBS; do
20464        if test "x$i" = "x$j"; then
20465          apr_addto_duplicate="1"
20466          break
20467        fi
20468      done
20469      if test $apr_addto_duplicate = "0"; then
20470        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20471        AP_LIBS="$AP_LIBS $i"
20472      fi
20473    done
20474  fi
20475
20476      fi
20477    else
20478      apache_need_shared=yes
20479      libname="mod_ident.la"
20480      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20481      modpath_shared="$modpath_shared $libname"
20482      cat >>$modpath_current/modules.mk<<EOF
20483$libname: $shobjects
20484	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IDENT_LDADD)
20485EOF
20486    fi
20487  fi
20488
20489
20490  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IDENT_LDADD"
20491
20492
20493
20494  fi
20495
20496
20497
20498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
20499$as_echo_n "checking whether to enable mod_usertrack... " >&6; }
20500    # Check whether --enable-usertrack was given.
20501if test "${enable_usertrack+set}" = set; then :
20502  enableval=$enable_usertrack; force_usertrack=$enableval
20503else
20504  enable_usertrack=maybe-all
20505fi
20506
20507    _apmod_extra_msg=""
20508        case "$enable_usertrack" in
20509    yes|static|shared)
20510      _apmod_required="yes"
20511      ;;
20512    *)
20513      case "$module_selection" in
20514      reallyall|all|most)
20515        _apmod_required="no"
20516        ;;
20517      *)
20518        _apmod_required="yes"
20519        ;;
20520      esac
20521  esac
20522  if test "$enable_usertrack" = "static"; then
20523    enable_usertrack=static
20524  elif test "$enable_usertrack" = "yes"; then
20525    enable_usertrack=$module_default
20526  elif test "$enable_usertrack" = "most"; then
20527    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20528            "$module_selection" = "reallyall"
20529    then
20530      enable_usertrack=$module_default
20531    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20532      enable_usertrack=no
20533    fi
20534    _apmod_extra_msg=" ($module_selection)"
20535  elif test "$enable_usertrack" = "maybe-all"; then
20536    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20537    then
20538      enable_usertrack=$module_default
20539      _apmod_extra_msg=" ($module_selection)"
20540    else
20541      enable_usertrack=no
20542    fi
20543  elif test "$enable_usertrack" = "no" -a "$module_selection" = "reallyall" -a \
20544            "$force_usertrack" != "no" ; then
20545      enable_usertrack=$module_default
20546      _apmod_extra_msg=" ($module_selection)"
20547  fi
20548  if test "$enable_usertrack" != "no"; then
20549            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
20550$as_echo "checking dependencies" >&6; }
20551            :
20552
20553  for ac_header in sys/times.h
20554do :
20555  ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
20556if test "x$ac_cv_header_sys_times_h" = xyes; then :
20557  cat >>confdefs.h <<_ACEOF
20558#define HAVE_SYS_TIMES_H 1
20559_ACEOF
20560
20561fi
20562
20563done
20564
20565  for ac_func in times
20566do :
20567  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
20568if test "x$ac_cv_func_times" = xyes; then :
20569  cat >>confdefs.h <<_ACEOF
20570#define HAVE_TIMES 1
20571_ACEOF
20572
20573fi
20574done
20575
20576
20577            :
20578            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
20579$as_echo_n "checking whether to enable mod_usertrack... " >&6; }
20580            if test "$enable_usertrack" = "no"; then
20581              if test "$_apmod_required" = "no"; then
20582                _apmod_extra_msg=" (disabled)"
20583              else
20584                as_fn_error $? "mod_usertrack has been requested but can not be built due to prerequisite failures" "$LINENO" 5
20585              fi
20586            fi
20587  fi
20588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_usertrack$_apmod_extra_msg" >&5
20589$as_echo "$enable_usertrack$_apmod_extra_msg" >&6; }
20590  if test "$enable_usertrack" != "no"; then
20591    case "$enable_usertrack" in
20592    static*)
20593      MODLIST="$MODLIST usertrack"
20594      if test "usertrack" = "so"; then
20595          sharedobjs=yes
20596      fi
20597      shared="";;
20598    *)
20599      enable_usertrack=`echo $enable_usertrack|sed 's/shared,*//'`
20600      sharedobjs=yes
20601      shared=yes
20602      DSO_MODULES="$DSO_MODULES usertrack"
20603      if test "" = "yes" ; then
20604        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},usertrack"
20605      fi
20606      ;;
20607    esac
20608
20609
20610  if test -z ""; then
20611    objects="mod_usertrack.lo"
20612  else
20613    objects=""
20614  fi
20615
20616  if test -z "$module_standalone"; then
20617    if test -z "$shared"; then
20618      # The filename of a convenience library must have a "lib" prefix:
20619      libname="libmod_usertrack.la"
20620      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20621      modpath_static="$modpath_static $libname"
20622      cat >>$modpath_current/modules.mk<<EOF
20623$libname: $objects
20624	\$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
20625EOF
20626      if test ! -z "\$(MOD_USERTRACK_LDADD)"; then
20627
20628  if test "x$AP_LIBS" = "x"; then
20629    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERTRACK_LDADD)\""
20630    AP_LIBS="\$(MOD_USERTRACK_LDADD)"
20631  else
20632    apr_addto_bugger="\$(MOD_USERTRACK_LDADD)"
20633    for i in $apr_addto_bugger; do
20634      apr_addto_duplicate="0"
20635      for j in $AP_LIBS; do
20636        if test "x$i" = "x$j"; then
20637          apr_addto_duplicate="1"
20638          break
20639        fi
20640      done
20641      if test $apr_addto_duplicate = "0"; then
20642        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20643        AP_LIBS="$AP_LIBS $i"
20644      fi
20645    done
20646  fi
20647
20648      fi
20649    else
20650      apache_need_shared=yes
20651      libname="mod_usertrack.la"
20652      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20653      modpath_shared="$modpath_shared $libname"
20654      cat >>$modpath_current/modules.mk<<EOF
20655$libname: $shobjects
20656	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERTRACK_LDADD)
20657EOF
20658    fi
20659  fi
20660
20661
20662  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"
20663
20664
20665
20666  fi
20667
20668
20669
20670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unique_id" >&5
20671$as_echo_n "checking whether to enable mod_unique_id... " >&6; }
20672    # Check whether --enable-unique-id was given.
20673if test "${enable_unique_id+set}" = set; then :
20674  enableval=$enable_unique_id; force_unique_id=$enableval
20675else
20676  enable_unique_id=most
20677fi
20678
20679    _apmod_extra_msg=""
20680        case "$enable_unique_id" in
20681    yes|static|shared)
20682      _apmod_required="yes"
20683      ;;
20684    *)
20685      case "$module_selection" in
20686      reallyall|all|most)
20687        _apmod_required="no"
20688        ;;
20689      *)
20690        _apmod_required="yes"
20691        ;;
20692      esac
20693  esac
20694  if test "$enable_unique_id" = "static"; then
20695    enable_unique_id=static
20696  elif test "$enable_unique_id" = "yes"; then
20697    enable_unique_id=$module_default
20698  elif test "$enable_unique_id" = "most"; then
20699    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20700            "$module_selection" = "reallyall"
20701    then
20702      enable_unique_id=$module_default
20703    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20704      enable_unique_id=no
20705    fi
20706    _apmod_extra_msg=" ($module_selection)"
20707  elif test "$enable_unique_id" = "maybe-all"; then
20708    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20709    then
20710      enable_unique_id=$module_default
20711      _apmod_extra_msg=" ($module_selection)"
20712    else
20713      enable_unique_id=no
20714    fi
20715  elif test "$enable_unique_id" = "no" -a "$module_selection" = "reallyall" -a \
20716            "$force_unique_id" != "no" ; then
20717      enable_unique_id=$module_default
20718      _apmod_extra_msg=" ($module_selection)"
20719  fi
20720  if test "$enable_unique_id" != "no"; then
20721            :
20722  fi
20723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unique_id$_apmod_extra_msg" >&5
20724$as_echo "$enable_unique_id$_apmod_extra_msg" >&6; }
20725  if test "$enable_unique_id" != "no"; then
20726    case "$enable_unique_id" in
20727    static*)
20728      MODLIST="$MODLIST unique_id"
20729      if test "unique_id" = "so"; then
20730          sharedobjs=yes
20731      fi
20732      shared="";;
20733    *)
20734      enable_unique_id=`echo $enable_unique_id|sed 's/shared,*//'`
20735      sharedobjs=yes
20736      shared=yes
20737      DSO_MODULES="$DSO_MODULES unique_id"
20738      if test "most" = "yes" ; then
20739        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unique_id"
20740      fi
20741      ;;
20742    esac
20743
20744
20745  if test -z ""; then
20746    objects="mod_unique_id.lo"
20747  else
20748    objects=""
20749  fi
20750
20751  if test -z "$module_standalone"; then
20752    if test -z "$shared"; then
20753      # The filename of a convenience library must have a "lib" prefix:
20754      libname="libmod_unique_id.la"
20755      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20756      modpath_static="$modpath_static $libname"
20757      cat >>$modpath_current/modules.mk<<EOF
20758$libname: $objects
20759	\$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
20760EOF
20761      if test ! -z "\$(MOD_UNIQUE_ID_LDADD)"; then
20762
20763  if test "x$AP_LIBS" = "x"; then
20764    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIQUE_ID_LDADD)\""
20765    AP_LIBS="\$(MOD_UNIQUE_ID_LDADD)"
20766  else
20767    apr_addto_bugger="\$(MOD_UNIQUE_ID_LDADD)"
20768    for i in $apr_addto_bugger; do
20769      apr_addto_duplicate="0"
20770      for j in $AP_LIBS; do
20771        if test "x$i" = "x$j"; then
20772          apr_addto_duplicate="1"
20773          break
20774        fi
20775      done
20776      if test $apr_addto_duplicate = "0"; then
20777        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20778        AP_LIBS="$AP_LIBS $i"
20779      fi
20780    done
20781  fi
20782
20783      fi
20784    else
20785      apache_need_shared=yes
20786      libname="mod_unique_id.la"
20787      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20788      modpath_shared="$modpath_shared $libname"
20789      cat >>$modpath_current/modules.mk<<EOF
20790$libname: $shobjects
20791	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIQUE_ID_LDADD)
20792EOF
20793    fi
20794  fi
20795
20796
20797  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"
20798
20799
20800
20801  fi
20802
20803
20804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_setenvif" >&5
20805$as_echo_n "checking whether to enable mod_setenvif... " >&6; }
20806    # Check whether --enable-setenvif was given.
20807if test "${enable_setenvif+set}" = set; then :
20808  enableval=$enable_setenvif; force_setenvif=$enableval
20809else
20810  enable_setenvif=yes
20811fi
20812
20813    _apmod_extra_msg=""
20814        case "$enable_setenvif" in
20815    yes|static|shared)
20816      _apmod_required="yes"
20817      ;;
20818    *)
20819      case "$module_selection" in
20820      reallyall|all|most)
20821        _apmod_required="no"
20822        ;;
20823      *)
20824        _apmod_required="yes"
20825        ;;
20826      esac
20827  esac
20828  if test "$enable_setenvif" = "static"; then
20829    enable_setenvif=static
20830  elif test "$enable_setenvif" = "yes"; then
20831    enable_setenvif=$module_default
20832  elif test "$enable_setenvif" = "most"; then
20833    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20834            "$module_selection" = "reallyall"
20835    then
20836      enable_setenvif=$module_default
20837    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20838      enable_setenvif=no
20839    fi
20840    _apmod_extra_msg=" ($module_selection)"
20841  elif test "$enable_setenvif" = "maybe-all"; then
20842    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20843    then
20844      enable_setenvif=$module_default
20845      _apmod_extra_msg=" ($module_selection)"
20846    else
20847      enable_setenvif=no
20848    fi
20849  elif test "$enable_setenvif" = "no" -a "$module_selection" = "reallyall" -a \
20850            "$force_setenvif" != "no" ; then
20851      enable_setenvif=$module_default
20852      _apmod_extra_msg=" ($module_selection)"
20853  fi
20854  if test "$enable_setenvif" != "no"; then
20855            :
20856  fi
20857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_setenvif$_apmod_extra_msg" >&5
20858$as_echo "$enable_setenvif$_apmod_extra_msg" >&6; }
20859  if test "$enable_setenvif" != "no"; then
20860    case "$enable_setenvif" in
20861    static*)
20862      MODLIST="$MODLIST setenvif"
20863      if test "setenvif" = "so"; then
20864          sharedobjs=yes
20865      fi
20866      shared="";;
20867    *)
20868      enable_setenvif=`echo $enable_setenvif|sed 's/shared,*//'`
20869      sharedobjs=yes
20870      shared=yes
20871      DSO_MODULES="$DSO_MODULES setenvif"
20872      if test "yes" = "yes" ; then
20873        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},setenvif"
20874      fi
20875      ;;
20876    esac
20877
20878
20879  if test -z ""; then
20880    objects="mod_setenvif.lo"
20881  else
20882    objects=""
20883  fi
20884
20885  if test -z "$module_standalone"; then
20886    if test -z "$shared"; then
20887      # The filename of a convenience library must have a "lib" prefix:
20888      libname="libmod_setenvif.la"
20889      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20890      modpath_static="$modpath_static $libname"
20891      cat >>$modpath_current/modules.mk<<EOF
20892$libname: $objects
20893	\$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
20894EOF
20895      if test ! -z "\$(MOD_SETENVIF_LDADD)"; then
20896
20897  if test "x$AP_LIBS" = "x"; then
20898    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SETENVIF_LDADD)\""
20899    AP_LIBS="\$(MOD_SETENVIF_LDADD)"
20900  else
20901    apr_addto_bugger="\$(MOD_SETENVIF_LDADD)"
20902    for i in $apr_addto_bugger; do
20903      apr_addto_duplicate="0"
20904      for j in $AP_LIBS; do
20905        if test "x$i" = "x$j"; then
20906          apr_addto_duplicate="1"
20907          break
20908        fi
20909      done
20910      if test $apr_addto_duplicate = "0"; then
20911        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20912        AP_LIBS="$AP_LIBS $i"
20913      fi
20914    done
20915  fi
20916
20917      fi
20918    else
20919      apache_need_shared=yes
20920      libname="mod_setenvif.la"
20921      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20922      modpath_shared="$modpath_shared $libname"
20923      cat >>$modpath_current/modules.mk<<EOF
20924$libname: $shobjects
20925	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SETENVIF_LDADD)
20926EOF
20927    fi
20928  fi
20929
20930
20931  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"
20932
20933
20934
20935  fi
20936
20937
20938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_version" >&5
20939$as_echo_n "checking whether to enable mod_version... " >&6; }
20940    # Check whether --enable-version was given.
20941if test "${enable_version+set}" = set; then :
20942  enableval=$enable_version; force_version=$enableval
20943else
20944  enable_version=yes
20945fi
20946
20947    _apmod_extra_msg=""
20948        case "$enable_version" in
20949    yes|static|shared)
20950      _apmod_required="yes"
20951      ;;
20952    *)
20953      case "$module_selection" in
20954      reallyall|all|most)
20955        _apmod_required="no"
20956        ;;
20957      *)
20958        _apmod_required="yes"
20959        ;;
20960      esac
20961  esac
20962  if test "$enable_version" = "static"; then
20963    enable_version=static
20964  elif test "$enable_version" = "yes"; then
20965    enable_version=$module_default
20966  elif test "$enable_version" = "most"; then
20967    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20968            "$module_selection" = "reallyall"
20969    then
20970      enable_version=$module_default
20971    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20972      enable_version=no
20973    fi
20974    _apmod_extra_msg=" ($module_selection)"
20975  elif test "$enable_version" = "maybe-all"; then
20976    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20977    then
20978      enable_version=$module_default
20979      _apmod_extra_msg=" ($module_selection)"
20980    else
20981      enable_version=no
20982    fi
20983  elif test "$enable_version" = "no" -a "$module_selection" = "reallyall" -a \
20984            "$force_version" != "no" ; then
20985      enable_version=$module_default
20986      _apmod_extra_msg=" ($module_selection)"
20987  fi
20988  if test "$enable_version" != "no"; then
20989            :
20990  fi
20991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version$_apmod_extra_msg" >&5
20992$as_echo "$enable_version$_apmod_extra_msg" >&6; }
20993  if test "$enable_version" != "no"; then
20994    case "$enable_version" in
20995    static*)
20996      MODLIST="$MODLIST version"
20997      if test "version" = "so"; then
20998          sharedobjs=yes
20999      fi
21000      shared="";;
21001    *)
21002      enable_version=`echo $enable_version|sed 's/shared,*//'`
21003      sharedobjs=yes
21004      shared=yes
21005      DSO_MODULES="$DSO_MODULES version"
21006      if test "yes" = "yes" ; then
21007        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},version"
21008      fi
21009      ;;
21010    esac
21011
21012
21013  if test -z ""; then
21014    objects="mod_version.lo"
21015  else
21016    objects=""
21017  fi
21018
21019  if test -z "$module_standalone"; then
21020    if test -z "$shared"; then
21021      # The filename of a convenience library must have a "lib" prefix:
21022      libname="libmod_version.la"
21023      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21024      modpath_static="$modpath_static $libname"
21025      cat >>$modpath_current/modules.mk<<EOF
21026$libname: $objects
21027	\$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
21028EOF
21029      if test ! -z "\$(MOD_VERSION_LDADD)"; then
21030
21031  if test "x$AP_LIBS" = "x"; then
21032    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VERSION_LDADD)\""
21033    AP_LIBS="\$(MOD_VERSION_LDADD)"
21034  else
21035    apr_addto_bugger="\$(MOD_VERSION_LDADD)"
21036    for i in $apr_addto_bugger; do
21037      apr_addto_duplicate="0"
21038      for j in $AP_LIBS; do
21039        if test "x$i" = "x$j"; then
21040          apr_addto_duplicate="1"
21041          break
21042        fi
21043      done
21044      if test $apr_addto_duplicate = "0"; then
21045        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21046        AP_LIBS="$AP_LIBS $i"
21047      fi
21048    done
21049  fi
21050
21051      fi
21052    else
21053      apache_need_shared=yes
21054      libname="mod_version.la"
21055      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21056      modpath_shared="$modpath_shared $libname"
21057      cat >>$modpath_current/modules.mk<<EOF
21058$libname: $shobjects
21059	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VERSION_LDADD)
21060EOF
21061    fi
21062  fi
21063
21064
21065  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"
21066
21067
21068
21069  fi
21070
21071
21072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_remoteip" >&5
21073$as_echo_n "checking whether to enable mod_remoteip... " >&6; }
21074    # Check whether --enable-remoteip was given.
21075if test "${enable_remoteip+set}" = set; then :
21076  enableval=$enable_remoteip; force_remoteip=$enableval
21077else
21078  enable_remoteip=most
21079fi
21080
21081    _apmod_extra_msg=""
21082        case "$enable_remoteip" in
21083    yes|static|shared)
21084      _apmod_required="yes"
21085      ;;
21086    *)
21087      case "$module_selection" in
21088      reallyall|all|most)
21089        _apmod_required="no"
21090        ;;
21091      *)
21092        _apmod_required="yes"
21093        ;;
21094      esac
21095  esac
21096  if test "$enable_remoteip" = "static"; then
21097    enable_remoteip=static
21098  elif test "$enable_remoteip" = "yes"; then
21099    enable_remoteip=$module_default
21100  elif test "$enable_remoteip" = "most"; then
21101    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21102            "$module_selection" = "reallyall"
21103    then
21104      enable_remoteip=$module_default
21105    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21106      enable_remoteip=no
21107    fi
21108    _apmod_extra_msg=" ($module_selection)"
21109  elif test "$enable_remoteip" = "maybe-all"; then
21110    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21111    then
21112      enable_remoteip=$module_default
21113      _apmod_extra_msg=" ($module_selection)"
21114    else
21115      enable_remoteip=no
21116    fi
21117  elif test "$enable_remoteip" = "no" -a "$module_selection" = "reallyall" -a \
21118            "$force_remoteip" != "no" ; then
21119      enable_remoteip=$module_default
21120      _apmod_extra_msg=" ($module_selection)"
21121  fi
21122  if test "$enable_remoteip" != "no"; then
21123            :
21124  fi
21125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_remoteip$_apmod_extra_msg" >&5
21126$as_echo "$enable_remoteip$_apmod_extra_msg" >&6; }
21127  if test "$enable_remoteip" != "no"; then
21128    case "$enable_remoteip" in
21129    static*)
21130      MODLIST="$MODLIST remoteip"
21131      if test "remoteip" = "so"; then
21132          sharedobjs=yes
21133      fi
21134      shared="";;
21135    *)
21136      enable_remoteip=`echo $enable_remoteip|sed 's/shared,*//'`
21137      sharedobjs=yes
21138      shared=yes
21139      DSO_MODULES="$DSO_MODULES remoteip"
21140      if test "most" = "yes" ; then
21141        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},remoteip"
21142      fi
21143      ;;
21144    esac
21145
21146
21147  if test -z ""; then
21148    objects="mod_remoteip.lo"
21149  else
21150    objects=""
21151  fi
21152
21153  if test -z "$module_standalone"; then
21154    if test -z "$shared"; then
21155      # The filename of a convenience library must have a "lib" prefix:
21156      libname="libmod_remoteip.la"
21157      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21158      modpath_static="$modpath_static $libname"
21159      cat >>$modpath_current/modules.mk<<EOF
21160$libname: $objects
21161	\$(MOD_LINK) $objects \$(MOD_REMOTEIP_LDADD)
21162EOF
21163      if test ! -z "\$(MOD_REMOTEIP_LDADD)"; then
21164
21165  if test "x$AP_LIBS" = "x"; then
21166    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REMOTEIP_LDADD)\""
21167    AP_LIBS="\$(MOD_REMOTEIP_LDADD)"
21168  else
21169    apr_addto_bugger="\$(MOD_REMOTEIP_LDADD)"
21170    for i in $apr_addto_bugger; do
21171      apr_addto_duplicate="0"
21172      for j in $AP_LIBS; do
21173        if test "x$i" = "x$j"; then
21174          apr_addto_duplicate="1"
21175          break
21176        fi
21177      done
21178      if test $apr_addto_duplicate = "0"; then
21179        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21180        AP_LIBS="$AP_LIBS $i"
21181      fi
21182    done
21183  fi
21184
21185      fi
21186    else
21187      apache_need_shared=yes
21188      libname="mod_remoteip.la"
21189      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21190      modpath_shared="$modpath_shared $libname"
21191      cat >>$modpath_current/modules.mk<<EOF
21192$libname: $shobjects
21193	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REMOTEIP_LDADD)
21194EOF
21195    fi
21196  fi
21197
21198
21199  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REMOTEIP_LDADD"
21200
21201
21202
21203  fi
21204
21205
21206
21207  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
21208  echo "static = $modpath_static" >> $modpath_current/modules.mk
21209  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
21210  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
21211    if eval val=\"\$MOD_$var\"; test -n "$val"; then
21212      echo "MOD_$var = $val" >> $modpath_current/modules.mk
21213    fi
21214  done
21215  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
21216    MODULE_DIRS="$MODULE_DIRS $current_dir"
21217  else
21218    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
21219  fi
21220
21221  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
21222
21223
21224
21225
21226
21227  current_dir=proxy
21228  modpath_current=modules/proxy
21229  modpath_static=
21230  modpath_shared=
21231  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
21232    eval MOD_$var=
21233  done
21234  test -d proxy || $srcdir/build/mkdir.sh $modpath_current
21235  > $modpath_current/modules.mk
21236
21237
21238if test "$enable_proxy" = "shared"; then
21239  proxy_mods_enable=shared
21240elif test "$enable_proxy" = "yes"; then
21241  proxy_mods_enable=yes
21242else
21243  proxy_mods_enable=most
21244fi
21245
21246proxy_objs="mod_proxy.lo proxy_util.lo"
21247
21248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy" >&5
21249$as_echo_n "checking whether to enable mod_proxy... " >&6; }
21250    # Check whether --enable-proxy was given.
21251if test "${enable_proxy+set}" = set; then :
21252  enableval=$enable_proxy; force_proxy=$enableval
21253else
21254  enable_proxy=$proxy_mods_enable
21255fi
21256
21257    _apmod_extra_msg=""
21258        case "$enable_proxy" in
21259    yes|static|shared)
21260      _apmod_required="yes"
21261      ;;
21262    *)
21263      case "$module_selection" in
21264      reallyall|all|most)
21265        _apmod_required="no"
21266        ;;
21267      *)
21268        _apmod_required="yes"
21269        ;;
21270      esac
21271  esac
21272  if test "$enable_proxy" = "static"; then
21273    enable_proxy=static
21274  elif test "$enable_proxy" = "yes"; then
21275    enable_proxy=$module_default
21276  elif test "$enable_proxy" = "most"; then
21277    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21278            "$module_selection" = "reallyall"
21279    then
21280      enable_proxy=$module_default
21281    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21282      enable_proxy=no
21283    fi
21284    _apmod_extra_msg=" ($module_selection)"
21285  elif test "$enable_proxy" = "maybe-all"; then
21286    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21287    then
21288      enable_proxy=$module_default
21289      _apmod_extra_msg=" ($module_selection)"
21290    else
21291      enable_proxy=no
21292    fi
21293  elif test "$enable_proxy" = "no" -a "$module_selection" = "reallyall" -a \
21294            "$force_proxy" != "no" ; then
21295      enable_proxy=$module_default
21296      _apmod_extra_msg=" ($module_selection)"
21297  fi
21298  if test "$enable_proxy" != "no"; then
21299            :
21300  fi
21301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy$_apmod_extra_msg" >&5
21302$as_echo "$enable_proxy$_apmod_extra_msg" >&6; }
21303  if test "$enable_proxy" != "no"; then
21304    case "$enable_proxy" in
21305    static*)
21306      MODLIST="$MODLIST proxy"
21307      if test "proxy" = "so"; then
21308          sharedobjs=yes
21309      fi
21310      shared="";;
21311    *)
21312      enable_proxy=`echo $enable_proxy|sed 's/shared,*//'`
21313      sharedobjs=yes
21314      shared=yes
21315      DSO_MODULES="$DSO_MODULES proxy"
21316      if test "$proxy_mods_enable" = "yes" ; then
21317        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy"
21318      fi
21319      ;;
21320    esac
21321
21322
21323  if test -z "$proxy_objs"; then
21324    objects="mod_proxy.lo"
21325  else
21326    objects="$proxy_objs"
21327  fi
21328
21329  if test -z "$module_standalone"; then
21330    if test -z "$shared"; then
21331      # The filename of a convenience library must have a "lib" prefix:
21332      libname="libmod_proxy.la"
21333      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21334      modpath_static="$modpath_static $libname"
21335      cat >>$modpath_current/modules.mk<<EOF
21336$libname: $objects
21337	\$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
21338EOF
21339      if test ! -z "\$(MOD_PROXY_LDADD)"; then
21340
21341  if test "x$AP_LIBS" = "x"; then
21342    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_LDADD)\""
21343    AP_LIBS="\$(MOD_PROXY_LDADD)"
21344  else
21345    apr_addto_bugger="\$(MOD_PROXY_LDADD)"
21346    for i in $apr_addto_bugger; do
21347      apr_addto_duplicate="0"
21348      for j in $AP_LIBS; do
21349        if test "x$i" = "x$j"; then
21350          apr_addto_duplicate="1"
21351          break
21352        fi
21353      done
21354      if test $apr_addto_duplicate = "0"; then
21355        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21356        AP_LIBS="$AP_LIBS $i"
21357      fi
21358    done
21359  fi
21360
21361      fi
21362    else
21363      apache_need_shared=yes
21364      libname="mod_proxy.la"
21365      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21366      modpath_shared="$modpath_shared $libname"
21367      cat >>$modpath_current/modules.mk<<EOF
21368$libname: $shobjects
21369	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_LDADD)
21370EOF
21371    fi
21372  fi
21373
21374
21375  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"
21376
21377
21378
21379  fi
21380
21381
21382proxy_connect_objs="mod_proxy_connect.lo"
21383proxy_ftp_objs="mod_proxy_ftp.lo"
21384proxy_http_objs="mod_proxy_http.lo"
21385proxy_fcgi_objs="mod_proxy_fcgi.lo"
21386proxy_scgi_objs="mod_proxy_scgi.lo"
21387proxy_fdpass_objs="mod_proxy_fdpass.lo"
21388proxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo ajp_utils.lo"
21389proxy_wstunnel_objs="mod_proxy_wstunnel.lo"
21390proxy_balancer_objs="mod_proxy_balancer.lo"
21391
21392case "$host" in
21393  *os2*)
21394    # OS/2 DLLs must resolve all symbols at build time and
21395    # these sub-modules need some from the main proxy module
21396    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
21397    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
21398    proxy_http_objs="$proxy_http_objs mod_proxy.la"
21399    proxy_fcgi_objs="$proxy_fcgi_objs mod_proxy.la"
21400    proxy_scgi_objs="$proxy_scgi_objs mod_proxy.la"
21401    proxy_fdpass_objs="$proxy_fdpass_objs mod_proxy.la"
21402    proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
21403    proxy_wstunnel_objs="$proxy_wstunnel_objs mod_proxy.la"
21404    proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
21405    ;;
21406esac
21407
21408
21409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
21410$as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
21411    # Check whether --enable-proxy-connect was given.
21412if test "${enable_proxy_connect+set}" = set; then :
21413  enableval=$enable_proxy_connect; force_proxy_connect=$enableval
21414else
21415  enable_proxy_connect=$proxy_mods_enable
21416fi
21417
21418    _apmod_extra_msg=""
21419        case "$enable_proxy_connect" in
21420    yes|static|shared)
21421      _apmod_required="yes"
21422      ;;
21423    *)
21424      case "$module_selection" in
21425      reallyall|all|most)
21426        _apmod_required="no"
21427        ;;
21428      *)
21429        _apmod_required="yes"
21430        ;;
21431      esac
21432  esac
21433  if test "$enable_proxy_connect" = "static"; then
21434    enable_proxy_connect=static
21435  elif test "$enable_proxy_connect" = "yes"; then
21436    enable_proxy_connect=$module_default
21437  elif test "$enable_proxy_connect" = "most"; then
21438    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21439            "$module_selection" = "reallyall"
21440    then
21441      enable_proxy_connect=$module_default
21442    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21443      enable_proxy_connect=no
21444    fi
21445    _apmod_extra_msg=" ($module_selection)"
21446  elif test "$enable_proxy_connect" = "maybe-all"; then
21447    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21448    then
21449      enable_proxy_connect=$module_default
21450      _apmod_extra_msg=" ($module_selection)"
21451    else
21452      enable_proxy_connect=no
21453    fi
21454  elif test "$enable_proxy_connect" = "no" -a "$module_selection" = "reallyall" -a \
21455            "$force_proxy_connect" != "no" ; then
21456      enable_proxy_connect=$module_default
21457      _apmod_extra_msg=" ($module_selection)"
21458  fi
21459  if test "$enable_proxy_connect" != "no"; then
21460            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21461$as_echo "checking dependencies" >&6; }
21462            if test "$enable_proxy" = "no" ; then
21463                              enable_proxy_connect=no
21464                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&5
21465$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&2;}
21466                            elif test "$enable_proxy_connect" = "static" && test "$enable_proxy" != "static" ; then
21467                              enable_proxy_connect=no
21468                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_connect statically if mod_proxy is built shared\"" >&5
21469$as_echo "$as_me: WARNING: \"cannot build mod_proxy_connect statically if mod_proxy is built shared\"" >&2;}
21470                            else
21471            :
21472            fi
21473            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
21474$as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
21475            if test "$enable_proxy_connect" = "no"; then
21476              if test "$_apmod_required" = "no"; then
21477                _apmod_extra_msg=" (disabled)"
21478              else
21479                as_fn_error $? "mod_proxy_connect has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21480              fi
21481            fi
21482  fi
21483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_connect$_apmod_extra_msg" >&5
21484$as_echo "$enable_proxy_connect$_apmod_extra_msg" >&6; }
21485  if test "$enable_proxy_connect" != "no"; then
21486    case "$enable_proxy_connect" in
21487    static*)
21488      MODLIST="$MODLIST proxy_connect"
21489      if test "proxy_connect" = "so"; then
21490          sharedobjs=yes
21491      fi
21492      shared="";;
21493    *)
21494      enable_proxy_connect=`echo $enable_proxy_connect|sed 's/shared,*//'`
21495      sharedobjs=yes
21496      shared=yes
21497      DSO_MODULES="$DSO_MODULES proxy_connect"
21498      if test "$proxy_mods_enable" = "yes" ; then
21499        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_connect"
21500      fi
21501      ;;
21502    esac
21503
21504
21505  if test -z "$proxy_connect_objs"; then
21506    objects="mod_proxy_connect.lo"
21507  else
21508    objects="$proxy_connect_objs"
21509  fi
21510
21511  if test -z "$module_standalone"; then
21512    if test -z "$shared"; then
21513      # The filename of a convenience library must have a "lib" prefix:
21514      libname="libmod_proxy_connect.la"
21515      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21516      modpath_static="$modpath_static $libname"
21517      cat >>$modpath_current/modules.mk<<EOF
21518$libname: $objects
21519	\$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
21520EOF
21521      if test ! -z "\$(MOD_PROXY_CONNECT_LDADD)"; then
21522
21523  if test "x$AP_LIBS" = "x"; then
21524    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_CONNECT_LDADD)\""
21525    AP_LIBS="\$(MOD_PROXY_CONNECT_LDADD)"
21526  else
21527    apr_addto_bugger="\$(MOD_PROXY_CONNECT_LDADD)"
21528    for i in $apr_addto_bugger; do
21529      apr_addto_duplicate="0"
21530      for j in $AP_LIBS; do
21531        if test "x$i" = "x$j"; then
21532          apr_addto_duplicate="1"
21533          break
21534        fi
21535      done
21536      if test $apr_addto_duplicate = "0"; then
21537        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21538        AP_LIBS="$AP_LIBS $i"
21539      fi
21540    done
21541  fi
21542
21543      fi
21544    else
21545      apache_need_shared=yes
21546      libname="mod_proxy_connect.la"
21547      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21548      modpath_shared="$modpath_shared $libname"
21549      cat >>$modpath_current/modules.mk<<EOF
21550$libname: $shobjects
21551	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_CONNECT_LDADD)
21552EOF
21553    fi
21554  fi
21555
21556
21557  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"
21558
21559
21560
21561  fi
21562
21563
21564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
21565$as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
21566    # Check whether --enable-proxy-ftp was given.
21567if test "${enable_proxy_ftp+set}" = set; then :
21568  enableval=$enable_proxy_ftp; force_proxy_ftp=$enableval
21569else
21570  enable_proxy_ftp=$proxy_mods_enable
21571fi
21572
21573    _apmod_extra_msg=""
21574        case "$enable_proxy_ftp" in
21575    yes|static|shared)
21576      _apmod_required="yes"
21577      ;;
21578    *)
21579      case "$module_selection" in
21580      reallyall|all|most)
21581        _apmod_required="no"
21582        ;;
21583      *)
21584        _apmod_required="yes"
21585        ;;
21586      esac
21587  esac
21588  if test "$enable_proxy_ftp" = "static"; then
21589    enable_proxy_ftp=static
21590  elif test "$enable_proxy_ftp" = "yes"; then
21591    enable_proxy_ftp=$module_default
21592  elif test "$enable_proxy_ftp" = "most"; then
21593    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21594            "$module_selection" = "reallyall"
21595    then
21596      enable_proxy_ftp=$module_default
21597    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21598      enable_proxy_ftp=no
21599    fi
21600    _apmod_extra_msg=" ($module_selection)"
21601  elif test "$enable_proxy_ftp" = "maybe-all"; then
21602    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21603    then
21604      enable_proxy_ftp=$module_default
21605      _apmod_extra_msg=" ($module_selection)"
21606    else
21607      enable_proxy_ftp=no
21608    fi
21609  elif test "$enable_proxy_ftp" = "no" -a "$module_selection" = "reallyall" -a \
21610            "$force_proxy_ftp" != "no" ; then
21611      enable_proxy_ftp=$module_default
21612      _apmod_extra_msg=" ($module_selection)"
21613  fi
21614  if test "$enable_proxy_ftp" != "no"; then
21615            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21616$as_echo "checking dependencies" >&6; }
21617            if test "$enable_proxy" = "no" ; then
21618                              enable_proxy_ftp=no
21619                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&5
21620$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&2;}
21621                            elif test "$enable_proxy_ftp" = "static" && test "$enable_proxy" != "static" ; then
21622                              enable_proxy_ftp=no
21623                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_ftp statically if mod_proxy is built shared\"" >&5
21624$as_echo "$as_me: WARNING: \"cannot build mod_proxy_ftp statically if mod_proxy is built shared\"" >&2;}
21625                            else
21626            :
21627            fi
21628            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
21629$as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
21630            if test "$enable_proxy_ftp" = "no"; then
21631              if test "$_apmod_required" = "no"; then
21632                _apmod_extra_msg=" (disabled)"
21633              else
21634                as_fn_error $? "mod_proxy_ftp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21635              fi
21636            fi
21637  fi
21638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
21639$as_echo "$enable_proxy_ftp$_apmod_extra_msg" >&6; }
21640  if test "$enable_proxy_ftp" != "no"; then
21641    case "$enable_proxy_ftp" in
21642    static*)
21643      MODLIST="$MODLIST proxy_ftp"
21644      if test "proxy_ftp" = "so"; then
21645          sharedobjs=yes
21646      fi
21647      shared="";;
21648    *)
21649      enable_proxy_ftp=`echo $enable_proxy_ftp|sed 's/shared,*//'`
21650      sharedobjs=yes
21651      shared=yes
21652      DSO_MODULES="$DSO_MODULES proxy_ftp"
21653      if test "$proxy_mods_enable" = "yes" ; then
21654        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ftp"
21655      fi
21656      ;;
21657    esac
21658
21659
21660  if test -z "$proxy_ftp_objs"; then
21661    objects="mod_proxy_ftp.lo"
21662  else
21663    objects="$proxy_ftp_objs"
21664  fi
21665
21666  if test -z "$module_standalone"; then
21667    if test -z "$shared"; then
21668      # The filename of a convenience library must have a "lib" prefix:
21669      libname="libmod_proxy_ftp.la"
21670      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21671      modpath_static="$modpath_static $libname"
21672      cat >>$modpath_current/modules.mk<<EOF
21673$libname: $objects
21674	\$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
21675EOF
21676      if test ! -z "\$(MOD_PROXY_FTP_LDADD)"; then
21677
21678  if test "x$AP_LIBS" = "x"; then
21679    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FTP_LDADD)\""
21680    AP_LIBS="\$(MOD_PROXY_FTP_LDADD)"
21681  else
21682    apr_addto_bugger="\$(MOD_PROXY_FTP_LDADD)"
21683    for i in $apr_addto_bugger; do
21684      apr_addto_duplicate="0"
21685      for j in $AP_LIBS; do
21686        if test "x$i" = "x$j"; then
21687          apr_addto_duplicate="1"
21688          break
21689        fi
21690      done
21691      if test $apr_addto_duplicate = "0"; then
21692        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21693        AP_LIBS="$AP_LIBS $i"
21694      fi
21695    done
21696  fi
21697
21698      fi
21699    else
21700      apache_need_shared=yes
21701      libname="mod_proxy_ftp.la"
21702      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21703      modpath_shared="$modpath_shared $libname"
21704      cat >>$modpath_current/modules.mk<<EOF
21705$libname: $shobjects
21706	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FTP_LDADD)
21707EOF
21708    fi
21709  fi
21710
21711
21712  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"
21713
21714
21715
21716  fi
21717
21718
21719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
21720$as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
21721    # Check whether --enable-proxy-http was given.
21722if test "${enable_proxy_http+set}" = set; then :
21723  enableval=$enable_proxy_http; force_proxy_http=$enableval
21724else
21725  enable_proxy_http=$proxy_mods_enable
21726fi
21727
21728    _apmod_extra_msg=""
21729        case "$enable_proxy_http" in
21730    yes|static|shared)
21731      _apmod_required="yes"
21732      ;;
21733    *)
21734      case "$module_selection" in
21735      reallyall|all|most)
21736        _apmod_required="no"
21737        ;;
21738      *)
21739        _apmod_required="yes"
21740        ;;
21741      esac
21742  esac
21743  if test "$enable_proxy_http" = "static"; then
21744    enable_proxy_http=static
21745  elif test "$enable_proxy_http" = "yes"; then
21746    enable_proxy_http=$module_default
21747  elif test "$enable_proxy_http" = "most"; then
21748    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21749            "$module_selection" = "reallyall"
21750    then
21751      enable_proxy_http=$module_default
21752    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21753      enable_proxy_http=no
21754    fi
21755    _apmod_extra_msg=" ($module_selection)"
21756  elif test "$enable_proxy_http" = "maybe-all"; then
21757    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21758    then
21759      enable_proxy_http=$module_default
21760      _apmod_extra_msg=" ($module_selection)"
21761    else
21762      enable_proxy_http=no
21763    fi
21764  elif test "$enable_proxy_http" = "no" -a "$module_selection" = "reallyall" -a \
21765            "$force_proxy_http" != "no" ; then
21766      enable_proxy_http=$module_default
21767      _apmod_extra_msg=" ($module_selection)"
21768  fi
21769  if test "$enable_proxy_http" != "no"; then
21770            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21771$as_echo "checking dependencies" >&6; }
21772            if test "$enable_proxy" = "no" ; then
21773                              enable_proxy_http=no
21774                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&5
21775$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&2;}
21776                            elif test "$enable_proxy_http" = "static" && test "$enable_proxy" != "static" ; then
21777                              enable_proxy_http=no
21778                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_http statically if mod_proxy is built shared\"" >&5
21779$as_echo "$as_me: WARNING: \"cannot build mod_proxy_http statically if mod_proxy is built shared\"" >&2;}
21780                            else
21781            :
21782            fi
21783            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
21784$as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
21785            if test "$enable_proxy_http" = "no"; then
21786              if test "$_apmod_required" = "no"; then
21787                _apmod_extra_msg=" (disabled)"
21788              else
21789                as_fn_error $? "mod_proxy_http has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21790              fi
21791            fi
21792  fi
21793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_http$_apmod_extra_msg" >&5
21794$as_echo "$enable_proxy_http$_apmod_extra_msg" >&6; }
21795  if test "$enable_proxy_http" != "no"; then
21796    case "$enable_proxy_http" in
21797    static*)
21798      MODLIST="$MODLIST proxy_http"
21799      if test "proxy_http" = "so"; then
21800          sharedobjs=yes
21801      fi
21802      shared="";;
21803    *)
21804      enable_proxy_http=`echo $enable_proxy_http|sed 's/shared,*//'`
21805      sharedobjs=yes
21806      shared=yes
21807      DSO_MODULES="$DSO_MODULES proxy_http"
21808      if test "$proxy_mods_enable" = "yes" ; then
21809        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_http"
21810      fi
21811      ;;
21812    esac
21813
21814
21815  if test -z "$proxy_http_objs"; then
21816    objects="mod_proxy_http.lo"
21817  else
21818    objects="$proxy_http_objs"
21819  fi
21820
21821  if test -z "$module_standalone"; then
21822    if test -z "$shared"; then
21823      # The filename of a convenience library must have a "lib" prefix:
21824      libname="libmod_proxy_http.la"
21825      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21826      modpath_static="$modpath_static $libname"
21827      cat >>$modpath_current/modules.mk<<EOF
21828$libname: $objects
21829	\$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
21830EOF
21831      if test ! -z "\$(MOD_PROXY_HTTP_LDADD)"; then
21832
21833  if test "x$AP_LIBS" = "x"; then
21834    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTTP_LDADD)\""
21835    AP_LIBS="\$(MOD_PROXY_HTTP_LDADD)"
21836  else
21837    apr_addto_bugger="\$(MOD_PROXY_HTTP_LDADD)"
21838    for i in $apr_addto_bugger; do
21839      apr_addto_duplicate="0"
21840      for j in $AP_LIBS; do
21841        if test "x$i" = "x$j"; then
21842          apr_addto_duplicate="1"
21843          break
21844        fi
21845      done
21846      if test $apr_addto_duplicate = "0"; then
21847        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21848        AP_LIBS="$AP_LIBS $i"
21849      fi
21850    done
21851  fi
21852
21853      fi
21854    else
21855      apache_need_shared=yes
21856      libname="mod_proxy_http.la"
21857      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21858      modpath_shared="$modpath_shared $libname"
21859      cat >>$modpath_current/modules.mk<<EOF
21860$libname: $shobjects
21861	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP_LDADD)
21862EOF
21863    fi
21864  fi
21865
21866
21867  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"
21868
21869
21870
21871  fi
21872
21873
21874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
21875$as_echo_n "checking whether to enable mod_proxy_fcgi... " >&6; }
21876    # Check whether --enable-proxy-fcgi was given.
21877if test "${enable_proxy_fcgi+set}" = set; then :
21878  enableval=$enable_proxy_fcgi; force_proxy_fcgi=$enableval
21879else
21880  enable_proxy_fcgi=$proxy_mods_enable
21881fi
21882
21883    _apmod_extra_msg=""
21884        case "$enable_proxy_fcgi" in
21885    yes|static|shared)
21886      _apmod_required="yes"
21887      ;;
21888    *)
21889      case "$module_selection" in
21890      reallyall|all|most)
21891        _apmod_required="no"
21892        ;;
21893      *)
21894        _apmod_required="yes"
21895        ;;
21896      esac
21897  esac
21898  if test "$enable_proxy_fcgi" = "static"; then
21899    enable_proxy_fcgi=static
21900  elif test "$enable_proxy_fcgi" = "yes"; then
21901    enable_proxy_fcgi=$module_default
21902  elif test "$enable_proxy_fcgi" = "most"; then
21903    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21904            "$module_selection" = "reallyall"
21905    then
21906      enable_proxy_fcgi=$module_default
21907    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21908      enable_proxy_fcgi=no
21909    fi
21910    _apmod_extra_msg=" ($module_selection)"
21911  elif test "$enable_proxy_fcgi" = "maybe-all"; then
21912    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21913    then
21914      enable_proxy_fcgi=$module_default
21915      _apmod_extra_msg=" ($module_selection)"
21916    else
21917      enable_proxy_fcgi=no
21918    fi
21919  elif test "$enable_proxy_fcgi" = "no" -a "$module_selection" = "reallyall" -a \
21920            "$force_proxy_fcgi" != "no" ; then
21921      enable_proxy_fcgi=$module_default
21922      _apmod_extra_msg=" ($module_selection)"
21923  fi
21924  if test "$enable_proxy_fcgi" != "no"; then
21925            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21926$as_echo "checking dependencies" >&6; }
21927            if test "$enable_proxy" = "no" ; then
21928                              enable_proxy_fcgi=no
21929                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&5
21930$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&2;}
21931                            elif test "$enable_proxy_fcgi" = "static" && test "$enable_proxy" != "static" ; then
21932                              enable_proxy_fcgi=no
21933                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_fcgi statically if mod_proxy is built shared\"" >&5
21934$as_echo "$as_me: WARNING: \"cannot build mod_proxy_fcgi statically if mod_proxy is built shared\"" >&2;}
21935                            else
21936            :
21937            fi
21938            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
21939$as_echo_n "checking whether to enable mod_proxy_fcgi... " >&6; }
21940            if test "$enable_proxy_fcgi" = "no"; then
21941              if test "$_apmod_required" = "no"; then
21942                _apmod_extra_msg=" (disabled)"
21943              else
21944                as_fn_error $? "mod_proxy_fcgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21945              fi
21946            fi
21947  fi
21948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fcgi$_apmod_extra_msg" >&5
21949$as_echo "$enable_proxy_fcgi$_apmod_extra_msg" >&6; }
21950  if test "$enable_proxy_fcgi" != "no"; then
21951    case "$enable_proxy_fcgi" in
21952    static*)
21953      MODLIST="$MODLIST proxy_fcgi"
21954      if test "proxy_fcgi" = "so"; then
21955          sharedobjs=yes
21956      fi
21957      shared="";;
21958    *)
21959      enable_proxy_fcgi=`echo $enable_proxy_fcgi|sed 's/shared,*//'`
21960      sharedobjs=yes
21961      shared=yes
21962      DSO_MODULES="$DSO_MODULES proxy_fcgi"
21963      if test "$proxy_mods_enable" = "yes" ; then
21964        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fcgi"
21965      fi
21966      ;;
21967    esac
21968
21969
21970  if test -z "$proxy_fcgi_objs"; then
21971    objects="mod_proxy_fcgi.lo"
21972  else
21973    objects="$proxy_fcgi_objs"
21974  fi
21975
21976  if test -z "$module_standalone"; then
21977    if test -z "$shared"; then
21978      # The filename of a convenience library must have a "lib" prefix:
21979      libname="libmod_proxy_fcgi.la"
21980      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21981      modpath_static="$modpath_static $libname"
21982      cat >>$modpath_current/modules.mk<<EOF
21983$libname: $objects
21984	\$(MOD_LINK) $objects \$(MOD_PROXY_FCGI_LDADD)
21985EOF
21986      if test ! -z "\$(MOD_PROXY_FCGI_LDADD)"; then
21987
21988  if test "x$AP_LIBS" = "x"; then
21989    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FCGI_LDADD)\""
21990    AP_LIBS="\$(MOD_PROXY_FCGI_LDADD)"
21991  else
21992    apr_addto_bugger="\$(MOD_PROXY_FCGI_LDADD)"
21993    for i in $apr_addto_bugger; do
21994      apr_addto_duplicate="0"
21995      for j in $AP_LIBS; do
21996        if test "x$i" = "x$j"; then
21997          apr_addto_duplicate="1"
21998          break
21999        fi
22000      done
22001      if test $apr_addto_duplicate = "0"; then
22002        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22003        AP_LIBS="$AP_LIBS $i"
22004      fi
22005    done
22006  fi
22007
22008      fi
22009    else
22010      apache_need_shared=yes
22011      libname="mod_proxy_fcgi.la"
22012      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22013      modpath_shared="$modpath_shared $libname"
22014      cat >>$modpath_current/modules.mk<<EOF
22015$libname: $shobjects
22016	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FCGI_LDADD)
22017EOF
22018    fi
22019  fi
22020
22021
22022  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FCGI_LDADD"
22023
22024
22025
22026  fi
22027
22028
22029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
22030$as_echo_n "checking whether to enable mod_proxy_scgi... " >&6; }
22031    # Check whether --enable-proxy-scgi was given.
22032if test "${enable_proxy_scgi+set}" = set; then :
22033  enableval=$enable_proxy_scgi; force_proxy_scgi=$enableval
22034else
22035  enable_proxy_scgi=$proxy_mods_enable
22036fi
22037
22038    _apmod_extra_msg=""
22039        case "$enable_proxy_scgi" in
22040    yes|static|shared)
22041      _apmod_required="yes"
22042      ;;
22043    *)
22044      case "$module_selection" in
22045      reallyall|all|most)
22046        _apmod_required="no"
22047        ;;
22048      *)
22049        _apmod_required="yes"
22050        ;;
22051      esac
22052  esac
22053  if test "$enable_proxy_scgi" = "static"; then
22054    enable_proxy_scgi=static
22055  elif test "$enable_proxy_scgi" = "yes"; then
22056    enable_proxy_scgi=$module_default
22057  elif test "$enable_proxy_scgi" = "most"; then
22058    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22059            "$module_selection" = "reallyall"
22060    then
22061      enable_proxy_scgi=$module_default
22062    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22063      enable_proxy_scgi=no
22064    fi
22065    _apmod_extra_msg=" ($module_selection)"
22066  elif test "$enable_proxy_scgi" = "maybe-all"; then
22067    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22068    then
22069      enable_proxy_scgi=$module_default
22070      _apmod_extra_msg=" ($module_selection)"
22071    else
22072      enable_proxy_scgi=no
22073    fi
22074  elif test "$enable_proxy_scgi" = "no" -a "$module_selection" = "reallyall" -a \
22075            "$force_proxy_scgi" != "no" ; then
22076      enable_proxy_scgi=$module_default
22077      _apmod_extra_msg=" ($module_selection)"
22078  fi
22079  if test "$enable_proxy_scgi" != "no"; then
22080            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22081$as_echo "checking dependencies" >&6; }
22082            if test "$enable_proxy" = "no" ; then
22083                              enable_proxy_scgi=no
22084                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&5
22085$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&2;}
22086                            elif test "$enable_proxy_scgi" = "static" && test "$enable_proxy" != "static" ; then
22087                              enable_proxy_scgi=no
22088                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_scgi statically if mod_proxy is built shared\"" >&5
22089$as_echo "$as_me: WARNING: \"cannot build mod_proxy_scgi statically if mod_proxy is built shared\"" >&2;}
22090                            else
22091            :
22092            fi
22093            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
22094$as_echo_n "checking whether to enable mod_proxy_scgi... " >&6; }
22095            if test "$enable_proxy_scgi" = "no"; then
22096              if test "$_apmod_required" = "no"; then
22097                _apmod_extra_msg=" (disabled)"
22098              else
22099                as_fn_error $? "mod_proxy_scgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22100              fi
22101            fi
22102  fi
22103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_scgi$_apmod_extra_msg" >&5
22104$as_echo "$enable_proxy_scgi$_apmod_extra_msg" >&6; }
22105  if test "$enable_proxy_scgi" != "no"; then
22106    case "$enable_proxy_scgi" in
22107    static*)
22108      MODLIST="$MODLIST proxy_scgi"
22109      if test "proxy_scgi" = "so"; then
22110          sharedobjs=yes
22111      fi
22112      shared="";;
22113    *)
22114      enable_proxy_scgi=`echo $enable_proxy_scgi|sed 's/shared,*//'`
22115      sharedobjs=yes
22116      shared=yes
22117      DSO_MODULES="$DSO_MODULES proxy_scgi"
22118      if test "$proxy_mods_enable" = "yes" ; then
22119        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_scgi"
22120      fi
22121      ;;
22122    esac
22123
22124
22125  if test -z "$proxy_scgi_objs"; then
22126    objects="mod_proxy_scgi.lo"
22127  else
22128    objects="$proxy_scgi_objs"
22129  fi
22130
22131  if test -z "$module_standalone"; then
22132    if test -z "$shared"; then
22133      # The filename of a convenience library must have a "lib" prefix:
22134      libname="libmod_proxy_scgi.la"
22135      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22136      modpath_static="$modpath_static $libname"
22137      cat >>$modpath_current/modules.mk<<EOF
22138$libname: $objects
22139	\$(MOD_LINK) $objects \$(MOD_PROXY_SCGI_LDADD)
22140EOF
22141      if test ! -z "\$(MOD_PROXY_SCGI_LDADD)"; then
22142
22143  if test "x$AP_LIBS" = "x"; then
22144    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_SCGI_LDADD)\""
22145    AP_LIBS="\$(MOD_PROXY_SCGI_LDADD)"
22146  else
22147    apr_addto_bugger="\$(MOD_PROXY_SCGI_LDADD)"
22148    for i in $apr_addto_bugger; do
22149      apr_addto_duplicate="0"
22150      for j in $AP_LIBS; do
22151        if test "x$i" = "x$j"; then
22152          apr_addto_duplicate="1"
22153          break
22154        fi
22155      done
22156      if test $apr_addto_duplicate = "0"; then
22157        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22158        AP_LIBS="$AP_LIBS $i"
22159      fi
22160    done
22161  fi
22162
22163      fi
22164    else
22165      apache_need_shared=yes
22166      libname="mod_proxy_scgi.la"
22167      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22168      modpath_shared="$modpath_shared $libname"
22169      cat >>$modpath_current/modules.mk<<EOF
22170$libname: $shobjects
22171	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_SCGI_LDADD)
22172EOF
22173    fi
22174  fi
22175
22176
22177  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_SCGI_LDADD"
22178
22179
22180
22181  fi
22182
22183
22184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
22185$as_echo_n "checking whether to enable mod_proxy_fdpass... " >&6; }
22186    # Check whether --enable-proxy-fdpass was given.
22187if test "${enable_proxy_fdpass+set}" = set; then :
22188  enableval=$enable_proxy_fdpass; force_proxy_fdpass=$enableval
22189else
22190  enable_proxy_fdpass=maybe-all
22191fi
22192
22193    _apmod_extra_msg=""
22194        case "$enable_proxy_fdpass" in
22195    yes|static|shared)
22196      _apmod_required="yes"
22197      ;;
22198    *)
22199      case "$module_selection" in
22200      reallyall|all|most)
22201        _apmod_required="no"
22202        ;;
22203      *)
22204        _apmod_required="yes"
22205        ;;
22206      esac
22207  esac
22208  if test "$enable_proxy_fdpass" = "static"; then
22209    enable_proxy_fdpass=static
22210  elif test "$enable_proxy_fdpass" = "yes"; then
22211    enable_proxy_fdpass=$module_default
22212  elif test "$enable_proxy_fdpass" = "most"; then
22213    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22214            "$module_selection" = "reallyall"
22215    then
22216      enable_proxy_fdpass=$module_default
22217    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22218      enable_proxy_fdpass=no
22219    fi
22220    _apmod_extra_msg=" ($module_selection)"
22221  elif test "$enable_proxy_fdpass" = "maybe-all"; then
22222    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22223    then
22224      enable_proxy_fdpass=$module_default
22225      _apmod_extra_msg=" ($module_selection)"
22226    else
22227      enable_proxy_fdpass=no
22228    fi
22229  elif test "$enable_proxy_fdpass" = "no" -a "$module_selection" = "reallyall" -a \
22230            "$force_proxy_fdpass" != "no" ; then
22231      enable_proxy_fdpass=$module_default
22232      _apmod_extra_msg=" ($module_selection)"
22233  fi
22234  if test "$enable_proxy_fdpass" != "no"; then
22235            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22236$as_echo "checking dependencies" >&6; }
22237            if test "$enable_proxy" = "no" ; then
22238                              enable_proxy_fdpass=no
22239                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&5
22240$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&2;}
22241                            elif test "$enable_proxy_fdpass" = "static" && test "$enable_proxy" != "static" ; then
22242                              enable_proxy_fdpass=no
22243                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_fdpass statically if mod_proxy is built shared\"" >&5
22244$as_echo "$as_me: WARNING: \"cannot build mod_proxy_fdpass statically if mod_proxy is built shared\"" >&2;}
22245                            else
22246
22247  ac_fn_c_check_decl "$LINENO" "CMSG_DATA" "ac_cv_have_decl_CMSG_DATA" "
22248    #include <sys/types.h>
22249    #include <sys/socket.h>
22250
22251"
22252if test "x$ac_cv_have_decl_CMSG_DATA" = xyes; then :
22253
22254fi
22255
22256  if test $ac_cv_have_decl_CMSG_DATA = "no"; then
22257    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support CMSG_DATA." >&5
22258$as_echo "$as_me: WARNING: Your system does not support CMSG_DATA." >&2;}
22259    enable_proxy_fdpass=no
22260  fi
22261
22262            fi
22263            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
22264$as_echo_n "checking whether to enable mod_proxy_fdpass... " >&6; }
22265            if test "$enable_proxy_fdpass" = "no"; then
22266              if test "$_apmod_required" = "no"; then
22267                _apmod_extra_msg=" (disabled)"
22268              else
22269                as_fn_error $? "mod_proxy_fdpass has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22270              fi
22271            fi
22272  fi
22273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fdpass$_apmod_extra_msg" >&5
22274$as_echo "$enable_proxy_fdpass$_apmod_extra_msg" >&6; }
22275  if test "$enable_proxy_fdpass" != "no"; then
22276    case "$enable_proxy_fdpass" in
22277    static*)
22278      MODLIST="$MODLIST proxy_fdpass"
22279      if test "proxy_fdpass" = "so"; then
22280          sharedobjs=yes
22281      fi
22282      shared="";;
22283    *)
22284      enable_proxy_fdpass=`echo $enable_proxy_fdpass|sed 's/shared,*//'`
22285      sharedobjs=yes
22286      shared=yes
22287      DSO_MODULES="$DSO_MODULES proxy_fdpass"
22288      if test "" = "yes" ; then
22289        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fdpass"
22290      fi
22291      ;;
22292    esac
22293
22294
22295  if test -z "$proxy_fdpass_objs"; then
22296    objects="mod_proxy_fdpass.lo"
22297  else
22298    objects="$proxy_fdpass_objs"
22299  fi
22300
22301  if test -z "$module_standalone"; then
22302    if test -z "$shared"; then
22303      # The filename of a convenience library must have a "lib" prefix:
22304      libname="libmod_proxy_fdpass.la"
22305      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22306      modpath_static="$modpath_static $libname"
22307      cat >>$modpath_current/modules.mk<<EOF
22308$libname: $objects
22309	\$(MOD_LINK) $objects \$(MOD_PROXY_FDPASS_LDADD)
22310EOF
22311      if test ! -z "\$(MOD_PROXY_FDPASS_LDADD)"; then
22312
22313  if test "x$AP_LIBS" = "x"; then
22314    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FDPASS_LDADD)\""
22315    AP_LIBS="\$(MOD_PROXY_FDPASS_LDADD)"
22316  else
22317    apr_addto_bugger="\$(MOD_PROXY_FDPASS_LDADD)"
22318    for i in $apr_addto_bugger; do
22319      apr_addto_duplicate="0"
22320      for j in $AP_LIBS; do
22321        if test "x$i" = "x$j"; then
22322          apr_addto_duplicate="1"
22323          break
22324        fi
22325      done
22326      if test $apr_addto_duplicate = "0"; then
22327        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22328        AP_LIBS="$AP_LIBS $i"
22329      fi
22330    done
22331  fi
22332
22333      fi
22334    else
22335      apache_need_shared=yes
22336      libname="mod_proxy_fdpass.la"
22337      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22338      modpath_shared="$modpath_shared $libname"
22339      cat >>$modpath_current/modules.mk<<EOF
22340$libname: $shobjects
22341	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FDPASS_LDADD)
22342EOF
22343    fi
22344  fi
22345
22346
22347  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FDPASS_LDADD"
22348
22349
22350
22351  fi
22352
22353
22354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
22355$as_echo_n "checking whether to enable mod_proxy_wstunnel... " >&6; }
22356    # Check whether --enable-proxy-wstunnel was given.
22357if test "${enable_proxy_wstunnel+set}" = set; then :
22358  enableval=$enable_proxy_wstunnel; force_proxy_wstunnel=$enableval
22359else
22360  enable_proxy_wstunnel=$proxy_mods_enable
22361fi
22362
22363    _apmod_extra_msg=""
22364        case "$enable_proxy_wstunnel" in
22365    yes|static|shared)
22366      _apmod_required="yes"
22367      ;;
22368    *)
22369      case "$module_selection" in
22370      reallyall|all|most)
22371        _apmod_required="no"
22372        ;;
22373      *)
22374        _apmod_required="yes"
22375        ;;
22376      esac
22377  esac
22378  if test "$enable_proxy_wstunnel" = "static"; then
22379    enable_proxy_wstunnel=static
22380  elif test "$enable_proxy_wstunnel" = "yes"; then
22381    enable_proxy_wstunnel=$module_default
22382  elif test "$enable_proxy_wstunnel" = "most"; then
22383    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22384            "$module_selection" = "reallyall"
22385    then
22386      enable_proxy_wstunnel=$module_default
22387    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22388      enable_proxy_wstunnel=no
22389    fi
22390    _apmod_extra_msg=" ($module_selection)"
22391  elif test "$enable_proxy_wstunnel" = "maybe-all"; then
22392    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22393    then
22394      enable_proxy_wstunnel=$module_default
22395      _apmod_extra_msg=" ($module_selection)"
22396    else
22397      enable_proxy_wstunnel=no
22398    fi
22399  elif test "$enable_proxy_wstunnel" = "no" -a "$module_selection" = "reallyall" -a \
22400            "$force_proxy_wstunnel" != "no" ; then
22401      enable_proxy_wstunnel=$module_default
22402      _apmod_extra_msg=" ($module_selection)"
22403  fi
22404  if test "$enable_proxy_wstunnel" != "no"; then
22405            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22406$as_echo "checking dependencies" >&6; }
22407            if test "$enable_proxy" = "no" ; then
22408                              enable_proxy_wstunnel=no
22409                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&5
22410$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&2;}
22411                            elif test "$enable_proxy_wstunnel" = "static" && test "$enable_proxy" != "static" ; then
22412                              enable_proxy_wstunnel=no
22413                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_wstunnel statically if mod_proxy is built shared\"" >&5
22414$as_echo "$as_me: WARNING: \"cannot build mod_proxy_wstunnel statically if mod_proxy is built shared\"" >&2;}
22415                            else
22416            :
22417            fi
22418            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
22419$as_echo_n "checking whether to enable mod_proxy_wstunnel... " >&6; }
22420            if test "$enable_proxy_wstunnel" = "no"; then
22421              if test "$_apmod_required" = "no"; then
22422                _apmod_extra_msg=" (disabled)"
22423              else
22424                as_fn_error $? "mod_proxy_wstunnel has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22425              fi
22426            fi
22427  fi
22428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_wstunnel$_apmod_extra_msg" >&5
22429$as_echo "$enable_proxy_wstunnel$_apmod_extra_msg" >&6; }
22430  if test "$enable_proxy_wstunnel" != "no"; then
22431    case "$enable_proxy_wstunnel" in
22432    static*)
22433      MODLIST="$MODLIST proxy_wstunnel"
22434      if test "proxy_wstunnel" = "so"; then
22435          sharedobjs=yes
22436      fi
22437      shared="";;
22438    *)
22439      enable_proxy_wstunnel=`echo $enable_proxy_wstunnel|sed 's/shared,*//'`
22440      sharedobjs=yes
22441      shared=yes
22442      DSO_MODULES="$DSO_MODULES proxy_wstunnel"
22443      if test "$proxy_mods_enable" = "yes" ; then
22444        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_wstunnel"
22445      fi
22446      ;;
22447    esac
22448
22449
22450  if test -z "$proxy_wstunnel_objs"; then
22451    objects="mod_proxy_wstunnel.lo"
22452  else
22453    objects="$proxy_wstunnel_objs"
22454  fi
22455
22456  if test -z "$module_standalone"; then
22457    if test -z "$shared"; then
22458      # The filename of a convenience library must have a "lib" prefix:
22459      libname="libmod_proxy_wstunnel.la"
22460      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22461      modpath_static="$modpath_static $libname"
22462      cat >>$modpath_current/modules.mk<<EOF
22463$libname: $objects
22464	\$(MOD_LINK) $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
22465EOF
22466      if test ! -z "\$(MOD_PROXY_WSTUNNEL_LDADD)"; then
22467
22468  if test "x$AP_LIBS" = "x"; then
22469    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_WSTUNNEL_LDADD)\""
22470    AP_LIBS="\$(MOD_PROXY_WSTUNNEL_LDADD)"
22471  else
22472    apr_addto_bugger="\$(MOD_PROXY_WSTUNNEL_LDADD)"
22473    for i in $apr_addto_bugger; do
22474      apr_addto_duplicate="0"
22475      for j in $AP_LIBS; do
22476        if test "x$i" = "x$j"; then
22477          apr_addto_duplicate="1"
22478          break
22479        fi
22480      done
22481      if test $apr_addto_duplicate = "0"; then
22482        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22483        AP_LIBS="$AP_LIBS $i"
22484      fi
22485    done
22486  fi
22487
22488      fi
22489    else
22490      apache_need_shared=yes
22491      libname="mod_proxy_wstunnel.la"
22492      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22493      modpath_shared="$modpath_shared $libname"
22494      cat >>$modpath_current/modules.mk<<EOF
22495$libname: $shobjects
22496	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
22497EOF
22498    fi
22499  fi
22500
22501
22502  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_WSTUNNEL_LDADD"
22503
22504
22505
22506  fi
22507
22508
22509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
22510$as_echo_n "checking whether to enable mod_proxy_ajp... " >&6; }
22511    # Check whether --enable-proxy-ajp was given.
22512if test "${enable_proxy_ajp+set}" = set; then :
22513  enableval=$enable_proxy_ajp; force_proxy_ajp=$enableval
22514else
22515  enable_proxy_ajp=$proxy_mods_enable
22516fi
22517
22518    _apmod_extra_msg=""
22519        case "$enable_proxy_ajp" in
22520    yes|static|shared)
22521      _apmod_required="yes"
22522      ;;
22523    *)
22524      case "$module_selection" in
22525      reallyall|all|most)
22526        _apmod_required="no"
22527        ;;
22528      *)
22529        _apmod_required="yes"
22530        ;;
22531      esac
22532  esac
22533  if test "$enable_proxy_ajp" = "static"; then
22534    enable_proxy_ajp=static
22535  elif test "$enable_proxy_ajp" = "yes"; then
22536    enable_proxy_ajp=$module_default
22537  elif test "$enable_proxy_ajp" = "most"; then
22538    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22539            "$module_selection" = "reallyall"
22540    then
22541      enable_proxy_ajp=$module_default
22542    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22543      enable_proxy_ajp=no
22544    fi
22545    _apmod_extra_msg=" ($module_selection)"
22546  elif test "$enable_proxy_ajp" = "maybe-all"; then
22547    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22548    then
22549      enable_proxy_ajp=$module_default
22550      _apmod_extra_msg=" ($module_selection)"
22551    else
22552      enable_proxy_ajp=no
22553    fi
22554  elif test "$enable_proxy_ajp" = "no" -a "$module_selection" = "reallyall" -a \
22555            "$force_proxy_ajp" != "no" ; then
22556      enable_proxy_ajp=$module_default
22557      _apmod_extra_msg=" ($module_selection)"
22558  fi
22559  if test "$enable_proxy_ajp" != "no"; then
22560            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22561$as_echo "checking dependencies" >&6; }
22562            if test "$enable_proxy" = "no" ; then
22563                              enable_proxy_ajp=no
22564                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&5
22565$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&2;}
22566                            elif test "$enable_proxy_ajp" = "static" && test "$enable_proxy" != "static" ; then
22567                              enable_proxy_ajp=no
22568                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_ajp statically if mod_proxy is built shared\"" >&5
22569$as_echo "$as_me: WARNING: \"cannot build mod_proxy_ajp statically if mod_proxy is built shared\"" >&2;}
22570                            else
22571            :
22572            fi
22573            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
22574$as_echo_n "checking whether to enable mod_proxy_ajp... " >&6; }
22575            if test "$enable_proxy_ajp" = "no"; then
22576              if test "$_apmod_required" = "no"; then
22577                _apmod_extra_msg=" (disabled)"
22578              else
22579                as_fn_error $? "mod_proxy_ajp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22580              fi
22581            fi
22582  fi
22583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ajp$_apmod_extra_msg" >&5
22584$as_echo "$enable_proxy_ajp$_apmod_extra_msg" >&6; }
22585  if test "$enable_proxy_ajp" != "no"; then
22586    case "$enable_proxy_ajp" in
22587    static*)
22588      MODLIST="$MODLIST proxy_ajp"
22589      if test "proxy_ajp" = "so"; then
22590          sharedobjs=yes
22591      fi
22592      shared="";;
22593    *)
22594      enable_proxy_ajp=`echo $enable_proxy_ajp|sed 's/shared,*//'`
22595      sharedobjs=yes
22596      shared=yes
22597      DSO_MODULES="$DSO_MODULES proxy_ajp"
22598      if test "$proxy_mods_enable" = "yes" ; then
22599        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ajp"
22600      fi
22601      ;;
22602    esac
22603
22604
22605  if test -z "$proxy_ajp_objs"; then
22606    objects="mod_proxy_ajp.lo"
22607  else
22608    objects="$proxy_ajp_objs"
22609  fi
22610
22611  if test -z "$module_standalone"; then
22612    if test -z "$shared"; then
22613      # The filename of a convenience library must have a "lib" prefix:
22614      libname="libmod_proxy_ajp.la"
22615      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22616      modpath_static="$modpath_static $libname"
22617      cat >>$modpath_current/modules.mk<<EOF
22618$libname: $objects
22619	\$(MOD_LINK) $objects \$(MOD_PROXY_AJP_LDADD)
22620EOF
22621      if test ! -z "\$(MOD_PROXY_AJP_LDADD)"; then
22622
22623  if test "x$AP_LIBS" = "x"; then
22624    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_AJP_LDADD)\""
22625    AP_LIBS="\$(MOD_PROXY_AJP_LDADD)"
22626  else
22627    apr_addto_bugger="\$(MOD_PROXY_AJP_LDADD)"
22628    for i in $apr_addto_bugger; do
22629      apr_addto_duplicate="0"
22630      for j in $AP_LIBS; do
22631        if test "x$i" = "x$j"; then
22632          apr_addto_duplicate="1"
22633          break
22634        fi
22635      done
22636      if test $apr_addto_duplicate = "0"; then
22637        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22638        AP_LIBS="$AP_LIBS $i"
22639      fi
22640    done
22641  fi
22642
22643      fi
22644    else
22645      apache_need_shared=yes
22646      libname="mod_proxy_ajp.la"
22647      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22648      modpath_shared="$modpath_shared $libname"
22649      cat >>$modpath_current/modules.mk<<EOF
22650$libname: $shobjects
22651	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_AJP_LDADD)
22652EOF
22653    fi
22654  fi
22655
22656
22657  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_AJP_LDADD"
22658
22659
22660
22661  fi
22662
22663
22664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
22665$as_echo_n "checking whether to enable mod_proxy_balancer... " >&6; }
22666    # Check whether --enable-proxy-balancer was given.
22667if test "${enable_proxy_balancer+set}" = set; then :
22668  enableval=$enable_proxy_balancer; force_proxy_balancer=$enableval
22669else
22670  enable_proxy_balancer=$proxy_mods_enable
22671fi
22672
22673    _apmod_extra_msg=""
22674        case "$enable_proxy_balancer" in
22675    yes|static|shared)
22676      _apmod_required="yes"
22677      ;;
22678    *)
22679      case "$module_selection" in
22680      reallyall|all|most)
22681        _apmod_required="no"
22682        ;;
22683      *)
22684        _apmod_required="yes"
22685        ;;
22686      esac
22687  esac
22688  if test "$enable_proxy_balancer" = "static"; then
22689    enable_proxy_balancer=static
22690  elif test "$enable_proxy_balancer" = "yes"; then
22691    enable_proxy_balancer=$module_default
22692  elif test "$enable_proxy_balancer" = "most"; then
22693    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22694            "$module_selection" = "reallyall"
22695    then
22696      enable_proxy_balancer=$module_default
22697    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22698      enable_proxy_balancer=no
22699    fi
22700    _apmod_extra_msg=" ($module_selection)"
22701  elif test "$enable_proxy_balancer" = "maybe-all"; then
22702    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22703    then
22704      enable_proxy_balancer=$module_default
22705      _apmod_extra_msg=" ($module_selection)"
22706    else
22707      enable_proxy_balancer=no
22708    fi
22709  elif test "$enable_proxy_balancer" = "no" -a "$module_selection" = "reallyall" -a \
22710            "$force_proxy_balancer" != "no" ; then
22711      enable_proxy_balancer=$module_default
22712      _apmod_extra_msg=" ($module_selection)"
22713  fi
22714  if test "$enable_proxy_balancer" != "no"; then
22715            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22716$as_echo "checking dependencies" >&6; }
22717            if test "$enable_proxy" = "no" ; then
22718                              enable_proxy_balancer=no
22719                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&5
22720$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&2;}
22721                            elif test "$enable_proxy_balancer" = "static" && test "$enable_proxy" != "static" ; then
22722                              enable_proxy_balancer=no
22723                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_balancer statically if mod_proxy is built shared\"" >&5
22724$as_echo "$as_me: WARNING: \"cannot build mod_proxy_balancer statically if mod_proxy is built shared\"" >&2;}
22725                            else
22726            :
22727            fi
22728            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
22729$as_echo_n "checking whether to enable mod_proxy_balancer... " >&6; }
22730            if test "$enable_proxy_balancer" = "no"; then
22731              if test "$_apmod_required" = "no"; then
22732                _apmod_extra_msg=" (disabled)"
22733              else
22734                as_fn_error $? "mod_proxy_balancer has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22735              fi
22736            fi
22737  fi
22738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_balancer$_apmod_extra_msg" >&5
22739$as_echo "$enable_proxy_balancer$_apmod_extra_msg" >&6; }
22740  if test "$enable_proxy_balancer" != "no"; then
22741    case "$enable_proxy_balancer" in
22742    static*)
22743      MODLIST="$MODLIST proxy_balancer"
22744      if test "proxy_balancer" = "so"; then
22745          sharedobjs=yes
22746      fi
22747      shared="";;
22748    *)
22749      enable_proxy_balancer=`echo $enable_proxy_balancer|sed 's/shared,*//'`
22750      sharedobjs=yes
22751      shared=yes
22752      DSO_MODULES="$DSO_MODULES proxy_balancer"
22753      if test "$proxy_mods_enable" = "yes" ; then
22754        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_balancer"
22755      fi
22756      ;;
22757    esac
22758
22759
22760  if test -z "$proxy_balancer_objs"; then
22761    objects="mod_proxy_balancer.lo"
22762  else
22763    objects="$proxy_balancer_objs"
22764  fi
22765
22766  if test -z "$module_standalone"; then
22767    if test -z "$shared"; then
22768      # The filename of a convenience library must have a "lib" prefix:
22769      libname="libmod_proxy_balancer.la"
22770      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22771      modpath_static="$modpath_static $libname"
22772      cat >>$modpath_current/modules.mk<<EOF
22773$libname: $objects
22774	\$(MOD_LINK) $objects \$(MOD_PROXY_BALANCER_LDADD)
22775EOF
22776      if test ! -z "\$(MOD_PROXY_BALANCER_LDADD)"; then
22777
22778  if test "x$AP_LIBS" = "x"; then
22779    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_BALANCER_LDADD)\""
22780    AP_LIBS="\$(MOD_PROXY_BALANCER_LDADD)"
22781  else
22782    apr_addto_bugger="\$(MOD_PROXY_BALANCER_LDADD)"
22783    for i in $apr_addto_bugger; do
22784      apr_addto_duplicate="0"
22785      for j in $AP_LIBS; do
22786        if test "x$i" = "x$j"; then
22787          apr_addto_duplicate="1"
22788          break
22789        fi
22790      done
22791      if test $apr_addto_duplicate = "0"; then
22792        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22793        AP_LIBS="$AP_LIBS $i"
22794      fi
22795    done
22796  fi
22797
22798      fi
22799    else
22800      apache_need_shared=yes
22801      libname="mod_proxy_balancer.la"
22802      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22803      modpath_shared="$modpath_shared $libname"
22804      cat >>$modpath_current/modules.mk<<EOF
22805$libname: $shobjects
22806	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_BALANCER_LDADD)
22807EOF
22808    fi
22809  fi
22810
22811
22812  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_BALANCER_LDADD"
22813
22814
22815
22816  fi
22817
22818
22819
22820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
22821$as_echo_n "checking whether to enable mod_proxy_express... " >&6; }
22822    # Check whether --enable-proxy-express was given.
22823if test "${enable_proxy_express+set}" = set; then :
22824  enableval=$enable_proxy_express; force_proxy_express=$enableval
22825else
22826  enable_proxy_express=$proxy_mods_enable
22827fi
22828
22829    _apmod_extra_msg=""
22830        case "$enable_proxy_express" in
22831    yes|static|shared)
22832      _apmod_required="yes"
22833      ;;
22834    *)
22835      case "$module_selection" in
22836      reallyall|all|most)
22837        _apmod_required="no"
22838        ;;
22839      *)
22840        _apmod_required="yes"
22841        ;;
22842      esac
22843  esac
22844  if test "$enable_proxy_express" = "static"; then
22845    enable_proxy_express=static
22846  elif test "$enable_proxy_express" = "yes"; then
22847    enable_proxy_express=$module_default
22848  elif test "$enable_proxy_express" = "most"; then
22849    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22850            "$module_selection" = "reallyall"
22851    then
22852      enable_proxy_express=$module_default
22853    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22854      enable_proxy_express=no
22855    fi
22856    _apmod_extra_msg=" ($module_selection)"
22857  elif test "$enable_proxy_express" = "maybe-all"; then
22858    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22859    then
22860      enable_proxy_express=$module_default
22861      _apmod_extra_msg=" ($module_selection)"
22862    else
22863      enable_proxy_express=no
22864    fi
22865  elif test "$enable_proxy_express" = "no" -a "$module_selection" = "reallyall" -a \
22866            "$force_proxy_express" != "no" ; then
22867      enable_proxy_express=$module_default
22868      _apmod_extra_msg=" ($module_selection)"
22869  fi
22870  if test "$enable_proxy_express" != "no"; then
22871            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22872$as_echo "checking dependencies" >&6; }
22873            if test "$enable_proxy" = "no" ; then
22874                              enable_proxy_express=no
22875                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&5
22876$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&2;}
22877                            elif test "$enable_proxy_express" = "static" && test "$enable_proxy" != "static" ; then
22878                              enable_proxy_express=no
22879                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_express statically if mod_proxy is built shared\"" >&5
22880$as_echo "$as_me: WARNING: \"cannot build mod_proxy_express statically if mod_proxy is built shared\"" >&2;}
22881                            else
22882            :
22883            fi
22884            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
22885$as_echo_n "checking whether to enable mod_proxy_express... " >&6; }
22886            if test "$enable_proxy_express" = "no"; then
22887              if test "$_apmod_required" = "no"; then
22888                _apmod_extra_msg=" (disabled)"
22889              else
22890                as_fn_error $? "mod_proxy_express has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22891              fi
22892            fi
22893  fi
22894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_express$_apmod_extra_msg" >&5
22895$as_echo "$enable_proxy_express$_apmod_extra_msg" >&6; }
22896  if test "$enable_proxy_express" != "no"; then
22897    case "$enable_proxy_express" in
22898    static*)
22899      MODLIST="$MODLIST proxy_express"
22900      if test "proxy_express" = "so"; then
22901          sharedobjs=yes
22902      fi
22903      shared="";;
22904    *)
22905      enable_proxy_express=`echo $enable_proxy_express|sed 's/shared,*//'`
22906      sharedobjs=yes
22907      shared=yes
22908      DSO_MODULES="$DSO_MODULES proxy_express"
22909      if test "$proxy_mods_enable" = "yes" ; then
22910        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_express"
22911      fi
22912      ;;
22913    esac
22914
22915
22916  if test -z ""; then
22917    objects="mod_proxy_express.lo"
22918  else
22919    objects=""
22920  fi
22921
22922  if test -z "$module_standalone"; then
22923    if test -z "$shared"; then
22924      # The filename of a convenience library must have a "lib" prefix:
22925      libname="libmod_proxy_express.la"
22926      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22927      modpath_static="$modpath_static $libname"
22928      cat >>$modpath_current/modules.mk<<EOF
22929$libname: $objects
22930	\$(MOD_LINK) $objects \$(MOD_PROXY_EXPRESS_LDADD)
22931EOF
22932      if test ! -z "\$(MOD_PROXY_EXPRESS_LDADD)"; then
22933
22934  if test "x$AP_LIBS" = "x"; then
22935    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_EXPRESS_LDADD)\""
22936    AP_LIBS="\$(MOD_PROXY_EXPRESS_LDADD)"
22937  else
22938    apr_addto_bugger="\$(MOD_PROXY_EXPRESS_LDADD)"
22939    for i in $apr_addto_bugger; do
22940      apr_addto_duplicate="0"
22941      for j in $AP_LIBS; do
22942        if test "x$i" = "x$j"; then
22943          apr_addto_duplicate="1"
22944          break
22945        fi
22946      done
22947      if test $apr_addto_duplicate = "0"; then
22948        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22949        AP_LIBS="$AP_LIBS $i"
22950      fi
22951    done
22952  fi
22953
22954      fi
22955    else
22956      apache_need_shared=yes
22957      libname="mod_proxy_express.la"
22958      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22959      modpath_shared="$modpath_shared $libname"
22960      cat >>$modpath_current/modules.mk<<EOF
22961$libname: $shobjects
22962	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_EXPRESS_LDADD)
22963EOF
22964    fi
22965  fi
22966
22967
22968  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_EXPRESS_LDADD"
22969
22970
22971
22972  fi
22973
22974
22975
22976  if test "x$INCLUDES" = "x"; then
22977    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
22978    INCLUDES="-I\$(top_srcdir)/$modpath_current"
22979  else
22980    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
22981    for i in $apr_addto_bugger; do
22982      apr_addto_duplicate="0"
22983      for j in $INCLUDES; do
22984        if test "x$i" = "x$j"; then
22985          apr_addto_duplicate="1"
22986          break
22987        fi
22988      done
22989      if test $apr_addto_duplicate = "0"; then
22990        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
22991        INCLUDES="$INCLUDES $i"
22992      fi
22993    done
22994  fi
22995
22996
22997
22998  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
22999  echo "static = $modpath_static" >> $modpath_current/modules.mk
23000  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
23001  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23002    if eval val=\"\$MOD_$var\"; test -n "$val"; then
23003      echo "MOD_$var = $val" >> $modpath_current/modules.mk
23004    fi
23005  done
23006  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
23007    MODULE_DIRS="$MODULE_DIRS $current_dir"
23008  else
23009    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
23010  fi
23011
23012  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
23013
23014
23015
23016
23017
23018if test -z "$enable_session" ; then
23019  session_mods_enable=most
23020else
23021  session_mods_enable=$enable_session
23022fi
23023
23024
23025
23026
23027  current_dir=session
23028  modpath_current=modules/session
23029  modpath_static=
23030  modpath_shared=
23031  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23032    eval MOD_$var=
23033  done
23034  test -d session || $srcdir/build/mkdir.sh $modpath_current
23035  > $modpath_current/modules.mk
23036
23037
23038session_cookie_objects='mod_session_cookie.lo'
23039session_crypto_objects='mod_session_crypto.lo'
23040session_dbd_objects='mod_session_dbd.lo'
23041
23042case "$host" in
23043  *os2*)
23044    # OS/2 DLLs must resolve all symbols at build time
23045    # and we need some from main session module
23046    session_cookie_objects="$session_cookie_objects mod_session.la"
23047    session_crypto_objects="$session_crypto_objects mod_session.la"
23048    session_dbd_objects="$session_dbd_objects mod_session.la"
23049    ;;
23050esac
23051
23052
23053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session" >&5
23054$as_echo_n "checking whether to enable mod_session... " >&6; }
23055    # Check whether --enable-session was given.
23056if test "${enable_session+set}" = set; then :
23057  enableval=$enable_session; force_session=$enableval
23058else
23059  enable_session=most
23060fi
23061
23062    _apmod_extra_msg=""
23063        case "$enable_session" in
23064    yes|static|shared)
23065      _apmod_required="yes"
23066      ;;
23067    *)
23068      case "$module_selection" in
23069      reallyall|all|most)
23070        _apmod_required="no"
23071        ;;
23072      *)
23073        _apmod_required="yes"
23074        ;;
23075      esac
23076  esac
23077  if test "$enable_session" = "static"; then
23078    enable_session=static
23079  elif test "$enable_session" = "yes"; then
23080    enable_session=$module_default
23081  elif test "$enable_session" = "most"; then
23082    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23083            "$module_selection" = "reallyall"
23084    then
23085      enable_session=$module_default
23086    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23087      enable_session=no
23088    fi
23089    _apmod_extra_msg=" ($module_selection)"
23090  elif test "$enable_session" = "maybe-all"; then
23091    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23092    then
23093      enable_session=$module_default
23094      _apmod_extra_msg=" ($module_selection)"
23095    else
23096      enable_session=no
23097    fi
23098  elif test "$enable_session" = "no" -a "$module_selection" = "reallyall" -a \
23099            "$force_session" != "no" ; then
23100      enable_session=$module_default
23101      _apmod_extra_msg=" ($module_selection)"
23102  fi
23103  if test "$enable_session" != "no"; then
23104            :
23105  fi
23106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session$_apmod_extra_msg" >&5
23107$as_echo "$enable_session$_apmod_extra_msg" >&6; }
23108  if test "$enable_session" != "no"; then
23109    case "$enable_session" in
23110    static*)
23111      MODLIST="$MODLIST session"
23112      if test "session" = "so"; then
23113          sharedobjs=yes
23114      fi
23115      shared="";;
23116    *)
23117      enable_session=`echo $enable_session|sed 's/shared,*//'`
23118      sharedobjs=yes
23119      shared=yes
23120      DSO_MODULES="$DSO_MODULES session"
23121      if test "most" = "yes" ; then
23122        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session"
23123      fi
23124      ;;
23125    esac
23126
23127
23128  if test -z ""; then
23129    objects="mod_session.lo"
23130  else
23131    objects=""
23132  fi
23133
23134  if test -z "$module_standalone"; then
23135    if test -z "$shared"; then
23136      # The filename of a convenience library must have a "lib" prefix:
23137      libname="libmod_session.la"
23138      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23139      modpath_static="$modpath_static $libname"
23140      cat >>$modpath_current/modules.mk<<EOF
23141$libname: $objects
23142	\$(MOD_LINK) $objects \$(MOD_SESSION_LDADD)
23143EOF
23144      if test ! -z "\$(MOD_SESSION_LDADD)"; then
23145
23146  if test "x$AP_LIBS" = "x"; then
23147    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_LDADD)\""
23148    AP_LIBS="\$(MOD_SESSION_LDADD)"
23149  else
23150    apr_addto_bugger="\$(MOD_SESSION_LDADD)"
23151    for i in $apr_addto_bugger; do
23152      apr_addto_duplicate="0"
23153      for j in $AP_LIBS; do
23154        if test "x$i" = "x$j"; then
23155          apr_addto_duplicate="1"
23156          break
23157        fi
23158      done
23159      if test $apr_addto_duplicate = "0"; then
23160        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23161        AP_LIBS="$AP_LIBS $i"
23162      fi
23163    done
23164  fi
23165
23166      fi
23167    else
23168      apache_need_shared=yes
23169      libname="mod_session.la"
23170      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23171      modpath_shared="$modpath_shared $libname"
23172      cat >>$modpath_current/modules.mk<<EOF
23173$libname: $shobjects
23174	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_LDADD)
23175EOF
23176    fi
23177  fi
23178
23179
23180  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_LDADD"
23181
23182
23183
23184  fi
23185
23186
23187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
23188$as_echo_n "checking whether to enable mod_session_cookie... " >&6; }
23189    # Check whether --enable-session-cookie was given.
23190if test "${enable_session_cookie+set}" = set; then :
23191  enableval=$enable_session_cookie; force_session_cookie=$enableval
23192else
23193  enable_session_cookie=$session_mods_enable
23194fi
23195
23196    _apmod_extra_msg=""
23197        case "$enable_session_cookie" in
23198    yes|static|shared)
23199      _apmod_required="yes"
23200      ;;
23201    *)
23202      case "$module_selection" in
23203      reallyall|all|most)
23204        _apmod_required="no"
23205        ;;
23206      *)
23207        _apmod_required="yes"
23208        ;;
23209      esac
23210  esac
23211  if test "$enable_session_cookie" = "static"; then
23212    enable_session_cookie=static
23213  elif test "$enable_session_cookie" = "yes"; then
23214    enable_session_cookie=$module_default
23215  elif test "$enable_session_cookie" = "most"; then
23216    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23217            "$module_selection" = "reallyall"
23218    then
23219      enable_session_cookie=$module_default
23220    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23221      enable_session_cookie=no
23222    fi
23223    _apmod_extra_msg=" ($module_selection)"
23224  elif test "$enable_session_cookie" = "maybe-all"; then
23225    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23226    then
23227      enable_session_cookie=$module_default
23228      _apmod_extra_msg=" ($module_selection)"
23229    else
23230      enable_session_cookie=no
23231    fi
23232  elif test "$enable_session_cookie" = "no" -a "$module_selection" = "reallyall" -a \
23233            "$force_session_cookie" != "no" ; then
23234      enable_session_cookie=$module_default
23235      _apmod_extra_msg=" ($module_selection)"
23236  fi
23237  if test "$enable_session_cookie" != "no"; then
23238            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23239$as_echo "checking dependencies" >&6; }
23240            if test "$enable_session" = "no" ; then
23241                              enable_session_cookie=no
23242                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&5
23243$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&2;}
23244                            elif test "$enable_session_cookie" = "static" && test "$enable_session" != "static" ; then
23245                              enable_session_cookie=no
23246                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_cookie statically if mod_session is built shared\"" >&5
23247$as_echo "$as_me: WARNING: \"cannot build mod_session_cookie statically if mod_session is built shared\"" >&2;}
23248                            else
23249            :
23250            fi
23251            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
23252$as_echo_n "checking whether to enable mod_session_cookie... " >&6; }
23253            if test "$enable_session_cookie" = "no"; then
23254              if test "$_apmod_required" = "no"; then
23255                _apmod_extra_msg=" (disabled)"
23256              else
23257                as_fn_error $? "mod_session_cookie has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23258              fi
23259            fi
23260  fi
23261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_cookie$_apmod_extra_msg" >&5
23262$as_echo "$enable_session_cookie$_apmod_extra_msg" >&6; }
23263  if test "$enable_session_cookie" != "no"; then
23264    case "$enable_session_cookie" in
23265    static*)
23266      MODLIST="$MODLIST session_cookie"
23267      if test "session_cookie" = "so"; then
23268          sharedobjs=yes
23269      fi
23270      shared="";;
23271    *)
23272      enable_session_cookie=`echo $enable_session_cookie|sed 's/shared,*//'`
23273      sharedobjs=yes
23274      shared=yes
23275      DSO_MODULES="$DSO_MODULES session_cookie"
23276      if test "$session_mods_enable" = "yes" ; then
23277        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_cookie"
23278      fi
23279      ;;
23280    esac
23281
23282
23283  if test -z "$session_cookie_objects"; then
23284    objects="mod_session_cookie.lo"
23285  else
23286    objects="$session_cookie_objects"
23287  fi
23288
23289  if test -z "$module_standalone"; then
23290    if test -z "$shared"; then
23291      # The filename of a convenience library must have a "lib" prefix:
23292      libname="libmod_session_cookie.la"
23293      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23294      modpath_static="$modpath_static $libname"
23295      cat >>$modpath_current/modules.mk<<EOF
23296$libname: $objects
23297	\$(MOD_LINK) $objects \$(MOD_SESSION_COOKIE_LDADD)
23298EOF
23299      if test ! -z "\$(MOD_SESSION_COOKIE_LDADD)"; then
23300
23301  if test "x$AP_LIBS" = "x"; then
23302    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_COOKIE_LDADD)\""
23303    AP_LIBS="\$(MOD_SESSION_COOKIE_LDADD)"
23304  else
23305    apr_addto_bugger="\$(MOD_SESSION_COOKIE_LDADD)"
23306    for i in $apr_addto_bugger; do
23307      apr_addto_duplicate="0"
23308      for j in $AP_LIBS; do
23309        if test "x$i" = "x$j"; then
23310          apr_addto_duplicate="1"
23311          break
23312        fi
23313      done
23314      if test $apr_addto_duplicate = "0"; then
23315        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23316        AP_LIBS="$AP_LIBS $i"
23317      fi
23318    done
23319  fi
23320
23321      fi
23322    else
23323      apache_need_shared=yes
23324      libname="mod_session_cookie.la"
23325      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23326      modpath_shared="$modpath_shared $libname"
23327      cat >>$modpath_current/modules.mk<<EOF
23328$libname: $shobjects
23329	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_COOKIE_LDADD)
23330EOF
23331    fi
23332  fi
23333
23334
23335  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_COOKIE_LDADD"
23336
23337
23338
23339  fi
23340
23341
23342if test "$enable_session_crypto" != ""; then
23343  session_mods_enable_crypto=$enable_session_crypto
23344else
23345  session_mods_enable_crypto=$session_mods_enable
23346fi
23347if test "$session_mods_enable_crypto" != "no"; then
23348  saved_CPPFLAGS="$CPPFLAGS"
23349  CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
23350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351/* end confdefs.h.  */
23352#include <apr_crypto.h>
23353int
23354main ()
23355{
23356
23357#if APU_HAVE_CRYPTO == 0
23358#error no crypto support
23359#endif
23360
23361  ;
23362  return 0;
23363}
23364_ACEOF
23365if ac_fn_c_try_compile "$LINENO"; then :
23366  ap_HAVE_APR_CRYPTO="yes"
23367else
23368  ap_HAVE_APR_CRYPTO="no"
23369fi
23370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371  CPPFLAGS="$saved_CPPFLAGS"
23372  if test $ap_HAVE_APR_CRYPTO = "no"; then
23373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&5
23374$as_echo "$as_me: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&2;}
23375    if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then
23376        as_fn_error $? "mod_session_crypto cannot be enabled" "$LINENO" 5
23377    fi
23378    session_mods_enable_crypto="no"
23379  fi
23380fi
23381
23382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
23383$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
23384    # Check whether --enable-session-crypto was given.
23385if test "${enable_session_crypto+set}" = set; then :
23386  enableval=$enable_session_crypto; force_session_crypto=$enableval
23387else
23388  enable_session_crypto=$session_mods_enable_crypto
23389fi
23390
23391    _apmod_extra_msg=""
23392        case "$enable_session_crypto" in
23393    yes|static|shared)
23394      _apmod_required="yes"
23395      ;;
23396    *)
23397      case "$module_selection" in
23398      reallyall|all|most)
23399        _apmod_required="no"
23400        ;;
23401      *)
23402        _apmod_required="yes"
23403        ;;
23404      esac
23405  esac
23406  if test "$enable_session_crypto" = "static"; then
23407    enable_session_crypto=static
23408  elif test "$enable_session_crypto" = "yes"; then
23409    enable_session_crypto=$module_default
23410  elif test "$enable_session_crypto" = "most"; then
23411    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23412            "$module_selection" = "reallyall"
23413    then
23414      enable_session_crypto=$module_default
23415    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23416      enable_session_crypto=no
23417    fi
23418    _apmod_extra_msg=" ($module_selection)"
23419  elif test "$enable_session_crypto" = "maybe-all"; then
23420    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23421    then
23422      enable_session_crypto=$module_default
23423      _apmod_extra_msg=" ($module_selection)"
23424    else
23425      enable_session_crypto=no
23426    fi
23427  elif test "$enable_session_crypto" = "no" -a "$module_selection" = "reallyall" -a \
23428            "$force_session_crypto" != "no" ; then
23429      enable_session_crypto=$module_default
23430      _apmod_extra_msg=" ($module_selection)"
23431  fi
23432  if test "$enable_session_crypto" != "no"; then
23433            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23434$as_echo "checking dependencies" >&6; }
23435            if test "$enable_session" = "no" ; then
23436                              enable_session_crypto=no
23437                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&5
23438$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&2;}
23439                            elif test "$enable_session_crypto" = "static" && test "$enable_session" != "static" ; then
23440                              enable_session_crypto=no
23441                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_crypto statically if mod_session is built shared\"" >&5
23442$as_echo "$as_me: WARNING: \"cannot build mod_session_crypto statically if mod_session is built shared\"" >&2;}
23443                            else
23444
23445if test "$session_mods_enable_crypto" = "no" ; then
23446  enable_session_crypto=no
23447fi
23448
23449            fi
23450            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
23451$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
23452            if test "$enable_session_crypto" = "no"; then
23453              if test "$_apmod_required" = "no"; then
23454                _apmod_extra_msg=" (disabled)"
23455              else
23456                as_fn_error $? "mod_session_crypto has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23457              fi
23458            fi
23459  fi
23460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_crypto$_apmod_extra_msg" >&5
23461$as_echo "$enable_session_crypto$_apmod_extra_msg" >&6; }
23462  if test "$enable_session_crypto" != "no"; then
23463    case "$enable_session_crypto" in
23464    static*)
23465      MODLIST="$MODLIST session_crypto"
23466      if test "session_crypto" = "so"; then
23467          sharedobjs=yes
23468      fi
23469      shared="";;
23470    *)
23471      enable_session_crypto=`echo $enable_session_crypto|sed 's/shared,*//'`
23472      sharedobjs=yes
23473      shared=yes
23474      DSO_MODULES="$DSO_MODULES session_crypto"
23475      if test "$session_mods_enable_crypto" = "yes" ; then
23476        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_crypto"
23477      fi
23478      ;;
23479    esac
23480
23481
23482  if test -z "$session_crypto_objects"; then
23483    objects="mod_session_crypto.lo"
23484  else
23485    objects="$session_crypto_objects"
23486  fi
23487
23488  if test -z "$module_standalone"; then
23489    if test -z "$shared"; then
23490      # The filename of a convenience library must have a "lib" prefix:
23491      libname="libmod_session_crypto.la"
23492      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23493      modpath_static="$modpath_static $libname"
23494      cat >>$modpath_current/modules.mk<<EOF
23495$libname: $objects
23496	\$(MOD_LINK) $objects \$(MOD_SESSION_CRYPTO_LDADD)
23497EOF
23498      if test ! -z "\$(MOD_SESSION_CRYPTO_LDADD)"; then
23499
23500  if test "x$AP_LIBS" = "x"; then
23501    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_CRYPTO_LDADD)\""
23502    AP_LIBS="\$(MOD_SESSION_CRYPTO_LDADD)"
23503  else
23504    apr_addto_bugger="\$(MOD_SESSION_CRYPTO_LDADD)"
23505    for i in $apr_addto_bugger; do
23506      apr_addto_duplicate="0"
23507      for j in $AP_LIBS; do
23508        if test "x$i" = "x$j"; then
23509          apr_addto_duplicate="1"
23510          break
23511        fi
23512      done
23513      if test $apr_addto_duplicate = "0"; then
23514        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23515        AP_LIBS="$AP_LIBS $i"
23516      fi
23517    done
23518  fi
23519
23520      fi
23521    else
23522      apache_need_shared=yes
23523      libname="mod_session_crypto.la"
23524      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23525      modpath_shared="$modpath_shared $libname"
23526      cat >>$modpath_current/modules.mk<<EOF
23527$libname: $shobjects
23528	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_CRYPTO_LDADD)
23529EOF
23530    fi
23531  fi
23532
23533
23534  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_CRYPTO_LDADD"
23535
23536
23537
23538  fi
23539
23540
23541
23542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
23543$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
23544    # Check whether --enable-session-dbd was given.
23545if test "${enable_session_dbd+set}" = set; then :
23546  enableval=$enable_session_dbd; force_session_dbd=$enableval
23547else
23548  enable_session_dbd=$session_mods_enable
23549fi
23550
23551    _apmod_extra_msg=""
23552        case "$enable_session_dbd" in
23553    yes|static|shared)
23554      _apmod_required="yes"
23555      ;;
23556    *)
23557      case "$module_selection" in
23558      reallyall|all|most)
23559        _apmod_required="no"
23560        ;;
23561      *)
23562        _apmod_required="yes"
23563        ;;
23564      esac
23565  esac
23566  if test "$enable_session_dbd" = "static"; then
23567    enable_session_dbd=static
23568  elif test "$enable_session_dbd" = "yes"; then
23569    enable_session_dbd=$module_default
23570  elif test "$enable_session_dbd" = "most"; then
23571    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23572            "$module_selection" = "reallyall"
23573    then
23574      enable_session_dbd=$module_default
23575    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23576      enable_session_dbd=no
23577    fi
23578    _apmod_extra_msg=" ($module_selection)"
23579  elif test "$enable_session_dbd" = "maybe-all"; then
23580    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23581    then
23582      enable_session_dbd=$module_default
23583      _apmod_extra_msg=" ($module_selection)"
23584    else
23585      enable_session_dbd=no
23586    fi
23587  elif test "$enable_session_dbd" = "no" -a "$module_selection" = "reallyall" -a \
23588            "$force_session_dbd" != "no" ; then
23589      enable_session_dbd=$module_default
23590      _apmod_extra_msg=" ($module_selection)"
23591  fi
23592  if test "$enable_session_dbd" != "no"; then
23593            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23594$as_echo "checking dependencies" >&6; }
23595            if test "$enable_session" = "no" ; then
23596                              enable_session_dbd=no
23597                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&5
23598$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&2;}
23599                            elif test "$enable_session_dbd" = "static" && test "$enable_session" != "static" ; then
23600                              enable_session_dbd=no
23601                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_dbd statically if mod_session is built shared\"" >&5
23602$as_echo "$as_me: WARNING: \"cannot build mod_session_dbd statically if mod_session is built shared\"" >&2;}
23603                            else
23604            :
23605            fi
23606            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
23607$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
23608            if test "$enable_session_dbd" = "no"; then
23609              if test "$_apmod_required" = "no"; then
23610                _apmod_extra_msg=" (disabled)"
23611              else
23612                as_fn_error $? "mod_session_dbd has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23613              fi
23614            fi
23615  fi
23616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_dbd$_apmod_extra_msg" >&5
23617$as_echo "$enable_session_dbd$_apmod_extra_msg" >&6; }
23618  if test "$enable_session_dbd" != "no"; then
23619    case "$enable_session_dbd" in
23620    static*)
23621      MODLIST="$MODLIST session_dbd"
23622      if test "session_dbd" = "so"; then
23623          sharedobjs=yes
23624      fi
23625      shared="";;
23626    *)
23627      enable_session_dbd=`echo $enable_session_dbd|sed 's/shared,*//'`
23628      sharedobjs=yes
23629      shared=yes
23630      DSO_MODULES="$DSO_MODULES session_dbd"
23631      if test "$session_mods_enable" = "yes" ; then
23632        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_dbd"
23633      fi
23634      ;;
23635    esac
23636
23637
23638  if test -z "$session_dbd_objects"; then
23639    objects="mod_session_dbd.lo"
23640  else
23641    objects="$session_dbd_objects"
23642  fi
23643
23644  if test -z "$module_standalone"; then
23645    if test -z "$shared"; then
23646      # The filename of a convenience library must have a "lib" prefix:
23647      libname="libmod_session_dbd.la"
23648      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23649      modpath_static="$modpath_static $libname"
23650      cat >>$modpath_current/modules.mk<<EOF
23651$libname: $objects
23652	\$(MOD_LINK) $objects \$(MOD_SESSION_DBD_LDADD)
23653EOF
23654      if test ! -z "\$(MOD_SESSION_DBD_LDADD)"; then
23655
23656  if test "x$AP_LIBS" = "x"; then
23657    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_DBD_LDADD)\""
23658    AP_LIBS="\$(MOD_SESSION_DBD_LDADD)"
23659  else
23660    apr_addto_bugger="\$(MOD_SESSION_DBD_LDADD)"
23661    for i in $apr_addto_bugger; do
23662      apr_addto_duplicate="0"
23663      for j in $AP_LIBS; do
23664        if test "x$i" = "x$j"; then
23665          apr_addto_duplicate="1"
23666          break
23667        fi
23668      done
23669      if test $apr_addto_duplicate = "0"; then
23670        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23671        AP_LIBS="$AP_LIBS $i"
23672      fi
23673    done
23674  fi
23675
23676      fi
23677    else
23678      apache_need_shared=yes
23679      libname="mod_session_dbd.la"
23680      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23681      modpath_shared="$modpath_shared $libname"
23682      cat >>$modpath_current/modules.mk<<EOF
23683$libname: $shobjects
23684	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_DBD_LDADD)
23685EOF
23686    fi
23687  fi
23688
23689
23690  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_DBD_LDADD"
23691
23692
23693
23694  fi
23695
23696
23697
23698  if test "x$INCLUDES" = "x"; then
23699    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
23700    INCLUDES="-I\$(top_srcdir)/$modpath_current"
23701  else
23702    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
23703    for i in $apr_addto_bugger; do
23704      apr_addto_duplicate="0"
23705      for j in $INCLUDES; do
23706        if test "x$i" = "x$j"; then
23707          apr_addto_duplicate="1"
23708          break
23709        fi
23710      done
23711      if test $apr_addto_duplicate = "0"; then
23712        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
23713        INCLUDES="$INCLUDES $i"
23714      fi
23715    done
23716  fi
23717
23718
23719
23720  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
23721  echo "static = $modpath_static" >> $modpath_current/modules.mk
23722  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
23723  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23724    if eval val=\"\$MOD_$var\"; test -n "$val"; then
23725      echo "MOD_$var = $val" >> $modpath_current/modules.mk
23726    fi
23727  done
23728  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
23729    MODULE_DIRS="$MODULE_DIRS $current_dir"
23730  else
23731    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
23732  fi
23733
23734  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
23735
23736
23737
23738
23739
23740
23741
23742  current_dir=slotmem
23743  modpath_current=modules/slotmem
23744  modpath_static=
23745  modpath_shared=
23746  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23747    eval MOD_$var=
23748  done
23749  test -d slotmem || $srcdir/build/mkdir.sh $modpath_current
23750  > $modpath_current/modules.mk
23751
23752
23753
23754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_shm" >&5
23755$as_echo_n "checking whether to enable mod_slotmem_shm... " >&6; }
23756    # Check whether --enable-slotmem-shm was given.
23757if test "${enable_slotmem_shm+set}" = set; then :
23758  enableval=$enable_slotmem_shm; force_slotmem_shm=$enableval
23759else
23760  enable_slotmem_shm=most
23761fi
23762
23763    _apmod_extra_msg=""
23764        case "$enable_slotmem_shm" in
23765    yes|static|shared)
23766      _apmod_required="yes"
23767      ;;
23768    *)
23769      case "$module_selection" in
23770      reallyall|all|most)
23771        _apmod_required="no"
23772        ;;
23773      *)
23774        _apmod_required="yes"
23775        ;;
23776      esac
23777  esac
23778  if test "$enable_slotmem_shm" = "static"; then
23779    enable_slotmem_shm=static
23780  elif test "$enable_slotmem_shm" = "yes"; then
23781    enable_slotmem_shm=$module_default
23782  elif test "$enable_slotmem_shm" = "most"; then
23783    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23784            "$module_selection" = "reallyall"
23785    then
23786      enable_slotmem_shm=$module_default
23787    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23788      enable_slotmem_shm=no
23789    fi
23790    _apmod_extra_msg=" ($module_selection)"
23791  elif test "$enable_slotmem_shm" = "maybe-all"; then
23792    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23793    then
23794      enable_slotmem_shm=$module_default
23795      _apmod_extra_msg=" ($module_selection)"
23796    else
23797      enable_slotmem_shm=no
23798    fi
23799  elif test "$enable_slotmem_shm" = "no" -a "$module_selection" = "reallyall" -a \
23800            "$force_slotmem_shm" != "no" ; then
23801      enable_slotmem_shm=$module_default
23802      _apmod_extra_msg=" ($module_selection)"
23803  fi
23804  if test "$enable_slotmem_shm" != "no"; then
23805            :
23806  fi
23807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_shm$_apmod_extra_msg" >&5
23808$as_echo "$enable_slotmem_shm$_apmod_extra_msg" >&6; }
23809  if test "$enable_slotmem_shm" != "no"; then
23810    case "$enable_slotmem_shm" in
23811    static*)
23812      MODLIST="$MODLIST slotmem_shm"
23813      if test "slotmem_shm" = "so"; then
23814          sharedobjs=yes
23815      fi
23816      shared="";;
23817    *)
23818      enable_slotmem_shm=`echo $enable_slotmem_shm|sed 's/shared,*//'`
23819      sharedobjs=yes
23820      shared=yes
23821      DSO_MODULES="$DSO_MODULES slotmem_shm"
23822      if test "$_apmod_required" = "yes" ; then
23823        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_shm"
23824      fi
23825      ;;
23826    esac
23827
23828
23829  if test -z ""; then
23830    objects="mod_slotmem_shm.lo"
23831  else
23832    objects=""
23833  fi
23834
23835  if test -z "$module_standalone"; then
23836    if test -z "$shared"; then
23837      # The filename of a convenience library must have a "lib" prefix:
23838      libname="libmod_slotmem_shm.la"
23839      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23840      modpath_static="$modpath_static $libname"
23841      cat >>$modpath_current/modules.mk<<EOF
23842$libname: $objects
23843	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_SHM_LDADD)
23844EOF
23845      if test ! -z "\$(MOD_SLOTMEM_SHM_LDADD)"; then
23846
23847  if test "x$AP_LIBS" = "x"; then
23848    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_SHM_LDADD)\""
23849    AP_LIBS="\$(MOD_SLOTMEM_SHM_LDADD)"
23850  else
23851    apr_addto_bugger="\$(MOD_SLOTMEM_SHM_LDADD)"
23852    for i in $apr_addto_bugger; do
23853      apr_addto_duplicate="0"
23854      for j in $AP_LIBS; do
23855        if test "x$i" = "x$j"; then
23856          apr_addto_duplicate="1"
23857          break
23858        fi
23859      done
23860      if test $apr_addto_duplicate = "0"; then
23861        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23862        AP_LIBS="$AP_LIBS $i"
23863      fi
23864    done
23865  fi
23866
23867      fi
23868    else
23869      apache_need_shared=yes
23870      libname="mod_slotmem_shm.la"
23871      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23872      modpath_shared="$modpath_shared $libname"
23873      cat >>$modpath_current/modules.mk<<EOF
23874$libname: $shobjects
23875	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_SHM_LDADD)
23876EOF
23877    fi
23878  fi
23879
23880
23881  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_SHM_LDADD"
23882
23883
23884
23885  fi
23886
23887
23888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_plain" >&5
23889$as_echo_n "checking whether to enable mod_slotmem_plain... " >&6; }
23890    # Check whether --enable-slotmem-plain was given.
23891if test "${enable_slotmem_plain+set}" = set; then :
23892  enableval=$enable_slotmem_plain; force_slotmem_plain=$enableval
23893else
23894  enable_slotmem_plain=maybe-all
23895fi
23896
23897    _apmod_extra_msg=""
23898        case "$enable_slotmem_plain" in
23899    yes|static|shared)
23900      _apmod_required="yes"
23901      ;;
23902    *)
23903      case "$module_selection" in
23904      reallyall|all|most)
23905        _apmod_required="no"
23906        ;;
23907      *)
23908        _apmod_required="yes"
23909        ;;
23910      esac
23911  esac
23912  if test "$enable_slotmem_plain" = "static"; then
23913    enable_slotmem_plain=static
23914  elif test "$enable_slotmem_plain" = "yes"; then
23915    enable_slotmem_plain=$module_default
23916  elif test "$enable_slotmem_plain" = "most"; then
23917    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23918            "$module_selection" = "reallyall"
23919    then
23920      enable_slotmem_plain=$module_default
23921    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23922      enable_slotmem_plain=no
23923    fi
23924    _apmod_extra_msg=" ($module_selection)"
23925  elif test "$enable_slotmem_plain" = "maybe-all"; then
23926    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23927    then
23928      enable_slotmem_plain=$module_default
23929      _apmod_extra_msg=" ($module_selection)"
23930    else
23931      enable_slotmem_plain=no
23932    fi
23933  elif test "$enable_slotmem_plain" = "no" -a "$module_selection" = "reallyall" -a \
23934            "$force_slotmem_plain" != "no" ; then
23935      enable_slotmem_plain=$module_default
23936      _apmod_extra_msg=" ($module_selection)"
23937  fi
23938  if test "$enable_slotmem_plain" != "no"; then
23939            :
23940  fi
23941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_plain$_apmod_extra_msg" >&5
23942$as_echo "$enable_slotmem_plain$_apmod_extra_msg" >&6; }
23943  if test "$enable_slotmem_plain" != "no"; then
23944    case "$enable_slotmem_plain" in
23945    static*)
23946      MODLIST="$MODLIST slotmem_plain"
23947      if test "slotmem_plain" = "so"; then
23948          sharedobjs=yes
23949      fi
23950      shared="";;
23951    *)
23952      enable_slotmem_plain=`echo $enable_slotmem_plain|sed 's/shared,*//'`
23953      sharedobjs=yes
23954      shared=yes
23955      DSO_MODULES="$DSO_MODULES slotmem_plain"
23956      if test "" = "yes" ; then
23957        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_plain"
23958      fi
23959      ;;
23960    esac
23961
23962
23963  if test -z ""; then
23964    objects="mod_slotmem_plain.lo"
23965  else
23966    objects=""
23967  fi
23968
23969  if test -z "$module_standalone"; then
23970    if test -z "$shared"; then
23971      # The filename of a convenience library must have a "lib" prefix:
23972      libname="libmod_slotmem_plain.la"
23973      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23974      modpath_static="$modpath_static $libname"
23975      cat >>$modpath_current/modules.mk<<EOF
23976$libname: $objects
23977	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
23978EOF
23979      if test ! -z "\$(MOD_SLOTMEM_PLAIN_LDADD)"; then
23980
23981  if test "x$AP_LIBS" = "x"; then
23982    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_PLAIN_LDADD)\""
23983    AP_LIBS="\$(MOD_SLOTMEM_PLAIN_LDADD)"
23984  else
23985    apr_addto_bugger="\$(MOD_SLOTMEM_PLAIN_LDADD)"
23986    for i in $apr_addto_bugger; do
23987      apr_addto_duplicate="0"
23988      for j in $AP_LIBS; do
23989        if test "x$i" = "x$j"; then
23990          apr_addto_duplicate="1"
23991          break
23992        fi
23993      done
23994      if test $apr_addto_duplicate = "0"; then
23995        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23996        AP_LIBS="$AP_LIBS $i"
23997      fi
23998    done
23999  fi
24000
24001      fi
24002    else
24003      apache_need_shared=yes
24004      libname="mod_slotmem_plain.la"
24005      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
24006      modpath_shared="$modpath_shared $libname"
24007      cat >>$modpath_current/modules.mk<<EOF
24008$libname: $shobjects
24009	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
24010EOF
24011    fi
24012  fi
24013
24014
24015  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_PLAIN_LDADD"
24016
24017
24018
24019  fi
24020
24021
24022
24023  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
24024  echo "static = $modpath_static" >> $modpath_current/modules.mk
24025  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
24026  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24027    if eval val=\"\$MOD_$var\"; test -n "$val"; then
24028      echo "MOD_$var = $val" >> $modpath_current/modules.mk
24029    fi
24030  done
24031  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
24032    MODULE_DIRS="$MODULE_DIRS $current_dir"
24033  else
24034    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
24035  fi
24036
24037  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
24038
24039
24040
24041
24042
24043  current_dir=ssl
24044  modpath_current=modules/ssl
24045  modpath_static=
24046  modpath_shared=
24047  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24048    eval MOD_$var=
24049  done
24050  test -d ssl || $srcdir/build/mkdir.sh $modpath_current
24051  > $modpath_current/modules.mk
24052
24053
24054ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_scache.lo ssl_util_stapling.lo ssl_util.lo ssl_util_ssl.lo ssl_engine_ocsp.lo ssl_util_ocsp.lo "
24055
24056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
24057$as_echo_n "checking whether to enable mod_ssl... " >&6; }
24058    # Check whether --enable-ssl was given.
24059if test "${enable_ssl+set}" = set; then :
24060  enableval=$enable_ssl; force_ssl=$enableval
24061else
24062  enable_ssl=most
24063fi
24064
24065    _apmod_extra_msg=""
24066        case "$enable_ssl" in
24067    yes|static|shared)
24068      _apmod_required="yes"
24069      ;;
24070    *)
24071      case "$module_selection" in
24072      reallyall|all|most)
24073        _apmod_required="no"
24074        ;;
24075      *)
24076        _apmod_required="yes"
24077        ;;
24078      esac
24079  esac
24080  if test "$enable_ssl" = "static"; then
24081    enable_ssl=static
24082  elif test "$enable_ssl" = "yes"; then
24083    enable_ssl=$module_default
24084  elif test "$enable_ssl" = "most"; then
24085    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24086            "$module_selection" = "reallyall"
24087    then
24088      enable_ssl=$module_default
24089    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24090      enable_ssl=no
24091    fi
24092    _apmod_extra_msg=" ($module_selection)"
24093  elif test "$enable_ssl" = "maybe-all"; then
24094    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24095    then
24096      enable_ssl=$module_default
24097      _apmod_extra_msg=" ($module_selection)"
24098    else
24099      enable_ssl=no
24100    fi
24101  elif test "$enable_ssl" = "no" -a "$module_selection" = "reallyall" -a \
24102            "$force_ssl" != "no" ; then
24103      enable_ssl=$module_default
24104      _apmod_extra_msg=" ($module_selection)"
24105  fi
24106  if test "$enable_ssl" != "no"; then
24107            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
24108$as_echo "checking dependencies" >&6; }
24109            :
24110
24111
24112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
24113$as_echo_n "checking for OpenSSL... " >&6; }
24114if ${ac_cv_openssl+:} false; then :
24115  $as_echo_n "(cached) " >&6
24116else
24117
24118        ac_cv_openssl=no
24119    ap_openssl_found=""
24120    ap_openssl_base=""
24121    ap_openssl_libs=""
24122
24123        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
24124$as_echo_n "checking for user-provided OpenSSL base directory... " >&6; }
24125
24126# Check whether --with-ssl was given.
24127if test "${with_ssl+set}" = set; then :
24128  withval=$with_ssl;
24129            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
24130                ap_openssl_base="`cd $withval ; pwd`"
24131      fi
24132
24133fi
24134
24135    if test "x$ap_openssl_base" = "x"; then
24136      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
24137$as_echo "none" >&6; }
24138    else
24139      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
24140$as_echo "$ap_openssl_base" >&6; }
24141    fi
24142
24143        saved_CPPFLAGS="$CPPFLAGS"
24144    saved_LIBS="$LIBS"
24145    saved_LDFLAGS="$LDFLAGS"
24146
24147        if test -n "$PKGCONFIG"; then
24148      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24149      if test "x$ap_openssl_base" != "x" -a \
24150              -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
24151                        PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
24152        export PKG_CONFIG_PATH
24153      fi
24154      # Check whether --enable-ssl-staticlib-deps was given.
24155if test "${enable_ssl_staticlib_deps+set}" = set; then :
24156  enableval=$enable_ssl_staticlib_deps;
24157        if test "$enableval" = "yes"; then
24158          PKGCONFIG_LIBOPTS="--static"
24159        fi
24160
24161fi
24162
24163      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
24164      if test $? -eq 0; then
24165        ap_openssl_found="yes"
24166        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"
24167
24168  if test "x$CPPFLAGS" = "x"; then
24169    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
24170    CPPFLAGS="$pkglookup"
24171  else
24172    apr_addto_bugger="$pkglookup"
24173    for i in $apr_addto_bugger; do
24174      apr_addto_duplicate="0"
24175      for j in $CPPFLAGS; do
24176        if test "x$i" = "x$j"; then
24177          apr_addto_duplicate="1"
24178          break
24179        fi
24180      done
24181      if test $apr_addto_duplicate = "0"; then
24182        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24183        CPPFLAGS="$CPPFLAGS $i"
24184      fi
24185    done
24186  fi
24187
24188
24189  if test "x$MOD_CFLAGS" = "x"; then
24190    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
24191    MOD_CFLAGS="$pkglookup"
24192  else
24193    apr_addto_bugger="$pkglookup"
24194    for i in $apr_addto_bugger; do
24195      apr_addto_duplicate="0"
24196      for j in $MOD_CFLAGS; do
24197        if test "x$i" = "x$j"; then
24198          apr_addto_duplicate="1"
24199          break
24200        fi
24201      done
24202      if test $apr_addto_duplicate = "0"; then
24203        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
24204        MOD_CFLAGS="$MOD_CFLAGS $i"
24205      fi
24206    done
24207  fi
24208
24209
24210  if test "x$ab_CFLAGS" = "x"; then
24211    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
24212    ab_CFLAGS="$pkglookup"
24213  else
24214    apr_addto_bugger="$pkglookup"
24215    for i in $apr_addto_bugger; do
24216      apr_addto_duplicate="0"
24217      for j in $ab_CFLAGS; do
24218        if test "x$i" = "x$j"; then
24219          apr_addto_duplicate="1"
24220          break
24221        fi
24222      done
24223      if test $apr_addto_duplicate = "0"; then
24224        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
24225        ab_CFLAGS="$ab_CFLAGS $i"
24226      fi
24227    done
24228  fi
24229
24230        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"
24231
24232  if test "x$LDFLAGS" = "x"; then
24233    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
24234    LDFLAGS="$pkglookup"
24235  else
24236    apr_addto_bugger="$pkglookup"
24237    for i in $apr_addto_bugger; do
24238      apr_addto_duplicate="0"
24239      for j in $LDFLAGS; do
24240        if test "x$i" = "x$j"; then
24241          apr_addto_duplicate="1"
24242          break
24243        fi
24244      done
24245      if test $apr_addto_duplicate = "0"; then
24246        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24247        LDFLAGS="$LDFLAGS $i"
24248      fi
24249    done
24250  fi
24251
24252
24253  if test "x$MOD_LDFLAGS" = "x"; then
24254    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
24255    MOD_LDFLAGS="$pkglookup"
24256  else
24257    apr_addto_bugger="$pkglookup"
24258    for i in $apr_addto_bugger; do
24259      apr_addto_duplicate="0"
24260      for j in $MOD_LDFLAGS; do
24261        if test "x$i" = "x$j"; then
24262          apr_addto_duplicate="1"
24263          break
24264        fi
24265      done
24266      if test $apr_addto_duplicate = "0"; then
24267        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24268        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24269      fi
24270    done
24271  fi
24272
24273        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"
24274
24275  if test "x$LDFLAGS" = "x"; then
24276    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
24277    LDFLAGS="$pkglookup"
24278  else
24279    apr_addto_bugger="$pkglookup"
24280    for i in $apr_addto_bugger; do
24281      apr_addto_duplicate="0"
24282      for j in $LDFLAGS; do
24283        if test "x$i" = "x$j"; then
24284          apr_addto_duplicate="1"
24285          break
24286        fi
24287      done
24288      if test $apr_addto_duplicate = "0"; then
24289        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24290        LDFLAGS="$LDFLAGS $i"
24291      fi
24292    done
24293  fi
24294
24295
24296  if test "x$MOD_LDFLAGS" = "x"; then
24297    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
24298    MOD_LDFLAGS="$pkglookup"
24299  else
24300    apr_addto_bugger="$pkglookup"
24301    for i in $apr_addto_bugger; do
24302      apr_addto_duplicate="0"
24303      for j in $MOD_LDFLAGS; do
24304        if test "x$i" = "x$j"; then
24305          apr_addto_duplicate="1"
24306          break
24307        fi
24308      done
24309      if test $apr_addto_duplicate = "0"; then
24310        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24311        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24312      fi
24313    done
24314  fi
24315
24316      fi
24317      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
24318    fi
24319
24320        if test "x$ap_openssl_base" != "x" -a "x$ap_openssl_found" = "x"; then
24321
24322  if test "x$CPPFLAGS" = "x"; then
24323    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_openssl_base/include\""
24324    CPPFLAGS="-I$ap_openssl_base/include"
24325  else
24326    apr_addto_bugger="-I$ap_openssl_base/include"
24327    for i in $apr_addto_bugger; do
24328      apr_addto_duplicate="0"
24329      for j in $CPPFLAGS; do
24330        if test "x$i" = "x$j"; then
24331          apr_addto_duplicate="1"
24332          break
24333        fi
24334      done
24335      if test $apr_addto_duplicate = "0"; then
24336        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24337        CPPFLAGS="$CPPFLAGS $i"
24338      fi
24339    done
24340  fi
24341
24342
24343  if test "x$MOD_CFLAGS" = "x"; then
24344    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_openssl_base/include\""
24345    MOD_CFLAGS="-I$ap_openssl_base/include"
24346  else
24347    apr_addto_bugger="-I$ap_openssl_base/include"
24348    for i in $apr_addto_bugger; do
24349      apr_addto_duplicate="0"
24350      for j in $MOD_CFLAGS; do
24351        if test "x$i" = "x$j"; then
24352          apr_addto_duplicate="1"
24353          break
24354        fi
24355      done
24356      if test $apr_addto_duplicate = "0"; then
24357        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
24358        MOD_CFLAGS="$MOD_CFLAGS $i"
24359      fi
24360    done
24361  fi
24362
24363
24364  if test "x$ab_CFLAGS" = "x"; then
24365    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"-I$ap_openssl_base/include\""
24366    ab_CFLAGS="-I$ap_openssl_base/include"
24367  else
24368    apr_addto_bugger="-I$ap_openssl_base/include"
24369    for i in $apr_addto_bugger; do
24370      apr_addto_duplicate="0"
24371      for j in $ab_CFLAGS; do
24372        if test "x$i" = "x$j"; then
24373          apr_addto_duplicate="1"
24374          break
24375        fi
24376      done
24377      if test $apr_addto_duplicate = "0"; then
24378        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
24379        ab_CFLAGS="$ab_CFLAGS $i"
24380      fi
24381    done
24382  fi
24383
24384
24385  if test "x$LDFLAGS" = "x"; then
24386    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_openssl_base/lib\""
24387    LDFLAGS="-L$ap_openssl_base/lib"
24388  else
24389    apr_addto_bugger="-L$ap_openssl_base/lib"
24390    for i in $apr_addto_bugger; do
24391      apr_addto_duplicate="0"
24392      for j in $LDFLAGS; do
24393        if test "x$i" = "x$j"; then
24394          apr_addto_duplicate="1"
24395          break
24396        fi
24397      done
24398      if test $apr_addto_duplicate = "0"; then
24399        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24400        LDFLAGS="$LDFLAGS $i"
24401      fi
24402    done
24403  fi
24404
24405
24406  if test "x$MOD_LDFLAGS" = "x"; then
24407    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_openssl_base/lib\""
24408    MOD_LDFLAGS="-L$ap_openssl_base/lib"
24409  else
24410    apr_addto_bugger="-L$ap_openssl_base/lib"
24411    for i in $apr_addto_bugger; do
24412      apr_addto_duplicate="0"
24413      for j in $MOD_LDFLAGS; do
24414        if test "x$i" = "x$j"; then
24415          apr_addto_duplicate="1"
24416          break
24417        fi
24418      done
24419      if test $apr_addto_duplicate = "0"; then
24420        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24421        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24422      fi
24423    done
24424  fi
24425
24426      if test "x$ap_platform_runtime_link_flag" != "x"; then
24427
24428  if test "x$LDFLAGS" = "x"; then
24429    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
24430    LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24431  else
24432    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24433    for i in $apr_addto_bugger; do
24434      apr_addto_duplicate="0"
24435      for j in $LDFLAGS; do
24436        if test "x$i" = "x$j"; then
24437          apr_addto_duplicate="1"
24438          break
24439        fi
24440      done
24441      if test $apr_addto_duplicate = "0"; then
24442        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24443        LDFLAGS="$LDFLAGS $i"
24444      fi
24445    done
24446  fi
24447
24448
24449  if test "x$MOD_LDFLAGS" = "x"; then
24450    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
24451    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24452  else
24453    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24454    for i in $apr_addto_bugger; do
24455      apr_addto_duplicate="0"
24456      for j in $MOD_LDFLAGS; do
24457        if test "x$i" = "x$j"; then
24458          apr_addto_duplicate="1"
24459          break
24460        fi
24461      done
24462      if test $apr_addto_duplicate = "0"; then
24463        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24464        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24465      fi
24466    done
24467  fi
24468
24469      fi
24470    fi
24471
24472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.8a" >&5
24473$as_echo_n "checking for OpenSSL version >= 0.9.8a... " >&6; }
24474    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24475/* end confdefs.h.  */
24476#include <openssl/opensslv.h>
24477int
24478main ()
24479{
24480
24481#if !defined(OPENSSL_VERSION_NUMBER)
24482#error "Missing OpenSSL version"
24483#endif
24484#if OPENSSL_VERSION_NUMBER < 0x0090801f
24485#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
24486#endif
24487  ;
24488  return 0;
24489}
24490_ACEOF
24491if ac_fn_c_try_compile "$LINENO"; then :
24492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
24493$as_echo "OK" >&6; }
24494       ac_cv_openssl=yes
24495else
24496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
24497$as_echo "FAILED" >&6; }
24498fi
24499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500
24501    if test "x$ac_cv_openssl" = "xyes"; then
24502      ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"
24503
24504  if test "x$MOD_LDFLAGS" = "x"; then
24505    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_libs\""
24506    MOD_LDFLAGS="$ap_openssl_libs"
24507  else
24508    apr_addto_bugger="$ap_openssl_libs"
24509    for i in $apr_addto_bugger; do
24510      apr_addto_duplicate="0"
24511      for j in $MOD_LDFLAGS; do
24512        if test "x$i" = "x$j"; then
24513          apr_addto_duplicate="1"
24514          break
24515        fi
24516      done
24517      if test $apr_addto_duplicate = "0"; then
24518        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24519        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24520      fi
24521    done
24522  fi
24523
24524
24525  if test "x$LIBS" = "x"; then
24526    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_openssl_libs\""
24527    LIBS="$ap_openssl_libs"
24528  else
24529    apr_addto_bugger="$ap_openssl_libs"
24530    for i in $apr_addto_bugger; do
24531      apr_addto_duplicate="0"
24532      for j in $LIBS; do
24533        if test "x$i" = "x$j"; then
24534          apr_addto_duplicate="1"
24535          break
24536        fi
24537      done
24538      if test $apr_addto_duplicate = "0"; then
24539        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24540        LIBS="$LIBS $i"
24541      fi
24542    done
24543  fi
24544
24545
24546  test "x$silent" != "xyes" && echo "  forcing ab_LDFLAGS to \"$MOD_LDFLAGS\""
24547  ab_LDFLAGS="$MOD_LDFLAGS"
24548
24549
24550  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_CFLAGS"
24551
24552
24553
24554  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LDFLAGS"
24555
24556
24557
24558            liberrors=""
24559      for ac_header in openssl/engine.h
24560do :
24561  ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
24562if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
24563  cat >>confdefs.h <<_ACEOF
24564#define HAVE_OPENSSL_ENGINE_H 1
24565_ACEOF
24566
24567fi
24568
24569done
24570
24571      for ac_func in SSLeay_version SSL_CTX_new
24572do :
24573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24576  cat >>confdefs.h <<_ACEOF
24577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24578_ACEOF
24579
24580else
24581  liberrors="yes"
24582fi
24583done
24584
24585      for ac_func in ENGINE_init ENGINE_load_builtin_engines
24586do :
24587  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24589if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24590  cat >>confdefs.h <<_ACEOF
24591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24592_ACEOF
24593
24594fi
24595done
24596
24597      if test "x$liberrors" != "x"; then
24598        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL libraries are unusable" >&5
24599$as_echo "$as_me: WARNING: OpenSSL libraries are unusable" >&2;}
24600      fi
24601    else
24602      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL version is too old" >&5
24603$as_echo "$as_me: WARNING: OpenSSL version is too old" >&2;}
24604    fi
24605
24606        CPPFLAGS="$saved_CPPFLAGS"
24607    LIBS="$saved_LIBS"
24608    LDFLAGS="$saved_LDFLAGS"
24609
24610fi
24611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl" >&5
24612$as_echo "$ac_cv_openssl" >&6; }
24613  if test "x$ac_cv_openssl" = "xyes"; then
24614
24615$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
24616
24617  fi
24618
24619    if test "$ac_cv_openssl" = "yes" ; then
24620        if test "x$enable_ssl" = "xshared"; then
24621           # The only symbol which needs to be exported is the module
24622           # structure, so ask libtool to hide everything else:
24623
24624  if test "x$MOD_SSL_LDADD" = "x"; then
24625    test "x$silent" != "xyes" && echo "  setting MOD_SSL_LDADD to \"-export-symbols-regex ssl_module\""
24626    MOD_SSL_LDADD="-export-symbols-regex ssl_module"
24627  else
24628    apr_addto_bugger="-export-symbols-regex ssl_module"
24629    for i in $apr_addto_bugger; do
24630      apr_addto_duplicate="0"
24631      for j in $MOD_SSL_LDADD; do
24632        if test "x$i" = "x$j"; then
24633          apr_addto_duplicate="1"
24634          break
24635        fi
24636      done
24637      if test $apr_addto_duplicate = "0"; then
24638        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SSL_LDADD"
24639        MOD_SSL_LDADD="$MOD_SSL_LDADD $i"
24640      fi
24641    done
24642  fi
24643
24644        fi
24645    else
24646        enable_ssl=no
24647    fi
24648
24649            :
24650            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
24651$as_echo_n "checking whether to enable mod_ssl... " >&6; }
24652            if test "$enable_ssl" = "no"; then
24653              if test "$_apmod_required" = "no"; then
24654                _apmod_extra_msg=" (disabled)"
24655              else
24656                as_fn_error $? "mod_ssl has been requested but can not be built due to prerequisite failures" "$LINENO" 5
24657              fi
24658            fi
24659  fi
24660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ssl$_apmod_extra_msg" >&5
24661$as_echo "$enable_ssl$_apmod_extra_msg" >&6; }
24662  if test "$enable_ssl" != "no"; then
24663    case "$enable_ssl" in
24664    static*)
24665      MODLIST="$MODLIST ssl"
24666      if test "ssl" = "so"; then
24667          sharedobjs=yes
24668      fi
24669      shared="";;
24670    *)
24671      enable_ssl=`echo $enable_ssl|sed 's/shared,*//'`
24672      sharedobjs=yes
24673      shared=yes
24674      DSO_MODULES="$DSO_MODULES ssl"
24675      if test "most" = "yes" ; then
24676        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ssl"
24677      fi
24678      ;;
24679    esac
24680
24681
24682  if test -z "$ssl_objs"; then
24683    objects="mod_ssl.lo"
24684  else
24685    objects="$ssl_objs"
24686  fi
24687
24688  if test -z "$module_standalone"; then
24689    if test -z "$shared"; then
24690      # The filename of a convenience library must have a "lib" prefix:
24691      libname="libmod_ssl.la"
24692      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
24693      modpath_static="$modpath_static $libname"
24694      cat >>$modpath_current/modules.mk<<EOF
24695$libname: $objects
24696	\$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
24697EOF
24698      if test ! -z "\$(MOD_SSL_LDADD)"; then
24699
24700  if test "x$AP_LIBS" = "x"; then
24701    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SSL_LDADD)\""
24702    AP_LIBS="\$(MOD_SSL_LDADD)"
24703  else
24704    apr_addto_bugger="\$(MOD_SSL_LDADD)"
24705    for i in $apr_addto_bugger; do
24706      apr_addto_duplicate="0"
24707      for j in $AP_LIBS; do
24708        if test "x$i" = "x$j"; then
24709          apr_addto_duplicate="1"
24710          break
24711        fi
24712      done
24713      if test $apr_addto_duplicate = "0"; then
24714        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
24715        AP_LIBS="$AP_LIBS $i"
24716      fi
24717    done
24718  fi
24719
24720      fi
24721    else
24722      apache_need_shared=yes
24723      libname="mod_ssl.la"
24724      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
24725      modpath_shared="$modpath_shared $libname"
24726      cat >>$modpath_current/modules.mk<<EOF
24727$libname: $shobjects
24728	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SSL_LDADD)
24729EOF
24730    fi
24731  fi
24732
24733
24734  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"
24735
24736
24737
24738  fi
24739
24740
24741# Ensure that other modules can pick up mod_ssl.h
24742
24743  if test "x$INCLUDES" = "x"; then
24744    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
24745    INCLUDES="-I\$(top_srcdir)/$modpath_current"
24746  else
24747    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
24748    for i in $apr_addto_bugger; do
24749      apr_addto_duplicate="0"
24750      for j in $INCLUDES; do
24751        if test "x$i" = "x$j"; then
24752          apr_addto_duplicate="1"
24753          break
24754        fi
24755      done
24756      if test $apr_addto_duplicate = "0"; then
24757        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
24758        INCLUDES="$INCLUDES $i"
24759      fi
24760    done
24761  fi
24762
24763
24764
24765  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
24766  echo "static = $modpath_static" >> $modpath_current/modules.mk
24767  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
24768  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24769    if eval val=\"\$MOD_$var\"; test -n "$val"; then
24770      echo "MOD_$var = $val" >> $modpath_current/modules.mk
24771    fi
24772  done
24773  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
24774    MODULE_DIRS="$MODULE_DIRS $current_dir"
24775  else
24776    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
24777  fi
24778
24779  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
24780
24781
24782
24783
24784
24785
24786  current_dir=test
24787  modpath_current=modules/test
24788  modpath_static=
24789  modpath_shared=
24790  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24791    eval MOD_$var=
24792  done
24793  test -d test || $srcdir/build/mkdir.sh $modpath_current
24794  > $modpath_current/modules.mk
24795
24796
24797
24798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_export" >&5
24799$as_echo_n "checking whether to enable mod_optional_hook_export... " >&6; }
24800    # Check whether --enable-optional-hook-export was given.
24801if test "${enable_optional_hook_export+set}" = set; then :
24802  enableval=$enable_optional_hook_export; force_optional_hook_export=$enableval
24803else
24804  enable_optional_hook_export=no
24805fi
24806
24807    _apmod_extra_msg=""
24808        case "$enable_optional_hook_export" in
24809    yes|static|shared)
24810      _apmod_required="yes"
24811      ;;
24812    *)
24813      case "$module_selection" in
24814      reallyall|all|most)
24815        _apmod_required="no"
24816        ;;
24817      *)
24818        _apmod_required="yes"
24819        ;;
24820      esac
24821  esac
24822  if test "$enable_optional_hook_export" = "static"; then
24823    enable_optional_hook_export=static
24824  elif test "$enable_optional_hook_export" = "yes"; then
24825    enable_optional_hook_export=$module_default
24826  elif test "$enable_optional_hook_export" = "most"; then
24827    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24828            "$module_selection" = "reallyall"
24829    then
24830      enable_optional_hook_export=$module_default
24831    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24832      enable_optional_hook_export=no
24833    fi
24834    _apmod_extra_msg=" ($module_selection)"
24835  elif test "$enable_optional_hook_export" = "maybe-all"; then
24836    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24837    then
24838      enable_optional_hook_export=$module_default
24839      _apmod_extra_msg=" ($module_selection)"
24840    else
24841      enable_optional_hook_export=no
24842    fi
24843  elif test "$enable_optional_hook_export" = "no" -a "$module_selection" = "reallyall" -a \
24844            "$force_optional_hook_export" != "no" ; then
24845      enable_optional_hook_export=$module_default
24846      _apmod_extra_msg=" ($module_selection)"
24847  fi
24848  if test "$enable_optional_hook_export" != "no"; then
24849            :
24850  fi
24851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
24852$as_echo "$enable_optional_hook_export$_apmod_extra_msg" >&6; }
24853  if test "$enable_optional_hook_export" != "no"; then
24854    case "$enable_optional_hook_export" in
24855    static*)
24856      MODLIST="$MODLIST optional_hook_export"
24857      if test "optional_hook_export" = "so"; then
24858          sharedobjs=yes
24859      fi
24860      shared="";;
24861    *)
24862      enable_optional_hook_export=`echo $enable_optional_hook_export|sed 's/shared,*//'`
24863      sharedobjs=yes
24864      shared=yes
24865      DSO_MODULES="$DSO_MODULES optional_hook_export"
24866      if test "no" = "yes" ; then
24867        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_export"
24868      fi
24869      ;;
24870    esac
24871
24872
24873  if test -z ""; then
24874    objects="mod_optional_hook_export.lo"
24875  else
24876    objects=""
24877  fi
24878
24879  if test -z "$module_standalone"; then
24880    if test -z "$shared"; then
24881      # The filename of a convenience library must have a "lib" prefix:
24882      libname="libmod_optional_hook_export.la"
24883      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
24884      modpath_static="$modpath_static $libname"
24885      cat >>$modpath_current/modules.mk<<EOF
24886$libname: $objects
24887	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
24888EOF
24889      if test ! -z "\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"; then
24890
24891  if test "x$AP_LIBS" = "x"; then
24892    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)\""
24893    AP_LIBS="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
24894  else
24895    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
24896    for i in $apr_addto_bugger; do
24897      apr_addto_duplicate="0"
24898      for j in $AP_LIBS; do
24899        if test "x$i" = "x$j"; then
24900          apr_addto_duplicate="1"
24901          break
24902        fi
24903      done
24904      if test $apr_addto_duplicate = "0"; then
24905        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
24906        AP_LIBS="$AP_LIBS $i"
24907      fi
24908    done
24909  fi
24910
24911      fi
24912    else
24913      apache_need_shared=yes
24914      libname="mod_optional_hook_export.la"
24915      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
24916      modpath_shared="$modpath_shared $libname"
24917      cat >>$modpath_current/modules.mk<<EOF
24918$libname: $shobjects
24919	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
24920EOF
24921    fi
24922  fi
24923
24924
24925  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"
24926
24927
24928
24929  fi
24930
24931
24932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_import" >&5
24933$as_echo_n "checking whether to enable mod_optional_hook_import... " >&6; }
24934    # Check whether --enable-optional-hook-import was given.
24935if test "${enable_optional_hook_import+set}" = set; then :
24936  enableval=$enable_optional_hook_import; force_optional_hook_import=$enableval
24937else
24938  enable_optional_hook_import=no
24939fi
24940
24941    _apmod_extra_msg=""
24942        case "$enable_optional_hook_import" in
24943    yes|static|shared)
24944      _apmod_required="yes"
24945      ;;
24946    *)
24947      case "$module_selection" in
24948      reallyall|all|most)
24949        _apmod_required="no"
24950        ;;
24951      *)
24952        _apmod_required="yes"
24953        ;;
24954      esac
24955  esac
24956  if test "$enable_optional_hook_import" = "static"; then
24957    enable_optional_hook_import=static
24958  elif test "$enable_optional_hook_import" = "yes"; then
24959    enable_optional_hook_import=$module_default
24960  elif test "$enable_optional_hook_import" = "most"; then
24961    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24962            "$module_selection" = "reallyall"
24963    then
24964      enable_optional_hook_import=$module_default
24965    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24966      enable_optional_hook_import=no
24967    fi
24968    _apmod_extra_msg=" ($module_selection)"
24969  elif test "$enable_optional_hook_import" = "maybe-all"; then
24970    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24971    then
24972      enable_optional_hook_import=$module_default
24973      _apmod_extra_msg=" ($module_selection)"
24974    else
24975      enable_optional_hook_import=no
24976    fi
24977  elif test "$enable_optional_hook_import" = "no" -a "$module_selection" = "reallyall" -a \
24978            "$force_optional_hook_import" != "no" ; then
24979      enable_optional_hook_import=$module_default
24980      _apmod_extra_msg=" ($module_selection)"
24981  fi
24982  if test "$enable_optional_hook_import" != "no"; then
24983            :
24984  fi
24985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
24986$as_echo "$enable_optional_hook_import$_apmod_extra_msg" >&6; }
24987  if test "$enable_optional_hook_import" != "no"; then
24988    case "$enable_optional_hook_import" in
24989    static*)
24990      MODLIST="$MODLIST optional_hook_import"
24991      if test "optional_hook_import" = "so"; then
24992          sharedobjs=yes
24993      fi
24994      shared="";;
24995    *)
24996      enable_optional_hook_import=`echo $enable_optional_hook_import|sed 's/shared,*//'`
24997      sharedobjs=yes
24998      shared=yes
24999      DSO_MODULES="$DSO_MODULES optional_hook_import"
25000      if test "no" = "yes" ; then
25001        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_import"
25002      fi
25003      ;;
25004    esac
25005
25006
25007  if test -z ""; then
25008    objects="mod_optional_hook_import.lo"
25009  else
25010    objects=""
25011  fi
25012
25013  if test -z "$module_standalone"; then
25014    if test -z "$shared"; then
25015      # The filename of a convenience library must have a "lib" prefix:
25016      libname="libmod_optional_hook_import.la"
25017      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25018      modpath_static="$modpath_static $libname"
25019      cat >>$modpath_current/modules.mk<<EOF
25020$libname: $objects
25021	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
25022EOF
25023      if test ! -z "\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"; then
25024
25025  if test "x$AP_LIBS" = "x"; then
25026    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)\""
25027    AP_LIBS="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
25028  else
25029    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
25030    for i in $apr_addto_bugger; do
25031      apr_addto_duplicate="0"
25032      for j in $AP_LIBS; do
25033        if test "x$i" = "x$j"; then
25034          apr_addto_duplicate="1"
25035          break
25036        fi
25037      done
25038      if test $apr_addto_duplicate = "0"; then
25039        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25040        AP_LIBS="$AP_LIBS $i"
25041      fi
25042    done
25043  fi
25044
25045      fi
25046    else
25047      apache_need_shared=yes
25048      libname="mod_optional_hook_import.la"
25049      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25050      modpath_shared="$modpath_shared $libname"
25051      cat >>$modpath_current/modules.mk<<EOF
25052$libname: $shobjects
25053	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
25054EOF
25055    fi
25056  fi
25057
25058
25059  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"
25060
25061
25062
25063  fi
25064
25065
25066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_import" >&5
25067$as_echo_n "checking whether to enable mod_optional_fn_import... " >&6; }
25068    # Check whether --enable-optional-fn-import was given.
25069if test "${enable_optional_fn_import+set}" = set; then :
25070  enableval=$enable_optional_fn_import; force_optional_fn_import=$enableval
25071else
25072  enable_optional_fn_import=no
25073fi
25074
25075    _apmod_extra_msg=""
25076        case "$enable_optional_fn_import" in
25077    yes|static|shared)
25078      _apmod_required="yes"
25079      ;;
25080    *)
25081      case "$module_selection" in
25082      reallyall|all|most)
25083        _apmod_required="no"
25084        ;;
25085      *)
25086        _apmod_required="yes"
25087        ;;
25088      esac
25089  esac
25090  if test "$enable_optional_fn_import" = "static"; then
25091    enable_optional_fn_import=static
25092  elif test "$enable_optional_fn_import" = "yes"; then
25093    enable_optional_fn_import=$module_default
25094  elif test "$enable_optional_fn_import" = "most"; then
25095    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25096            "$module_selection" = "reallyall"
25097    then
25098      enable_optional_fn_import=$module_default
25099    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25100      enable_optional_fn_import=no
25101    fi
25102    _apmod_extra_msg=" ($module_selection)"
25103  elif test "$enable_optional_fn_import" = "maybe-all"; then
25104    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25105    then
25106      enable_optional_fn_import=$module_default
25107      _apmod_extra_msg=" ($module_selection)"
25108    else
25109      enable_optional_fn_import=no
25110    fi
25111  elif test "$enable_optional_fn_import" = "no" -a "$module_selection" = "reallyall" -a \
25112            "$force_optional_fn_import" != "no" ; then
25113      enable_optional_fn_import=$module_default
25114      _apmod_extra_msg=" ($module_selection)"
25115  fi
25116  if test "$enable_optional_fn_import" != "no"; then
25117            :
25118  fi
25119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
25120$as_echo "$enable_optional_fn_import$_apmod_extra_msg" >&6; }
25121  if test "$enable_optional_fn_import" != "no"; then
25122    case "$enable_optional_fn_import" in
25123    static*)
25124      MODLIST="$MODLIST optional_fn_import"
25125      if test "optional_fn_import" = "so"; then
25126          sharedobjs=yes
25127      fi
25128      shared="";;
25129    *)
25130      enable_optional_fn_import=`echo $enable_optional_fn_import|sed 's/shared,*//'`
25131      sharedobjs=yes
25132      shared=yes
25133      DSO_MODULES="$DSO_MODULES optional_fn_import"
25134      if test "no" = "yes" ; then
25135        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_import"
25136      fi
25137      ;;
25138    esac
25139
25140
25141  if test -z ""; then
25142    objects="mod_optional_fn_import.lo"
25143  else
25144    objects=""
25145  fi
25146
25147  if test -z "$module_standalone"; then
25148    if test -z "$shared"; then
25149      # The filename of a convenience library must have a "lib" prefix:
25150      libname="libmod_optional_fn_import.la"
25151      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25152      modpath_static="$modpath_static $libname"
25153      cat >>$modpath_current/modules.mk<<EOF
25154$libname: $objects
25155	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
25156EOF
25157      if test ! -z "\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"; then
25158
25159  if test "x$AP_LIBS" = "x"; then
25160    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_IMPORT_LDADD)\""
25161    AP_LIBS="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
25162  else
25163    apr_addto_bugger="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
25164    for i in $apr_addto_bugger; do
25165      apr_addto_duplicate="0"
25166      for j in $AP_LIBS; do
25167        if test "x$i" = "x$j"; then
25168          apr_addto_duplicate="1"
25169          break
25170        fi
25171      done
25172      if test $apr_addto_duplicate = "0"; then
25173        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25174        AP_LIBS="$AP_LIBS $i"
25175      fi
25176    done
25177  fi
25178
25179      fi
25180    else
25181      apache_need_shared=yes
25182      libname="mod_optional_fn_import.la"
25183      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25184      modpath_shared="$modpath_shared $libname"
25185      cat >>$modpath_current/modules.mk<<EOF
25186$libname: $shobjects
25187	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
25188EOF
25189    fi
25190  fi
25191
25192
25193  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"
25194
25195
25196
25197  fi
25198
25199
25200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_export" >&5
25201$as_echo_n "checking whether to enable mod_optional_fn_export... " >&6; }
25202    # Check whether --enable-optional-fn-export was given.
25203if test "${enable_optional_fn_export+set}" = set; then :
25204  enableval=$enable_optional_fn_export; force_optional_fn_export=$enableval
25205else
25206  enable_optional_fn_export=no
25207fi
25208
25209    _apmod_extra_msg=""
25210        case "$enable_optional_fn_export" in
25211    yes|static|shared)
25212      _apmod_required="yes"
25213      ;;
25214    *)
25215      case "$module_selection" in
25216      reallyall|all|most)
25217        _apmod_required="no"
25218        ;;
25219      *)
25220        _apmod_required="yes"
25221        ;;
25222      esac
25223  esac
25224  if test "$enable_optional_fn_export" = "static"; then
25225    enable_optional_fn_export=static
25226  elif test "$enable_optional_fn_export" = "yes"; then
25227    enable_optional_fn_export=$module_default
25228  elif test "$enable_optional_fn_export" = "most"; then
25229    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25230            "$module_selection" = "reallyall"
25231    then
25232      enable_optional_fn_export=$module_default
25233    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25234      enable_optional_fn_export=no
25235    fi
25236    _apmod_extra_msg=" ($module_selection)"
25237  elif test "$enable_optional_fn_export" = "maybe-all"; then
25238    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25239    then
25240      enable_optional_fn_export=$module_default
25241      _apmod_extra_msg=" ($module_selection)"
25242    else
25243      enable_optional_fn_export=no
25244    fi
25245  elif test "$enable_optional_fn_export" = "no" -a "$module_selection" = "reallyall" -a \
25246            "$force_optional_fn_export" != "no" ; then
25247      enable_optional_fn_export=$module_default
25248      _apmod_extra_msg=" ($module_selection)"
25249  fi
25250  if test "$enable_optional_fn_export" != "no"; then
25251            :
25252  fi
25253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
25254$as_echo "$enable_optional_fn_export$_apmod_extra_msg" >&6; }
25255  if test "$enable_optional_fn_export" != "no"; then
25256    case "$enable_optional_fn_export" in
25257    static*)
25258      MODLIST="$MODLIST optional_fn_export"
25259      if test "optional_fn_export" = "so"; then
25260          sharedobjs=yes
25261      fi
25262      shared="";;
25263    *)
25264      enable_optional_fn_export=`echo $enable_optional_fn_export|sed 's/shared,*//'`
25265      sharedobjs=yes
25266      shared=yes
25267      DSO_MODULES="$DSO_MODULES optional_fn_export"
25268      if test "no" = "yes" ; then
25269        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_export"
25270      fi
25271      ;;
25272    esac
25273
25274
25275  if test -z ""; then
25276    objects="mod_optional_fn_export.lo"
25277  else
25278    objects=""
25279  fi
25280
25281  if test -z "$module_standalone"; then
25282    if test -z "$shared"; then
25283      # The filename of a convenience library must have a "lib" prefix:
25284      libname="libmod_optional_fn_export.la"
25285      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25286      modpath_static="$modpath_static $libname"
25287      cat >>$modpath_current/modules.mk<<EOF
25288$libname: $objects
25289	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
25290EOF
25291      if test ! -z "\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"; then
25292
25293  if test "x$AP_LIBS" = "x"; then
25294    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_EXPORT_LDADD)\""
25295    AP_LIBS="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
25296  else
25297    apr_addto_bugger="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
25298    for i in $apr_addto_bugger; do
25299      apr_addto_duplicate="0"
25300      for j in $AP_LIBS; do
25301        if test "x$i" = "x$j"; then
25302          apr_addto_duplicate="1"
25303          break
25304        fi
25305      done
25306      if test $apr_addto_duplicate = "0"; then
25307        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25308        AP_LIBS="$AP_LIBS $i"
25309      fi
25310    done
25311  fi
25312
25313      fi
25314    else
25315      apache_need_shared=yes
25316      libname="mod_optional_fn_export.la"
25317      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25318      modpath_shared="$modpath_shared $libname"
25319      cat >>$modpath_current/modules.mk<<EOF
25320$libname: $shobjects
25321	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
25322EOF
25323    fi
25324  fi
25325
25326
25327  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"
25328
25329
25330
25331  fi
25332
25333
25334
25335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dialup" >&5
25336$as_echo_n "checking whether to enable mod_dialup... " >&6; }
25337    # Check whether --enable-dialup was given.
25338if test "${enable_dialup+set}" = set; then :
25339  enableval=$enable_dialup; force_dialup=$enableval
25340else
25341  enable_dialup=maybe-all
25342fi
25343
25344    _apmod_extra_msg=""
25345        case "$enable_dialup" in
25346    yes|static|shared)
25347      _apmod_required="yes"
25348      ;;
25349    *)
25350      case "$module_selection" in
25351      reallyall|all|most)
25352        _apmod_required="no"
25353        ;;
25354      *)
25355        _apmod_required="yes"
25356        ;;
25357      esac
25358  esac
25359  if test "$enable_dialup" = "static"; then
25360    enable_dialup=static
25361  elif test "$enable_dialup" = "yes"; then
25362    enable_dialup=$module_default
25363  elif test "$enable_dialup" = "most"; then
25364    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25365            "$module_selection" = "reallyall"
25366    then
25367      enable_dialup=$module_default
25368    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25369      enable_dialup=no
25370    fi
25371    _apmod_extra_msg=" ($module_selection)"
25372  elif test "$enable_dialup" = "maybe-all"; then
25373    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25374    then
25375      enable_dialup=$module_default
25376      _apmod_extra_msg=" ($module_selection)"
25377    else
25378      enable_dialup=no
25379    fi
25380  elif test "$enable_dialup" = "no" -a "$module_selection" = "reallyall" -a \
25381            "$force_dialup" != "no" ; then
25382      enable_dialup=$module_default
25383      _apmod_extra_msg=" ($module_selection)"
25384  fi
25385  if test "$enable_dialup" != "no"; then
25386            :
25387  fi
25388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dialup$_apmod_extra_msg" >&5
25389$as_echo "$enable_dialup$_apmod_extra_msg" >&6; }
25390  if test "$enable_dialup" != "no"; then
25391    case "$enable_dialup" in
25392    static*)
25393      MODLIST="$MODLIST dialup"
25394      if test "dialup" = "so"; then
25395          sharedobjs=yes
25396      fi
25397      shared="";;
25398    *)
25399      enable_dialup=`echo $enable_dialup|sed 's/shared,*//'`
25400      sharedobjs=yes
25401      shared=yes
25402      DSO_MODULES="$DSO_MODULES dialup"
25403      if test "" = "yes" ; then
25404        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dialup"
25405      fi
25406      ;;
25407    esac
25408
25409
25410  if test -z ""; then
25411    objects="mod_dialup.lo"
25412  else
25413    objects=""
25414  fi
25415
25416  if test -z "$module_standalone"; then
25417    if test -z "$shared"; then
25418      # The filename of a convenience library must have a "lib" prefix:
25419      libname="libmod_dialup.la"
25420      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25421      modpath_static="$modpath_static $libname"
25422      cat >>$modpath_current/modules.mk<<EOF
25423$libname: $objects
25424	\$(MOD_LINK) $objects \$(MOD_DIALUP_LDADD)
25425EOF
25426      if test ! -z "\$(MOD_DIALUP_LDADD)"; then
25427
25428  if test "x$AP_LIBS" = "x"; then
25429    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIALUP_LDADD)\""
25430    AP_LIBS="\$(MOD_DIALUP_LDADD)"
25431  else
25432    apr_addto_bugger="\$(MOD_DIALUP_LDADD)"
25433    for i in $apr_addto_bugger; do
25434      apr_addto_duplicate="0"
25435      for j in $AP_LIBS; do
25436        if test "x$i" = "x$j"; then
25437          apr_addto_duplicate="1"
25438          break
25439        fi
25440      done
25441      if test $apr_addto_duplicate = "0"; then
25442        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25443        AP_LIBS="$AP_LIBS $i"
25444      fi
25445    done
25446  fi
25447
25448      fi
25449    else
25450      apache_need_shared=yes
25451      libname="mod_dialup.la"
25452      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25453      modpath_shared="$modpath_shared $libname"
25454      cat >>$modpath_current/modules.mk<<EOF
25455$libname: $shobjects
25456	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIALUP_LDADD)
25457EOF
25458    fi
25459  fi
25460
25461
25462  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIALUP_LDADD"
25463
25464
25465
25466  fi
25467
25468
25469
25470  if test "x$INCLUDES" = "x"; then
25471    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
25472    INCLUDES="-I\$(top_srcdir)/$modpath_current"
25473  else
25474    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
25475    for i in $apr_addto_bugger; do
25476      apr_addto_duplicate="0"
25477      for j in $INCLUDES; do
25478        if test "x$i" = "x$j"; then
25479          apr_addto_duplicate="1"
25480          break
25481        fi
25482      done
25483      if test $apr_addto_duplicate = "0"; then
25484        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
25485        INCLUDES="$INCLUDES $i"
25486      fi
25487    done
25488  fi
25489
25490
25491
25492  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
25493  echo "static = $modpath_static" >> $modpath_current/modules.mk
25494  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
25495  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
25496    if eval val=\"\$MOD_$var\"; test -n "$val"; then
25497      echo "MOD_$var = $val" >> $modpath_current/modules.mk
25498    fi
25499  done
25500  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
25501    MODULE_DIRS="$MODULE_DIRS $current_dir"
25502  else
25503    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
25504  fi
25505
25506  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
25507
25508
25509
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target platform" >&5
25511$as_echo_n "checking for target platform... " >&6; }
25512
25513case $host in
25514*pc-os2-emx*)
25515  OS="os2"
25516  OS_DIR=$OS
25517  ;;
25518bs2000*)
25519  OS="unix"
25520  OS_DIR=$OS
25521  ;;
25522*cygwin*)
25523  OS="cygwin"
25524  OS_DIR="unix"
25525  ;;
25526*mingw32*)
25527  OS="win32"
25528  OS_DIR=$OS
25529  ;;
25530*)
25531  OS="unix"
25532  OS_DIR=$OS;;
25533esac
25534
25535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
25536$as_echo "$OS" >&6; }
25537
25538  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/${OS_DIR}/Makefile"
25539
25540
25541if test "$OS" = "os2" ; then
25542
25543  if test "x$CFLAGS" = "x"; then
25544    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-DOS2 -O2\""
25545    CFLAGS="-DOS2 -O2"
25546  else
25547    apr_addto_bugger="-DOS2 -O2"
25548    for i in $apr_addto_bugger; do
25549      apr_addto_duplicate="0"
25550      for j in $CFLAGS; do
25551        if test "x$i" = "x$j"; then
25552          apr_addto_duplicate="1"
25553          break
25554        fi
25555      done
25556      if test $apr_addto_duplicate = "0"; then
25557        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
25558        CFLAGS="$CFLAGS $i"
25559      fi
25560    done
25561  fi
25562
25563fi
25564
25565if test "$OS" = "unix" ; then
25566
25567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
25568$as_echo_n "checking for rlim_t... " >&6; }
25569if ${ac_cv_type_rlim_t+:} false; then :
25570  $as_echo_n "(cached) " >&6
25571else
25572
25573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574/* end confdefs.h.  */
25575
25576#include <sys/types.h>
25577#include <sys/time.h>
25578#include <sys/resource.h>
25579
25580int
25581main ()
25582{
25583rlim_t spoon;
25584  ;
25585  return 0;
25586}
25587_ACEOF
25588if ac_fn_c_try_compile "$LINENO"; then :
25589
25590      ac_cv_type_rlim_t=yes
25591
25592else
25593  ac_cv_type_rlim_t=no
25594
25595fi
25596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597
25598fi
25599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
25600$as_echo "$ac_cv_type_rlim_t" >&6; }
25601  if test "$ac_cv_type_rlim_t" = "no" ; then
25602
25603$as_echo "#define rlim_t int" >>confdefs.h
25604
25605  fi
25606
25607
25608    for ac_header in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
25609do :
25610  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25611ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25613  cat >>confdefs.h <<_ACEOF
25614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25615_ACEOF
25616
25617fi
25618
25619done
25620
25621
25622    for ac_func in setsid killpg
25623do :
25624  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25625ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25626if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25627  cat >>confdefs.h <<_ACEOF
25628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25629_ACEOF
25630
25631fi
25632done
25633
25634fi
25635
25636
25637
25638for ac_header in bstring.h unistd.h
25639do :
25640  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25643  cat >>confdefs.h <<_ACEOF
25644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25645_ACEOF
25646
25647fi
25648
25649done
25650
25651
25652
25653
25654for ac_func in syslog
25655do :
25656  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
25657if test "x$ac_cv_func_syslog" = xyes; then :
25658  cat >>confdefs.h <<_ACEOF
25659#define HAVE_SYSLOG 1
25660_ACEOF
25661
25662fi
25663done
25664
25665
25666    for ac_header in sys/times.h
25667do :
25668  ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
25669if test "x$ac_cv_header_sys_times_h" = xyes; then :
25670  cat >>confdefs.h <<_ACEOF
25671#define HAVE_SYS_TIMES_H 1
25672_ACEOF
25673
25674fi
25675
25676done
25677
25678    for ac_func in times
25679do :
25680  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
25681if test "x$ac_cv_func_times" = xyes; then :
25682  cat >>confdefs.h <<_ACEOF
25683#define HAVE_TIMES 1
25684_ACEOF
25685
25686fi
25687done
25688
25689
25690# util_expr needs header files in server source dir
25691
25692  if test "x$INCLUDES" = "x"; then
25693    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/server\""
25694    INCLUDES="-I\$(top_srcdir)/server"
25695  else
25696    apr_addto_bugger="-I\$(top_srcdir)/server"
25697    for i in $apr_addto_bugger; do
25698      apr_addto_duplicate="0"
25699      for j in $INCLUDES; do
25700        if test "x$i" = "x$j"; then
25701          apr_addto_duplicate="1"
25702          break
25703        fi
25704      done
25705      if test $apr_addto_duplicate = "0"; then
25706        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
25707        INCLUDES="$INCLUDES $i"
25708      fi
25709    done
25710  fi
25711
25712
25713
25714
25715apr_old_cppflags=$CPPFLAGS
25716CPPFLAGS="$CPPFLAGS $INCLUDES"
25717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718/* end confdefs.h.  */
25719
25720#include <apr.h>
25721#if APR_HAS_THREADS
25722YES_IS_DEFINED
25723#endif
25724
25725_ACEOF
25726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25727  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25728  ac_cv_define_APR_HAS_THREADS=yes
25729else
25730  ac_cv_define_APR_HAS_THREADS=no
25731fi
25732rm -f conftest*
25733
25734CPPFLAGS=$apr_old_cppflags
25735
25736
25737have_threaded_sig_graceful=yes
25738case $host in
25739    *-linux-*)
25740        case `uname -r` in
25741          2.0* )
25742                                                have_threaded_sig_graceful=no
25743          ;;
25744        esac
25745    ;;
25746esac
25747
25748
25749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR supports thread-safe pollsets" >&5
25750$as_echo_n "checking whether APR supports thread-safe pollsets... " >&6; }
25751if ${ac_cv_have_threadsafe_pollset+:} false; then :
25752  $as_echo_n "(cached) " >&6
25753else
25754
25755    case $host in
25756        *-apple-darwin[1-9].*)
25757
25758  if test -z "$ac_cv_func_kqueue"; then
25759    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
25760    ac_cv_func_kqueue="no"
25761  fi
25762
25763            ;;
25764    esac
25765    for ac_func in kqueue port_create epoll_create
25766do :
25767  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25768ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25769if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25770  cat >>confdefs.h <<_ACEOF
25771#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25772_ACEOF
25773
25774fi
25775done
25776
25777    if test "$ac_cv_func_kqueue$ac_cv_func_port_create$ac_cv_func_epoll_create" != "nonono"; then
25778        ac_cv_have_threadsafe_pollset=yes
25779    else
25780        ac_cv_have_threadsafe_pollset=no
25781    fi
25782
25783fi
25784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_threadsafe_pollset" >&5
25785$as_echo "$ac_cv_have_threadsafe_pollset" >&6; }
25786
25787case $APR_VERSION in
25788    1.4*)
25789        apr_has_skiplist=no
25790        ;;
25791    *)
25792        apr_has_skiplist=yes
25793esac
25794
25795case $host in
25796    *mingw32* | *os2-emx*)
25797        forking_mpms_supported=no
25798        ;;
25799    *)
25800        forking_mpms_supported=yes
25801        ;;
25802esac
25803
25804
25805
25806ap_mpm_is_supported ()
25807{
25808    eval "tmp=\$ap_supported_mpm_$1"
25809    if test -z "$tmp"; then
25810        return 1
25811    else
25812        return 0
25813    fi
25814}
25815
25816ap_mpm_supports_shared ()
25817{
25818    eval "tmp=\$ap_supported_mpm_$1"
25819    if test "$tmp" = "shared"; then
25820        return 0
25821    else
25822        return 1
25823    fi
25824}
25825
25826ap_mpm_is_threaded ()
25827{
25828    if test "$mpm_build" = "shared" -a ac_cv_define_APR_HAS_THREADS = "yes"; then
25829        return 0
25830    fi
25831
25832    for mpm in $ap_enabled_mpms; do
25833        eval "tmp=\$ap_threaded_mpm_$mpm"
25834        if test "$tmp" = "yes"; then
25835            return 0
25836        fi
25837    done
25838    return 1
25839}
25840
25841ap_mpm_is_enabled ()
25842{
25843    eval "tmp=\$ap_enabled_mpm_$1"
25844    if test "$tmp" = "yes"; then
25845        return 0
25846    else
25847        return 1
25848    fi
25849}
25850
25851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if event MPM supports this platform" >&5
25852$as_echo_n "checking if event MPM supports this platform... " >&6; }
25853if test $forking_mpms_supported != yes; then
25854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25855$as_echo "no - This is not a forking platform" >&6; }
25856elif test $ac_cv_define_APR_HAS_THREADS != yes; then
25857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
25858$as_echo "no - APR does not support threads" >&6; }
25859elif test $have_threaded_sig_graceful != yes; then
25860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
25861$as_echo "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
25862elif test $ac_cv_have_threadsafe_pollset != yes; then
25863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR_POLLSET_THREADSAFE is not supported" >&5
25864$as_echo "no - APR_POLLSET_THREADSAFE is not supported" >&6; }
25865elif test $apr_has_skiplist != yes; then
25866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR skiplist is not available" >&5
25867$as_echo "no - APR skiplist is not available" >&6; }
25868else
25869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870$as_echo "yes" >&6; }
25871
25872    if test "yes" = "yes"; then
25873        eval "ap_supported_mpm_event=shared"
25874        ap_supported_shared_mpms="$ap_supported_shared_mpms event "
25875    else
25876        eval "ap_supported_mpm_event=static"
25877    fi
25878    if test "yes" = "yes"; then
25879        eval "ap_threaded_mpm_event=yes"
25880    fi
25881
25882fi
25883
25884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mpmt_os2 MPM supports this platform" >&5
25885$as_echo_n "checking if mpmt_os2 MPM supports this platform... " >&6; }
25886case $host in
25887    *os2-emx*)
25888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25889$as_echo "yes" >&6; }
25890
25891    if test "no" = "yes"; then
25892        eval "ap_supported_mpm_mpmt_os2=shared"
25893        ap_supported_shared_mpms="$ap_supported_shared_mpms mpmt_os2 "
25894    else
25895        eval "ap_supported_mpm_mpmt_os2=static"
25896    fi
25897    if test "yes" = "yes"; then
25898        eval "ap_threaded_mpm_mpmt_os2=yes"
25899    fi
25900
25901        ;;
25902    *)
25903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25904$as_echo "no" >&6; }
25905        ;;
25906esac
25907
25908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if prefork MPM supports this platform" >&5
25909$as_echo_n "checking if prefork MPM supports this platform... " >&6; }
25910if test $forking_mpms_supported != yes; then
25911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25912$as_echo "no - This is not a forking platform" >&6; }
25913else
25914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25915$as_echo "yes" >&6; }
25916
25917    if test "yes" = "yes"; then
25918        eval "ap_supported_mpm_prefork=shared"
25919        ap_supported_shared_mpms="$ap_supported_shared_mpms prefork "
25920    else
25921        eval "ap_supported_mpm_prefork=static"
25922    fi
25923    if test "no" = "yes"; then
25924        eval "ap_threaded_mpm_prefork=yes"
25925    fi
25926
25927fi
25928
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WinNT MPM supports this platform" >&5
25930$as_echo_n "checking if WinNT MPM supports this platform... " >&6; }
25931case $host in
25932    *mingw32*)
25933        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25934$as_echo "yes" >&6; }
25935
25936    if test "no" = "yes"; then
25937        eval "ap_supported_mpm_winnt=shared"
25938        ap_supported_shared_mpms="$ap_supported_shared_mpms winnt "
25939    else
25940        eval "ap_supported_mpm_winnt=static"
25941    fi
25942    if test "yes" = "yes"; then
25943        eval "ap_threaded_mpm_winnt=yes"
25944    fi
25945
25946        ;;
25947    *)
25948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25949$as_echo "no" >&6; }
25950        ;;
25951esac
25952
25953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if worker MPM supports this platform" >&5
25954$as_echo_n "checking if worker MPM supports this platform... " >&6; }
25955if test $forking_mpms_supported != yes; then
25956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25957$as_echo "no - This is not a forking platform" >&6; }
25958elif test $ac_cv_define_APR_HAS_THREADS != yes; then
25959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
25960$as_echo "no - APR does not support threads" >&6; }
25961elif test $have_threaded_sig_graceful != yes; then
25962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
25963$as_echo "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
25964else
25965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25966$as_echo "yes" >&6; }
25967
25968    if test "yes" = "yes"; then
25969        eval "ap_supported_mpm_worker=shared"
25970        ap_supported_shared_mpms="$ap_supported_shared_mpms worker "
25971    else
25972        eval "ap_supported_mpm_worker=static"
25973    fi
25974    if test "yes" = "yes"; then
25975        eval "ap_threaded_mpm_worker=yes"
25976    fi
25977
25978fi
25979
25980htpasswd_LTFLAGS=""
25981htdigest_LTFLAGS=""
25982rotatelogs_LTFLAGS=""
25983logresolve_LTFLAGS=""
25984htdbm_LTFLAGS=""
25985ab_LTFLAGS=""
25986checkgid_LTFLAGS=""
25987htcacheclean_LTFLAGS=""
25988httxt2dbm_LTFLAGS=""
25989fcgistarter_LTFLAGS=""
25990
25991# Check whether --enable-static-support was given.
25992if test "${enable_static_support+set}" = set; then :
25993  enableval=$enable_static_support;
25994if test "$enableval" = "yes" ; then
25995
25996  if test "x$htpasswd_LTFLAGS" = "x"; then
25997    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
25998    htpasswd_LTFLAGS="-static"
25999  else
26000    apr_addto_bugger="-static"
26001    for i in $apr_addto_bugger; do
26002      apr_addto_duplicate="0"
26003      for j in $htpasswd_LTFLAGS; do
26004        if test "x$i" = "x$j"; then
26005          apr_addto_duplicate="1"
26006          break
26007        fi
26008      done
26009      if test $apr_addto_duplicate = "0"; then
26010        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
26011        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
26012      fi
26013    done
26014  fi
26015
26016
26017  if test "x$htdigest_LTFLAGS" = "x"; then
26018    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
26019    htdigest_LTFLAGS="-static"
26020  else
26021    apr_addto_bugger="-static"
26022    for i in $apr_addto_bugger; do
26023      apr_addto_duplicate="0"
26024      for j in $htdigest_LTFLAGS; do
26025        if test "x$i" = "x$j"; then
26026          apr_addto_duplicate="1"
26027          break
26028        fi
26029      done
26030      if test $apr_addto_duplicate = "0"; then
26031        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
26032        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
26033      fi
26034    done
26035  fi
26036
26037
26038  if test "x$rotatelogs_LTFLAGS" = "x"; then
26039    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
26040    rotatelogs_LTFLAGS="-static"
26041  else
26042    apr_addto_bugger="-static"
26043    for i in $apr_addto_bugger; do
26044      apr_addto_duplicate="0"
26045      for j in $rotatelogs_LTFLAGS; do
26046        if test "x$i" = "x$j"; then
26047          apr_addto_duplicate="1"
26048          break
26049        fi
26050      done
26051      if test $apr_addto_duplicate = "0"; then
26052        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
26053        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
26054      fi
26055    done
26056  fi
26057
26058
26059  if test "x$logresolve_LTFLAGS" = "x"; then
26060    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
26061    logresolve_LTFLAGS="-static"
26062  else
26063    apr_addto_bugger="-static"
26064    for i in $apr_addto_bugger; do
26065      apr_addto_duplicate="0"
26066      for j in $logresolve_LTFLAGS; do
26067        if test "x$i" = "x$j"; then
26068          apr_addto_duplicate="1"
26069          break
26070        fi
26071      done
26072      if test $apr_addto_duplicate = "0"; then
26073        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
26074        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
26075      fi
26076    done
26077  fi
26078
26079
26080  if test "x$htdbm_LTFLAGS" = "x"; then
26081    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
26082    htdbm_LTFLAGS="-static"
26083  else
26084    apr_addto_bugger="-static"
26085    for i in $apr_addto_bugger; do
26086      apr_addto_duplicate="0"
26087      for j in $htdbm_LTFLAGS; do
26088        if test "x$i" = "x$j"; then
26089          apr_addto_duplicate="1"
26090          break
26091        fi
26092      done
26093      if test $apr_addto_duplicate = "0"; then
26094        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
26095        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
26096      fi
26097    done
26098  fi
26099
26100
26101  if test "x$ab_LTFLAGS" = "x"; then
26102    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
26103    ab_LTFLAGS="-static"
26104  else
26105    apr_addto_bugger="-static"
26106    for i in $apr_addto_bugger; do
26107      apr_addto_duplicate="0"
26108      for j in $ab_LTFLAGS; do
26109        if test "x$i" = "x$j"; then
26110          apr_addto_duplicate="1"
26111          break
26112        fi
26113      done
26114      if test $apr_addto_duplicate = "0"; then
26115        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
26116        ab_LTFLAGS="$ab_LTFLAGS $i"
26117      fi
26118    done
26119  fi
26120
26121
26122  if test "x$checkgid_LTFLAGS" = "x"; then
26123    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
26124    checkgid_LTFLAGS="-static"
26125  else
26126    apr_addto_bugger="-static"
26127    for i in $apr_addto_bugger; do
26128      apr_addto_duplicate="0"
26129      for j in $checkgid_LTFLAGS; do
26130        if test "x$i" = "x$j"; then
26131          apr_addto_duplicate="1"
26132          break
26133        fi
26134      done
26135      if test $apr_addto_duplicate = "0"; then
26136        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
26137        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
26138      fi
26139    done
26140  fi
26141
26142
26143  if test "x$htcacheclean_LTFLAGS" = "x"; then
26144    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
26145    htcacheclean_LTFLAGS="-static"
26146  else
26147    apr_addto_bugger="-static"
26148    for i in $apr_addto_bugger; do
26149      apr_addto_duplicate="0"
26150      for j in $htcacheclean_LTFLAGS; do
26151        if test "x$i" = "x$j"; then
26152          apr_addto_duplicate="1"
26153          break
26154        fi
26155      done
26156      if test $apr_addto_duplicate = "0"; then
26157        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
26158        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
26159      fi
26160    done
26161  fi
26162
26163
26164  if test "x$httxt2dbm_LTFLAGS" = "x"; then
26165    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
26166    httxt2dbm_LTFLAGS="-static"
26167  else
26168    apr_addto_bugger="-static"
26169    for i in $apr_addto_bugger; do
26170      apr_addto_duplicate="0"
26171      for j in $httxt2dbm_LTFLAGS; do
26172        if test "x$i" = "x$j"; then
26173          apr_addto_duplicate="1"
26174          break
26175        fi
26176      done
26177      if test $apr_addto_duplicate = "0"; then
26178        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
26179        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
26180      fi
26181    done
26182  fi
26183
26184
26185  if test "x$fcgistarter_LTFLAGS" = "x"; then
26186    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
26187    fcgistarter_LTFLAGS="-static"
26188  else
26189    apr_addto_bugger="-static"
26190    for i in $apr_addto_bugger; do
26191      apr_addto_duplicate="0"
26192      for j in $fcgistarter_LTFLAGS; do
26193        if test "x$i" = "x$j"; then
26194          apr_addto_duplicate="1"
26195          break
26196        fi
26197      done
26198      if test $apr_addto_duplicate = "0"; then
26199        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
26200        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
26201      fi
26202    done
26203  fi
26204
26205fi
26206
26207fi
26208
26209
26210# Check whether --enable-static-htpasswd was given.
26211if test "${enable_static_htpasswd+set}" = set; then :
26212  enableval=$enable_static_htpasswd;
26213if test "$enableval" = "yes" ; then
26214
26215  if test "x$htpasswd_LTFLAGS" = "x"; then
26216    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
26217    htpasswd_LTFLAGS="-static"
26218  else
26219    apr_addto_bugger="-static"
26220    for i in $apr_addto_bugger; do
26221      apr_addto_duplicate="0"
26222      for j in $htpasswd_LTFLAGS; do
26223        if test "x$i" = "x$j"; then
26224          apr_addto_duplicate="1"
26225          break
26226        fi
26227      done
26228      if test $apr_addto_duplicate = "0"; then
26229        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
26230        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
26231      fi
26232    done
26233  fi
26234
26235else
26236
26237  if test "x$htpasswd_LTFLAGS" = "x-static"; then
26238    test "x$silent" != "xyes" && echo "  nulling htpasswd_LTFLAGS"
26239    htpasswd_LTFLAGS=""
26240  else
26241    apr_new_bugger=""
26242    apr_removed=0
26243    for i in $htpasswd_LTFLAGS; do
26244      if test "x$i" != "x-static"; then
26245        apr_new_bugger="$apr_new_bugger $i"
26246      else
26247        apr_removed=1
26248      fi
26249    done
26250    if test $apr_removed = "1"; then
26251      test "x$silent" != "xyes" && echo "  removed \"-static\" from htpasswd_LTFLAGS"
26252      htpasswd_LTFLAGS=$apr_new_bugger
26253    fi
26254  fi
26255
26256fi
26257
26258fi
26259
26260
26261  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
26262
26263
26264
26265# Check whether --enable-static-htdigest was given.
26266if test "${enable_static_htdigest+set}" = set; then :
26267  enableval=$enable_static_htdigest;
26268if test "$enableval" = "yes" ; then
26269
26270  if test "x$htdigest_LTFLAGS" = "x"; then
26271    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
26272    htdigest_LTFLAGS="-static"
26273  else
26274    apr_addto_bugger="-static"
26275    for i in $apr_addto_bugger; do
26276      apr_addto_duplicate="0"
26277      for j in $htdigest_LTFLAGS; do
26278        if test "x$i" = "x$j"; then
26279          apr_addto_duplicate="1"
26280          break
26281        fi
26282      done
26283      if test $apr_addto_duplicate = "0"; then
26284        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
26285        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
26286      fi
26287    done
26288  fi
26289
26290else
26291
26292  if test "x$htdigest_LTFLAGS" = "x-static"; then
26293    test "x$silent" != "xyes" && echo "  nulling htdigest_LTFLAGS"
26294    htdigest_LTFLAGS=""
26295  else
26296    apr_new_bugger=""
26297    apr_removed=0
26298    for i in $htdigest_LTFLAGS; do
26299      if test "x$i" != "x-static"; then
26300        apr_new_bugger="$apr_new_bugger $i"
26301      else
26302        apr_removed=1
26303      fi
26304    done
26305    if test $apr_removed = "1"; then
26306      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdigest_LTFLAGS"
26307      htdigest_LTFLAGS=$apr_new_bugger
26308    fi
26309  fi
26310
26311fi
26312
26313fi
26314
26315
26316  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
26317
26318
26319
26320# Check whether --enable-static-rotatelogs was given.
26321if test "${enable_static_rotatelogs+set}" = set; then :
26322  enableval=$enable_static_rotatelogs;
26323if test "$enableval" = "yes" ; then
26324
26325  if test "x$rotatelogs_LTFLAGS" = "x"; then
26326    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
26327    rotatelogs_LTFLAGS="-static"
26328  else
26329    apr_addto_bugger="-static"
26330    for i in $apr_addto_bugger; do
26331      apr_addto_duplicate="0"
26332      for j in $rotatelogs_LTFLAGS; do
26333        if test "x$i" = "x$j"; then
26334          apr_addto_duplicate="1"
26335          break
26336        fi
26337      done
26338      if test $apr_addto_duplicate = "0"; then
26339        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
26340        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
26341      fi
26342    done
26343  fi
26344
26345else
26346
26347  if test "x$rotatelogs_LTFLAGS" = "x-static"; then
26348    test "x$silent" != "xyes" && echo "  nulling rotatelogs_LTFLAGS"
26349    rotatelogs_LTFLAGS=""
26350  else
26351    apr_new_bugger=""
26352    apr_removed=0
26353    for i in $rotatelogs_LTFLAGS; do
26354      if test "x$i" != "x-static"; then
26355        apr_new_bugger="$apr_new_bugger $i"
26356      else
26357        apr_removed=1
26358      fi
26359    done
26360    if test $apr_removed = "1"; then
26361      test "x$silent" != "xyes" && echo "  removed \"-static\" from rotatelogs_LTFLAGS"
26362      rotatelogs_LTFLAGS=$apr_new_bugger
26363    fi
26364  fi
26365
26366fi
26367
26368fi
26369
26370
26371  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
26372
26373
26374
26375# Check whether --enable-static-logresolve was given.
26376if test "${enable_static_logresolve+set}" = set; then :
26377  enableval=$enable_static_logresolve;
26378if test "$enableval" = "yes" ; then
26379
26380  if test "x$logresolve_LTFLAGS" = "x"; then
26381    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
26382    logresolve_LTFLAGS="-static"
26383  else
26384    apr_addto_bugger="-static"
26385    for i in $apr_addto_bugger; do
26386      apr_addto_duplicate="0"
26387      for j in $logresolve_LTFLAGS; do
26388        if test "x$i" = "x$j"; then
26389          apr_addto_duplicate="1"
26390          break
26391        fi
26392      done
26393      if test $apr_addto_duplicate = "0"; then
26394        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
26395        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
26396      fi
26397    done
26398  fi
26399
26400else
26401
26402  if test "x$logresolve_LTFLAGS" = "x-static"; then
26403    test "x$silent" != "xyes" && echo "  nulling logresolve_LTFLAGS"
26404    logresolve_LTFLAGS=""
26405  else
26406    apr_new_bugger=""
26407    apr_removed=0
26408    for i in $logresolve_LTFLAGS; do
26409      if test "x$i" != "x-static"; then
26410        apr_new_bugger="$apr_new_bugger $i"
26411      else
26412        apr_removed=1
26413      fi
26414    done
26415    if test $apr_removed = "1"; then
26416      test "x$silent" != "xyes" && echo "  removed \"-static\" from logresolve_LTFLAGS"
26417      logresolve_LTFLAGS=$apr_new_bugger
26418    fi
26419  fi
26420
26421fi
26422
26423fi
26424
26425
26426  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
26427
26428
26429
26430# Check whether --enable-static-htdbm was given.
26431if test "${enable_static_htdbm+set}" = set; then :
26432  enableval=$enable_static_htdbm;
26433if test "$enableval" = "yes" ; then
26434
26435  if test "x$htdbm_LTFLAGS" = "x"; then
26436    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
26437    htdbm_LTFLAGS="-static"
26438  else
26439    apr_addto_bugger="-static"
26440    for i in $apr_addto_bugger; do
26441      apr_addto_duplicate="0"
26442      for j in $htdbm_LTFLAGS; do
26443        if test "x$i" = "x$j"; then
26444          apr_addto_duplicate="1"
26445          break
26446        fi
26447      done
26448      if test $apr_addto_duplicate = "0"; then
26449        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
26450        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
26451      fi
26452    done
26453  fi
26454
26455else
26456
26457  if test "x$htdbm_LTFLAGS" = "x-static"; then
26458    test "x$silent" != "xyes" && echo "  nulling htdbm_LTFLAGS"
26459    htdbm_LTFLAGS=""
26460  else
26461    apr_new_bugger=""
26462    apr_removed=0
26463    for i in $htdbm_LTFLAGS; do
26464      if test "x$i" != "x-static"; then
26465        apr_new_bugger="$apr_new_bugger $i"
26466      else
26467        apr_removed=1
26468      fi
26469    done
26470    if test $apr_removed = "1"; then
26471      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdbm_LTFLAGS"
26472      htdbm_LTFLAGS=$apr_new_bugger
26473    fi
26474  fi
26475
26476fi
26477
26478fi
26479
26480
26481  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
26482
26483
26484
26485# Check whether --enable-static-ab was given.
26486if test "${enable_static_ab+set}" = set; then :
26487  enableval=$enable_static_ab;
26488if test "$enableval" = "yes" ; then
26489
26490  if test "x$ab_LTFLAGS" = "x"; then
26491    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
26492    ab_LTFLAGS="-static"
26493  else
26494    apr_addto_bugger="-static"
26495    for i in $apr_addto_bugger; do
26496      apr_addto_duplicate="0"
26497      for j in $ab_LTFLAGS; do
26498        if test "x$i" = "x$j"; then
26499          apr_addto_duplicate="1"
26500          break
26501        fi
26502      done
26503      if test $apr_addto_duplicate = "0"; then
26504        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
26505        ab_LTFLAGS="$ab_LTFLAGS $i"
26506      fi
26507    done
26508  fi
26509
26510else
26511
26512  if test "x$ab_LTFLAGS" = "x-static"; then
26513    test "x$silent" != "xyes" && echo "  nulling ab_LTFLAGS"
26514    ab_LTFLAGS=""
26515  else
26516    apr_new_bugger=""
26517    apr_removed=0
26518    for i in $ab_LTFLAGS; do
26519      if test "x$i" != "x-static"; then
26520        apr_new_bugger="$apr_new_bugger $i"
26521      else
26522        apr_removed=1
26523      fi
26524    done
26525    if test $apr_removed = "1"; then
26526      test "x$silent" != "xyes" && echo "  removed \"-static\" from ab_LTFLAGS"
26527      ab_LTFLAGS=$apr_new_bugger
26528    fi
26529  fi
26530
26531fi
26532
26533fi
26534
26535
26536  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
26537
26538
26539
26540# Check whether --enable-static-checkgid was given.
26541if test "${enable_static_checkgid+set}" = set; then :
26542  enableval=$enable_static_checkgid;
26543if test "$enableval" = "yes" ; then
26544
26545  if test "x$checkgid_LTFLAGS" = "x"; then
26546    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
26547    checkgid_LTFLAGS="-static"
26548  else
26549    apr_addto_bugger="-static"
26550    for i in $apr_addto_bugger; do
26551      apr_addto_duplicate="0"
26552      for j in $checkgid_LTFLAGS; do
26553        if test "x$i" = "x$j"; then
26554          apr_addto_duplicate="1"
26555          break
26556        fi
26557      done
26558      if test $apr_addto_duplicate = "0"; then
26559        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
26560        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
26561      fi
26562    done
26563  fi
26564
26565else
26566
26567  if test "x$checkgid_LTFLAGS" = "x-static"; then
26568    test "x$silent" != "xyes" && echo "  nulling checkgid_LTFLAGS"
26569    checkgid_LTFLAGS=""
26570  else
26571    apr_new_bugger=""
26572    apr_removed=0
26573    for i in $checkgid_LTFLAGS; do
26574      if test "x$i" != "x-static"; then
26575        apr_new_bugger="$apr_new_bugger $i"
26576      else
26577        apr_removed=1
26578      fi
26579    done
26580    if test $apr_removed = "1"; then
26581      test "x$silent" != "xyes" && echo "  removed \"-static\" from checkgid_LTFLAGS"
26582      checkgid_LTFLAGS=$apr_new_bugger
26583    fi
26584  fi
26585
26586fi
26587
26588fi
26589
26590
26591  APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
26592
26593
26594
26595# Check whether --enable-static-htcacheclean was given.
26596if test "${enable_static_htcacheclean+set}" = set; then :
26597  enableval=$enable_static_htcacheclean;
26598if test "$enableval" = "yes" ; then
26599
26600  if test "x$htcacheclean_LTFLAGS" = "x"; then
26601    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
26602    htcacheclean_LTFLAGS="-static"
26603  else
26604    apr_addto_bugger="-static"
26605    for i in $apr_addto_bugger; do
26606      apr_addto_duplicate="0"
26607      for j in $htcacheclean_LTFLAGS; do
26608        if test "x$i" = "x$j"; then
26609          apr_addto_duplicate="1"
26610          break
26611        fi
26612      done
26613      if test $apr_addto_duplicate = "0"; then
26614        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
26615        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
26616      fi
26617    done
26618  fi
26619
26620else
26621
26622  if test "x$htcacheclean_LTFLAGS" = "x-static"; then
26623    test "x$silent" != "xyes" && echo "  nulling htcacheclean_LTFLAGS"
26624    htcacheclean_LTFLAGS=""
26625  else
26626    apr_new_bugger=""
26627    apr_removed=0
26628    for i in $htcacheclean_LTFLAGS; do
26629      if test "x$i" != "x-static"; then
26630        apr_new_bugger="$apr_new_bugger $i"
26631      else
26632        apr_removed=1
26633      fi
26634    done
26635    if test $apr_removed = "1"; then
26636      test "x$silent" != "xyes" && echo "  removed \"-static\" from htcacheclean_LTFLAGS"
26637      htcacheclean_LTFLAGS=$apr_new_bugger
26638    fi
26639  fi
26640
26641fi
26642
26643fi
26644
26645
26646  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htcacheclean_LTFLAGS"
26647
26648
26649
26650# Check whether --enable-static-httxt2dbm was given.
26651if test "${enable_static_httxt2dbm+set}" = set; then :
26652  enableval=$enable_static_httxt2dbm;
26653if test "$enableval" = "yes" ; then
26654
26655  if test "x$httxt2dbm_LTFLAGS" = "x"; then
26656    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
26657    httxt2dbm_LTFLAGS="-static"
26658  else
26659    apr_addto_bugger="-static"
26660    for i in $apr_addto_bugger; do
26661      apr_addto_duplicate="0"
26662      for j in $httxt2dbm_LTFLAGS; do
26663        if test "x$i" = "x$j"; then
26664          apr_addto_duplicate="1"
26665          break
26666        fi
26667      done
26668      if test $apr_addto_duplicate = "0"; then
26669        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
26670        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
26671      fi
26672    done
26673  fi
26674
26675else
26676
26677  if test "x$httxt2dbm" = "x-static"; then
26678    test "x$silent" != "xyes" && echo "  nulling httxt2dbm"
26679    httxt2dbm=""
26680  else
26681    apr_new_bugger=""
26682    apr_removed=0
26683    for i in $httxt2dbm; do
26684      if test "x$i" != "x-static"; then
26685        apr_new_bugger="$apr_new_bugger $i"
26686      else
26687        apr_removed=1
26688      fi
26689    done
26690    if test $apr_removed = "1"; then
26691      test "x$silent" != "xyes" && echo "  removed \"-static\" from httxt2dbm"
26692      httxt2dbm=$apr_new_bugger
26693    fi
26694  fi
26695
26696fi
26697
26698fi
26699
26700
26701  APACHE_VAR_SUBST="$APACHE_VAR_SUBST httxt2dbm_LTFLAGS"
26702
26703
26704
26705# Check whether --enable-static-fcgistarter was given.
26706if test "${enable_static_fcgistarter+set}" = set; then :
26707  enableval=$enable_static_fcgistarter;
26708if test "$enableval" = "yes" ; then
26709
26710  if test "x$fcgistarter_LTFLAGS" = "x"; then
26711    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
26712    fcgistarter_LTFLAGS="-static"
26713  else
26714    apr_addto_bugger="-static"
26715    for i in $apr_addto_bugger; do
26716      apr_addto_duplicate="0"
26717      for j in $fcgistarter_LTFLAGS; do
26718        if test "x$i" = "x$j"; then
26719          apr_addto_duplicate="1"
26720          break
26721        fi
26722      done
26723      if test $apr_addto_duplicate = "0"; then
26724        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
26725        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
26726      fi
26727    done
26728  fi
26729
26730else
26731
26732  if test "x$fcgistarter" = "x-static"; then
26733    test "x$silent" != "xyes" && echo "  nulling fcgistarter"
26734    fcgistarter=""
26735  else
26736    apr_new_bugger=""
26737    apr_removed=0
26738    for i in $fcgistarter; do
26739      if test "x$i" != "x-static"; then
26740        apr_new_bugger="$apr_new_bugger $i"
26741      else
26742        apr_removed=1
26743      fi
26744    done
26745    if test $apr_removed = "1"; then
26746      test "x$silent" != "xyes" && echo "  removed \"-static\" from fcgistarter"
26747      fcgistarter=$apr_new_bugger
26748    fi
26749  fi
26750
26751fi
26752
26753fi
26754
26755
26756  APACHE_VAR_SUBST="$APACHE_VAR_SUBST fcgistarter_LTFLAGS"
26757
26758
26759
26760# Configure or check which of the non-portable support programs can be enabled.
26761
26762NONPORTABLE_SUPPORT=""
26763case $host in
26764    *mingw*)
26765        ;;
26766    *)
26767        NONPORTABLE_SUPPORT="checkgid fcgistarter"
26768        ;;
26769esac
26770
26771  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NONPORTABLE_SUPPORT"
26772
26773
26774
26775# Configure the ulimit -n command used by apachectl.
26776
26777case $host in
26778    *aix*)
26779        # this works in any locale, unlike the default command below, which
26780        # fails in a non-English locale if the hard limit is unlimited
26781        # since the display of the limit will translate "unlimited", but
26782        # ulimit only accepts English "unlimited" on input
26783        APACHECTL_ULIMIT="ulimit -S -n unlimited"
26784        ;;
26785    *alpha*-dec-osf*)
26786        # Tru64: -H is for setting, not retrieving
26787        APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
26788        ;;
26789    *-apple-darwin*)
26790        APACHECTL_ULIMIT=""
26791        ;;
26792    *)
26793        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
26794            APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
26795        else
26796            APACHECTL_ULIMIT=""
26797        fi
26798        ;;
26799esac
26800echo "checking ulimit for host ($host)... APACHECTL_ULIMIT=\"$APACHECTL_ULIMIT\" "
26801
26802  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"
26803
26804
26805
26806
26807  current_dir=proxy/balancers
26808  modpath_current=modules/proxy/balancers
26809  modpath_static=
26810  modpath_shared=
26811  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
26812    eval MOD_$var=
26813  done
26814  test -d proxy/balancers || $srcdir/build/mkdir.sh $modpath_current
26815  > $modpath_current/modules.mk
26816
26817
26818
26819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_byrequests" >&5
26820$as_echo_n "checking whether to enable mod_lbmethod_byrequests... " >&6; }
26821    # Check whether --enable-lbmethod-byrequests was given.
26822if test "${enable_lbmethod_byrequests+set}" = set; then :
26823  enableval=$enable_lbmethod_byrequests; force_lbmethod_byrequests=$enableval
26824else
26825  enable_lbmethod_byrequests=$proxy_mods_enable
26826fi
26827
26828    _apmod_extra_msg=""
26829        case "$enable_lbmethod_byrequests" in
26830    yes|static|shared)
26831      _apmod_required="yes"
26832      ;;
26833    *)
26834      case "$module_selection" in
26835      reallyall|all|most)
26836        _apmod_required="no"
26837        ;;
26838      *)
26839        _apmod_required="yes"
26840        ;;
26841      esac
26842  esac
26843  if test "$enable_lbmethod_byrequests" = "static"; then
26844    enable_lbmethod_byrequests=static
26845  elif test "$enable_lbmethod_byrequests" = "yes"; then
26846    enable_lbmethod_byrequests=$module_default
26847  elif test "$enable_lbmethod_byrequests" = "most"; then
26848    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
26849            "$module_selection" = "reallyall"
26850    then
26851      enable_lbmethod_byrequests=$module_default
26852    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
26853      enable_lbmethod_byrequests=no
26854    fi
26855    _apmod_extra_msg=" ($module_selection)"
26856  elif test "$enable_lbmethod_byrequests" = "maybe-all"; then
26857    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
26858    then
26859      enable_lbmethod_byrequests=$module_default
26860      _apmod_extra_msg=" ($module_selection)"
26861    else
26862      enable_lbmethod_byrequests=no
26863    fi
26864  elif test "$enable_lbmethod_byrequests" = "no" -a "$module_selection" = "reallyall" -a \
26865            "$force_lbmethod_byrequests" != "no" ; then
26866      enable_lbmethod_byrequests=$module_default
26867      _apmod_extra_msg=" ($module_selection)"
26868  fi
26869  if test "$enable_lbmethod_byrequests" != "no"; then
26870            :
26871  fi
26872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_byrequests$_apmod_extra_msg" >&5
26873$as_echo "$enable_lbmethod_byrequests$_apmod_extra_msg" >&6; }
26874  if test "$enable_lbmethod_byrequests" != "no"; then
26875    case "$enable_lbmethod_byrequests" in
26876    static*)
26877      MODLIST="$MODLIST lbmethod_byrequests"
26878      if test "lbmethod_byrequests" = "so"; then
26879          sharedobjs=yes
26880      fi
26881      shared="";;
26882    *)
26883      enable_lbmethod_byrequests=`echo $enable_lbmethod_byrequests|sed 's/shared,*//'`
26884      sharedobjs=yes
26885      shared=yes
26886      DSO_MODULES="$DSO_MODULES lbmethod_byrequests"
26887      if test "$proxy_mods_enable" = "yes" ; then
26888        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_byrequests"
26889      fi
26890      ;;
26891    esac
26892
26893
26894  if test -z ""; then
26895    objects="mod_lbmethod_byrequests.lo"
26896  else
26897    objects=""
26898  fi
26899
26900  if test -z "$module_standalone"; then
26901    if test -z "$shared"; then
26902      # The filename of a convenience library must have a "lib" prefix:
26903      libname="libmod_lbmethod_byrequests.la"
26904      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
26905      modpath_static="$modpath_static $libname"
26906      cat >>$modpath_current/modules.mk<<EOF
26907$libname: $objects
26908	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
26909EOF
26910      if test ! -z "\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"; then
26911
26912  if test "x$AP_LIBS" = "x"; then
26913    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYREQUESTS_LDADD)\""
26914    AP_LIBS="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
26915  else
26916    apr_addto_bugger="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
26917    for i in $apr_addto_bugger; do
26918      apr_addto_duplicate="0"
26919      for j in $AP_LIBS; do
26920        if test "x$i" = "x$j"; then
26921          apr_addto_duplicate="1"
26922          break
26923        fi
26924      done
26925      if test $apr_addto_duplicate = "0"; then
26926        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
26927        AP_LIBS="$AP_LIBS $i"
26928      fi
26929    done
26930  fi
26931
26932      fi
26933    else
26934      apache_need_shared=yes
26935      libname="mod_lbmethod_byrequests.la"
26936      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
26937      modpath_shared="$modpath_shared $libname"
26938      cat >>$modpath_current/modules.mk<<EOF
26939$libname: $shobjects
26940	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
26941EOF
26942    fi
26943  fi
26944
26945
26946  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYREQUESTS_LDADD"
26947
26948
26949
26950  fi
26951
26952
26953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bytraffic" >&5
26954$as_echo_n "checking whether to enable mod_lbmethod_bytraffic... " >&6; }
26955    # Check whether --enable-lbmethod-bytraffic was given.
26956if test "${enable_lbmethod_bytraffic+set}" = set; then :
26957  enableval=$enable_lbmethod_bytraffic; force_lbmethod_bytraffic=$enableval
26958else
26959  enable_lbmethod_bytraffic=$proxy_mods_enable
26960fi
26961
26962    _apmod_extra_msg=""
26963        case "$enable_lbmethod_bytraffic" in
26964    yes|static|shared)
26965      _apmod_required="yes"
26966      ;;
26967    *)
26968      case "$module_selection" in
26969      reallyall|all|most)
26970        _apmod_required="no"
26971        ;;
26972      *)
26973        _apmod_required="yes"
26974        ;;
26975      esac
26976  esac
26977  if test "$enable_lbmethod_bytraffic" = "static"; then
26978    enable_lbmethod_bytraffic=static
26979  elif test "$enable_lbmethod_bytraffic" = "yes"; then
26980    enable_lbmethod_bytraffic=$module_default
26981  elif test "$enable_lbmethod_bytraffic" = "most"; then
26982    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
26983            "$module_selection" = "reallyall"
26984    then
26985      enable_lbmethod_bytraffic=$module_default
26986    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
26987      enable_lbmethod_bytraffic=no
26988    fi
26989    _apmod_extra_msg=" ($module_selection)"
26990  elif test "$enable_lbmethod_bytraffic" = "maybe-all"; then
26991    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
26992    then
26993      enable_lbmethod_bytraffic=$module_default
26994      _apmod_extra_msg=" ($module_selection)"
26995    else
26996      enable_lbmethod_bytraffic=no
26997    fi
26998  elif test "$enable_lbmethod_bytraffic" = "no" -a "$module_selection" = "reallyall" -a \
26999            "$force_lbmethod_bytraffic" != "no" ; then
27000      enable_lbmethod_bytraffic=$module_default
27001      _apmod_extra_msg=" ($module_selection)"
27002  fi
27003  if test "$enable_lbmethod_bytraffic" != "no"; then
27004            :
27005  fi
27006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bytraffic$_apmod_extra_msg" >&5
27007$as_echo "$enable_lbmethod_bytraffic$_apmod_extra_msg" >&6; }
27008  if test "$enable_lbmethod_bytraffic" != "no"; then
27009    case "$enable_lbmethod_bytraffic" in
27010    static*)
27011      MODLIST="$MODLIST lbmethod_bytraffic"
27012      if test "lbmethod_bytraffic" = "so"; then
27013          sharedobjs=yes
27014      fi
27015      shared="";;
27016    *)
27017      enable_lbmethod_bytraffic=`echo $enable_lbmethod_bytraffic|sed 's/shared,*//'`
27018      sharedobjs=yes
27019      shared=yes
27020      DSO_MODULES="$DSO_MODULES lbmethod_bytraffic"
27021      if test "$proxy_mods_enable" = "yes" ; then
27022        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bytraffic"
27023      fi
27024      ;;
27025    esac
27026
27027
27028  if test -z ""; then
27029    objects="mod_lbmethod_bytraffic.lo"
27030  else
27031    objects=""
27032  fi
27033
27034  if test -z "$module_standalone"; then
27035    if test -z "$shared"; then
27036      # The filename of a convenience library must have a "lib" prefix:
27037      libname="libmod_lbmethod_bytraffic.la"
27038      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27039      modpath_static="$modpath_static $libname"
27040      cat >>$modpath_current/modules.mk<<EOF
27041$libname: $objects
27042	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
27043EOF
27044      if test ! -z "\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"; then
27045
27046  if test "x$AP_LIBS" = "x"; then
27047    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)\""
27048    AP_LIBS="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
27049  else
27050    apr_addto_bugger="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
27051    for i in $apr_addto_bugger; do
27052      apr_addto_duplicate="0"
27053      for j in $AP_LIBS; do
27054        if test "x$i" = "x$j"; then
27055          apr_addto_duplicate="1"
27056          break
27057        fi
27058      done
27059      if test $apr_addto_duplicate = "0"; then
27060        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27061        AP_LIBS="$AP_LIBS $i"
27062      fi
27063    done
27064  fi
27065
27066      fi
27067    else
27068      apache_need_shared=yes
27069      libname="mod_lbmethod_bytraffic.la"
27070      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27071      modpath_shared="$modpath_shared $libname"
27072      cat >>$modpath_current/modules.mk<<EOF
27073$libname: $shobjects
27074	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
27075EOF
27076    fi
27077  fi
27078
27079
27080  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYTRAFFIC_LDADD"
27081
27082
27083
27084  fi
27085
27086
27087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
27088$as_echo_n "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
27089    # Check whether --enable-lbmethod-bybusyness was given.
27090if test "${enable_lbmethod_bybusyness+set}" = set; then :
27091  enableval=$enable_lbmethod_bybusyness; force_lbmethod_bybusyness=$enableval
27092else
27093  enable_lbmethod_bybusyness=$proxy_mods_enable
27094fi
27095
27096    _apmod_extra_msg=""
27097        case "$enable_lbmethod_bybusyness" in
27098    yes|static|shared)
27099      _apmod_required="yes"
27100      ;;
27101    *)
27102      case "$module_selection" in
27103      reallyall|all|most)
27104        _apmod_required="no"
27105        ;;
27106      *)
27107        _apmod_required="yes"
27108        ;;
27109      esac
27110  esac
27111  if test "$enable_lbmethod_bybusyness" = "static"; then
27112    enable_lbmethod_bybusyness=static
27113  elif test "$enable_lbmethod_bybusyness" = "yes"; then
27114    enable_lbmethod_bybusyness=$module_default
27115  elif test "$enable_lbmethod_bybusyness" = "most"; then
27116    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27117            "$module_selection" = "reallyall"
27118    then
27119      enable_lbmethod_bybusyness=$module_default
27120    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27121      enable_lbmethod_bybusyness=no
27122    fi
27123    _apmod_extra_msg=" ($module_selection)"
27124  elif test "$enable_lbmethod_bybusyness" = "maybe-all"; then
27125    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27126    then
27127      enable_lbmethod_bybusyness=$module_default
27128      _apmod_extra_msg=" ($module_selection)"
27129    else
27130      enable_lbmethod_bybusyness=no
27131    fi
27132  elif test "$enable_lbmethod_bybusyness" = "no" -a "$module_selection" = "reallyall" -a \
27133            "$force_lbmethod_bybusyness" != "no" ; then
27134      enable_lbmethod_bybusyness=$module_default
27135      _apmod_extra_msg=" ($module_selection)"
27136  fi
27137  if test "$enable_lbmethod_bybusyness" != "no"; then
27138            :
27139  fi
27140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bybusyness$_apmod_extra_msg" >&5
27141$as_echo "$enable_lbmethod_bybusyness$_apmod_extra_msg" >&6; }
27142  if test "$enable_lbmethod_bybusyness" != "no"; then
27143    case "$enable_lbmethod_bybusyness" in
27144    static*)
27145      MODLIST="$MODLIST lbmethod_bybusyness"
27146      if test "lbmethod_bybusyness" = "so"; then
27147          sharedobjs=yes
27148      fi
27149      shared="";;
27150    *)
27151      enable_lbmethod_bybusyness=`echo $enable_lbmethod_bybusyness|sed 's/shared,*//'`
27152      sharedobjs=yes
27153      shared=yes
27154      DSO_MODULES="$DSO_MODULES lbmethod_bybusyness"
27155      if test "$proxy_mods_enable" = "yes" ; then
27156        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bybusyness"
27157      fi
27158      ;;
27159    esac
27160
27161
27162  if test -z ""; then
27163    objects="mod_lbmethod_bybusyness.lo"
27164  else
27165    objects=""
27166  fi
27167
27168  if test -z "$module_standalone"; then
27169    if test -z "$shared"; then
27170      # The filename of a convenience library must have a "lib" prefix:
27171      libname="libmod_lbmethod_bybusyness.la"
27172      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27173      modpath_static="$modpath_static $libname"
27174      cat >>$modpath_current/modules.mk<<EOF
27175$libname: $objects
27176	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
27177EOF
27178      if test ! -z "\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"; then
27179
27180  if test "x$AP_LIBS" = "x"; then
27181    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)\""
27182    AP_LIBS="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
27183  else
27184    apr_addto_bugger="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
27185    for i in $apr_addto_bugger; do
27186      apr_addto_duplicate="0"
27187      for j in $AP_LIBS; do
27188        if test "x$i" = "x$j"; then
27189          apr_addto_duplicate="1"
27190          break
27191        fi
27192      done
27193      if test $apr_addto_duplicate = "0"; then
27194        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27195        AP_LIBS="$AP_LIBS $i"
27196      fi
27197    done
27198  fi
27199
27200      fi
27201    else
27202      apache_need_shared=yes
27203      libname="mod_lbmethod_bybusyness.la"
27204      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27205      modpath_shared="$modpath_shared $libname"
27206      cat >>$modpath_current/modules.mk<<EOF
27207$libname: $shobjects
27208	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
27209EOF
27210    fi
27211  fi
27212
27213
27214  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYBUSYNESS_LDADD"
27215
27216
27217
27218  fi
27219
27220
27221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
27222$as_echo_n "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
27223    # Check whether --enable-lbmethod-heartbeat was given.
27224if test "${enable_lbmethod_heartbeat+set}" = set; then :
27225  enableval=$enable_lbmethod_heartbeat; force_lbmethod_heartbeat=$enableval
27226else
27227  enable_lbmethod_heartbeat=$proxy_mods_enable
27228fi
27229
27230    _apmod_extra_msg=""
27231        case "$enable_lbmethod_heartbeat" in
27232    yes|static|shared)
27233      _apmod_required="yes"
27234      ;;
27235    *)
27236      case "$module_selection" in
27237      reallyall|all|most)
27238        _apmod_required="no"
27239        ;;
27240      *)
27241        _apmod_required="yes"
27242        ;;
27243      esac
27244  esac
27245  if test "$enable_lbmethod_heartbeat" = "static"; then
27246    enable_lbmethod_heartbeat=static
27247  elif test "$enable_lbmethod_heartbeat" = "yes"; then
27248    enable_lbmethod_heartbeat=$module_default
27249  elif test "$enable_lbmethod_heartbeat" = "most"; then
27250    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27251            "$module_selection" = "reallyall"
27252    then
27253      enable_lbmethod_heartbeat=$module_default
27254    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27255      enable_lbmethod_heartbeat=no
27256    fi
27257    _apmod_extra_msg=" ($module_selection)"
27258  elif test "$enable_lbmethod_heartbeat" = "maybe-all"; then
27259    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27260    then
27261      enable_lbmethod_heartbeat=$module_default
27262      _apmod_extra_msg=" ($module_selection)"
27263    else
27264      enable_lbmethod_heartbeat=no
27265    fi
27266  elif test "$enable_lbmethod_heartbeat" = "no" -a "$module_selection" = "reallyall" -a \
27267            "$force_lbmethod_heartbeat" != "no" ; then
27268      enable_lbmethod_heartbeat=$module_default
27269      _apmod_extra_msg=" ($module_selection)"
27270  fi
27271  if test "$enable_lbmethod_heartbeat" != "no"; then
27272            :
27273  fi
27274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_heartbeat$_apmod_extra_msg" >&5
27275$as_echo "$enable_lbmethod_heartbeat$_apmod_extra_msg" >&6; }
27276  if test "$enable_lbmethod_heartbeat" != "no"; then
27277    case "$enable_lbmethod_heartbeat" in
27278    static*)
27279      MODLIST="$MODLIST lbmethod_heartbeat"
27280      if test "lbmethod_heartbeat" = "so"; then
27281          sharedobjs=yes
27282      fi
27283      shared="";;
27284    *)
27285      enable_lbmethod_heartbeat=`echo $enable_lbmethod_heartbeat|sed 's/shared,*//'`
27286      sharedobjs=yes
27287      shared=yes
27288      DSO_MODULES="$DSO_MODULES lbmethod_heartbeat"
27289      if test "$proxy_mods_enable" = "yes" ; then
27290        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_heartbeat"
27291      fi
27292      ;;
27293    esac
27294
27295
27296  if test -z ""; then
27297    objects="mod_lbmethod_heartbeat.lo"
27298  else
27299    objects=""
27300  fi
27301
27302  if test -z "$module_standalone"; then
27303    if test -z "$shared"; then
27304      # The filename of a convenience library must have a "lib" prefix:
27305      libname="libmod_lbmethod_heartbeat.la"
27306      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27307      modpath_static="$modpath_static $libname"
27308      cat >>$modpath_current/modules.mk<<EOF
27309$libname: $objects
27310	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
27311EOF
27312      if test ! -z "\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"; then
27313
27314  if test "x$AP_LIBS" = "x"; then
27315    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_HEARTBEAT_LDADD)\""
27316    AP_LIBS="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
27317  else
27318    apr_addto_bugger="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
27319    for i in $apr_addto_bugger; do
27320      apr_addto_duplicate="0"
27321      for j in $AP_LIBS; do
27322        if test "x$i" = "x$j"; then
27323          apr_addto_duplicate="1"
27324          break
27325        fi
27326      done
27327      if test $apr_addto_duplicate = "0"; then
27328        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27329        AP_LIBS="$AP_LIBS $i"
27330      fi
27331    done
27332  fi
27333
27334      fi
27335    else
27336      apache_need_shared=yes
27337      libname="mod_lbmethod_heartbeat.la"
27338      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27339      modpath_shared="$modpath_shared $libname"
27340      cat >>$modpath_current/modules.mk<<EOF
27341$libname: $shobjects
27342	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
27343EOF
27344    fi
27345  fi
27346
27347
27348  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_HEARTBEAT_LDADD"
27349
27350
27351
27352  fi
27353
27354
27355
27356  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
27357  echo "static = $modpath_static" >> $modpath_current/modules.mk
27358  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
27359  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
27360    if eval val=\"\$MOD_$var\"; test -n "$val"; then
27361      echo "MOD_$var = $val" >> $modpath_current/modules.mk
27362    fi
27363  done
27364  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
27365    MODULE_DIRS="$MODULE_DIRS $current_dir"
27366  else
27367    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
27368  fi
27369
27370  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
27371
27372
27373
27374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPM to use by default" >&5
27375$as_echo_n "checking which MPM to use by default... " >&6; }
27376
27377# Check whether --with-mpm was given.
27378if test "${with_mpm+set}" = set; then :
27379  withval=$with_mpm;
27380    default_mpm=$withval
27381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
27382$as_echo "$withval" >&6; };
27383
27384else
27385
27386                if ap_mpm_is_supported "winnt"; then
27387        default_mpm=winnt
27388        { $as_echo "$as_me:${as_lineno-$LINENO}: result: winnt" >&5
27389$as_echo "winnt" >&6; }
27390    elif ap_mpm_is_supported "mpmt_os2"; then
27391        default_mpm=mpmt_os2
27392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpmt_os2" >&5
27393$as_echo "mpmt_os2" >&6; }
27394    elif ap_mpm_is_supported "event"; then
27395        default_mpm=event
27396        { $as_echo "$as_me:${as_lineno-$LINENO}: result: event" >&5
27397$as_echo "event" >&6; }
27398    elif ap_mpm_is_supported "worker"; then
27399        default_mpm=worker
27400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: worker - event is not supported" >&5
27401$as_echo "worker - event is not supported" >&6; }
27402    else
27403        default_mpm=prefork
27404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefork - event and worker are not supported" >&5
27405$as_echo "prefork - event and worker are not supported" >&6; }
27406    fi
27407
27408fi
27409
27410
27411
27412    if ap_mpm_is_enabled $default_mpm; then
27413        :
27414    else
27415        eval "ap_enabled_mpm_$default_mpm=yes"
27416        ap_enabled_mpms="$ap_enabled_mpms $default_mpm "
27417    fi
27418
27419
27420# Check whether --enable-mpms-shared was given.
27421if test "${enable_mpms_shared+set}" = set; then :
27422  enableval=$enable_mpms_shared;
27423    if test "$enableval" = "no"; then
27424        mpm_build=static
27425    else
27426        mpm_build=shared
27427        if test "$enableval" = "yes"; then
27428            enableval=$default_mpm
27429        fi
27430        for i in $enableval; do
27431            if test "$i" = "all"; then
27432                for j in $ap_supported_shared_mpms; do
27433                    eval "enable_mpm_$j=shared"
27434
27435    if ap_mpm_is_enabled $j; then
27436        :
27437    else
27438        eval "ap_enabled_mpm_$j=yes"
27439        ap_enabled_mpms="$ap_enabled_mpms $j "
27440    fi
27441
27442                done
27443            else
27444                i=`echo $i | sed 's/-/_/g'`
27445                if ap_mpm_supports_shared $i; then
27446                    eval "enable_mpm_$i=shared"
27447
27448    if ap_mpm_is_enabled $i; then
27449        :
27450    else
27451        eval "ap_enabled_mpm_$i=yes"
27452        ap_enabled_mpms="$ap_enabled_mpms $i "
27453    fi
27454
27455                else
27456                    as_fn_error $? "MPM $i does not support dynamic loading." "$LINENO" 5
27457                fi
27458            fi
27459        done
27460    fi
27461
27462else
27463  mpm_build=static
27464fi
27465
27466
27467for i in $ap_enabled_mpms; do
27468    if ap_mpm_is_supported $i; then
27469        :
27470    else
27471        as_fn_error $? "MPM $i is not supported on this platform." "$LINENO" 5
27472    fi
27473done
27474
27475if test $mpm_build = "shared"; then
27476    eval "tmp=\$enable_mpm_$default_mpm"
27477    if test "$tmp" != "shared"; then
27478        as_fn_error $? "The default MPM ($default_mpm) must be included in --enable-mpms-shared.  Use --with-mpm to change the default MPM." "$LINENO" 5
27479    fi
27480fi
27481
27482
27483  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"
27484
27485
27486if test $mpm_build = "shared"; then
27487    MPM_LIB=""
27488else
27489    MPM_LIB=server/mpm/$default_mpm/lib${default_mpm}.la
27490    MODLIST="$MODLIST mpm_${default_mpm}"
27491fi
27492
27493MPM_SUBDIRS=$ap_enabled_mpms
27494
27495  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIRS"
27496
27497
27498
27499  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
27500
27501
27502
27503
27504
27505  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MPM_EVENT_LDADD"
27506
27507
27508
27509
27510    if ap_mpm_is_enabled event; then
27511        if test -z "event.lo fdqueue.lo"; then
27512            objects="event.lo"
27513        else
27514            objects="event.lo fdqueue.lo"
27515        fi
27516
27517        if test -z ""; then
27518            mpmpath="server/mpm/event"
27519        else
27520            mpmpath=
27521        fi
27522
27523                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27524
27525
27526  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27527
27528
27529        if test -z "$enable_mpm_event"; then
27530
27531  if test "x$AP_LIBS" = "x"; then
27532    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MPM_EVENT_LDADD)\""
27533    AP_LIBS="\$(MOD_MPM_EVENT_LDADD)"
27534  else
27535    apr_addto_bugger="\$(MOD_MPM_EVENT_LDADD)"
27536    for i in $apr_addto_bugger; do
27537      apr_addto_duplicate="0"
27538      for j in $AP_LIBS; do
27539        if test "x$i" = "x$j"; then
27540          apr_addto_duplicate="1"
27541          break
27542        fi
27543      done
27544      if test $apr_addto_duplicate = "0"; then
27545        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27546        AP_LIBS="$AP_LIBS $i"
27547      fi
27548    done
27549  fi
27550
27551            libname="libevent.la"
27552            cat >$mpmpath/modules.mk<<EOF
27553$libname: $objects
27554	\$(MOD_LINK) $objects
27555DISTCLEAN_TARGETS = modules.mk
27556static = $libname
27557shared =
27558EOF
27559        else
27560            apache_need_shared=yes
27561            libname="mod_mpm_event.la"
27562            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27563            cat >$mpmpath/modules.mk<<EOF
27564$libname: $shobjects
27565	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MPM_EVENT_LDADD)
27566DISTCLEAN_TARGETS = modules.mk
27567static =
27568shared = $libname
27569EOF
27570            # add default MPM to LoadModule list
27571            if test event = $default_mpm; then
27572                DSO_MODULES="$DSO_MODULES mpm_event"
27573                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_event"
27574            fi
27575        fi
27576
27577    for ac_func in pthread_kill
27578do :
27579  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
27580if test "x$ac_cv_func_pthread_kill" = xyes; then :
27581  cat >>confdefs.h <<_ACEOF
27582#define HAVE_PTHREAD_KILL 1
27583_ACEOF
27584
27585fi
27586done
27587
27588
27589    fi
27590
27591
27592
27593    if ap_mpm_is_enabled prefork; then
27594        if test -z ""; then
27595            objects="prefork.lo"
27596        else
27597            objects=""
27598        fi
27599
27600        if test -z ""; then
27601            mpmpath="server/mpm/prefork"
27602        else
27603            mpmpath=
27604        fi
27605
27606                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27607
27608
27609  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27610
27611
27612        if test -z "$enable_mpm_prefork"; then
27613
27614  if test "x$AP_LIBS" = "x"; then
27615    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27616    AP_LIBS=""
27617  else
27618    apr_addto_bugger=""
27619    for i in $apr_addto_bugger; do
27620      apr_addto_duplicate="0"
27621      for j in $AP_LIBS; do
27622        if test "x$i" = "x$j"; then
27623          apr_addto_duplicate="1"
27624          break
27625        fi
27626      done
27627      if test $apr_addto_duplicate = "0"; then
27628        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27629        AP_LIBS="$AP_LIBS $i"
27630      fi
27631    done
27632  fi
27633
27634            libname="libprefork.la"
27635            cat >$mpmpath/modules.mk<<EOF
27636$libname: $objects
27637	\$(MOD_LINK) $objects
27638DISTCLEAN_TARGETS = modules.mk
27639static = $libname
27640shared =
27641EOF
27642        else
27643            apache_need_shared=yes
27644            libname="mod_mpm_prefork.la"
27645            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27646            cat >$mpmpath/modules.mk<<EOF
27647$libname: $shobjects
27648	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27649DISTCLEAN_TARGETS = modules.mk
27650static =
27651shared = $libname
27652EOF
27653            # add default MPM to LoadModule list
27654            if test prefork = $default_mpm; then
27655                DSO_MODULES="$DSO_MODULES mpm_prefork"
27656                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_prefork"
27657            fi
27658        fi
27659
27660    fi
27661
27662
27663winnt_objects="child.lo mpm_winnt.lo nt_eventlog.lo service.lo"
27664
27665    if ap_mpm_is_enabled winnt; then
27666        if test -z "$winnt_objects"; then
27667            objects="winnt.lo"
27668        else
27669            objects="$winnt_objects"
27670        fi
27671
27672        if test -z ""; then
27673            mpmpath="server/mpm/winnt"
27674        else
27675            mpmpath=
27676        fi
27677
27678                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27679
27680
27681  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27682
27683
27684        if test -z "$enable_mpm_winnt"; then
27685
27686  if test "x$AP_LIBS" = "x"; then
27687    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27688    AP_LIBS=""
27689  else
27690    apr_addto_bugger=""
27691    for i in $apr_addto_bugger; do
27692      apr_addto_duplicate="0"
27693      for j in $AP_LIBS; do
27694        if test "x$i" = "x$j"; then
27695          apr_addto_duplicate="1"
27696          break
27697        fi
27698      done
27699      if test $apr_addto_duplicate = "0"; then
27700        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27701        AP_LIBS="$AP_LIBS $i"
27702      fi
27703    done
27704  fi
27705
27706            libname="libwinnt.la"
27707            cat >$mpmpath/modules.mk<<EOF
27708$libname: $objects
27709	\$(MOD_LINK) $objects
27710DISTCLEAN_TARGETS = modules.mk
27711static = $libname
27712shared =
27713EOF
27714        else
27715            apache_need_shared=yes
27716            libname="mod_mpm_winnt.la"
27717            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27718            cat >$mpmpath/modules.mk<<EOF
27719$libname: $shobjects
27720	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27721DISTCLEAN_TARGETS = modules.mk
27722static =
27723shared = $libname
27724EOF
27725            # add default MPM to LoadModule list
27726            if test winnt = $default_mpm; then
27727                DSO_MODULES="$DSO_MODULES mpm_winnt"
27728                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_winnt"
27729            fi
27730        fi
27731
27732    fi
27733
27734
27735
27736
27737    if ap_mpm_is_enabled worker; then
27738        if test -z "worker.lo fdqueue.lo"; then
27739            objects="worker.lo"
27740        else
27741            objects="worker.lo fdqueue.lo"
27742        fi
27743
27744        if test -z ""; then
27745            mpmpath="server/mpm/worker"
27746        else
27747            mpmpath=
27748        fi
27749
27750                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27751
27752
27753  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27754
27755
27756        if test -z "$enable_mpm_worker"; then
27757
27758  if test "x$AP_LIBS" = "x"; then
27759    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27760    AP_LIBS=""
27761  else
27762    apr_addto_bugger=""
27763    for i in $apr_addto_bugger; do
27764      apr_addto_duplicate="0"
27765      for j in $AP_LIBS; do
27766        if test "x$i" = "x$j"; then
27767          apr_addto_duplicate="1"
27768          break
27769        fi
27770      done
27771      if test $apr_addto_duplicate = "0"; then
27772        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27773        AP_LIBS="$AP_LIBS $i"
27774      fi
27775    done
27776  fi
27777
27778            libname="libworker.la"
27779            cat >$mpmpath/modules.mk<<EOF
27780$libname: $objects
27781	\$(MOD_LINK) $objects
27782DISTCLEAN_TARGETS = modules.mk
27783static = $libname
27784shared =
27785EOF
27786        else
27787            apache_need_shared=yes
27788            libname="mod_mpm_worker.la"
27789            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27790            cat >$mpmpath/modules.mk<<EOF
27791$libname: $shobjects
27792	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27793DISTCLEAN_TARGETS = modules.mk
27794static =
27795shared = $libname
27796EOF
27797            # add default MPM to LoadModule list
27798            if test worker = $default_mpm; then
27799                DSO_MODULES="$DSO_MODULES mpm_worker"
27800                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_worker"
27801            fi
27802        fi
27803
27804    for ac_func in pthread_kill
27805do :
27806  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
27807if test "x$ac_cv_func_pthread_kill" = xyes; then :
27808  cat >>confdefs.h <<_ACEOF
27809#define HAVE_PTHREAD_KILL 1
27810_ACEOF
27811
27812fi
27813done
27814
27815
27816    fi
27817
27818
27819
27820
27821  current_dir=arch/unix
27822  modpath_current=modules/arch/unix
27823  modpath_static=
27824  modpath_shared=
27825  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
27826    eval MOD_$var=
27827  done
27828  test -d arch/unix || $srcdir/build/mkdir.sh $modpath_current
27829  > $modpath_current/modules.mk
27830
27831
27832if ap_mpm_is_enabled "worker" \
27833   || ap_mpm_is_enabled "event" \
27834   || ap_mpm_is_enabled "prefork"; then
27835    unixd_mods_enable=yes
27836else
27837    unixd_mods_enable=no
27838fi
27839
27840
27841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unixd" >&5
27842$as_echo_n "checking whether to enable mod_unixd... " >&6; }
27843    # Check whether --enable-unixd was given.
27844if test "${enable_unixd+set}" = set; then :
27845  enableval=$enable_unixd; force_unixd=$enableval
27846else
27847  enable_unixd=$unixd_mods_enable
27848fi
27849
27850    _apmod_extra_msg=""
27851        case "$enable_unixd" in
27852    yes|static|shared)
27853      _apmod_required="yes"
27854      ;;
27855    *)
27856      case "$module_selection" in
27857      reallyall|all|most)
27858        _apmod_required="no"
27859        ;;
27860      *)
27861        _apmod_required="yes"
27862        ;;
27863      esac
27864  esac
27865  if test "$enable_unixd" = "static"; then
27866    enable_unixd=static
27867  elif test "$enable_unixd" = "yes"; then
27868    enable_unixd=$module_default
27869  elif test "$enable_unixd" = "most"; then
27870    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27871            "$module_selection" = "reallyall"
27872    then
27873      enable_unixd=$module_default
27874    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27875      enable_unixd=no
27876    fi
27877    _apmod_extra_msg=" ($module_selection)"
27878  elif test "$enable_unixd" = "maybe-all"; then
27879    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27880    then
27881      enable_unixd=$module_default
27882      _apmod_extra_msg=" ($module_selection)"
27883    else
27884      enable_unixd=no
27885    fi
27886  elif test "$enable_unixd" = "no" -a "$module_selection" = "reallyall" -a \
27887            "$force_unixd" != "no" ; then
27888      enable_unixd=$module_default
27889      _apmod_extra_msg=" ($module_selection)"
27890  fi
27891  if test "$enable_unixd" != "no"; then
27892            :
27893  fi
27894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unixd$_apmod_extra_msg" >&5
27895$as_echo "$enable_unixd$_apmod_extra_msg" >&6; }
27896  if test "$enable_unixd" != "no"; then
27897    case "$enable_unixd" in
27898    static*)
27899      MODLIST="$MODLIST unixd"
27900      if test "unixd" = "so"; then
27901          sharedobjs=yes
27902      fi
27903      shared="";;
27904    *)
27905      enable_unixd=`echo $enable_unixd|sed 's/shared,*//'`
27906      sharedobjs=yes
27907      shared=yes
27908      DSO_MODULES="$DSO_MODULES unixd"
27909      if test "$unixd_mods_enable" = "yes" ; then
27910        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unixd"
27911      fi
27912      ;;
27913    esac
27914
27915
27916  if test -z ""; then
27917    objects="mod_unixd.lo"
27918  else
27919    objects=""
27920  fi
27921
27922  if test -z "$module_standalone"; then
27923    if test -z "$shared"; then
27924      # The filename of a convenience library must have a "lib" prefix:
27925      libname="libmod_unixd.la"
27926      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27927      modpath_static="$modpath_static $libname"
27928      cat >>$modpath_current/modules.mk<<EOF
27929$libname: $objects
27930	\$(MOD_LINK) $objects \$(MOD_UNIXD_LDADD)
27931EOF
27932      if test ! -z "\$(MOD_UNIXD_LDADD)"; then
27933
27934  if test "x$AP_LIBS" = "x"; then
27935    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIXD_LDADD)\""
27936    AP_LIBS="\$(MOD_UNIXD_LDADD)"
27937  else
27938    apr_addto_bugger="\$(MOD_UNIXD_LDADD)"
27939    for i in $apr_addto_bugger; do
27940      apr_addto_duplicate="0"
27941      for j in $AP_LIBS; do
27942        if test "x$i" = "x$j"; then
27943          apr_addto_duplicate="1"
27944          break
27945        fi
27946      done
27947      if test $apr_addto_duplicate = "0"; then
27948        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27949        AP_LIBS="$AP_LIBS $i"
27950      fi
27951    done
27952  fi
27953
27954      fi
27955    else
27956      apache_need_shared=yes
27957      libname="mod_unixd.la"
27958      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27959      modpath_shared="$modpath_shared $libname"
27960      cat >>$modpath_current/modules.mk<<EOF
27961$libname: $shobjects
27962	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIXD_LDADD)
27963EOF
27964    fi
27965  fi
27966
27967
27968  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIXD_LDADD"
27969
27970
27971
27972  fi
27973
27974
27975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
27976$as_echo_n "checking whether to enable mod_privileges... " >&6; }
27977    # Check whether --enable-privileges was given.
27978if test "${enable_privileges+set}" = set; then :
27979  enableval=$enable_privileges; force_privileges=$enableval
27980else
27981  enable_privileges=no
27982fi
27983
27984    _apmod_extra_msg=""
27985        case "$enable_privileges" in
27986    yes|static|shared)
27987      _apmod_required="yes"
27988      ;;
27989    *)
27990      case "$module_selection" in
27991      reallyall|all|most)
27992        _apmod_required="no"
27993        ;;
27994      *)
27995        _apmod_required="yes"
27996        ;;
27997      esac
27998  esac
27999  if test "$enable_privileges" = "static"; then
28000    enable_privileges=static
28001  elif test "$enable_privileges" = "yes"; then
28002    enable_privileges=$module_default
28003  elif test "$enable_privileges" = "most"; then
28004    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28005            "$module_selection" = "reallyall"
28006    then
28007      enable_privileges=$module_default
28008    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28009      enable_privileges=no
28010    fi
28011    _apmod_extra_msg=" ($module_selection)"
28012  elif test "$enable_privileges" = "maybe-all"; then
28013    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28014    then
28015      enable_privileges=$module_default
28016      _apmod_extra_msg=" ($module_selection)"
28017    else
28018      enable_privileges=no
28019    fi
28020  elif test "$enable_privileges" = "no" -a "$module_selection" = "reallyall" -a \
28021            "$force_privileges" != "no" ; then
28022      enable_privileges=$module_default
28023      _apmod_extra_msg=" ($module_selection)"
28024  fi
28025  if test "$enable_privileges" != "no"; then
28026            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
28027$as_echo "checking dependencies" >&6; }
28028            :
28029
28030  for ac_header in priv.h
28031do :
28032  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28033if test "x$ac_cv_header_priv_h" = xyes; then :
28034  cat >>confdefs.h <<_ACEOF
28035#define HAVE_PRIV_H 1
28036_ACEOF
28037 ap_HAVE_PRIV_H="yes"
28038else
28039  ap_HAVE_PRIV_H="no"
28040fi
28041
28042done
28043
28044  if test $ap_HAVE_PRIV_H = "no"; then
28045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support privileges." >&5
28046$as_echo "$as_me: WARNING: Your system does not support privileges." >&2;}
28047    enable_privileges="no"
28048  fi
28049
28050            :
28051            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
28052$as_echo_n "checking whether to enable mod_privileges... " >&6; }
28053            if test "$enable_privileges" = "no"; then
28054              if test "$_apmod_required" = "no"; then
28055                _apmod_extra_msg=" (disabled)"
28056              else
28057                as_fn_error $? "mod_privileges has been requested but can not be built due to prerequisite failures" "$LINENO" 5
28058              fi
28059            fi
28060  fi
28061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_privileges$_apmod_extra_msg" >&5
28062$as_echo "$enable_privileges$_apmod_extra_msg" >&6; }
28063  if test "$enable_privileges" != "no"; then
28064    case "$enable_privileges" in
28065    static*)
28066      MODLIST="$MODLIST privileges"
28067      if test "privileges" = "so"; then
28068          sharedobjs=yes
28069      fi
28070      shared="";;
28071    *)
28072      enable_privileges=`echo $enable_privileges|sed 's/shared,*//'`
28073      sharedobjs=yes
28074      shared=yes
28075      DSO_MODULES="$DSO_MODULES privileges"
28076      if test "no" = "yes" ; then
28077        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},privileges"
28078      fi
28079      ;;
28080    esac
28081
28082
28083  if test -z ""; then
28084    objects="mod_privileges.lo"
28085  else
28086    objects=""
28087  fi
28088
28089  if test -z "$module_standalone"; then
28090    if test -z "$shared"; then
28091      # The filename of a convenience library must have a "lib" prefix:
28092      libname="libmod_privileges.la"
28093      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28094      modpath_static="$modpath_static $libname"
28095      cat >>$modpath_current/modules.mk<<EOF
28096$libname: $objects
28097	\$(MOD_LINK) $objects \$(MOD_PRIVILEGES_LDADD)
28098EOF
28099      if test ! -z "\$(MOD_PRIVILEGES_LDADD)"; then
28100
28101  if test "x$AP_LIBS" = "x"; then
28102    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PRIVILEGES_LDADD)\""
28103    AP_LIBS="\$(MOD_PRIVILEGES_LDADD)"
28104  else
28105    apr_addto_bugger="\$(MOD_PRIVILEGES_LDADD)"
28106    for i in $apr_addto_bugger; do
28107      apr_addto_duplicate="0"
28108      for j in $AP_LIBS; do
28109        if test "x$i" = "x$j"; then
28110          apr_addto_duplicate="1"
28111          break
28112        fi
28113      done
28114      if test $apr_addto_duplicate = "0"; then
28115        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28116        AP_LIBS="$AP_LIBS $i"
28117      fi
28118    done
28119  fi
28120
28121      fi
28122    else
28123      apache_need_shared=yes
28124      libname="mod_privileges.la"
28125      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28126      modpath_shared="$modpath_shared $libname"
28127      cat >>$modpath_current/modules.mk<<EOF
28128$libname: $shobjects
28129	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PRIVILEGES_LDADD)
28130EOF
28131    fi
28132  fi
28133
28134
28135  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PRIVILEGES_LDADD"
28136
28137
28138
28139  fi
28140
28141
28142
28143  if test "x$INCLUDES" = "x"; then
28144    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
28145    INCLUDES="-I\$(top_srcdir)/$modpath_current"
28146  else
28147    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
28148    for i in $apr_addto_bugger; do
28149      apr_addto_duplicate="0"
28150      for j in $INCLUDES; do
28151        if test "x$i" = "x$j"; then
28152          apr_addto_duplicate="1"
28153          break
28154        fi
28155      done
28156      if test $apr_addto_duplicate = "0"; then
28157        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
28158        INCLUDES="$INCLUDES $i"
28159      fi
28160    done
28161  fi
28162
28163
28164
28165  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28166  echo "static = $modpath_static" >> $modpath_current/modules.mk
28167  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28168  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28169    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28170      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28171    fi
28172  done
28173  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28174    MODULE_DIRS="$MODULE_DIRS $current_dir"
28175  else
28176    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28177  fi
28178
28179  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28180
28181
28182
28183
28184
28185
28186  current_dir=cluster
28187  modpath_current=modules/cluster
28188  modpath_static=
28189  modpath_shared=
28190  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28191    eval MOD_$var=
28192  done
28193  test -d cluster || $srcdir/build/mkdir.sh $modpath_current
28194  > $modpath_current/modules.mk
28195
28196
28197heartbeat_objects='mod_heartbeat.lo'
28198
28199case "$host" in
28200  *os2*)
28201    # OS/2 DLLs must resolve all symbols at build time
28202    # and we need some from the watchdog module
28203    heartbeat_objects="$heartbeat_objects ../core/mod_watchdog.la"
28204    ;;
28205esac
28206
28207
28208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
28209$as_echo_n "checking whether to enable mod_heartbeat... " >&6; }
28210    # Check whether --enable-heartbeat was given.
28211if test "${enable_heartbeat+set}" = set; then :
28212  enableval=$enable_heartbeat; force_heartbeat=$enableval
28213else
28214  enable_heartbeat=maybe-all
28215fi
28216
28217    _apmod_extra_msg=""
28218        case "$enable_heartbeat" in
28219    yes|static|shared)
28220      _apmod_required="yes"
28221      ;;
28222    *)
28223      case "$module_selection" in
28224      reallyall|all|most)
28225        _apmod_required="no"
28226        ;;
28227      *)
28228        _apmod_required="yes"
28229        ;;
28230      esac
28231  esac
28232  if test "$enable_heartbeat" = "static"; then
28233    enable_heartbeat=static
28234  elif test "$enable_heartbeat" = "yes"; then
28235    enable_heartbeat=$module_default
28236  elif test "$enable_heartbeat" = "most"; then
28237    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28238            "$module_selection" = "reallyall"
28239    then
28240      enable_heartbeat=$module_default
28241    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28242      enable_heartbeat=no
28243    fi
28244    _apmod_extra_msg=" ($module_selection)"
28245  elif test "$enable_heartbeat" = "maybe-all"; then
28246    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28247    then
28248      enable_heartbeat=$module_default
28249      _apmod_extra_msg=" ($module_selection)"
28250    else
28251      enable_heartbeat=no
28252    fi
28253  elif test "$enable_heartbeat" = "no" -a "$module_selection" = "reallyall" -a \
28254            "$force_heartbeat" != "no" ; then
28255      enable_heartbeat=$module_default
28256      _apmod_extra_msg=" ($module_selection)"
28257  fi
28258  if test "$enable_heartbeat" != "no"; then
28259            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
28260$as_echo "checking dependencies" >&6; }
28261            if test "$enable_watchdog" = "no" ; then
28262                              enable_heartbeat=no
28263                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&5
28264$as_echo "$as_me: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&2;}
28265                            elif test "$enable_heartbeat" = "static" && test "$enable_watchdog" != "static" ; then
28266                              enable_heartbeat=no
28267                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_heartbeat statically if mod_watchdog is built shared\"" >&5
28268$as_echo "$as_me: WARNING: \"cannot build mod_heartbeat statically if mod_watchdog is built shared\"" >&2;}
28269                            else
28270            :
28271            fi
28272            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
28273$as_echo_n "checking whether to enable mod_heartbeat... " >&6; }
28274            if test "$enable_heartbeat" = "no"; then
28275              if test "$_apmod_required" = "no"; then
28276                _apmod_extra_msg=" (disabled)"
28277              else
28278                as_fn_error $? "mod_heartbeat has been requested but can not be built due to prerequisite failures" "$LINENO" 5
28279              fi
28280            fi
28281  fi
28282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_heartbeat$_apmod_extra_msg" >&5
28283$as_echo "$enable_heartbeat$_apmod_extra_msg" >&6; }
28284  if test "$enable_heartbeat" != "no"; then
28285    case "$enable_heartbeat" in
28286    static*)
28287      MODLIST="$MODLIST heartbeat"
28288      if test "heartbeat" = "so"; then
28289          sharedobjs=yes
28290      fi
28291      shared="";;
28292    *)
28293      enable_heartbeat=`echo $enable_heartbeat|sed 's/shared,*//'`
28294      sharedobjs=yes
28295      shared=yes
28296      DSO_MODULES="$DSO_MODULES heartbeat"
28297      if test "" = "yes" ; then
28298        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartbeat"
28299      fi
28300      ;;
28301    esac
28302
28303
28304  if test -z "$heartbeat_objects"; then
28305    objects="mod_heartbeat.lo"
28306  else
28307    objects="$heartbeat_objects"
28308  fi
28309
28310  if test -z "$module_standalone"; then
28311    if test -z "$shared"; then
28312      # The filename of a convenience library must have a "lib" prefix:
28313      libname="libmod_heartbeat.la"
28314      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28315      modpath_static="$modpath_static $libname"
28316      cat >>$modpath_current/modules.mk<<EOF
28317$libname: $objects
28318	\$(MOD_LINK) $objects \$(MOD_HEARTBEAT_LDADD)
28319EOF
28320      if test ! -z "\$(MOD_HEARTBEAT_LDADD)"; then
28321
28322  if test "x$AP_LIBS" = "x"; then
28323    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTBEAT_LDADD)\""
28324    AP_LIBS="\$(MOD_HEARTBEAT_LDADD)"
28325  else
28326    apr_addto_bugger="\$(MOD_HEARTBEAT_LDADD)"
28327    for i in $apr_addto_bugger; do
28328      apr_addto_duplicate="0"
28329      for j in $AP_LIBS; do
28330        if test "x$i" = "x$j"; then
28331          apr_addto_duplicate="1"
28332          break
28333        fi
28334      done
28335      if test $apr_addto_duplicate = "0"; then
28336        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28337        AP_LIBS="$AP_LIBS $i"
28338      fi
28339    done
28340  fi
28341
28342      fi
28343    else
28344      apache_need_shared=yes
28345      libname="mod_heartbeat.la"
28346      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28347      modpath_shared="$modpath_shared $libname"
28348      cat >>$modpath_current/modules.mk<<EOF
28349$libname: $shobjects
28350	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTBEAT_LDADD)
28351EOF
28352    fi
28353  fi
28354
28355
28356  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTBEAT_LDADD"
28357
28358
28359
28360  fi
28361
28362
28363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartmonitor" >&5
28364$as_echo_n "checking whether to enable mod_heartmonitor... " >&6; }
28365    # Check whether --enable-heartmonitor was given.
28366if test "${enable_heartmonitor+set}" = set; then :
28367  enableval=$enable_heartmonitor; force_heartmonitor=$enableval
28368else
28369  enable_heartmonitor=maybe-all
28370fi
28371
28372    _apmod_extra_msg=""
28373        case "$enable_heartmonitor" in
28374    yes|static|shared)
28375      _apmod_required="yes"
28376      ;;
28377    *)
28378      case "$module_selection" in
28379      reallyall|all|most)
28380        _apmod_required="no"
28381        ;;
28382      *)
28383        _apmod_required="yes"
28384        ;;
28385      esac
28386  esac
28387  if test "$enable_heartmonitor" = "static"; then
28388    enable_heartmonitor=static
28389  elif test "$enable_heartmonitor" = "yes"; then
28390    enable_heartmonitor=$module_default
28391  elif test "$enable_heartmonitor" = "most"; then
28392    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28393            "$module_selection" = "reallyall"
28394    then
28395      enable_heartmonitor=$module_default
28396    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28397      enable_heartmonitor=no
28398    fi
28399    _apmod_extra_msg=" ($module_selection)"
28400  elif test "$enable_heartmonitor" = "maybe-all"; then
28401    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28402    then
28403      enable_heartmonitor=$module_default
28404      _apmod_extra_msg=" ($module_selection)"
28405    else
28406      enable_heartmonitor=no
28407    fi
28408  elif test "$enable_heartmonitor" = "no" -a "$module_selection" = "reallyall" -a \
28409            "$force_heartmonitor" != "no" ; then
28410      enable_heartmonitor=$module_default
28411      _apmod_extra_msg=" ($module_selection)"
28412  fi
28413  if test "$enable_heartmonitor" != "no"; then
28414            :
28415  fi
28416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_heartmonitor$_apmod_extra_msg" >&5
28417$as_echo "$enable_heartmonitor$_apmod_extra_msg" >&6; }
28418  if test "$enable_heartmonitor" != "no"; then
28419    case "$enable_heartmonitor" in
28420    static*)
28421      MODLIST="$MODLIST heartmonitor"
28422      if test "heartmonitor" = "so"; then
28423          sharedobjs=yes
28424      fi
28425      shared="";;
28426    *)
28427      enable_heartmonitor=`echo $enable_heartmonitor|sed 's/shared,*//'`
28428      sharedobjs=yes
28429      shared=yes
28430      DSO_MODULES="$DSO_MODULES heartmonitor"
28431      if test "" = "yes" ; then
28432        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartmonitor"
28433      fi
28434      ;;
28435    esac
28436
28437
28438  if test -z ""; then
28439    objects="mod_heartmonitor.lo"
28440  else
28441    objects=""
28442  fi
28443
28444  if test -z "$module_standalone"; then
28445    if test -z "$shared"; then
28446      # The filename of a convenience library must have a "lib" prefix:
28447      libname="libmod_heartmonitor.la"
28448      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28449      modpath_static="$modpath_static $libname"
28450      cat >>$modpath_current/modules.mk<<EOF
28451$libname: $objects
28452	\$(MOD_LINK) $objects \$(MOD_HEARTMONITOR_LDADD)
28453EOF
28454      if test ! -z "\$(MOD_HEARTMONITOR_LDADD)"; then
28455
28456  if test "x$AP_LIBS" = "x"; then
28457    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTMONITOR_LDADD)\""
28458    AP_LIBS="\$(MOD_HEARTMONITOR_LDADD)"
28459  else
28460    apr_addto_bugger="\$(MOD_HEARTMONITOR_LDADD)"
28461    for i in $apr_addto_bugger; do
28462      apr_addto_duplicate="0"
28463      for j in $AP_LIBS; do
28464        if test "x$i" = "x$j"; then
28465          apr_addto_duplicate="1"
28466          break
28467        fi
28468      done
28469      if test $apr_addto_duplicate = "0"; then
28470        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28471        AP_LIBS="$AP_LIBS $i"
28472      fi
28473    done
28474  fi
28475
28476      fi
28477    else
28478      apache_need_shared=yes
28479      libname="mod_heartmonitor.la"
28480      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28481      modpath_shared="$modpath_shared $libname"
28482      cat >>$modpath_current/modules.mk<<EOF
28483$libname: $shobjects
28484	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTMONITOR_LDADD)
28485EOF
28486    fi
28487  fi
28488
28489
28490  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTMONITOR_LDADD"
28491
28492
28493
28494  fi
28495
28496
28497
28498  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28499  echo "static = $modpath_static" >> $modpath_current/modules.mk
28500  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28501  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28502    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28503      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28504    fi
28505  done
28506  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28507    MODULE_DIRS="$MODULE_DIRS $current_dir"
28508  else
28509    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28510  fi
28511
28512  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28513
28514
28515
28516
28517
28518  current_dir=dav/main
28519  modpath_current=modules/dav/main
28520  modpath_static=
28521  modpath_shared=
28522  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28523    eval MOD_$var=
28524  done
28525  test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
28526  > $modpath_current/modules.mk
28527
28528
28529dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"
28530
28531if test "$enable_http" = "no"; then
28532  dav_enable=no
28533else
28534  dav_enable=most
28535fi
28536
28537
28538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav" >&5
28539$as_echo_n "checking whether to enable mod_dav... " >&6; }
28540    # Check whether --enable-dav was given.
28541if test "${enable_dav+set}" = set; then :
28542  enableval=$enable_dav; force_dav=$enableval
28543else
28544  enable_dav=$dav_enable
28545fi
28546
28547    _apmod_extra_msg=""
28548        case "$enable_dav" in
28549    yes|static|shared)
28550      _apmod_required="yes"
28551      ;;
28552    *)
28553      case "$module_selection" in
28554      reallyall|all|most)
28555        _apmod_required="no"
28556        ;;
28557      *)
28558        _apmod_required="yes"
28559        ;;
28560      esac
28561  esac
28562  if test "$enable_dav" = "static"; then
28563    enable_dav=static
28564  elif test "$enable_dav" = "yes"; then
28565    enable_dav=$module_default
28566  elif test "$enable_dav" = "most"; then
28567    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28568            "$module_selection" = "reallyall"
28569    then
28570      enable_dav=$module_default
28571    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28572      enable_dav=no
28573    fi
28574    _apmod_extra_msg=" ($module_selection)"
28575  elif test "$enable_dav" = "maybe-all"; then
28576    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28577    then
28578      enable_dav=$module_default
28579      _apmod_extra_msg=" ($module_selection)"
28580    else
28581      enable_dav=no
28582    fi
28583  elif test "$enable_dav" = "no" -a "$module_selection" = "reallyall" -a \
28584            "$force_dav" != "no" ; then
28585      enable_dav=$module_default
28586      _apmod_extra_msg=" ($module_selection)"
28587  fi
28588  if test "$enable_dav" != "no"; then
28589            :
28590  fi
28591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav$_apmod_extra_msg" >&5
28592$as_echo "$enable_dav$_apmod_extra_msg" >&6; }
28593  if test "$enable_dav" != "no"; then
28594    case "$enable_dav" in
28595    static*)
28596      MODLIST="$MODLIST dav"
28597      if test "dav" = "so"; then
28598          sharedobjs=yes
28599      fi
28600      shared="";;
28601    *)
28602      enable_dav=`echo $enable_dav|sed 's/shared,*//'`
28603      sharedobjs=yes
28604      shared=yes
28605      DSO_MODULES="$DSO_MODULES dav"
28606      if test "$dav_enable" = "yes" ; then
28607        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav"
28608      fi
28609      ;;
28610    esac
28611
28612
28613  if test -z "$dav_objects"; then
28614    objects="mod_dav.lo"
28615  else
28616    objects="$dav_objects"
28617  fi
28618
28619  if test -z "$module_standalone"; then
28620    if test -z "$shared"; then
28621      # The filename of a convenience library must have a "lib" prefix:
28622      libname="libmod_dav.la"
28623      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28624      modpath_static="$modpath_static $libname"
28625      cat >>$modpath_current/modules.mk<<EOF
28626$libname: $objects
28627	\$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
28628EOF
28629      if test ! -z "\$(MOD_DAV_LDADD)"; then
28630
28631  if test "x$AP_LIBS" = "x"; then
28632    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LDADD)\""
28633    AP_LIBS="\$(MOD_DAV_LDADD)"
28634  else
28635    apr_addto_bugger="\$(MOD_DAV_LDADD)"
28636    for i in $apr_addto_bugger; do
28637      apr_addto_duplicate="0"
28638      for j in $AP_LIBS; do
28639        if test "x$i" = "x$j"; then
28640          apr_addto_duplicate="1"
28641          break
28642        fi
28643      done
28644      if test $apr_addto_duplicate = "0"; then
28645        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28646        AP_LIBS="$AP_LIBS $i"
28647      fi
28648    done
28649  fi
28650
28651      fi
28652    else
28653      apache_need_shared=yes
28654      libname="mod_dav.la"
28655      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28656      modpath_shared="$modpath_shared $libname"
28657      cat >>$modpath_current/modules.mk<<EOF
28658$libname: $shobjects
28659	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LDADD)
28660EOF
28661    fi
28662  fi
28663
28664
28665  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"
28666
28667
28668
28669  fi
28670
28671
28672if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
28673  apache_need_expat=yes
28674fi
28675
28676
28677  if test "x$INCLUDES" = "x"; then
28678    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
28679    INCLUDES="-I\$(top_srcdir)/$modpath_current"
28680  else
28681    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
28682    for i in $apr_addto_bugger; do
28683      apr_addto_duplicate="0"
28684      for j in $INCLUDES; do
28685        if test "x$i" = "x$j"; then
28686          apr_addto_duplicate="1"
28687          break
28688        fi
28689      done
28690      if test $apr_addto_duplicate = "0"; then
28691        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
28692        INCLUDES="$INCLUDES $i"
28693      fi
28694    done
28695  fi
28696
28697
28698
28699  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28700  echo "static = $modpath_static" >> $modpath_current/modules.mk
28701  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28702  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28703    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28704      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28705    fi
28706  done
28707  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28708    MODULE_DIRS="$MODULE_DIRS $current_dir"
28709  else
28710    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28711  fi
28712
28713  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28714
28715
28716
28717
28718
28719
28720  current_dir=generators
28721  modpath_current=modules/generators
28722  modpath_static=
28723  modpath_shared=
28724  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28725    eval MOD_$var=
28726  done
28727  test -d generators || $srcdir/build/mkdir.sh $modpath_current
28728  > $modpath_current/modules.mk
28729
28730
28731
28732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_status" >&5
28733$as_echo_n "checking whether to enable mod_status... " >&6; }
28734    # Check whether --enable-status was given.
28735if test "${enable_status+set}" = set; then :
28736  enableval=$enable_status; force_status=$enableval
28737else
28738  enable_status=yes
28739fi
28740
28741    _apmod_extra_msg=""
28742        case "$enable_status" in
28743    yes|static|shared)
28744      _apmod_required="yes"
28745      ;;
28746    *)
28747      case "$module_selection" in
28748      reallyall|all|most)
28749        _apmod_required="no"
28750        ;;
28751      *)
28752        _apmod_required="yes"
28753        ;;
28754      esac
28755  esac
28756  if test "$enable_status" = "static"; then
28757    enable_status=static
28758  elif test "$enable_status" = "yes"; then
28759    enable_status=$module_default
28760  elif test "$enable_status" = "most"; then
28761    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28762            "$module_selection" = "reallyall"
28763    then
28764      enable_status=$module_default
28765    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28766      enable_status=no
28767    fi
28768    _apmod_extra_msg=" ($module_selection)"
28769  elif test "$enable_status" = "maybe-all"; then
28770    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28771    then
28772      enable_status=$module_default
28773      _apmod_extra_msg=" ($module_selection)"
28774    else
28775      enable_status=no
28776    fi
28777  elif test "$enable_status" = "no" -a "$module_selection" = "reallyall" -a \
28778            "$force_status" != "no" ; then
28779      enable_status=$module_default
28780      _apmod_extra_msg=" ($module_selection)"
28781  fi
28782  if test "$enable_status" != "no"; then
28783            :
28784  fi
28785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_status$_apmod_extra_msg" >&5
28786$as_echo "$enable_status$_apmod_extra_msg" >&6; }
28787  if test "$enable_status" != "no"; then
28788    case "$enable_status" in
28789    static*)
28790      MODLIST="$MODLIST status"
28791      if test "status" = "so"; then
28792          sharedobjs=yes
28793      fi
28794      shared="";;
28795    *)
28796      enable_status=`echo $enable_status|sed 's/shared,*//'`
28797      sharedobjs=yes
28798      shared=yes
28799      DSO_MODULES="$DSO_MODULES status"
28800      if test "yes" = "yes" ; then
28801        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},status"
28802      fi
28803      ;;
28804    esac
28805
28806
28807  if test -z ""; then
28808    objects="mod_status.lo"
28809  else
28810    objects=""
28811  fi
28812
28813  if test -z "$module_standalone"; then
28814    if test -z "$shared"; then
28815      # The filename of a convenience library must have a "lib" prefix:
28816      libname="libmod_status.la"
28817      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28818      modpath_static="$modpath_static $libname"
28819      cat >>$modpath_current/modules.mk<<EOF
28820$libname: $objects
28821	\$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
28822EOF
28823      if test ! -z "\$(MOD_STATUS_LDADD)"; then
28824
28825  if test "x$AP_LIBS" = "x"; then
28826    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_STATUS_LDADD)\""
28827    AP_LIBS="\$(MOD_STATUS_LDADD)"
28828  else
28829    apr_addto_bugger="\$(MOD_STATUS_LDADD)"
28830    for i in $apr_addto_bugger; do
28831      apr_addto_duplicate="0"
28832      for j in $AP_LIBS; do
28833        if test "x$i" = "x$j"; then
28834          apr_addto_duplicate="1"
28835          break
28836        fi
28837      done
28838      if test $apr_addto_duplicate = "0"; then
28839        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28840        AP_LIBS="$AP_LIBS $i"
28841      fi
28842    done
28843  fi
28844
28845      fi
28846    else
28847      apache_need_shared=yes
28848      libname="mod_status.la"
28849      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28850      modpath_shared="$modpath_shared $libname"
28851      cat >>$modpath_current/modules.mk<<EOF
28852$libname: $shobjects
28853	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_STATUS_LDADD)
28854EOF
28855    fi
28856  fi
28857
28858
28859  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"
28860
28861
28862
28863  fi
28864
28865
28866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_autoindex" >&5
28867$as_echo_n "checking whether to enable mod_autoindex... " >&6; }
28868    # Check whether --enable-autoindex was given.
28869if test "${enable_autoindex+set}" = set; then :
28870  enableval=$enable_autoindex; force_autoindex=$enableval
28871else
28872  enable_autoindex=yes
28873fi
28874
28875    _apmod_extra_msg=""
28876        case "$enable_autoindex" in
28877    yes|static|shared)
28878      _apmod_required="yes"
28879      ;;
28880    *)
28881      case "$module_selection" in
28882      reallyall|all|most)
28883        _apmod_required="no"
28884        ;;
28885      *)
28886        _apmod_required="yes"
28887        ;;
28888      esac
28889  esac
28890  if test "$enable_autoindex" = "static"; then
28891    enable_autoindex=static
28892  elif test "$enable_autoindex" = "yes"; then
28893    enable_autoindex=$module_default
28894  elif test "$enable_autoindex" = "most"; then
28895    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28896            "$module_selection" = "reallyall"
28897    then
28898      enable_autoindex=$module_default
28899    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28900      enable_autoindex=no
28901    fi
28902    _apmod_extra_msg=" ($module_selection)"
28903  elif test "$enable_autoindex" = "maybe-all"; then
28904    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28905    then
28906      enable_autoindex=$module_default
28907      _apmod_extra_msg=" ($module_selection)"
28908    else
28909      enable_autoindex=no
28910    fi
28911  elif test "$enable_autoindex" = "no" -a "$module_selection" = "reallyall" -a \
28912            "$force_autoindex" != "no" ; then
28913      enable_autoindex=$module_default
28914      _apmod_extra_msg=" ($module_selection)"
28915  fi
28916  if test "$enable_autoindex" != "no"; then
28917            :
28918  fi
28919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoindex$_apmod_extra_msg" >&5
28920$as_echo "$enable_autoindex$_apmod_extra_msg" >&6; }
28921  if test "$enable_autoindex" != "no"; then
28922    case "$enable_autoindex" in
28923    static*)
28924      MODLIST="$MODLIST autoindex"
28925      if test "autoindex" = "so"; then
28926          sharedobjs=yes
28927      fi
28928      shared="";;
28929    *)
28930      enable_autoindex=`echo $enable_autoindex|sed 's/shared,*//'`
28931      sharedobjs=yes
28932      shared=yes
28933      DSO_MODULES="$DSO_MODULES autoindex"
28934      if test "yes" = "yes" ; then
28935        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},autoindex"
28936      fi
28937      ;;
28938    esac
28939
28940
28941  if test -z ""; then
28942    objects="mod_autoindex.lo"
28943  else
28944    objects=""
28945  fi
28946
28947  if test -z "$module_standalone"; then
28948    if test -z "$shared"; then
28949      # The filename of a convenience library must have a "lib" prefix:
28950      libname="libmod_autoindex.la"
28951      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28952      modpath_static="$modpath_static $libname"
28953      cat >>$modpath_current/modules.mk<<EOF
28954$libname: $objects
28955	\$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
28956EOF
28957      if test ! -z "\$(MOD_AUTOINDEX_LDADD)"; then
28958
28959  if test "x$AP_LIBS" = "x"; then
28960    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTOINDEX_LDADD)\""
28961    AP_LIBS="\$(MOD_AUTOINDEX_LDADD)"
28962  else
28963    apr_addto_bugger="\$(MOD_AUTOINDEX_LDADD)"
28964    for i in $apr_addto_bugger; do
28965      apr_addto_duplicate="0"
28966      for j in $AP_LIBS; do
28967        if test "x$i" = "x$j"; then
28968          apr_addto_duplicate="1"
28969          break
28970        fi
28971      done
28972      if test $apr_addto_duplicate = "0"; then
28973        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28974        AP_LIBS="$AP_LIBS $i"
28975      fi
28976    done
28977  fi
28978
28979      fi
28980    else
28981      apache_need_shared=yes
28982      libname="mod_autoindex.la"
28983      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28984      modpath_shared="$modpath_shared $libname"
28985      cat >>$modpath_current/modules.mk<<EOF
28986$libname: $shobjects
28987	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTOINDEX_LDADD)
28988EOF
28989    fi
28990  fi
28991
28992
28993  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"
28994
28995
28996
28997  fi
28998
28999
29000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_asis" >&5
29001$as_echo_n "checking whether to enable mod_asis... " >&6; }
29002    # Check whether --enable-asis was given.
29003if test "${enable_asis+set}" = set; then :
29004  enableval=$enable_asis; force_asis=$enableval
29005else
29006  enable_asis=maybe-all
29007fi
29008
29009    _apmod_extra_msg=""
29010        case "$enable_asis" in
29011    yes|static|shared)
29012      _apmod_required="yes"
29013      ;;
29014    *)
29015      case "$module_selection" in
29016      reallyall|all|most)
29017        _apmod_required="no"
29018        ;;
29019      *)
29020        _apmod_required="yes"
29021        ;;
29022      esac
29023  esac
29024  if test "$enable_asis" = "static"; then
29025    enable_asis=static
29026  elif test "$enable_asis" = "yes"; then
29027    enable_asis=$module_default
29028  elif test "$enable_asis" = "most"; then
29029    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29030            "$module_selection" = "reallyall"
29031    then
29032      enable_asis=$module_default
29033    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29034      enable_asis=no
29035    fi
29036    _apmod_extra_msg=" ($module_selection)"
29037  elif test "$enable_asis" = "maybe-all"; then
29038    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29039    then
29040      enable_asis=$module_default
29041      _apmod_extra_msg=" ($module_selection)"
29042    else
29043      enable_asis=no
29044    fi
29045  elif test "$enable_asis" = "no" -a "$module_selection" = "reallyall" -a \
29046            "$force_asis" != "no" ; then
29047      enable_asis=$module_default
29048      _apmod_extra_msg=" ($module_selection)"
29049  fi
29050  if test "$enable_asis" != "no"; then
29051            :
29052  fi
29053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_asis$_apmod_extra_msg" >&5
29054$as_echo "$enable_asis$_apmod_extra_msg" >&6; }
29055  if test "$enable_asis" != "no"; then
29056    case "$enable_asis" in
29057    static*)
29058      MODLIST="$MODLIST asis"
29059      if test "asis" = "so"; then
29060          sharedobjs=yes
29061      fi
29062      shared="";;
29063    *)
29064      enable_asis=`echo $enable_asis|sed 's/shared,*//'`
29065      sharedobjs=yes
29066      shared=yes
29067      DSO_MODULES="$DSO_MODULES asis"
29068      if test "" = "yes" ; then
29069        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},asis"
29070      fi
29071      ;;
29072    esac
29073
29074
29075  if test -z ""; then
29076    objects="mod_asis.lo"
29077  else
29078    objects=""
29079  fi
29080
29081  if test -z "$module_standalone"; then
29082    if test -z "$shared"; then
29083      # The filename of a convenience library must have a "lib" prefix:
29084      libname="libmod_asis.la"
29085      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29086      modpath_static="$modpath_static $libname"
29087      cat >>$modpath_current/modules.mk<<EOF
29088$libname: $objects
29089	\$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
29090EOF
29091      if test ! -z "\$(MOD_ASIS_LDADD)"; then
29092
29093  if test "x$AP_LIBS" = "x"; then
29094    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ASIS_LDADD)\""
29095    AP_LIBS="\$(MOD_ASIS_LDADD)"
29096  else
29097    apr_addto_bugger="\$(MOD_ASIS_LDADD)"
29098    for i in $apr_addto_bugger; do
29099      apr_addto_duplicate="0"
29100      for j in $AP_LIBS; do
29101        if test "x$i" = "x$j"; then
29102          apr_addto_duplicate="1"
29103          break
29104        fi
29105      done
29106      if test $apr_addto_duplicate = "0"; then
29107        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29108        AP_LIBS="$AP_LIBS $i"
29109      fi
29110    done
29111  fi
29112
29113      fi
29114    else
29115      apache_need_shared=yes
29116      libname="mod_asis.la"
29117      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29118      modpath_shared="$modpath_shared $libname"
29119      cat >>$modpath_current/modules.mk<<EOF
29120$libname: $shobjects
29121	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ASIS_LDADD)
29122EOF
29123    fi
29124  fi
29125
29126
29127  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"
29128
29129
29130
29131  fi
29132
29133
29134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_info" >&5
29135$as_echo_n "checking whether to enable mod_info... " >&6; }
29136    # Check whether --enable-info was given.
29137if test "${enable_info+set}" = set; then :
29138  enableval=$enable_info; force_info=$enableval
29139else
29140  enable_info=most
29141fi
29142
29143    _apmod_extra_msg=""
29144        case "$enable_info" in
29145    yes|static|shared)
29146      _apmod_required="yes"
29147      ;;
29148    *)
29149      case "$module_selection" in
29150      reallyall|all|most)
29151        _apmod_required="no"
29152        ;;
29153      *)
29154        _apmod_required="yes"
29155        ;;
29156      esac
29157  esac
29158  if test "$enable_info" = "static"; then
29159    enable_info=static
29160  elif test "$enable_info" = "yes"; then
29161    enable_info=$module_default
29162  elif test "$enable_info" = "most"; then
29163    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29164            "$module_selection" = "reallyall"
29165    then
29166      enable_info=$module_default
29167    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29168      enable_info=no
29169    fi
29170    _apmod_extra_msg=" ($module_selection)"
29171  elif test "$enable_info" = "maybe-all"; then
29172    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29173    then
29174      enable_info=$module_default
29175      _apmod_extra_msg=" ($module_selection)"
29176    else
29177      enable_info=no
29178    fi
29179  elif test "$enable_info" = "no" -a "$module_selection" = "reallyall" -a \
29180            "$force_info" != "no" ; then
29181      enable_info=$module_default
29182      _apmod_extra_msg=" ($module_selection)"
29183  fi
29184  if test "$enable_info" != "no"; then
29185            :
29186  fi
29187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_info$_apmod_extra_msg" >&5
29188$as_echo "$enable_info$_apmod_extra_msg" >&6; }
29189  if test "$enable_info" != "no"; then
29190    case "$enable_info" in
29191    static*)
29192      MODLIST="$MODLIST info"
29193      if test "info" = "so"; then
29194          sharedobjs=yes
29195      fi
29196      shared="";;
29197    *)
29198      enable_info=`echo $enable_info|sed 's/shared,*//'`
29199      sharedobjs=yes
29200      shared=yes
29201      DSO_MODULES="$DSO_MODULES info"
29202      if test "most" = "yes" ; then
29203        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},info"
29204      fi
29205      ;;
29206    esac
29207
29208
29209  if test -z ""; then
29210    objects="mod_info.lo"
29211  else
29212    objects=""
29213  fi
29214
29215  if test -z "$module_standalone"; then
29216    if test -z "$shared"; then
29217      # The filename of a convenience library must have a "lib" prefix:
29218      libname="libmod_info.la"
29219      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29220      modpath_static="$modpath_static $libname"
29221      cat >>$modpath_current/modules.mk<<EOF
29222$libname: $objects
29223	\$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
29224EOF
29225      if test ! -z "\$(MOD_INFO_LDADD)"; then
29226
29227  if test "x$AP_LIBS" = "x"; then
29228    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INFO_LDADD)\""
29229    AP_LIBS="\$(MOD_INFO_LDADD)"
29230  else
29231    apr_addto_bugger="\$(MOD_INFO_LDADD)"
29232    for i in $apr_addto_bugger; do
29233      apr_addto_duplicate="0"
29234      for j in $AP_LIBS; do
29235        if test "x$i" = "x$j"; then
29236          apr_addto_duplicate="1"
29237          break
29238        fi
29239      done
29240      if test $apr_addto_duplicate = "0"; then
29241        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29242        AP_LIBS="$AP_LIBS $i"
29243      fi
29244    done
29245  fi
29246
29247      fi
29248    else
29249      apache_need_shared=yes
29250      libname="mod_info.la"
29251      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29252      modpath_shared="$modpath_shared $libname"
29253      cat >>$modpath_current/modules.mk<<EOF
29254$libname: $shobjects
29255	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INFO_LDADD)
29256EOF
29257    fi
29258  fi
29259
29260
29261  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"
29262
29263
29264
29265  fi
29266
29267
29268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
29269$as_echo_n "checking whether to enable mod_suexec... " >&6; }
29270    # Check whether --enable-suexec was given.
29271if test "${enable_suexec+set}" = set; then :
29272  enableval=$enable_suexec; force_suexec=$enableval
29273else
29274  enable_suexec=no
29275fi
29276
29277    _apmod_extra_msg=""
29278        case "$enable_suexec" in
29279    yes|static|shared)
29280      _apmod_required="yes"
29281      ;;
29282    *)
29283      case "$module_selection" in
29284      reallyall|all|most)
29285        _apmod_required="no"
29286        ;;
29287      *)
29288        _apmod_required="yes"
29289        ;;
29290      esac
29291  esac
29292  if test "$enable_suexec" = "static"; then
29293    enable_suexec=static
29294  elif test "$enable_suexec" = "yes"; then
29295    enable_suexec=$module_default
29296  elif test "$enable_suexec" = "most"; then
29297    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29298            "$module_selection" = "reallyall"
29299    then
29300      enable_suexec=$module_default
29301    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29302      enable_suexec=no
29303    fi
29304    _apmod_extra_msg=" ($module_selection)"
29305  elif test "$enable_suexec" = "maybe-all"; then
29306    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29307    then
29308      enable_suexec=$module_default
29309      _apmod_extra_msg=" ($module_selection)"
29310    else
29311      enable_suexec=no
29312    fi
29313  elif test "$enable_suexec" = "no" -a "$module_selection" = "reallyall" -a \
29314            "$force_suexec" != "no" ; then
29315      enable_suexec=$module_default
29316      _apmod_extra_msg=" ($module_selection)"
29317  fi
29318  if test "$enable_suexec" != "no"; then
29319            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
29320$as_echo "checking dependencies" >&6; }
29321            :
29322
29323              other_targets=suexec
29324            :
29325            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
29326$as_echo_n "checking whether to enable mod_suexec... " >&6; }
29327            if test "$enable_suexec" = "no"; then
29328              if test "$_apmod_required" = "no"; then
29329                _apmod_extra_msg=" (disabled)"
29330              else
29331                as_fn_error $? "mod_suexec has been requested but can not be built due to prerequisite failures" "$LINENO" 5
29332              fi
29333            fi
29334  fi
29335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_suexec$_apmod_extra_msg" >&5
29336$as_echo "$enable_suexec$_apmod_extra_msg" >&6; }
29337  if test "$enable_suexec" != "no"; then
29338    case "$enable_suexec" in
29339    static*)
29340      MODLIST="$MODLIST suexec"
29341      if test "suexec" = "so"; then
29342          sharedobjs=yes
29343      fi
29344      shared="";;
29345    *)
29346      enable_suexec=`echo $enable_suexec|sed 's/shared,*//'`
29347      sharedobjs=yes
29348      shared=yes
29349      DSO_MODULES="$DSO_MODULES suexec"
29350      if test "no" = "yes" ; then
29351        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},suexec"
29352      fi
29353      ;;
29354    esac
29355
29356
29357  if test -z ""; then
29358    objects="mod_suexec.lo"
29359  else
29360    objects=""
29361  fi
29362
29363  if test -z "$module_standalone"; then
29364    if test -z "$shared"; then
29365      # The filename of a convenience library must have a "lib" prefix:
29366      libname="libmod_suexec.la"
29367      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29368      modpath_static="$modpath_static $libname"
29369      cat >>$modpath_current/modules.mk<<EOF
29370$libname: $objects
29371	\$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
29372EOF
29373      if test ! -z "\$(MOD_SUEXEC_LDADD)"; then
29374
29375  if test "x$AP_LIBS" = "x"; then
29376    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUEXEC_LDADD)\""
29377    AP_LIBS="\$(MOD_SUEXEC_LDADD)"
29378  else
29379    apr_addto_bugger="\$(MOD_SUEXEC_LDADD)"
29380    for i in $apr_addto_bugger; do
29381      apr_addto_duplicate="0"
29382      for j in $AP_LIBS; do
29383        if test "x$i" = "x$j"; then
29384          apr_addto_duplicate="1"
29385          break
29386        fi
29387      done
29388      if test $apr_addto_duplicate = "0"; then
29389        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29390        AP_LIBS="$AP_LIBS $i"
29391      fi
29392    done
29393  fi
29394
29395      fi
29396    else
29397      apache_need_shared=yes
29398      libname="mod_suexec.la"
29399      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29400      modpath_shared="$modpath_shared $libname"
29401      cat >>$modpath_current/modules.mk<<EOF
29402$libname: $shobjects
29403	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUEXEC_LDADD)
29404EOF
29405    fi
29406  fi
29407
29408
29409  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"
29410
29411
29412
29413  fi
29414
29415
29416# Is mod_cgid needed?
29417case $host in
29418    *mingw*)
29419                cgid_needed="no"
29420        ;;
29421    *)
29422        if ap_mpm_is_threaded; then
29423                                                cgid_needed="yes"
29424        else
29425                                    cgid_needed="no"
29426        fi
29427        ;;
29428esac
29429
29430if test $cgid_needed = "yes"; then
29431
29432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29433$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29434    # Check whether --enable-cgid was given.
29435if test "${enable_cgid+set}" = set; then :
29436  enableval=$enable_cgid; force_cgid=$enableval
29437else
29438  enable_cgid=most
29439fi
29440
29441    _apmod_extra_msg=""
29442        case "$enable_cgid" in
29443    yes|static|shared)
29444      _apmod_required="yes"
29445      ;;
29446    *)
29447      case "$module_selection" in
29448      reallyall|all|most)
29449        _apmod_required="no"
29450        ;;
29451      *)
29452        _apmod_required="yes"
29453        ;;
29454      esac
29455  esac
29456  if test "$enable_cgid" = "static"; then
29457    enable_cgid=static
29458  elif test "$enable_cgid" = "yes"; then
29459    enable_cgid=$module_default
29460  elif test "$enable_cgid" = "most"; then
29461    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29462            "$module_selection" = "reallyall"
29463    then
29464      enable_cgid=$module_default
29465    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29466      enable_cgid=no
29467    fi
29468    _apmod_extra_msg=" ($module_selection)"
29469  elif test "$enable_cgid" = "maybe-all"; then
29470    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29471    then
29472      enable_cgid=$module_default
29473      _apmod_extra_msg=" ($module_selection)"
29474    else
29475      enable_cgid=no
29476    fi
29477  elif test "$enable_cgid" = "no" -a "$module_selection" = "reallyall" -a \
29478            "$force_cgid" != "no" ; then
29479      enable_cgid=$module_default
29480      _apmod_extra_msg=" ($module_selection)"
29481  fi
29482  if test "$enable_cgid" != "no"; then
29483            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
29484$as_echo "checking dependencies" >&6; }
29485            :
29486
29487    case $host in
29488      *-solaris2*)
29489        case `uname -r` in
29490          5.10)
29491                    case `uname -p` in
29492            i386)
29493              patch_id="120665"
29494              ;;
29495            sparc)
29496              patch_id="120664"
29497              ;;
29498            *)
29499              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown platform" >&5
29500$as_echo "$as_me: WARNING: Unknown platform" >&2;}
29501              patch_id="120664"
29502              ;;
29503          esac
29504          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris patch $patch_id" >&5
29505$as_echo_n "checking for Solaris patch $patch_id... " >&6; }
29506          showrev -p | grep "$patch_id" >/dev/null 2>&1
29507          if test $? -eq 1; then
29508                              as_fn_error $? "Please apply either patch # 120664 (Sparc) or # 120665 (x86).
29509Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
29510bug with AF_UNIX sockets.
29511If you can not apply these patches, you can do one of the following:
29512 - run configure with --disable-cgid
29513 - switch to the prefork MPM
29514For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" "$LINENO" 5
29515          else
29516            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29517$as_echo "yes" >&6; }
29518          fi
29519          ;;
29520        esac
29521        ;;
29522    esac
29523
29524            :
29525            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29526$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29527            if test "$enable_cgid" = "no"; then
29528              if test "$_apmod_required" = "no"; then
29529                _apmod_extra_msg=" (disabled)"
29530              else
29531                as_fn_error $? "mod_cgid has been requested but can not be built due to prerequisite failures" "$LINENO" 5
29532              fi
29533            fi
29534  fi
29535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
29536$as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
29537  if test "$enable_cgid" != "no"; then
29538    case "$enable_cgid" in
29539    static*)
29540      MODLIST="$MODLIST cgid"
29541      if test "cgid" = "so"; then
29542          sharedobjs=yes
29543      fi
29544      shared="";;
29545    *)
29546      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
29547      sharedobjs=yes
29548      shared=yes
29549      DSO_MODULES="$DSO_MODULES cgid"
29550      if test "most" = "yes" ; then
29551        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
29552      fi
29553      ;;
29554    esac
29555
29556
29557  if test -z ""; then
29558    objects="mod_cgid.lo"
29559  else
29560    objects=""
29561  fi
29562
29563  if test -z "$module_standalone"; then
29564    if test -z "$shared"; then
29565      # The filename of a convenience library must have a "lib" prefix:
29566      libname="libmod_cgid.la"
29567      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29568      modpath_static="$modpath_static $libname"
29569      cat >>$modpath_current/modules.mk<<EOF
29570$libname: $objects
29571	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
29572EOF
29573      if test ! -z "\$(MOD_CGID_LDADD)"; then
29574
29575  if test "x$AP_LIBS" = "x"; then
29576    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
29577    AP_LIBS="\$(MOD_CGID_LDADD)"
29578  else
29579    apr_addto_bugger="\$(MOD_CGID_LDADD)"
29580    for i in $apr_addto_bugger; do
29581      apr_addto_duplicate="0"
29582      for j in $AP_LIBS; do
29583        if test "x$i" = "x$j"; then
29584          apr_addto_duplicate="1"
29585          break
29586        fi
29587      done
29588      if test $apr_addto_duplicate = "0"; then
29589        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29590        AP_LIBS="$AP_LIBS $i"
29591      fi
29592    done
29593  fi
29594
29595      fi
29596    else
29597      apache_need_shared=yes
29598      libname="mod_cgid.la"
29599      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29600      modpath_shared="$modpath_shared $libname"
29601      cat >>$modpath_current/modules.mk<<EOF
29602$libname: $shobjects
29603	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
29604EOF
29605    fi
29606  fi
29607
29608
29609  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
29610
29611
29612
29613  fi
29614
29615
29616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
29617$as_echo_n "checking whether to enable mod_cgi... " >&6; }
29618    # Check whether --enable-cgi was given.
29619if test "${enable_cgi+set}" = set; then :
29620  enableval=$enable_cgi; force_cgi=$enableval
29621else
29622  enable_cgi=no
29623fi
29624
29625    _apmod_extra_msg=""
29626        case "$enable_cgi" in
29627    yes|static|shared)
29628      _apmod_required="yes"
29629      ;;
29630    *)
29631      case "$module_selection" in
29632      reallyall|all|most)
29633        _apmod_required="no"
29634        ;;
29635      *)
29636        _apmod_required="yes"
29637        ;;
29638      esac
29639  esac
29640  if test "$enable_cgi" = "static"; then
29641    enable_cgi=static
29642  elif test "$enable_cgi" = "yes"; then
29643    enable_cgi=$module_default
29644  elif test "$enable_cgi" = "most"; then
29645    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29646            "$module_selection" = "reallyall"
29647    then
29648      enable_cgi=$module_default
29649    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29650      enable_cgi=no
29651    fi
29652    _apmod_extra_msg=" ($module_selection)"
29653  elif test "$enable_cgi" = "maybe-all"; then
29654    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29655    then
29656      enable_cgi=$module_default
29657      _apmod_extra_msg=" ($module_selection)"
29658    else
29659      enable_cgi=no
29660    fi
29661  elif test "$enable_cgi" = "no" -a "$module_selection" = "reallyall" -a \
29662            "$force_cgi" != "no" ; then
29663      enable_cgi=$module_default
29664      _apmod_extra_msg=" ($module_selection)"
29665  fi
29666  if test "$enable_cgi" != "no"; then
29667            :
29668  fi
29669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
29670$as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
29671  if test "$enable_cgi" != "no"; then
29672    case "$enable_cgi" in
29673    static*)
29674      MODLIST="$MODLIST cgi"
29675      if test "cgi" = "so"; then
29676          sharedobjs=yes
29677      fi
29678      shared="";;
29679    *)
29680      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
29681      sharedobjs=yes
29682      shared=yes
29683      DSO_MODULES="$DSO_MODULES cgi"
29684      if test "no" = "yes" ; then
29685        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
29686      fi
29687      ;;
29688    esac
29689
29690
29691  if test -z ""; then
29692    objects="mod_cgi.lo"
29693  else
29694    objects=""
29695  fi
29696
29697  if test -z "$module_standalone"; then
29698    if test -z "$shared"; then
29699      # The filename of a convenience library must have a "lib" prefix:
29700      libname="libmod_cgi.la"
29701      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29702      modpath_static="$modpath_static $libname"
29703      cat >>$modpath_current/modules.mk<<EOF
29704$libname: $objects
29705	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
29706EOF
29707      if test ! -z "\$(MOD_CGI_LDADD)"; then
29708
29709  if test "x$AP_LIBS" = "x"; then
29710    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
29711    AP_LIBS="\$(MOD_CGI_LDADD)"
29712  else
29713    apr_addto_bugger="\$(MOD_CGI_LDADD)"
29714    for i in $apr_addto_bugger; do
29715      apr_addto_duplicate="0"
29716      for j in $AP_LIBS; do
29717        if test "x$i" = "x$j"; then
29718          apr_addto_duplicate="1"
29719          break
29720        fi
29721      done
29722      if test $apr_addto_duplicate = "0"; then
29723        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29724        AP_LIBS="$AP_LIBS $i"
29725      fi
29726    done
29727  fi
29728
29729      fi
29730    else
29731      apache_need_shared=yes
29732      libname="mod_cgi.la"
29733      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29734      modpath_shared="$modpath_shared $libname"
29735      cat >>$modpath_current/modules.mk<<EOF
29736$libname: $shobjects
29737	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
29738EOF
29739    fi
29740  fi
29741
29742
29743  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
29744
29745
29746
29747  fi
29748
29749else
29750
29751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
29752$as_echo_n "checking whether to enable mod_cgi... " >&6; }
29753    # Check whether --enable-cgi was given.
29754if test "${enable_cgi+set}" = set; then :
29755  enableval=$enable_cgi; force_cgi=$enableval
29756else
29757  enable_cgi=most
29758fi
29759
29760    _apmod_extra_msg=""
29761        case "$enable_cgi" in
29762    yes|static|shared)
29763      _apmod_required="yes"
29764      ;;
29765    *)
29766      case "$module_selection" in
29767      reallyall|all|most)
29768        _apmod_required="no"
29769        ;;
29770      *)
29771        _apmod_required="yes"
29772        ;;
29773      esac
29774  esac
29775  if test "$enable_cgi" = "static"; then
29776    enable_cgi=static
29777  elif test "$enable_cgi" = "yes"; then
29778    enable_cgi=$module_default
29779  elif test "$enable_cgi" = "most"; then
29780    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29781            "$module_selection" = "reallyall"
29782    then
29783      enable_cgi=$module_default
29784    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29785      enable_cgi=no
29786    fi
29787    _apmod_extra_msg=" ($module_selection)"
29788  elif test "$enable_cgi" = "maybe-all"; then
29789    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29790    then
29791      enable_cgi=$module_default
29792      _apmod_extra_msg=" ($module_selection)"
29793    else
29794      enable_cgi=no
29795    fi
29796  elif test "$enable_cgi" = "no" -a "$module_selection" = "reallyall" -a \
29797            "$force_cgi" != "no" ; then
29798      enable_cgi=$module_default
29799      _apmod_extra_msg=" ($module_selection)"
29800  fi
29801  if test "$enable_cgi" != "no"; then
29802            :
29803  fi
29804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
29805$as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
29806  if test "$enable_cgi" != "no"; then
29807    case "$enable_cgi" in
29808    static*)
29809      MODLIST="$MODLIST cgi"
29810      if test "cgi" = "so"; then
29811          sharedobjs=yes
29812      fi
29813      shared="";;
29814    *)
29815      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
29816      sharedobjs=yes
29817      shared=yes
29818      DSO_MODULES="$DSO_MODULES cgi"
29819      if test "most" = "yes" ; then
29820        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
29821      fi
29822      ;;
29823    esac
29824
29825
29826  if test -z ""; then
29827    objects="mod_cgi.lo"
29828  else
29829    objects=""
29830  fi
29831
29832  if test -z "$module_standalone"; then
29833    if test -z "$shared"; then
29834      # The filename of a convenience library must have a "lib" prefix:
29835      libname="libmod_cgi.la"
29836      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29837      modpath_static="$modpath_static $libname"
29838      cat >>$modpath_current/modules.mk<<EOF
29839$libname: $objects
29840	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
29841EOF
29842      if test ! -z "\$(MOD_CGI_LDADD)"; then
29843
29844  if test "x$AP_LIBS" = "x"; then
29845    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
29846    AP_LIBS="\$(MOD_CGI_LDADD)"
29847  else
29848    apr_addto_bugger="\$(MOD_CGI_LDADD)"
29849    for i in $apr_addto_bugger; do
29850      apr_addto_duplicate="0"
29851      for j in $AP_LIBS; do
29852        if test "x$i" = "x$j"; then
29853          apr_addto_duplicate="1"
29854          break
29855        fi
29856      done
29857      if test $apr_addto_duplicate = "0"; then
29858        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29859        AP_LIBS="$AP_LIBS $i"
29860      fi
29861    done
29862  fi
29863
29864      fi
29865    else
29866      apache_need_shared=yes
29867      libname="mod_cgi.la"
29868      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29869      modpath_shared="$modpath_shared $libname"
29870      cat >>$modpath_current/modules.mk<<EOF
29871$libname: $shobjects
29872	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
29873EOF
29874    fi
29875  fi
29876
29877
29878  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
29879
29880
29881
29882  fi
29883
29884
29885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29886$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29887    # Check whether --enable-cgid was given.
29888if test "${enable_cgid+set}" = set; then :
29889  enableval=$enable_cgid; force_cgid=$enableval
29890else
29891  enable_cgid=no
29892fi
29893
29894    _apmod_extra_msg=""
29895        case "$enable_cgid" in
29896    yes|static|shared)
29897      _apmod_required="yes"
29898      ;;
29899    *)
29900      case "$module_selection" in
29901      reallyall|all|most)
29902        _apmod_required="no"
29903        ;;
29904      *)
29905        _apmod_required="yes"
29906        ;;
29907      esac
29908  esac
29909  if test "$enable_cgid" = "static"; then
29910    enable_cgid=static
29911  elif test "$enable_cgid" = "yes"; then
29912    enable_cgid=$module_default
29913  elif test "$enable_cgid" = "most"; then
29914    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29915            "$module_selection" = "reallyall"
29916    then
29917      enable_cgid=$module_default
29918    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29919      enable_cgid=no
29920    fi
29921    _apmod_extra_msg=" ($module_selection)"
29922  elif test "$enable_cgid" = "maybe-all"; then
29923    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29924    then
29925      enable_cgid=$module_default
29926      _apmod_extra_msg=" ($module_selection)"
29927    else
29928      enable_cgid=no
29929    fi
29930  elif test "$enable_cgid" = "no" -a "$module_selection" = "reallyall" -a \
29931            "$force_cgid" != "no" ; then
29932      enable_cgid=$module_default
29933      _apmod_extra_msg=" ($module_selection)"
29934  fi
29935  if test "$enable_cgid" != "no"; then
29936            :
29937  fi
29938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
29939$as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
29940  if test "$enable_cgid" != "no"; then
29941    case "$enable_cgid" in
29942    static*)
29943      MODLIST="$MODLIST cgid"
29944      if test "cgid" = "so"; then
29945          sharedobjs=yes
29946      fi
29947      shared="";;
29948    *)
29949      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
29950      sharedobjs=yes
29951      shared=yes
29952      DSO_MODULES="$DSO_MODULES cgid"
29953      if test "no" = "yes" ; then
29954        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
29955      fi
29956      ;;
29957    esac
29958
29959
29960  if test -z ""; then
29961    objects="mod_cgid.lo"
29962  else
29963    objects=""
29964  fi
29965
29966  if test -z "$module_standalone"; then
29967    if test -z "$shared"; then
29968      # The filename of a convenience library must have a "lib" prefix:
29969      libname="libmod_cgid.la"
29970      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29971      modpath_static="$modpath_static $libname"
29972      cat >>$modpath_current/modules.mk<<EOF
29973$libname: $objects
29974	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
29975EOF
29976      if test ! -z "\$(MOD_CGID_LDADD)"; then
29977
29978  if test "x$AP_LIBS" = "x"; then
29979    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
29980    AP_LIBS="\$(MOD_CGID_LDADD)"
29981  else
29982    apr_addto_bugger="\$(MOD_CGID_LDADD)"
29983    for i in $apr_addto_bugger; do
29984      apr_addto_duplicate="0"
29985      for j in $AP_LIBS; do
29986        if test "x$i" = "x$j"; then
29987          apr_addto_duplicate="1"
29988          break
29989        fi
29990      done
29991      if test $apr_addto_duplicate = "0"; then
29992        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29993        AP_LIBS="$AP_LIBS $i"
29994      fi
29995    done
29996  fi
29997
29998      fi
29999    else
30000      apache_need_shared=yes
30001      libname="mod_cgid.la"
30002      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30003      modpath_shared="$modpath_shared $libname"
30004      cat >>$modpath_current/modules.mk<<EOF
30005$libname: $shobjects
30006	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
30007EOF
30008    fi
30009  fi
30010
30011
30012  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
30013
30014
30015
30016  fi
30017
30018fi
30019
30020
30021  if test "x$INCLUDES" = "x"; then
30022    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
30023    INCLUDES="-I\$(top_srcdir)/$modpath_current"
30024  else
30025    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
30026    for i in $apr_addto_bugger; do
30027      apr_addto_duplicate="0"
30028      for j in $INCLUDES; do
30029        if test "x$i" = "x$j"; then
30030          apr_addto_duplicate="1"
30031          break
30032        fi
30033      done
30034      if test $apr_addto_duplicate = "0"; then
30035        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
30036        INCLUDES="$INCLUDES $i"
30037      fi
30038    done
30039  fi
30040
30041
30042
30043  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30044  echo "static = $modpath_static" >> $modpath_current/modules.mk
30045  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30046  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30047    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30048      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30049    fi
30050  done
30051  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30052    MODULE_DIRS="$MODULE_DIRS $current_dir"
30053  else
30054    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30055  fi
30056
30057  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30058
30059
30060
30061
30062    if ap_mpm_is_enabled mpmt_os2; then
30063        if test -z "mpmt_os2.lo mpmt_os2_child.lo"; then
30064            objects="mpmt_os2.lo"
30065        else
30066            objects="mpmt_os2.lo mpmt_os2_child.lo"
30067        fi
30068
30069        if test -z ""; then
30070            mpmpath="server/mpm/mpmt_os2"
30071        else
30072            mpmpath=
30073        fi
30074
30075                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
30076
30077
30078  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
30079
30080
30081        if test -z "$enable_mpm_mpmt_os2"; then
30082
30083  if test "x$AP_LIBS" = "x"; then
30084    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
30085    AP_LIBS=""
30086  else
30087    apr_addto_bugger=""
30088    for i in $apr_addto_bugger; do
30089      apr_addto_duplicate="0"
30090      for j in $AP_LIBS; do
30091        if test "x$i" = "x$j"; then
30092          apr_addto_duplicate="1"
30093          break
30094        fi
30095      done
30096      if test $apr_addto_duplicate = "0"; then
30097        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30098        AP_LIBS="$AP_LIBS $i"
30099      fi
30100    done
30101  fi
30102
30103            libname="libmpmt_os2.la"
30104            cat >$mpmpath/modules.mk<<EOF
30105$libname: $objects
30106	\$(MOD_LINK) $objects
30107DISTCLEAN_TARGETS = modules.mk
30108static = $libname
30109shared =
30110EOF
30111        else
30112            apache_need_shared=yes
30113            libname="mod_mpm_mpmt_os2.la"
30114            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30115            cat >$mpmpath/modules.mk<<EOF
30116$libname: $shobjects
30117	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
30118DISTCLEAN_TARGETS = modules.mk
30119static =
30120shared = $libname
30121EOF
30122            # add default MPM to LoadModule list
30123            if test mpmt_os2 = $default_mpm; then
30124                DSO_MODULES="$DSO_MODULES mpm_mpmt_os2"
30125                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_mpmt_os2"
30126            fi
30127        fi
30128
30129
30130  if test "x$CFLAGS" = "x"; then
30131    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
30132    CFLAGS="-Zmt"
30133  else
30134    apr_addto_bugger="-Zmt"
30135    for i in $apr_addto_bugger; do
30136      apr_addto_duplicate="0"
30137      for j in $CFLAGS; do
30138        if test "x$i" = "x$j"; then
30139          apr_addto_duplicate="1"
30140          break
30141        fi
30142      done
30143      if test $apr_addto_duplicate = "0"; then
30144        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
30145        CFLAGS="$CFLAGS $i"
30146      fi
30147    done
30148  fi
30149
30150
30151    fi
30152
30153
30154
30155
30156  current_dir=dav/fs
30157  modpath_current=modules/dav/fs
30158  modpath_static=
30159  modpath_shared=
30160  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30161    eval MOD_$var=
30162  done
30163  test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
30164  > $modpath_current/modules.mk
30165
30166
30167dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"
30168
30169if test "x$enable_dav" != "x"; then
30170  dav_fs_enable=$enable_dav
30171else
30172  dav_fs_enable=$dav_enable
30173fi
30174
30175case "$host" in
30176  *os2*)
30177    # OS/2 DLLs must resolve all symbols at build time
30178    # and we need some from main DAV module
30179    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
30180    ;;
30181esac
30182
30183
30184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
30185$as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
30186    # Check whether --enable-dav-fs was given.
30187if test "${enable_dav_fs+set}" = set; then :
30188  enableval=$enable_dav_fs; force_dav_fs=$enableval
30189else
30190  enable_dav_fs=$dav_fs_enable
30191fi
30192
30193    _apmod_extra_msg=""
30194        case "$enable_dav_fs" in
30195    yes|static|shared)
30196      _apmod_required="yes"
30197      ;;
30198    *)
30199      case "$module_selection" in
30200      reallyall|all|most)
30201        _apmod_required="no"
30202        ;;
30203      *)
30204        _apmod_required="yes"
30205        ;;
30206      esac
30207  esac
30208  if test "$enable_dav_fs" = "static"; then
30209    enable_dav_fs=static
30210  elif test "$enable_dav_fs" = "yes"; then
30211    enable_dav_fs=$module_default
30212  elif test "$enable_dav_fs" = "most"; then
30213    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30214            "$module_selection" = "reallyall"
30215    then
30216      enable_dav_fs=$module_default
30217    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30218      enable_dav_fs=no
30219    fi
30220    _apmod_extra_msg=" ($module_selection)"
30221  elif test "$enable_dav_fs" = "maybe-all"; then
30222    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30223    then
30224      enable_dav_fs=$module_default
30225      _apmod_extra_msg=" ($module_selection)"
30226    else
30227      enable_dav_fs=no
30228    fi
30229  elif test "$enable_dav_fs" = "no" -a "$module_selection" = "reallyall" -a \
30230            "$force_dav_fs" != "no" ; then
30231      enable_dav_fs=$module_default
30232      _apmod_extra_msg=" ($module_selection)"
30233  fi
30234  if test "$enable_dav_fs" != "no"; then
30235            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
30236$as_echo "checking dependencies" >&6; }
30237            if test "$enable_dav" = "no" ; then
30238                              enable_dav_fs=no
30239                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&5
30240$as_echo "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&2;}
30241                            elif test "$enable_dav_fs" = "static" && test "$enable_dav" != "static" ; then
30242                              enable_dav_fs=no
30243                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_dav_fs statically if mod_dav is built shared\"" >&5
30244$as_echo "$as_me: WARNING: \"cannot build mod_dav_fs statically if mod_dav is built shared\"" >&2;}
30245                            else
30246            :
30247            fi
30248            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
30249$as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
30250            if test "$enable_dav_fs" = "no"; then
30251              if test "$_apmod_required" = "no"; then
30252                _apmod_extra_msg=" (disabled)"
30253              else
30254                as_fn_error $? "mod_dav_fs has been requested but can not be built due to prerequisite failures" "$LINENO" 5
30255              fi
30256            fi
30257  fi
30258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav_fs$_apmod_extra_msg" >&5
30259$as_echo "$enable_dav_fs$_apmod_extra_msg" >&6; }
30260  if test "$enable_dav_fs" != "no"; then
30261    case "$enable_dav_fs" in
30262    static*)
30263      MODLIST="$MODLIST dav_fs"
30264      if test "dav_fs" = "so"; then
30265          sharedobjs=yes
30266      fi
30267      shared="";;
30268    *)
30269      enable_dav_fs=`echo $enable_dav_fs|sed 's/shared,*//'`
30270      sharedobjs=yes
30271      shared=yes
30272      DSO_MODULES="$DSO_MODULES dav_fs"
30273      if test "$dav_fs_enable" = "yes" ; then
30274        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_fs"
30275      fi
30276      ;;
30277    esac
30278
30279
30280  if test -z "$dav_fs_objects"; then
30281    objects="mod_dav_fs.lo"
30282  else
30283    objects="$dav_fs_objects"
30284  fi
30285
30286  if test -z "$module_standalone"; then
30287    if test -z "$shared"; then
30288      # The filename of a convenience library must have a "lib" prefix:
30289      libname="libmod_dav_fs.la"
30290      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30291      modpath_static="$modpath_static $libname"
30292      cat >>$modpath_current/modules.mk<<EOF
30293$libname: $objects
30294	\$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
30295EOF
30296      if test ! -z "\$(MOD_DAV_FS_LDADD)"; then
30297
30298  if test "x$AP_LIBS" = "x"; then
30299    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_FS_LDADD)\""
30300    AP_LIBS="\$(MOD_DAV_FS_LDADD)"
30301  else
30302    apr_addto_bugger="\$(MOD_DAV_FS_LDADD)"
30303    for i in $apr_addto_bugger; do
30304      apr_addto_duplicate="0"
30305      for j in $AP_LIBS; do
30306        if test "x$i" = "x$j"; then
30307          apr_addto_duplicate="1"
30308          break
30309        fi
30310      done
30311      if test $apr_addto_duplicate = "0"; then
30312        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30313        AP_LIBS="$AP_LIBS $i"
30314      fi
30315    done
30316  fi
30317
30318      fi
30319    else
30320      apache_need_shared=yes
30321      libname="mod_dav_fs.la"
30322      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30323      modpath_shared="$modpath_shared $libname"
30324      cat >>$modpath_current/modules.mk<<EOF
30325$libname: $shobjects
30326	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_FS_LDADD)
30327EOF
30328    fi
30329  fi
30330
30331
30332  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"
30333
30334
30335
30336  fi
30337
30338
30339
30340  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30341  echo "static = $modpath_static" >> $modpath_current/modules.mk
30342  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30343  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30344    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30345      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30346    fi
30347  done
30348  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30349    MODULE_DIRS="$MODULE_DIRS $current_dir"
30350  else
30351    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30352  fi
30353
30354  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30355
30356
30357
30358
30359
30360  current_dir=dav/lock
30361  modpath_current=modules/dav/lock
30362  modpath_static=
30363  modpath_shared=
30364  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30365    eval MOD_$var=
30366  done
30367  test -d dav/lock || $srcdir/build/mkdir.sh $modpath_current
30368  > $modpath_current/modules.mk
30369
30370
30371dav_lock_objects="mod_dav_lock.lo locks.lo"
30372
30373case "$host" in
30374  *os2*)
30375    # OS/2 DLLs must resolve all symbols at build time
30376    # and we need some from main DAV module
30377    dav_lock_objects="$dav_lock_objects ../main/mod_dav.la"
30378    ;;
30379esac
30380
30381
30382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
30383$as_echo_n "checking whether to enable mod_dav_lock... " >&6; }
30384    # Check whether --enable-dav-lock was given.
30385if test "${enable_dav_lock+set}" = set; then :
30386  enableval=$enable_dav_lock; force_dav_lock=$enableval
30387else
30388  enable_dav_lock=maybe-all
30389fi
30390
30391    _apmod_extra_msg=""
30392        case "$enable_dav_lock" in
30393    yes|static|shared)
30394      _apmod_required="yes"
30395      ;;
30396    *)
30397      case "$module_selection" in
30398      reallyall|all|most)
30399        _apmod_required="no"
30400        ;;
30401      *)
30402        _apmod_required="yes"
30403        ;;
30404      esac
30405  esac
30406  if test "$enable_dav_lock" = "static"; then
30407    enable_dav_lock=static
30408  elif test "$enable_dav_lock" = "yes"; then
30409    enable_dav_lock=$module_default
30410  elif test "$enable_dav_lock" = "most"; then
30411    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30412            "$module_selection" = "reallyall"
30413    then
30414      enable_dav_lock=$module_default
30415    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30416      enable_dav_lock=no
30417    fi
30418    _apmod_extra_msg=" ($module_selection)"
30419  elif test "$enable_dav_lock" = "maybe-all"; then
30420    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30421    then
30422      enable_dav_lock=$module_default
30423      _apmod_extra_msg=" ($module_selection)"
30424    else
30425      enable_dav_lock=no
30426    fi
30427  elif test "$enable_dav_lock" = "no" -a "$module_selection" = "reallyall" -a \
30428            "$force_dav_lock" != "no" ; then
30429      enable_dav_lock=$module_default
30430      _apmod_extra_msg=" ($module_selection)"
30431  fi
30432  if test "$enable_dav_lock" != "no"; then
30433            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
30434$as_echo "checking dependencies" >&6; }
30435            if test "$enable_dav" = "no" ; then
30436                              enable_dav_lock=no
30437                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&5
30438$as_echo "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&2;}
30439                            elif test "$enable_dav_lock" = "static" && test "$enable_dav" != "static" ; then
30440                              enable_dav_lock=no
30441                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_dav_lock statically if mod_dav is built shared\"" >&5
30442$as_echo "$as_me: WARNING: \"cannot build mod_dav_lock statically if mod_dav is built shared\"" >&2;}
30443                            else
30444            :
30445            fi
30446            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
30447$as_echo_n "checking whether to enable mod_dav_lock... " >&6; }
30448            if test "$enable_dav_lock" = "no"; then
30449              if test "$_apmod_required" = "no"; then
30450                _apmod_extra_msg=" (disabled)"
30451              else
30452                as_fn_error $? "mod_dav_lock has been requested but can not be built due to prerequisite failures" "$LINENO" 5
30453              fi
30454            fi
30455  fi
30456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav_lock$_apmod_extra_msg" >&5
30457$as_echo "$enable_dav_lock$_apmod_extra_msg" >&6; }
30458  if test "$enable_dav_lock" != "no"; then
30459    case "$enable_dav_lock" in
30460    static*)
30461      MODLIST="$MODLIST dav_lock"
30462      if test "dav_lock" = "so"; then
30463          sharedobjs=yes
30464      fi
30465      shared="";;
30466    *)
30467      enable_dav_lock=`echo $enable_dav_lock|sed 's/shared,*//'`
30468      sharedobjs=yes
30469      shared=yes
30470      DSO_MODULES="$DSO_MODULES dav_lock"
30471      if test "" = "yes" ; then
30472        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_lock"
30473      fi
30474      ;;
30475    esac
30476
30477
30478  if test -z "$dav_lock_objects"; then
30479    objects="mod_dav_lock.lo"
30480  else
30481    objects="$dav_lock_objects"
30482  fi
30483
30484  if test -z "$module_standalone"; then
30485    if test -z "$shared"; then
30486      # The filename of a convenience library must have a "lib" prefix:
30487      libname="libmod_dav_lock.la"
30488      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30489      modpath_static="$modpath_static $libname"
30490      cat >>$modpath_current/modules.mk<<EOF
30491$libname: $objects
30492	\$(MOD_LINK) $objects \$(MOD_DAV_LOCK_LDADD)
30493EOF
30494      if test ! -z "\$(MOD_DAV_LOCK_LDADD)"; then
30495
30496  if test "x$AP_LIBS" = "x"; then
30497    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LOCK_LDADD)\""
30498    AP_LIBS="\$(MOD_DAV_LOCK_LDADD)"
30499  else
30500    apr_addto_bugger="\$(MOD_DAV_LOCK_LDADD)"
30501    for i in $apr_addto_bugger; do
30502      apr_addto_duplicate="0"
30503      for j in $AP_LIBS; do
30504        if test "x$i" = "x$j"; then
30505          apr_addto_duplicate="1"
30506          break
30507        fi
30508      done
30509      if test $apr_addto_duplicate = "0"; then
30510        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30511        AP_LIBS="$AP_LIBS $i"
30512      fi
30513    done
30514  fi
30515
30516      fi
30517    else
30518      apache_need_shared=yes
30519      libname="mod_dav_lock.la"
30520      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30521      modpath_shared="$modpath_shared $libname"
30522      cat >>$modpath_current/modules.mk<<EOF
30523$libname: $shobjects
30524	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LOCK_LDADD)
30525EOF
30526    fi
30527  fi
30528
30529
30530  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LOCK_LDADD"
30531
30532
30533
30534  fi
30535
30536
30537
30538  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30539  echo "static = $modpath_static" >> $modpath_current/modules.mk
30540  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30541  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30542    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30543      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30544    fi
30545  done
30546  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30547    MODULE_DIRS="$MODULE_DIRS $current_dir"
30548  else
30549    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30550  fi
30551
30552  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30553
30554
30555
30556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra modules" >&5
30557$as_echo_n "checking for extra modules... " >&6; }
30558
30559# Check whether --with-module was given.
30560if test "${with_module+set}" = set; then :
30561  withval=$with_module;
30562    withval=`echo $withval | sed -e 's/,/ /g'`
30563    for mod in $withval
30564    do
30565      modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
30566      pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
30567      modfilec=`echo $pkg | sed -e 's;^.*/;;'`
30568      modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
30569      modpath_current="modules/$modtype"
30570      if test "x$mod" != "x$modpath_current/$modfilec"; then
30571        if test ! -d "$modpath_current"; then
30572          mkdir $modpath_current
30573          echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
30574        fi
30575        cp $pkg $modpath_current/$modfilec
30576      fi
30577      module=`echo $pkg | sed -e 's;\(.*/\).*mod_\(.*\).c;\2;'`
30578      objects="mod_$module.lo"
30579      # The filename of a convenience library must have a "lib" prefix:
30580      libname="libmod_$module.la"
30581      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30582      if test ! -s "$modpath_current/modules.mk"; then
30583        cat >>$modpath_current/modules.mk<<EOF
30584$libname: $objects
30585	\$(MOD_LINK) $objects
30586DISTCLEAN_TARGETS = modules.mk
30587static = $libname
30588shared =
30589EOF
30590      else
30591        cat >>$modpath_current/modules.mk.tmp<<EOF
30592$libname: $objects
30593	\$(MOD_LINK) $objects
30594EOF
30595        cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
30596        rm $modpath_current/modules.mk
30597        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
30598        sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
30599        rm $modpath_current/modules.mk
30600        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
30601      fi
30602      MODLIST="$MODLIST $module"
30603      EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
30604      MODULE_DIRS="$MODULE_DIRS $modtype"
30605
30606  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30607
30608    done
30609    if test ! -z "$EXTRA_MODLIST"; then
30610      { $as_echo "$as_me:${as_lineno-$LINENO}: result: added:$EXTRA_MODLIST" >&5
30611$as_echo "added:$EXTRA_MODLIST" >&6; }
30612    fi
30613
30614else
30615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30616$as_echo "none" >&6; }
30617
30618fi
30619
30620
30621
30622
30623
30624  current_dir=mappers
30625  modpath_current=modules/mappers
30626  modpath_static=
30627  modpath_shared=
30628  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30629    eval MOD_$var=
30630  done
30631  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
30632  > $modpath_current/modules.mk
30633
30634
30635
30636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_vhost_alias" >&5
30637$as_echo_n "checking whether to enable mod_vhost_alias... " >&6; }
30638    # Check whether --enable-vhost-alias was given.
30639if test "${enable_vhost_alias+set}" = set; then :
30640  enableval=$enable_vhost_alias; force_vhost_alias=$enableval
30641else
30642  enable_vhost_alias=most
30643fi
30644
30645    _apmod_extra_msg=""
30646        case "$enable_vhost_alias" in
30647    yes|static|shared)
30648      _apmod_required="yes"
30649      ;;
30650    *)
30651      case "$module_selection" in
30652      reallyall|all|most)
30653        _apmod_required="no"
30654        ;;
30655      *)
30656        _apmod_required="yes"
30657        ;;
30658      esac
30659  esac
30660  if test "$enable_vhost_alias" = "static"; then
30661    enable_vhost_alias=static
30662  elif test "$enable_vhost_alias" = "yes"; then
30663    enable_vhost_alias=$module_default
30664  elif test "$enable_vhost_alias" = "most"; then
30665    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30666            "$module_selection" = "reallyall"
30667    then
30668      enable_vhost_alias=$module_default
30669    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30670      enable_vhost_alias=no
30671    fi
30672    _apmod_extra_msg=" ($module_selection)"
30673  elif test "$enable_vhost_alias" = "maybe-all"; then
30674    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30675    then
30676      enable_vhost_alias=$module_default
30677      _apmod_extra_msg=" ($module_selection)"
30678    else
30679      enable_vhost_alias=no
30680    fi
30681  elif test "$enable_vhost_alias" = "no" -a "$module_selection" = "reallyall" -a \
30682            "$force_vhost_alias" != "no" ; then
30683      enable_vhost_alias=$module_default
30684      _apmod_extra_msg=" ($module_selection)"
30685  fi
30686  if test "$enable_vhost_alias" != "no"; then
30687            :
30688  fi
30689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vhost_alias$_apmod_extra_msg" >&5
30690$as_echo "$enable_vhost_alias$_apmod_extra_msg" >&6; }
30691  if test "$enable_vhost_alias" != "no"; then
30692    case "$enable_vhost_alias" in
30693    static*)
30694      MODLIST="$MODLIST vhost_alias"
30695      if test "vhost_alias" = "so"; then
30696          sharedobjs=yes
30697      fi
30698      shared="";;
30699    *)
30700      enable_vhost_alias=`echo $enable_vhost_alias|sed 's/shared,*//'`
30701      sharedobjs=yes
30702      shared=yes
30703      DSO_MODULES="$DSO_MODULES vhost_alias"
30704      if test "most" = "yes" ; then
30705        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},vhost_alias"
30706      fi
30707      ;;
30708    esac
30709
30710
30711  if test -z ""; then
30712    objects="mod_vhost_alias.lo"
30713  else
30714    objects=""
30715  fi
30716
30717  if test -z "$module_standalone"; then
30718    if test -z "$shared"; then
30719      # The filename of a convenience library must have a "lib" prefix:
30720      libname="libmod_vhost_alias.la"
30721      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30722      modpath_static="$modpath_static $libname"
30723      cat >>$modpath_current/modules.mk<<EOF
30724$libname: $objects
30725	\$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
30726EOF
30727      if test ! -z "\$(MOD_VHOST_ALIAS_LDADD)"; then
30728
30729  if test "x$AP_LIBS" = "x"; then
30730    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VHOST_ALIAS_LDADD)\""
30731    AP_LIBS="\$(MOD_VHOST_ALIAS_LDADD)"
30732  else
30733    apr_addto_bugger="\$(MOD_VHOST_ALIAS_LDADD)"
30734    for i in $apr_addto_bugger; do
30735      apr_addto_duplicate="0"
30736      for j in $AP_LIBS; do
30737        if test "x$i" = "x$j"; then
30738          apr_addto_duplicate="1"
30739          break
30740        fi
30741      done
30742      if test $apr_addto_duplicate = "0"; then
30743        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30744        AP_LIBS="$AP_LIBS $i"
30745      fi
30746    done
30747  fi
30748
30749      fi
30750    else
30751      apache_need_shared=yes
30752      libname="mod_vhost_alias.la"
30753      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30754      modpath_shared="$modpath_shared $libname"
30755      cat >>$modpath_current/modules.mk<<EOF
30756$libname: $shobjects
30757	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VHOST_ALIAS_LDADD)
30758EOF
30759    fi
30760  fi
30761
30762
30763  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"
30764
30765
30766
30767  fi
30768
30769
30770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_negotiation" >&5
30771$as_echo_n "checking whether to enable mod_negotiation... " >&6; }
30772    # Check whether --enable-negotiation was given.
30773if test "${enable_negotiation+set}" = set; then :
30774  enableval=$enable_negotiation; force_negotiation=$enableval
30775else
30776  enable_negotiation=most
30777fi
30778
30779    _apmod_extra_msg=""
30780        case "$enable_negotiation" in
30781    yes|static|shared)
30782      _apmod_required="yes"
30783      ;;
30784    *)
30785      case "$module_selection" in
30786      reallyall|all|most)
30787        _apmod_required="no"
30788        ;;
30789      *)
30790        _apmod_required="yes"
30791        ;;
30792      esac
30793  esac
30794  if test "$enable_negotiation" = "static"; then
30795    enable_negotiation=static
30796  elif test "$enable_negotiation" = "yes"; then
30797    enable_negotiation=$module_default
30798  elif test "$enable_negotiation" = "most"; then
30799    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30800            "$module_selection" = "reallyall"
30801    then
30802      enable_negotiation=$module_default
30803    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30804      enable_negotiation=no
30805    fi
30806    _apmod_extra_msg=" ($module_selection)"
30807  elif test "$enable_negotiation" = "maybe-all"; then
30808    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30809    then
30810      enable_negotiation=$module_default
30811      _apmod_extra_msg=" ($module_selection)"
30812    else
30813      enable_negotiation=no
30814    fi
30815  elif test "$enable_negotiation" = "no" -a "$module_selection" = "reallyall" -a \
30816            "$force_negotiation" != "no" ; then
30817      enable_negotiation=$module_default
30818      _apmod_extra_msg=" ($module_selection)"
30819  fi
30820  if test "$enable_negotiation" != "no"; then
30821            :
30822  fi
30823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_negotiation$_apmod_extra_msg" >&5
30824$as_echo "$enable_negotiation$_apmod_extra_msg" >&6; }
30825  if test "$enable_negotiation" != "no"; then
30826    case "$enable_negotiation" in
30827    static*)
30828      MODLIST="$MODLIST negotiation"
30829      if test "negotiation" = "so"; then
30830          sharedobjs=yes
30831      fi
30832      shared="";;
30833    *)
30834      enable_negotiation=`echo $enable_negotiation|sed 's/shared,*//'`
30835      sharedobjs=yes
30836      shared=yes
30837      DSO_MODULES="$DSO_MODULES negotiation"
30838      if test "most" = "yes" ; then
30839        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},negotiation"
30840      fi
30841      ;;
30842    esac
30843
30844
30845  if test -z ""; then
30846    objects="mod_negotiation.lo"
30847  else
30848    objects=""
30849  fi
30850
30851  if test -z "$module_standalone"; then
30852    if test -z "$shared"; then
30853      # The filename of a convenience library must have a "lib" prefix:
30854      libname="libmod_negotiation.la"
30855      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30856      modpath_static="$modpath_static $libname"
30857      cat >>$modpath_current/modules.mk<<EOF
30858$libname: $objects
30859	\$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
30860EOF
30861      if test ! -z "\$(MOD_NEGOTIATION_LDADD)"; then
30862
30863  if test "x$AP_LIBS" = "x"; then
30864    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_NEGOTIATION_LDADD)\""
30865    AP_LIBS="\$(MOD_NEGOTIATION_LDADD)"
30866  else
30867    apr_addto_bugger="\$(MOD_NEGOTIATION_LDADD)"
30868    for i in $apr_addto_bugger; do
30869      apr_addto_duplicate="0"
30870      for j in $AP_LIBS; do
30871        if test "x$i" = "x$j"; then
30872          apr_addto_duplicate="1"
30873          break
30874        fi
30875      done
30876      if test $apr_addto_duplicate = "0"; then
30877        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30878        AP_LIBS="$AP_LIBS $i"
30879      fi
30880    done
30881  fi
30882
30883      fi
30884    else
30885      apache_need_shared=yes
30886      libname="mod_negotiation.la"
30887      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30888      modpath_shared="$modpath_shared $libname"
30889      cat >>$modpath_current/modules.mk<<EOF
30890$libname: $shobjects
30891	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_NEGOTIATION_LDADD)
30892EOF
30893    fi
30894  fi
30895
30896
30897  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"
30898
30899
30900
30901  fi
30902
30903
30904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dir" >&5
30905$as_echo_n "checking whether to enable mod_dir... " >&6; }
30906    # Check whether --enable-dir was given.
30907if test "${enable_dir+set}" = set; then :
30908  enableval=$enable_dir; force_dir=$enableval
30909else
30910  enable_dir=yes
30911fi
30912
30913    _apmod_extra_msg=""
30914        case "$enable_dir" in
30915    yes|static|shared)
30916      _apmod_required="yes"
30917      ;;
30918    *)
30919      case "$module_selection" in
30920      reallyall|all|most)
30921        _apmod_required="no"
30922        ;;
30923      *)
30924        _apmod_required="yes"
30925        ;;
30926      esac
30927  esac
30928  if test "$enable_dir" = "static"; then
30929    enable_dir=static
30930  elif test "$enable_dir" = "yes"; then
30931    enable_dir=$module_default
30932  elif test "$enable_dir" = "most"; then
30933    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30934            "$module_selection" = "reallyall"
30935    then
30936      enable_dir=$module_default
30937    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30938      enable_dir=no
30939    fi
30940    _apmod_extra_msg=" ($module_selection)"
30941  elif test "$enable_dir" = "maybe-all"; then
30942    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30943    then
30944      enable_dir=$module_default
30945      _apmod_extra_msg=" ($module_selection)"
30946    else
30947      enable_dir=no
30948    fi
30949  elif test "$enable_dir" = "no" -a "$module_selection" = "reallyall" -a \
30950            "$force_dir" != "no" ; then
30951      enable_dir=$module_default
30952      _apmod_extra_msg=" ($module_selection)"
30953  fi
30954  if test "$enable_dir" != "no"; then
30955            :
30956  fi
30957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dir$_apmod_extra_msg" >&5
30958$as_echo "$enable_dir$_apmod_extra_msg" >&6; }
30959  if test "$enable_dir" != "no"; then
30960    case "$enable_dir" in
30961    static*)
30962      MODLIST="$MODLIST dir"
30963      if test "dir" = "so"; then
30964          sharedobjs=yes
30965      fi
30966      shared="";;
30967    *)
30968      enable_dir=`echo $enable_dir|sed 's/shared,*//'`
30969      sharedobjs=yes
30970      shared=yes
30971      DSO_MODULES="$DSO_MODULES dir"
30972      if test "yes" = "yes" ; then
30973        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dir"
30974      fi
30975      ;;
30976    esac
30977
30978
30979  if test -z ""; then
30980    objects="mod_dir.lo"
30981  else
30982    objects=""
30983  fi
30984
30985  if test -z "$module_standalone"; then
30986    if test -z "$shared"; then
30987      # The filename of a convenience library must have a "lib" prefix:
30988      libname="libmod_dir.la"
30989      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30990      modpath_static="$modpath_static $libname"
30991      cat >>$modpath_current/modules.mk<<EOF
30992$libname: $objects
30993	\$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
30994EOF
30995      if test ! -z "\$(MOD_DIR_LDADD)"; then
30996
30997  if test "x$AP_LIBS" = "x"; then
30998    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIR_LDADD)\""
30999    AP_LIBS="\$(MOD_DIR_LDADD)"
31000  else
31001    apr_addto_bugger="\$(MOD_DIR_LDADD)"
31002    for i in $apr_addto_bugger; do
31003      apr_addto_duplicate="0"
31004      for j in $AP_LIBS; do
31005        if test "x$i" = "x$j"; then
31006          apr_addto_duplicate="1"
31007          break
31008        fi
31009      done
31010      if test $apr_addto_duplicate = "0"; then
31011        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31012        AP_LIBS="$AP_LIBS $i"
31013      fi
31014    done
31015  fi
31016
31017      fi
31018    else
31019      apache_need_shared=yes
31020      libname="mod_dir.la"
31021      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31022      modpath_shared="$modpath_shared $libname"
31023      cat >>$modpath_current/modules.mk<<EOF
31024$libname: $shobjects
31025	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIR_LDADD)
31026EOF
31027    fi
31028  fi
31029
31030
31031  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"
31032
31033
31034
31035  fi
31036
31037
31038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_imagemap" >&5
31039$as_echo_n "checking whether to enable mod_imagemap... " >&6; }
31040    # Check whether --enable-imagemap was given.
31041if test "${enable_imagemap+set}" = set; then :
31042  enableval=$enable_imagemap; force_imagemap=$enableval
31043else
31044  enable_imagemap=no
31045fi
31046
31047    _apmod_extra_msg=""
31048        case "$enable_imagemap" in
31049    yes|static|shared)
31050      _apmod_required="yes"
31051      ;;
31052    *)
31053      case "$module_selection" in
31054      reallyall|all|most)
31055        _apmod_required="no"
31056        ;;
31057      *)
31058        _apmod_required="yes"
31059        ;;
31060      esac
31061  esac
31062  if test "$enable_imagemap" = "static"; then
31063    enable_imagemap=static
31064  elif test "$enable_imagemap" = "yes"; then
31065    enable_imagemap=$module_default
31066  elif test "$enable_imagemap" = "most"; then
31067    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31068            "$module_selection" = "reallyall"
31069    then
31070      enable_imagemap=$module_default
31071    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31072      enable_imagemap=no
31073    fi
31074    _apmod_extra_msg=" ($module_selection)"
31075  elif test "$enable_imagemap" = "maybe-all"; then
31076    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31077    then
31078      enable_imagemap=$module_default
31079      _apmod_extra_msg=" ($module_selection)"
31080    else
31081      enable_imagemap=no
31082    fi
31083  elif test "$enable_imagemap" = "no" -a "$module_selection" = "reallyall" -a \
31084            "$force_imagemap" != "no" ; then
31085      enable_imagemap=$module_default
31086      _apmod_extra_msg=" ($module_selection)"
31087  fi
31088  if test "$enable_imagemap" != "no"; then
31089            :
31090  fi
31091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_imagemap$_apmod_extra_msg" >&5
31092$as_echo "$enable_imagemap$_apmod_extra_msg" >&6; }
31093  if test "$enable_imagemap" != "no"; then
31094    case "$enable_imagemap" in
31095    static*)
31096      MODLIST="$MODLIST imagemap"
31097      if test "imagemap" = "so"; then
31098          sharedobjs=yes
31099      fi
31100      shared="";;
31101    *)
31102      enable_imagemap=`echo $enable_imagemap|sed 's/shared,*//'`
31103      sharedobjs=yes
31104      shared=yes
31105      DSO_MODULES="$DSO_MODULES imagemap"
31106      if test "no" = "yes" ; then
31107        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},imagemap"
31108      fi
31109      ;;
31110    esac
31111
31112
31113  if test -z ""; then
31114    objects="mod_imagemap.lo"
31115  else
31116    objects=""
31117  fi
31118
31119  if test -z "$module_standalone"; then
31120    if test -z "$shared"; then
31121      # The filename of a convenience library must have a "lib" prefix:
31122      libname="libmod_imagemap.la"
31123      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31124      modpath_static="$modpath_static $libname"
31125      cat >>$modpath_current/modules.mk<<EOF
31126$libname: $objects
31127	\$(MOD_LINK) $objects \$(MOD_IMAGEMAP_LDADD)
31128EOF
31129      if test ! -z "\$(MOD_IMAGEMAP_LDADD)"; then
31130
31131  if test "x$AP_LIBS" = "x"; then
31132    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IMAGEMAP_LDADD)\""
31133    AP_LIBS="\$(MOD_IMAGEMAP_LDADD)"
31134  else
31135    apr_addto_bugger="\$(MOD_IMAGEMAP_LDADD)"
31136    for i in $apr_addto_bugger; do
31137      apr_addto_duplicate="0"
31138      for j in $AP_LIBS; do
31139        if test "x$i" = "x$j"; then
31140          apr_addto_duplicate="1"
31141          break
31142        fi
31143      done
31144      if test $apr_addto_duplicate = "0"; then
31145        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31146        AP_LIBS="$AP_LIBS $i"
31147      fi
31148    done
31149  fi
31150
31151      fi
31152    else
31153      apache_need_shared=yes
31154      libname="mod_imagemap.la"
31155      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31156      modpath_shared="$modpath_shared $libname"
31157      cat >>$modpath_current/modules.mk<<EOF
31158$libname: $shobjects
31159	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IMAGEMAP_LDADD)
31160EOF
31161    fi
31162  fi
31163
31164
31165  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAGEMAP_LDADD"
31166
31167
31168
31169  fi
31170
31171
31172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_actions" >&5
31173$as_echo_n "checking whether to enable mod_actions... " >&6; }
31174    # Check whether --enable-actions was given.
31175if test "${enable_actions+set}" = set; then :
31176  enableval=$enable_actions; force_actions=$enableval
31177else
31178  enable_actions=most
31179fi
31180
31181    _apmod_extra_msg=""
31182        case "$enable_actions" in
31183    yes|static|shared)
31184      _apmod_required="yes"
31185      ;;
31186    *)
31187      case "$module_selection" in
31188      reallyall|all|most)
31189        _apmod_required="no"
31190        ;;
31191      *)
31192        _apmod_required="yes"
31193        ;;
31194      esac
31195  esac
31196  if test "$enable_actions" = "static"; then
31197    enable_actions=static
31198  elif test "$enable_actions" = "yes"; then
31199    enable_actions=$module_default
31200  elif test "$enable_actions" = "most"; then
31201    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31202            "$module_selection" = "reallyall"
31203    then
31204      enable_actions=$module_default
31205    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31206      enable_actions=no
31207    fi
31208    _apmod_extra_msg=" ($module_selection)"
31209  elif test "$enable_actions" = "maybe-all"; then
31210    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31211    then
31212      enable_actions=$module_default
31213      _apmod_extra_msg=" ($module_selection)"
31214    else
31215      enable_actions=no
31216    fi
31217  elif test "$enable_actions" = "no" -a "$module_selection" = "reallyall" -a \
31218            "$force_actions" != "no" ; then
31219      enable_actions=$module_default
31220      _apmod_extra_msg=" ($module_selection)"
31221  fi
31222  if test "$enable_actions" != "no"; then
31223            :
31224  fi
31225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_actions$_apmod_extra_msg" >&5
31226$as_echo "$enable_actions$_apmod_extra_msg" >&6; }
31227  if test "$enable_actions" != "no"; then
31228    case "$enable_actions" in
31229    static*)
31230      MODLIST="$MODLIST actions"
31231      if test "actions" = "so"; then
31232          sharedobjs=yes
31233      fi
31234      shared="";;
31235    *)
31236      enable_actions=`echo $enable_actions|sed 's/shared,*//'`
31237      sharedobjs=yes
31238      shared=yes
31239      DSO_MODULES="$DSO_MODULES actions"
31240      if test "most" = "yes" ; then
31241        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},actions"
31242      fi
31243      ;;
31244    esac
31245
31246
31247  if test -z ""; then
31248    objects="mod_actions.lo"
31249  else
31250    objects=""
31251  fi
31252
31253  if test -z "$module_standalone"; then
31254    if test -z "$shared"; then
31255      # The filename of a convenience library must have a "lib" prefix:
31256      libname="libmod_actions.la"
31257      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31258      modpath_static="$modpath_static $libname"
31259      cat >>$modpath_current/modules.mk<<EOF
31260$libname: $objects
31261	\$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
31262EOF
31263      if test ! -z "\$(MOD_ACTIONS_LDADD)"; then
31264
31265  if test "x$AP_LIBS" = "x"; then
31266    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACTIONS_LDADD)\""
31267    AP_LIBS="\$(MOD_ACTIONS_LDADD)"
31268  else
31269    apr_addto_bugger="\$(MOD_ACTIONS_LDADD)"
31270    for i in $apr_addto_bugger; do
31271      apr_addto_duplicate="0"
31272      for j in $AP_LIBS; do
31273        if test "x$i" = "x$j"; then
31274          apr_addto_duplicate="1"
31275          break
31276        fi
31277      done
31278      if test $apr_addto_duplicate = "0"; then
31279        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31280        AP_LIBS="$AP_LIBS $i"
31281      fi
31282    done
31283  fi
31284
31285      fi
31286    else
31287      apache_need_shared=yes
31288      libname="mod_actions.la"
31289      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31290      modpath_shared="$modpath_shared $libname"
31291      cat >>$modpath_current/modules.mk<<EOF
31292$libname: $shobjects
31293	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACTIONS_LDADD)
31294EOF
31295    fi
31296  fi
31297
31298
31299  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"
31300
31301
31302
31303  fi
31304
31305
31306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_speling" >&5
31307$as_echo_n "checking whether to enable mod_speling... " >&6; }
31308    # Check whether --enable-speling was given.
31309if test "${enable_speling+set}" = set; then :
31310  enableval=$enable_speling; force_speling=$enableval
31311else
31312  enable_speling=most
31313fi
31314
31315    _apmod_extra_msg=""
31316        case "$enable_speling" in
31317    yes|static|shared)
31318      _apmod_required="yes"
31319      ;;
31320    *)
31321      case "$module_selection" in
31322      reallyall|all|most)
31323        _apmod_required="no"
31324        ;;
31325      *)
31326        _apmod_required="yes"
31327        ;;
31328      esac
31329  esac
31330  if test "$enable_speling" = "static"; then
31331    enable_speling=static
31332  elif test "$enable_speling" = "yes"; then
31333    enable_speling=$module_default
31334  elif test "$enable_speling" = "most"; then
31335    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31336            "$module_selection" = "reallyall"
31337    then
31338      enable_speling=$module_default
31339    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31340      enable_speling=no
31341    fi
31342    _apmod_extra_msg=" ($module_selection)"
31343  elif test "$enable_speling" = "maybe-all"; then
31344    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31345    then
31346      enable_speling=$module_default
31347      _apmod_extra_msg=" ($module_selection)"
31348    else
31349      enable_speling=no
31350    fi
31351  elif test "$enable_speling" = "no" -a "$module_selection" = "reallyall" -a \
31352            "$force_speling" != "no" ; then
31353      enable_speling=$module_default
31354      _apmod_extra_msg=" ($module_selection)"
31355  fi
31356  if test "$enable_speling" != "no"; then
31357            :
31358  fi
31359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_speling$_apmod_extra_msg" >&5
31360$as_echo "$enable_speling$_apmod_extra_msg" >&6; }
31361  if test "$enable_speling" != "no"; then
31362    case "$enable_speling" in
31363    static*)
31364      MODLIST="$MODLIST speling"
31365      if test "speling" = "so"; then
31366          sharedobjs=yes
31367      fi
31368      shared="";;
31369    *)
31370      enable_speling=`echo $enable_speling|sed 's/shared,*//'`
31371      sharedobjs=yes
31372      shared=yes
31373      DSO_MODULES="$DSO_MODULES speling"
31374      if test "most" = "yes" ; then
31375        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},speling"
31376      fi
31377      ;;
31378    esac
31379
31380
31381  if test -z ""; then
31382    objects="mod_speling.lo"
31383  else
31384    objects=""
31385  fi
31386
31387  if test -z "$module_standalone"; then
31388    if test -z "$shared"; then
31389      # The filename of a convenience library must have a "lib" prefix:
31390      libname="libmod_speling.la"
31391      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31392      modpath_static="$modpath_static $libname"
31393      cat >>$modpath_current/modules.mk<<EOF
31394$libname: $objects
31395	\$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
31396EOF
31397      if test ! -z "\$(MOD_SPELING_LDADD)"; then
31398
31399  if test "x$AP_LIBS" = "x"; then
31400    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SPELING_LDADD)\""
31401    AP_LIBS="\$(MOD_SPELING_LDADD)"
31402  else
31403    apr_addto_bugger="\$(MOD_SPELING_LDADD)"
31404    for i in $apr_addto_bugger; do
31405      apr_addto_duplicate="0"
31406      for j in $AP_LIBS; do
31407        if test "x$i" = "x$j"; then
31408          apr_addto_duplicate="1"
31409          break
31410        fi
31411      done
31412      if test $apr_addto_duplicate = "0"; then
31413        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31414        AP_LIBS="$AP_LIBS $i"
31415      fi
31416    done
31417  fi
31418
31419      fi
31420    else
31421      apache_need_shared=yes
31422      libname="mod_speling.la"
31423      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31424      modpath_shared="$modpath_shared $libname"
31425      cat >>$modpath_current/modules.mk<<EOF
31426$libname: $shobjects
31427	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SPELING_LDADD)
31428EOF
31429    fi
31430  fi
31431
31432
31433  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"
31434
31435
31436
31437  fi
31438
31439
31440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_userdir" >&5
31441$as_echo_n "checking whether to enable mod_userdir... " >&6; }
31442    # Check whether --enable-userdir was given.
31443if test "${enable_userdir+set}" = set; then :
31444  enableval=$enable_userdir; force_userdir=$enableval
31445else
31446  enable_userdir=most
31447fi
31448
31449    _apmod_extra_msg=""
31450        case "$enable_userdir" in
31451    yes|static|shared)
31452      _apmod_required="yes"
31453      ;;
31454    *)
31455      case "$module_selection" in
31456      reallyall|all|most)
31457        _apmod_required="no"
31458        ;;
31459      *)
31460        _apmod_required="yes"
31461        ;;
31462      esac
31463  esac
31464  if test "$enable_userdir" = "static"; then
31465    enable_userdir=static
31466  elif test "$enable_userdir" = "yes"; then
31467    enable_userdir=$module_default
31468  elif test "$enable_userdir" = "most"; then
31469    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31470            "$module_selection" = "reallyall"
31471    then
31472      enable_userdir=$module_default
31473    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31474      enable_userdir=no
31475    fi
31476    _apmod_extra_msg=" ($module_selection)"
31477  elif test "$enable_userdir" = "maybe-all"; then
31478    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31479    then
31480      enable_userdir=$module_default
31481      _apmod_extra_msg=" ($module_selection)"
31482    else
31483      enable_userdir=no
31484    fi
31485  elif test "$enable_userdir" = "no" -a "$module_selection" = "reallyall" -a \
31486            "$force_userdir" != "no" ; then
31487      enable_userdir=$module_default
31488      _apmod_extra_msg=" ($module_selection)"
31489  fi
31490  if test "$enable_userdir" != "no"; then
31491            :
31492  fi
31493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_userdir$_apmod_extra_msg" >&5
31494$as_echo "$enable_userdir$_apmod_extra_msg" >&6; }
31495  if test "$enable_userdir" != "no"; then
31496    case "$enable_userdir" in
31497    static*)
31498      MODLIST="$MODLIST userdir"
31499      if test "userdir" = "so"; then
31500          sharedobjs=yes
31501      fi
31502      shared="";;
31503    *)
31504      enable_userdir=`echo $enable_userdir|sed 's/shared,*//'`
31505      sharedobjs=yes
31506      shared=yes
31507      DSO_MODULES="$DSO_MODULES userdir"
31508      if test "most" = "yes" ; then
31509        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},userdir"
31510      fi
31511      ;;
31512    esac
31513
31514
31515  if test -z ""; then
31516    objects="mod_userdir.lo"
31517  else
31518    objects=""
31519  fi
31520
31521  if test -z "$module_standalone"; then
31522    if test -z "$shared"; then
31523      # The filename of a convenience library must have a "lib" prefix:
31524      libname="libmod_userdir.la"
31525      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31526      modpath_static="$modpath_static $libname"
31527      cat >>$modpath_current/modules.mk<<EOF
31528$libname: $objects
31529	\$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
31530EOF
31531      if test ! -z "\$(MOD_USERDIR_LDADD)"; then
31532
31533  if test "x$AP_LIBS" = "x"; then
31534    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERDIR_LDADD)\""
31535    AP_LIBS="\$(MOD_USERDIR_LDADD)"
31536  else
31537    apr_addto_bugger="\$(MOD_USERDIR_LDADD)"
31538    for i in $apr_addto_bugger; do
31539      apr_addto_duplicate="0"
31540      for j in $AP_LIBS; do
31541        if test "x$i" = "x$j"; then
31542          apr_addto_duplicate="1"
31543          break
31544        fi
31545      done
31546      if test $apr_addto_duplicate = "0"; then
31547        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31548        AP_LIBS="$AP_LIBS $i"
31549      fi
31550    done
31551  fi
31552
31553      fi
31554    else
31555      apache_need_shared=yes
31556      libname="mod_userdir.la"
31557      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31558      modpath_shared="$modpath_shared $libname"
31559      cat >>$modpath_current/modules.mk<<EOF
31560$libname: $shobjects
31561	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERDIR_LDADD)
31562EOF
31563    fi
31564  fi
31565
31566
31567  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"
31568
31569
31570
31571  fi
31572
31573
31574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_alias" >&5
31575$as_echo_n "checking whether to enable mod_alias... " >&6; }
31576    # Check whether --enable-alias was given.
31577if test "${enable_alias+set}" = set; then :
31578  enableval=$enable_alias; force_alias=$enableval
31579else
31580  enable_alias=yes
31581fi
31582
31583    _apmod_extra_msg=""
31584        case "$enable_alias" in
31585    yes|static|shared)
31586      _apmod_required="yes"
31587      ;;
31588    *)
31589      case "$module_selection" in
31590      reallyall|all|most)
31591        _apmod_required="no"
31592        ;;
31593      *)
31594        _apmod_required="yes"
31595        ;;
31596      esac
31597  esac
31598  if test "$enable_alias" = "static"; then
31599    enable_alias=static
31600  elif test "$enable_alias" = "yes"; then
31601    enable_alias=$module_default
31602  elif test "$enable_alias" = "most"; then
31603    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31604            "$module_selection" = "reallyall"
31605    then
31606      enable_alias=$module_default
31607    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31608      enable_alias=no
31609    fi
31610    _apmod_extra_msg=" ($module_selection)"
31611  elif test "$enable_alias" = "maybe-all"; then
31612    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31613    then
31614      enable_alias=$module_default
31615      _apmod_extra_msg=" ($module_selection)"
31616    else
31617      enable_alias=no
31618    fi
31619  elif test "$enable_alias" = "no" -a "$module_selection" = "reallyall" -a \
31620            "$force_alias" != "no" ; then
31621      enable_alias=$module_default
31622      _apmod_extra_msg=" ($module_selection)"
31623  fi
31624  if test "$enable_alias" != "no"; then
31625            :
31626  fi
31627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alias$_apmod_extra_msg" >&5
31628$as_echo "$enable_alias$_apmod_extra_msg" >&6; }
31629  if test "$enable_alias" != "no"; then
31630    case "$enable_alias" in
31631    static*)
31632      MODLIST="$MODLIST alias"
31633      if test "alias" = "so"; then
31634          sharedobjs=yes
31635      fi
31636      shared="";;
31637    *)
31638      enable_alias=`echo $enable_alias|sed 's/shared,*//'`
31639      sharedobjs=yes
31640      shared=yes
31641      DSO_MODULES="$DSO_MODULES alias"
31642      if test "yes" = "yes" ; then
31643        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},alias"
31644      fi
31645      ;;
31646    esac
31647
31648
31649  if test -z ""; then
31650    objects="mod_alias.lo"
31651  else
31652    objects=""
31653  fi
31654
31655  if test -z "$module_standalone"; then
31656    if test -z "$shared"; then
31657      # The filename of a convenience library must have a "lib" prefix:
31658      libname="libmod_alias.la"
31659      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31660      modpath_static="$modpath_static $libname"
31661      cat >>$modpath_current/modules.mk<<EOF
31662$libname: $objects
31663	\$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
31664EOF
31665      if test ! -z "\$(MOD_ALIAS_LDADD)"; then
31666
31667  if test "x$AP_LIBS" = "x"; then
31668    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALIAS_LDADD)\""
31669    AP_LIBS="\$(MOD_ALIAS_LDADD)"
31670  else
31671    apr_addto_bugger="\$(MOD_ALIAS_LDADD)"
31672    for i in $apr_addto_bugger; do
31673      apr_addto_duplicate="0"
31674      for j in $AP_LIBS; do
31675        if test "x$i" = "x$j"; then
31676          apr_addto_duplicate="1"
31677          break
31678        fi
31679      done
31680      if test $apr_addto_duplicate = "0"; then
31681        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31682        AP_LIBS="$AP_LIBS $i"
31683      fi
31684    done
31685  fi
31686
31687      fi
31688    else
31689      apache_need_shared=yes
31690      libname="mod_alias.la"
31691      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31692      modpath_shared="$modpath_shared $libname"
31693      cat >>$modpath_current/modules.mk<<EOF
31694$libname: $shobjects
31695	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALIAS_LDADD)
31696EOF
31697    fi
31698  fi
31699
31700
31701  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"
31702
31703
31704
31705  fi
31706
31707
31708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_rewrite" >&5
31709$as_echo_n "checking whether to enable mod_rewrite... " >&6; }
31710    # Check whether --enable-rewrite was given.
31711if test "${enable_rewrite+set}" = set; then :
31712  enableval=$enable_rewrite; force_rewrite=$enableval
31713else
31714  enable_rewrite=most
31715fi
31716
31717    _apmod_extra_msg=""
31718        case "$enable_rewrite" in
31719    yes|static|shared)
31720      _apmod_required="yes"
31721      ;;
31722    *)
31723      case "$module_selection" in
31724      reallyall|all|most)
31725        _apmod_required="no"
31726        ;;
31727      *)
31728        _apmod_required="yes"
31729        ;;
31730      esac
31731  esac
31732  if test "$enable_rewrite" = "static"; then
31733    enable_rewrite=static
31734  elif test "$enable_rewrite" = "yes"; then
31735    enable_rewrite=$module_default
31736  elif test "$enable_rewrite" = "most"; then
31737    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31738            "$module_selection" = "reallyall"
31739    then
31740      enable_rewrite=$module_default
31741    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31742      enable_rewrite=no
31743    fi
31744    _apmod_extra_msg=" ($module_selection)"
31745  elif test "$enable_rewrite" = "maybe-all"; then
31746    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31747    then
31748      enable_rewrite=$module_default
31749      _apmod_extra_msg=" ($module_selection)"
31750    else
31751      enable_rewrite=no
31752    fi
31753  elif test "$enable_rewrite" = "no" -a "$module_selection" = "reallyall" -a \
31754            "$force_rewrite" != "no" ; then
31755      enable_rewrite=$module_default
31756      _apmod_extra_msg=" ($module_selection)"
31757  fi
31758  if test "$enable_rewrite" != "no"; then
31759            :
31760  fi
31761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rewrite$_apmod_extra_msg" >&5
31762$as_echo "$enable_rewrite$_apmod_extra_msg" >&6; }
31763  if test "$enable_rewrite" != "no"; then
31764    case "$enable_rewrite" in
31765    static*)
31766      MODLIST="$MODLIST rewrite"
31767      if test "rewrite" = "so"; then
31768          sharedobjs=yes
31769      fi
31770      shared="";;
31771    *)
31772      enable_rewrite=`echo $enable_rewrite|sed 's/shared,*//'`
31773      sharedobjs=yes
31774      shared=yes
31775      DSO_MODULES="$DSO_MODULES rewrite"
31776      if test "most" = "yes" ; then
31777        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},rewrite"
31778      fi
31779      ;;
31780    esac
31781
31782
31783  if test -z ""; then
31784    objects="mod_rewrite.lo"
31785  else
31786    objects=""
31787  fi
31788
31789  if test -z "$module_standalone"; then
31790    if test -z "$shared"; then
31791      # The filename of a convenience library must have a "lib" prefix:
31792      libname="libmod_rewrite.la"
31793      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31794      modpath_static="$modpath_static $libname"
31795      cat >>$modpath_current/modules.mk<<EOF
31796$libname: $objects
31797	\$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
31798EOF
31799      if test ! -z "\$(MOD_REWRITE_LDADD)"; then
31800
31801  if test "x$AP_LIBS" = "x"; then
31802    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REWRITE_LDADD)\""
31803    AP_LIBS="\$(MOD_REWRITE_LDADD)"
31804  else
31805    apr_addto_bugger="\$(MOD_REWRITE_LDADD)"
31806    for i in $apr_addto_bugger; do
31807      apr_addto_duplicate="0"
31808      for j in $AP_LIBS; do
31809        if test "x$i" = "x$j"; then
31810          apr_addto_duplicate="1"
31811          break
31812        fi
31813      done
31814      if test $apr_addto_duplicate = "0"; then
31815        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31816        AP_LIBS="$AP_LIBS $i"
31817      fi
31818    done
31819  fi
31820
31821      fi
31822    else
31823      apache_need_shared=yes
31824      libname="mod_rewrite.la"
31825      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31826      modpath_shared="$modpath_shared $libname"
31827      cat >>$modpath_current/modules.mk<<EOF
31828$libname: $shobjects
31829	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
31830EOF
31831    fi
31832  fi
31833
31834
31835  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"
31836
31837
31838
31839  fi
31840
31841
31842
31843  if test "x$INCLUDES" = "x"; then
31844    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
31845    INCLUDES="-I\$(top_srcdir)/$modpath_current"
31846  else
31847    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
31848    for i in $apr_addto_bugger; do
31849      apr_addto_duplicate="0"
31850      for j in $INCLUDES; do
31851        if test "x$i" = "x$j"; then
31852          apr_addto_duplicate="1"
31853          break
31854        fi
31855      done
31856      if test $apr_addto_duplicate = "0"; then
31857        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
31858        INCLUDES="$INCLUDES $i"
31859      fi
31860    done
31861  fi
31862
31863
31864
31865  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
31866  echo "static = $modpath_static" >> $modpath_current/modules.mk
31867  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
31868  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
31869    if eval val=\"\$MOD_$var\"; test -n "$val"; then
31870      echo "MOD_$var = $val" >> $modpath_current/modules.mk
31871    fi
31872  done
31873  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
31874    MODULE_DIRS="$MODULE_DIRS $current_dir"
31875  else
31876    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
31877  fi
31878
31879  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
31880
31881
31882
31883
31884
31885
31886  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
31887
31888
31889
31890  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
31891
31892
31893
31894  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
31895
31896
31897
31898  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
31899
31900
31901
31902  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
31903
31904
31905
31906  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
31907
31908
31909
31910PRE_SHARED_CMDS='echo ""'
31911POST_SHARED_CMDS='echo ""'
31912
31913
31914if test "$apache_need_shared" = "yes"; then
31915  if test -f $ac_aux_dir/ltconfig; then
31916    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
31917  fi
31918  shared_build="shared-build"
31919fi
31920
31921
31922if test "$enable_so" = "yes" -o "$enable_so" = "static"; then
31923  case $host in
31924    *-ibm-aix*)
31925
31926  if test "x$HTTPD_LDFLAGS" = "x"; then
31927    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp\""
31928    HTTPD_LDFLAGS="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
31929  else
31930    apr_addto_bugger="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
31931    for i in $apr_addto_bugger; do
31932      apr_addto_duplicate="0"
31933      for j in $HTTPD_LDFLAGS; do
31934        if test "x$i" = "x$j"; then
31935          apr_addto_duplicate="1"
31936          break
31937        fi
31938      done
31939      if test $apr_addto_duplicate = "0"; then
31940        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
31941        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
31942      fi
31943    done
31944  fi
31945
31946
31947  if test "x$SH_LDFLAGS" = "x"; then
31948    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)\""
31949    SH_LDFLAGS="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
31950  else
31951    apr_addto_bugger="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
31952    for i in $apr_addto_bugger; do
31953      apr_addto_duplicate="0"
31954      for j in $SH_LDFLAGS; do
31955        if test "x$i" = "x$j"; then
31956          apr_addto_duplicate="1"
31957          break
31958        fi
31959      done
31960      if test $apr_addto_duplicate = "0"; then
31961        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
31962        SH_LDFLAGS="$SH_LDFLAGS $i"
31963      fi
31964    done
31965  fi
31966
31967
31968  if test "x$UTIL_LDFLAGS" = "x"; then
31969    test "x$silent" != "xyes" && echo "  setting UTIL_LDFLAGS to \"-Wl,-uXML_Parse\""
31970    UTIL_LDFLAGS="-Wl,-uXML_Parse"
31971  else
31972    apr_addto_bugger="-Wl,-uXML_Parse"
31973    for i in $apr_addto_bugger; do
31974      apr_addto_duplicate="0"
31975      for j in $UTIL_LDFLAGS; do
31976        if test "x$i" = "x$j"; then
31977          apr_addto_duplicate="1"
31978          break
31979        fi
31980      done
31981      if test $apr_addto_duplicate = "0"; then
31982        test "x$silent" != "xyes" && echo "  adding \"$i\" to UTIL_LDFLAGS"
31983        UTIL_LDFLAGS="$UTIL_LDFLAGS $i"
31984      fi
31985    done
31986  fi
31987
31988      ;;
31989    *os390)
31990
31991  if test "x$HTTPD_LDFLAGS" = "x"; then
31992    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll\""
31993    HTTPD_LDFLAGS="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
31994  else
31995    apr_addto_bugger="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
31996    for i in $apr_addto_bugger; do
31997      apr_addto_duplicate="0"
31998      for j in $HTTPD_LDFLAGS; do
31999        if test "x$i" = "x$j"; then
32000          apr_addto_duplicate="1"
32001          break
32002        fi
32003      done
32004      if test $apr_addto_duplicate = "0"; then
32005        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
32006        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
32007      fi
32008    done
32009  fi
32010
32011
32012  if test "x$SH_LDFLAGS" = "x"; then
32013    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"--core-dll=$abs_srcdir/apachecore.dll\""
32014    SH_LDFLAGS="--core-dll=$abs_srcdir/apachecore.dll"
32015  else
32016    apr_addto_bugger="--core-dll=$abs_srcdir/apachecore.dll"
32017    for i in $apr_addto_bugger; do
32018      apr_addto_duplicate="0"
32019      for j in $SH_LDFLAGS; do
32020        if test "x$i" = "x$j"; then
32021          apr_addto_duplicate="1"
32022          break
32023        fi
32024      done
32025      if test $apr_addto_duplicate = "0"; then
32026        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
32027        SH_LDFLAGS="$SH_LDFLAGS $i"
32028      fi
32029    done
32030  fi
32031
32032  esac
32033  MOD_SO_ENABLED=yes
32034fi
32035
32036
32037
32038  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
32039
32040
32041
32042  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
32043
32044
32045
32046  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
32047
32048
32049
32050
32051# Check whether --with-program-name was given.
32052if test "${with_program_name+set}" = set; then :
32053  withval=$with_program_name;
32054  progname="$withval"
32055else
32056
32057  progname="httpd"
32058fi
32059
32060
32061# SuExec parameters
32062
32063# Check whether --with-suexec-bin was given.
32064if test "${with_suexec_bin+set}" = set; then :
32065  withval=$with_suexec_bin;
32066
32067cat >>confdefs.h <<_ACEOF
32068#define SUEXEC_BIN "$withval"
32069_ACEOF
32070
32071
32072fi
32073
32074
32075
32076# Check whether --with-suexec-caller was given.
32077if test "${with_suexec_caller+set}" = set; then :
32078  withval=$with_suexec_caller;
32079
32080cat >>confdefs.h <<_ACEOF
32081#define AP_HTTPD_USER "$withval"
32082_ACEOF
32083
32084fi
32085
32086
32087
32088# Check whether --with-suexec-userdir was given.
32089if test "${with_suexec_userdir+set}" = set; then :
32090  withval=$with_suexec_userdir;
32091
32092cat >>confdefs.h <<_ACEOF
32093#define AP_USERDIR_SUFFIX "$withval"
32094_ACEOF
32095
32096fi
32097
32098
32099
32100# Check whether --with-suexec-docroot was given.
32101if test "${with_suexec_docroot+set}" = set; then :
32102  withval=$with_suexec_docroot;
32103
32104cat >>confdefs.h <<_ACEOF
32105#define AP_DOC_ROOT "$withval"
32106_ACEOF
32107
32108fi
32109
32110
32111
32112# Check whether --with-suexec-uidmin was given.
32113if test "${with_suexec_uidmin+set}" = set; then :
32114  withval=$with_suexec_uidmin;
32115
32116cat >>confdefs.h <<_ACEOF
32117#define AP_UID_MIN $withval
32118_ACEOF
32119
32120fi
32121
32122
32123
32124# Check whether --with-suexec-gidmin was given.
32125if test "${with_suexec_gidmin+set}" = set; then :
32126  withval=$with_suexec_gidmin;
32127
32128cat >>confdefs.h <<_ACEOF
32129#define AP_GID_MIN $withval
32130_ACEOF
32131
32132fi
32133
32134
32135
32136# Check whether --with-suexec-logfile was given.
32137if test "${with_suexec_logfile+set}" = set; then :
32138  withval=$with_suexec_logfile;
32139
32140cat >>confdefs.h <<_ACEOF
32141#define AP_LOG_EXEC "$withval"
32142_ACEOF
32143
32144fi
32145
32146
32147
32148# Check whether --with-suexec-safepath was given.
32149if test "${with_suexec_safepath+set}" = set; then :
32150  withval=$with_suexec_safepath;
32151
32152cat >>confdefs.h <<_ACEOF
32153#define AP_SAFE_PATH "$withval"
32154_ACEOF
32155
32156fi
32157
32158
32159
32160# Check whether --with-suexec-umask was given.
32161if test "${with_suexec_umask+set}" = set; then :
32162  withval=$with_suexec_umask;
32163
32164cat >>confdefs.h <<_ACEOF
32165#define AP_SUEXEC_UMASK 0$withval
32166_ACEOF
32167
32168fi
32169
32170
32171if test x${apu_found} != xobsolete; then
32172  AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool --libs`"
32173fi
32174AP_LIBS="$AP_LIBS `$apr_config --link-libtool --libs`"
32175
32176  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
32177
32178
32179
32180  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
32181
32182
32183
32184  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
32185
32186
32187
32188
32189$as_echo "#define AP_USING_AUTOCONF 1" >>confdefs.h
32190
32191
32192if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
32193
32194$as_echo "#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1" >>confdefs.h
32195
32196fi
32197
32198if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then
32199
32200$as_echo "#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1" >>confdefs.h
32201
32202fi
32203
32204
32205apr_old_cppflags=$CPPFLAGS
32206CPPFLAGS="$CPPFLAGS $INCLUDES"
32207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32208/* end confdefs.h.  */
32209
32210#include <apr.h>
32211#if APR_HAVE_IPV6
32212YES_IS_DEFINED
32213#endif
32214
32215_ACEOF
32216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32217  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
32218  ac_cv_define_APR_HAVE_IPV6=yes
32219else
32220  ac_cv_define_APR_HAVE_IPV6=no
32221fi
32222rm -f conftest*
32223
32224CPPFLAGS=$apr_old_cppflags
32225
32226
32227# Check whether --enable-v4-mapped was given.
32228if test "${enable_v4_mapped+set}" = set; then :
32229  enableval=$enable_v4_mapped;
32230  v4mapped=$enableval
32231
32232else
32233
32234    case $host in
32235    *freebsd1234.*)
32236        v4mapped=yes
32237        ;;
32238    *freebsd*|*netbsd*|*openbsd*)
32239        v4mapped=no
32240        ;;
32241    *)
32242        v4mapped=yes
32243        ;;
32244    esac
32245    if ap_mpm_is_enabled winnt; then
32246                v4mapped=no
32247    fi
32248
32249fi
32250
32251
32252if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
32253
32254$as_echo "#define AP_ENABLE_V4_MAPPED 1" >>confdefs.h
32255
32256fi
32257
32258
32259  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
32260
32261
32262  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/Makefile server/Makefile"
32263
32264
32265  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile"
32266
32267
32268if test -d ./test; then
32269
32270  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"
32271
32272fi
32273
32274{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32275$as_echo "$as_me: " >&6;}
32276{ $as_echo "$as_me:${as_lineno-$LINENO}: Restore user-defined environment settings..." >&5
32277$as_echo "$as_me: Restore user-defined environment settings..." >&6;}
32278{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32279$as_echo "$as_me: " >&6;}
32280
32281
32282set X $apr_ste_save_CPPFLAGS
32283if test ${#} -eq 1; then
32284  EXTRA_CPPFLAGS="$CPPFLAGS"
32285  CPPFLAGS=
32286else
32287  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
32288    EXTRA_CPPFLAGS=
32289  else
32290    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
32291    CPPFLAGS="$apr_ste_save_CPPFLAGS"
32292  fi
32293fi
32294if test "x$silent" != "xyes"; then
32295  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
32296  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
32297fi
32298
32299
32300
32301set X $apr_ste_save_CFLAGS
32302if test ${#} -eq 1; then
32303  EXTRA_CFLAGS="$CFLAGS"
32304  CFLAGS=
32305else
32306  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
32307    EXTRA_CFLAGS=
32308  else
32309    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
32310    CFLAGS="$apr_ste_save_CFLAGS"
32311  fi
32312fi
32313if test "x$silent" != "xyes"; then
32314  echo "  restoring CFLAGS to \"$CFLAGS\""
32315  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
32316fi
32317
32318
32319
32320set X $apr_ste_save_CXXFLAGS
32321if test ${#} -eq 1; then
32322  EXTRA_CXXFLAGS="$CXXFLAGS"
32323  CXXFLAGS=
32324else
32325  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
32326    EXTRA_CXXFLAGS=
32327  else
32328    EXTRA_CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
32329    CXXFLAGS="$apr_ste_save_CXXFLAGS"
32330  fi
32331fi
32332if test "x$silent" != "xyes"; then
32333  echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
32334  echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
32335fi
32336
32337
32338
32339set X $apr_ste_save_LDFLAGS
32340if test ${#} -eq 1; then
32341  EXTRA_LDFLAGS="$LDFLAGS"
32342  LDFLAGS=
32343else
32344  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
32345    EXTRA_LDFLAGS=
32346  else
32347    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
32348    LDFLAGS="$apr_ste_save_LDFLAGS"
32349  fi
32350fi
32351if test "x$silent" != "xyes"; then
32352  echo "  restoring LDFLAGS to \"$LDFLAGS\""
32353  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
32354fi
32355
32356
32357
32358set X $apr_ste_save_LIBS
32359if test ${#} -eq 1; then
32360  EXTRA_LIBS="$LIBS"
32361  LIBS=
32362else
32363  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
32364    EXTRA_LIBS=
32365  else
32366    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
32367    LIBS="$apr_ste_save_LIBS"
32368  fi
32369fi
32370if test "x$silent" != "xyes"; then
32371  echo "  restoring LIBS to \"$LIBS\""
32372  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
32373fi
32374
32375
32376
32377set X $apr_ste_save_INCLUDES
32378if test ${#} -eq 1; then
32379  EXTRA_INCLUDES="$INCLUDES"
32380  INCLUDES=
32381else
32382  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
32383    EXTRA_INCLUDES=
32384  else
32385    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
32386    INCLUDES="$apr_ste_save_INCLUDES"
32387  fi
32388fi
32389if test "x$silent" != "xyes"; then
32390  echo "  restoring INCLUDES to \"$INCLUDES\""
32391  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
32392fi
32393
32394
32395
32396{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32397$as_echo "$as_me: " >&6;}
32398{ $as_echo "$as_me:${as_lineno-$LINENO}: Construct makefiles and header files..." >&5
32399$as_echo "$as_me: Construct makefiles and header files..." >&6;}
32400{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32401$as_echo "$as_me: " >&6;}
32402
32403
32404
32405  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
32406
32407
32408
32409  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
32410
32411
32412
32413  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
32414
32415
32416
32417  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
32418
32419
32420
32421  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
32422
32423
32424
32425  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
32426
32427
32428
32429  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
32430
32431
32432
32433  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
32434
32435
32436
32437  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
32438
32439
32440
32441  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
32442
32443
32444
32445  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
32446
32447
32448
32449  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
32450
32451
32452
32453  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
32454
32455
32456
32457  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
32458
32459
32460
32461  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
32462
32463
32464
32465  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
32466
32467
32468
32469  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
32470
32471
32472
32473  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
32474
32475
32476
32477  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
32478
32479
32480
32481  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
32482
32483
32484
32485  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
32486
32487
32488
32489  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
32490
32491
32492
32493  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
32494
32495
32496
32497  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
32498
32499
32500
32501  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
32502
32503
32504
32505  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
32506
32507
32508
32509  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
32510
32511
32512
32513  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
32514
32515
32516
32517  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
32518
32519
32520
32521  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
32522
32523
32524
32525  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
32526
32527
32528
32529  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
32530
32531
32532
32533  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
32534
32535
32536
32537  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
32538
32539
32540
32541  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
32542
32543
32544
32545  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
32546
32547
32548
32549  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
32550
32551
32552
32553  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
32554
32555
32556
32557  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
32558
32559
32560
32561  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
32562
32563
32564
32565  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
32566
32567
32568
32569  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
32570
32571
32572
32573  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
32574
32575
32576
32577  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
32578
32579
32580
32581  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
32582
32583
32584
32585  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
32586
32587
32588
32589  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
32590
32591
32592
32593  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
32594
32595
32596
32597  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
32598
32599
32600
32601  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
32602
32603
32604
32605  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INTERNAL_CPPFLAGS"
32606
32607
32608
32609  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
32610
32611
32612
32613  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
32614
32615
32616
32617  APACHE_VAR_SUBST="$APACHE_VAR_SUBST RSYNC"
32618
32619
32620
32621  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
32622
32623
32624
32625  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
32626
32627
32628
32629  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
32630
32631
32632
32633  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSLPORT"
32634
32635
32636
32637  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
32638
32639
32640
32641  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
32642
32643
32644
32645  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
32646
32647
32648
32649  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
32650
32651
32652
32653  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
32654
32655
32656
32657  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKDEP"
32658
32659
32660
32661  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
32662
32663
32664
32665  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
32666
32667
32668
32669  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_DSO_MODULES"
32670
32671
32672
32673  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LOAD_ALL_MODULES"
32674
32675
32676
32677  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"
32678
32679
32680
32681  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"
32682
32683
32684
32685  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_VERSION"
32686
32687
32688
32689  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_CONFIG"
32690
32691
32692
32693  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"
32694
32695
32696
32697  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"
32698
32699
32700
32701  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_VERSION"
32702
32703
32704
32705  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_CONFIG"
32706
32707
32708
32709  abs_srcdir="`(cd $srcdir && pwd)`"
32710
32711  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config_vars.mk" >&5
32712$as_echo "$as_me: creating config_vars.mk" >&6;}
32713  test -d build || $mkdir_p build
32714  > build/config_vars.mk
32715  for i in $APACHE_VAR_SUBST; do
32716    eval echo "$i = \$$i" >> build/config_vars.mk
32717  done
32718
32719
32720rm -f modules.c
32721echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
32722
32723
32724ap_last=
32725ap_cur="$prefix"
32726while test "x${ap_cur}" != "x${ap_last}";
32727do
32728  ap_last="${ap_cur}"
32729  ap_cur=`eval "echo ${ap_cur}"`
32730done
32731ap_prefix="${ap_cur}"
32732
32733
32734cat >>confdefs.h <<_ACEOF
32735#define HTTPD_ROOT "${ap_prefix}"
32736_ACEOF
32737
32738
32739cat >>confdefs.h <<_ACEOF
32740#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
32741_ACEOF
32742
32743
32744cat >>confdefs.h <<_ACEOF
32745#define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
32746_ACEOF
32747
32748
32749perlbin=`$ac_aux_dir/PrintPath perl`
32750if test "x$perlbin" = "x"; then
32751    perlbin="/replace/with/path/to/perl/interpreter"
32752fi
32753
32754
32755
32756BSD_MAKEFILE=no
32757ap_make_include=include
32758ap_make_delimiter=' '
32759case $host in
32760*bsdi*)
32761    # Check whether they've installed GNU make
32762    if make --version > /dev/null 2>&1; then
32763        true
32764    else
32765        BSD_MAKEFILE=yes
32766        ap_make_include=.include
32767        ap_make_delimiter='"'
32768    fi
32769    ;;
32770esac
32771
32772
32773
32774test -d docs/conf||$mkdir_p docs/conf
32775
32776ac_config_files="$ac_config_files $APACHE_OUTPUT_FILES docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf docs/conf/extra/proxy-html.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 build/pkg/pkginfo build/config_vars.sh"
32777
32778ac_config_commands="$ac_config_commands default"
32779
32780cat >confcache <<\_ACEOF
32781# This file is a shell script that caches the results of configure
32782# tests run on this system so they can be shared between configure
32783# scripts and configure runs, see configure's option --config-cache.
32784# It is not useful on other systems.  If it contains results you don't
32785# want to keep, you may remove or edit it.
32786#
32787# config.status only pays attention to the cache file if you give it
32788# the --recheck option to rerun configure.
32789#
32790# `ac_cv_env_foo' variables (set or unset) will be overridden when
32791# loading this file, other *unset* `ac_cv_foo' will be assigned the
32792# following values.
32793
32794_ACEOF
32795
32796# The following way of writing the cache mishandles newlines in values,
32797# but we know of no workaround that is simple, portable, and efficient.
32798# So, we kill variables containing newlines.
32799# Ultrix sh set writes to stderr and can't be redirected directly,
32800# and sets the high bit in the cache file unless we assign to the vars.
32801(
32802  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32803    eval ac_val=\$$ac_var
32804    case $ac_val in #(
32805    *${as_nl}*)
32806      case $ac_var in #(
32807      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32808$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32809      esac
32810      case $ac_var in #(
32811      _ | IFS | as_nl) ;; #(
32812      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32813      *) { eval $ac_var=; unset $ac_var;} ;;
32814      esac ;;
32815    esac
32816  done
32817
32818  (set) 2>&1 |
32819    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32820    *${as_nl}ac_space=\ *)
32821      # `set' does not quote correctly, so add quotes: double-quote
32822      # substitution turns \\\\ into \\, and sed turns \\ into \.
32823      sed -n \
32824	"s/'/'\\\\''/g;
32825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32826      ;; #(
32827    *)
32828      # `set' quotes correctly as required by POSIX, so do not add quotes.
32829      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32830      ;;
32831    esac |
32832    sort
32833) |
32834  sed '
32835     /^ac_cv_env_/b end
32836     t clear
32837     :clear
32838     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32839     t end
32840     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32841     :end' >>confcache
32842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32843  if test -w "$cache_file"; then
32844    if test "x$cache_file" != "x/dev/null"; then
32845      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32846$as_echo "$as_me: updating cache $cache_file" >&6;}
32847      if test ! -f "$cache_file" || test -h "$cache_file"; then
32848	cat confcache >"$cache_file"
32849      else
32850        case $cache_file in #(
32851        */* | ?:*)
32852	  mv -f confcache "$cache_file"$$ &&
32853	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32854        *)
32855	  mv -f confcache "$cache_file" ;;
32856	esac
32857      fi
32858    fi
32859  else
32860    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32861$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32862  fi
32863fi
32864rm -f confcache
32865
32866test "x$prefix" = xNONE && prefix=$ac_default_prefix
32867# Let make expand exec_prefix.
32868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32869
32870DEFS=-DHAVE_CONFIG_H
32871
32872ac_libobjs=
32873ac_ltlibobjs=
32874U=
32875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32876  # 1. Remove the extension, and $U if already installed.
32877  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32878  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32879  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32880  #    will be set to the directory where LIBOBJS objects are built.
32881  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32882  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32883done
32884LIBOBJS=$ac_libobjs
32885
32886LTLIBOBJS=$ac_ltlibobjs
32887
32888
32889
32890: "${CONFIG_STATUS=./config.status}"
32891ac_write_fail=0
32892ac_clean_files_save=$ac_clean_files
32893ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32894{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32895$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32896as_write_fail=0
32897cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32898#! $SHELL
32899# Generated by $as_me.
32900# Run this file to recreate the current configuration.
32901# Compiler output produced by configure, useful for debugging
32902# configure, is in config.log if it exists.
32903
32904debug=false
32905ac_cs_recheck=false
32906ac_cs_silent=false
32907
32908SHELL=\${CONFIG_SHELL-$SHELL}
32909export SHELL
32910_ASEOF
32911cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32912## -------------------- ##
32913## M4sh Initialization. ##
32914## -------------------- ##
32915
32916# Be more Bourne compatible
32917DUALCASE=1; export DUALCASE # for MKS sh
32918if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32919  emulate sh
32920  NULLCMD=:
32921  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32922  # is contrary to our usage.  Disable this feature.
32923  alias -g '${1+"$@"}'='"$@"'
32924  setopt NO_GLOB_SUBST
32925else
32926  case `(set -o) 2>/dev/null` in #(
32927  *posix*) :
32928    set -o posix ;; #(
32929  *) :
32930     ;;
32931esac
32932fi
32933
32934
32935as_nl='
32936'
32937export as_nl
32938# Printing a long string crashes Solaris 7 /usr/bin/printf.
32939as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32942# Prefer a ksh shell builtin over an external printf program on Solaris,
32943# but without wasting forks for bash or zsh.
32944if test -z "$BASH_VERSION$ZSH_VERSION" \
32945    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32946  as_echo='print -r --'
32947  as_echo_n='print -rn --'
32948elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32949  as_echo='printf %s\n'
32950  as_echo_n='printf %s'
32951else
32952  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32953    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32954    as_echo_n='/usr/ucb/echo -n'
32955  else
32956    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32957    as_echo_n_body='eval
32958      arg=$1;
32959      case $arg in #(
32960      *"$as_nl"*)
32961	expr "X$arg" : "X\\(.*\\)$as_nl";
32962	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32963      esac;
32964      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32965    '
32966    export as_echo_n_body
32967    as_echo_n='sh -c $as_echo_n_body as_echo'
32968  fi
32969  export as_echo_body
32970  as_echo='sh -c $as_echo_body as_echo'
32971fi
32972
32973# The user is always right.
32974if test "${PATH_SEPARATOR+set}" != set; then
32975  PATH_SEPARATOR=:
32976  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32977    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32978      PATH_SEPARATOR=';'
32979  }
32980fi
32981
32982
32983# IFS
32984# We need space, tab and new line, in precisely that order.  Quoting is
32985# there to prevent editors from complaining about space-tab.
32986# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32987# splitting by setting IFS to empty value.)
32988IFS=" ""	$as_nl"
32989
32990# Find who we are.  Look in the path if we contain no directory separator.
32991as_myself=
32992case $0 in #((
32993  *[\\/]* ) as_myself=$0 ;;
32994  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32995for as_dir in $PATH
32996do
32997  IFS=$as_save_IFS
32998  test -z "$as_dir" && as_dir=.
32999    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33000  done
33001IFS=$as_save_IFS
33002
33003     ;;
33004esac
33005# We did not find ourselves, most probably we were run as `sh COMMAND'
33006# in which case we are not to be found in the path.
33007if test "x$as_myself" = x; then
33008  as_myself=$0
33009fi
33010if test ! -f "$as_myself"; then
33011  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33012  exit 1
33013fi
33014
33015# Unset variables that we do not need and which cause bugs (e.g. in
33016# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33017# suppresses any "Segmentation fault" message there.  '((' could
33018# trigger a bug in pdksh 5.2.14.
33019for as_var in BASH_ENV ENV MAIL MAILPATH
33020do eval test x\${$as_var+set} = xset \
33021  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33022done
33023PS1='$ '
33024PS2='> '
33025PS4='+ '
33026
33027# NLS nuisances.
33028LC_ALL=C
33029export LC_ALL
33030LANGUAGE=C
33031export LANGUAGE
33032
33033# CDPATH.
33034(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33035
33036
33037# as_fn_error STATUS ERROR [LINENO LOG_FD]
33038# ----------------------------------------
33039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33041# script with STATUS, using 1 if that was 0.
33042as_fn_error ()
33043{
33044  as_status=$1; test $as_status -eq 0 && as_status=1
33045  if test "$4"; then
33046    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33047    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33048  fi
33049  $as_echo "$as_me: error: $2" >&2
33050  as_fn_exit $as_status
33051} # as_fn_error
33052
33053
33054# as_fn_set_status STATUS
33055# -----------------------
33056# Set $? to STATUS, without forking.
33057as_fn_set_status ()
33058{
33059  return $1
33060} # as_fn_set_status
33061
33062# as_fn_exit STATUS
33063# -----------------
33064# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33065as_fn_exit ()
33066{
33067  set +e
33068  as_fn_set_status $1
33069  exit $1
33070} # as_fn_exit
33071
33072# as_fn_unset VAR
33073# ---------------
33074# Portably unset VAR.
33075as_fn_unset ()
33076{
33077  { eval $1=; unset $1;}
33078}
33079as_unset=as_fn_unset
33080# as_fn_append VAR VALUE
33081# ----------------------
33082# Append the text in VALUE to the end of the definition contained in VAR. Take
33083# advantage of any shell optimizations that allow amortized linear growth over
33084# repeated appends, instead of the typical quadratic growth present in naive
33085# implementations.
33086if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33087  eval 'as_fn_append ()
33088  {
33089    eval $1+=\$2
33090  }'
33091else
33092  as_fn_append ()
33093  {
33094    eval $1=\$$1\$2
33095  }
33096fi # as_fn_append
33097
33098# as_fn_arith ARG...
33099# ------------------
33100# Perform arithmetic evaluation on the ARGs, and store the result in the
33101# global $as_val. Take advantage of shells that can avoid forks. The arguments
33102# must be portable across $(()) and expr.
33103if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33104  eval 'as_fn_arith ()
33105  {
33106    as_val=$(( $* ))
33107  }'
33108else
33109  as_fn_arith ()
33110  {
33111    as_val=`expr "$@" || test $? -eq 1`
33112  }
33113fi # as_fn_arith
33114
33115
33116if expr a : '\(a\)' >/dev/null 2>&1 &&
33117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33118  as_expr=expr
33119else
33120  as_expr=false
33121fi
33122
33123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33124  as_basename=basename
33125else
33126  as_basename=false
33127fi
33128
33129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33130  as_dirname=dirname
33131else
33132  as_dirname=false
33133fi
33134
33135as_me=`$as_basename -- "$0" ||
33136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33137	 X"$0" : 'X\(//\)$' \| \
33138	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33139$as_echo X/"$0" |
33140    sed '/^.*\/\([^/][^/]*\)\/*$/{
33141	    s//\1/
33142	    q
33143	  }
33144	  /^X\/\(\/\/\)$/{
33145	    s//\1/
33146	    q
33147	  }
33148	  /^X\/\(\/\).*/{
33149	    s//\1/
33150	    q
33151	  }
33152	  s/.*/./; q'`
33153
33154# Avoid depending upon Character Ranges.
33155as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33157as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33158as_cr_digits='0123456789'
33159as_cr_alnum=$as_cr_Letters$as_cr_digits
33160
33161ECHO_C= ECHO_N= ECHO_T=
33162case `echo -n x` in #(((((
33163-n*)
33164  case `echo 'xy\c'` in
33165  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33166  xy)  ECHO_C='\c';;
33167  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33168       ECHO_T='	';;
33169  esac;;
33170*)
33171  ECHO_N='-n';;
33172esac
33173
33174rm -f conf$$ conf$$.exe conf$$.file
33175if test -d conf$$.dir; then
33176  rm -f conf$$.dir/conf$$.file
33177else
33178  rm -f conf$$.dir
33179  mkdir conf$$.dir 2>/dev/null
33180fi
33181if (echo >conf$$.file) 2>/dev/null; then
33182  if ln -s conf$$.file conf$$ 2>/dev/null; then
33183    as_ln_s='ln -s'
33184    # ... but there are two gotchas:
33185    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33186    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33187    # In both cases, we have to default to `cp -pR'.
33188    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33189      as_ln_s='cp -pR'
33190  elif ln conf$$.file conf$$ 2>/dev/null; then
33191    as_ln_s=ln
33192  else
33193    as_ln_s='cp -pR'
33194  fi
33195else
33196  as_ln_s='cp -pR'
33197fi
33198rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33199rmdir conf$$.dir 2>/dev/null
33200
33201
33202# as_fn_mkdir_p
33203# -------------
33204# Create "$as_dir" as a directory, including parents if necessary.
33205as_fn_mkdir_p ()
33206{
33207
33208  case $as_dir in #(
33209  -*) as_dir=./$as_dir;;
33210  esac
33211  test -d "$as_dir" || eval $as_mkdir_p || {
33212    as_dirs=
33213    while :; do
33214      case $as_dir in #(
33215      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33216      *) as_qdir=$as_dir;;
33217      esac
33218      as_dirs="'$as_qdir' $as_dirs"
33219      as_dir=`$as_dirname -- "$as_dir" ||
33220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33221	 X"$as_dir" : 'X\(//\)[^/]' \| \
33222	 X"$as_dir" : 'X\(//\)$' \| \
33223	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33224$as_echo X"$as_dir" |
33225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33226	    s//\1/
33227	    q
33228	  }
33229	  /^X\(\/\/\)[^/].*/{
33230	    s//\1/
33231	    q
33232	  }
33233	  /^X\(\/\/\)$/{
33234	    s//\1/
33235	    q
33236	  }
33237	  /^X\(\/\).*/{
33238	    s//\1/
33239	    q
33240	  }
33241	  s/.*/./; q'`
33242      test -d "$as_dir" && break
33243    done
33244    test -z "$as_dirs" || eval "mkdir $as_dirs"
33245  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33246
33247
33248} # as_fn_mkdir_p
33249if mkdir -p . 2>/dev/null; then
33250  as_mkdir_p='mkdir -p "$as_dir"'
33251else
33252  test -d ./-p && rmdir ./-p
33253  as_mkdir_p=false
33254fi
33255
33256
33257# as_fn_executable_p FILE
33258# -----------------------
33259# Test if FILE is an executable regular file.
33260as_fn_executable_p ()
33261{
33262  test -f "$1" && test -x "$1"
33263} # as_fn_executable_p
33264as_test_x='test -x'
33265as_executable_p=as_fn_executable_p
33266
33267# Sed expression to map a string onto a valid CPP name.
33268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33269
33270# Sed expression to map a string onto a valid variable name.
33271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33272
33273
33274exec 6>&1
33275## ----------------------------------- ##
33276## Main body of $CONFIG_STATUS script. ##
33277## ----------------------------------- ##
33278_ASEOF
33279test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33280
33281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33282# Save the log message, to keep $0 and so on meaningful, and to
33283# report actual input values of CONFIG_FILES etc. instead of their
33284# values after options handling.
33285ac_log="
33286This file was extended by $as_me, which was
33287generated by GNU Autoconf 2.69.  Invocation command line was
33288
33289  CONFIG_FILES    = $CONFIG_FILES
33290  CONFIG_HEADERS  = $CONFIG_HEADERS
33291  CONFIG_LINKS    = $CONFIG_LINKS
33292  CONFIG_COMMANDS = $CONFIG_COMMANDS
33293  $ $0 $@
33294
33295on `(hostname || uname -n) 2>/dev/null | sed 1q`
33296"
33297
33298_ACEOF
33299
33300case $ac_config_files in *"
33301"*) set x $ac_config_files; shift; ac_config_files=$*;;
33302esac
33303
33304case $ac_config_headers in *"
33305"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33306esac
33307
33308
33309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33310# Files that config.status was made for.
33311config_files="$ac_config_files"
33312config_headers="$ac_config_headers"
33313config_commands="$ac_config_commands"
33314
33315_ACEOF
33316
33317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33318ac_cs_usage="\
33319\`$as_me' instantiates files and other configuration actions
33320from templates according to the current configuration.  Unless the files
33321and actions are specified as TAGs, all are instantiated by default.
33322
33323Usage: $0 [OPTION]... [TAG]...
33324
33325  -h, --help       print this help, then exit
33326  -V, --version    print version number and configuration settings, then exit
33327      --config     print configuration, then exit
33328  -q, --quiet, --silent
33329                   do not print progress messages
33330  -d, --debug      don't remove temporary files
33331      --recheck    update $as_me by reconfiguring in the same conditions
33332      --file=FILE[:TEMPLATE]
33333                   instantiate the configuration file FILE
33334      --header=FILE[:TEMPLATE]
33335                   instantiate the configuration header FILE
33336
33337Configuration files:
33338$config_files
33339
33340Configuration headers:
33341$config_headers
33342
33343Configuration commands:
33344$config_commands
33345
33346Report bugs to the package provider."
33347
33348_ACEOF
33349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33350ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33351ac_cs_version="\\
33352config.status
33353configured by $0, generated by GNU Autoconf 2.69,
33354  with options \\"\$ac_cs_config\\"
33355
33356Copyright (C) 2012 Free Software Foundation, Inc.
33357This config.status script is free software; the Free Software Foundation
33358gives unlimited permission to copy, distribute and modify it."
33359
33360ac_pwd='$ac_pwd'
33361srcdir='$srcdir'
33362AWK='$AWK'
33363test -n "\$AWK" || AWK=awk
33364_ACEOF
33365
33366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33367# The default lists apply if the user does not specify any file.
33368ac_need_defaults=:
33369while test $# != 0
33370do
33371  case $1 in
33372  --*=?*)
33373    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33374    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33375    ac_shift=:
33376    ;;
33377  --*=)
33378    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33379    ac_optarg=
33380    ac_shift=:
33381    ;;
33382  *)
33383    ac_option=$1
33384    ac_optarg=$2
33385    ac_shift=shift
33386    ;;
33387  esac
33388
33389  case $ac_option in
33390  # Handling of the options.
33391  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33392    ac_cs_recheck=: ;;
33393  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33394    $as_echo "$ac_cs_version"; exit ;;
33395  --config | --confi | --conf | --con | --co | --c )
33396    $as_echo "$ac_cs_config"; exit ;;
33397  --debug | --debu | --deb | --de | --d | -d )
33398    debug=: ;;
33399  --file | --fil | --fi | --f )
33400    $ac_shift
33401    case $ac_optarg in
33402    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33403    '') as_fn_error $? "missing file argument" ;;
33404    esac
33405    as_fn_append CONFIG_FILES " '$ac_optarg'"
33406    ac_need_defaults=false;;
33407  --header | --heade | --head | --hea )
33408    $ac_shift
33409    case $ac_optarg in
33410    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33411    esac
33412    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33413    ac_need_defaults=false;;
33414  --he | --h)
33415    # Conflict between --help and --header
33416    as_fn_error $? "ambiguous option: \`$1'
33417Try \`$0 --help' for more information.";;
33418  --help | --hel | -h )
33419    $as_echo "$ac_cs_usage"; exit ;;
33420  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33421  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33422    ac_cs_silent=: ;;
33423
33424  # This is an error.
33425  -*) as_fn_error $? "unrecognized option: \`$1'
33426Try \`$0 --help' for more information." ;;
33427
33428  *) as_fn_append ac_config_targets " $1"
33429     ac_need_defaults=false ;;
33430
33431  esac
33432  shift
33433done
33434
33435ac_configure_extra_args=
33436
33437if $ac_cs_silent; then
33438  exec 6>/dev/null
33439  ac_configure_extra_args="$ac_configure_extra_args --silent"
33440fi
33441
33442_ACEOF
33443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33444if \$ac_cs_recheck; then
33445  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33446  shift
33447  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33448  CONFIG_SHELL='$SHELL'
33449  export CONFIG_SHELL
33450  exec "\$@"
33451fi
33452
33453_ACEOF
33454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33455exec 5>>config.log
33456{
33457  echo
33458  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33459## Running $as_me. ##
33460_ASBOX
33461  $as_echo "$ac_log"
33462} >&5
33463
33464_ACEOF
33465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33466#
33467# INIT-COMMANDS
33468#
33469
33470
33471  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
33472
33473
33474
33475_ACEOF
33476
33477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33478
33479# Handling of arguments.
33480for ac_config_target in $ac_config_targets
33481do
33482  case $ac_config_target in
33483    "include/ap_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
33484    "$APACHE_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $APACHE_OUTPUT_FILES" ;;
33485    "docs/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/httpd.conf" ;;
33486    "docs/conf/extra/httpd-autoindex.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-autoindex.conf" ;;
33487    "docs/conf/extra/httpd-dav.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-dav.conf" ;;
33488    "docs/conf/extra/httpd-default.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-default.conf" ;;
33489    "docs/conf/extra/httpd-info.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-info.conf" ;;
33490    "docs/conf/extra/httpd-languages.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-languages.conf" ;;
33491    "docs/conf/extra/httpd-manual.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-manual.conf" ;;
33492    "docs/conf/extra/httpd-mpm.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-mpm.conf" ;;
33493    "docs/conf/extra/httpd-multilang-errordoc.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-multilang-errordoc.conf" ;;
33494    "docs/conf/extra/httpd-ssl.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-ssl.conf" ;;
33495    "docs/conf/extra/httpd-userdir.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-userdir.conf" ;;
33496    "docs/conf/extra/httpd-vhosts.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-vhosts.conf" ;;
33497    "docs/conf/extra/proxy-html.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/proxy-html.conf" ;;
33498    "include/ap_config_layout.h") CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
33499    "support/apxs") CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
33500    "support/apachectl") CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
33501    "support/dbmmanage") CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
33502    "support/envvars-std") CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
33503    "support/log_server_status") CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
33504    "support/logresolve.pl") CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
33505    "support/phf_abuse_log.cgi") CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
33506    "support/split-logfile") CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
33507    "build/rules.mk") CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
33508    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
33509    "build/config_vars.sh") CONFIG_FILES="$CONFIG_FILES build/config_vars.sh" ;;
33510    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33511
33512  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33513  esac
33514done
33515
33516
33517# If the user did not use the arguments to specify the items to instantiate,
33518# then the envvar interface is used.  Set only those that are not.
33519# We use the long form for the default assignment because of an extremely
33520# bizarre bug on SunOS 4.1.3.
33521if $ac_need_defaults; then
33522  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33523  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33524  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33525fi
33526
33527# Have a temporary directory for convenience.  Make it in the build tree
33528# simply because there is no reason against having it here, and in addition,
33529# creating and moving files from /tmp can sometimes cause problems.
33530# Hook for its removal unless debugging.
33531# Note that there is a small window in which the directory will not be cleaned:
33532# after its creation but before its name has been assigned to `$tmp'.
33533$debug ||
33534{
33535  tmp= ac_tmp=
33536  trap 'exit_status=$?
33537  : "${ac_tmp:=$tmp}"
33538  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33539' 0
33540  trap 'as_fn_exit 1' 1 2 13 15
33541}
33542# Create a (secure) tmp directory for tmp files.
33543
33544{
33545  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33546  test -d "$tmp"
33547}  ||
33548{
33549  tmp=./conf$$-$RANDOM
33550  (umask 077 && mkdir "$tmp")
33551} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33552ac_tmp=$tmp
33553
33554# Set up the scripts for CONFIG_FILES section.
33555# No need to generate them if there are no CONFIG_FILES.
33556# This happens for instance with `./config.status config.h'.
33557if test -n "$CONFIG_FILES"; then
33558
33559
33560ac_cr=`echo X | tr X '\015'`
33561# On cygwin, bash can eat \r inside `` if the user requested igncr.
33562# But we know of no other shell where ac_cr would be empty at this
33563# point, so we can use a bashism as a fallback.
33564if test "x$ac_cr" = x; then
33565  eval ac_cr=\$\'\\r\'
33566fi
33567ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33568if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33569  ac_cs_awk_cr='\\r'
33570else
33571  ac_cs_awk_cr=$ac_cr
33572fi
33573
33574echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33575_ACEOF
33576
33577
33578{
33579  echo "cat >conf$$subs.awk <<_ACEOF" &&
33580  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33581  echo "_ACEOF"
33582} >conf$$subs.sh ||
33583  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33584ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33585ac_delim='%!_!# '
33586for ac_last_try in false false false false false :; do
33587  . ./conf$$subs.sh ||
33588    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33589
33590  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33591  if test $ac_delim_n = $ac_delim_num; then
33592    break
33593  elif $ac_last_try; then
33594    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33595  else
33596    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33597  fi
33598done
33599rm -f conf$$subs.sh
33600
33601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33602cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33603_ACEOF
33604sed -n '
33605h
33606s/^/S["/; s/!.*/"]=/
33607p
33608g
33609s/^[^!]*!//
33610:repl
33611t repl
33612s/'"$ac_delim"'$//
33613t delim
33614:nl
33615h
33616s/\(.\{148\}\)..*/\1/
33617t more1
33618s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33619p
33620n
33621b repl
33622:more1
33623s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33624p
33625g
33626s/.\{148\}//
33627t nl
33628:delim
33629h
33630s/\(.\{148\}\)..*/\1/
33631t more2
33632s/["\\]/\\&/g; s/^/"/; s/$/"/
33633p
33634b
33635:more2
33636s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33637p
33638g
33639s/.\{148\}//
33640t delim
33641' <conf$$subs.awk | sed '
33642/^[^""]/{
33643  N
33644  s/\n//
33645}
33646' >>$CONFIG_STATUS || ac_write_fail=1
33647rm -f conf$$subs.awk
33648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33649_ACAWK
33650cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33651  for (key in S) S_is_set[key] = 1
33652  FS = ""
33653
33654}
33655{
33656  line = $ 0
33657  nfields = split(line, field, "@")
33658  substed = 0
33659  len = length(field[1])
33660  for (i = 2; i < nfields; i++) {
33661    key = field[i]
33662    keylen = length(key)
33663    if (S_is_set[key]) {
33664      value = S[key]
33665      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33666      len += length(value) + length(field[++i])
33667      substed = 1
33668    } else
33669      len += 1 + keylen
33670  }
33671
33672  print line
33673}
33674
33675_ACAWK
33676_ACEOF
33677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33678if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33679  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33680else
33681  cat
33682fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33683  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33684_ACEOF
33685
33686# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33687# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33688# trailing colons and then remove the whole line if VPATH becomes empty
33689# (actually we leave an empty line to preserve line numbers).
33690if test "x$srcdir" = x.; then
33691  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33692h
33693s///
33694s/^/:/
33695s/[	 ]*$/:/
33696s/:\$(srcdir):/:/g
33697s/:\${srcdir}:/:/g
33698s/:@srcdir@:/:/g
33699s/^:*//
33700s/:*$//
33701x
33702s/\(=[	 ]*\).*/\1/
33703G
33704s/\n//
33705s/^[^=]*=[	 ]*$//
33706}'
33707fi
33708
33709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33710fi # test -n "$CONFIG_FILES"
33711
33712# Set up the scripts for CONFIG_HEADERS section.
33713# No need to generate them if there are no CONFIG_HEADERS.
33714# This happens for instance with `./config.status Makefile'.
33715if test -n "$CONFIG_HEADERS"; then
33716cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33717BEGIN {
33718_ACEOF
33719
33720# Transform confdefs.h into an awk script `defines.awk', embedded as
33721# here-document in config.status, that substitutes the proper values into
33722# config.h.in to produce config.h.
33723
33724# Create a delimiter string that does not exist in confdefs.h, to ease
33725# handling of long lines.
33726ac_delim='%!_!# '
33727for ac_last_try in false false :; do
33728  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33729  if test -z "$ac_tt"; then
33730    break
33731  elif $ac_last_try; then
33732    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33733  else
33734    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33735  fi
33736done
33737
33738# For the awk script, D is an array of macro values keyed by name,
33739# likewise P contains macro parameters if any.  Preserve backslash
33740# newline sequences.
33741
33742ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33743sed -n '
33744s/.\{148\}/&'"$ac_delim"'/g
33745t rset
33746:rset
33747s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33748t def
33749d
33750:def
33751s/\\$//
33752t bsnl
33753s/["\\]/\\&/g
33754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33755D["\1"]=" \3"/p
33756s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33757d
33758:bsnl
33759s/["\\]/\\&/g
33760s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33761D["\1"]=" \3\\\\\\n"\\/p
33762t cont
33763s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33764t cont
33765d
33766:cont
33767n
33768s/.\{148\}/&'"$ac_delim"'/g
33769t clear
33770:clear
33771s/\\$//
33772t bsnlc
33773s/["\\]/\\&/g; s/^/"/; s/$/"/p
33774d
33775:bsnlc
33776s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33777b cont
33778' <confdefs.h | sed '
33779s/'"$ac_delim"'/"\\\
33780"/g' >>$CONFIG_STATUS || ac_write_fail=1
33781
33782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33783  for (key in D) D_is_set[key] = 1
33784  FS = ""
33785}
33786/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33787  line = \$ 0
33788  split(line, arg, " ")
33789  if (arg[1] == "#") {
33790    defundef = arg[2]
33791    mac1 = arg[3]
33792  } else {
33793    defundef = substr(arg[1], 2)
33794    mac1 = arg[2]
33795  }
33796  split(mac1, mac2, "(") #)
33797  macro = mac2[1]
33798  prefix = substr(line, 1, index(line, defundef) - 1)
33799  if (D_is_set[macro]) {
33800    # Preserve the white space surrounding the "#".
33801    print prefix "define", macro P[macro] D[macro]
33802    next
33803  } else {
33804    # Replace #undef with comments.  This is necessary, for example,
33805    # in the case of _POSIX_SOURCE, which is predefined and required
33806    # on some systems where configure will not decide to define it.
33807    if (defundef == "undef") {
33808      print "/*", prefix defundef, macro, "*/"
33809      next
33810    }
33811  }
33812}
33813{ print }
33814_ACAWK
33815_ACEOF
33816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33817  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33818fi # test -n "$CONFIG_HEADERS"
33819
33820
33821eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33822shift
33823for ac_tag
33824do
33825  case $ac_tag in
33826  :[FHLC]) ac_mode=$ac_tag; continue;;
33827  esac
33828  case $ac_mode$ac_tag in
33829  :[FHL]*:*);;
33830  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33831  :[FH]-) ac_tag=-:-;;
33832  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33833  esac
33834  ac_save_IFS=$IFS
33835  IFS=:
33836  set x $ac_tag
33837  IFS=$ac_save_IFS
33838  shift
33839  ac_file=$1
33840  shift
33841
33842  case $ac_mode in
33843  :L) ac_source=$1;;
33844  :[FH])
33845    ac_file_inputs=
33846    for ac_f
33847    do
33848      case $ac_f in
33849      -) ac_f="$ac_tmp/stdin";;
33850      *) # Look for the file first in the build tree, then in the source tree
33851	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33852	 # because $ac_f cannot contain `:'.
33853	 test -f "$ac_f" ||
33854	   case $ac_f in
33855	   [\\/$]*) false;;
33856	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33857	   esac ||
33858	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33859      esac
33860      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33861      as_fn_append ac_file_inputs " '$ac_f'"
33862    done
33863
33864    # Let's still pretend it is `configure' which instantiates (i.e., don't
33865    # use $as_me), people would be surprised to read:
33866    #    /* config.h.  Generated by config.status.  */
33867    configure_input='Generated from '`
33868	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33869	`' by configure.'
33870    if test x"$ac_file" != x-; then
33871      configure_input="$ac_file.  $configure_input"
33872      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33873$as_echo "$as_me: creating $ac_file" >&6;}
33874    fi
33875    # Neutralize special characters interpreted by sed in replacement strings.
33876    case $configure_input in #(
33877    *\&* | *\|* | *\\* )
33878       ac_sed_conf_input=`$as_echo "$configure_input" |
33879       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33880    *) ac_sed_conf_input=$configure_input;;
33881    esac
33882
33883    case $ac_tag in
33884    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33885      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33886    esac
33887    ;;
33888  esac
33889
33890  ac_dir=`$as_dirname -- "$ac_file" ||
33891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33892	 X"$ac_file" : 'X\(//\)[^/]' \| \
33893	 X"$ac_file" : 'X\(//\)$' \| \
33894	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33895$as_echo X"$ac_file" |
33896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33897	    s//\1/
33898	    q
33899	  }
33900	  /^X\(\/\/\)[^/].*/{
33901	    s//\1/
33902	    q
33903	  }
33904	  /^X\(\/\/\)$/{
33905	    s//\1/
33906	    q
33907	  }
33908	  /^X\(\/\).*/{
33909	    s//\1/
33910	    q
33911	  }
33912	  s/.*/./; q'`
33913  as_dir="$ac_dir"; as_fn_mkdir_p
33914  ac_builddir=.
33915
33916case "$ac_dir" in
33917.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33918*)
33919  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33920  # A ".." for each directory in $ac_dir_suffix.
33921  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33922  case $ac_top_builddir_sub in
33923  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33924  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33925  esac ;;
33926esac
33927ac_abs_top_builddir=$ac_pwd
33928ac_abs_builddir=$ac_pwd$ac_dir_suffix
33929# for backward compatibility:
33930ac_top_builddir=$ac_top_build_prefix
33931
33932case $srcdir in
33933  .)  # We are building in place.
33934    ac_srcdir=.
33935    ac_top_srcdir=$ac_top_builddir_sub
33936    ac_abs_top_srcdir=$ac_pwd ;;
33937  [\\/]* | ?:[\\/]* )  # Absolute name.
33938    ac_srcdir=$srcdir$ac_dir_suffix;
33939    ac_top_srcdir=$srcdir
33940    ac_abs_top_srcdir=$srcdir ;;
33941  *) # Relative name.
33942    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33943    ac_top_srcdir=$ac_top_build_prefix$srcdir
33944    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33945esac
33946ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33947
33948
33949  case $ac_mode in
33950  :F)
33951  #
33952  # CONFIG_FILE
33953  #
33954
33955_ACEOF
33956
33957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33958# If the template does not know about datarootdir, expand it.
33959# FIXME: This hack should be removed a few years after 2.60.
33960ac_datarootdir_hack=; ac_datarootdir_seen=
33961ac_sed_dataroot='
33962/datarootdir/ {
33963  p
33964  q
33965}
33966/@datadir@/p
33967/@docdir@/p
33968/@infodir@/p
33969/@localedir@/p
33970/@mandir@/p'
33971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33972*datarootdir*) ac_datarootdir_seen=yes;;
33973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33974  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33976_ACEOF
33977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33978  ac_datarootdir_hack='
33979  s&@datadir@&$datadir&g
33980  s&@docdir@&$docdir&g
33981  s&@infodir@&$infodir&g
33982  s&@localedir@&$localedir&g
33983  s&@mandir@&$mandir&g
33984  s&\\\${datarootdir}&$datarootdir&g' ;;
33985esac
33986_ACEOF
33987
33988# Neutralize VPATH when `$srcdir' = `.'.
33989# Shell code in configure.ac might set extrasub.
33990# FIXME: do we really want to maintain this feature?
33991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33992ac_sed_extra="$ac_vpsub
33993$extrasub
33994_ACEOF
33995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33996:t
33997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33998s|@configure_input@|$ac_sed_conf_input|;t t
33999s&@top_builddir@&$ac_top_builddir_sub&;t t
34000s&@top_build_prefix@&$ac_top_build_prefix&;t t
34001s&@srcdir@&$ac_srcdir&;t t
34002s&@abs_srcdir@&$ac_abs_srcdir&;t t
34003s&@top_srcdir@&$ac_top_srcdir&;t t
34004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34005s&@builddir@&$ac_builddir&;t t
34006s&@abs_builddir@&$ac_abs_builddir&;t t
34007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34008$ac_datarootdir_hack
34009"
34010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34011  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34012
34013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34014  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34015  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34016      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34018which seems to be undefined.  Please make sure it is defined" >&5
34019$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34020which seems to be undefined.  Please make sure it is defined" >&2;}
34021
34022  rm -f "$ac_tmp/stdin"
34023  case $ac_file in
34024  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34025  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34026  esac \
34027  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34028 ;;
34029  :H)
34030  #
34031  # CONFIG_HEADER
34032  #
34033  if test x"$ac_file" != x-; then
34034    {
34035      $as_echo "/* $configure_input  */" \
34036      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34037    } >"$ac_tmp/config.h" \
34038      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34039    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34040      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34041$as_echo "$as_me: $ac_file is unchanged" >&6;}
34042    else
34043      rm -f "$ac_file"
34044      mv "$ac_tmp/config.h" "$ac_file" \
34045	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34046    fi
34047  else
34048    $as_echo "/* $configure_input  */" \
34049      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34050      || as_fn_error $? "could not create -" "$LINENO" 5
34051  fi
34052 ;;
34053
34054  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34055$as_echo "$as_me: executing $ac_file commands" >&6;}
34056 ;;
34057  esac
34058
34059
34060  case $ac_file$ac_mode in
34061    "default":C) true ;;
34062
34063  esac
34064done # for ac_tag
34065
34066
34067as_fn_exit 0
34068_ACEOF
34069ac_clean_files=$ac_clean_files_save
34070
34071test $ac_write_fail = 0 ||
34072  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34073
34074
34075# configure is writing to config.log, and then calls config.status.
34076# config.status does its own redirection, appending to config.log.
34077# Unfortunately, on DOS this fails, as config.log is still kept open
34078# by configure, so config.status won't be able to write to it; its
34079# output is simply discarded.  So we exec the FD to /dev/null,
34080# effectively closing config.log, so it can be properly (re)opened and
34081# appended to by config.status.  When coming back to configure, we
34082# need to make the FD available again.
34083if test "$no_create" != yes; then
34084  ac_cs_success=:
34085  ac_config_status_args=
34086  test "$silent" = yes &&
34087    ac_config_status_args="$ac_config_status_args --quiet"
34088  exec 5>/dev/null
34089  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34090  exec 5>>config.log
34091  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34092  # would make configure fail if this is the last instruction.
34093  $ac_cs_success || as_fn_exit 1
34094fi
34095if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34096  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34097$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34098fi
34099
34100