bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="ABOUT_APACHE"
602 ac_default_prefix=/usr/local/apache2
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 #  include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #  include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 HTTPD_VERSION
642 ap_make_delimiter
643 ap_make_include
644 perlbin
645 APU_INCLUDEDIR
646 APU_BINDIR
647 APR_INCLUDEDIR
648 APR_BINDIR
649 DSO_MODULES
650 INSTALL_PROG_FLAGS
651 MK_IMPLIB
652 SH_LIBTOOL
653 SH_LIBS
654 CORE_IMPLIB
655 CORE_IMPLIB_FILE
656 nonssl_listen_stmt_2
657 nonssl_listen_stmt_1
658 PORT
659 MODULE_CLEANDIRS
660 MODULE_DIRS
661 LIBTOOL
662 NOTEST_LIBS
663 NOTEST_LDFLAGS
664 NOTEST_CXXFLAGS
665 NOTEST_CFLAGS
666 NOTEST_CPPFLAGS
667 INCLUDES
668 UTIL_LDFLAGS
669 HTTPD_LDFLAGS
670 SH_LDFLAGS
671 LT_LDFLAGS
672 LTFLAGS
673 CXXFLAGS
674 CXX
675 other_targets
676 proxycachedir
677 runtimedir
678 installbuilddir
679 iconsdir
680 errordir
681 manualdir
682 htdocsdir
683 logfiledir
684 cgidir
685 abs_srcdir
686 EXTRA_INCLUDES
687 EXTRA_LIBS
688 EXTRA_LDFLAGS
689 EXTRA_CXXFLAGS
690 EXTRA_CFLAGS
691 EXTRA_CPPFLAGS
692 AP_SIG_GRACEFUL_SHORT
693 AP_SIG_GRACEFUL_STRING
694 AP_SIG_GRACEFUL
695 AP_CLEAN_SRCLIB_DIRS
696 AP_BUILD_SRCLIB_DIRS
697 AP_LIBS
698 shared_build
699 POST_SHARED_CMDS
700 PRE_SHARED_CMDS
701 OS_SPECIFIC_VARS
702 SHLIBPATH_VAR
703 BUILTIN_LIBS
704 OS_DIR
705 OS
706 MPM_LIB
707 progname
708 MOD_SO_LDADD
709 MOD_REWRITE_LDADD
710 MOD_ALIAS_LDADD
711 MOD_USERDIR_LDADD
712 MOD_SPELING_LDADD
713 MOD_ACTIONS_LDADD
714 MOD_IMAP_LDADD
715 MOD_DIR_LDADD
716 MOD_NEGOTIATION_LDADD
717 MOD_VHOST_ALIAS_LDADD
718 MOD_DAV_FS_LDADD
719 MOD_CGI_LDADD
720 MOD_CGID_LDADD
721 MOD_SUEXEC_LDADD
722 MOD_INFO_LDADD
723 MOD_ASIS_LDADD
724 MOD_AUTOINDEX_LDADD
725 MOD_STATUS_LDADD
726 MOD_DAV_LDADD
727 MOD_MIME_LDADD
728 MOD_HTTP_LDADD
729 APACHECTL_ULIMIT
730 checkgid_LTFLAGS
731 ab_LTFLAGS
732 htdbm_LTFLAGS
733 logresolve_LTFLAGS
734 rotatelogs_LTFLAGS
735 htdigest_LTFLAGS
736 htpasswd_LTFLAGS
737 MPM_SUBDIR_NAME
738 MPM_NAME
739 MOD_BUCKETEER_LDADD
740 MOD_OPTIONAL_FN_EXPORT_LDADD
741 MOD_OPTIONAL_FN_IMPORT_LDADD
742 MOD_OPTIONAL_HOOK_IMPORT_LDADD
743 MOD_OPTIONAL_HOOK_EXPORT_LDADD
744 MOD_SSL_LDADD
745 SSL_LIBS
746 MOD_PROXY_HTTP_LDADD
747 MOD_PROXY_FTP_LDADD
748 MOD_PROXY_CONNECT_LDADD
749 MOD_PROXY_LDADD
750 MOD_VERSION_LDADD
751 MOD_SETENVIF_LDADD
752 MOD_UNIQUE_ID_LDADD
753 MOD_USERTRACK_LDADD
754 MOD_HEADERS_LDADD
755 MOD_EXPIRES_LDADD
756 MOD_CERN_META_LDADD
757 MOD_MIME_MAGIC_LDADD
758 MOD_ENV_LDADD
759 MOD_LOGIO_LDADD
760 MOD_LOG_FORENSIC_LDADD
761 MOD_LOG_CONFIG_LDADD
762 MOD_DEFLATE_LDADD
763 MOD_INCLUDE_LDADD
764 MOD_EXT_FILTER_LDADD
765 MOD_AUTH_LDAP_LDADD
766 MOD_LDAP_LDADD
767 MOD_DUMPIO_LDADD
768 MOD_CASE_FILTER_IN_LDADD
769 MOD_CASE_FILTER_LDADD
770 MOD_EXAMPLE_LDADD
771 MOD_MEM_CACHE_LDADD
772 MOD_DISK_CACHE_LDADD
773 MOD_CACHE_LDADD
774 MOD_CHARSET_LITE_LDADD
775 MOD_ECHO_LDADD
776 MOD_FILE_CACHE_LDADD
777 MOD_ISAPI_LDADD
778 MOD_AUTH_DIGEST_LDADD
779 MOD_AUTH_DBM_LDADD
780 MOD_AUTH_ANON_LDADD
781 MOD_AUTH_LDADD
782 MOD_ACCESS_LDADD
783 EGREP
784 GREP
785 RANLIB
786 LN_S
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 AWK
791 RM
792 LTCFLAGS
793 SHLTCFLAGS
794 CPP
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
801 CC
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 rel_proxycachedir
815 exp_proxycachedir
816 rel_logfiledir
817 exp_logfiledir
818 rel_runtimedir
819 exp_runtimedir
820 rel_localstatedir
821 exp_localstatedir
822 rel_includedir
823 exp_includedir
824 rel_cgidir
825 exp_cgidir
826 rel_manualdir
827 exp_manualdir
828 rel_htdocsdir
829 exp_htdocsdir
830 rel_iconsdir
831 exp_iconsdir
832 rel_errordir
833 exp_errordir
834 rel_installbuilddir
835 exp_installbuilddir
836 rel_datadir
837 exp_datadir
838 rel_sysconfdir
839 exp_sysconfdir
840 rel_mandir
841 exp_mandir
842 rel_libexecdir
843 exp_libexecdir
844 rel_libdir
845 exp_libdir
846 rel_sbindir
847 exp_sbindir
848 rel_bindir
849 exp_bindir
850 rel_exec_prefix
851 exp_exec_prefix
852 target_alias
853 host_alias
854 build_alias
855 LIBS
856 ECHO_T
857 ECHO_N
858 ECHO_C
859 DEFS
860 mandir
861 localedir
862 libdir
863 psdir
864 pdfdir
865 dvidir
866 htmldir
867 infodir
868 docdir
869 oldincludedir
870 includedir
871 localstatedir
872 sharedstatedir
873 sysconfdir
874 datadir
875 datarootdir
876 libexecdir
877 sbindir
878 bindir
879 program_transform_name
880 prefix
881 exec_prefix
882 PACKAGE_BUGREPORT
883 PACKAGE_STRING
884 PACKAGE_VERSION
885 PACKAGE_TARNAME
886 PACKAGE_NAME
887 PATH_SEPARATOR
888 SHELL'
889 ac_subst_files=''
890 ac_user_opts='
891 enable_option_checking
892 enable_layout
893 with_apr
894 with_apr_util
895 with_port
896 enable_v4_mapped
897 enable_exception_hook
898 enable_maintainer_mode
899 enable_modules
900 enable_mods_shared
901 enable_access
902 enable_auth
903 enable_auth_anon
904 enable_auth_dbm
905 enable_auth_digest
906 enable_isapi
907 enable_file_cache
908 enable_echo
909 enable_charset_lite
910 enable_cache
911 enable_disk_cache
912 enable_mem_cache
913 enable_example
914 enable_case_filter
915 enable_case_filter_in
916 enable_dumpio
917 enable_ldap
918 enable_auth_ldap
919 enable_ext_filter
920 enable_include
921 enable_deflate
922 with_z
923 enable_log_config
924 enable_log_forensic
925 enable_logio
926 enable_env
927 enable_mime_magic
928 enable_cern_meta
929 enable_expires
930 enable_headers
931 enable_usertrack
932 enable_unique_id
933 enable_setenvif
934 enable_version
935 enable_proxy
936 enable_proxy_connect
937 enable_proxy_ftp
938 enable_proxy_http
939 enable_ssl
940 with_ssl
941 enable_optional_hook_export
942 enable_optional_hook_import
943 enable_optional_fn_import
944 enable_optional_fn_export
945 enable_bucketeer
946 with_mpm
947 enable_static_support
948 enable_static_htpasswd
949 enable_static_htdigest
950 enable_static_rotatelogs
951 enable_static_logresolve
952 enable_static_htdbm
953 enable_static_ab
954 enable_static_checkgid
955 enable_http
956 enable_mime
957 with_module
958 enable_dav
959 enable_status
960 enable_autoindex
961 enable_asis
962 enable_info
963 enable_suexec
964 enable_cgid
965 enable_cgi
966 enable_dav_fs
967 enable_vhost_alias
968 enable_negotiation
969 enable_dir
970 enable_imap
971 enable_actions
972 enable_speling
973 enable_userdir
974 enable_alias
975 enable_rewrite
976 enable_so
977 with_program_name
978 with_suexec_bin
979 with_suexec_caller
980 with_suexec_userdir
981 with_suexec_docroot
982 with_suexec_uidmin
983 with_suexec_gidmin
984 with_suexec_logfile
985 with_suexec_safepath
986 with_suexec_umask
987 '
988       ac_precious_vars='build_alias
989 host_alias
990 target_alias
991 CC
992 CFLAGS
993 LDFLAGS
994 LIBS
995 CPPFLAGS
996 CPP'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE}'
1038 infodir='${datarootdir}/info'
1039 htmldir='${docdir}'
1040 dvidir='${docdir}'
1041 pdfdir='${docdir}'
1042 psdir='${docdir}'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1046
1047 ac_prev=
1048 ac_dashdash=
1049 for ac_option
1050 do
1051   # If the previous option needs an argument, assign it.
1052   if test -n "$ac_prev"; then
1053     eval $ac_prev=\$ac_option
1054     ac_prev=
1055     continue
1056   fi
1057
1058   case $ac_option in
1059   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060   *)    ac_optarg=yes ;;
1061   esac
1062
1063   # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065   case $ac_dashdash$ac_option in
1066   --)
1067     ac_dashdash=yes ;;
1068
1069   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070     ac_prev=bindir ;;
1071   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072     bindir=$ac_optarg ;;
1073
1074   -build | --build | --buil | --bui | --bu)
1075     ac_prev=build_alias ;;
1076   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077     build_alias=$ac_optarg ;;
1078
1079   -cache-file | --cache-file | --cache-fil | --cache-fi \
1080   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081     ac_prev=cache_file ;;
1082   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084     cache_file=$ac_optarg ;;
1085
1086   --config-cache | -C)
1087     cache_file=config.cache ;;
1088
1089   -datadir | --datadir | --datadi | --datad)
1090     ac_prev=datadir ;;
1091   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092     datadir=$ac_optarg ;;
1093
1094   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095   | --dataroo | --dataro | --datar)
1096     ac_prev=datarootdir ;;
1097   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099     datarootdir=$ac_optarg ;;
1100
1101   -disable-* | --disable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147   | --exec | --exe | --ex)
1148     ac_prev=exec_prefix ;;
1149   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151   | --exec=* | --exe=* | --ex=*)
1152     exec_prefix=$ac_optarg ;;
1153
1154   -gas | --gas | --ga | --g)
1155     # Obsolete; use --with-gas.
1156     with_gas=yes ;;
1157
1158   -help | --help | --hel | --he | -h)
1159     ac_init_help=long ;;
1160   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161     ac_init_help=recursive ;;
1162   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163     ac_init_help=short ;;
1164
1165   -host | --host | --hos | --ho)
1166     ac_prev=host_alias ;;
1167   -host=* | --host=* | --hos=* | --ho=*)
1168     host_alias=$ac_optarg ;;
1169
1170   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171     ac_prev=htmldir ;;
1172   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173   | --ht=*)
1174     htmldir=$ac_optarg ;;
1175
1176   -includedir | --includedir | --includedi | --included | --include \
1177   | --includ | --inclu | --incl | --inc)
1178     ac_prev=includedir ;;
1179   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180   | --includ=* | --inclu=* | --incl=* | --inc=*)
1181     includedir=$ac_optarg ;;
1182
1183   -infodir | --infodir | --infodi | --infod | --info | --inf)
1184     ac_prev=infodir ;;
1185   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186     infodir=$ac_optarg ;;
1187
1188   -libdir | --libdir | --libdi | --libd)
1189     ac_prev=libdir ;;
1190   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191     libdir=$ac_optarg ;;
1192
1193   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194   | --libexe | --libex | --libe)
1195     ac_prev=libexecdir ;;
1196   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197   | --libexe=* | --libex=* | --libe=*)
1198     libexecdir=$ac_optarg ;;
1199
1200   -localedir | --localedir | --localedi | --localed | --locale)
1201     ac_prev=localedir ;;
1202   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203     localedir=$ac_optarg ;;
1204
1205   -localstatedir | --localstatedir | --localstatedi | --localstated \
1206   | --localstate | --localstat | --localsta | --localst | --locals)
1207     ac_prev=localstatedir ;;
1208   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210     localstatedir=$ac_optarg ;;
1211
1212   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213     ac_prev=mandir ;;
1214   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215     mandir=$ac_optarg ;;
1216
1217   -nfp | --nfp | --nf)
1218     # Obsolete; use --without-fp.
1219     with_fp=no ;;
1220
1221   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222   | --no-cr | --no-c | -n)
1223     no_create=yes ;;
1224
1225   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227     no_recursion=yes ;;
1228
1229   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231   | --oldin | --oldi | --old | --ol | --o)
1232     ac_prev=oldincludedir ;;
1233   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236     oldincludedir=$ac_optarg ;;
1237
1238   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239     ac_prev=prefix ;;
1240   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241     prefix=$ac_optarg ;;
1242
1243   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244   | --program-pre | --program-pr | --program-p)
1245     ac_prev=program_prefix ;;
1246   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248     program_prefix=$ac_optarg ;;
1249
1250   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251   | --program-suf | --program-su | --program-s)
1252     ac_prev=program_suffix ;;
1253   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255     program_suffix=$ac_optarg ;;
1256
1257   -program-transform-name | --program-transform-name \
1258   | --program-transform-nam | --program-transform-na \
1259   | --program-transform-n | --program-transform- \
1260   | --program-transform | --program-transfor \
1261   | --program-transfo | --program-transf \
1262   | --program-trans | --program-tran \
1263   | --progr-tra | --program-tr | --program-t)
1264     ac_prev=program_transform_name ;;
1265   -program-transform-name=* | --program-transform-name=* \
1266   | --program-transform-nam=* | --program-transform-na=* \
1267   | --program-transform-n=* | --program-transform-=* \
1268   | --program-transform=* | --program-transfor=* \
1269   | --program-transfo=* | --program-transf=* \
1270   | --program-trans=* | --program-tran=* \
1271   | --progr-tra=* | --program-tr=* | --program-t=*)
1272     program_transform_name=$ac_optarg ;;
1273
1274   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275     ac_prev=pdfdir ;;
1276   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277     pdfdir=$ac_optarg ;;
1278
1279   -psdir | --psdir | --psdi | --psd | --ps)
1280     ac_prev=psdir ;;
1281   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282     psdir=$ac_optarg ;;
1283
1284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285   | -silent | --silent | --silen | --sile | --sil)
1286     silent=yes ;;
1287
1288   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289     ac_prev=sbindir ;;
1290   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291   | --sbi=* | --sb=*)
1292     sbindir=$ac_optarg ;;
1293
1294   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296   | --sharedst | --shareds | --shared | --share | --shar \
1297   | --sha | --sh)
1298     ac_prev=sharedstatedir ;;
1299   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302   | --sha=* | --sh=*)
1303     sharedstatedir=$ac_optarg ;;
1304
1305   -site | --site | --sit)
1306     ac_prev=site ;;
1307   -site=* | --site=* | --sit=*)
1308     site=$ac_optarg ;;
1309
1310   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311     ac_prev=srcdir ;;
1312   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313     srcdir=$ac_optarg ;;
1314
1315   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316   | --syscon | --sysco | --sysc | --sys | --sy)
1317     ac_prev=sysconfdir ;;
1318   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320     sysconfdir=$ac_optarg ;;
1321
1322   -target | --target | --targe | --targ | --tar | --ta | --t)
1323     ac_prev=target_alias ;;
1324   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325     target_alias=$ac_optarg ;;
1326
1327   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328     verbose=yes ;;
1329
1330   -version | --version | --versio | --versi | --vers | -V)
1331     ac_init_version=: ;;
1332
1333   -with-* | --with-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355    { (exit 1); exit 1; }; }
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387    { (exit 1); exit 1; }; }
1388     ;;
1389
1390   *=*)
1391     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392     # Reject names that are not valid shell variable names.
1393     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395    { (exit 1); exit 1; }; }
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413    { (exit 1); exit 1; }; }
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417   case $enable_option_checking in
1418     no) ;;
1419     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420    { (exit 1); exit 1; }; } ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444    { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459     If a cross compiler is detected then cross compile mode will be used." >&2
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475    { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478    { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518    { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523    { (exit 1); exit 1; }; }
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures this package to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR            user executables [EPREFIX/bin]
1584   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR        program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR            object code libraries [EPREFIX/lib]
1590   --includedir=DIR        C header files [PREFIX/include]
1591   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR           info documentation [DATAROOTDIR/info]
1595   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR            man documentation [DATAROOTDIR/man]
1597   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1598   --htmldir=DIR           html documentation [DOCDIR]
1599   --dvidir=DIR            dvi documentation [DOCDIR]
1600   --pdfdir=DIR            pdf documentation [DOCDIR]
1601   --psdir=DIR             ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 System types:
1607   --build=BUILD     configure for building on BUILD [guessed]
1608   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1609   --target=TARGET   configure for building compilers for TARGET [HOST]
1610 _ACEOF
1611 fi
1612
1613 if test -n "$ac_init_help"; then
1614
1615   cat <<\_ACEOF
1616
1617 Optional Features:
1618   --disable-option-checking  ignore unrecognized --enable/--with options
1619   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621   --enable-layout=LAYOUT
1622   --enable-v4-mapped      Allow IPv6 sockets to handle IPv4 connections
1623   --enable-exception-hook Enable fatal exception hook
1624   --enable-maintainer-mode
1625                           Turn on debugging and compile time warnings
1626   --enable-modules=MODULE-LIST
1627                           Modules to enable
1628   --enable-mods-shared=MODULE-LIST
1629                           Shared modules to enable
1630   --disable-access        host-based access control
1631   --disable-auth          user-based access control
1632   --enable-auth-anon      anonymous user access
1633   --enable-auth-dbm       DBM-based access databases
1634   --enable-auth-digest    RFC2617 Digest authentication
1635   --enable-isapi          isapi extension support
1636   --enable-file-cache     File cache
1637   --enable-echo           ECHO server
1638   --disable-charset-lite  character set translation
1639   --enable-charset-lite   character set translation
1640   --enable-cache          dynamic file caching
1641   --enable-disk-cache     disk caching module
1642   --enable-mem-cache      memory caching module
1643   --enable-example        example and demo module
1644   --enable-case-filter    example uppercase conversion filter
1645   --enable-case-filter-in example uppercase conversion input filter
1646   --enable-dumpio         I/O dump filter
1647   --enable-ldap           LDAP caching and connection pooling services
1648   --enable-auth-ldap      LDAP based authentication
1649   --enable-ext-filter     external filter module
1650   --disable-include       Server Side Includes
1651   --enable-deflate        Deflate transfer encoding support
1652   --disable-log-config    logging configuration
1653   --enable-log-forensic   forensic logging
1654   --enable-logio          input and output logging
1655   --disable-env           clearing/setting of ENV vars
1656   --enable-mime-magic     automagically determining MIME type
1657   --enable-cern-meta      CERN-type meta files
1658   --enable-expires        Expires header control
1659   --enable-headers        HTTP header control
1660   --enable-usertrack      user-session tracking
1661   --enable-unique-id      per-request unique ids
1662   --disable-setenvif      basing ENV vars on headers
1663   --enable-version        determining httpd version in config files
1664   --enable-proxy          Apache proxy module
1665   --enable-proxy-connect  Apache proxy CONNECT module
1666   --enable-proxy-ftp      Apache proxy FTP module
1667   --enable-proxy-http     Apache proxy HTTP module
1668   --enable-ssl            SSL/TLS support (mod_ssl)
1669   --enable-optional-hook-export
1670                           example optional hook exporter
1671   --enable-optional-hook-import
1672                           example optional hook importer
1673   --enable-optional-fn-import
1674                           example optional function importer
1675   --enable-optional-fn-export
1676                           example optional function exporter
1677   --enable-bucketeer      buckets manipulation filter
1678   --enable-static-support Build a statically linked version the support
1679                           binaries
1680   --enable-static-htpasswd
1681                           Build a statically linked version of htpasswd
1682   --enable-static-htdigest
1683                           Build a statically linked version of htdigest
1684   --enable-static-rotatelogs
1685                           Build a statically linked version of rotatelogs
1686   --enable-static-logresolve
1687                           Build a statically linked version of logresolve
1688   --enable-static-htdbm   Build a statically linked version of htdbm
1689   --enable-static-ab      Build a statically linked version of ab
1690   --enable-static-checkgid
1691                           Build a statically linked version of checkgid
1692   --enable-http           HTTP protocol handling
1693   --disable-mime          mapping of file-extension to MIME
1694   --enable-dav            WebDAV protocol handling
1695   --disable-status        process/thread monitoring
1696   --disable-autoindex     directory listing
1697   --disable-asis          as-is filetypes
1698   --enable-info           server information
1699   --enable-suexec         set uid and gid for spawned processes
1700   --disable-cgid          CGI scripts
1701   --enable-cgi            CGI scripts
1702   --disable-cgi           CGI scripts
1703   --enable-cgid           CGI scripts
1704   --enable-dav-fs         DAV provider for the filesystem
1705   --enable-vhost-alias    mass virtual hosting module
1706   --disable-negotiation   content negotiation
1707   --disable-dir           directory request handling
1708   --disable-imap          server-side imagemaps
1709   --disable-actions       Action triggering on requests
1710   --enable-speling        correct common URL misspellings
1711   --disable-userdir       mapping of requests to user-specific directories
1712   --disable-alias         mapping of requests to different filesystem parts
1713   --enable-rewrite        rule based URL manipulation
1714   --enable-so             DSO capability
1715
1716 Optional Packages:
1717   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1718   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1719   --with-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
1720                           or the full path to apr-config
1721   --with-apr-util=DIR     prefix for installed APU, or path to APU build tree
1722   --with-port=PORT        Port on which to listen (default is 80)
1723   --with-z=DIR            use a specific zlib library
1724   --with-ssl=DIR          SSL/TLS toolkit (OpenSSL)
1725   --with-mpm=MPM          Choose the process model for Apache to use.
1726                           MPM={beos|worker|prefork|mpmt_os2|perchild|leader|threadpool}
1727   --with-module=module-type:module-file
1728                           Enable module-file in the modules/<module-type>
1729                           directory.
1730   --with-program-name     alternate executable name
1731   --with-suexec-bin       Path to suexec binary
1732   --with-suexec-caller    User allowed to call SuExec
1733   --with-suexec-userdir   User subdirectory
1734   --with-suexec-docroot   SuExec root directory
1735   --with-suexec-uidmin    Minimal allowed UID
1736   --with-suexec-gidmin    Minimal allowed GID
1737   --with-suexec-logfile   Set the logfile
1738   --with-suexec-safepath  Set the safepath
1739   --with-suexec-umask     umask for suexec'd process
1740
1741 Some influential environment variables:
1742   CC          C compiler command
1743   CFLAGS      C compiler flags
1744   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1745               nonstandard directory <lib dir>
1746   LIBS        libraries to pass to the linker, e.g. -l<library>
1747   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1748               you have headers in a nonstandard directory <include dir>
1749   CPP         C preprocessor
1750
1751 Use these variables to override the choices made by `configure' or to help
1752 it to find libraries and programs with nonstandard names/locations.
1753
1754 _ACEOF
1755 ac_status=$?
1756 fi
1757
1758 if test "$ac_init_help" = "recursive"; then
1759   # If there are subdirs, report their specific --help.
1760   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1761     test -d "$ac_dir" ||
1762       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1763       continue
1764     ac_builddir=.
1765
1766 case "$ac_dir" in
1767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *)
1769   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770   # A ".." for each directory in $ac_dir_suffix.
1771   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772   case $ac_top_builddir_sub in
1773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1775   esac ;;
1776 esac
1777 ac_abs_top_builddir=$ac_pwd
1778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir=$ac_top_build_prefix
1781
1782 case $srcdir in
1783   .)  # We are building in place.
1784     ac_srcdir=.
1785     ac_top_srcdir=$ac_top_builddir_sub
1786     ac_abs_top_srcdir=$ac_pwd ;;
1787   [\\/]* | ?:[\\/]* )  # Absolute name.
1788     ac_srcdir=$srcdir$ac_dir_suffix;
1789     ac_top_srcdir=$srcdir
1790     ac_abs_top_srcdir=$srcdir ;;
1791   *) # Relative name.
1792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793     ac_top_srcdir=$ac_top_build_prefix$srcdir
1794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1795 esac
1796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797
1798     cd "$ac_dir" || { ac_status=$?; continue; }
1799     # Check for guested configure.
1800     if test -f "$ac_srcdir/configure.gnu"; then
1801       echo &&
1802       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803     elif test -f "$ac_srcdir/configure"; then
1804       echo &&
1805       $SHELL "$ac_srcdir/configure" --help=recursive
1806     else
1807       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1808     fi || ac_status=$?
1809     cd "$ac_pwd" || { ac_status=$?; break; }
1810   done
1811 fi
1812
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1815   cat <<\_ACEOF
1816 configure
1817 generated by GNU Autoconf 2.63
1818
1819 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1820 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1821 This configure script is free software; the Free Software Foundation
1822 gives unlimited permission to copy, distribute and modify it.
1823 _ACEOF
1824   exit
1825 fi
1826 cat >config.log <<_ACEOF
1827 This file contains any messages produced by compilers while
1828 running configure, to aid debugging if configure makes a mistake.
1829
1830 It was created by $as_me, which was
1831 generated by GNU Autoconf 2.63.  Invocation command line was
1832
1833   $ $0 $@
1834
1835 _ACEOF
1836 exec 5>>config.log
1837 {
1838 cat <<_ASUNAME
1839 ## --------- ##
1840 ## Platform. ##
1841 ## --------- ##
1842
1843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1848
1849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1850 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1851
1852 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1853 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1855 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1856 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1857 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1858 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1859
1860 _ASUNAME
1861
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   $as_echo "PATH: $as_dir"
1868 done
1869 IFS=$as_save_IFS
1870
1871 } >&5
1872
1873 cat >&5 <<_ACEOF
1874
1875
1876 ## ----------- ##
1877 ## Core tests. ##
1878 ## ----------- ##
1879
1880 _ACEOF
1881
1882
1883 # Keep a trace of the command line.
1884 # Strip out --no-create and --no-recursion so they do not pile up.
1885 # Strip out --silent because we don't want to record it for future runs.
1886 # Also quote any args containing shell meta-characters.
1887 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_configure_args=
1889 ac_configure_args0=
1890 ac_configure_args1=
1891 ac_must_keep_next=false
1892 for ac_pass in 1 2
1893 do
1894   for ac_arg
1895   do
1896     case $ac_arg in
1897     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1898     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899     | -silent | --silent | --silen | --sile | --sil)
1900       continue ;;
1901     *\'*)
1902       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     esac
1904     case $ac_pass in
1905     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1906     2)
1907       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1908       if test $ac_must_keep_next = true; then
1909         ac_must_keep_next=false # Got value, back to normal.
1910       else
1911         case $ac_arg in
1912           *=* | --config-cache | -C | -disable-* | --disable-* \
1913           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1914           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1915           | -with-* | --with-* | -without-* | --without-* | --x)
1916             case "$ac_configure_args0 " in
1917               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918             esac
1919             ;;
1920           -* ) ac_must_keep_next=true ;;
1921         esac
1922       fi
1923       ac_configure_args="$ac_configure_args '$ac_arg'"
1924       ;;
1925     esac
1926   done
1927 done
1928 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1929 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1930
1931 # When interrupted or exit'd, cleanup temporary files, and complete
1932 # config.log.  We remove comments because anyway the quotes in there
1933 # would cause problems or look ugly.
1934 # WARNING: Use '\'' to represent an apostrophe within the trap.
1935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1936 trap 'exit_status=$?
1937   # Save into config.log some information that might help in debugging.
1938   {
1939     echo
1940
1941     cat <<\_ASBOX
1942 ## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##
1945 _ASBOX
1946     echo
1947     # The following way of writing the cache mishandles newlines in values,
1948 (
1949   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950     eval ac_val=\$$ac_var
1951     case $ac_val in #(
1952     *${as_nl}*)
1953       case $ac_var in #(
1954       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956       esac
1957       case $ac_var in #(
1958       _ | IFS | as_nl) ;; #(
1959       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960       *) $as_unset $ac_var ;;
1961       esac ;;
1962     esac
1963   done
1964   (set) 2>&1 |
1965     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966     *${as_nl}ac_space=\ *)
1967       sed -n \
1968         "s/'\''/'\''\\\\'\'''\''/g;
1969           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970       ;; #(
1971     *)
1972       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973       ;;
1974     esac |
1975     sort
1976 )
1977     echo
1978
1979     cat <<\_ASBOX
1980 ## ----------------- ##
1981 ## Output variables. ##
1982 ## ----------------- ##
1983 _ASBOX
1984     echo
1985     for ac_var in $ac_subst_vars
1986     do
1987       eval ac_val=\$$ac_var
1988       case $ac_val in
1989       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990       esac
1991       $as_echo "$ac_var='\''$ac_val'\''"
1992     done | sort
1993     echo
1994
1995     if test -n "$ac_subst_files"; then
1996       cat <<\_ASBOX
1997 ## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##
2000 _ASBOX
2001       echo
2002       for ac_var in $ac_subst_files
2003       do
2004         eval ac_val=\$$ac_var
2005         case $ac_val in
2006         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007         esac
2008         $as_echo "$ac_var='\''$ac_val'\''"
2009       done | sort
2010       echo
2011     fi
2012
2013     if test -s confdefs.h; then
2014       cat <<\_ASBOX
2015 ## ----------- ##
2016 ## confdefs.h. ##
2017 ## ----------- ##
2018 _ASBOX
2019       echo
2020       cat confdefs.h
2021       echo
2022     fi
2023     test "$ac_signal" != 0 &&
2024       $as_echo "$as_me: caught signal $ac_signal"
2025     $as_echo "$as_me: exit $exit_status"
2026   } >&5
2027   rm -f core *.core core.conftest.* &&
2028     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029     exit $exit_status
2030 ' 0
2031 for ac_signal in 1 2 13 15; do
2032   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2033 done
2034 ac_signal=0
2035
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2038
2039 # Predefined preprocessor variables.
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2043 _ACEOF
2044
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2048 _ACEOF
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 _ACEOF
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063 _ACEOF
2064
2065
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2068 ac_site_file1=NONE
2069 ac_site_file2=NONE
2070 if test -n "$CONFIG_SITE"; then
2071   ac_site_file1=$CONFIG_SITE
2072 elif test "x$prefix" != xNONE; then
2073   ac_site_file1=$prefix/share/config.site
2074   ac_site_file2=$prefix/etc/config.site
2075 else
2076   ac_site_file1=$ac_default_prefix/share/config.site
2077   ac_site_file2=$ac_default_prefix/etc/config.site
2078 fi
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 do
2081   test "x$ac_site_file" = xNONE && continue
2082   if test -r "$ac_site_file"; then
2083     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085     sed 's/^/| /' "$ac_site_file" >&5
2086     . "$ac_site_file"
2087   fi
2088 done
2089
2090 if test -r "$cache_file"; then
2091   # Some versions of bash will fail to source /dev/null (special
2092   # files actually), so we avoid doing that.
2093   if test -f "$cache_file"; then
2094     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2096     case $cache_file in
2097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098       *)                      . "./$cache_file";;
2099     esac
2100   fi
2101 else
2102   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2104   >$cache_file
2105 fi
2106
2107 # Check that the precious variables saved in the cache have kept the same
2108 # value.
2109 ac_cache_corrupted=false
2110 for ac_var in $ac_precious_vars; do
2111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112   eval ac_new_set=\$ac_env_${ac_var}_set
2113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114   eval ac_new_val=\$ac_env_${ac_var}_value
2115   case $ac_old_set,$ac_new_set in
2116     set,)
2117       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119       ac_cache_corrupted=: ;;
2120     ,set)
2121       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123       ac_cache_corrupted=: ;;
2124     ,);;
2125     *)
2126       if test "x$ac_old_val" != "x$ac_new_val"; then
2127         # differences in whitespace do not lead to failure.
2128         ac_old_val_w=`echo x $ac_old_val`
2129         ac_new_val_w=`echo x $ac_new_val`
2130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133           ac_cache_corrupted=:
2134         else
2135           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137           eval $ac_var=\$ac_old_val
2138         fi
2139         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2141         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2143       fi;;
2144   esac
2145   # Pass precious variables to config.status.
2146   if test "$ac_new_set" = set; then
2147     case $ac_new_val in
2148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149     *) ac_arg=$ac_var=$ac_new_val ;;
2150     esac
2151     case " $ac_configure_args " in
2152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2153       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154     esac
2155   fi
2156 done
2157 if $ac_cache_corrupted; then
2158   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2163 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2164    { (exit 1); exit 1; }; }
2165 fi
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189
2190
2191 ac_config_headers="$ac_config_headers include/ap_config_auto.h"
2192
2193 ac_aux_dir=
2194 for ac_dir in build "$srcdir"/build; do
2195   if test -f "$ac_dir/install-sh"; then
2196     ac_aux_dir=$ac_dir
2197     ac_install_sh="$ac_aux_dir/install-sh -c"
2198     break
2199   elif test -f "$ac_dir/install.sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install.sh -c"
2202     break
2203   elif test -f "$ac_dir/shtool"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/shtool install -c"
2206     break
2207   fi
2208 done
2209 if test -z "$ac_aux_dir"; then
2210   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2211 $as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2212    { (exit 1); exit 1; }; }
2213 fi
2214
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341 # Check whether --enable-layout was given.
2342 if test "${enable_layout+set}" = set; then
2343   enableval=$enable_layout;
2344   LAYOUT=$enableval
2345
2346 fi
2347
2348
2349 if test -z "$LAYOUT"; then
2350   LAYOUT="Apache"
2351 fi
2352
2353   if test ! -f $srcdir/config.layout; then
2354     echo "** Error: Layout file $srcdir/config.layout not found"
2355     echo "** Error: Cannot use undefined layout '$LAYOUT'"
2356     exit 1
2357   fi
2358   pldconf=./config.pld
2359
2360   sed -e "1,/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*/d" \
2361       -e '/[    ]*<\/Layout>[   ]*/,$d' \
2362       -e "s/^[  ]*//g" \
2363       -e "s/:[  ]*/=\'/g" \
2364       -e "s/[   ]*$/'/g" \
2365       $srcdir/config.layout > $pldconf
2366   layout_name=$LAYOUT
2367   . $pldconf
2368   rm $pldconf
2369   for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2370              sysconfdir datadir errordir iconsdir htdocsdir cgidir \
2371              includedir localstatedir runtimedir logfiledir libdir \
2372              manualdir proxycachedir installbuilddir; do
2373     eval "val=\"\$$var\""
2374     case $val in
2375       *+)
2376         val=`echo $val | sed -e 's;\+$;;'`
2377         eval "$var=\"\$val\""
2378         autosuffix=yes
2379         ;;
2380       *)
2381         autosuffix=no
2382         ;;
2383     esac
2384     val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2385     val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2386     if test "$autosuffix" = "yes"; then
2387       if echo $val | grep apache >/dev/null; then
2388         addtarget=no
2389       else
2390         addtarget=yes
2391       fi
2392       if test "$addtarget" = "yes"; then
2393         val="$val/apache2"
2394       fi
2395     fi
2396     eval "$var='$val'"
2397   done
2398
2399
2400
2401 { $as_echo "$as_me:$LINENO: checking for chosen layout" >&5
2402 $as_echo_n "checking for chosen layout... " >&6; }
2403 { $as_echo "$as_me:$LINENO: result: $layout_name" >&5
2404 $as_echo "$layout_name" >&6; }
2405
2406
2407
2408 ac_prev=
2409 # Retrieve the command-line arguments.  The eval is needed because
2410 # the arguments are quoted to preserve accuracy.
2411 eval "set x $ac_configure_args"
2412 shift
2413 for ac_option
2414 do
2415   # If the previous option needs an argument, assign it.
2416   if test -n "$ac_prev"; then
2417     eval "$ac_prev=\$ac_option"
2418     ac_prev=
2419     continue
2420   fi
2421
2422   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2423
2424   case $ac_option in
2425
2426   -bindir | --bindir | --bindi | --bind | --bin | --bi)
2427     ac_prev=bindir ;;
2428   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2429     bindir="$ac_optarg" ;;
2430
2431   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2432     ac_prev=datadir ;;
2433   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2434   | --da=*)
2435     datadir="$ac_optarg" ;;
2436
2437   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2438   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2439   | --exec | --exe | --ex)
2440     ac_prev=exec_prefix ;;
2441   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2442   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2443   | --exec=* | --exe=* | --ex=*)
2444     exec_prefix="$ac_optarg" ;;
2445
2446   -includedir | --includedir | --includedi | --included | --include \
2447   | --includ | --inclu | --incl | --inc)
2448     ac_prev=includedir ;;
2449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2450   | --includ=* | --inclu=* | --incl=* | --inc=*)
2451     includedir="$ac_optarg" ;;
2452
2453   -infodir | --infodir | --infodi | --infod | --info | --inf)
2454     ac_prev=infodir ;;
2455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2456     infodir="$ac_optarg" ;;
2457
2458   -libdir | --libdir | --libdi | --libd)
2459     ac_prev=libdir ;;
2460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2461     libdir="$ac_optarg" ;;
2462
2463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2464   | --libexe | --libex | --libe)
2465     ac_prev=libexecdir ;;
2466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2467   | --libexe=* | --libex=* | --libe=*)
2468     libexecdir="$ac_optarg" ;;
2469
2470   -localstatedir | --localstatedir | --localstatedi | --localstated \
2471   | --localstate | --localstat | --localsta | --localst \
2472   | --locals | --local | --loca | --loc | --lo)
2473     ac_prev=localstatedir ;;
2474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
2476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
2477     localstatedir="$ac_optarg" ;;
2478
2479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2480     ac_prev=mandir ;;
2481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2482     mandir="$ac_optarg" ;;
2483
2484   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2485     ac_prev=prefix ;;
2486   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2487     prefix="$ac_optarg" ;;
2488
2489   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2490     ac_prev=sbindir ;;
2491   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2492   | --sbi=* | --sb=*)
2493     sbindir="$ac_optarg" ;;
2494
2495   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2496   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2497   | --sharedst | --shareds | --shared | --share | --shar \
2498   | --sha | --sh)
2499     ac_prev=sharedstatedir ;;
2500   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2501   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2502   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2503   | --sha=* | --sh=*)
2504     sharedstatedir="$ac_optarg" ;;
2505
2506   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2507   | --syscon | --sysco | --sysc | --sys | --sy)
2508     ac_prev=sysconfdir ;;
2509   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2510   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2511     sysconfdir="$ac_optarg" ;;
2512
2513   esac
2514 done
2515
2516 # Be sure to have absolute paths.
2517 for ac_var in exec_prefix prefix
2518 do
2519   eval ac_val=$`echo $ac_var`
2520   case $ac_val in
2521     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
2522     *)  { { $as_echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
2523 $as_echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
2524    { (exit 1); exit 1; }; };;
2525   esac
2526 done
2527
2528
2529
2530
2531
2532
2533 ap_last=
2534 ap_cur="$exec_prefix"
2535 while test "x${ap_cur}" != "x${ap_last}";
2536 do
2537   ap_last="${ap_cur}"
2538   ap_cur=`eval "echo ${ap_cur}"`
2539 done
2540 exp_exec_prefix="${ap_cur}"
2541
2542
2543   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
2544
2545
2546
2547 ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
2548 # check if the stripping was successful
2549 if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
2550     # it was, so strip of any leading slashes
2551     rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2552 else
2553     # it wasn't so return the original
2554     rel_exec_prefix="$exp_exec_prefix"
2555 fi
2556
2557
2558   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
2559
2560
2561
2562
2563
2564 ap_last=
2565 ap_cur="$bindir"
2566 while test "x${ap_cur}" != "x${ap_last}";
2567 do
2568   ap_last="${ap_cur}"
2569   ap_cur=`eval "echo ${ap_cur}"`
2570 done
2571 exp_bindir="${ap_cur}"
2572
2573
2574   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
2575
2576
2577
2578 ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
2579 # check if the stripping was successful
2580 if test "x$exp_bindir" != "x${ap_stripped}"; then
2581     # it was, so strip of any leading slashes
2582     rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2583 else
2584     # it wasn't so return the original
2585     rel_bindir="$exp_bindir"
2586 fi
2587
2588
2589   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
2590
2591
2592
2593
2594
2595 ap_last=
2596 ap_cur="$sbindir"
2597 while test "x${ap_cur}" != "x${ap_last}";
2598 do
2599   ap_last="${ap_cur}"
2600   ap_cur=`eval "echo ${ap_cur}"`
2601 done
2602 exp_sbindir="${ap_cur}"
2603
2604
2605   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
2606
2607
2608
2609 ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
2610 # check if the stripping was successful
2611 if test "x$exp_sbindir" != "x${ap_stripped}"; then
2612     # it was, so strip of any leading slashes
2613     rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2614 else
2615     # it wasn't so return the original
2616     rel_sbindir="$exp_sbindir"
2617 fi
2618
2619
2620   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
2621
2622
2623
2624
2625
2626 ap_last=
2627 ap_cur="$libdir"
2628 while test "x${ap_cur}" != "x${ap_last}";
2629 do
2630   ap_last="${ap_cur}"
2631   ap_cur=`eval "echo ${ap_cur}"`
2632 done
2633 exp_libdir="${ap_cur}"
2634
2635
2636   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
2637
2638
2639
2640 ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
2641 # check if the stripping was successful
2642 if test "x$exp_libdir" != "x${ap_stripped}"; then
2643     # it was, so strip of any leading slashes
2644     rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2645 else
2646     # it wasn't so return the original
2647     rel_libdir="$exp_libdir"
2648 fi
2649
2650
2651   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
2652
2653
2654
2655
2656
2657 ap_last=
2658 ap_cur="$libexecdir"
2659 while test "x${ap_cur}" != "x${ap_last}";
2660 do
2661   ap_last="${ap_cur}"
2662   ap_cur=`eval "echo ${ap_cur}"`
2663 done
2664 exp_libexecdir="${ap_cur}"
2665
2666
2667   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
2668
2669
2670
2671 ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
2672 # check if the stripping was successful
2673 if test "x$exp_libexecdir" != "x${ap_stripped}"; then
2674     # it was, so strip of any leading slashes
2675     rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2676 else
2677     # it wasn't so return the original
2678     rel_libexecdir="$exp_libexecdir"
2679 fi
2680
2681
2682   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
2683
2684
2685
2686
2687
2688 ap_last=
2689 ap_cur="$mandir"
2690 while test "x${ap_cur}" != "x${ap_last}";
2691 do
2692   ap_last="${ap_cur}"
2693   ap_cur=`eval "echo ${ap_cur}"`
2694 done
2695 exp_mandir="${ap_cur}"
2696
2697
2698   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
2699
2700
2701
2702 ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
2703 # check if the stripping was successful
2704 if test "x$exp_mandir" != "x${ap_stripped}"; then
2705     # it was, so strip of any leading slashes
2706     rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2707 else
2708     # it wasn't so return the original
2709     rel_mandir="$exp_mandir"
2710 fi
2711
2712
2713   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
2714
2715
2716
2717
2718
2719 ap_last=
2720 ap_cur="$sysconfdir"
2721 while test "x${ap_cur}" != "x${ap_last}";
2722 do
2723   ap_last="${ap_cur}"
2724   ap_cur=`eval "echo ${ap_cur}"`
2725 done
2726 exp_sysconfdir="${ap_cur}"
2727
2728
2729   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
2730
2731
2732
2733 ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
2734 # check if the stripping was successful
2735 if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
2736     # it was, so strip of any leading slashes
2737     rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2738 else
2739     # it wasn't so return the original
2740     rel_sysconfdir="$exp_sysconfdir"
2741 fi
2742
2743
2744   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
2745
2746
2747
2748
2749
2750 ap_last=
2751 ap_cur="$datadir"
2752 while test "x${ap_cur}" != "x${ap_last}";
2753 do
2754   ap_last="${ap_cur}"
2755   ap_cur=`eval "echo ${ap_cur}"`
2756 done
2757 exp_datadir="${ap_cur}"
2758
2759
2760   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
2761
2762
2763
2764 ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
2765 # check if the stripping was successful
2766 if test "x$exp_datadir" != "x${ap_stripped}"; then
2767     # it was, so strip of any leading slashes
2768     rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2769 else
2770     # it wasn't so return the original
2771     rel_datadir="$exp_datadir"
2772 fi
2773
2774
2775   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
2776
2777
2778
2779
2780
2781 ap_last=
2782 ap_cur="$installbuilddir"
2783 while test "x${ap_cur}" != "x${ap_last}";
2784 do
2785   ap_last="${ap_cur}"
2786   ap_cur=`eval "echo ${ap_cur}"`
2787 done
2788 exp_installbuilddir="${ap_cur}"
2789
2790
2791   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
2792
2793
2794
2795 ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
2796 # check if the stripping was successful
2797 if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
2798     # it was, so strip of any leading slashes
2799     rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2800 else
2801     # it wasn't so return the original
2802     rel_installbuilddir="$exp_installbuilddir"
2803 fi
2804
2805
2806   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
2807
2808
2809
2810
2811
2812 ap_last=
2813 ap_cur="$errordir"
2814 while test "x${ap_cur}" != "x${ap_last}";
2815 do
2816   ap_last="${ap_cur}"
2817   ap_cur=`eval "echo ${ap_cur}"`
2818 done
2819 exp_errordir="${ap_cur}"
2820
2821
2822   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
2823
2824
2825
2826 ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
2827 # check if the stripping was successful
2828 if test "x$exp_errordir" != "x${ap_stripped}"; then
2829     # it was, so strip of any leading slashes
2830     rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2831 else
2832     # it wasn't so return the original
2833     rel_errordir="$exp_errordir"
2834 fi
2835
2836
2837   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
2838
2839
2840
2841
2842
2843 ap_last=
2844 ap_cur="$iconsdir"
2845 while test "x${ap_cur}" != "x${ap_last}";
2846 do
2847   ap_last="${ap_cur}"
2848   ap_cur=`eval "echo ${ap_cur}"`
2849 done
2850 exp_iconsdir="${ap_cur}"
2851
2852
2853   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
2854
2855
2856
2857 ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
2858 # check if the stripping was successful
2859 if test "x$exp_iconsdir" != "x${ap_stripped}"; then
2860     # it was, so strip of any leading slashes
2861     rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2862 else
2863     # it wasn't so return the original
2864     rel_iconsdir="$exp_iconsdir"
2865 fi
2866
2867
2868   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
2869
2870
2871
2872
2873
2874 ap_last=
2875 ap_cur="$htdocsdir"
2876 while test "x${ap_cur}" != "x${ap_last}";
2877 do
2878   ap_last="${ap_cur}"
2879   ap_cur=`eval "echo ${ap_cur}"`
2880 done
2881 exp_htdocsdir="${ap_cur}"
2882
2883
2884   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
2885
2886
2887
2888 ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
2889 # check if the stripping was successful
2890 if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
2891     # it was, so strip of any leading slashes
2892     rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2893 else
2894     # it wasn't so return the original
2895     rel_htdocsdir="$exp_htdocsdir"
2896 fi
2897
2898
2899   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
2900
2901
2902
2903
2904
2905 ap_last=
2906 ap_cur="$manualdir"
2907 while test "x${ap_cur}" != "x${ap_last}";
2908 do
2909   ap_last="${ap_cur}"
2910   ap_cur=`eval "echo ${ap_cur}"`
2911 done
2912 exp_manualdir="${ap_cur}"
2913
2914
2915   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
2916
2917
2918
2919 ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
2920 # check if the stripping was successful
2921 if test "x$exp_manualdir" != "x${ap_stripped}"; then
2922     # it was, so strip of any leading slashes
2923     rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2924 else
2925     # it wasn't so return the original
2926     rel_manualdir="$exp_manualdir"
2927 fi
2928
2929
2930   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
2931
2932
2933
2934
2935
2936 ap_last=
2937 ap_cur="$cgidir"
2938 while test "x${ap_cur}" != "x${ap_last}";
2939 do
2940   ap_last="${ap_cur}"
2941   ap_cur=`eval "echo ${ap_cur}"`
2942 done
2943 exp_cgidir="${ap_cur}"
2944
2945
2946   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
2947
2948
2949
2950 ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
2951 # check if the stripping was successful
2952 if test "x$exp_cgidir" != "x${ap_stripped}"; then
2953     # it was, so strip of any leading slashes
2954     rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2955 else
2956     # it wasn't so return the original
2957     rel_cgidir="$exp_cgidir"
2958 fi
2959
2960
2961   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
2962
2963
2964
2965
2966
2967 ap_last=
2968 ap_cur="$includedir"
2969 while test "x${ap_cur}" != "x${ap_last}";
2970 do
2971   ap_last="${ap_cur}"
2972   ap_cur=`eval "echo ${ap_cur}"`
2973 done
2974 exp_includedir="${ap_cur}"
2975
2976
2977   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
2978
2979
2980
2981 ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
2982 # check if the stripping was successful
2983 if test "x$exp_includedir" != "x${ap_stripped}"; then
2984     # it was, so strip of any leading slashes
2985     rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2986 else
2987     # it wasn't so return the original
2988     rel_includedir="$exp_includedir"
2989 fi
2990
2991
2992   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
2993
2994
2995
2996
2997
2998 ap_last=
2999 ap_cur="$localstatedir"
3000 while test "x${ap_cur}" != "x${ap_last}";
3001 do
3002   ap_last="${ap_cur}"
3003   ap_cur=`eval "echo ${ap_cur}"`
3004 done
3005 exp_localstatedir="${ap_cur}"
3006
3007
3008   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
3009
3010
3011
3012 ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
3013 # check if the stripping was successful
3014 if test "x$exp_localstatedir" != "x${ap_stripped}"; then
3015     # it was, so strip of any leading slashes
3016     rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3017 else
3018     # it wasn't so return the original
3019     rel_localstatedir="$exp_localstatedir"
3020 fi
3021
3022
3023   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
3024
3025
3026
3027
3028
3029 ap_last=
3030 ap_cur="$runtimedir"
3031 while test "x${ap_cur}" != "x${ap_last}";
3032 do
3033   ap_last="${ap_cur}"
3034   ap_cur=`eval "echo ${ap_cur}"`
3035 done
3036 exp_runtimedir="${ap_cur}"
3037
3038
3039   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
3040
3041
3042
3043 ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
3044 # check if the stripping was successful
3045 if test "x$exp_runtimedir" != "x${ap_stripped}"; then
3046     # it was, so strip of any leading slashes
3047     rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3048 else
3049     # it wasn't so return the original
3050     rel_runtimedir="$exp_runtimedir"
3051 fi
3052
3053
3054   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
3055
3056
3057
3058
3059
3060 ap_last=
3061 ap_cur="$logfiledir"
3062 while test "x${ap_cur}" != "x${ap_last}";
3063 do
3064   ap_last="${ap_cur}"
3065   ap_cur=`eval "echo ${ap_cur}"`
3066 done
3067 exp_logfiledir="${ap_cur}"
3068
3069
3070   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
3071
3072
3073
3074 ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
3075 # check if the stripping was successful
3076 if test "x$exp_logfiledir" != "x${ap_stripped}"; then
3077     # it was, so strip of any leading slashes
3078     rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3079 else
3080     # it wasn't so return the original
3081     rel_logfiledir="$exp_logfiledir"
3082 fi
3083
3084
3085   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
3086
3087
3088
3089
3090
3091 ap_last=
3092 ap_cur="$proxycachedir"
3093 while test "x${ap_cur}" != "x${ap_last}";
3094 do
3095   ap_last="${ap_cur}"
3096   ap_cur=`eval "echo ${ap_cur}"`
3097 done
3098 exp_proxycachedir="${ap_cur}"
3099
3100
3101   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
3102
3103
3104
3105 ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
3106 # check if the stripping was successful
3107 if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
3108     # it was, so strip of any leading slashes
3109     rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3110 else
3111     # it wasn't so return the original
3112     rel_proxycachedir="$exp_proxycachedir"
3113 fi
3114
3115
3116   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
3117
3118
3119
3120
3121
3122
3123   apr_ste_save_CPPFLAGS="$CPPFLAGS"
3124
3125
3126   apr_ste_save_CFLAGS="$CFLAGS"
3127
3128
3129   apr_ste_save_CXXFLAGS="$CXXFLAGS"
3130
3131
3132   apr_ste_save_LDFLAGS="$LDFLAGS"
3133
3134
3135   apr_ste_save_LIBS="$LIBS"
3136
3137
3138   apr_ste_save_INCLUDES="$INCLUDES"
3139
3140
3141
3142   rm -f config.nice
3143   cat >config.nice<<EOF
3144 #! /bin/sh
3145 #
3146 # Created by configure
3147
3148 EOF
3149   if test -n "$CC"; then
3150     echo "CC=\"$CC\"; export CC" >> config.nice
3151   fi
3152   if test -n "$CFLAGS"; then
3153     echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
3154   fi
3155   if test -n "$CPPFLAGS"; then
3156     echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
3157   fi
3158   if test -n "$LDFLAGS"; then
3159     echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
3160   fi
3161   if test -n "$LIBS"; then
3162     echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
3163   fi
3164   if test -n "$INCLUDES"; then
3165     echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
3166   fi
3167   if test -n "$NOTEST_CFLAGS"; then
3168     echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
3169   fi
3170   if test -n "$NOTEST_CPPFLAGS"; then
3171     echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
3172   fi
3173   if test -n "$NOTEST_LDFLAGS"; then
3174     echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
3175   fi
3176   if test -n "$NOTEST_LIBS"; then
3177     echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
3178   fi
3179
3180   # Retrieve command-line arguments.
3181   eval "set x $0 $ac_configure_args"
3182   shift
3183
3184   for arg
3185   do
3186
3187 ap_last=
3188 ap_cur="$arg"
3189 while test "x${ap_cur}" != "x${ap_last}";
3190 do
3191   ap_last="${ap_cur}"
3192   ap_cur=`eval "echo ${ap_cur}"`
3193 done
3194 arg="${ap_cur}"
3195
3196     echo "\"$arg\" \\" >> config.nice
3197   done
3198   echo '"$@"' >> config.nice
3199   chmod +x config.nice
3200
3201
3202 nl='
3203 '
3204
3205   { $as_echo "$as_me:$LINENO: checking for working mkdir -p" >&5
3206 $as_echo_n "checking for working mkdir -p... " >&6; }
3207 if test "${ac_cv_mkdir_p+set}" = set; then
3208   $as_echo_n "(cached) " >&6
3209 else
3210
3211     test -d conftestdir && rm -rf conftestdir
3212     mkdir -p conftestdir/somedir >/dev/null 2>&1
3213     if test -d conftestdir/somedir; then
3214       ac_cv_mkdir_p=yes
3215     else
3216       ac_cv_mkdir_p=no
3217     fi
3218     rm -rf conftestdir
3219
3220 fi
3221 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
3222 $as_echo "$ac_cv_mkdir_p" >&6; }
3223   if test "$ac_cv_mkdir_p" = "yes"; then
3224       mkdir_p="mkdir -p"
3225   else
3226       mkdir_p="$top_srcdir/build/mkdir.sh"
3227   fi
3228
3229
3230
3231
3232 # Make sure we can run config.sub.
3233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3234   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3235 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3236    { (exit 1); exit 1; }; }
3237
3238 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3239 $as_echo_n "checking build system type... " >&6; }
3240 if test "${ac_cv_build+set}" = set; then
3241   $as_echo_n "(cached) " >&6
3242 else
3243   ac_build_alias=$build_alias
3244 test "x$ac_build_alias" = x &&
3245   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3246 test "x$ac_build_alias" = x &&
3247   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3248 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3249    { (exit 1); exit 1; }; }
3250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3251   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3252 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3253    { (exit 1); exit 1; }; }
3254
3255 fi
3256 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3257 $as_echo "$ac_cv_build" >&6; }
3258 case $ac_cv_build in
3259 *-*-*) ;;
3260 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3261 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3262    { (exit 1); exit 1; }; };;
3263 esac
3264 build=$ac_cv_build
3265 ac_save_IFS=$IFS; IFS='-'
3266 set x $ac_cv_build
3267 shift
3268 build_cpu=$1
3269 build_vendor=$2
3270 shift; shift
3271 # Remember, the first character of IFS is used to create $*,
3272 # except with old shells:
3273 build_os=$*
3274 IFS=$ac_save_IFS
3275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3276
3277
3278 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3279 $as_echo_n "checking host system type... " >&6; }
3280 if test "${ac_cv_host+set}" = set; then
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test "x$host_alias" = x; then
3284   ac_cv_host=$ac_cv_build
3285 else
3286   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3287     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3288 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3289    { (exit 1); exit 1; }; }
3290 fi
3291
3292 fi
3293 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3294 $as_echo "$ac_cv_host" >&6; }
3295 case $ac_cv_host in
3296 *-*-*) ;;
3297 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3298 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3299    { (exit 1); exit 1; }; };;
3300 esac
3301 host=$ac_cv_host
3302 ac_save_IFS=$IFS; IFS='-'
3303 set x $ac_cv_host
3304 shift
3305 host_cpu=$1
3306 host_vendor=$2
3307 shift; shift
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3310 host_os=$*
3311 IFS=$ac_save_IFS
3312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3313
3314
3315 { $as_echo "$as_me:$LINENO: checking target system type" >&5
3316 $as_echo_n "checking target system type... " >&6; }
3317 if test "${ac_cv_target+set}" = set; then
3318   $as_echo_n "(cached) " >&6
3319 else
3320   if test "x$target_alias" = x; then
3321   ac_cv_target=$ac_cv_host
3322 else
3323   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3324     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3325 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3326    { (exit 1); exit 1; }; }
3327 fi
3328
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3331 $as_echo "$ac_cv_target" >&6; }
3332 case $ac_cv_target in
3333 *-*-*) ;;
3334 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3335 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
3336    { (exit 1); exit 1; }; };;
3337 esac
3338 target=$ac_cv_target
3339 ac_save_IFS=$IFS; IFS='-'
3340 set x $ac_cv_target
3341 shift
3342 target_cpu=$1
3343 target_vendor=$2
3344 shift; shift
3345 # Remember, the first character of IFS is used to create $*,
3346 # except with old shells:
3347 target_os=$*
3348 IFS=$ac_save_IFS
3349 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3350
3351
3352 # The aliases save the names the user supplied, while $host etc.
3353 # will get canonicalized.
3354 test -n "$target_alias" &&
3355   test "$program_prefix$program_suffix$program_transform_name" = \
3356     NONENONEs,x,x, &&
3357   program_prefix=${target_alias}-
3358
3359 orig_prefix="$prefix"
3360
3361 echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
3362
3363
3364   apr_found="no"
3365
3366   if test "$ac_cv_emxos2" = "yes"; then
3367     # Scripts don't pass test -x on OS/2
3368     TEST_X="test -f"
3369   else
3370     TEST_X="test -x"
3371   fi
3372
3373   { $as_echo "$as_me:$LINENO: checking for APR" >&5
3374 $as_echo_n "checking for APR... " >&6; }
3375
3376 # Check whether --with-apr was given.
3377 if test "${with_apr+set}" = set; then
3378   withval=$with_apr;
3379     if test "$withval" = "no" || test "$withval" = "yes"; then
3380       { { $as_echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
3381 $as_echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
3382    { (exit 1); exit 1; }; }
3383     fi
3384
3385     if $TEST_X "$withval/bin/apr-config"; then
3386       apr_found="yes"
3387       apr_config="$withval/bin/apr-config"
3388     elif $TEST_X "$withval/apr-config"; then
3389       apr_found="yes"
3390       apr_config="$withval/apr-config"
3391     elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
3392       apr_found="yes"
3393       apr_config="$withval"
3394     fi
3395
3396         if test "$apr_found" != "yes"; then
3397       { { $as_echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
3398 build directory, or an apr-config file." >&5
3399 $as_echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
3400 build directory, or an apr-config file." >&2;}
3401    { (exit 1); exit 1; }; }
3402     fi
3403
3404 else
3405
3406         if test -d ""$srcdir/srclib/apr""; then
3407       apr_temp_abs_srcdir="`cd "$srcdir/srclib/apr" && pwd`"
3408       apr_found="reconfig"
3409       if test -n ""./srclib/apr""; then
3410         apr_config=""./srclib/apr"/apr-config"
3411       else
3412         apr_config=""$srcdir/srclib/apr"/apr-config"
3413       fi
3414     fi
3415     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
3416       if apr-config --help > /dev/null 2>&1 ; then
3417         apr_found="yes"
3418         apr_config="apr-config"
3419       else
3420                 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
3421           if $TEST_X "$lookdir/bin/apr-config"; then
3422             apr_found="yes"
3423             apr_config="$lookdir/bin/apr-config"
3424             break
3425           fi
3426         done
3427       fi
3428     fi
3429
3430 fi
3431
3432
3433   { $as_echo "$as_me:$LINENO: result: $apr_found" >&5
3434 $as_echo "$apr_found" >&6; }
3435
3436
3437 if test "$apr_found" = "no"; then
3438   { { $as_echo "$as_me:$LINENO: error: APR not found.  Please read the documentation." >&5
3439 $as_echo "$as_me: error: APR not found.  Please read the documentation." >&2;}
3440    { (exit 1); exit 1; }; }
3441 fi
3442
3443 if test "$apr_found" = "reconfig"; then
3444
3445   # save our work to this point; this allows the sub-package to use it
3446   cat >confcache <<\_ACEOF
3447 # This file is a shell script that caches the results of configure
3448 # tests run on this system so they can be shared between configure
3449 # scripts and configure runs, see configure's option --config-cache.
3450 # It is not useful on other systems.  If it contains results you don't
3451 # want to keep, you may remove or edit it.
3452 #
3453 # config.status only pays attention to the cache file if you give it
3454 # the --recheck option to rerun configure.
3455 #
3456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3458 # following values.
3459
3460 _ACEOF
3461
3462 # The following way of writing the cache mishandles newlines in values,
3463 # but we know of no workaround that is simple, portable, and efficient.
3464 # So, we kill variables containing newlines.
3465 # Ultrix sh set writes to stderr and can't be redirected directly,
3466 # and sets the high bit in the cache file unless we assign to the vars.
3467 (
3468   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3469     eval ac_val=\$$ac_var
3470     case $ac_val in #(
3471     *${as_nl}*)
3472       case $ac_var in #(
3473       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
3474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3475       esac
3476       case $ac_var in #(
3477       _ | IFS | as_nl) ;; #(
3478       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3479       *) $as_unset $ac_var ;;
3480       esac ;;
3481     esac
3482   done
3483
3484   (set) 2>&1 |
3485     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3486     *${as_nl}ac_space=\ *)
3487       # `set' does not quote correctly, so add quotes (double-quote
3488       # substitution turns \\\\ into \\, and sed turns \\ into \).
3489       sed -n \
3490         "s/'/'\\\\''/g;
3491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3492       ;; #(
3493     *)
3494       # `set' quotes correctly as required by POSIX, so do not add quotes.
3495       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3496       ;;
3497     esac |
3498     sort
3499 ) |
3500   sed '
3501      /^ac_cv_env_/b end
3502      t clear
3503      :clear
3504      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3505      t end
3506      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3507      :end' >>confcache
3508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3509   if test -w "$cache_file"; then
3510     test "x$cache_file" != "x/dev/null" &&
3511       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
3512 $as_echo "$as_me: updating cache $cache_file" >&6;}
3513     cat confcache >$cache_file
3514   else
3515     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3517   fi
3518 fi
3519 rm -f confcache
3520
3521   echo "configuring package in srclib/apr now"
3522   ac_popdir=`pwd`
3523   apr_config_subdirs="srclib/apr"
3524   test -d srclib/apr || $mkdir_p srclib/apr
3525   ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
3526   cd srclib/apr
3527
3528       # A "../" for each directory in /$config_subdirs.
3529       ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3530
3531   # Make the cache file pathname absolute for the subdirs
3532   # required to correctly handle subdirs that might actually
3533   # be symlinks
3534   case "$cache_file" in
3535   /*) # already absolute
3536     ac_sub_cache_file=$cache_file ;;
3537   *)  # Was relative path.
3538     ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3539   esac
3540
3541
3542   apr_configure_args=
3543   apr_sep=
3544   for apr_configure_arg in $ac_configure_args
3545   do
3546     case "$apr_configure_arg" in
3547       --enable-layout=*|\'--enable-layout=*)
3548         continue ;;
3549     esac
3550     apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3551     apr_sep=" "
3552   done
3553
3554
3555     test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3556
3557     apr_configure_args="--disable-option-checking $apr_configure_args"
3558
3559               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
3560   then :
3561     echo "srclib/apr configured properly"
3562   else
3563     echo "configure failed for srclib/apr"
3564     exit 1
3565   fi
3566
3567   cd $ac_popdir
3568
3569   # grab any updates from the sub-package
3570   if test -r "$cache_file"; then
3571   # Some versions of bash will fail to source /dev/null (special
3572   # files actually), so we avoid doing that.
3573   if test -f "$cache_file"; then
3574     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
3575 $as_echo "$as_me: loading cache $cache_file" >&6;}
3576     case $cache_file in
3577       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3578       *)                      . "./$cache_file";;
3579     esac
3580   fi
3581 else
3582   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
3583 $as_echo "$as_me: creating cache $cache_file" >&6;}
3584   >$cache_file
3585 fi
3586
3587
3588     AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
3589   AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
3590 fi
3591
3592
3593   if test -z "$CC"; then
3594     echo "  setting CC to \"`$apr_config --cc`\""
3595     CC="`$apr_config --cc`"
3596   fi
3597
3598
3599   if test -z "$CPP"; then
3600     echo "  setting CPP to \"`$apr_config --cpp`\""
3601     CPP="`$apr_config --cpp`"
3602   fi
3603
3604
3605   if test "x$CFLAGS" = "x"; then
3606     echo "  setting CFLAGS to \"`$apr_config --cflags`\""
3607     CFLAGS="`$apr_config --cflags`"
3608   else
3609     apr_addto_bugger="`$apr_config --cflags`"
3610     for i in $apr_addto_bugger; do
3611       apr_addto_duplicate="0"
3612       for j in $CFLAGS; do
3613         if test "x$i" = "x$j"; then
3614           apr_addto_duplicate="1"
3615           break
3616         fi
3617       done
3618       if test $apr_addto_duplicate = "0"; then
3619         echo "  adding \"$i\" to CFLAGS"
3620         CFLAGS="$CFLAGS $i"
3621       fi
3622     done
3623   fi
3624
3625
3626   if test "x$CPPFLAGS" = "x"; then
3627     echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
3628     CPPFLAGS="`$apr_config --cppflags`"
3629   else
3630     apr_addto_bugger="`$apr_config --cppflags`"
3631     for i in $apr_addto_bugger; do
3632       apr_addto_duplicate="0"
3633       for j in $CPPFLAGS; do
3634         if test "x$i" = "x$j"; then
3635           apr_addto_duplicate="1"
3636           break
3637         fi
3638       done
3639       if test $apr_addto_duplicate = "0"; then
3640         echo "  adding \"$i\" to CPPFLAGS"
3641         CPPFLAGS="$CPPFLAGS $i"
3642       fi
3643     done
3644   fi
3645
3646
3647   if test "x$LDFLAGS" = "x"; then
3648     echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
3649     LDFLAGS="`$apr_config --ldflags`"
3650   else
3651     apr_addto_bugger="`$apr_config --ldflags`"
3652     for i in $apr_addto_bugger; do
3653       apr_addto_duplicate="0"
3654       for j in $LDFLAGS; do
3655         if test "x$i" = "x$j"; then
3656           apr_addto_duplicate="1"
3657           break
3658         fi
3659       done
3660       if test $apr_addto_duplicate = "0"; then
3661         echo "  adding \"$i\" to LDFLAGS"
3662         LDFLAGS="$LDFLAGS $i"
3663       fi
3664     done
3665   fi
3666
3667
3668   if test "x$INCLUDES" = "x"; then
3669     echo "  setting INCLUDES to \"`$apr_config --includes`\""
3670     INCLUDES="`$apr_config --includes`"
3671   else
3672     apr_addto_bugger="`$apr_config --includes`"
3673     for i in $apr_addto_bugger; do
3674       apr_addto_duplicate="0"
3675       for j in $INCLUDES; do
3676         if test "x$i" = "x$j"; then
3677           apr_addto_duplicate="1"
3678           break
3679         fi
3680       done
3681       if test $apr_addto_duplicate = "0"; then
3682         echo "  adding \"$i\" to INCLUDES"
3683         INCLUDES="$INCLUDES $i"
3684       fi
3685     done
3686   fi
3687
3688 SHLIBPATH_VAR=`$apr_config --shlib-path-var`
3689 APR_BINDIR=`$apr_config --bindir`
3690 APR_INCLUDEDIR=`$apr_config --includedir`
3691
3692 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
3693
3694
3695   apu_found="no"
3696
3697   { $as_echo "$as_me:$LINENO: checking for APR-util" >&5
3698 $as_echo_n "checking for APR-util... " >&6; }
3699
3700 # Check whether --with-apr-util was given.
3701 if test "${with_apr_util+set}" = set; then
3702   withval=$with_apr_util;
3703     if test "$withval" = "no" || test "$withval" = "yes"; then
3704       { { $as_echo "$as_me:$LINENO: error: --with-apr-util requires a directory to be provided" >&5
3705 $as_echo "$as_me: error: --with-apr-util requires a directory to be provided" >&2;}
3706    { (exit 1); exit 1; }; }
3707     fi
3708
3709     if test -x "$withval/bin/apu-config"; then
3710        apu_found="yes"
3711        apu_config="$withval/bin/apu-config"
3712     elif test -x "$withval/apu-config"; then
3713               apu_found="yes"
3714        apu_config="$withval/apu-config"
3715     elif test -x "$withval" && $withval --help > /dev/null 2>&1 ; then
3716        apu_found="yes"
3717        apu_config="$withval"
3718     fi
3719
3720             if test "$apu_found" != "yes"; then
3721       { { $as_echo "$as_me:$LINENO: error:
3722 The directory given to --with-apr-util does not specify a prefix for an
3723 installed APU, nor an APR-util build directory." >&5
3724 $as_echo "$as_me: error:
3725 The directory given to --with-apr-util does not specify a prefix for an
3726 installed APU, nor an APR-util build directory." >&2;}
3727    { (exit 1); exit 1; }; }
3728     fi
3729
3730 else
3731
3732         if test -d ""$srcdir/srclib/apr-util""; then
3733       apu_found="reconfig"
3734       if test -n ""./srclib/apr-util""; then
3735         apu_config=""./srclib/apr-util"/apu-config"
3736       else
3737         apu_config=""$srcdir/srclib/apr-util"/apu-config"
3738       fi
3739     fi
3740     if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
3741       if apu-config --help > /dev/null 2>&1 ; then
3742         apu_found="yes"
3743         apu_config="apu-config"
3744       else
3745                 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
3746           if test -x "$lookdir/bin/apu-config"; then
3747             apu_found="yes"
3748             apu_config="$lookdir/bin/apu-config"
3749             break
3750           fi
3751         done
3752       fi
3753     fi
3754
3755 fi
3756
3757
3758   { $as_echo "$as_me:$LINENO: result: $apu_found" >&5
3759 $as_echo "$apu_found" >&6; }
3760
3761
3762 if test "$apu_found" = "no"; then
3763   { { $as_echo "$as_me:$LINENO: error: APR-util not found.  Please read the documentation." >&5
3764 $as_echo "$as_me: error: APR-util not found.  Please read the documentation." >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 # Catch some misconfigurations:
3769 case ${apr_found}.${apu_found} in
3770 reconfig.yes)
3771   { { $as_echo "$as_me:$LINENO: error: Cannot use an external APR-util with the bundled APR" >&5
3772 $as_echo "$as_me: error: Cannot use an external APR-util with the bundled APR" >&2;}
3773    { (exit 1); exit 1; }; }
3774   ;;
3775 yes.reconfig)
3776   { { $as_echo "$as_me:$LINENO: error: Cannot use an external APR with the bundled APR-util" >&5
3777 $as_echo "$as_me: error: Cannot use an external APR with the bundled APR-util" >&2;}
3778    { (exit 1); exit 1; }; }
3779   ;;
3780 esac
3781
3782 if test "$apu_found" = "reconfig"; then
3783
3784   # save our work to this point; this allows the sub-package to use it
3785   cat >confcache <<\_ACEOF
3786 # This file is a shell script that caches the results of configure
3787 # tests run on this system so they can be shared between configure
3788 # scripts and configure runs, see configure's option --config-cache.
3789 # It is not useful on other systems.  If it contains results you don't
3790 # want to keep, you may remove or edit it.
3791 #
3792 # config.status only pays attention to the cache file if you give it
3793 # the --recheck option to rerun configure.
3794 #
3795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3797 # following values.
3798
3799 _ACEOF
3800
3801 # The following way of writing the cache mishandles newlines in values,
3802 # but we know of no workaround that is simple, portable, and efficient.
3803 # So, we kill variables containing newlines.
3804 # Ultrix sh set writes to stderr and can't be redirected directly,
3805 # and sets the high bit in the cache file unless we assign to the vars.
3806 (
3807   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3808     eval ac_val=\$$ac_var
3809     case $ac_val in #(
3810     *${as_nl}*)
3811       case $ac_var in #(
3812       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
3813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3814       esac
3815       case $ac_var in #(
3816       _ | IFS | as_nl) ;; #(
3817       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3818       *) $as_unset $ac_var ;;
3819       esac ;;
3820     esac
3821   done
3822
3823   (set) 2>&1 |
3824     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3825     *${as_nl}ac_space=\ *)
3826       # `set' does not quote correctly, so add quotes (double-quote
3827       # substitution turns \\\\ into \\, and sed turns \\ into \).
3828       sed -n \
3829         "s/'/'\\\\''/g;
3830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3831       ;; #(
3832     *)
3833       # `set' quotes correctly as required by POSIX, so do not add quotes.
3834       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3835       ;;
3836     esac |
3837     sort
3838 ) |
3839   sed '
3840      /^ac_cv_env_/b end
3841      t clear
3842      :clear
3843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3844      t end
3845      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3846      :end' >>confcache
3847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3848   if test -w "$cache_file"; then
3849     test "x$cache_file" != "x/dev/null" &&
3850       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
3851 $as_echo "$as_me: updating cache $cache_file" >&6;}
3852     cat confcache >$cache_file
3853   else
3854     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3856   fi
3857 fi
3858 rm -f confcache
3859
3860   echo "configuring package in srclib/apr-util now"
3861   ac_popdir=`pwd`
3862   apr_config_subdirs="srclib/apr-util"
3863   test -d srclib/apr-util || $mkdir_p srclib/apr-util
3864   ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
3865   cd srclib/apr-util
3866
3867       # A "../" for each directory in /$config_subdirs.
3868       ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3869
3870   # Make the cache file pathname absolute for the subdirs
3871   # required to correctly handle subdirs that might actually
3872   # be symlinks
3873   case "$cache_file" in
3874   /*) # already absolute
3875     ac_sub_cache_file=$cache_file ;;
3876   *)  # Was relative path.
3877     ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3878   esac
3879
3880
3881   apr_configure_args=
3882   apr_sep=
3883   for apr_configure_arg in $ac_configure_args
3884   do
3885     case "$apr_configure_arg" in
3886       --enable-layout=*|\'--enable-layout=*)
3887         continue ;;
3888     esac
3889     apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3890     apr_sep=" "
3891   done
3892
3893
3894     test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3895
3896     apr_configure_args="--disable-option-checking $apr_configure_args"
3897
3898               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
3899   then :
3900     echo "srclib/apr-util configured properly"
3901   else
3902     echo "configure failed for srclib/apr-util"
3903     exit 1
3904   fi
3905
3906   cd $ac_popdir
3907
3908   # grab any updates from the sub-package
3909   if test -r "$cache_file"; then
3910   # Some versions of bash will fail to source /dev/null (special
3911   # files actually), so we avoid doing that.
3912   if test -f "$cache_file"; then
3913     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
3914 $as_echo "$as_me: loading cache $cache_file" >&6;}
3915     case $cache_file in
3916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3917       *)                      . "./$cache_file";;
3918     esac
3919   fi
3920 else
3921   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
3922 $as_echo "$as_me: creating cache $cache_file" >&6;}
3923   >$cache_file
3924 fi
3925
3926
3927     AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
3928   AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
3929 fi
3930
3931
3932   if test "x$LDFLAGS" = "x"; then
3933     echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
3934     LDFLAGS="`$apu_config --ldflags`"
3935   else
3936     apr_addto_bugger="`$apu_config --ldflags`"
3937     for i in $apr_addto_bugger; do
3938       apr_addto_duplicate="0"
3939       for j in $LDFLAGS; do
3940         if test "x$i" = "x$j"; then
3941           apr_addto_duplicate="1"
3942           break
3943         fi
3944       done
3945       if test $apr_addto_duplicate = "0"; then
3946         echo "  adding \"$i\" to LDFLAGS"
3947         LDFLAGS="$LDFLAGS $i"
3948       fi
3949     done
3950   fi
3951
3952
3953   if test "x$INCLUDES" = "x"; then
3954     echo "  setting INCLUDES to \"`$apu_config --includes`\""
3955     INCLUDES="`$apu_config --includes`"
3956   else
3957     apr_addto_bugger="`$apu_config --includes`"
3958     for i in $apr_addto_bugger; do
3959       apr_addto_duplicate="0"
3960       for j in $INCLUDES; do
3961         if test "x$i" = "x$j"; then
3962           apr_addto_duplicate="1"
3963           break
3964         fi
3965       done
3966       if test $apr_addto_duplicate = "0"; then
3967         echo "  adding \"$i\" to INCLUDES"
3968         INCLUDES="$INCLUDES $i"
3969       fi
3970     done
3971   fi
3972
3973 APU_BINDIR=`$apu_config --bindir`
3974 APU_INCLUDEDIR=`$apu_config --includedir`
3975
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 if test -n "$ac_tool_prefix"; then
3982   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987   $as_echo_n "(cached) " >&6
3988 else
3989   if test -n "$CC"; then
3990   ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4000     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 fi
4008 fi
4009 CC=$ac_cv_prog_CC
4010 if test -n "$CC"; then
4011   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4012 $as_echo "$CC" >&6; }
4013 else
4014   { $as_echo "$as_me:$LINENO: result: no" >&5
4015 $as_echo "no" >&6; }
4016 fi
4017
4018
4019 fi
4020 if test -z "$ac_cv_prog_CC"; then
4021   ac_ct_CC=$CC
4022   # Extract the first word of "gcc", so it can be a program name with args.
4023 set dummy gcc; ac_word=$2
4024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4027   $as_echo_n "(cached) " >&6
4028 else
4029   if test -n "$ac_ct_CC"; then
4030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039     ac_cv_prog_ac_ct_CC="gcc"
4040     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4052 $as_echo "$ac_ct_CC" >&6; }
4053 else
4054   { $as_echo "$as_me:$LINENO: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058   if test "x$ac_ct_CC" = x; then
4059     CC=""
4060   else
4061     case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067     CC=$ac_ct_CC
4068   fi
4069 else
4070   CC="$ac_cv_prog_CC"
4071 fi
4072
4073 if test -z "$CC"; then
4074           if test -n "$ac_tool_prefix"; then
4075     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then
4080   $as_echo_n "(cached) " >&6
4081 else
4082   if test -n "$CC"; then
4083   ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092     ac_cv_prog_CC="${ac_tool_prefix}cc"
4093     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4106 else
4107   { $as_echo "$as_me:$LINENO: result: no" >&5
4108 $as_echo "no" >&6; }
4109 fi
4110
4111
4112   fi
4113 fi
4114 if test -z "$CC"; then
4115   # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120   $as_echo_n "(cached) " >&6
4121 else
4122   if test -n "$CC"; then
4123   ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125   ac_prog_rejected=no
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134        ac_prog_rejected=yes
4135        continue
4136      fi
4137     ac_cv_prog_CC="cc"
4138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 if test $ac_prog_rejected = yes; then
4146   # We found a bogon in the path, so make sure we never use it.
4147   set dummy $ac_cv_prog_CC
4148   shift
4149   if test $# != 0; then
4150     # We chose a different compiler from the bogus one.
4151     # However, it has the same basename, so the bogon will be chosen
4152     # first if we set CC to just the basename; use the full file name.
4153     shift
4154     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4155   fi
4156 fi
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4163 else
4164   { $as_echo "$as_me:$LINENO: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$CC"; then
4171   if test -n "$ac_tool_prefix"; then
4172   for ac_prog in cl.exe
4173   do
4174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$CC"; then
4182   ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4205 else
4206   { $as_echo "$as_me:$LINENO: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211     test -n "$CC" && break
4212   done
4213 fi
4214 if test -z "$CC"; then
4215   ac_ct_CC=$CC
4216   for ac_prog in cl.exe
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$ac_ct_CC"; then
4226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_prog_ac_ct_CC="$ac_prog"
4236     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4249 else
4250   { $as_echo "$as_me:$LINENO: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255   test -n "$ac_ct_CC" && break
4256 done
4257
4258   if test "x$ac_ct_CC" = x; then
4259     CC=""
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267     CC=$ac_ct_CC
4268   fi
4269 fi
4270
4271 fi
4272
4273
4274 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4277 See \`config.log' for more details." >&5
4278 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&2;}
4280    { (exit 1); exit 1; }; }; }
4281
4282 # Provide some information about the compiler.
4283 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4284 set X $ac_compile
4285 ac_compiler=$2
4286 { (ac_try="$ac_compiler --version >&5"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4292 $as_echo "$ac_try_echo") >&5
4293   (eval "$ac_compiler --version >&5") 2>&5
4294   ac_status=$?
4295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }
4297 { (ac_try="$ac_compiler -v >&5"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4303 $as_echo "$ac_try_echo") >&5
4304   (eval "$ac_compiler -v >&5") 2>&5
4305   ac_status=$?
4306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }
4308 { (ac_try="$ac_compiler -V >&5"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4314 $as_echo "$ac_try_echo") >&5
4315   (eval "$ac_compiler -V >&5") 2>&5
4316   ac_status=$?
4317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }
4319
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4341 $as_echo_n "checking for C compiler default output file name... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4343
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4346
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4349 do
4350   case $ac_file in
4351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353   esac
4354 done
4355 rm -f $ac_rmfiles
4356
4357 if { (ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4363 $as_echo "$ac_try_echo") >&5
4364   (eval "$ac_link_default") 2>&5
4365   ac_status=$?
4366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; then
4368   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4374 do
4375   test -f "$ac_file" || continue
4376   case $ac_file in
4377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4378         ;;
4379     [ab].out )
4380         # We found the default executable, but exeext='' is most
4381         # certainly right.
4382         break;;
4383     *.* )
4384         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385         then :; else
4386            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4387         fi
4388         # We set ac_cv_exeext here because the later test for it is not
4389         # safe: cross compilers may not add the suffix if given an `-o'
4390         # argument, so we may need to know it at that point already.
4391         # Even if this section looks crufty: it has the advantage of
4392         # actually working.
4393         break;;
4394     * )
4395         break;;
4396   esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4399
4400 else
4401   ac_file=''
4402 fi
4403
4404 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4405 $as_echo "$ac_file" >&6; }
4406 if test -z "$ac_file"; then
4407   $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&5
4414 $as_echo "$as_me: error: C compiler cannot create executables
4415 See \`config.log' for more details." >&2;}
4416    { (exit 77); exit 77; }; }; }
4417 fi
4418
4419 ac_exeext=$ac_cv_exeext
4420
4421 # Check that the compiler produces executables we can run.  If not, either
4422 # the compiler is broken, or we cross compile.
4423 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4424 $as_echo_n "checking whether the C compiler works... " >&6; }
4425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428   if { ac_try='./$ac_file'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4434 $as_echo "$ac_try_echo") >&5
4435   (eval "$ac_try") 2>&5
4436   ac_status=$?
4437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; }; then
4439     cross_compiling=no
4440   else
4441     if test "$cross_compiling" = maybe; then
4442         cross_compiling=yes
4443     else
4444         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&5
4449 $as_echo "$as_me: error: cannot run C compiled programs.
4450 If you meant to cross compile, use \`--host'.
4451 See \`config.log' for more details." >&2;}
4452    { (exit 1); exit 1; }; }; }
4453     fi
4454   fi
4455 fi
4456 { $as_echo "$as_me:$LINENO: result: yes" >&5
4457 $as_echo "yes" >&6; }
4458
4459 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4460 ac_clean_files=$ac_clean_files_save
4461 # Check that the compiler produces executables we can run.  If not, either
4462 # the compiler is broken, or we cross compile.
4463 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4464 $as_echo_n "checking whether we are cross compiling... " >&6; }
4465 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4466 $as_echo "$cross_compiling" >&6; }
4467
4468 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4469 $as_echo_n "checking for suffix of executables... " >&6; }
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477   (eval "$ac_link") 2>&5
4478   ac_status=$?
4479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; then
4481   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4482 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4483 # work properly (i.e., refer to `conftest.exe'), while it won't with
4484 # `rm'.
4485 for ac_file in conftest.exe conftest conftest.*; do
4486   test -f "$ac_file" || continue
4487   case $ac_file in
4488     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4490           break;;
4491     * ) break;;
4492   esac
4493 done
4494 else
4495   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4498 See \`config.log' for more details." >&5
4499 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4500 See \`config.log' for more details." >&2;}
4501    { (exit 1); exit 1; }; }; }
4502 fi
4503
4504 rm -f conftest$ac_cv_exeext
4505 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4506 $as_echo "$ac_cv_exeext" >&6; }
4507
4508 rm -f conftest.$ac_ext
4509 EXEEXT=$ac_cv_exeext
4510 ac_exeext=$EXEEXT
4511 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4512 $as_echo_n "checking for suffix of object files... " >&6; }
4513 if test "${ac_cv_objext+set}" = set; then
4514   $as_echo_n "(cached) " >&6
4515 else
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522
4523 int
4524 main ()
4525 {
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.o conftest.obj
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538 $as_echo "$ac_try_echo") >&5
4539   (eval "$ac_compile") 2>&5
4540   ac_status=$?
4541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; then
4543   for ac_file in conftest.o conftest.obj conftest.*; do
4544   test -f "$ac_file" || continue;
4545   case $ac_file in
4546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4547     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4548        break;;
4549   esac
4550 done
4551 else
4552   $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4558 See \`config.log' for more details." >&5
4559 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4560 See \`config.log' for more details." >&2;}
4561    { (exit 1); exit 1; }; }; }
4562 fi
4563
4564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4565 fi
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4567 $as_echo "$ac_cv_objext" >&6; }
4568 OBJEXT=$ac_cv_objext
4569 ac_objext=$OBJEXT
4570 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4571 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4573   $as_echo_n "(cached) " >&6
4574 else
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581
4582 int
4583 main ()
4584 {
4585 #ifndef __GNUC__
4586        choke me
4587 #endif
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_compile") 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && {
4608          test -z "$ac_c_werror_flag" ||
4609          test ! -s conftest.err
4610        } && test -s conftest.$ac_objext; then
4611   ac_compiler_gnu=yes
4612 else
4613   $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616         ac_compiler_gnu=no
4617 fi
4618
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626   GCC=yes
4627 else
4628   GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cc_g+set}" = set; then
4635   $as_echo_n "(cached) " >&6
4636 else
4637   ac_save_c_werror_flag=$ac_c_werror_flag
4638    ac_c_werror_flag=yes
4639    ac_cv_prog_cc_g=no
4640    CFLAGS="-g"
4641    cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664   (eval "$ac_compile") 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } && {
4671          test -z "$ac_c_werror_flag" ||
4672          test ! -s conftest.err
4673        } && test -s conftest.$ac_objext; then
4674   ac_cv_prog_cc_g=yes
4675 else
4676   $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679         CFLAGS=""
4680       cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (ac_try="$ac_compile"
4697 case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703   (eval "$ac_compile") 2>conftest.er1
4704   ac_status=$?
4705   grep -v '^ *+' conftest.er1 >conftest.err
4706   rm -f conftest.er1
4707   cat conftest.err >&5
4708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); } && {
4710          test -z "$ac_c_werror_flag" ||
4711          test ! -s conftest.err
4712        } && test -s conftest.$ac_objext; then
4713   :
4714 else
4715   $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718         ac_c_werror_flag=$ac_save_c_werror_flag
4719          CFLAGS="-g"
4720          cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743   (eval "$ac_compile") 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } && {
4750          test -z "$ac_c_werror_flag" ||
4751          test ! -s conftest.err
4752        } && test -s conftest.$ac_objext; then
4753   ac_cv_prog_cc_g=yes
4754 else
4755   $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768    ac_c_werror_flag=$ac_save_c_werror_flag
4769 fi
4770 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4771 $as_echo "$ac_cv_prog_cc_g" >&6; }
4772 if test "$ac_test_CFLAGS" = set; then
4773   CFLAGS=$ac_save_CFLAGS
4774 elif test $ac_cv_prog_cc_g = yes; then
4775   if test "$GCC" = yes; then
4776     CFLAGS="-g -O2"
4777   else
4778     CFLAGS="-g"
4779   fi
4780 else
4781   if test "$GCC" = yes; then
4782     CFLAGS="-O2"
4783   else
4784     CFLAGS=
4785   fi
4786 fi
4787 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4789 if test "${ac_cv_prog_cc_c89+set}" = set; then
4790   $as_echo_n "(cached) " >&6
4791 else
4792   ac_cv_prog_cc_c89=no
4793 ac_save_CC=$CC
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 #include <stdarg.h>
4801 #include <stdio.h>
4802 #include <sys/types.h>
4803 #include <sys/stat.h>
4804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4805 struct buf { int x; };
4806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4807 static char *e (p, i)
4808      char **p;
4809      int i;
4810 {
4811   return p[i];
4812 }
4813 static char *f (char * (*g) (char **, int), char **p, ...)
4814 {
4815   char *s;
4816   va_list v;
4817   va_start (v,p);
4818   s = g (p, va_arg (v,int));
4819   va_end (v);
4820   return s;
4821 }
4822
4823 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4824    function prototypes and stuff, but not '\xHH' hex character constants.
4825    These don't provoke an error unfortunately, instead are silently treated
4826    as 'x'.  The following induces an error, until -std is added to get
4827    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4828    array size at least.  It's necessary to write '\x00'==0 to get something
4829    that's true only with -std.  */
4830 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4831
4832 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4833    inside strings and character constants.  */
4834 #define FOO(x) 'x'
4835 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4836
4837 int test (int i, double x);
4838 struct s1 {int (*f) (int a);};
4839 struct s2 {int (*f) (double a);};
4840 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4841 int argc;
4842 char **argv;
4843 int
4844 main ()
4845 {
4846 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4852         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4853 do
4854   CC="$ac_save_CC $ac_arg"
4855   rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863   (eval "$ac_compile") 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } && {
4870          test -z "$ac_c_werror_flag" ||
4871          test ! -s conftest.err
4872        } && test -s conftest.$ac_objext; then
4873   ac_cv_prog_cc_c89=$ac_arg
4874 else
4875   $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext
4882   test "x$ac_cv_prog_cc_c89" != "xno" && break
4883 done
4884 rm -f conftest.$ac_ext
4885 CC=$ac_save_CC
4886
4887 fi
4888 # AC_CACHE_VAL
4889 case "x$ac_cv_prog_cc_c89" in
4890   x)
4891     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4892 $as_echo "none needed" >&6; } ;;
4893   xno)
4894     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4895 $as_echo "unsupported" >&6; } ;;
4896   *)
4897     CC="$CC $ac_cv_prog_cc_c89"
4898     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4900 esac
4901
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4918   CPP=
4919 fi
4920 if test -z "$CPP"; then
4921   if test "${ac_cv_prog_CPP+set}" = set; then
4922   $as_echo_n "(cached) " >&6
4923 else
4924       # Double quotes because CPP needs to be expanded
4925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926     do
4927       ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4929 do
4930   # Use a header file that comes with gcc, so configuring glibc
4931   # with a fresh cross-compiler works.
4932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933   # <limits.h> exists even on freestanding compilers.
4934   # On the NeXT, cc -E runs the code through the compiler's parser,
4935   # not just through cpp. "Syntax error" is here to catch this case.
4936   cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947                      Syntax error
4948 _ACEOF
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955 $as_echo "$ac_try_echo") >&5
4956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } >/dev/null && {
4963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4964          test ! -s conftest.err
4965        }; then
4966   :
4967 else
4968   $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971   # Broken: fails on valid input.
4972 continue
4973 fi
4974
4975 rm -f conftest.err conftest.$ac_ext
4976
4977   # OK, works on sane cases.  Now check whether nonexistent headers
4978   # can be detected and how.
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 case "(($ac_try" in
4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990   *) ac_try_echo=$ac_try;;
4991 esac
4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993 $as_echo "$ac_try_echo") >&5
4994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } >/dev/null && {
5001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002          test ! -s conftest.err
5003        }; then
5004   # Broken: success on invalid input.
5005 continue
5006 else
5007   $as_echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010   # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5021   break
5022 fi
5023
5024     done
5025     ac_cv_prog_CPP=$CPP
5026
5027 fi
5028   CPP=$ac_cv_prog_CPP
5029 else
5030   ac_cv_prog_CPP=$CPP
5031 fi
5032 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037   # Use a header file that comes with gcc, so configuring glibc
5038   # with a fresh cross-compiler works.
5039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040   # <limits.h> exists even on freestanding compilers.
5041   # On the NeXT, cc -E runs the code through the compiler's parser,
5042   # not just through cpp. "Syntax error" is here to catch this case.
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054                      Syntax error
5055 _ACEOF
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5057 case "(($ac_try" in
5058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059   *) ac_try_echo=$ac_try;;
5060 esac
5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } >/dev/null && {
5070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071          test ! -s conftest.err
5072        }; then
5073   :
5074 else
5075   $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Broken: fails on valid input.
5079 continue
5080 fi
5081
5082 rm -f conftest.err conftest.$ac_ext
5083
5084   # OK, works on sane cases.  Now check whether nonexistent headers
5085   # can be detected and how.
5086   cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h.  */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h.  */
5092 #include <ac_nonexistent.h>
5093 _ACEOF
5094 if { (ac_try="$ac_cpp conftest.$ac_ext"
5095 case "(($ac_try" in
5096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097   *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } >/dev/null && {
5108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109          test ! -s conftest.err
5110        }; then
5111   # Broken: success on invalid input.
5112 continue
5113 else
5114   $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121
5122 rm -f conftest.err conftest.$ac_ext
5123
5124 done
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5128   :
5129 else
5130   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details." >&5
5134 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5135 See \`config.log' for more details." >&2;}
5136    { (exit 1); exit 1; }; }; }
5137 fi
5138
5139 ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145
5146 echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
5147
5148
5149   # save our work to this point; this allows the sub-package to use it
5150   cat >confcache <<\_ACEOF
5151 # This file is a shell script that caches the results of configure
5152 # tests run on this system so they can be shared between configure
5153 # scripts and configure runs, see configure's option --config-cache.
5154 # It is not useful on other systems.  If it contains results you don't
5155 # want to keep, you may remove or edit it.
5156 #
5157 # config.status only pays attention to the cache file if you give it
5158 # the --recheck option to rerun configure.
5159 #
5160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5162 # following values.
5163
5164 _ACEOF
5165
5166 # The following way of writing the cache mishandles newlines in values,
5167 # but we know of no workaround that is simple, portable, and efficient.
5168 # So, we kill variables containing newlines.
5169 # Ultrix sh set writes to stderr and can't be redirected directly,
5170 # and sets the high bit in the cache file unless we assign to the vars.
5171 (
5172   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5173     eval ac_val=\$$ac_var
5174     case $ac_val in #(
5175     *${as_nl}*)
5176       case $ac_var in #(
5177       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5179       esac
5180       case $ac_var in #(
5181       _ | IFS | as_nl) ;; #(
5182       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5183       *) $as_unset $ac_var ;;
5184       esac ;;
5185     esac
5186   done
5187
5188   (set) 2>&1 |
5189     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5190     *${as_nl}ac_space=\ *)
5191       # `set' does not quote correctly, so add quotes (double-quote
5192       # substitution turns \\\\ into \\, and sed turns \\ into \).
5193       sed -n \
5194         "s/'/'\\\\''/g;
5195           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5196       ;; #(
5197     *)
5198       # `set' quotes correctly as required by POSIX, so do not add quotes.
5199       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5200       ;;
5201     esac |
5202     sort
5203 ) |
5204   sed '
5205      /^ac_cv_env_/b end
5206      t clear
5207      :clear
5208      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5209      t end
5210      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5211      :end' >>confcache
5212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5213   if test -w "$cache_file"; then
5214     test "x$cache_file" != "x/dev/null" &&
5215       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5216 $as_echo "$as_me: updating cache $cache_file" >&6;}
5217     cat confcache >$cache_file
5218   else
5219     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5221   fi
5222 fi
5223 rm -f confcache
5224
5225   echo "configuring package in srclib/pcre now"
5226   ac_popdir=`pwd`
5227   apr_config_subdirs="srclib/pcre"
5228   test -d srclib/pcre || $mkdir_p srclib/pcre
5229   ac_abs_srcdir=`(cd $srcdir/srclib/pcre && pwd)`
5230   cd srclib/pcre
5231
5232       # A "../" for each directory in /$config_subdirs.
5233       ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5234
5235   # Make the cache file pathname absolute for the subdirs
5236   # required to correctly handle subdirs that might actually
5237   # be symlinks
5238   case "$cache_file" in
5239   /*) # already absolute
5240     ac_sub_cache_file=$cache_file ;;
5241   *)  # Was relative path.
5242     ac_sub_cache_file="$ac_popdir/$cache_file" ;;
5243   esac
5244
5245   apr_configure_args=$ac_configure_args
5246
5247     test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
5248
5249     apr_configure_args="--disable-option-checking $apr_configure_args"
5250
5251               if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
5252   then :
5253     echo "srclib/pcre configured properly"
5254   else
5255     echo "configure failed for srclib/pcre"
5256     exit 1
5257   fi
5258
5259   cd $ac_popdir
5260
5261   # grab any updates from the sub-package
5262   if test -r "$cache_file"; then
5263   # Some versions of bash will fail to source /dev/null (special
5264   # files actually), so we avoid doing that.
5265   if test -f "$cache_file"; then
5266     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
5267 $as_echo "$as_me: loading cache $cache_file" >&6;}
5268     case $cache_file in
5269       [\\/]* | ?:[\\/]* ) . "$cache_file";;
5270       *)                      . "./$cache_file";;
5271     esac
5272   fi
5273 else
5274   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
5275 $as_echo "$as_me: creating cache $cache_file" >&6;}
5276   >$cache_file
5277 fi
5278
5279
5280
5281 echo $ac_n "${nl}Configuring Apache httpd ...${nl}"
5282
5283 abs_srcdir=`(cd $srcdir && pwd)`
5284 abs_builddir=`pwd`
5285
5286
5287
5288   if test "x$INCLUDES" = "x"; then
5289     echo "  setting INCLUDES to \"-I.\""
5290     INCLUDES="-I."
5291   else
5292     apr_addto_bugger="-I."
5293     for i in $apr_addto_bugger; do
5294       apr_addto_duplicate="0"
5295       for j in $INCLUDES; do
5296         if test "x$i" = "x$j"; then
5297           apr_addto_duplicate="1"
5298           break
5299         fi
5300       done
5301       if test $apr_addto_duplicate = "0"; then
5302         echo "  adding \"$i\" to INCLUDES"
5303         INCLUDES="$INCLUDES $i"
5304       fi
5305     done
5306   fi
5307
5308
5309 if test "$abs_builddir" != "$abs_srcdir"; then
5310   USE_VPATH=1
5311
5312   if test "x$INCLUDES" = "x"; then
5313     echo "  setting INCLUDES to \"-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include\""
5314     INCLUDES="-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include"
5315   else
5316     apr_addto_bugger="-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include"
5317     for i in $apr_addto_bugger; do
5318       apr_addto_duplicate="0"
5319       for j in $INCLUDES; do
5320         if test "x$i" = "x$j"; then
5321           apr_addto_duplicate="1"
5322           break
5323         fi
5324       done
5325       if test $apr_addto_duplicate = "0"; then
5326         echo "  adding \"$i\" to INCLUDES"
5327         INCLUDES="$INCLUDES $i"
5328       fi
5329     done
5330   fi
5331
5332 fi
5333
5334
5335   if test "x$INCLUDES" = "x"; then
5336     echo "  setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators\""
5337     INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators"
5338   else
5339     apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators"
5340     for i in $apr_addto_bugger; do
5341       apr_addto_duplicate="0"
5342       for j in $INCLUDES; do
5343         if test "x$i" = "x$j"; then
5344           apr_addto_duplicate="1"
5345           break
5346         fi
5347       done
5348       if test $apr_addto_duplicate = "0"; then
5349         echo "  adding \"$i\" to INCLUDES"
5350         INCLUDES="$INCLUDES $i"
5351       fi
5352     done
5353   fi
5354
5355
5356 echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
5357
5358 case $host in
5359   *os2*)
5360       # Use a custom made libtool replacement
5361       echo "using aplibtool"
5362       LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
5363       SH_LIBTOOL="$LIBTOOL --shared --export-all"
5364       SH_LIBS="\$(ALL_LIBS)"
5365       CORE_IMPLIB_FILE="ApacheCoreOS2.la"
5366       CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
5367       MK_IMPLIB="emximp"
5368       other_targets="$other_targets os2core"
5369       INSTALL_PROG_FLAGS="-e .exe"
5370       SHLTCFLAGS=""
5371       LTCFLAGS=""
5372       ;;
5373   *)
5374       if test "x$LTFLAGS" = "x"; then
5375           LTFLAGS='--silent'
5376       fi
5377       my_libtool=`$apr_config --apr-libtool`
5378       LIBTOOL="$my_libtool \$(LTFLAGS)"
5379       libtoolversion=`$my_libtool --version`
5380       case $libtoolversion in
5381           *1.[45]*)
5382               SH_LIBTOOL='$(LIBTOOL)'
5383               SHLTCFLAGS="-prefer-pic"
5384               LTCFLAGS="-prefer-non-pic -static"
5385               ;;
5386           *)
5387               SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
5388               SHLTCFLAGS=""
5389               LTCFLAGS=""
5390               ;;
5391       esac
5392       ;;
5393 esac
5394
5395   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
5396
5397
5398
5399   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
5400
5401
5402
5403 AP_SIG_GRACEFUL=USR1
5404
5405 case $host in
5406   *-apple-aux3*)
5407
5408   echo "  forcing APACHE_MPM to \"prefork\""
5409   APACHE_MPM="prefork"
5410
5411
5412   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5413   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5414
5415       ;;
5416   *-beos*)
5417
5418   echo "  forcing APACHE_MPM to \"beos\""
5419   APACHE_MPM="beos"
5420
5421
5422   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5423   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5424
5425       ;;
5426   *os2_emx*)
5427
5428   echo "  forcing APACHE_MPM to \"mpmt_os2\""
5429   APACHE_MPM="mpmt_os2"
5430
5431
5432   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5433   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5434
5435       ;;
5436   *-linux-*)
5437       case `uname -r` in
5438         2.0* )
5439             AP_SIG_GRACEFUL=WINCH
5440             ;;
5441         2.[2-9]* )
5442
5443   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5444   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5445
5446             ;;
5447         * )
5448             ;;
5449       esac
5450       ;;
5451   *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
5452
5453   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5454   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5455
5456       ;;
5457   *-solaris2*)
5458             ap_platform_runtime_link_flag="-R"
5459                   case `uname -r` in
5460         5.567*)
5461             ;;
5462         * )
5463
5464   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5465   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5466
5467             ;;
5468       esac
5469       ;;
5470   *cygwin*)
5471
5472   echo "  forcing APACHE_MPM to \"prefork\""
5473   APACHE_MPM="prefork"
5474
5475
5476   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5477   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5478
5479       ;;
5480   *aix*)
5481       aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
5482       if test $aixver -ge 4320; then
5483
5484   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5485   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5486
5487       fi
5488       ;;
5489   *os390*)
5490
5491   echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5492   SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5493
5494       ;;
5495 esac
5496
5497
5498   echo "  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
5499   AP_NONBLOCK_WHEN_MULTI_LISTEN="1"
5500
5501
5502
5503
5504 # Extract the first word of "rm", so it can be a program name with args.
5505 set dummy rm; ac_word=$2
5506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_path_RM+set}" = set; then
5509   $as_echo_n "(cached) " >&6
5510 else
5511   case $RM in
5512   [\\/]* | ?:[\\/]*)
5513   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5514   ;;
5515   *)
5516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521   for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531   ;;
5532 esac
5533 fi
5534 RM=$ac_cv_path_RM
5535 if test -n "$RM"; then
5536   { $as_echo "$as_me:$LINENO: result: $RM" >&5
5537 $as_echo "$RM" >&6; }
5538 else
5539   { $as_echo "$as_me:$LINENO: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544 for ac_prog in gawk mawk nawk awk
5545 do
5546   # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_AWK+set}" = set; then
5551   $as_echo_n "(cached) " >&6
5552 else
5553   if test -n "$AWK"; then
5554   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_AWK="$ac_prog"
5564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 AWK=$ac_cv_prog_AWK
5574 if test -n "$AWK"; then
5575   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5576 $as_echo "$AWK" >&6; }
5577 else
5578   { $as_echo "$as_me:$LINENO: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583   test -n "$AWK" && break
5584 done
5585
5586 # Find a good install program.  We prefer a C program (faster),
5587 # so one script is as good as another.  But avoid the broken or
5588 # incompatible versions:
5589 # SysV /etc/install, /usr/sbin/install
5590 # SunOS /usr/etc/install
5591 # IRIX /sbin/install
5592 # AIX /bin/install
5593 # AmigaOS /C/install, which installs bootblocks on floppy discs
5594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5597 # OS/2's system install, which has a completely different semantic
5598 # ./install, which can be erroneously created by make from ./install.sh.
5599 # Reject install programs that cannot install multiple files.
5600 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5601 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5602 if test -z "$INSTALL"; then
5603 if test "${ac_cv_path_install+set}" = set; then
5604   $as_echo_n "(cached) " >&6
5605 else
5606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611   # Account for people who put trailing slashes in PATH elements.
5612 case $as_dir/ in
5613   ./ | .// | /cC/* | \
5614   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5615   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5616   /usr/ucb/* ) ;;
5617   *)
5618     # OSF1 and SCO ODT 3.0 have their own names for install.
5619     # Don't use installbsd from OSF since it installs stuff as root
5620     # by default.
5621     for ac_prog in ginstall scoinst install; do
5622       for ac_exec_ext in '' $ac_executable_extensions; do
5623         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5624           if test $ac_prog = install &&
5625             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5626             # AIX install.  It has an incompatible calling convention.
5627             :
5628           elif test $ac_prog = install &&
5629             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5630             # program-specific install script used by HP pwplus--don't use.
5631             :
5632           else
5633             rm -rf conftest.one conftest.two conftest.dir
5634             echo one > conftest.one
5635             echo two > conftest.two
5636             mkdir conftest.dir
5637             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5638               test -s conftest.one && test -s conftest.two &&
5639               test -s conftest.dir/conftest.one &&
5640               test -s conftest.dir/conftest.two
5641             then
5642               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5643               break 3
5644             fi
5645           fi
5646         fi
5647       done
5648     done
5649     ;;
5650 esac
5651
5652 done
5653 IFS=$as_save_IFS
5654
5655 rm -rf conftest.one conftest.two conftest.dir
5656
5657 fi
5658   if test "${ac_cv_path_install+set}" = set; then
5659     INSTALL=$ac_cv_path_install
5660   else
5661     # As a last resort, use the slow shell script.  Don't cache a
5662     # value for INSTALL within a source directory, because that will
5663     # break other packages using the cache if that directory is
5664     # removed, or if the value is a relative name.
5665     INSTALL=$ac_install_sh
5666   fi
5667 fi
5668 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5669 $as_echo "$INSTALL" >&6; }
5670
5671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5672 # It thinks the first close brace ends the variable substitution.
5673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5674
5675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5676
5677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5678
5679 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5680 $as_echo_n "checking whether ln -s works... " >&6; }
5681 LN_S=$as_ln_s
5682 if test "$LN_S" = "ln -s"; then
5683   { $as_echo "$as_me:$LINENO: result: yes" >&5
5684 $as_echo "yes" >&6; }
5685 else
5686   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5687 $as_echo "no, using $LN_S" >&6; }
5688 fi
5689
5690 if test -n "$ac_tool_prefix"; then
5691   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_RANLIB+set}" = set; then
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test -n "$RANLIB"; then
5699   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 RANLIB=$ac_cv_prog_RANLIB
5719 if test -n "$RANLIB"; then
5720   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5721 $as_echo "$RANLIB" >&6; }
5722 else
5723   { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 fi
5729 if test -z "$ac_cv_prog_RANLIB"; then
5730   ac_ct_RANLIB=$RANLIB
5731   # Extract the first word of "ranlib", so it can be a program name with args.
5732 set dummy ranlib; ac_word=$2
5733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if test -n "$ac_ct_RANLIB"; then
5739   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746   for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_prog_ac_ct_RANLIB="ranlib"
5749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753 done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5759 if test -n "$ac_ct_RANLIB"; then
5760   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5761 $as_echo "$ac_ct_RANLIB" >&6; }
5762 else
5763   { $as_echo "$as_me:$LINENO: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767   if test "x$ac_ct_RANLIB" = x; then
5768     RANLIB="true"
5769   else
5770     case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776     RANLIB=$ac_ct_RANLIB
5777   fi
5778 else
5779   RANLIB="$ac_cv_prog_RANLIB"
5780 fi
5781
5782
5783
5784
5785
5786 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5787 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5788 if test "${ac_cv_path_GREP+set}" = set; then
5789   $as_echo_n "(cached) " >&6
5790 else
5791   if test -z "$GREP"; then
5792   ac_path_GREP_found=false
5793   # Loop through the user's path and test for each of PROGNAME-LIST
5794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799   for ac_prog in grep ggrep; do
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5802       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5803 # Check for GNU ac_path_GREP and select it if it is found.
5804   # Check for GNU $ac_path_GREP
5805 case `"$ac_path_GREP" --version 2>&1` in
5806 *GNU*)
5807   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5808 *)
5809   ac_count=0
5810   $as_echo_n 0123456789 >"conftest.in"
5811   while :
5812   do
5813     cat "conftest.in" "conftest.in" >"conftest.tmp"
5814     mv "conftest.tmp" "conftest.in"
5815     cp "conftest.in" "conftest.nl"
5816     $as_echo 'GREP' >> "conftest.nl"
5817     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819     ac_count=`expr $ac_count + 1`
5820     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5821       # Best one so far, save it but keep looking for a better one
5822       ac_cv_path_GREP="$ac_path_GREP"
5823       ac_path_GREP_max=$ac_count
5824     fi
5825     # 10*(2^10) chars as input seems more than enough
5826     test $ac_count -gt 10 && break
5827   done
5828   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5829 esac
5830
5831       $ac_path_GREP_found && break 3
5832     done
5833   done
5834 done
5835 IFS=$as_save_IFS
5836   if test -z "$ac_cv_path_GREP"; then
5837     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5838 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5839    { (exit 1); exit 1; }; }
5840   fi
5841 else
5842   ac_cv_path_GREP=$GREP
5843 fi
5844
5845 fi
5846 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5847 $as_echo "$ac_cv_path_GREP" >&6; }
5848  GREP="$ac_cv_path_GREP"
5849
5850
5851 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5852 $as_echo_n "checking for egrep... " >&6; }
5853 if test "${ac_cv_path_EGREP+set}" = set; then
5854   $as_echo_n "(cached) " >&6
5855 else
5856   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5857    then ac_cv_path_EGREP="$GREP -E"
5858    else
5859      if test -z "$EGREP"; then
5860   ac_path_EGREP_found=false
5861   # Loop through the user's path and test for each of PROGNAME-LIST
5862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867   for ac_prog in egrep; do
5868     for ac_exec_ext in '' $ac_executable_extensions; do
5869       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5870       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5871 # Check for GNU ac_path_EGREP and select it if it is found.
5872   # Check for GNU $ac_path_EGREP
5873 case `"$ac_path_EGREP" --version 2>&1` in
5874 *GNU*)
5875   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5876 *)
5877   ac_count=0
5878   $as_echo_n 0123456789 >"conftest.in"
5879   while :
5880   do
5881     cat "conftest.in" "conftest.in" >"conftest.tmp"
5882     mv "conftest.tmp" "conftest.in"
5883     cp "conftest.in" "conftest.nl"
5884     $as_echo 'EGREP' >> "conftest.nl"
5885     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5887     ac_count=`expr $ac_count + 1`
5888     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5889       # Best one so far, save it but keep looking for a better one
5890       ac_cv_path_EGREP="$ac_path_EGREP"
5891       ac_path_EGREP_max=$ac_count
5892     fi
5893     # 10*(2^10) chars as input seems more than enough
5894     test $ac_count -gt 10 && break
5895   done
5896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5897 esac
5898
5899       $ac_path_EGREP_found && break 3
5900     done
5901   done
5902 done
5903 IFS=$as_save_IFS
5904   if test -z "$ac_cv_path_EGREP"; then
5905     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5906 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5907    { (exit 1); exit 1; }; }
5908   fi
5909 else
5910   ac_cv_path_EGREP=$EGREP
5911 fi
5912
5913    fi
5914 fi
5915 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5916 $as_echo "$ac_cv_path_EGREP" >&6; }
5917  EGREP="$ac_cv_path_EGREP"
5918
5919
5920 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5921 $as_echo_n "checking for ANSI C header files... " >&6; }
5922 if test "${ac_cv_header_stdc+set}" = set; then
5923   $as_echo_n "(cached) " >&6
5924 else
5925   cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <stdlib.h>
5932 #include <stdarg.h>
5933 #include <string.h>
5934 #include <float.h>
5935
5936 int
5937 main ()
5938 {
5939
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951 $as_echo "$ac_try_echo") >&5
5952   (eval "$ac_compile") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } && {
5959          test -z "$ac_c_werror_flag" ||
5960          test ! -s conftest.err
5961        } && test -s conftest.$ac_objext; then
5962   ac_cv_header_stdc=yes
5963 else
5964   $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967         ac_cv_header_stdc=no
5968 fi
5969
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971
5972 if test $ac_cv_header_stdc = yes; then
5973   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 #include <string.h>
5981
5982 _ACEOF
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984   $EGREP "memchr" >/dev/null 2>&1; then
5985   :
5986 else
5987   ac_cv_header_stdc=no
5988 fi
5989 rm -f conftest*
5990
5991 fi
5992
5993 if test $ac_cv_header_stdc = yes; then
5994   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5995   cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #include <stdlib.h>
6002
6003 _ACEOF
6004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6005   $EGREP "free" >/dev/null 2>&1; then
6006   :
6007 else
6008   ac_cv_header_stdc=no
6009 fi
6010 rm -f conftest*
6011
6012 fi
6013
6014 if test $ac_cv_header_stdc = yes; then
6015   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6016   if test "$cross_compiling" = yes; then
6017   :
6018 else
6019   cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #include <ctype.h>
6026 #include <stdlib.h>
6027 #if ((' ' & 0x0FF) == 0x020)
6028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6030 #else
6031 # define ISLOWER(c) \
6032                    (('a' <= (c) && (c) <= 'i') \
6033                      || ('j' <= (c) && (c) <= 'r') \
6034                      || ('s' <= (c) && (c) <= 'z'))
6035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6036 #endif
6037
6038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6039 int
6040 main ()
6041 {
6042   int i;
6043   for (i = 0; i < 256; i++)
6044     if (XOR (islower (i), ISLOWER (i))
6045         || toupper (i) != TOUPPER (i))
6046       return 2;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest$ac_exeext
6051 if { (ac_try="$ac_link"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058   (eval "$ac_link") 2>&5
6059   ac_status=$?
6060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062   { (case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067 $as_echo "$ac_try_echo") >&5
6068   (eval "$ac_try") 2>&5
6069   ac_status=$?
6070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   :
6073 else
6074   $as_echo "$as_me: program exited with status $ac_status" >&5
6075 $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ( exit $ac_status )
6079 ac_cv_header_stdc=no
6080 fi
6081 rm -rf conftest.dSYM
6082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6083 fi
6084
6085
6086 fi
6087 fi
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6089 $as_echo "$ac_cv_header_stdc" >&6; }
6090 if test $ac_cv_header_stdc = yes; then
6091
6092 cat >>confdefs.h <<\_ACEOF
6093 #define STDC_HEADERS 1
6094 _ACEOF
6095
6096 fi
6097
6098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6109                   inttypes.h stdint.h unistd.h
6110 do
6111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 $as_echo_n "checking for $ac_header... " >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115   $as_echo_n "(cached) " >&6
6116 else
6117   cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 $ac_includes_default
6124
6125 #include <$ac_header>
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6129 case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6134 $as_echo "$ac_try_echo") >&5
6135   (eval "$ac_compile") 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } && {
6142          test -z "$ac_c_werror_flag" ||
6143          test ! -s conftest.err
6144        } && test -s conftest.$ac_objext; then
6145   eval "$as_ac_Header=yes"
6146 else
6147   $as_echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150         eval "$as_ac_Header=no"
6151 fi
6152
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 fi
6155 ac_res=`eval 'as_val=${'$as_ac_Header'}
6156                  $as_echo "$as_val"'`
6157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6158 $as_echo "$ac_res" >&6; }
6159 as_val=`eval 'as_val=${'$as_ac_Header'}
6160                  $as_echo "$as_val"'`
6161    if test "x$as_val" = x""yes; then
6162   cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6165
6166 fi
6167
6168 done
6169
6170
6171
6172   if test "${ac_cv_header_minix_config_h+set}" = set; then
6173   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6174 $as_echo_n "checking for minix/config.h... " >&6; }
6175 if test "${ac_cv_header_minix_config_h+set}" = set; then
6176   $as_echo_n "(cached) " >&6
6177 fi
6178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6179 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6180 else
6181   # Is the header compilable?
6182 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6183 $as_echo_n "checking minix/config.h usability... " >&6; }
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190 $ac_includes_default
6191 #include <minix/config.h>
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201   (eval "$ac_compile") 2>conftest.er1
6202   ac_status=$?
6203   grep -v '^ *+' conftest.er1 >conftest.err
6204   rm -f conftest.er1
6205   cat conftest.err >&5
6206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } && {
6208          test -z "$ac_c_werror_flag" ||
6209          test ! -s conftest.err
6210        } && test -s conftest.$ac_objext; then
6211   ac_header_compiler=yes
6212 else
6213   $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216         ac_header_compiler=no
6217 fi
6218
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 $as_echo "$ac_header_compiler" >&6; }
6222
6223 # Is the header present?
6224 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6225 $as_echo_n "checking minix/config.h presence... " >&6; }
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #include <minix/config.h>
6233 _ACEOF
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null && {
6248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6249          test ! -s conftest.err
6250        }; then
6251   ac_header_preproc=yes
6252 else
6253   $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256   ac_header_preproc=no
6257 fi
6258
6259 rm -f conftest.err conftest.$ac_ext
6260 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 $as_echo "$ac_header_preproc" >&6; }
6262
6263 # So?  What about this header?
6264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265   yes:no: )
6266     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6267 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6269 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6270     ac_header_preproc=yes
6271     ;;
6272   no:yes:* )
6273     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6274 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6275     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6276 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6277     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6278 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6279     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6280 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6281     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6282 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6283     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6284 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6285
6286     ;;
6287 esac
6288 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6289 $as_echo_n "checking for minix/config.h... " >&6; }
6290 if test "${ac_cv_header_minix_config_h+set}" = set; then
6291   $as_echo_n "(cached) " >&6
6292 else
6293   ac_cv_header_minix_config_h=$ac_header_preproc
6294 fi
6295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6296 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6297
6298 fi
6299 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6300   MINIX=yes
6301 else
6302   MINIX=
6303 fi
6304
6305
6306   if test "$MINIX" = yes; then
6307
6308 cat >>confdefs.h <<\_ACEOF
6309 #define _POSIX_SOURCE 1
6310 _ACEOF
6311
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define _POSIX_1_SOURCE 2
6315 _ACEOF
6316
6317
6318 cat >>confdefs.h <<\_ACEOF
6319 #define _MINIX 1
6320 _ACEOF
6321
6322   fi
6323
6324
6325
6326   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6327 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6328 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6329   $as_echo_n "(cached) " >&6
6330 else
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337
6338 #         define __EXTENSIONS__ 1
6339           $ac_includes_default
6340 int
6341 main ()
6342 {
6343
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356   (eval "$ac_compile") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } && {
6363          test -z "$ac_c_werror_flag" ||
6364          test ! -s conftest.err
6365        } && test -s conftest.$ac_objext; then
6366   ac_cv_safe_to_define___extensions__=yes
6367 else
6368   $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         ac_cv_safe_to_define___extensions__=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6377 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6378   test $ac_cv_safe_to_define___extensions__ = yes &&
6379     cat >>confdefs.h <<\_ACEOF
6380 #define __EXTENSIONS__ 1
6381 _ACEOF
6382
6383   cat >>confdefs.h <<\_ACEOF
6384 #define _ALL_SOURCE 1
6385 _ACEOF
6386
6387   cat >>confdefs.h <<\_ACEOF
6388 #define _GNU_SOURCE 1
6389 _ACEOF
6390
6391   cat >>confdefs.h <<\_ACEOF
6392 #define _POSIX_PTHREAD_SEMANTICS 1
6393 _ACEOF
6394
6395   cat >>confdefs.h <<\_ACEOF
6396 #define _TANDEM_SOURCE 1
6397 _ACEOF
6398
6399
6400
6401
6402 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6403 $as_echo_n "checking for library containing strerror... " >&6; }
6404 if test "${ac_cv_search_strerror+set}" = set; then
6405   $as_echo_n "(cached) " >&6
6406 else
6407   ac_func_search_save_LIBS=$LIBS
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414
6415 /* Override any GCC internal prototype to avoid an error.
6416    Use char because int might match the return type of a GCC
6417    builtin and then its argument prototype would still apply.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 char strerror ();
6422 int
6423 main ()
6424 {
6425 return strerror ();
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 for ac_lib in '' cposix; do
6431   if test -z "$ac_lib"; then
6432     ac_res="none required"
6433   else
6434     ac_res=-l$ac_lib
6435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6436   fi
6437   rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6439 case "(($ac_try" in
6440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441   *) ac_try_echo=$ac_try;;
6442 esac
6443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444 $as_echo "$ac_try_echo") >&5
6445   (eval "$ac_link") 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } && {
6452          test -z "$ac_c_werror_flag" ||
6453          test ! -s conftest.err
6454        } && test -s conftest$ac_exeext && {
6455          test "$cross_compiling" = yes ||
6456          $as_test_x conftest$ac_exeext
6457        }; then
6458   ac_cv_search_strerror=$ac_res
6459 else
6460   $as_echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6462
6463
6464 fi
6465
6466 rm -rf conftest.dSYM
6467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6468       conftest$ac_exeext
6469   if test "${ac_cv_search_strerror+set}" = set; then
6470   break
6471 fi
6472 done
6473 if test "${ac_cv_search_strerror+set}" = set; then
6474   :
6475 else
6476   ac_cv_search_strerror=no
6477 fi
6478 rm conftest.$ac_ext
6479 LIBS=$ac_func_search_save_LIBS
6480 fi
6481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6482 $as_echo "$ac_cv_search_strerror" >&6; }
6483 ac_res=$ac_cv_search_strerror
6484 if test "$ac_res" != no; then
6485   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6486
6487 fi
6488
6489
6490
6491
6492
6493
6494 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6495 $as_echo_n "checking for ANSI C header files... " >&6; }
6496 if test "${ac_cv_header_stdc+set}" = set; then
6497   $as_echo_n "(cached) " >&6
6498 else
6499   cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505 #include <stdlib.h>
6506 #include <stdarg.h>
6507 #include <string.h>
6508 #include <float.h>
6509
6510 int
6511 main ()
6512 {
6513
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522   *) ac_try_echo=$ac_try;;
6523 esac
6524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525 $as_echo "$ac_try_echo") >&5
6526   (eval "$ac_compile") 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } && {
6533          test -z "$ac_c_werror_flag" ||
6534          test ! -s conftest.err
6535        } && test -s conftest.$ac_objext; then
6536   ac_cv_header_stdc=yes
6537 else
6538   $as_echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541         ac_cv_header_stdc=no
6542 fi
6543
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545
6546 if test $ac_cv_header_stdc = yes; then
6547   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <string.h>
6555
6556 _ACEOF
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558   $EGREP "memchr" >/dev/null 2>&1; then
6559   :
6560 else
6561   ac_cv_header_stdc=no
6562 fi
6563 rm -f conftest*
6564
6565 fi
6566
6567 if test $ac_cv_header_stdc = yes; then
6568   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6569   cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <stdlib.h>
6576
6577 _ACEOF
6578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6579   $EGREP "free" >/dev/null 2>&1; then
6580   :
6581 else
6582   ac_cv_header_stdc=no
6583 fi
6584 rm -f conftest*
6585
6586 fi
6587
6588 if test $ac_cv_header_stdc = yes; then
6589   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6590   if test "$cross_compiling" = yes; then
6591   :
6592 else
6593   cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 #include <ctype.h>
6600 #include <stdlib.h>
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6604 #else
6605 # define ISLOWER(c) \
6606                    (('a' <= (c) && (c) <= 'i') \
6607                      || ('j' <= (c) && (c) <= 'r') \
6608                      || ('s' <= (c) && (c) <= 'z'))
6609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6610 #endif
6611
6612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6613 int
6614 main ()
6615 {
6616   int i;
6617   for (i = 0; i < 256; i++)
6618     if (XOR (islower (i), ISLOWER (i))
6619         || toupper (i) != TOUPPER (i))
6620       return 2;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest$ac_exeext
6625 if { (ac_try="$ac_link"
6626 case "(($ac_try" in
6627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628   *) ac_try_echo=$ac_try;;
6629 esac
6630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6631 $as_echo "$ac_try_echo") >&5
6632   (eval "$ac_link") 2>&5
6633   ac_status=$?
6634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6636   { (case "(($ac_try" in
6637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638   *) ac_try_echo=$ac_try;;
6639 esac
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642   (eval "$ac_try") 2>&5
6643   ac_status=$?
6644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   :
6647 else
6648   $as_echo "$as_me: program exited with status $ac_status" >&5
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ( exit $ac_status )
6653 ac_cv_header_stdc=no
6654 fi
6655 rm -rf conftest.dSYM
6656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6657 fi
6658
6659
6660 fi
6661 fi
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6663 $as_echo "$ac_cv_header_stdc" >&6; }
6664 if test $ac_cv_header_stdc = yes; then
6665
6666 cat >>confdefs.h <<\_ACEOF
6667 #define STDC_HEADERS 1
6668 _ACEOF
6669
6670 fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682 for ac_header in \
6683 string.h \
6684 limits.h \
6685 unistd.h \
6686 sys/socket.h \
6687 pwd.h \
6688 grp.h \
6689 strings.h \
6690 sys/prctl.h \
6691 sys/processor.h \
6692 sys/sem.h
6693
6694 do
6695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6697   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 $as_echo_n "checking for $ac_header... " >&6; }
6699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700   $as_echo_n "(cached) " >&6
6701 fi
6702 ac_res=`eval 'as_val=${'$as_ac_Header'}
6703                  $as_echo "$as_val"'`
6704                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6705 $as_echo "$ac_res" >&6; }
6706 else
6707   # Is the header compilable?
6708 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6709 $as_echo_n "checking $ac_header usability... " >&6; }
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 $ac_includes_default
6717 #include <$ac_header>
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727   (eval "$ac_compile") 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } && {
6734          test -z "$ac_c_werror_flag" ||
6735          test ! -s conftest.err
6736        } && test -s conftest.$ac_objext; then
6737   ac_header_compiler=yes
6738 else
6739   $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742         ac_header_compiler=no
6743 fi
6744
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6747 $as_echo "$ac_header_compiler" >&6; }
6748
6749 # Is the header present?
6750 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6751 $as_echo_n "checking $ac_header presence... " >&6; }
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h.  */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h.  */
6758 #include <$ac_header>
6759 _ACEOF
6760 if { (ac_try="$ac_cpp conftest.$ac_ext"
6761 case "(($ac_try" in
6762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763   *) ac_try_echo=$ac_try;;
6764 esac
6765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766 $as_echo "$ac_try_echo") >&5
6767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } >/dev/null && {
6774          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775          test ! -s conftest.err
6776        }; then
6777   ac_header_preproc=yes
6778 else
6779   $as_echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782   ac_header_preproc=no
6783 fi
6784
6785 rm -f conftest.err conftest.$ac_ext
6786 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6787 $as_echo "$ac_header_preproc" >&6; }
6788
6789 # So?  What about this header?
6790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6791   yes:no: )
6792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6793 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6795 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6796     ac_header_preproc=yes
6797     ;;
6798   no:yes:* )
6799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6800 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6802 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6804 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6806 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6810 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6811
6812     ;;
6813 esac
6814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6815 $as_echo_n "checking for $ac_header... " >&6; }
6816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6817   $as_echo_n "(cached) " >&6
6818 else
6819   eval "$as_ac_Header=\$ac_header_preproc"
6820 fi
6821 ac_res=`eval 'as_val=${'$as_ac_Header'}
6822                  $as_echo "$as_val"'`
6823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6824 $as_echo "$ac_res" >&6; }
6825
6826 fi
6827 as_val=`eval 'as_val=${'$as_ac_Header'}
6828                  $as_echo "$as_val"'`
6829    if test "x$as_val" = x""yes; then
6830   cat >>confdefs.h <<_ACEOF
6831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6832 _ACEOF
6833
6834 fi
6835
6836 done
6837
6838 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6839 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6840 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6841   $as_echo_n "(cached) " >&6
6842 else
6843   cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6849 #include <sys/types.h>
6850 #include <sys/wait.h>
6851 #ifndef WEXITSTATUS
6852 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6853 #endif
6854 #ifndef WIFEXITED
6855 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6856 #endif
6857
6858 int
6859 main ()
6860 {
6861   int s;
6862   wait (&s);
6863   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (ac_try="$ac_compile"
6870 case "(($ac_try" in
6871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872   *) ac_try_echo=$ac_try;;
6873 esac
6874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875 $as_echo "$ac_try_echo") >&5
6876   (eval "$ac_compile") 2>conftest.er1
6877   ac_status=$?
6878   grep -v '^ *+' conftest.er1 >conftest.err
6879   rm -f conftest.er1
6880   cat conftest.err >&5
6881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } && {
6883          test -z "$ac_c_werror_flag" ||
6884          test ! -s conftest.err
6885        } && test -s conftest.$ac_objext; then
6886   ac_cv_header_sys_wait_h=yes
6887 else
6888   $as_echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891         ac_cv_header_sys_wait_h=no
6892 fi
6893
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 fi
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6897 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6898 if test $ac_cv_header_sys_wait_h = yes; then
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_SYS_WAIT_H 1
6902 _ACEOF
6903
6904 fi
6905
6906
6907
6908 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6909 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6910 if test "${ac_cv_c_const+set}" = set; then
6911   $as_echo_n "(cached) " >&6
6912 else
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919
6920 int
6921 main ()
6922 {
6923 /* FIXME: Include the comments suggested by Paul. */
6924 #ifndef __cplusplus
6925   /* Ultrix mips cc rejects this.  */
6926   typedef int charset[2];
6927   const charset cs;
6928   /* SunOS 4.1.1 cc rejects this.  */
6929   char const *const *pcpcc;
6930   char **ppc;
6931   /* NEC SVR4.0.2 mips cc rejects this.  */
6932   struct point {int x, y;};
6933   static struct point const zero = {0,0};
6934   /* AIX XL C 1.02.0.0 rejects this.
6935      It does not let you subtract one const X* pointer from another in
6936      an arm of an if-expression whose if-part is not a constant
6937      expression */
6938   const char *g = "string";
6939   pcpcc = &g + (g ? g-g : 0);
6940   /* HPUX 7.0 cc rejects these. */
6941   ++pcpcc;
6942   ppc = (char**) pcpcc;
6943   pcpcc = (char const *const *) ppc;
6944   { /* SCO 3.2v4 cc rejects this.  */
6945     char *t;
6946     char const *s = 0 ? (char *) 0 : (char const *) 0;
6947
6948     *t++ = 0;
6949     if (s) return 0;
6950   }
6951   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6952     int x[] = {25, 17};
6953     const int *foo = &x[0];
6954     ++foo;
6955   }
6956   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6957     typedef const int *iptr;
6958     iptr p = 0;
6959     ++p;
6960   }
6961   { /* AIX XL C 1.02.0.0 rejects this saying
6962        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6963     struct s { int j; const int *ap[3]; };
6964     struct s *b; b->j = 5;
6965   }
6966   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6967     const int foo = 10;
6968     if (!foo) return 0;
6969   }
6970   return !cs[0] && !zero.x;
6971 #endif
6972
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6979 case "(($ac_try" in
6980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981   *) ac_try_echo=$ac_try;;
6982 esac
6983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6984 $as_echo "$ac_try_echo") >&5
6985   (eval "$ac_compile") 2>conftest.er1
6986   ac_status=$?
6987   grep -v '^ *+' conftest.er1 >conftest.err
6988   rm -f conftest.er1
6989   cat conftest.err >&5
6990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } && {
6992          test -z "$ac_c_werror_flag" ||
6993          test ! -s conftest.err
6994        } && test -s conftest.$ac_objext; then
6995   ac_cv_c_const=yes
6996 else
6997   $as_echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000         ac_cv_c_const=no
7001 fi
7002
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7006 $as_echo "$ac_cv_c_const" >&6; }
7007 if test $ac_cv_c_const = no; then
7008
7009 cat >>confdefs.h <<\_ACEOF
7010 #define const /**/
7011 _ACEOF
7012
7013 fi
7014
7015 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7016
7017   if test "x$NOTEST_CPPFLAGS" = "x"; then
7018     echo "  setting NOTEST_CPPFLAGS to \"-DAP_HAVE_DESIGNATED_INITIALIZER\""
7019     NOTEST_CPPFLAGS="-DAP_HAVE_DESIGNATED_INITIALIZER"
7020   else
7021     apr_addto_bugger="-DAP_HAVE_DESIGNATED_INITIALIZER"
7022     for i in $apr_addto_bugger; do
7023       apr_addto_duplicate="0"
7024       for j in $NOTEST_CPPFLAGS; do
7025         if test "x$i" = "x$j"; then
7026           apr_addto_duplicate="1"
7027           break
7028         fi
7029       done
7030       if test $apr_addto_duplicate = "0"; then
7031         echo "  adding \"$i\" to NOTEST_CPPFLAGS"
7032         NOTEST_CPPFLAGS="$NOTEST_CPPFLAGS $i"
7033       fi
7034     done
7035   fi
7036
7037 fi
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 for ac_func in \
7048 getpwnam \
7049 getgrnam \
7050 initgroups \
7051 bindprocessor \
7052 prctl \
7053 timegm \
7054
7055 do
7056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 $as_echo_n "checking for $ac_func... " >&6; }
7059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7060   $as_echo_n "(cached) " >&6
7061 else
7062   cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7070 #define $ac_func innocuous_$ac_func
7071
7072 /* System header to define __stub macros and hopefully few prototypes,
7073     which can conflict with char $ac_func (); below.
7074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075     <limits.h> exists even on freestanding compilers.  */
7076
7077 #ifdef __STDC__
7078 # include <limits.h>
7079 #else
7080 # include <assert.h>
7081 #endif
7082
7083 #undef $ac_func
7084
7085 /* Override any GCC internal prototype to avoid an error.
7086    Use char because int might match the return type of a GCC
7087    builtin and then its argument prototype would still apply.  */
7088 #ifdef __cplusplus
7089 extern "C"
7090 #endif
7091 char $ac_func ();
7092 /* The GNU C library defines this for functions which it implements
7093     to always fail with ENOSYS.  Some functions are actually named
7094     something starting with __ and the normal name is an alias.  */
7095 #if defined __stub_$ac_func || defined __stub___$ac_func
7096 choke me
7097 #endif
7098
7099 int
7100 main ()
7101 {
7102 return $ac_func ();
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (ac_try="$ac_link"
7109 case "(($ac_try" in
7110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111   *) ac_try_echo=$ac_try;;
7112 esac
7113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115   (eval "$ac_link") 2>conftest.er1
7116   ac_status=$?
7117   grep -v '^ *+' conftest.er1 >conftest.err
7118   rm -f conftest.er1
7119   cat conftest.err >&5
7120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && {
7122          test -z "$ac_c_werror_flag" ||
7123          test ! -s conftest.err
7124        } && test -s conftest$ac_exeext && {
7125          test "$cross_compiling" = yes ||
7126          $as_test_x conftest$ac_exeext
7127        }; then
7128   eval "$as_ac_var=yes"
7129 else
7130   $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133         eval "$as_ac_var=no"
7134 fi
7135
7136 rm -rf conftest.dSYM
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138       conftest$ac_exeext conftest.$ac_ext
7139 fi
7140 ac_res=`eval 'as_val=${'$as_ac_var'}
7141                  $as_echo "$as_val"'`
7142                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7143 $as_echo "$ac_res" >&6; }
7144 as_val=`eval 'as_val=${'$as_ac_var'}
7145                  $as_echo "$as_val"'`
7146    if test "x$as_val" = x""yes; then
7147   cat >>confdefs.h <<_ACEOF
7148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7149 _ACEOF
7150
7151 fi
7152 done
7153
7154
7155 { $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
7156 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
7157 if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
7158   $as_echo_n "(cached) " >&6
7159 else
7160   cat >conftest.$ac_ext <<_ACEOF
7161 /* confdefs.h.  */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h.  */
7166 #include <sys/types.h>
7167 #include <time.h>
7168 int
7169 main ()
7170 {
7171 struct tm tm; tm.tm_gmtoff;
7172   ;
7173   return 0;
7174 }
7175 _ACEOF
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7178 case "(($ac_try" in
7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180   *) ac_try_echo=$ac_try;;
7181 esac
7182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7183 $as_echo "$ac_try_echo") >&5
7184   (eval "$ac_compile") 2>conftest.er1
7185   ac_status=$?
7186   grep -v '^ *+' conftest.er1 >conftest.err
7187   rm -f conftest.er1
7188   cat conftest.err >&5
7189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } && {
7191          test -z "$ac_c_werror_flag" ||
7192          test ! -s conftest.err
7193        } && test -s conftest.$ac_objext; then
7194   ac_cv_struct_tm_gmtoff=yes
7195 else
7196   $as_echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199         ac_cv_struct_tm_gmtoff=no
7200 fi
7201
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 fi
7204 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
7205 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
7206 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
7207     cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_GMTOFF 1
7209 _ACEOF
7210
7211 fi
7212
7213
7214 case $host in
7215     *aix*)
7216         # for 32-bit builds, increase MAXDATA to allow lots of threads
7217         if test x$OBJECT_MODE != x64; then
7218             OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
7219         fi
7220         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
7221         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
7222         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
7223         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
7224         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
7225         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
7226         OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
7227         ;;
7228     *os390*)
7229         OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
7230         ;;
7231     *)
7232         OS_SPECIFIC_VARS=""
7233 esac
7234
7235
7236 # Check whether --with-port was given.
7237 if test "${with_port+set}" = set; then
7238   withval=$with_port; if test "$withval" = "yes"; then { { $as_echo "$as_me:$LINENO: error: 'option --with-port requires a value (the TCP port number)'" >&5
7239 $as_echo "$as_me: error: 'option --with-port requires a value (the TCP port number)'" >&2;}
7240    { (exit 1); exit 1; }; }; else PORT="$withval"; fi
7241 else
7242   PORT=80
7243 fi
7244
7245
7246
7247 apr_old_cppflags=$CPPFLAGS
7248 CPPFLAGS="$CPPFLAGS $INCLUDES"
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255
7256 #include <apr.h>
7257 #if APR_HAVE_IPV6
7258 YES_IS_DEFINED
7259 #endif
7260
7261 _ACEOF
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
7264   ac_cv_define_APR_HAVE_IPV6=yes
7265 else
7266   ac_cv_define_APR_HAVE_IPV6=no
7267 fi
7268 rm -f conftest*
7269
7270 CPPFLAGS=$apr_old_cppflags
7271
7272
7273 # Check whether --enable-v4-mapped was given.
7274 if test "${enable_v4_mapped+set}" = set; then
7275   enableval=$enable_v4_mapped;
7276   v4mapped=$enableval
7277
7278 else
7279
7280     case $host in
7281     *freebsd5*|*netbsd*|*openbsd*)
7282         v4mapped=no
7283         ;;
7284     *)
7285         v4mapped=yes
7286         ;;
7287 esac
7288
7289 fi
7290
7291
7292 if test $v4mapped = "yes" -o $ac_cv_define_APR_HAVE_IPV6 = "no"; then
7293     nonssl_listen_stmt_1=""
7294     nonssl_listen_stmt_2="Listen @@Port@@"
7295     if test $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
7296
7297 cat >>confdefs.h <<\_ACEOF
7298 #define AP_ENABLE_V4_MAPPED 1
7299 _ACEOF
7300
7301     fi
7302 else
7303     nonssl_listen_stmt_1="Listen 0.0.0.0:@@Port@@"
7304     nonssl_listen_stmt_2="Listen [::]:@@Port@@"
7305 fi
7306
7307 # Check whether --enable-exception-hook was given.
7308 if test "${enable_exception_hook+set}" = set; then
7309   enableval=$enable_exception_hook;
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define AP_ENABLE_EXCEPTION_HOOK 1
7313 _ACEOF
7314
7315
7316 fi
7317
7318 # Check whether --enable-maintainer-mode was given.
7319 if test "${enable_maintainer_mode+set}" = set; then
7320   enableval=$enable_maintainer_mode;
7321
7322   if test "x$CPPFLAGS" = "x"; then
7323     echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
7324     CPPFLAGS="-DAP_DEBUG"
7325   else
7326     apr_addto_bugger="-DAP_DEBUG"
7327     for i in $apr_addto_bugger; do
7328       apr_addto_duplicate="0"
7329       for j in $CPPFLAGS; do
7330         if test "x$i" = "x$j"; then
7331           apr_addto_duplicate="1"
7332           break
7333         fi
7334       done
7335       if test $apr_addto_duplicate = "0"; then
7336         echo "  adding \"$i\" to CPPFLAGS"
7337         CPPFLAGS="$CPPFLAGS $i"
7338       fi
7339     done
7340   fi
7341
7342
7343 fi
7344
7345 prefix="$orig_prefix"
7346
7347   module_selection=default
7348   module_default=yes
7349
7350   # Check whether --enable-modules was given.
7351 if test "${enable_modules+set}" = set; then
7352   enableval=$enable_modules;
7353     for i in $enableval; do
7354       if test "$i" = "all" -o "$i" = "most"; then
7355         module_selection=$i
7356       else
7357         eval "enable_$i=yes"
7358       fi
7359     done
7360
7361 fi
7362
7363
7364   # Check whether --enable-mods-shared was given.
7365 if test "${enable_mods_shared+set}" = set; then
7366   enableval=$enable_mods_shared;
7367     for i in $enableval; do
7368       if test "$i" = "all" -o "$i" = "most"; then
7369         module_selection=$i
7370         module_default=shared
7371       else
7372         i=`echo $i | sed 's/-/_/g'`
7373         eval "enable_$i=shared"
7374       fi
7375     done
7376
7377 fi
7378
7379
7380
7381
7382
7383
7384   current_dir=aaa
7385   modpath_current=modules/aaa
7386   modpath_static=
7387   modpath_shared=
7388   test -d aaa || $srcdir/build/mkdir.sh $modpath_current
7389   > $modpath_current/modules.mk
7390
7391
7392
7393   { $as_echo "$as_me:$LINENO: checking whether to enable mod_access" >&5
7394 $as_echo_n "checking whether to enable mod_access... " >&6; }
7395     # Check whether --enable-access was given.
7396 if test "${enable_access+set}" = set; then
7397   enableval=$enable_access;
7398 else
7399   enable_access=yes
7400 fi
7401
7402     _apmod_extra_msg=""
7403       if test "$module_selection" = "most" -a "$enable_access" = "most"; then
7404     _apmod_error_fatal="no"
7405   else
7406     _apmod_error_fatal="yes"
7407   fi
7408   if test "$enable_access" = "static"; then
7409     enable_access=yes
7410   elif test "$enable_access" = "yes"; then
7411     enable_access=$module_default
7412     _apmod_extra_msg=" ($module_selection)"
7413   elif test "$enable_access" = "most"; then
7414     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7415       enable_access=$module_default
7416       _apmod_extra_msg=" ($module_selection)"
7417     elif test "$enable_access" != "yes"; then
7418       enable_access=no
7419     fi
7420   elif test "$enable_access" = "maybe-all"; then
7421     if test "$module_selection" = "all"; then
7422       enable_access=$module_default
7423       _apmod_extra_msg=" (all)"
7424     else
7425       enable_access=no
7426     fi
7427   fi
7428   if test "$enable_access" != "no"; then
7429             :
7430   fi
7431   { $as_echo "$as_me:$LINENO: result: $enable_access$_apmod_extra_msg" >&5
7432 $as_echo "$enable_access$_apmod_extra_msg" >&6; }
7433   if test "$enable_access" != "no"; then
7434     case "$enable_access" in
7435     shared*)
7436       enable_access=`echo $ac_n $enable_access$ac_c|sed 's/shared,*//'`
7437       sharedobjs=yes
7438       shared=yes
7439       DSO_MODULES="$DSO_MODULES access"
7440       ;;
7441     *)
7442       MODLIST="$MODLIST access"
7443       if test "access" = "so"; then
7444           sharedobjs=yes
7445       fi
7446       shared="";;
7447     esac
7448
7449
7450   if test -z ""; then
7451     objects="mod_access.lo"
7452   else
7453     objects=""
7454   fi
7455
7456   if test -z "$module_standalone"; then
7457     if test -z "$shared"; then
7458       libname="mod_access.la"
7459       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7460       modpath_static="$modpath_static $libname"
7461       cat >>$modpath_current/modules.mk<<EOF
7462 $libname: $objects
7463         \$(MOD_LINK) $objects \$(MOD_ACCESS_LDADD)
7464 EOF
7465     else
7466       apache_need_shared=yes
7467       libname="mod_access.la"
7468       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7469       modpath_shared="$modpath_shared $libname"
7470       cat >>$modpath_current/modules.mk<<EOF
7471 $libname: $shobjects
7472         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACCESS_LDADD)
7473 EOF
7474     fi
7475   fi
7476
7477
7478   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACCESS_LDADD"
7479
7480
7481
7482   fi
7483
7484
7485   { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth" >&5
7486 $as_echo_n "checking whether to enable mod_auth... " >&6; }
7487     # Check whether --enable-auth was given.
7488 if test "${enable_auth+set}" = set; then
7489   enableval=$enable_auth;
7490 else
7491   enable_auth=yes
7492 fi
7493
7494     _apmod_extra_msg=""
7495       if test "$module_selection" = "most" -a "$enable_auth" = "most"; then
7496     _apmod_error_fatal="no"
7497   else
7498     _apmod_error_fatal="yes"
7499   fi
7500   if test "$enable_auth" = "static"; then
7501     enable_auth=yes
7502   elif test "$enable_auth" = "yes"; then
7503     enable_auth=$module_default
7504     _apmod_extra_msg=" ($module_selection)"
7505   elif test "$enable_auth" = "most"; then
7506     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7507       enable_auth=$module_default
7508       _apmod_extra_msg=" ($module_selection)"
7509     elif test "$enable_auth" != "yes"; then
7510       enable_auth=no
7511     fi
7512   elif test "$enable_auth" = "maybe-all"; then
7513     if test "$module_selection" = "all"; then
7514       enable_auth=$module_default
7515       _apmod_extra_msg=" (all)"
7516     else
7517       enable_auth=no
7518     fi
7519   fi
7520   if test "$enable_auth" != "no"; then
7521             :
7522   fi
7523   { $as_echo "$as_me:$LINENO: result: $enable_auth$_apmod_extra_msg" >&5
7524 $as_echo "$enable_auth$_apmod_extra_msg" >&6; }
7525   if test "$enable_auth" != "no"; then
7526     case "$enable_auth" in
7527     shared*)
7528       enable_auth=`echo $ac_n $enable_auth$ac_c|sed 's/shared,*//'`
7529       sharedobjs=yes
7530       shared=yes
7531       DSO_MODULES="$DSO_MODULES auth"
7532       ;;
7533     *)
7534       MODLIST="$MODLIST auth"
7535       if test "auth" = "so"; then
7536           sharedobjs=yes
7537       fi
7538       shared="";;
7539     esac
7540
7541
7542   if test -z ""; then
7543     objects="mod_auth.lo"
7544   else
7545     objects=""
7546   fi
7547
7548   if test -z "$module_standalone"; then
7549     if test -z "$shared"; then
7550       libname="mod_auth.la"
7551       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7552       modpath_static="$modpath_static $libname"
7553       cat >>$modpath_current/modules.mk<<EOF
7554 $libname: $objects
7555         \$(MOD_LINK) $objects \$(MOD_AUTH_LDADD)
7556 EOF
7557     else
7558       apache_need_shared=yes
7559       libname="mod_auth.la"
7560       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7561       modpath_shared="$modpath_shared $libname"
7562       cat >>$modpath_current/modules.mk<<EOF
7563 $libname: $shobjects
7564         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_LDADD)
7565 EOF
7566     fi
7567   fi
7568
7569
7570   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_LDADD"
7571
7572
7573
7574   fi
7575
7576
7577   { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_anon" >&5
7578 $as_echo_n "checking whether to enable mod_auth_anon... " >&6; }
7579     # Check whether --enable-auth-anon was given.
7580 if test "${enable_auth_anon+set}" = set; then
7581   enableval=$enable_auth_anon;
7582 else
7583   enable_auth_anon=most
7584 fi
7585
7586     _apmod_extra_msg=""
7587       if test "$module_selection" = "most" -a "$enable_auth_anon" = "most"; then
7588     _apmod_error_fatal="no"
7589   else
7590     _apmod_error_fatal="yes"
7591   fi
7592   if test "$enable_auth_anon" = "static"; then
7593     enable_auth_anon=yes
7594   elif test "$enable_auth_anon" = "yes"; then
7595     enable_auth_anon=$module_default
7596     _apmod_extra_msg=" ($module_selection)"
7597   elif test "$enable_auth_anon" = "most"; then
7598     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7599       enable_auth_anon=$module_default
7600       _apmod_extra_msg=" ($module_selection)"
7601     elif test "$enable_auth_anon" != "yes"; then
7602       enable_auth_anon=no
7603     fi
7604   elif test "$enable_auth_anon" = "maybe-all"; then
7605     if test "$module_selection" = "all"; then
7606       enable_auth_anon=$module_default
7607       _apmod_extra_msg=" (all)"
7608     else
7609       enable_auth_anon=no
7610     fi
7611   fi
7612   if test "$enable_auth_anon" != "no"; then
7613             :
7614   fi
7615   { $as_echo "$as_me:$LINENO: result: $enable_auth_anon$_apmod_extra_msg" >&5
7616 $as_echo "$enable_auth_anon$_apmod_extra_msg" >&6; }
7617   if test "$enable_auth_anon" != "no"; then
7618     case "$enable_auth_anon" in
7619     shared*)
7620       enable_auth_anon=`echo $ac_n $enable_auth_anon$ac_c|sed 's/shared,*//'`
7621       sharedobjs=yes
7622       shared=yes
7623       DSO_MODULES="$DSO_MODULES auth_anon"
7624       ;;
7625     *)
7626       MODLIST="$MODLIST auth_anon"
7627       if test "auth_anon" = "so"; then
7628           sharedobjs=yes
7629       fi
7630       shared="";;
7631     esac
7632
7633
7634   if test -z ""; then
7635     objects="mod_auth_anon.lo"
7636   else
7637     objects=""
7638   fi
7639
7640   if test -z "$module_standalone"; then
7641     if test -z "$shared"; then
7642       libname="mod_auth_anon.la"
7643       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7644       modpath_static="$modpath_static $libname"
7645       cat >>$modpath_current/modules.mk<<EOF
7646 $libname: $objects
7647         \$(MOD_LINK) $objects \$(MOD_AUTH_ANON_LDADD)
7648 EOF
7649     else
7650       apache_need_shared=yes
7651       libname="mod_auth_anon.la"
7652       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7653       modpath_shared="$modpath_shared $libname"
7654       cat >>$modpath_current/modules.mk<<EOF
7655 $libname: $shobjects
7656         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_ANON_LDADD)
7657 EOF
7658     fi
7659   fi
7660
7661
7662   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_ANON_LDADD"
7663
7664
7665
7666   fi
7667
7668
7669   { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_dbm" >&5
7670 $as_echo_n "checking whether to enable mod_auth_dbm... " >&6; }
7671     # Check whether --enable-auth-dbm was given.
7672 if test "${enable_auth_dbm+set}" = set; then
7673   enableval=$enable_auth_dbm;
7674 else
7675   enable_auth_dbm=most
7676 fi
7677
7678     _apmod_extra_msg=""
7679       if test "$module_selection" = "most" -a "$enable_auth_dbm" = "most"; then
7680     _apmod_error_fatal="no"
7681   else
7682     _apmod_error_fatal="yes"
7683   fi
7684   if test "$enable_auth_dbm" = "static"; then
7685     enable_auth_dbm=yes
7686   elif test "$enable_auth_dbm" = "yes"; then
7687     enable_auth_dbm=$module_default
7688     _apmod_extra_msg=" ($module_selection)"
7689   elif test "$enable_auth_dbm" = "most"; then
7690     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7691       enable_auth_dbm=$module_default
7692       _apmod_extra_msg=" ($module_selection)"
7693     elif test "$enable_auth_dbm" != "yes"; then
7694       enable_auth_dbm=no
7695     fi
7696   elif test "$enable_auth_dbm" = "maybe-all"; then
7697     if test "$module_selection" = "all"; then
7698       enable_auth_dbm=$module_default
7699       _apmod_extra_msg=" (all)"
7700     else
7701       enable_auth_dbm=no
7702     fi
7703   fi
7704   if test "$enable_auth_dbm" != "no"; then
7705             :
7706   fi
7707   { $as_echo "$as_me:$LINENO: result: $enable_auth_dbm$_apmod_extra_msg" >&5
7708 $as_echo "$enable_auth_dbm$_apmod_extra_msg" >&6; }
7709   if test "$enable_auth_dbm" != "no"; then
7710     case "$enable_auth_dbm" in
7711     shared*)
7712       enable_auth_dbm=`echo $ac_n $enable_auth_dbm$ac_c|sed 's/shared,*//'`
7713       sharedobjs=yes
7714       shared=yes
7715       DSO_MODULES="$DSO_MODULES auth_dbm"
7716       ;;
7717     *)
7718       MODLIST="$MODLIST auth_dbm"
7719       if test "auth_dbm" = "so"; then
7720           sharedobjs=yes
7721       fi
7722       shared="";;
7723     esac
7724
7725
7726   if test -z ""; then
7727     objects="mod_auth_dbm.lo"
7728   else
7729     objects=""
7730   fi
7731
7732   if test -z "$module_standalone"; then
7733     if test -z "$shared"; then
7734       libname="mod_auth_dbm.la"
7735       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7736       modpath_static="$modpath_static $libname"
7737       cat >>$modpath_current/modules.mk<<EOF
7738 $libname: $objects
7739         \$(MOD_LINK) $objects \$(MOD_AUTH_DBM_LDADD)
7740 EOF
7741     else
7742       apache_need_shared=yes
7743       libname="mod_auth_dbm.la"
7744       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7745       modpath_shared="$modpath_shared $libname"
7746       cat >>$modpath_current/modules.mk<<EOF
7747 $libname: $shobjects
7748         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DBM_LDADD)
7749 EOF
7750     fi
7751   fi
7752
7753
7754   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DBM_LDADD"
7755
7756
7757
7758   fi
7759
7760
7761
7762   { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
7763 $as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
7764     # Check whether --enable-auth-digest was given.
7765 if test "${enable_auth_digest+set}" = set; then
7766   enableval=$enable_auth_digest;
7767 else
7768   enable_auth_digest=most
7769 fi
7770
7771     _apmod_extra_msg=""
7772       if test "$module_selection" = "most" -a "$enable_auth_digest" = "most"; then
7773     _apmod_error_fatal="no"
7774   else
7775     _apmod_error_fatal="yes"
7776   fi
7777   if test "$enable_auth_digest" = "static"; then
7778     enable_auth_digest=yes
7779   elif test "$enable_auth_digest" = "yes"; then
7780     enable_auth_digest=$module_default
7781     _apmod_extra_msg=" ($module_selection)"
7782   elif test "$enable_auth_digest" = "most"; then
7783     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7784       enable_auth_digest=$module_default
7785       _apmod_extra_msg=" ($module_selection)"
7786     elif test "$enable_auth_digest" != "yes"; then
7787       enable_auth_digest=no
7788     fi
7789   elif test "$enable_auth_digest" = "maybe-all"; then
7790     if test "$module_selection" = "all"; then
7791       enable_auth_digest=$module_default
7792       _apmod_extra_msg=" (all)"
7793     else
7794       enable_auth_digest=no
7795     fi
7796   fi
7797   if test "$enable_auth_digest" != "no"; then
7798             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
7799 $as_echo "checking dependencies" >&6; }
7800
7801
7802 apr_old_cppflags=$CPPFLAGS
7803 CPPFLAGS="$CPPFLAGS $INCLUDES"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810
7811 #include <apr.h>
7812 #if APR_HAS_RANDOM
7813 YES_IS_DEFINED
7814 #endif
7815
7816 _ACEOF
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
7819   ac_cv_define_APR_HAS_RANDOM=yes
7820 else
7821   ac_cv_define_APR_HAS_RANDOM=no
7822 fi
7823 rm -f conftest*
7824
7825 CPPFLAGS=$apr_old_cppflags
7826
7827   if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
7828     echo "You need APR random support to use mod_auth_digest."
7829     echo "Look at APR configure options --with-egd and --with-devrandom."
7830     enable_auth_digest="no"
7831   fi
7832
7833                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
7834 $as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
7835                     if test "$enable_auth_digest" = "no"; then
7836                       if test "$_apmod_error_fatal" = "no"; then
7837                         _apmod_extra_msg=" (disabled)"
7838                       else
7839                         { { $as_echo "$as_me:$LINENO: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&5
7840 $as_echo "$as_me: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&2;}
7841    { (exit 1); exit 1; }; }
7842                       fi
7843                     fi
7844   fi
7845   { $as_echo "$as_me:$LINENO: result: $enable_auth_digest$_apmod_extra_msg" >&5
7846 $as_echo "$enable_auth_digest$_apmod_extra_msg" >&6; }
7847   if test "$enable_auth_digest" != "no"; then
7848     case "$enable_auth_digest" in
7849     shared*)
7850       enable_auth_digest=`echo $ac_n $enable_auth_digest$ac_c|sed 's/shared,*//'`
7851       sharedobjs=yes
7852       shared=yes
7853       DSO_MODULES="$DSO_MODULES auth_digest"
7854       ;;
7855     *)
7856       MODLIST="$MODLIST auth_digest"
7857       if test "auth_digest" = "so"; then
7858           sharedobjs=yes
7859       fi
7860       shared="";;
7861     esac
7862
7863
7864   if test -z ""; then
7865     objects="mod_auth_digest.lo"
7866   else
7867     objects=""
7868   fi
7869
7870   if test -z "$module_standalone"; then
7871     if test -z "$shared"; then
7872       libname="mod_auth_digest.la"
7873       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7874       modpath_static="$modpath_static $libname"
7875       cat >>$modpath_current/modules.mk<<EOF
7876 $libname: $objects
7877         \$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
7878 EOF
7879     else
7880       apache_need_shared=yes
7881       libname="mod_auth_digest.la"
7882       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7883       modpath_shared="$modpath_shared $libname"
7884       cat >>$modpath_current/modules.mk<<EOF
7885 $libname: $shobjects
7886         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DIGEST_LDADD)
7887 EOF
7888     fi
7889   fi
7890
7891
7892   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"
7893
7894
7895
7896   fi
7897
7898
7899
7900   if test "x$LT_LDFLAGS" = "x"; then
7901     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
7902     LT_LDFLAGS="-export-dynamic"
7903   else
7904     apr_addto_bugger="-export-dynamic"
7905     for i in $apr_addto_bugger; do
7906       apr_addto_duplicate="0"
7907       for j in $LT_LDFLAGS; do
7908         if test "x$i" = "x$j"; then
7909           apr_addto_duplicate="1"
7910           break
7911         fi
7912       done
7913       if test $apr_addto_duplicate = "0"; then
7914         echo "  adding \"$i\" to LT_LDFLAGS"
7915         LT_LDFLAGS="$LT_LDFLAGS $i"
7916       fi
7917     done
7918   fi
7919
7920
7921
7922   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
7923   echo "static = $modpath_static" >> $modpath_current/modules.mk
7924   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
7925   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
7926     MODULE_DIRS="$MODULE_DIRS $current_dir"
7927   else
7928     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
7929   fi
7930
7931   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
7932
7933
7934
7935
7936
7937
7938   current_dir=arch/win32
7939   modpath_current=modules/arch/win32
7940   modpath_static=
7941   modpath_shared=
7942   test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
7943   > $modpath_current/modules.mk
7944
7945
7946
7947   { $as_echo "$as_me:$LINENO: checking whether to enable mod_isapi" >&5
7948 $as_echo_n "checking whether to enable mod_isapi... " >&6; }
7949     # Check whether --enable-isapi was given.
7950 if test "${enable_isapi+set}" = set; then
7951   enableval=$enable_isapi;
7952 else
7953   enable_isapi=no
7954 fi
7955
7956     _apmod_extra_msg=""
7957       if test "$module_selection" = "most" -a "$enable_isapi" = "most"; then
7958     _apmod_error_fatal="no"
7959   else
7960     _apmod_error_fatal="yes"
7961   fi
7962   if test "$enable_isapi" = "static"; then
7963     enable_isapi=yes
7964   elif test "$enable_isapi" = "yes"; then
7965     enable_isapi=$module_default
7966     _apmod_extra_msg=" ($module_selection)"
7967   elif test "$enable_isapi" = "most"; then
7968     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7969       enable_isapi=$module_default
7970       _apmod_extra_msg=" ($module_selection)"
7971     elif test "$enable_isapi" != "yes"; then
7972       enable_isapi=no
7973     fi
7974   elif test "$enable_isapi" = "maybe-all"; then
7975     if test "$module_selection" = "all"; then
7976       enable_isapi=$module_default
7977       _apmod_extra_msg=" (all)"
7978     else
7979       enable_isapi=no
7980     fi
7981   fi
7982   if test "$enable_isapi" != "no"; then
7983             :
7984   fi
7985   { $as_echo "$as_me:$LINENO: result: $enable_isapi$_apmod_extra_msg" >&5
7986 $as_echo "$enable_isapi$_apmod_extra_msg" >&6; }
7987   if test "$enable_isapi" != "no"; then
7988     case "$enable_isapi" in
7989     shared*)
7990       enable_isapi=`echo $ac_n $enable_isapi$ac_c|sed 's/shared,*//'`
7991       sharedobjs=yes
7992       shared=yes
7993       DSO_MODULES="$DSO_MODULES isapi"
7994       ;;
7995     *)
7996       MODLIST="$MODLIST isapi"
7997       if test "isapi" = "so"; then
7998           sharedobjs=yes
7999       fi
8000       shared="";;
8001     esac
8002
8003
8004   if test -z ""; then
8005     objects="mod_isapi.lo"
8006   else
8007     objects=""
8008   fi
8009
8010   if test -z "$module_standalone"; then
8011     if test -z "$shared"; then
8012       libname="mod_isapi.la"
8013       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8014       modpath_static="$modpath_static $libname"
8015       cat >>$modpath_current/modules.mk<<EOF
8016 $libname: $objects
8017         \$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
8018 EOF
8019     else
8020       apache_need_shared=yes
8021       libname="mod_isapi.la"
8022       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8023       modpath_shared="$modpath_shared $libname"
8024       cat >>$modpath_current/modules.mk<<EOF
8025 $libname: $shobjects
8026         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ISAPI_LDADD)
8027 EOF
8028     fi
8029   fi
8030
8031
8032   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"
8033
8034
8035
8036   fi
8037
8038
8039
8040   if test "x$LT_LDFLAGS" = "x"; then
8041     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
8042     LT_LDFLAGS="-export-dynamic"
8043   else
8044     apr_addto_bugger="-export-dynamic"
8045     for i in $apr_addto_bugger; do
8046       apr_addto_duplicate="0"
8047       for j in $LT_LDFLAGS; do
8048         if test "x$i" = "x$j"; then
8049           apr_addto_duplicate="1"
8050           break
8051         fi
8052       done
8053       if test $apr_addto_duplicate = "0"; then
8054         echo "  adding \"$i\" to LT_LDFLAGS"
8055         LT_LDFLAGS="$LT_LDFLAGS $i"
8056       fi
8057     done
8058   fi
8059
8060
8061
8062   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8063   echo "static = $modpath_static" >> $modpath_current/modules.mk
8064   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8065   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8066     MODULE_DIRS="$MODULE_DIRS $current_dir"
8067   else
8068     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8069   fi
8070
8071   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8072
8073
8074
8075
8076
8077
8078   current_dir=cache
8079   modpath_current=modules/cache
8080   modpath_static=
8081   modpath_shared=
8082   test -d cache || $srcdir/build/mkdir.sh $modpath_current
8083   > $modpath_current/modules.mk
8084
8085
8086
8087   { $as_echo "$as_me:$LINENO: checking whether to enable mod_file_cache" >&5
8088 $as_echo_n "checking whether to enable mod_file_cache... " >&6; }
8089     # Check whether --enable-file-cache was given.
8090 if test "${enable_file_cache+set}" = set; then
8091   enableval=$enable_file_cache;
8092 else
8093   enable_file_cache=no
8094 fi
8095
8096     _apmod_extra_msg=""
8097       if test "$module_selection" = "most" -a "$enable_file_cache" = "most"; then
8098     _apmod_error_fatal="no"
8099   else
8100     _apmod_error_fatal="yes"
8101   fi
8102   if test "$enable_file_cache" = "static"; then
8103     enable_file_cache=yes
8104   elif test "$enable_file_cache" = "yes"; then
8105     enable_file_cache=$module_default
8106     _apmod_extra_msg=" ($module_selection)"
8107   elif test "$enable_file_cache" = "most"; then
8108     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8109       enable_file_cache=$module_default
8110       _apmod_extra_msg=" ($module_selection)"
8111     elif test "$enable_file_cache" != "yes"; then
8112       enable_file_cache=no
8113     fi
8114   elif test "$enable_file_cache" = "maybe-all"; then
8115     if test "$module_selection" = "all"; then
8116       enable_file_cache=$module_default
8117       _apmod_extra_msg=" (all)"
8118     else
8119       enable_file_cache=no
8120     fi
8121   fi
8122   if test "$enable_file_cache" != "no"; then
8123             :
8124   fi
8125   { $as_echo "$as_me:$LINENO: result: $enable_file_cache$_apmod_extra_msg" >&5
8126 $as_echo "$enable_file_cache$_apmod_extra_msg" >&6; }
8127   if test "$enable_file_cache" != "no"; then
8128     case "$enable_file_cache" in
8129     shared*)
8130       enable_file_cache=`echo $ac_n $enable_file_cache$ac_c|sed 's/shared,*//'`
8131       sharedobjs=yes
8132       shared=yes
8133       DSO_MODULES="$DSO_MODULES file_cache"
8134       ;;
8135     *)
8136       MODLIST="$MODLIST file_cache"
8137       if test "file_cache" = "so"; then
8138           sharedobjs=yes
8139       fi
8140       shared="";;
8141     esac
8142
8143
8144   if test -z ""; then
8145     objects="mod_file_cache.lo"
8146   else
8147     objects=""
8148   fi
8149
8150   if test -z "$module_standalone"; then
8151     if test -z "$shared"; then
8152       libname="mod_file_cache.la"
8153       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8154       modpath_static="$modpath_static $libname"
8155       cat >>$modpath_current/modules.mk<<EOF
8156 $libname: $objects
8157         \$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
8158 EOF
8159     else
8160       apache_need_shared=yes
8161       libname="mod_file_cache.la"
8162       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8163       modpath_shared="$modpath_shared $libname"
8164       cat >>$modpath_current/modules.mk<<EOF
8165 $libname: $shobjects
8166         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILE_CACHE_LDADD)
8167 EOF
8168     fi
8169   fi
8170
8171
8172   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"
8173
8174
8175
8176   fi
8177
8178
8179
8180   if test "x$LT_LDFLAGS" = "x"; then
8181     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
8182     LT_LDFLAGS="-export-dynamic"
8183   else
8184     apr_addto_bugger="-export-dynamic"
8185     for i in $apr_addto_bugger; do
8186       apr_addto_duplicate="0"
8187       for j in $LT_LDFLAGS; do
8188         if test "x$i" = "x$j"; then
8189           apr_addto_duplicate="1"
8190           break
8191         fi
8192       done
8193       if test $apr_addto_duplicate = "0"; then
8194         echo "  adding \"$i\" to LT_LDFLAGS"
8195         LT_LDFLAGS="$LT_LDFLAGS $i"
8196       fi
8197     done
8198   fi
8199
8200
8201
8202   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8203   echo "static = $modpath_static" >> $modpath_current/modules.mk
8204   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8205   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8206     MODULE_DIRS="$MODULE_DIRS $current_dir"
8207   else
8208     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8209   fi
8210
8211   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8212
8213
8214
8215
8216
8217
8218   current_dir=echo
8219   modpath_current=modules/echo
8220   modpath_static=
8221   modpath_shared=
8222   test -d echo || $srcdir/build/mkdir.sh $modpath_current
8223   > $modpath_current/modules.mk
8224
8225
8226
8227   { $as_echo "$as_me:$LINENO: checking whether to enable mod_echo" >&5
8228 $as_echo_n "checking whether to enable mod_echo... " >&6; }
8229     # Check whether --enable-echo was given.
8230 if test "${enable_echo+set}" = set; then
8231   enableval=$enable_echo;
8232 else
8233   enable_echo=no
8234 fi
8235
8236     _apmod_extra_msg=""
8237       if test "$module_selection" = "most" -a "$enable_echo" = "most"; then
8238     _apmod_error_fatal="no"
8239   else
8240     _apmod_error_fatal="yes"
8241   fi
8242   if test "$enable_echo" = "static"; then
8243     enable_echo=yes
8244   elif test "$enable_echo" = "yes"; then
8245     enable_echo=$module_default
8246     _apmod_extra_msg=" ($module_selection)"
8247   elif test "$enable_echo" = "most"; then
8248     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8249       enable_echo=$module_default
8250       _apmod_extra_msg=" ($module_selection)"
8251     elif test "$enable_echo" != "yes"; then
8252       enable_echo=no
8253     fi
8254   elif test "$enable_echo" = "maybe-all"; then
8255     if test "$module_selection" = "all"; then
8256       enable_echo=$module_default
8257       _apmod_extra_msg=" (all)"
8258     else
8259       enable_echo=no
8260     fi
8261   fi
8262   if test "$enable_echo" != "no"; then
8263             :
8264   fi
8265   { $as_echo "$as_me:$LINENO: result: $enable_echo$_apmod_extra_msg" >&5
8266 $as_echo "$enable_echo$_apmod_extra_msg" >&6; }
8267   if test "$enable_echo" != "no"; then
8268     case "$enable_echo" in
8269     shared*)
8270       enable_echo=`echo $ac_n $enable_echo$ac_c|sed 's/shared,*//'`
8271       sharedobjs=yes
8272       shared=yes
8273       DSO_MODULES="$DSO_MODULES echo"
8274       ;;
8275     *)
8276       MODLIST="$MODLIST echo"
8277       if test "echo" = "so"; then
8278           sharedobjs=yes
8279       fi
8280       shared="";;
8281     esac
8282
8283
8284   if test -z ""; then
8285     objects="mod_echo.lo"
8286   else
8287     objects=""
8288   fi
8289
8290   if test -z "$module_standalone"; then
8291     if test -z "$shared"; then
8292       libname="mod_echo.la"
8293       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8294       modpath_static="$modpath_static $libname"
8295       cat >>$modpath_current/modules.mk<<EOF
8296 $libname: $objects
8297         \$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
8298 EOF
8299     else
8300       apache_need_shared=yes
8301       libname="mod_echo.la"
8302       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8303       modpath_shared="$modpath_shared $libname"
8304       cat >>$modpath_current/modules.mk<<EOF
8305 $libname: $shobjects
8306         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ECHO_LDADD)
8307 EOF
8308     fi
8309   fi
8310
8311
8312   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"
8313
8314
8315
8316   fi
8317
8318
8319
8320   if test "x$LT_LDFLAGS" = "x"; then
8321     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
8322     LT_LDFLAGS="-export-dynamic"
8323   else
8324     apr_addto_bugger="-export-dynamic"
8325     for i in $apr_addto_bugger; do
8326       apr_addto_duplicate="0"
8327       for j in $LT_LDFLAGS; do
8328         if test "x$i" = "x$j"; then
8329           apr_addto_duplicate="1"
8330           break
8331         fi
8332       done
8333       if test $apr_addto_duplicate = "0"; then
8334         echo "  adding \"$i\" to LT_LDFLAGS"
8335         LT_LDFLAGS="$LT_LDFLAGS $i"
8336       fi
8337     done
8338   fi
8339
8340
8341
8342   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8343   echo "static = $modpath_static" >> $modpath_current/modules.mk
8344   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8345   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8346     MODULE_DIRS="$MODULE_DIRS $current_dir"
8347   else
8348     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8349   fi
8350
8351   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8352
8353
8354
8355
8356
8357   current_dir=experimental
8358   modpath_current=modules/experimental
8359   modpath_static=
8360   modpath_shared=
8361   test -d experimental || $srcdir/build/mkdir.sh $modpath_current
8362   > $modpath_current/modules.mk
8363
8364
8365 if test "$ac_cv_ebcdic" = "yes"; then
8366 # mod_charset_lite can be very useful on an ebcdic system,
8367 #   so include it by default
8368
8369   { $as_echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
8370 $as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
8371     # Check whether --enable-charset-lite was given.
8372 if test "${enable_charset_lite+set}" = set; then
8373   enableval=$enable_charset_lite;
8374 else
8375   enable_charset_lite=yes
8376 fi
8377
8378     _apmod_extra_msg=""
8379       if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
8380     _apmod_error_fatal="no"
8381   else
8382     _apmod_error_fatal="yes"
8383   fi
8384   if test "$enable_charset_lite" = "static"; then
8385     enable_charset_lite=yes
8386   elif test "$enable_charset_lite" = "yes"; then
8387     enable_charset_lite=$module_default
8388     _apmod_extra_msg=" ($module_selection)"
8389   elif test "$enable_charset_lite" = "most"; then
8390     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8391       enable_charset_lite=$module_default
8392       _apmod_extra_msg=" ($module_selection)"
8393     elif test "$enable_charset_lite" != "yes"; then
8394       enable_charset_lite=no
8395     fi
8396   elif test "$enable_charset_lite" = "maybe-all"; then
8397     if test "$module_selection" = "all"; then
8398       enable_charset_lite=$module_default
8399       _apmod_extra_msg=" (all)"
8400     else
8401       enable_charset_lite=no
8402     fi
8403   fi
8404   if test "$enable_charset_lite" != "no"; then
8405             :
8406   fi
8407   { $as_echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
8408 $as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
8409   if test "$enable_charset_lite" != "no"; then
8410     case "$enable_charset_lite" in
8411     shared*)
8412       enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
8413       sharedobjs=yes
8414       shared=yes
8415       DSO_MODULES="$DSO_MODULES charset_lite"
8416       ;;
8417     *)
8418       MODLIST="$MODLIST charset_lite"
8419       if test "charset_lite" = "so"; then
8420           sharedobjs=yes
8421       fi
8422       shared="";;
8423     esac
8424
8425
8426   if test -z ""; then
8427     objects="mod_charset_lite.lo"
8428   else
8429     objects=""
8430   fi
8431
8432   if test -z "$module_standalone"; then
8433     if test -z "$shared"; then
8434       libname="mod_charset_lite.la"
8435       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8436       modpath_static="$modpath_static $libname"
8437       cat >>$modpath_current/modules.mk<<EOF
8438 $libname: $objects
8439         \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
8440 EOF
8441     else
8442       apache_need_shared=yes
8443       libname="mod_charset_lite.la"
8444       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8445       modpath_shared="$modpath_shared $libname"
8446       cat >>$modpath_current/modules.mk<<EOF
8447 $libname: $shobjects
8448         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
8449 EOF
8450     fi
8451   fi
8452
8453
8454   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
8455
8456
8457
8458   fi
8459
8460 else
8461
8462   { $as_echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
8463 $as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
8464     # Check whether --enable-charset-lite was given.
8465 if test "${enable_charset_lite+set}" = set; then
8466   enableval=$enable_charset_lite;
8467 else
8468   enable_charset_lite=no
8469 fi
8470
8471     _apmod_extra_msg=""
8472       if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
8473     _apmod_error_fatal="no"
8474   else
8475     _apmod_error_fatal="yes"
8476   fi
8477   if test "$enable_charset_lite" = "static"; then
8478     enable_charset_lite=yes
8479   elif test "$enable_charset_lite" = "yes"; then
8480     enable_charset_lite=$module_default
8481     _apmod_extra_msg=" ($module_selection)"
8482   elif test "$enable_charset_lite" = "most"; then
8483     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8484       enable_charset_lite=$module_default
8485       _apmod_extra_msg=" ($module_selection)"
8486     elif test "$enable_charset_lite" != "yes"; then
8487       enable_charset_lite=no
8488     fi
8489   elif test "$enable_charset_lite" = "maybe-all"; then
8490     if test "$module_selection" = "all"; then
8491       enable_charset_lite=$module_default
8492       _apmod_extra_msg=" (all)"
8493     else
8494       enable_charset_lite=no
8495     fi
8496   fi
8497   if test "$enable_charset_lite" != "no"; then
8498             :
8499   fi
8500   { $as_echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
8501 $as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
8502   if test "$enable_charset_lite" != "no"; then
8503     case "$enable_charset_lite" in
8504     shared*)
8505       enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
8506       sharedobjs=yes
8507       shared=yes
8508       DSO_MODULES="$DSO_MODULES charset_lite"
8509       ;;
8510     *)
8511       MODLIST="$MODLIST charset_lite"
8512       if test "charset_lite" = "so"; then
8513           sharedobjs=yes
8514       fi
8515       shared="";;
8516     esac
8517
8518
8519   if test -z ""; then
8520     objects="mod_charset_lite.lo"
8521   else
8522     objects=""
8523   fi
8524
8525   if test -z "$module_standalone"; then
8526     if test -z "$shared"; then
8527       libname="mod_charset_lite.la"
8528       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8529       modpath_static="$modpath_static $libname"
8530       cat >>$modpath_current/modules.mk<<EOF
8531 $libname: $objects
8532         \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
8533 EOF
8534     else
8535       apache_need_shared=yes
8536       libname="mod_charset_lite.la"
8537       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8538       modpath_shared="$modpath_shared $libname"
8539       cat >>$modpath_current/modules.mk<<EOF
8540 $libname: $shobjects
8541         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
8542 EOF
8543     fi
8544   fi
8545
8546
8547   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
8548
8549
8550
8551   fi
8552
8553 fi
8554
8555 cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
8556 mem_cache_objs="mod_mem_cache.lo cache_cache.lo cache_pqueue.lo cache_hash.lo "
8557
8558   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cache" >&5
8559 $as_echo_n "checking whether to enable mod_cache... " >&6; }
8560     # Check whether --enable-cache was given.
8561 if test "${enable_cache+set}" = set; then
8562   enableval=$enable_cache;
8563 else
8564   enable_cache=no
8565 fi
8566
8567     _apmod_extra_msg=""
8568       if test "$module_selection" = "most" -a "$enable_cache" = "most"; then
8569     _apmod_error_fatal="no"
8570   else
8571     _apmod_error_fatal="yes"
8572   fi
8573   if test "$enable_cache" = "static"; then
8574     enable_cache=yes
8575   elif test "$enable_cache" = "yes"; then
8576     enable_cache=$module_default
8577     _apmod_extra_msg=" ($module_selection)"
8578   elif test "$enable_cache" = "most"; then
8579     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8580       enable_cache=$module_default
8581       _apmod_extra_msg=" ($module_selection)"
8582     elif test "$enable_cache" != "yes"; then
8583       enable_cache=no
8584     fi
8585   elif test "$enable_cache" = "maybe-all"; then
8586     if test "$module_selection" = "all"; then
8587       enable_cache=$module_default
8588       _apmod_extra_msg=" (all)"
8589     else
8590       enable_cache=no
8591     fi
8592   fi
8593   if test "$enable_cache" != "no"; then
8594             :
8595   fi
8596   { $as_echo "$as_me:$LINENO: result: $enable_cache$_apmod_extra_msg" >&5
8597 $as_echo "$enable_cache$_apmod_extra_msg" >&6; }
8598   if test "$enable_cache" != "no"; then
8599     case "$enable_cache" in
8600     shared*)
8601       enable_cache=`echo $ac_n $enable_cache$ac_c|sed 's/shared,*//'`
8602       sharedobjs=yes
8603       shared=yes
8604       DSO_MODULES="$DSO_MODULES cache"
8605       ;;
8606     *)
8607       MODLIST="$MODLIST cache"
8608       if test "cache" = "so"; then
8609           sharedobjs=yes
8610       fi
8611       shared="";;
8612     esac
8613
8614
8615   if test -z "$cache_objs"; then
8616     objects="mod_cache.lo"
8617   else
8618     objects="$cache_objs"
8619   fi
8620
8621   if test -z "$module_standalone"; then
8622     if test -z "$shared"; then
8623       libname="mod_cache.la"
8624       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8625       modpath_static="$modpath_static $libname"
8626       cat >>$modpath_current/modules.mk<<EOF
8627 $libname: $objects
8628         \$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
8629 EOF
8630     else
8631       apache_need_shared=yes
8632       libname="mod_cache.la"
8633       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8634       modpath_shared="$modpath_shared $libname"
8635       cat >>$modpath_current/modules.mk<<EOF
8636 $libname: $shobjects
8637         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_LDADD)
8638 EOF
8639     fi
8640   fi
8641
8642
8643   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"
8644
8645
8646
8647   fi
8648
8649
8650   { $as_echo "$as_me:$LINENO: checking whether to enable mod_disk_cache" >&5
8651 $as_echo_n "checking whether to enable mod_disk_cache... " >&6; }
8652     # Check whether --enable-disk-cache was given.
8653 if test "${enable_disk_cache+set}" = set; then
8654   enableval=$enable_disk_cache;
8655 else
8656   enable_disk_cache=no
8657 fi
8658
8659     _apmod_extra_msg=""
8660       if test "$module_selection" = "most" -a "$enable_disk_cache" = "most"; then
8661     _apmod_error_fatal="no"
8662   else
8663     _apmod_error_fatal="yes"
8664   fi
8665   if test "$enable_disk_cache" = "static"; then
8666     enable_disk_cache=yes
8667   elif test "$enable_disk_cache" = "yes"; then
8668     enable_disk_cache=$module_default
8669     _apmod_extra_msg=" ($module_selection)"
8670   elif test "$enable_disk_cache" = "most"; then
8671     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8672       enable_disk_cache=$module_default
8673       _apmod_extra_msg=" ($module_selection)"
8674     elif test "$enable_disk_cache" != "yes"; then
8675       enable_disk_cache=no
8676     fi
8677   elif test "$enable_disk_cache" = "maybe-all"; then
8678     if test "$module_selection" = "all"; then
8679       enable_disk_cache=$module_default
8680       _apmod_extra_msg=" (all)"
8681     else
8682       enable_disk_cache=no
8683     fi
8684   fi
8685   if test "$enable_disk_cache" != "no"; then
8686             :
8687   fi
8688   { $as_echo "$as_me:$LINENO: result: $enable_disk_cache$_apmod_extra_msg" >&5
8689 $as_echo "$enable_disk_cache$_apmod_extra_msg" >&6; }
8690   if test "$enable_disk_cache" != "no"; then
8691     case "$enable_disk_cache" in
8692     shared*)
8693       enable_disk_cache=`echo $ac_n $enable_disk_cache$ac_c|sed 's/shared,*//'`
8694       sharedobjs=yes
8695       shared=yes
8696       DSO_MODULES="$DSO_MODULES disk_cache"
8697       ;;
8698     *)
8699       MODLIST="$MODLIST disk_cache"
8700       if test "disk_cache" = "so"; then
8701           sharedobjs=yes
8702       fi
8703       shared="";;
8704     esac
8705
8706
8707   if test -z ""; then
8708     objects="mod_disk_cache.lo"
8709   else
8710     objects=""
8711   fi
8712
8713   if test -z "$module_standalone"; then
8714     if test -z "$shared"; then
8715       libname="mod_disk_cache.la"
8716       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8717       modpath_static="$modpath_static $libname"
8718       cat >>$modpath_current/modules.mk<<EOF
8719 $libname: $objects
8720         \$(MOD_LINK) $objects \$(MOD_DISK_CACHE_LDADD)
8721 EOF
8722     else
8723       apache_need_shared=yes
8724       libname="mod_disk_cache.la"
8725       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8726       modpath_shared="$modpath_shared $libname"
8727       cat >>$modpath_current/modules.mk<<EOF
8728 $libname: $shobjects
8729         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DISK_CACHE_LDADD)
8730 EOF
8731     fi
8732   fi
8733
8734
8735   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DISK_CACHE_LDADD"
8736
8737
8738
8739   fi
8740
8741
8742   { $as_echo "$as_me:$LINENO: checking whether to enable mod_mem_cache" >&5
8743 $as_echo_n "checking whether to enable mod_mem_cache... " >&6; }
8744     # Check whether --enable-mem-cache was given.
8745 if test "${enable_mem_cache+set}" = set; then
8746   enableval=$enable_mem_cache;
8747 else
8748   enable_mem_cache=no
8749 fi
8750
8751     _apmod_extra_msg=""
8752       if test "$module_selection" = "most" -a "$enable_mem_cache" = "most"; then
8753     _apmod_error_fatal="no"
8754   else
8755     _apmod_error_fatal="yes"
8756   fi
8757   if test "$enable_mem_cache" = "static"; then
8758     enable_mem_cache=yes
8759   elif test "$enable_mem_cache" = "yes"; then
8760     enable_mem_cache=$module_default
8761     _apmod_extra_msg=" ($module_selection)"
8762   elif test "$enable_mem_cache" = "most"; then
8763     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8764       enable_mem_cache=$module_default
8765       _apmod_extra_msg=" ($module_selection)"
8766     elif test "$enable_mem_cache" != "yes"; then
8767       enable_mem_cache=no
8768     fi
8769   elif test "$enable_mem_cache" = "maybe-all"; then
8770     if test "$module_selection" = "all"; then
8771       enable_mem_cache=$module_default
8772       _apmod_extra_msg=" (all)"
8773     else
8774       enable_mem_cache=no
8775     fi
8776   fi
8777   if test "$enable_mem_cache" != "no"; then
8778             :
8779   fi
8780   { $as_echo "$as_me:$LINENO: result: $enable_mem_cache$_apmod_extra_msg" >&5
8781 $as_echo "$enable_mem_cache$_apmod_extra_msg" >&6; }
8782   if test "$enable_mem_cache" != "no"; then
8783     case "$enable_mem_cache" in
8784     shared*)
8785       enable_mem_cache=`echo $ac_n $enable_mem_cache$ac_c|sed 's/shared,*//'`
8786       sharedobjs=yes
8787       shared=yes
8788       DSO_MODULES="$DSO_MODULES mem_cache"
8789       ;;
8790     *)
8791       MODLIST="$MODLIST mem_cache"
8792       if test "mem_cache" = "so"; then
8793           sharedobjs=yes
8794       fi
8795       shared="";;
8796     esac
8797
8798
8799   if test -z "$mem_cache_objs"; then
8800     objects="mod_mem_cache.lo"
8801   else
8802     objects="$mem_cache_objs"
8803   fi
8804
8805   if test -z "$module_standalone"; then
8806     if test -z "$shared"; then
8807       libname="mod_mem_cache.la"
8808       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8809       modpath_static="$modpath_static $libname"
8810       cat >>$modpath_current/modules.mk<<EOF
8811 $libname: $objects
8812         \$(MOD_LINK) $objects \$(MOD_MEM_CACHE_LDADD)
8813 EOF
8814     else
8815       apache_need_shared=yes
8816       libname="mod_mem_cache.la"
8817       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8818       modpath_shared="$modpath_shared $libname"
8819       cat >>$modpath_current/modules.mk<<EOF
8820 $libname: $shobjects
8821         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MEM_CACHE_LDADD)
8822 EOF
8823     fi
8824   fi
8825
8826
8827   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MEM_CACHE_LDADD"
8828
8829
8830
8831   fi
8832
8833
8834   { $as_echo "$as_me:$LINENO: checking whether to enable mod_example" >&5
8835 $as_echo_n "checking whether to enable mod_example... " >&6; }
8836     # Check whether --enable-example was given.
8837 if test "${enable_example+set}" = set; then
8838   enableval=$enable_example;
8839 else
8840   enable_example=no
8841 fi
8842
8843     _apmod_extra_msg=""
8844       if test "$module_selection" = "most" -a "$enable_example" = "most"; then
8845     _apmod_error_fatal="no"
8846   else
8847     _apmod_error_fatal="yes"
8848   fi
8849   if test "$enable_example" = "static"; then
8850     enable_example=yes
8851   elif test "$enable_example" = "yes"; then
8852     enable_example=$module_default
8853     _apmod_extra_msg=" ($module_selection)"
8854   elif test "$enable_example" = "most"; then
8855     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8856       enable_example=$module_default
8857       _apmod_extra_msg=" ($module_selection)"
8858     elif test "$enable_example" != "yes"; then
8859       enable_example=no
8860     fi
8861   elif test "$enable_example" = "maybe-all"; then
8862     if test "$module_selection" = "all"; then
8863       enable_example=$module_default
8864       _apmod_extra_msg=" (all)"
8865     else
8866       enable_example=no
8867     fi
8868   fi
8869   if test "$enable_example" != "no"; then
8870             :
8871   fi
8872   { $as_echo "$as_me:$LINENO: result: $enable_example$_apmod_extra_msg" >&5
8873 $as_echo "$enable_example$_apmod_extra_msg" >&6; }
8874   if test "$enable_example" != "no"; then
8875     case "$enable_example" in
8876     shared*)
8877       enable_example=`echo $ac_n $enable_example$ac_c|sed 's/shared,*//'`
8878       sharedobjs=yes
8879       shared=yes
8880       DSO_MODULES="$DSO_MODULES example"
8881       ;;
8882     *)
8883       MODLIST="$MODLIST example"
8884       if test "example" = "so"; then
8885           sharedobjs=yes
8886       fi
8887       shared="";;
8888     esac
8889
8890
8891   if test -z ""; then
8892     objects="mod_example.lo"
8893   else
8894     objects=""
8895   fi
8896
8897   if test -z "$module_standalone"; then
8898     if test -z "$shared"; then
8899       libname="mod_example.la"
8900       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8901       modpath_static="$modpath_static $libname"
8902       cat >>$modpath_current/modules.mk<<EOF
8903 $libname: $objects
8904         \$(MOD_LINK) $objects \$(MOD_EXAMPLE_LDADD)
8905 EOF
8906     else
8907       apache_need_shared=yes
8908       libname="mod_example.la"
8909       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8910       modpath_shared="$modpath_shared $libname"
8911       cat >>$modpath_current/modules.mk<<EOF
8912 $libname: $shobjects
8913         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_LDADD)
8914 EOF
8915     fi
8916   fi
8917
8918
8919   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_LDADD"
8920
8921
8922
8923   fi
8924
8925
8926   { $as_echo "$as_me:$LINENO: checking whether to enable mod_case_filter" >&5
8927 $as_echo_n "checking whether to enable mod_case_filter... " >&6; }
8928     # Check whether --enable-case-filter was given.
8929 if test "${enable_case_filter+set}" = set; then
8930   enableval=$enable_case_filter;
8931 else
8932   enable_case_filter=no
8933 fi
8934
8935     _apmod_extra_msg=""
8936       if test "$module_selection" = "most" -a "$enable_case_filter" = "most"; then
8937     _apmod_error_fatal="no"
8938   else
8939     _apmod_error_fatal="yes"
8940   fi
8941   if test "$enable_case_filter" = "static"; then
8942     enable_case_filter=yes
8943   elif test "$enable_case_filter" = "yes"; then
8944     enable_case_filter=$module_default
8945     _apmod_extra_msg=" ($module_selection)"
8946   elif test "$enable_case_filter" = "most"; then
8947     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8948       enable_case_filter=$module_default
8949       _apmod_extra_msg=" ($module_selection)"
8950     elif test "$enable_case_filter" != "yes"; then
8951       enable_case_filter=no
8952     fi
8953   elif test "$enable_case_filter" = "maybe-all"; then
8954     if test "$module_selection" = "all"; then
8955       enable_case_filter=$module_default
8956       _apmod_extra_msg=" (all)"
8957     else
8958       enable_case_filter=no
8959     fi
8960   fi
8961   if test "$enable_case_filter" != "no"; then
8962             :
8963   fi
8964   { $as_echo "$as_me:$LINENO: result: $enable_case_filter$_apmod_extra_msg" >&5
8965 $as_echo "$enable_case_filter$_apmod_extra_msg" >&6; }
8966   if test "$enable_case_filter" != "no"; then
8967     case "$enable_case_filter" in
8968     shared*)
8969       enable_case_filter=`echo $ac_n $enable_case_filter$ac_c|sed 's/shared,*//'`
8970       sharedobjs=yes
8971       shared=yes
8972       DSO_MODULES="$DSO_MODULES case_filter"
8973       ;;
8974     *)
8975       MODLIST="$MODLIST case_filter"
8976       if test "case_filter" = "so"; then
8977           sharedobjs=yes
8978       fi
8979       shared="";;
8980     esac
8981
8982
8983   if test -z ""; then
8984     objects="mod_case_filter.lo"
8985   else
8986     objects=""
8987   fi
8988
8989   if test -z "$module_standalone"; then
8990     if test -z "$shared"; then
8991       libname="mod_case_filter.la"
8992       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8993       modpath_static="$modpath_static $libname"
8994       cat >>$modpath_current/modules.mk<<EOF
8995 $libname: $objects
8996         \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
8997 EOF
8998     else
8999       apache_need_shared=yes
9000       libname="mod_case_filter.la"
9001       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9002       modpath_shared="$modpath_shared $libname"
9003       cat >>$modpath_current/modules.mk<<EOF
9004 $libname: $shobjects
9005         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_LDADD)
9006 EOF
9007     fi
9008   fi
9009
9010
9011   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"
9012
9013
9014
9015   fi
9016
9017
9018   { $as_echo "$as_me:$LINENO: checking whether to enable mod_case_filter_in" >&5
9019 $as_echo_n "checking whether to enable mod_case_filter_in... " >&6; }
9020     # Check whether --enable-case-filter-in was given.
9021 if test "${enable_case_filter_in+set}" = set; then
9022   enableval=$enable_case_filter_in;
9023 else
9024   enable_case_filter_in=no
9025 fi
9026
9027     _apmod_extra_msg=""
9028       if test "$module_selection" = "most" -a "$enable_case_filter_in" = "most"; then
9029     _apmod_error_fatal="no"
9030   else
9031     _apmod_error_fatal="yes"
9032   fi
9033   if test "$enable_case_filter_in" = "static"; then
9034     enable_case_filter_in=yes
9035   elif test "$enable_case_filter_in" = "yes"; then
9036     enable_case_filter_in=$module_default
9037     _apmod_extra_msg=" ($module_selection)"
9038   elif test "$enable_case_filter_in" = "most"; then
9039     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9040       enable_case_filter_in=$module_default
9041       _apmod_extra_msg=" ($module_selection)"
9042     elif test "$enable_case_filter_in" != "yes"; then
9043       enable_case_filter_in=no
9044     fi
9045   elif test "$enable_case_filter_in" = "maybe-all"; then
9046     if test "$module_selection" = "all"; then
9047       enable_case_filter_in=$module_default
9048       _apmod_extra_msg=" (all)"
9049     else
9050       enable_case_filter_in=no
9051     fi
9052   fi
9053   if test "$enable_case_filter_in" != "no"; then
9054             :
9055   fi
9056   { $as_echo "$as_me:$LINENO: result: $enable_case_filter_in$_apmod_extra_msg" >&5
9057 $as_echo "$enable_case_filter_in$_apmod_extra_msg" >&6; }
9058   if test "$enable_case_filter_in" != "no"; then
9059     case "$enable_case_filter_in" in
9060     shared*)
9061       enable_case_filter_in=`echo $ac_n $enable_case_filter_in$ac_c|sed 's/shared,*//'`
9062       sharedobjs=yes
9063       shared=yes
9064       DSO_MODULES="$DSO_MODULES case_filter_in"
9065       ;;
9066     *)
9067       MODLIST="$MODLIST case_filter_in"
9068       if test "case_filter_in" = "so"; then
9069           sharedobjs=yes
9070       fi
9071       shared="";;
9072     esac
9073
9074
9075   if test -z ""; then
9076     objects="mod_case_filter_in.lo"
9077   else
9078     objects=""
9079   fi
9080
9081   if test -z "$module_standalone"; then
9082     if test -z "$shared"; then
9083       libname="mod_case_filter_in.la"
9084       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9085       modpath_static="$modpath_static $libname"
9086       cat >>$modpath_current/modules.mk<<EOF
9087 $libname: $objects
9088         \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
9089 EOF
9090     else
9091       apache_need_shared=yes
9092       libname="mod_case_filter_in.la"
9093       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9094       modpath_shared="$modpath_shared $libname"
9095       cat >>$modpath_current/modules.mk<<EOF
9096 $libname: $shobjects
9097         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_IN_LDADD)
9098 EOF
9099     fi
9100   fi
9101
9102
9103   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"
9104
9105
9106
9107   fi
9108
9109
9110   { $as_echo "$as_me:$LINENO: checking whether to enable mod_dumpio" >&5
9111 $as_echo_n "checking whether to enable mod_dumpio... " >&6; }
9112     # Check whether --enable-dumpio was given.
9113 if test "${enable_dumpio+set}" = set; then
9114   enableval=$enable_dumpio;
9115 else
9116   enable_dumpio=no
9117 fi
9118
9119     _apmod_extra_msg=""
9120       if test "$module_selection" = "most" -a "$enable_dumpio" = "most"; then
9121     _apmod_error_fatal="no"
9122   else
9123     _apmod_error_fatal="yes"
9124   fi
9125   if test "$enable_dumpio" = "static"; then
9126     enable_dumpio=yes
9127   elif test "$enable_dumpio" = "yes"; then
9128     enable_dumpio=$module_default
9129     _apmod_extra_msg=" ($module_selection)"
9130   elif test "$enable_dumpio" = "most"; then
9131     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9132       enable_dumpio=$module_default
9133       _apmod_extra_msg=" ($module_selection)"
9134     elif test "$enable_dumpio" != "yes"; then
9135       enable_dumpio=no
9136     fi
9137   elif test "$enable_dumpio" = "maybe-all"; then
9138     if test "$module_selection" = "all"; then
9139       enable_dumpio=$module_default
9140       _apmod_extra_msg=" (all)"
9141     else
9142       enable_dumpio=no
9143     fi
9144   fi
9145   if test "$enable_dumpio" != "no"; then
9146             :
9147   fi
9148   { $as_echo "$as_me:$LINENO: result: $enable_dumpio$_apmod_extra_msg" >&5
9149 $as_echo "$enable_dumpio$_apmod_extra_msg" >&6; }
9150   if test "$enable_dumpio" != "no"; then
9151     case "$enable_dumpio" in
9152     shared*)
9153       enable_dumpio=`echo $ac_n $enable_dumpio$ac_c|sed 's/shared,*//'`
9154       sharedobjs=yes
9155       shared=yes
9156       DSO_MODULES="$DSO_MODULES dumpio"
9157       ;;
9158     *)
9159       MODLIST="$MODLIST dumpio"
9160       if test "dumpio" = "so"; then
9161           sharedobjs=yes
9162       fi
9163       shared="";;
9164     esac
9165
9166
9167   if test -z ""; then
9168     objects="mod_dumpio.lo"
9169   else
9170     objects=""
9171   fi
9172
9173   if test -z "$module_standalone"; then
9174     if test -z "$shared"; then
9175       libname="mod_dumpio.la"
9176       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9177       modpath_static="$modpath_static $libname"
9178       cat >>$modpath_current/modules.mk<<EOF
9179 $libname: $objects
9180         \$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
9181 EOF
9182     else
9183       apache_need_shared=yes
9184       libname="mod_dumpio.la"
9185       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9186       modpath_shared="$modpath_shared $libname"
9187       cat >>$modpath_current/modules.mk<<EOF
9188 $libname: $shobjects
9189         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DUMPIO_LDADD)
9190 EOF
9191     fi
9192   fi
9193
9194
9195   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"
9196
9197
9198
9199   fi
9200
9201
9202 ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
9203
9204   { $as_echo "$as_me:$LINENO: checking whether to enable mod_ldap" >&5
9205 $as_echo_n "checking whether to enable mod_ldap... " >&6; }
9206     # Check whether --enable-ldap was given.
9207 if test "${enable_ldap+set}" = set; then
9208   enableval=$enable_ldap;
9209 else
9210   enable_ldap=no
9211 fi
9212
9213     _apmod_extra_msg=""
9214       if test "$module_selection" = "most" -a "$enable_ldap" = "most"; then
9215     _apmod_error_fatal="no"
9216   else
9217     _apmod_error_fatal="yes"
9218   fi
9219   if test "$enable_ldap" = "static"; then
9220     enable_ldap=yes
9221   elif test "$enable_ldap" = "yes"; then
9222     enable_ldap=$module_default
9223     _apmod_extra_msg=" ($module_selection)"
9224   elif test "$enable_ldap" = "most"; then
9225     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9226       enable_ldap=$module_default
9227       _apmod_extra_msg=" ($module_selection)"
9228     elif test "$enable_ldap" != "yes"; then
9229       enable_ldap=no
9230     fi
9231   elif test "$enable_ldap" = "maybe-all"; then
9232     if test "$module_selection" = "all"; then
9233       enable_ldap=$module_default
9234       _apmod_extra_msg=" (all)"
9235     else
9236       enable_ldap=no
9237     fi
9238   fi
9239   if test "$enable_ldap" != "no"; then
9240             :
9241   fi
9242   { $as_echo "$as_me:$LINENO: result: $enable_ldap$_apmod_extra_msg" >&5
9243 $as_echo "$enable_ldap$_apmod_extra_msg" >&6; }
9244   if test "$enable_ldap" != "no"; then
9245     case "$enable_ldap" in
9246     shared*)
9247       enable_ldap=`echo $ac_n $enable_ldap$ac_c|sed 's/shared,*//'`
9248       sharedobjs=yes
9249       shared=yes
9250       DSO_MODULES="$DSO_MODULES ldap"
9251       ;;
9252     *)
9253       MODLIST="$MODLIST ldap"
9254       if test "ldap" = "so"; then
9255           sharedobjs=yes
9256       fi
9257       shared="";;
9258     esac
9259
9260
9261   if test -z "$ldap_objects"; then
9262     objects="mod_ldap.lo"
9263   else
9264     objects="$ldap_objects"
9265   fi
9266
9267   if test -z "$module_standalone"; then
9268     if test -z "$shared"; then
9269       libname="mod_ldap.la"
9270       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9271       modpath_static="$modpath_static $libname"
9272       cat >>$modpath_current/modules.mk<<EOF
9273 $libname: $objects
9274         \$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
9275 EOF
9276     else
9277       apache_need_shared=yes
9278       libname="mod_ldap.la"
9279       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9280       modpath_shared="$modpath_shared $libname"
9281       cat >>$modpath_current/modules.mk<<EOF
9282 $libname: $shobjects
9283         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LDAP_LDADD)
9284 EOF
9285     fi
9286   fi
9287
9288
9289   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"
9290
9291
9292
9293   fi
9294
9295
9296 auth_ldap_objects="mod_auth_ldap.lo"
9297
9298   { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_ldap" >&5
9299 $as_echo_n "checking whether to enable mod_auth_ldap... " >&6; }
9300     # Check whether --enable-auth-ldap was given.
9301 if test "${enable_auth_ldap+set}" = set; then
9302   enableval=$enable_auth_ldap;
9303 else
9304   enable_auth_ldap=no
9305 fi
9306
9307     _apmod_extra_msg=""
9308       if test "$module_selection" = "most" -a "$enable_auth_ldap" = "most"; then
9309     _apmod_error_fatal="no"
9310   else
9311     _apmod_error_fatal="yes"
9312   fi
9313   if test "$enable_auth_ldap" = "static"; then
9314     enable_auth_ldap=yes
9315   elif test "$enable_auth_ldap" = "yes"; then
9316     enable_auth_ldap=$module_default
9317     _apmod_extra_msg=" ($module_selection)"
9318   elif test "$enable_auth_ldap" = "most"; then
9319     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9320       enable_auth_ldap=$module_default
9321       _apmod_extra_msg=" ($module_selection)"
9322     elif test "$enable_auth_ldap" != "yes"; then
9323       enable_auth_ldap=no
9324     fi
9325   elif test "$enable_auth_ldap" = "maybe-all"; then
9326     if test "$module_selection" = "all"; then
9327       enable_auth_ldap=$module_default
9328       _apmod_extra_msg=" (all)"
9329     else
9330       enable_auth_ldap=no
9331     fi
9332   fi
9333   if test "$enable_auth_ldap" != "no"; then
9334             :
9335   fi
9336   { $as_echo "$as_me:$LINENO: result: $enable_auth_ldap$_apmod_extra_msg" >&5
9337 $as_echo "$enable_auth_ldap$_apmod_extra_msg" >&6; }
9338   if test "$enable_auth_ldap" != "no"; then
9339     case "$enable_auth_ldap" in
9340     shared*)
9341       enable_auth_ldap=`echo $ac_n $enable_auth_ldap$ac_c|sed 's/shared,*//'`
9342       sharedobjs=yes
9343       shared=yes
9344       DSO_MODULES="$DSO_MODULES auth_ldap"
9345       ;;
9346     *)
9347       MODLIST="$MODLIST auth_ldap"
9348       if test "auth_ldap" = "so"; then
9349           sharedobjs=yes
9350       fi
9351       shared="";;
9352     esac
9353
9354
9355   if test -z "$auth_ldap_objects"; then
9356     objects="mod_auth_ldap.lo"
9357   else
9358     objects="$auth_ldap_objects"
9359   fi
9360
9361   if test -z "$module_standalone"; then
9362     if test -z "$shared"; then
9363       libname="mod_auth_ldap.la"
9364       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9365       modpath_static="$modpath_static $libname"
9366       cat >>$modpath_current/modules.mk<<EOF
9367 $libname: $objects
9368         \$(MOD_LINK) $objects \$(MOD_AUTH_LDAP_LDADD)
9369 EOF
9370     else
9371       apache_need_shared=yes
9372       libname="mod_auth_ldap.la"
9373       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9374       modpath_shared="$modpath_shared $libname"
9375       cat >>$modpath_current/modules.mk<<EOF
9376 $libname: $shobjects
9377         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_LDAP_LDADD)
9378 EOF
9379     fi
9380   fi
9381
9382
9383   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_LDAP_LDADD"
9384
9385
9386
9387   fi
9388
9389
9390
9391   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
9392   echo "static = $modpath_static" >> $modpath_current/modules.mk
9393   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
9394   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
9395     MODULE_DIRS="$MODULE_DIRS $current_dir"
9396   else
9397     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
9398   fi
9399
9400   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
9401
9402
9403
9404
9405
9406
9407   current_dir=filters
9408   modpath_current=modules/filters
9409   modpath_static=
9410   modpath_shared=
9411   test -d filters || $srcdir/build/mkdir.sh $modpath_current
9412   > $modpath_current/modules.mk
9413
9414
9415
9416   { $as_echo "$as_me:$LINENO: checking whether to enable mod_ext_filter" >&5
9417 $as_echo_n "checking whether to enable mod_ext_filter... " >&6; }
9418     # Check whether --enable-ext-filter was given.
9419 if test "${enable_ext_filter+set}" = set; then
9420   enableval=$enable_ext_filter;
9421 else
9422   enable_ext_filter=most
9423 fi
9424
9425     _apmod_extra_msg=""
9426       if test "$module_selection" = "most" -a "$enable_ext_filter" = "most"; then
9427     _apmod_error_fatal="no"
9428   else
9429     _apmod_error_fatal="yes"
9430   fi
9431   if test "$enable_ext_filter" = "static"; then
9432     enable_ext_filter=yes
9433   elif test "$enable_ext_filter" = "yes"; then
9434     enable_ext_filter=$module_default
9435     _apmod_extra_msg=" ($module_selection)"
9436   elif test "$enable_ext_filter" = "most"; then
9437     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9438       enable_ext_filter=$module_default
9439       _apmod_extra_msg=" ($module_selection)"
9440     elif test "$enable_ext_filter" != "yes"; then
9441       enable_ext_filter=no
9442     fi
9443   elif test "$enable_ext_filter" = "maybe-all"; then
9444     if test "$module_selection" = "all"; then
9445       enable_ext_filter=$module_default
9446       _apmod_extra_msg=" (all)"
9447     else
9448       enable_ext_filter=no
9449     fi
9450   fi
9451   if test "$enable_ext_filter" != "no"; then
9452             :
9453   fi
9454   { $as_echo "$as_me:$LINENO: result: $enable_ext_filter$_apmod_extra_msg" >&5
9455 $as_echo "$enable_ext_filter$_apmod_extra_msg" >&6; }
9456   if test "$enable_ext_filter" != "no"; then
9457     case "$enable_ext_filter" in
9458     shared*)
9459       enable_ext_filter=`echo $ac_n $enable_ext_filter$ac_c|sed 's/shared,*//'`
9460       sharedobjs=yes
9461       shared=yes
9462       DSO_MODULES="$DSO_MODULES ext_filter"
9463       ;;
9464     *)
9465       MODLIST="$MODLIST ext_filter"
9466       if test "ext_filter" = "so"; then
9467           sharedobjs=yes
9468       fi
9469       shared="";;
9470     esac
9471
9472
9473   if test -z ""; then
9474     objects="mod_ext_filter.lo"
9475   else
9476     objects=""
9477   fi
9478
9479   if test -z "$module_standalone"; then
9480     if test -z "$shared"; then
9481       libname="mod_ext_filter.la"
9482       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9483       modpath_static="$modpath_static $libname"
9484       cat >>$modpath_current/modules.mk<<EOF
9485 $libname: $objects
9486         \$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
9487 EOF
9488     else
9489       apache_need_shared=yes
9490       libname="mod_ext_filter.la"
9491       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9492       modpath_shared="$modpath_shared $libname"
9493       cat >>$modpath_current/modules.mk<<EOF
9494 $libname: $shobjects
9495         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXT_FILTER_LDADD)
9496 EOF
9497     fi
9498   fi
9499
9500
9501   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"
9502
9503
9504
9505   fi
9506
9507
9508   { $as_echo "$as_me:$LINENO: checking whether to enable mod_include" >&5
9509 $as_echo_n "checking whether to enable mod_include... " >&6; }
9510     # Check whether --enable-include was given.
9511 if test "${enable_include+set}" = set; then
9512   enableval=$enable_include;
9513 else
9514   enable_include=yes
9515 fi
9516
9517     _apmod_extra_msg=""
9518       if test "$module_selection" = "most" -a "$enable_include" = "most"; then
9519     _apmod_error_fatal="no"
9520   else
9521     _apmod_error_fatal="yes"
9522   fi
9523   if test "$enable_include" = "static"; then
9524     enable_include=yes
9525   elif test "$enable_include" = "yes"; then
9526     enable_include=$module_default
9527     _apmod_extra_msg=" ($module_selection)"
9528   elif test "$enable_include" = "most"; then
9529     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9530       enable_include=$module_default
9531       _apmod_extra_msg=" ($module_selection)"
9532     elif test "$enable_include" != "yes"; then
9533       enable_include=no
9534     fi
9535   elif test "$enable_include" = "maybe-all"; then
9536     if test "$module_selection" = "all"; then
9537       enable_include=$module_default
9538       _apmod_extra_msg=" (all)"
9539     else
9540       enable_include=no
9541     fi
9542   fi
9543   if test "$enable_include" != "no"; then
9544             :
9545   fi
9546   { $as_echo "$as_me:$LINENO: result: $enable_include$_apmod_extra_msg" >&5
9547 $as_echo "$enable_include$_apmod_extra_msg" >&6; }
9548   if test "$enable_include" != "no"; then
9549     case "$enable_include" in
9550     shared*)
9551       enable_include=`echo $ac_n $enable_include$ac_c|sed 's/shared,*//'`
9552       sharedobjs=yes
9553       shared=yes
9554       DSO_MODULES="$DSO_MODULES include"
9555       ;;
9556     *)
9557       MODLIST="$MODLIST include"
9558       if test "include" = "so"; then
9559           sharedobjs=yes
9560       fi
9561       shared="";;
9562     esac
9563
9564
9565   if test -z ""; then
9566     objects="mod_include.lo"
9567   else
9568     objects=""
9569   fi
9570
9571   if test -z "$module_standalone"; then
9572     if test -z "$shared"; then
9573       libname="mod_include.la"
9574       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9575       modpath_static="$modpath_static $libname"
9576       cat >>$modpath_current/modules.mk<<EOF
9577 $libname: $objects
9578         \$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
9579 EOF
9580     else
9581       apache_need_shared=yes
9582       libname="mod_include.la"
9583       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9584       modpath_shared="$modpath_shared $libname"
9585       cat >>$modpath_current/modules.mk<<EOF
9586 $libname: $shobjects
9587         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INCLUDE_LDADD)
9588 EOF
9589     fi
9590   fi
9591
9592
9593   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"
9594
9595
9596
9597   fi
9598
9599
9600
9601   if test "x$LT_LDFLAGS" = "x"; then
9602     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
9603     LT_LDFLAGS="-export-dynamic"
9604   else
9605     apr_addto_bugger="-export-dynamic"
9606     for i in $apr_addto_bugger; do
9607       apr_addto_duplicate="0"
9608       for j in $LT_LDFLAGS; do
9609         if test "x$i" = "x$j"; then
9610           apr_addto_duplicate="1"
9611           break
9612         fi
9613       done
9614       if test $apr_addto_duplicate = "0"; then
9615         echo "  adding \"$i\" to LT_LDFLAGS"
9616         LT_LDFLAGS="$LT_LDFLAGS $i"
9617       fi
9618     done
9619   fi
9620
9621
9622
9623   { $as_echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
9624 $as_echo_n "checking whether to enable mod_deflate... " >&6; }
9625     # Check whether --enable-deflate was given.
9626 if test "${enable_deflate+set}" = set; then
9627   enableval=$enable_deflate;
9628 else
9629   enable_deflate=no
9630 fi
9631
9632     _apmod_extra_msg=""
9633       if test "$module_selection" = "most" -a "$enable_deflate" = "most"; then
9634     _apmod_error_fatal="no"
9635   else
9636     _apmod_error_fatal="yes"
9637   fi
9638   if test "$enable_deflate" = "static"; then
9639     enable_deflate=yes
9640   elif test "$enable_deflate" = "yes"; then
9641     enable_deflate=$module_default
9642     _apmod_extra_msg=" ($module_selection)"
9643   elif test "$enable_deflate" = "most"; then
9644     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9645       enable_deflate=$module_default
9646       _apmod_extra_msg=" ($module_selection)"
9647     elif test "$enable_deflate" != "yes"; then
9648       enable_deflate=no
9649     fi
9650   elif test "$enable_deflate" = "maybe-all"; then
9651     if test "$module_selection" = "all"; then
9652       enable_deflate=$module_default
9653       _apmod_extra_msg=" (all)"
9654     else
9655       enable_deflate=no
9656     fi
9657   fi
9658   if test "$enable_deflate" != "no"; then
9659             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
9660 $as_echo "checking dependencies" >&6; }
9661
9662
9663 # Check whether --with-z was given.
9664 if test "${with_z+set}" = set; then
9665   withval=$with_z;
9666     if test "x$withval" != "xyes" && test "x$withval" != "x"; then
9667       ap_zlib_base="$withval"
9668     fi
9669
9670 fi
9671
9672   if test "x$ap_zlib_base" = "x"; then
9673     { $as_echo "$as_me:$LINENO: checking for zlib location" >&5
9674 $as_echo_n "checking for zlib location... " >&6; }
9675     if test "${ap_cv_zlib+set}" = set; then
9676   $as_echo_n "(cached) " >&6
9677 else
9678
9679       for dir in /usr/local /usr ; do
9680         if test -d $dir && test -f $dir/include/zlib.h; then
9681           ap_cv_zlib=$dir
9682           break
9683         fi
9684       done
9685
9686 fi
9687
9688     ap_zlib_base=$ap_cv_zlib
9689     if test "x$ap_zlib_base" = "x"; then
9690       enable_deflate=no
9691       { $as_echo "$as_me:$LINENO: result: not found" >&5
9692 $as_echo "not found" >&6; }
9693     else
9694       { $as_echo "$as_me:$LINENO: result: $ap_zlib_base" >&5
9695 $as_echo "$ap_zlib_base" >&6; }
9696     fi
9697   fi
9698   if test "$enable_deflate" != "no"; then
9699     ap_save_includes=$INCLUDE
9700     ap_save_ldflags=$LDFLAGS
9701     ap_save_libs=$LIBS
9702     ap_save_cppflags=$CPPFLAGS
9703     if test "$ap_zlib_base" != "/usr"; then
9704
9705   if test "x$INCLUDES" = "x"; then
9706     echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
9707     INCLUDES="-I${ap_zlib_base}/include"
9708   else
9709     apr_addto_bugger="-I${ap_zlib_base}/include"
9710     for i in $apr_addto_bugger; do
9711       apr_addto_duplicate="0"
9712       for j in $INCLUDES; do
9713         if test "x$i" = "x$j"; then
9714           apr_addto_duplicate="1"
9715           break
9716         fi
9717       done
9718       if test $apr_addto_duplicate = "0"; then
9719         echo "  adding \"$i\" to INCLUDES"
9720         INCLUDES="$INCLUDES $i"
9721       fi
9722     done
9723   fi
9724
9725             CPPFLAGS="$CPPFLAGS $INCLUDES"
9726
9727   if test "x$LDFLAGS" = "x"; then
9728     echo "  setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
9729     LDFLAGS="-L${ap_zlib_base}/lib"
9730   else
9731     apr_addto_bugger="-L${ap_zlib_base}/lib"
9732     for i in $apr_addto_bugger; do
9733       apr_addto_duplicate="0"
9734       for j in $LDFLAGS; do
9735         if test "x$i" = "x$j"; then
9736           apr_addto_duplicate="1"
9737           break
9738         fi
9739       done
9740       if test $apr_addto_duplicate = "0"; then
9741         echo "  adding \"$i\" to LDFLAGS"
9742         LDFLAGS="$LDFLAGS $i"
9743       fi
9744     done
9745   fi
9746
9747       if test "x$ap_platform_runtime_link_flag" != "x"; then
9748
9749   if test "x$LDFLAGS" = "x"; then
9750     echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
9751     LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
9752   else
9753     apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
9754     for i in $apr_addto_bugger; do
9755       apr_addto_duplicate="0"
9756       for j in $LDFLAGS; do
9757         if test "x$i" = "x$j"; then
9758           apr_addto_duplicate="1"
9759           break
9760         fi
9761       done
9762       if test $apr_addto_duplicate = "0"; then
9763         echo "  adding \"$i\" to LDFLAGS"
9764         LDFLAGS="$LDFLAGS $i"
9765       fi
9766     done
9767   fi
9768
9769       fi
9770     fi
9771
9772   if test "x$LIBS" = "x"; then
9773     echo "  setting LIBS to \"-lz\""
9774     LIBS="-lz"
9775   else
9776     apr_addto_bugger="-lz"
9777     for i in $apr_addto_bugger; do
9778       apr_addto_duplicate="0"
9779       for j in $LIBS; do
9780         if test "x$i" = "x$j"; then
9781           apr_addto_duplicate="1"
9782           break
9783         fi
9784       done
9785       if test $apr_addto_duplicate = "0"; then
9786         echo "  adding \"$i\" to LIBS"
9787         LIBS="$LIBS $i"
9788       fi
9789     done
9790   fi
9791
9792     { $as_echo "$as_me:$LINENO: checking for zlib library" >&5
9793 $as_echo_n "checking for zlib library... " >&6; }
9794     cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 #include <zlib.h>
9801 int
9802 main ()
9803 {
9804 int i = Z_OK;
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9816 $as_echo "$ac_try_echo") >&5
9817   (eval "$ac_link") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } && {
9824          test -z "$ac_c_werror_flag" ||
9825          test ! -s conftest.err
9826        } && test -s conftest$ac_exeext && {
9827          test "$cross_compiling" = yes ||
9828          $as_test_x conftest$ac_exeext
9829        }; then
9830   { $as_echo "$as_me:$LINENO: result: found" >&5
9831 $as_echo "found" >&6; }
9832
9833 for ac_header in zutil.h
9834 do
9835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 $as_echo_n "checking for $ac_header... " >&6; }
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840   $as_echo_n "(cached) " >&6
9841 fi
9842 ac_res=`eval 'as_val=${'$as_ac_Header'}
9843                  $as_echo "$as_val"'`
9844                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9845 $as_echo "$ac_res" >&6; }
9846 else
9847   # Is the header compilable?
9848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849 $as_echo_n "checking $ac_header usability... " >&6; }
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 $ac_includes_default
9857 #include <$ac_header>
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (ac_try="$ac_compile"
9861 case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866 $as_echo "$ac_try_echo") >&5
9867   (eval "$ac_compile") 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } && {
9874          test -z "$ac_c_werror_flag" ||
9875          test ! -s conftest.err
9876        } && test -s conftest.$ac_objext; then
9877   ac_header_compiler=yes
9878 else
9879   $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882         ac_header_compiler=no
9883 fi
9884
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9887 $as_echo "$ac_header_compiler" >&6; }
9888
9889 # Is the header present?
9890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9891 $as_echo_n "checking $ac_header presence... " >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 #include <$ac_header>
9899 _ACEOF
9900 if { (ac_try="$ac_cpp conftest.$ac_ext"
9901 case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } >/dev/null && {
9914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9915          test ! -s conftest.err
9916        }; then
9917   ac_header_preproc=yes
9918 else
9919   $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922   ac_header_preproc=no
9923 fi
9924
9925 rm -f conftest.err conftest.$ac_ext
9926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927 $as_echo "$ac_header_preproc" >&6; }
9928
9929 # So?  What about this header?
9930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931   yes:no: )
9932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9936     ac_header_preproc=yes
9937     ;;
9938   no:yes:* )
9939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9942 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9946 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9951
9952     ;;
9953 esac
9954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 $as_echo_n "checking for $ac_header... " >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957   $as_echo_n "(cached) " >&6
9958 else
9959   eval "$as_ac_Header=\$ac_header_preproc"
9960 fi
9961 ac_res=`eval 'as_val=${'$as_ac_Header'}
9962                  $as_echo "$as_val"'`
9963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9964 $as_echo "$ac_res" >&6; }
9965
9966 fi
9967 as_val=`eval 'as_val=${'$as_ac_Header'}
9968                  $as_echo "$as_val"'`
9969    if test "x$as_val" = x""yes; then
9970   cat >>confdefs.h <<_ACEOF
9971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9972 _ACEOF
9973
9974 fi
9975
9976 done
9977
9978 else
9979   $as_echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982         { $as_echo "$as_me:$LINENO: result: not found" >&5
9983 $as_echo "not found" >&6; }
9984      enable_deflate=no
9985      INCLUDES=$ap_save_includes
9986      LDFLAGS=$ap_save_ldflags
9987      LIBS=$ap_save_libs
9988 fi
9989
9990 rm -rf conftest.dSYM
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992       conftest$ac_exeext conftest.$ac_ext
9993     CPPFLAGS=$ap_save_cppflags
9994   fi
9995
9996                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
9997 $as_echo_n "checking whether to enable mod_deflate... " >&6; }
9998                     if test "$enable_deflate" = "no"; then
9999                       if test "$_apmod_error_fatal" = "no"; then
10000                         _apmod_extra_msg=" (disabled)"
10001                       else
10002                         { { $as_echo "$as_me:$LINENO: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&5
10003 $as_echo "$as_me: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&2;}
10004    { (exit 1); exit 1; }; }
10005                       fi
10006                     fi
10007   fi
10008   { $as_echo "$as_me:$LINENO: result: $enable_deflate$_apmod_extra_msg" >&5
10009 $as_echo "$enable_deflate$_apmod_extra_msg" >&6; }
10010   if test "$enable_deflate" != "no"; then
10011     case "$enable_deflate" in
10012     shared*)
10013       enable_deflate=`echo $ac_n $enable_deflate$ac_c|sed 's/shared,*//'`
10014       sharedobjs=yes
10015       shared=yes
10016       DSO_MODULES="$DSO_MODULES deflate"
10017       ;;
10018     *)
10019       MODLIST="$MODLIST deflate"
10020       if test "deflate" = "so"; then
10021           sharedobjs=yes
10022       fi
10023       shared="";;
10024     esac
10025
10026
10027   if test -z ""; then
10028     objects="mod_deflate.lo"
10029   else
10030     objects=""
10031   fi
10032
10033   if test -z "$module_standalone"; then
10034     if test -z "$shared"; then
10035       libname="mod_deflate.la"
10036       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10037       modpath_static="$modpath_static $libname"
10038       cat >>$modpath_current/modules.mk<<EOF
10039 $libname: $objects
10040         \$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
10041 EOF
10042     else
10043       apache_need_shared=yes
10044       libname="mod_deflate.la"
10045       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10046       modpath_shared="$modpath_shared $libname"
10047       cat >>$modpath_current/modules.mk<<EOF
10048 $libname: $shobjects
10049         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DEFLATE_LDADD)
10050 EOF
10051     fi
10052   fi
10053
10054
10055   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"
10056
10057
10058
10059   fi
10060
10061
10062
10063   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
10064   echo "static = $modpath_static" >> $modpath_current/modules.mk
10065   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
10066   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
10067     MODULE_DIRS="$MODULE_DIRS $current_dir"
10068   else
10069     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
10070   fi
10071
10072   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
10073
10074
10075
10076
10077
10078
10079   current_dir=loggers
10080   modpath_current=modules/loggers
10081   modpath_static=
10082   modpath_shared=
10083   test -d loggers || $srcdir/build/mkdir.sh $modpath_current
10084   > $modpath_current/modules.mk
10085
10086
10087
10088   { $as_echo "$as_me:$LINENO: checking whether to enable mod_log_config" >&5
10089 $as_echo_n "checking whether to enable mod_log_config... " >&6; }
10090     # Check whether --enable-log-config was given.
10091 if test "${enable_log_config+set}" = set; then
10092   enableval=$enable_log_config;
10093 else
10094   enable_log_config=yes
10095 fi
10096
10097     _apmod_extra_msg=""
10098       if test "$module_selection" = "most" -a "$enable_log_config" = "most"; then
10099     _apmod_error_fatal="no"
10100   else
10101     _apmod_error_fatal="yes"
10102   fi
10103   if test "$enable_log_config" = "static"; then
10104     enable_log_config=yes
10105   elif test "$enable_log_config" = "yes"; then
10106     enable_log_config=$module_default
10107     _apmod_extra_msg=" ($module_selection)"
10108   elif test "$enable_log_config" = "most"; then
10109     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10110       enable_log_config=$module_default
10111       _apmod_extra_msg=" ($module_selection)"
10112     elif test "$enable_log_config" != "yes"; then
10113       enable_log_config=no
10114     fi
10115   elif test "$enable_log_config" = "maybe-all"; then
10116     if test "$module_selection" = "all"; then
10117       enable_log_config=$module_default
10118       _apmod_extra_msg=" (all)"
10119     else
10120       enable_log_config=no
10121     fi
10122   fi
10123   if test "$enable_log_config" != "no"; then
10124             :
10125   fi
10126   { $as_echo "$as_me:$LINENO: result: $enable_log_config$_apmod_extra_msg" >&5
10127 $as_echo "$enable_log_config$_apmod_extra_msg" >&6; }
10128   if test "$enable_log_config" != "no"; then
10129     case "$enable_log_config" in
10130     shared*)
10131       enable_log_config=`echo $ac_n $enable_log_config$ac_c|sed 's/shared,*//'`
10132       sharedobjs=yes
10133       shared=yes
10134       DSO_MODULES="$DSO_MODULES log_config"
10135       ;;
10136     *)
10137       MODLIST="$MODLIST log_config"
10138       if test "log_config" = "so"; then
10139           sharedobjs=yes
10140       fi
10141       shared="";;
10142     esac
10143
10144
10145   if test -z ""; then
10146     objects="mod_log_config.lo"
10147   else
10148     objects=""
10149   fi
10150
10151   if test -z "$module_standalone"; then
10152     if test -z "$shared"; then
10153       libname="mod_log_config.la"
10154       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10155       modpath_static="$modpath_static $libname"
10156       cat >>$modpath_current/modules.mk<<EOF
10157 $libname: $objects
10158         \$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
10159 EOF
10160     else
10161       apache_need_shared=yes
10162       libname="mod_log_config.la"
10163       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10164       modpath_shared="$modpath_shared $libname"
10165       cat >>$modpath_current/modules.mk<<EOF
10166 $libname: $shobjects
10167         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_CONFIG_LDADD)
10168 EOF
10169     fi
10170   fi
10171
10172
10173   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"
10174
10175
10176
10177   fi
10178
10179
10180
10181   { $as_echo "$as_me:$LINENO: checking whether to enable mod_log_forensic" >&5
10182 $as_echo_n "checking whether to enable mod_log_forensic... " >&6; }
10183     # Check whether --enable-log-forensic was given.
10184 if test "${enable_log_forensic+set}" = set; then
10185   enableval=$enable_log_forensic;
10186 else
10187   enable_log_forensic=maybe-all
10188 fi
10189
10190     _apmod_extra_msg=""
10191       if test "$module_selection" = "most" -a "$enable_log_forensic" = "most"; then
10192     _apmod_error_fatal="no"
10193   else
10194     _apmod_error_fatal="yes"
10195   fi
10196   if test "$enable_log_forensic" = "static"; then
10197     enable_log_forensic=yes
10198   elif test "$enable_log_forensic" = "yes"; then
10199     enable_log_forensic=$module_default
10200     _apmod_extra_msg=" ($module_selection)"
10201   elif test "$enable_log_forensic" = "most"; then
10202     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10203       enable_log_forensic=$module_default
10204       _apmod_extra_msg=" ($module_selection)"
10205     elif test "$enable_log_forensic" != "yes"; then
10206       enable_log_forensic=no
10207     fi
10208   elif test "$enable_log_forensic" = "maybe-all"; then
10209     if test "$module_selection" = "all"; then
10210       enable_log_forensic=$module_default
10211       _apmod_extra_msg=" (all)"
10212     else
10213       enable_log_forensic=no
10214     fi
10215   fi
10216   if test "$enable_log_forensic" != "no"; then
10217             :
10218   fi
10219   { $as_echo "$as_me:$LINENO: result: $enable_log_forensic$_apmod_extra_msg" >&5
10220 $as_echo "$enable_log_forensic$_apmod_extra_msg" >&6; }
10221   if test "$enable_log_forensic" != "no"; then
10222     case "$enable_log_forensic" in
10223     shared*)
10224       enable_log_forensic=`echo $ac_n $enable_log_forensic$ac_c|sed 's/shared,*//'`
10225       sharedobjs=yes
10226       shared=yes
10227       DSO_MODULES="$DSO_MODULES log_forensic"
10228       ;;
10229     *)
10230       MODLIST="$MODLIST log_forensic"
10231       if test "log_forensic" = "so"; then
10232           sharedobjs=yes
10233       fi
10234       shared="";;
10235     esac
10236
10237
10238   if test -z ""; then
10239     objects="mod_log_forensic.lo"
10240   else
10241     objects=""
10242   fi
10243
10244   if test -z "$module_standalone"; then
10245     if test -z "$shared"; then
10246       libname="mod_log_forensic.la"
10247       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10248       modpath_static="$modpath_static $libname"
10249       cat >>$modpath_current/modules.mk<<EOF
10250 $libname: $objects
10251         \$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
10252 EOF
10253     else
10254       apache_need_shared=yes
10255       libname="mod_log_forensic.la"
10256       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10257       modpath_shared="$modpath_shared $libname"
10258       cat >>$modpath_current/modules.mk<<EOF
10259 $libname: $shobjects
10260         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_FORENSIC_LDADD)
10261 EOF
10262     fi
10263   fi
10264
10265
10266   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"
10267
10268
10269
10270   fi
10271
10272
10273 if test "x$enable_log_forensic" != "xno"; then
10274     # mod_log_forensic needs test_char.h
10275
10276   if test "x$INCLUDES" = "x"; then
10277     echo "  setting INCLUDES to \"-I\$(top_builddir)/server\""
10278     INCLUDES="-I\$(top_builddir)/server"
10279   else
10280     apr_addto_bugger="-I\$(top_builddir)/server"
10281     for i in $apr_addto_bugger; do
10282       apr_addto_duplicate="0"
10283       for j in $INCLUDES; do
10284         if test "x$i" = "x$j"; then
10285           apr_addto_duplicate="1"
10286           break
10287         fi
10288       done
10289       if test $apr_addto_duplicate = "0"; then
10290         echo "  adding \"$i\" to INCLUDES"
10291         INCLUDES="$INCLUDES $i"
10292       fi
10293     done
10294   fi
10295
10296 fi
10297
10298
10299   { $as_echo "$as_me:$LINENO: checking whether to enable mod_logio" >&5
10300 $as_echo_n "checking whether to enable mod_logio... " >&6; }
10301     # Check whether --enable-logio was given.
10302 if test "${enable_logio+set}" = set; then
10303   enableval=$enable_logio;
10304 else
10305   enable_logio=no
10306 fi
10307
10308     _apmod_extra_msg=""
10309       if test "$module_selection" = "most" -a "$enable_logio" = "most"; then
10310     _apmod_error_fatal="no"
10311   else
10312     _apmod_error_fatal="yes"
10313   fi
10314   if test "$enable_logio" = "static"; then
10315     enable_logio=yes
10316   elif test "$enable_logio" = "yes"; then
10317     enable_logio=$module_default
10318     _apmod_extra_msg=" ($module_selection)"
10319   elif test "$enable_logio" = "most"; then
10320     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10321       enable_logio=$module_default
10322       _apmod_extra_msg=" ($module_selection)"
10323     elif test "$enable_logio" != "yes"; then
10324       enable_logio=no
10325     fi
10326   elif test "$enable_logio" = "maybe-all"; then
10327     if test "$module_selection" = "all"; then
10328       enable_logio=$module_default
10329       _apmod_extra_msg=" (all)"
10330     else
10331       enable_logio=no
10332     fi
10333   fi
10334   if test "$enable_logio" != "no"; then
10335             :
10336   fi
10337   { $as_echo "$as_me:$LINENO: result: $enable_logio$_apmod_extra_msg" >&5
10338 $as_echo "$enable_logio$_apmod_extra_msg" >&6; }
10339   if test "$enable_logio" != "no"; then
10340     case "$enable_logio" in
10341     shared*)
10342       enable_logio=`echo $ac_n $enable_logio$ac_c|sed 's/shared,*//'`
10343       sharedobjs=yes
10344       shared=yes
10345       DSO_MODULES="$DSO_MODULES logio"
10346       ;;
10347     *)
10348       MODLIST="$MODLIST logio"
10349       if test "logio" = "so"; then
10350           sharedobjs=yes
10351       fi
10352       shared="";;
10353     esac
10354
10355
10356   if test -z ""; then
10357     objects="mod_logio.lo"
10358   else
10359     objects=""
10360   fi
10361
10362   if test -z "$module_standalone"; then
10363     if test -z "$shared"; then
10364       libname="mod_logio.la"
10365       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10366       modpath_static="$modpath_static $libname"
10367       cat >>$modpath_current/modules.mk<<EOF
10368 $libname: $objects
10369         \$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
10370 EOF
10371     else
10372       apache_need_shared=yes
10373       libname="mod_logio.la"
10374       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10375       modpath_shared="$modpath_shared $libname"
10376       cat >>$modpath_current/modules.mk<<EOF
10377 $libname: $shobjects
10378         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOGIO_LDADD)
10379 EOF
10380     fi
10381   fi
10382
10383
10384   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"
10385
10386
10387
10388   fi
10389
10390
10391
10392   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
10393   echo "static = $modpath_static" >> $modpath_current/modules.mk
10394   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
10395   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
10396     MODULE_DIRS="$MODULE_DIRS $current_dir"
10397   else
10398     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
10399   fi
10400
10401   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
10402
10403
10404
10405
10406
10407
10408   current_dir=metadata
10409   modpath_current=modules/metadata
10410   modpath_static=
10411   modpath_shared=
10412   test -d metadata || $srcdir/build/mkdir.sh $modpath_current
10413   > $modpath_current/modules.mk
10414
10415
10416
10417   { $as_echo "$as_me:$LINENO: checking whether to enable mod_env" >&5
10418 $as_echo_n "checking whether to enable mod_env... " >&6; }
10419     # Check whether --enable-env was given.
10420 if test "${enable_env+set}" = set; then
10421   enableval=$enable_env;
10422 else
10423   enable_env=yes
10424 fi
10425
10426     _apmod_extra_msg=""
10427       if test "$module_selection" = "most" -a "$enable_env" = "most"; then
10428     _apmod_error_fatal="no"
10429   else
10430     _apmod_error_fatal="yes"
10431   fi
10432   if test "$enable_env" = "static"; then
10433     enable_env=yes
10434   elif test "$enable_env" = "yes"; then
10435     enable_env=$module_default
10436     _apmod_extra_msg=" ($module_selection)"
10437   elif test "$enable_env" = "most"; then
10438     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10439       enable_env=$module_default
10440       _apmod_extra_msg=" ($module_selection)"
10441     elif test "$enable_env" != "yes"; then
10442       enable_env=no
10443     fi
10444   elif test "$enable_env" = "maybe-all"; then
10445     if test "$module_selection" = "all"; then
10446       enable_env=$module_default
10447       _apmod_extra_msg=" (all)"
10448     else
10449       enable_env=no
10450     fi
10451   fi
10452   if test "$enable_env" != "no"; then
10453             :
10454   fi
10455   { $as_echo "$as_me:$LINENO: result: $enable_env$_apmod_extra_msg" >&5
10456 $as_echo "$enable_env$_apmod_extra_msg" >&6; }
10457   if test "$enable_env" != "no"; then
10458     case "$enable_env" in
10459     shared*)
10460       enable_env=`echo $ac_n $enable_env$ac_c|sed 's/shared,*//'`
10461       sharedobjs=yes
10462       shared=yes
10463       DSO_MODULES="$DSO_MODULES env"
10464       ;;
10465     *)
10466       MODLIST="$MODLIST env"
10467       if test "env" = "so"; then
10468           sharedobjs=yes
10469       fi
10470       shared="";;
10471     esac
10472
10473
10474   if test -z ""; then
10475     objects="mod_env.lo"
10476   else
10477     objects=""
10478   fi
10479
10480   if test -z "$module_standalone"; then
10481     if test -z "$shared"; then
10482       libname="mod_env.la"
10483       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10484       modpath_static="$modpath_static $libname"
10485       cat >>$modpath_current/modules.mk<<EOF
10486 $libname: $objects
10487         \$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
10488 EOF
10489     else
10490       apache_need_shared=yes
10491       libname="mod_env.la"
10492       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10493       modpath_shared="$modpath_shared $libname"
10494       cat >>$modpath_current/modules.mk<<EOF
10495 $libname: $shobjects
10496         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ENV_LDADD)
10497 EOF
10498     fi
10499   fi
10500
10501
10502   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"
10503
10504
10505
10506   fi
10507
10508
10509   { $as_echo "$as_me:$LINENO: checking whether to enable mod_mime_magic" >&5
10510 $as_echo_n "checking whether to enable mod_mime_magic... " >&6; }
10511     # Check whether --enable-mime-magic was given.
10512 if test "${enable_mime_magic+set}" = set; then
10513   enableval=$enable_mime_magic;
10514 else
10515   enable_mime_magic=maybe-all
10516 fi
10517
10518     _apmod_extra_msg=""
10519       if test "$module_selection" = "most" -a "$enable_mime_magic" = "most"; then
10520     _apmod_error_fatal="no"
10521   else
10522     _apmod_error_fatal="yes"
10523   fi
10524   if test "$enable_mime_magic" = "static"; then
10525     enable_mime_magic=yes
10526   elif test "$enable_mime_magic" = "yes"; then
10527     enable_mime_magic=$module_default
10528     _apmod_extra_msg=" ($module_selection)"
10529   elif test "$enable_mime_magic" = "most"; then
10530     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10531       enable_mime_magic=$module_default
10532       _apmod_extra_msg=" ($module_selection)"
10533     elif test "$enable_mime_magic" != "yes"; then
10534       enable_mime_magic=no
10535     fi
10536   elif test "$enable_mime_magic" = "maybe-all"; then
10537     if test "$module_selection" = "all"; then
10538       enable_mime_magic=$module_default
10539       _apmod_extra_msg=" (all)"
10540     else
10541       enable_mime_magic=no
10542     fi
10543   fi
10544   if test "$enable_mime_magic" != "no"; then
10545             :
10546   fi
10547   { $as_echo "$as_me:$LINENO: result: $enable_mime_magic$_apmod_extra_msg" >&5
10548 $as_echo "$enable_mime_magic$_apmod_extra_msg" >&6; }
10549   if test "$enable_mime_magic" != "no"; then
10550     case "$enable_mime_magic" in
10551     shared*)
10552       enable_mime_magic=`echo $ac_n $enable_mime_magic$ac_c|sed 's/shared,*//'`
10553       sharedobjs=yes
10554       shared=yes
10555       DSO_MODULES="$DSO_MODULES mime_magic"
10556       ;;
10557     *)
10558       MODLIST="$MODLIST mime_magic"
10559       if test "mime_magic" = "so"; then
10560           sharedobjs=yes
10561       fi
10562       shared="";;
10563     esac
10564
10565
10566   if test -z ""; then
10567     objects="mod_mime_magic.lo"
10568   else
10569     objects=""
10570   fi
10571
10572   if test -z "$module_standalone"; then
10573     if test -z "$shared"; then
10574       libname="mod_mime_magic.la"
10575       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10576       modpath_static="$modpath_static $libname"
10577       cat >>$modpath_current/modules.mk<<EOF
10578 $libname: $objects
10579         \$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
10580 EOF
10581     else
10582       apache_need_shared=yes
10583       libname="mod_mime_magic.la"
10584       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10585       modpath_shared="$modpath_shared $libname"
10586       cat >>$modpath_current/modules.mk<<EOF
10587 $libname: $shobjects
10588         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_MAGIC_LDADD)
10589 EOF
10590     fi
10591   fi
10592
10593
10594   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"
10595
10596
10597
10598   fi
10599
10600
10601   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cern_meta" >&5
10602 $as_echo_n "checking whether to enable mod_cern_meta... " >&6; }
10603     # Check whether --enable-cern-meta was given.
10604 if test "${enable_cern_meta+set}" = set; then
10605   enableval=$enable_cern_meta;
10606 else
10607   enable_cern_meta=maybe-all
10608 fi
10609
10610     _apmod_extra_msg=""
10611       if test "$module_selection" = "most" -a "$enable_cern_meta" = "most"; then
10612     _apmod_error_fatal="no"
10613   else
10614     _apmod_error_fatal="yes"
10615   fi
10616   if test "$enable_cern_meta" = "static"; then
10617     enable_cern_meta=yes
10618   elif test "$enable_cern_meta" = "yes"; then
10619     enable_cern_meta=$module_default
10620     _apmod_extra_msg=" ($module_selection)"
10621   elif test "$enable_cern_meta" = "most"; then
10622     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10623       enable_cern_meta=$module_default
10624       _apmod_extra_msg=" ($module_selection)"
10625     elif test "$enable_cern_meta" != "yes"; then
10626       enable_cern_meta=no
10627     fi
10628   elif test "$enable_cern_meta" = "maybe-all"; then
10629     if test "$module_selection" = "all"; then
10630       enable_cern_meta=$module_default
10631       _apmod_extra_msg=" (all)"
10632     else
10633       enable_cern_meta=no
10634     fi
10635   fi
10636   if test "$enable_cern_meta" != "no"; then
10637             :
10638   fi
10639   { $as_echo "$as_me:$LINENO: result: $enable_cern_meta$_apmod_extra_msg" >&5
10640 $as_echo "$enable_cern_meta$_apmod_extra_msg" >&6; }
10641   if test "$enable_cern_meta" != "no"; then
10642     case "$enable_cern_meta" in
10643     shared*)
10644       enable_cern_meta=`echo $ac_n $enable_cern_meta$ac_c|sed 's/shared,*//'`
10645       sharedobjs=yes
10646       shared=yes
10647       DSO_MODULES="$DSO_MODULES cern_meta"
10648       ;;
10649     *)
10650       MODLIST="$MODLIST cern_meta"
10651       if test "cern_meta" = "so"; then
10652           sharedobjs=yes
10653       fi
10654       shared="";;
10655     esac
10656
10657
10658   if test -z ""; then
10659     objects="mod_cern_meta.lo"
10660   else
10661     objects=""
10662   fi
10663
10664   if test -z "$module_standalone"; then
10665     if test -z "$shared"; then
10666       libname="mod_cern_meta.la"
10667       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10668       modpath_static="$modpath_static $libname"
10669       cat >>$modpath_current/modules.mk<<EOF
10670 $libname: $objects
10671         \$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
10672 EOF
10673     else
10674       apache_need_shared=yes
10675       libname="mod_cern_meta.la"
10676       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10677       modpath_shared="$modpath_shared $libname"
10678       cat >>$modpath_current/modules.mk<<EOF
10679 $libname: $shobjects
10680         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CERN_META_LDADD)
10681 EOF
10682     fi
10683   fi
10684
10685
10686   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"
10687
10688
10689
10690   fi
10691
10692
10693   { $as_echo "$as_me:$LINENO: checking whether to enable mod_expires" >&5
10694 $as_echo_n "checking whether to enable mod_expires... " >&6; }
10695     # Check whether --enable-expires was given.
10696 if test "${enable_expires+set}" = set; then
10697   enableval=$enable_expires;
10698 else
10699   enable_expires=most
10700 fi
10701
10702     _apmod_extra_msg=""
10703       if test "$module_selection" = "most" -a "$enable_expires" = "most"; then
10704     _apmod_error_fatal="no"
10705   else
10706     _apmod_error_fatal="yes"
10707   fi
10708   if test "$enable_expires" = "static"; then
10709     enable_expires=yes
10710   elif test "$enable_expires" = "yes"; then
10711     enable_expires=$module_default
10712     _apmod_extra_msg=" ($module_selection)"
10713   elif test "$enable_expires" = "most"; then
10714     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10715       enable_expires=$module_default
10716       _apmod_extra_msg=" ($module_selection)"
10717     elif test "$enable_expires" != "yes"; then
10718       enable_expires=no
10719     fi
10720   elif test "$enable_expires" = "maybe-all"; then
10721     if test "$module_selection" = "all"; then
10722       enable_expires=$module_default
10723       _apmod_extra_msg=" (all)"
10724     else
10725       enable_expires=no
10726     fi
10727   fi
10728   if test "$enable_expires" != "no"; then
10729             :
10730   fi
10731   { $as_echo "$as_me:$LINENO: result: $enable_expires$_apmod_extra_msg" >&5
10732 $as_echo "$enable_expires$_apmod_extra_msg" >&6; }
10733   if test "$enable_expires" != "no"; then
10734     case "$enable_expires" in
10735     shared*)
10736       enable_expires=`echo $ac_n $enable_expires$ac_c|sed 's/shared,*//'`
10737       sharedobjs=yes
10738       shared=yes
10739       DSO_MODULES="$DSO_MODULES expires"
10740       ;;
10741     *)
10742       MODLIST="$MODLIST expires"
10743       if test "expires" = "so"; then
10744           sharedobjs=yes
10745       fi
10746       shared="";;
10747     esac
10748
10749
10750   if test -z ""; then
10751     objects="mod_expires.lo"
10752   else
10753     objects=""
10754   fi
10755
10756   if test -z "$module_standalone"; then
10757     if test -z "$shared"; then
10758       libname="mod_expires.la"
10759       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10760       modpath_static="$modpath_static $libname"
10761       cat >>$modpath_current/modules.mk<<EOF
10762 $libname: $objects
10763         \$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
10764 EOF
10765     else
10766       apache_need_shared=yes
10767       libname="mod_expires.la"
10768       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10769       modpath_shared="$modpath_shared $libname"
10770       cat >>$modpath_current/modules.mk<<EOF
10771 $libname: $shobjects
10772         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXPIRES_LDADD)
10773 EOF
10774     fi
10775   fi
10776
10777
10778   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"
10779
10780
10781
10782   fi
10783
10784
10785   { $as_echo "$as_me:$LINENO: checking whether to enable mod_headers" >&5
10786 $as_echo_n "checking whether to enable mod_headers... " >&6; }
10787     # Check whether --enable-headers was given.
10788 if test "${enable_headers+set}" = set; then
10789   enableval=$enable_headers;
10790 else
10791   enable_headers=most
10792 fi
10793
10794     _apmod_extra_msg=""
10795       if test "$module_selection" = "most" -a "$enable_headers" = "most"; then
10796     _apmod_error_fatal="no"
10797   else
10798     _apmod_error_fatal="yes"
10799   fi
10800   if test "$enable_headers" = "static"; then
10801     enable_headers=yes
10802   elif test "$enable_headers" = "yes"; then
10803     enable_headers=$module_default
10804     _apmod_extra_msg=" ($module_selection)"
10805   elif test "$enable_headers" = "most"; then
10806     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10807       enable_headers=$module_default
10808       _apmod_extra_msg=" ($module_selection)"
10809     elif test "$enable_headers" != "yes"; then
10810       enable_headers=no
10811     fi
10812   elif test "$enable_headers" = "maybe-all"; then
10813     if test "$module_selection" = "all"; then
10814       enable_headers=$module_default
10815       _apmod_extra_msg=" (all)"
10816     else
10817       enable_headers=no
10818     fi
10819   fi
10820   if test "$enable_headers" != "no"; then
10821             :
10822   fi
10823   { $as_echo "$as_me:$LINENO: result: $enable_headers$_apmod_extra_msg" >&5
10824 $as_echo "$enable_headers$_apmod_extra_msg" >&6; }
10825   if test "$enable_headers" != "no"; then
10826     case "$enable_headers" in
10827     shared*)
10828       enable_headers=`echo $ac_n $enable_headers$ac_c|sed 's/shared,*//'`
10829       sharedobjs=yes
10830       shared=yes
10831       DSO_MODULES="$DSO_MODULES headers"
10832       ;;
10833     *)
10834       MODLIST="$MODLIST headers"
10835       if test "headers" = "so"; then
10836           sharedobjs=yes
10837       fi
10838       shared="";;
10839     esac
10840
10841
10842   if test -z ""; then
10843     objects="mod_headers.lo"
10844   else
10845     objects=""
10846   fi
10847
10848   if test -z "$module_standalone"; then
10849     if test -z "$shared"; then
10850       libname="mod_headers.la"
10851       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10852       modpath_static="$modpath_static $libname"
10853       cat >>$modpath_current/modules.mk<<EOF
10854 $libname: $objects
10855         \$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
10856 EOF
10857     else
10858       apache_need_shared=yes
10859       libname="mod_headers.la"
10860       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10861       modpath_shared="$modpath_shared $libname"
10862       cat >>$modpath_current/modules.mk<<EOF
10863 $libname: $shobjects
10864         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEADERS_LDADD)
10865 EOF
10866     fi
10867   fi
10868
10869
10870   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"
10871
10872
10873
10874   fi
10875
10876
10877
10878   { $as_echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
10879 $as_echo_n "checking whether to enable mod_usertrack... " >&6; }
10880     # Check whether --enable-usertrack was given.
10881 if test "${enable_usertrack+set}" = set; then
10882   enableval=$enable_usertrack;
10883 else
10884   enable_usertrack=maybe-all
10885 fi
10886
10887     _apmod_extra_msg=""
10888       if test "$module_selection" = "most" -a "$enable_usertrack" = "most"; then
10889     _apmod_error_fatal="no"
10890   else
10891     _apmod_error_fatal="yes"
10892   fi
10893   if test "$enable_usertrack" = "static"; then
10894     enable_usertrack=yes
10895   elif test "$enable_usertrack" = "yes"; then
10896     enable_usertrack=$module_default
10897     _apmod_extra_msg=" ($module_selection)"
10898   elif test "$enable_usertrack" = "most"; then
10899     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10900       enable_usertrack=$module_default
10901       _apmod_extra_msg=" ($module_selection)"
10902     elif test "$enable_usertrack" != "yes"; then
10903       enable_usertrack=no
10904     fi
10905   elif test "$enable_usertrack" = "maybe-all"; then
10906     if test "$module_selection" = "all"; then
10907       enable_usertrack=$module_default
10908       _apmod_extra_msg=" (all)"
10909     else
10910       enable_usertrack=no
10911     fi
10912   fi
10913   if test "$enable_usertrack" != "no"; then
10914             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
10915 $as_echo "checking dependencies" >&6; }
10916
10917
10918 for ac_header in sys/times.h
10919 do
10920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 $as_echo_n "checking for $ac_header... " >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   $as_echo_n "(cached) " >&6
10926 fi
10927 ac_res=`eval 'as_val=${'$as_ac_Header'}
10928                  $as_echo "$as_val"'`
10929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10930 $as_echo "$ac_res" >&6; }
10931 else
10932   # Is the header compilable?
10933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10934 $as_echo_n "checking $ac_header usability... " >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 $ac_includes_default
10942 #include <$ac_header>
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952   (eval "$ac_compile") 2>conftest.er1
10953   ac_status=$?
10954   grep -v '^ *+' conftest.er1 >conftest.err
10955   rm -f conftest.er1
10956   cat conftest.err >&5
10957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); } && {
10959          test -z "$ac_c_werror_flag" ||
10960          test ! -s conftest.err
10961        } && test -s conftest.$ac_objext; then
10962   ac_header_compiler=yes
10963 else
10964   $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967         ac_header_compiler=no
10968 fi
10969
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10972 $as_echo "$ac_header_compiler" >&6; }
10973
10974 # Is the header present?
10975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10976 $as_echo_n "checking $ac_header presence... " >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <$ac_header>
10984 _ACEOF
10985 if { (ac_try="$ac_cpp conftest.$ac_ext"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } >/dev/null && {
10999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11000          test ! -s conftest.err
11001        }; then
11002   ac_header_preproc=yes
11003 else
11004   $as_echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007   ac_header_preproc=no
11008 fi
11009
11010 rm -f conftest.err conftest.$ac_ext
11011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11012 $as_echo "$ac_header_preproc" >&6; }
11013
11014 # So?  What about this header?
11015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11016   yes:no: )
11017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11021     ac_header_preproc=yes
11022     ;;
11023   no:yes:* )
11024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11027 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11031 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11036
11037     ;;
11038 esac
11039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 $as_echo_n "checking for $ac_header... " >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   $as_echo_n "(cached) " >&6
11043 else
11044   eval "$as_ac_Header=\$ac_header_preproc"
11045 fi
11046 ac_res=`eval 'as_val=${'$as_ac_Header'}
11047                  $as_echo "$as_val"'`
11048                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11049 $as_echo "$ac_res" >&6; }
11050
11051 fi
11052 as_val=`eval 'as_val=${'$as_ac_Header'}
11053                  $as_echo "$as_val"'`
11054    if test "x$as_val" = x""yes; then
11055   cat >>confdefs.h <<_ACEOF
11056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 fi
11060
11061 done
11062
11063
11064 for ac_func in times
11065 do
11066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11068 $as_echo_n "checking for $ac_func... " >&6; }
11069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11070   $as_echo_n "(cached) " >&6
11071 else
11072   cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h.  */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h.  */
11078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11080 #define $ac_func innocuous_$ac_func
11081
11082 /* System header to define __stub macros and hopefully few prototypes,
11083     which can conflict with char $ac_func (); below.
11084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085     <limits.h> exists even on freestanding compilers.  */
11086
11087 #ifdef __STDC__
11088 # include <limits.h>
11089 #else
11090 # include <assert.h>
11091 #endif
11092
11093 #undef $ac_func
11094
11095 /* Override any GCC internal prototype to avoid an error.
11096    Use char because int might match the return type of a GCC
11097    builtin and then its argument prototype would still apply.  */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char $ac_func ();
11102 /* The GNU C library defines this for functions which it implements
11103     to always fail with ENOSYS.  Some functions are actually named
11104     something starting with __ and the normal name is an alias.  */
11105 #if defined __stub_$ac_func || defined __stub___$ac_func
11106 choke me
11107 #endif
11108
11109 int
11110 main ()
11111 {
11112 return $ac_func ();
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (ac_try="$ac_link"
11119 case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11124 $as_echo "$ac_try_echo") >&5
11125   (eval "$ac_link") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } && {
11132          test -z "$ac_c_werror_flag" ||
11133          test ! -s conftest.err
11134        } && test -s conftest$ac_exeext && {
11135          test "$cross_compiling" = yes ||
11136          $as_test_x conftest$ac_exeext
11137        }; then
11138   eval "$as_ac_var=yes"
11139 else
11140   $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143         eval "$as_ac_var=no"
11144 fi
11145
11146 rm -rf conftest.dSYM
11147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11148       conftest$ac_exeext conftest.$ac_ext
11149 fi
11150 ac_res=`eval 'as_val=${'$as_ac_var'}
11151                  $as_echo "$as_val"'`
11152                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11153 $as_echo "$ac_res" >&6; }
11154 as_val=`eval 'as_val=${'$as_ac_var'}
11155                  $as_echo "$as_val"'`
11156    if test "x$as_val" = x""yes; then
11157   cat >>confdefs.h <<_ACEOF
11158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 _ACEOF
11160
11161 fi
11162 done
11163
11164
11165                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
11166 $as_echo_n "checking whether to enable mod_usertrack... " >&6; }
11167                     if test "$enable_usertrack" = "no"; then
11168                       if test "$_apmod_error_fatal" = "no"; then
11169                         _apmod_extra_msg=" (disabled)"
11170                       else
11171                         { { $as_echo "$as_me:$LINENO: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&5
11172 $as_echo "$as_me: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&2;}
11173    { (exit 1); exit 1; }; }
11174                       fi
11175                     fi
11176   fi
11177   { $as_echo "$as_me:$LINENO: result: $enable_usertrack$_apmod_extra_msg" >&5
11178 $as_echo "$enable_usertrack$_apmod_extra_msg" >&6; }
11179   if test "$enable_usertrack" != "no"; then
11180     case "$enable_usertrack" in
11181     shared*)
11182       enable_usertrack=`echo $ac_n $enable_usertrack$ac_c|sed 's/shared,*//'`
11183       sharedobjs=yes
11184       shared=yes
11185       DSO_MODULES="$DSO_MODULES usertrack"
11186       ;;
11187     *)
11188       MODLIST="$MODLIST usertrack"
11189       if test "usertrack" = "so"; then
11190           sharedobjs=yes
11191       fi
11192       shared="";;
11193     esac
11194
11195
11196   if test -z ""; then
11197     objects="mod_usertrack.lo"
11198   else
11199     objects=""
11200   fi
11201
11202   if test -z "$module_standalone"; then
11203     if test -z "$shared"; then
11204       libname="mod_usertrack.la"
11205       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11206       modpath_static="$modpath_static $libname"
11207       cat >>$modpath_current/modules.mk<<EOF
11208 $libname: $objects
11209         \$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
11210 EOF
11211     else
11212       apache_need_shared=yes
11213       libname="mod_usertrack.la"
11214       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11215       modpath_shared="$modpath_shared $libname"
11216       cat >>$modpath_current/modules.mk<<EOF
11217 $libname: $shobjects
11218         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERTRACK_LDADD)
11219 EOF
11220     fi
11221   fi
11222
11223
11224   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"
11225
11226
11227
11228   fi
11229
11230
11231
11232   { $as_echo "$as_me:$LINENO: checking whether to enable mod_unique_id" >&5
11233 $as_echo_n "checking whether to enable mod_unique_id... " >&6; }
11234     # Check whether --enable-unique-id was given.
11235 if test "${enable_unique_id+set}" = set; then
11236   enableval=$enable_unique_id;
11237 else
11238   enable_unique_id=maybe-all
11239 fi
11240
11241     _apmod_extra_msg=""
11242       if test "$module_selection" = "most" -a "$enable_unique_id" = "most"; then
11243     _apmod_error_fatal="no"
11244   else
11245     _apmod_error_fatal="yes"
11246   fi
11247   if test "$enable_unique_id" = "static"; then
11248     enable_unique_id=yes
11249   elif test "$enable_unique_id" = "yes"; then
11250     enable_unique_id=$module_default
11251     _apmod_extra_msg=" ($module_selection)"
11252   elif test "$enable_unique_id" = "most"; then
11253     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11254       enable_unique_id=$module_default
11255       _apmod_extra_msg=" ($module_selection)"
11256     elif test "$enable_unique_id" != "yes"; then
11257       enable_unique_id=no
11258     fi
11259   elif test "$enable_unique_id" = "maybe-all"; then
11260     if test "$module_selection" = "all"; then
11261       enable_unique_id=$module_default
11262       _apmod_extra_msg=" (all)"
11263     else
11264       enable_unique_id=no
11265     fi
11266   fi
11267   if test "$enable_unique_id" != "no"; then
11268             :
11269   fi
11270   { $as_echo "$as_me:$LINENO: result: $enable_unique_id$_apmod_extra_msg" >&5
11271 $as_echo "$enable_unique_id$_apmod_extra_msg" >&6; }
11272   if test "$enable_unique_id" != "no"; then
11273     case "$enable_unique_id" in
11274     shared*)
11275       enable_unique_id=`echo $ac_n $enable_unique_id$ac_c|sed 's/shared,*//'`
11276       sharedobjs=yes
11277       shared=yes
11278       DSO_MODULES="$DSO_MODULES unique_id"
11279       ;;
11280     *)
11281       MODLIST="$MODLIST unique_id"
11282       if test "unique_id" = "so"; then
11283           sharedobjs=yes
11284       fi
11285       shared="";;
11286     esac
11287
11288
11289   if test -z ""; then
11290     objects="mod_unique_id.lo"
11291   else
11292     objects=""
11293   fi
11294
11295   if test -z "$module_standalone"; then
11296     if test -z "$shared"; then
11297       libname="mod_unique_id.la"
11298       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11299       modpath_static="$modpath_static $libname"
11300       cat >>$modpath_current/modules.mk<<EOF
11301 $libname: $objects
11302         \$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
11303 EOF
11304     else
11305       apache_need_shared=yes
11306       libname="mod_unique_id.la"
11307       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11308       modpath_shared="$modpath_shared $libname"
11309       cat >>$modpath_current/modules.mk<<EOF
11310 $libname: $shobjects
11311         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIQUE_ID_LDADD)
11312 EOF
11313     fi
11314   fi
11315
11316
11317   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"
11318
11319
11320
11321   fi
11322
11323
11324   { $as_echo "$as_me:$LINENO: checking whether to enable mod_setenvif" >&5
11325 $as_echo_n "checking whether to enable mod_setenvif... " >&6; }
11326     # Check whether --enable-setenvif was given.
11327 if test "${enable_setenvif+set}" = set; then
11328   enableval=$enable_setenvif;
11329 else
11330   enable_setenvif=yes
11331 fi
11332
11333     _apmod_extra_msg=""
11334       if test "$module_selection" = "most" -a "$enable_setenvif" = "most"; then
11335     _apmod_error_fatal="no"
11336   else
11337     _apmod_error_fatal="yes"
11338   fi
11339   if test "$enable_setenvif" = "static"; then
11340     enable_setenvif=yes
11341   elif test "$enable_setenvif" = "yes"; then
11342     enable_setenvif=$module_default
11343     _apmod_extra_msg=" ($module_selection)"
11344   elif test "$enable_setenvif" = "most"; then
11345     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11346       enable_setenvif=$module_default
11347       _apmod_extra_msg=" ($module_selection)"
11348     elif test "$enable_setenvif" != "yes"; then
11349       enable_setenvif=no
11350     fi
11351   elif test "$enable_setenvif" = "maybe-all"; then
11352     if test "$module_selection" = "all"; then
11353       enable_setenvif=$module_default
11354       _apmod_extra_msg=" (all)"
11355     else
11356       enable_setenvif=no
11357     fi
11358   fi
11359   if test "$enable_setenvif" != "no"; then
11360             :
11361   fi
11362   { $as_echo "$as_me:$LINENO: result: $enable_setenvif$_apmod_extra_msg" >&5
11363 $as_echo "$enable_setenvif$_apmod_extra_msg" >&6; }
11364   if test "$enable_setenvif" != "no"; then
11365     case "$enable_setenvif" in
11366     shared*)
11367       enable_setenvif=`echo $ac_n $enable_setenvif$ac_c|sed 's/shared,*//'`
11368       sharedobjs=yes
11369       shared=yes
11370       DSO_MODULES="$DSO_MODULES setenvif"
11371       ;;
11372     *)
11373       MODLIST="$MODLIST setenvif"
11374       if test "setenvif" = "so"; then
11375           sharedobjs=yes
11376       fi
11377       shared="";;
11378     esac
11379
11380
11381   if test -z ""; then
11382     objects="mod_setenvif.lo"
11383   else
11384     objects=""
11385   fi
11386
11387   if test -z "$module_standalone"; then
11388     if test -z "$shared"; then
11389       libname="mod_setenvif.la"
11390       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11391       modpath_static="$modpath_static $libname"
11392       cat >>$modpath_current/modules.mk<<EOF
11393 $libname: $objects
11394         \$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
11395 EOF
11396     else
11397       apache_need_shared=yes
11398       libname="mod_setenvif.la"
11399       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11400       modpath_shared="$modpath_shared $libname"
11401       cat >>$modpath_current/modules.mk<<EOF
11402 $libname: $shobjects
11403         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SETENVIF_LDADD)
11404 EOF
11405     fi
11406   fi
11407
11408
11409   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"
11410
11411
11412
11413   fi
11414
11415
11416   { $as_echo "$as_me:$LINENO: checking whether to enable mod_version" >&5
11417 $as_echo_n "checking whether to enable mod_version... " >&6; }
11418     # Check whether --enable-version was given.
11419 if test "${enable_version+set}" = set; then
11420   enableval=$enable_version;
11421 else
11422   enable_version=maybe-all
11423 fi
11424
11425     _apmod_extra_msg=""
11426       if test "$module_selection" = "most" -a "$enable_version" = "most"; then
11427     _apmod_error_fatal="no"
11428   else
11429     _apmod_error_fatal="yes"
11430   fi
11431   if test "$enable_version" = "static"; then
11432     enable_version=yes
11433   elif test "$enable_version" = "yes"; then
11434     enable_version=$module_default
11435     _apmod_extra_msg=" ($module_selection)"
11436   elif test "$enable_version" = "most"; then
11437     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11438       enable_version=$module_default
11439       _apmod_extra_msg=" ($module_selection)"
11440     elif test "$enable_version" != "yes"; then
11441       enable_version=no
11442     fi
11443   elif test "$enable_version" = "maybe-all"; then
11444     if test "$module_selection" = "all"; then
11445       enable_version=$module_default
11446       _apmod_extra_msg=" (all)"
11447     else
11448       enable_version=no
11449     fi
11450   fi
11451   if test "$enable_version" != "no"; then
11452             :
11453   fi
11454   { $as_echo "$as_me:$LINENO: result: $enable_version$_apmod_extra_msg" >&5
11455 $as_echo "$enable_version$_apmod_extra_msg" >&6; }
11456   if test "$enable_version" != "no"; then
11457     case "$enable_version" in
11458     shared*)
11459       enable_version=`echo $ac_n $enable_version$ac_c|sed 's/shared,*//'`
11460       sharedobjs=yes
11461       shared=yes
11462       DSO_MODULES="$DSO_MODULES version"
11463       ;;
11464     *)
11465       MODLIST="$MODLIST version"
11466       if test "version" = "so"; then
11467           sharedobjs=yes
11468       fi
11469       shared="";;
11470     esac
11471
11472
11473   if test -z ""; then
11474     objects="mod_version.lo"
11475   else
11476     objects=""
11477   fi
11478
11479   if test -z "$module_standalone"; then
11480     if test -z "$shared"; then
11481       libname="mod_version.la"
11482       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11483       modpath_static="$modpath_static $libname"
11484       cat >>$modpath_current/modules.mk<<EOF
11485 $libname: $objects
11486         \$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
11487 EOF
11488     else
11489       apache_need_shared=yes
11490       libname="mod_version.la"
11491       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11492       modpath_shared="$modpath_shared $libname"
11493       cat >>$modpath_current/modules.mk<<EOF
11494 $libname: $shobjects
11495         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VERSION_LDADD)
11496 EOF
11497     fi
11498   fi
11499
11500
11501   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"
11502
11503
11504
11505   fi
11506
11507
11508
11509   if test "x$LT_LDFLAGS" = "x"; then
11510     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
11511     LT_LDFLAGS="-export-dynamic"
11512   else
11513     apr_addto_bugger="-export-dynamic"
11514     for i in $apr_addto_bugger; do
11515       apr_addto_duplicate="0"
11516       for j in $LT_LDFLAGS; do
11517         if test "x$i" = "x$j"; then
11518           apr_addto_duplicate="1"
11519           break
11520         fi
11521       done
11522       if test $apr_addto_duplicate = "0"; then
11523         echo "  adding \"$i\" to LT_LDFLAGS"
11524         LT_LDFLAGS="$LT_LDFLAGS $i"
11525       fi
11526     done
11527   fi
11528
11529
11530
11531   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11532   echo "static = $modpath_static" >> $modpath_current/modules.mk
11533   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11534   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11535     MODULE_DIRS="$MODULE_DIRS $current_dir"
11536   else
11537     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11538   fi
11539
11540   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11541
11542
11543
11544
11545
11546   current_dir=proxy
11547   modpath_current=modules/proxy
11548   modpath_static=
11549   modpath_shared=
11550   test -d proxy || $srcdir/build/mkdir.sh $modpath_current
11551   > $modpath_current/modules.mk
11552
11553
11554 if test "$enable_proxy" = "shared"; then
11555   proxy_mods_enable=shared
11556 elif test "$enable_proxy" = "yes"; then
11557   proxy_mods_enable=yes
11558 else
11559   proxy_mods_enable=no
11560 fi
11561
11562 proxy_objs="mod_proxy.lo proxy_util.lo"
11563
11564   { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy" >&5
11565 $as_echo_n "checking whether to enable mod_proxy... " >&6; }
11566     # Check whether --enable-proxy was given.
11567 if test "${enable_proxy+set}" = set; then
11568   enableval=$enable_proxy;
11569 else
11570   enable_proxy=$proxy_mods_enable
11571 fi
11572
11573     _apmod_extra_msg=""
11574       if test "$module_selection" = "most" -a "$enable_proxy" = "most"; then
11575     _apmod_error_fatal="no"
11576   else
11577     _apmod_error_fatal="yes"
11578   fi
11579   if test "$enable_proxy" = "static"; then
11580     enable_proxy=yes
11581   elif test "$enable_proxy" = "yes"; then
11582     enable_proxy=$module_default
11583     _apmod_extra_msg=" ($module_selection)"
11584   elif test "$enable_proxy" = "most"; then
11585     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11586       enable_proxy=$module_default
11587       _apmod_extra_msg=" ($module_selection)"
11588     elif test "$enable_proxy" != "yes"; then
11589       enable_proxy=no
11590     fi
11591   elif test "$enable_proxy" = "maybe-all"; then
11592     if test "$module_selection" = "all"; then
11593       enable_proxy=$module_default
11594       _apmod_extra_msg=" (all)"
11595     else
11596       enable_proxy=no
11597     fi
11598   fi
11599   if test "$enable_proxy" != "no"; then
11600             :
11601   fi
11602   { $as_echo "$as_me:$LINENO: result: $enable_proxy$_apmod_extra_msg" >&5
11603 $as_echo "$enable_proxy$_apmod_extra_msg" >&6; }
11604   if test "$enable_proxy" != "no"; then
11605     case "$enable_proxy" in
11606     shared*)
11607       enable_proxy=`echo $ac_n $enable_proxy$ac_c|sed 's/shared,*//'`
11608       sharedobjs=yes
11609       shared=yes
11610       DSO_MODULES="$DSO_MODULES proxy"
11611       ;;
11612     *)
11613       MODLIST="$MODLIST proxy"
11614       if test "proxy" = "so"; then
11615           sharedobjs=yes
11616       fi
11617       shared="";;
11618     esac
11619
11620
11621   if test -z "$proxy_objs"; then
11622     objects="mod_proxy.lo"
11623   else
11624     objects="$proxy_objs"
11625   fi
11626
11627   if test -z "$module_standalone"; then
11628     if test -z "$shared"; then
11629       libname="mod_proxy.la"
11630       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11631       modpath_static="$modpath_static $libname"
11632       cat >>$modpath_current/modules.mk<<EOF
11633 $libname: $objects
11634         \$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
11635 EOF
11636     else
11637       apache_need_shared=yes
11638       libname="mod_proxy.la"
11639       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11640       modpath_shared="$modpath_shared $libname"
11641       cat >>$modpath_current/modules.mk<<EOF
11642 $libname: $shobjects
11643         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_LDADD)
11644 EOF
11645     fi
11646   fi
11647
11648
11649   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"
11650
11651
11652
11653   fi
11654
11655
11656 proxy_connect_objs="proxy_connect.lo"
11657 proxy_ftp_objs="proxy_ftp.lo"
11658 proxy_http_objs="proxy_http.lo"
11659
11660 case "$host" in
11661   *os2*)
11662     # OS/2 DLLs must resolve all symbols at build time and
11663     # these sub-modules need some from the main proxy module
11664     proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
11665     proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
11666     proxy_http_objs="$proxy_http_objs mod_proxy.la"
11667     ;;
11668 esac
11669
11670
11671   { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_connect" >&5
11672 $as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
11673     # Check whether --enable-proxy-connect was given.
11674 if test "${enable_proxy_connect+set}" = set; then
11675   enableval=$enable_proxy_connect;
11676 else
11677   enable_proxy_connect=$proxy_mods_enable
11678 fi
11679
11680     _apmod_extra_msg=""
11681       if test "$module_selection" = "most" -a "$enable_proxy_connect" = "most"; then
11682     _apmod_error_fatal="no"
11683   else
11684     _apmod_error_fatal="yes"
11685   fi
11686   if test "$enable_proxy_connect" = "static"; then
11687     enable_proxy_connect=yes
11688   elif test "$enable_proxy_connect" = "yes"; then
11689     enable_proxy_connect=$module_default
11690     _apmod_extra_msg=" ($module_selection)"
11691   elif test "$enable_proxy_connect" = "most"; then
11692     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11693       enable_proxy_connect=$module_default
11694       _apmod_extra_msg=" ($module_selection)"
11695     elif test "$enable_proxy_connect" != "yes"; then
11696       enable_proxy_connect=no
11697     fi
11698   elif test "$enable_proxy_connect" = "maybe-all"; then
11699     if test "$module_selection" = "all"; then
11700       enable_proxy_connect=$module_default
11701       _apmod_extra_msg=" (all)"
11702     else
11703       enable_proxy_connect=no
11704     fi
11705   fi
11706   if test "$enable_proxy_connect" != "no"; then
11707             :
11708   fi
11709   { $as_echo "$as_me:$LINENO: result: $enable_proxy_connect$_apmod_extra_msg" >&5
11710 $as_echo "$enable_proxy_connect$_apmod_extra_msg" >&6; }
11711   if test "$enable_proxy_connect" != "no"; then
11712     case "$enable_proxy_connect" in
11713     shared*)
11714       enable_proxy_connect=`echo $ac_n $enable_proxy_connect$ac_c|sed 's/shared,*//'`
11715       sharedobjs=yes
11716       shared=yes
11717       DSO_MODULES="$DSO_MODULES proxy_connect"
11718       ;;
11719     *)
11720       MODLIST="$MODLIST proxy_connect"
11721       if test "proxy_connect" = "so"; then
11722           sharedobjs=yes
11723       fi
11724       shared="";;
11725     esac
11726
11727
11728   if test -z "$proxy_connect_objs"; then
11729     objects="mod_proxy_connect.lo"
11730   else
11731     objects="$proxy_connect_objs"
11732   fi
11733
11734   if test -z "$module_standalone"; then
11735     if test -z "$shared"; then
11736       libname="mod_proxy_connect.la"
11737       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11738       modpath_static="$modpath_static $libname"
11739       cat >>$modpath_current/modules.mk<<EOF
11740 $libname: $objects
11741         \$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
11742 EOF
11743     else
11744       apache_need_shared=yes
11745       libname="mod_proxy_connect.la"
11746       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11747       modpath_shared="$modpath_shared $libname"
11748       cat >>$modpath_current/modules.mk<<EOF
11749 $libname: $shobjects
11750         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_CONNECT_LDADD)
11751 EOF
11752     fi
11753   fi
11754
11755
11756   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"
11757
11758
11759
11760   fi
11761
11762
11763   { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_ftp" >&5
11764 $as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
11765     # Check whether --enable-proxy-ftp was given.
11766 if test "${enable_proxy_ftp+set}" = set; then
11767   enableval=$enable_proxy_ftp;
11768 else
11769   enable_proxy_ftp=$proxy_mods_enable
11770 fi
11771
11772     _apmod_extra_msg=""
11773       if test "$module_selection" = "most" -a "$enable_proxy_ftp" = "most"; then
11774     _apmod_error_fatal="no"
11775   else
11776     _apmod_error_fatal="yes"
11777   fi
11778   if test "$enable_proxy_ftp" = "static"; then
11779     enable_proxy_ftp=yes
11780   elif test "$enable_proxy_ftp" = "yes"; then
11781     enable_proxy_ftp=$module_default
11782     _apmod_extra_msg=" ($module_selection)"
11783   elif test "$enable_proxy_ftp" = "most"; then
11784     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11785       enable_proxy_ftp=$module_default
11786       _apmod_extra_msg=" ($module_selection)"
11787     elif test "$enable_proxy_ftp" != "yes"; then
11788       enable_proxy_ftp=no
11789     fi
11790   elif test "$enable_proxy_ftp" = "maybe-all"; then
11791     if test "$module_selection" = "all"; then
11792       enable_proxy_ftp=$module_default
11793       _apmod_extra_msg=" (all)"
11794     else
11795       enable_proxy_ftp=no
11796     fi
11797   fi
11798   if test "$enable_proxy_ftp" != "no"; then
11799             :
11800   fi
11801   { $as_echo "$as_me:$LINENO: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
11802 $as_echo "$enable_proxy_ftp$_apmod_extra_msg" >&6; }
11803   if test "$enable_proxy_ftp" != "no"; then
11804     case "$enable_proxy_ftp" in
11805     shared*)
11806       enable_proxy_ftp=`echo $ac_n $enable_proxy_ftp$ac_c|sed 's/shared,*//'`
11807       sharedobjs=yes
11808       shared=yes
11809       DSO_MODULES="$DSO_MODULES proxy_ftp"
11810       ;;
11811     *)
11812       MODLIST="$MODLIST proxy_ftp"
11813       if test "proxy_ftp" = "so"; then
11814           sharedobjs=yes
11815       fi
11816       shared="";;
11817     esac
11818
11819
11820   if test -z "$proxy_ftp_objs"; then
11821     objects="mod_proxy_ftp.lo"
11822   else
11823     objects="$proxy_ftp_objs"
11824   fi
11825
11826   if test -z "$module_standalone"; then
11827     if test -z "$shared"; then
11828       libname="mod_proxy_ftp.la"
11829       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11830       modpath_static="$modpath_static $libname"
11831       cat >>$modpath_current/modules.mk<<EOF
11832 $libname: $objects
11833         \$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
11834 EOF
11835     else
11836       apache_need_shared=yes
11837       libname="mod_proxy_ftp.la"
11838       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11839       modpath_shared="$modpath_shared $libname"
11840       cat >>$modpath_current/modules.mk<<EOF
11841 $libname: $shobjects
11842         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FTP_LDADD)
11843 EOF
11844     fi
11845   fi
11846
11847
11848   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"
11849
11850
11851
11852   fi
11853
11854
11855   { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_http" >&5
11856 $as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
11857     # Check whether --enable-proxy-http was given.
11858 if test "${enable_proxy_http+set}" = set; then
11859   enableval=$enable_proxy_http;
11860 else
11861   enable_proxy_http=$proxy_mods_enable
11862 fi
11863
11864     _apmod_extra_msg=""
11865       if test "$module_selection" = "most" -a "$enable_proxy_http" = "most"; then
11866     _apmod_error_fatal="no"
11867   else
11868     _apmod_error_fatal="yes"
11869   fi
11870   if test "$enable_proxy_http" = "static"; then
11871     enable_proxy_http=yes
11872   elif test "$enable_proxy_http" = "yes"; then
11873     enable_proxy_http=$module_default
11874     _apmod_extra_msg=" ($module_selection)"
11875   elif test "$enable_proxy_http" = "most"; then
11876     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11877       enable_proxy_http=$module_default
11878       _apmod_extra_msg=" ($module_selection)"
11879     elif test "$enable_proxy_http" != "yes"; then
11880       enable_proxy_http=no
11881     fi
11882   elif test "$enable_proxy_http" = "maybe-all"; then
11883     if test "$module_selection" = "all"; then
11884       enable_proxy_http=$module_default
11885       _apmod_extra_msg=" (all)"
11886     else
11887       enable_proxy_http=no
11888     fi
11889   fi
11890   if test "$enable_proxy_http" != "no"; then
11891             :
11892   fi
11893   { $as_echo "$as_me:$LINENO: result: $enable_proxy_http$_apmod_extra_msg" >&5
11894 $as_echo "$enable_proxy_http$_apmod_extra_msg" >&6; }
11895   if test "$enable_proxy_http" != "no"; then
11896     case "$enable_proxy_http" in
11897     shared*)
11898       enable_proxy_http=`echo $ac_n $enable_proxy_http$ac_c|sed 's/shared,*//'`
11899       sharedobjs=yes
11900       shared=yes
11901       DSO_MODULES="$DSO_MODULES proxy_http"
11902       ;;
11903     *)
11904       MODLIST="$MODLIST proxy_http"
11905       if test "proxy_http" = "so"; then
11906           sharedobjs=yes
11907       fi
11908       shared="";;
11909     esac
11910
11911
11912   if test -z "$proxy_http_objs"; then
11913     objects="mod_proxy_http.lo"
11914   else
11915     objects="$proxy_http_objs"
11916   fi
11917
11918   if test -z "$module_standalone"; then
11919     if test -z "$shared"; then
11920       libname="mod_proxy_http.la"
11921       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11922       modpath_static="$modpath_static $libname"
11923       cat >>$modpath_current/modules.mk<<EOF
11924 $libname: $objects
11925         \$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
11926 EOF
11927     else
11928       apache_need_shared=yes
11929       libname="mod_proxy_http.la"
11930       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11931       modpath_shared="$modpath_shared $libname"
11932       cat >>$modpath_current/modules.mk<<EOF
11933 $libname: $shobjects
11934         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP_LDADD)
11935 EOF
11936     fi
11937   fi
11938
11939
11940   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"
11941
11942
11943
11944   fi
11945
11946
11947
11948   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11949   echo "static = $modpath_static" >> $modpath_current/modules.mk
11950   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11951   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11952     MODULE_DIRS="$MODULE_DIRS $current_dir"
11953   else
11954     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11955   fi
11956
11957   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11958
11959
11960
11961
11962
11963   current_dir=ssl
11964   modpath_current=modules/ssl
11965   modpath_static=
11966   modpath_shared=
11967   test -d ssl || $srcdir/build/mkdir.sh $modpath_current
11968   > $modpath_current/modules.mk
11969
11970
11971 ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_dh.lo ssl_engine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_expr.lo ssl_expr_eval.lo ssl_expr_parse.lo ssl_expr_scan.lo ssl_scache.lo ssl_scache_dbm.lo ssl_scache_shmcb.lo ssl_scache_shmht.lo ssl_util.lo ssl_util_ssl.lo ssl_util_table.lo "
11972
11973   { $as_echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
11974 $as_echo_n "checking whether to enable mod_ssl... " >&6; }
11975     # Check whether --enable-ssl was given.
11976 if test "${enable_ssl+set}" = set; then
11977   enableval=$enable_ssl;
11978 else
11979   enable_ssl=no
11980 fi
11981
11982     _apmod_extra_msg=""
11983       if test "$module_selection" = "most" -a "$enable_ssl" = "most"; then
11984     _apmod_error_fatal="no"
11985   else
11986     _apmod_error_fatal="yes"
11987   fi
11988   if test "$enable_ssl" = "static"; then
11989     enable_ssl=yes
11990   elif test "$enable_ssl" = "yes"; then
11991     enable_ssl=$module_default
11992     _apmod_extra_msg=" ($module_selection)"
11993   elif test "$enable_ssl" = "most"; then
11994     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11995       enable_ssl=$module_default
11996       _apmod_extra_msg=" ($module_selection)"
11997     elif test "$enable_ssl" != "yes"; then
11998       enable_ssl=no
11999     fi
12000   elif test "$enable_ssl" = "maybe-all"; then
12001     if test "$module_selection" = "all"; then
12002       enable_ssl=$module_default
12003       _apmod_extra_msg=" (all)"
12004     else
12005       enable_ssl=no
12006     fi
12007   fi
12008   if test "$enable_ssl" != "no"; then
12009             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
12010 $as_echo "checking dependencies" >&6; }
12011
12012
12013 if test "x$ap_ssltk_base" = "x"; then
12014   { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit base" >&5
12015 $as_echo_n "checking for SSL/TLS toolkit base... " >&6; }
12016   ap_ssltk_base=""
12017
12018 # Check whether --with-ssl was given.
12019 if test "${with_ssl+set}" = set; then
12020   withval=$with_ssl;
12021     if test "x$withval" != "xyes" -a "x$withval" != "x"; then
12022       ap_ssltk_base="$withval"
12023       if test -f "$ap_ssltk_base/bin/openssl"; then
12024           ap_ssltk_version="`$ap_ssltk_base/bin/openssl version`"
12025       else
12026           ap_ssltk_version="unknown"
12027       fi
12028     fi
12029
12030 fi
12031
12032   if test "x$ap_ssltk_base" = "x"; then
12033     if test "${ap_cv_ssltk+set}" = set; then
12034   $as_echo_n "(cached) " >&6
12035 else
12036
12037       #
12038       # shotgun approach: find all occurrences of the openssl program
12039       #
12040       # The IFS=... trick eliminates the colons from $PATH, without using an external program
12041       for p in `IFS=":$IFS"; echo $PATH` /usr/local/openssl/bin /usr/local/ssl/bin; do
12042         if test -f "$p/openssl"; then
12043           ap_ssltk_version="`$p/openssl version`"
12044           if test "x$ap_ssltk_version" != "x"; then
12045             ap_cv_ssltk="`(cd $p/.. && pwd)`"
12046             break
12047           fi
12048         fi
12049       done
12050       if test "x$ap_cv_ssltk" = "x"; then
12051         { { $as_echo "$as_me:$LINENO: error: requires OpenSSL 0.9.6e or higher" >&5
12052 $as_echo "$as_me: error: requires OpenSSL 0.9.6e or higher" >&2;}
12053    { (exit 1); exit 1; }; }
12054       fi
12055
12056 fi
12057
12058     ap_ssltk_base="$ap_cv_ssltk"
12059   fi
12060   if test ! -d $ap_ssltk_base; then
12061     { { $as_echo "$as_me:$LINENO: error: invalid SSL/TLS toolkit base directory $ap_ssltk_base" >&5
12062 $as_echo "$as_me: error: invalid SSL/TLS toolkit base directory $ap_ssltk_base" >&2;}
12063    { (exit 1); exit 1; }; }
12064   fi
12065   { $as_echo "$as_me:$LINENO: result: $ap_ssltk_base" >&5
12066 $as_echo "$ap_ssltk_base" >&6; }
12067
12068   { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit version" >&5
12069 $as_echo_n "checking for SSL/TLS toolkit version... " >&6; }
12070   { $as_echo "$as_me:$LINENO: result: $ap_ssltk_version" >&5
12071 $as_echo "$ap_ssltk_version" >&6; }
12072   case "$ap_ssltk_version" in
12073     "OpenSSL "[1-9]* | \
12074     "OpenSSL "0.9.6[e-z]* | \
12075     "OpenSSL "0.9.[7-9]* | \
12076     "OpenSSL "0.[1-9][0-9]* )
12077        # okay versions that do not have known security holes
12078        ;;
12079     "OpenSSL"*)
12080        { $as_echo "$as_me:$LINENO: WARNING: OpenSSL versions prior to 0.9.6e have known security holes" >&5
12081 $as_echo "$as_me: WARNING: OpenSSL versions prior to 0.9.6e have known security holes" >&2;}
12082        ;;
12083     *)
12084        # unknown version -- assume the user knows what they are doing
12085        ;;
12086   esac
12087
12088   { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit includes" >&5
12089 $as_echo_n "checking for SSL/TLS toolkit includes... " >&6; }
12090   ap_ssltk_incdir=""
12091   for p in $ap_ssltk_base/include /usr/local/openssl/include \
12092            /usr/local/ssl/include /usr/local/include /usr/include; do
12093     if test -f "$p/openssl/ssl.h"; then
12094       ap_ssltk_incdir="$p"
12095       break
12096     elif test -f "$p/ssl.h"; then
12097       ap_ssltk_incdir="$p"
12098       break
12099     fi
12100   done
12101   if test "x$ap_ssltk_incdir" = "x"; then
12102     { { $as_echo "$as_me:$LINENO: error: OpenSSL headers not found" >&5
12103 $as_echo "$as_me: error: OpenSSL headers not found" >&2;}
12104    { (exit 1); exit 1; }; }
12105   fi
12106   { $as_echo "$as_me:$LINENO: result: $ap_ssltk_incdir" >&5
12107 $as_echo "$ap_ssltk_incdir" >&6; }
12108
12109   { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit libraries" >&5
12110 $as_echo_n "checking for SSL/TLS toolkit libraries... " >&6; }
12111   ap_ssltk_libdir=""
12112   for p in $ap_ssltk_base/lib /usr/local/openssl/lib \
12113            /usr/local/ssl/lib /usr/local/lib /usr/lib /lib /usr/lib64; do
12114     if test -f "$p/libssl.a" -o -f "$p/libssl.so" -o -f "$p/libssl.dylib"; then
12115       ap_ssltk_libdir="$p"
12116       break
12117     fi
12118   done
12119   if test ".$ap_ssltk_libdir" = .; then
12120     { { $as_echo "$as_me:$LINENO: error: OpenSSL libraries not found" >&5
12121 $as_echo "$as_me: error: OpenSSL libraries not found" >&2;}
12122    { (exit 1); exit 1; }; }
12123   fi
12124   { $as_echo "$as_me:$LINENO: result: $ap_ssltk_libdir" >&5
12125 $as_echo "$ap_ssltk_libdir" >&6; }
12126
12127
12128   if test "x$INCLUDES" = "x"; then
12129     echo "  setting INCLUDES to \"-I$ap_ssltk_incdir/openssl\""
12130     INCLUDES="-I$ap_ssltk_incdir/openssl"
12131   else
12132     apr_addto_bugger="-I$ap_ssltk_incdir/openssl"
12133     for i in $apr_addto_bugger; do
12134       apr_addto_duplicate="0"
12135       for j in $INCLUDES; do
12136         if test "x$i" = "x$j"; then
12137           apr_addto_duplicate="1"
12138           break
12139         fi
12140       done
12141       if test $apr_addto_duplicate = "0"; then
12142         echo "  adding \"$i\" to INCLUDES"
12143         INCLUDES="$INCLUDES $i"
12144       fi
12145     done
12146   fi
12147
12148   if test "x$ap_ssltk_incdir" != "x/usr/include"; then
12149
12150   if test "x$INCLUDES" = "x"; then
12151     echo "  setting INCLUDES to \"-I$ap_ssltk_incdir\""
12152     INCLUDES="-I$ap_ssltk_incdir"
12153   else
12154     apr_addto_bugger="-I$ap_ssltk_incdir"
12155     for i in $apr_addto_bugger; do
12156       apr_addto_duplicate="0"
12157       for j in $INCLUDES; do
12158         if test "x$i" = "x$j"; then
12159           apr_addto_duplicate="1"
12160           break
12161         fi
12162       done
12163       if test $apr_addto_duplicate = "0"; then
12164         echo "  adding \"$i\" to INCLUDES"
12165         INCLUDES="$INCLUDES $i"
12166       fi
12167     done
12168   fi
12169
12170   fi
12171   if test "x$ap_ssltk_libdir" != "x/usr/lib"; then
12172
12173   if test "x$LDFLAGS" = "x"; then
12174     echo "  setting LDFLAGS to \"-L$ap_ssltk_libdir\""
12175     LDFLAGS="-L$ap_ssltk_libdir"
12176   else
12177     apr_addto_bugger="-L$ap_ssltk_libdir"
12178     for i in $apr_addto_bugger; do
12179       apr_addto_duplicate="0"
12180       for j in $LDFLAGS; do
12181         if test "x$i" = "x$j"; then
12182           apr_addto_duplicate="1"
12183           break
12184         fi
12185       done
12186       if test $apr_addto_duplicate = "0"; then
12187         echo "  adding \"$i\" to LDFLAGS"
12188         LDFLAGS="$LDFLAGS $i"
12189       fi
12190     done
12191   fi
12192
12193     if test "x$ap_platform_runtime_link_flag" != "x"; then
12194
12195   if test "x$LDFLAGS" = "x"; then
12196     echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_ssltk_libdir\""
12197     LDFLAGS="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
12198   else
12199     apr_addto_bugger="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
12200     for i in $apr_addto_bugger; do
12201       apr_addto_duplicate="0"
12202       for j in $LDFLAGS; do
12203         if test "x$i" = "x$j"; then
12204           apr_addto_duplicate="1"
12205           break
12206         fi
12207       done
12208       if test $apr_addto_duplicate = "0"; then
12209         echo "  adding \"$i\" to LDFLAGS"
12210         LDFLAGS="$LDFLAGS $i"
12211       fi
12212     done
12213   fi
12214
12215     fi
12216   fi
12217   # Put SSL libraries in SSL_LIBS.
12218
12219   echo "  forcing SSL_LIBS to \"-lssl -lcrypto\""
12220   SSL_LIBS="-lssl -lcrypto"
12221
12222   pkg-config openssl 2> /dev/null
12223   if test $? -eq 0; then
12224     ap_ssltk_incdep=`pkg-config --cflags-only-I openssl`
12225
12226   if test "x$INCLUDES" = "x"; then
12227     echo "  setting INCLUDES to \"$ap_ssltk_incdep\""
12228     INCLUDES="$ap_ssltk_incdep"
12229   else
12230     apr_addto_bugger="$ap_ssltk_incdep"
12231     for i in $apr_addto_bugger; do
12232       apr_addto_duplicate="0"
12233       for j in $INCLUDES; do
12234         if test "x$i" = "x$j"; then
12235           apr_addto_duplicate="1"
12236           break
12237         fi
12238       done
12239       if test $apr_addto_duplicate = "0"; then
12240         echo "  adding \"$i\" to INCLUDES"
12241         INCLUDES="$INCLUDES $i"
12242       fi
12243     done
12244   fi
12245
12246     ap_ssltk_libdep=`pkg-config --libs openssl`
12247
12248   echo "  forcing SSL_LIBS to \"$ap_ssltk_libdep\""
12249   SSL_LIBS="$ap_ssltk_libdep"
12250
12251   fi
12252
12253   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSL_LIBS"
12254
12255
12256   ap_cv_ssltk="$ap_ssltk_base"
12257 fi
12258
12259
12260   echo "  forcing MOD_SSL_LDADD to \"\$(SSL_LIBS)\""
12261   MOD_SSL_LDADD="\$(SSL_LIBS)"
12262
12263
12264 for ac_func in SSL_set_state
12265 do
12266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12267 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12268 $as_echo_n "checking for $ac_func... " >&6; }
12269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12270   $as_echo_n "(cached) " >&6
12271 else
12272   cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12280 #define $ac_func innocuous_$ac_func
12281
12282 /* System header to define __stub macros and hopefully few prototypes,
12283     which can conflict with char $ac_func (); below.
12284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12285     <limits.h> exists even on freestanding compilers.  */
12286
12287 #ifdef __STDC__
12288 # include <limits.h>
12289 #else
12290 # include <assert.h>
12291 #endif
12292
12293 #undef $ac_func
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296    Use char because int might match the return type of a GCC
12297    builtin and then its argument prototype would still apply.  */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char $ac_func ();
12302 /* The GNU C library defines this for functions which it implements
12303     to always fail with ENOSYS.  Some functions are actually named
12304     something starting with __ and the normal name is an alias.  */
12305 #if defined __stub_$ac_func || defined __stub___$ac_func
12306 choke me
12307 #endif
12308
12309 int
12310 main ()
12311 {
12312 return $ac_func ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (ac_try="$ac_link"
12319 case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12324 $as_echo "$ac_try_echo") >&5
12325   (eval "$ac_link") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && {
12332          test -z "$ac_c_werror_flag" ||
12333          test ! -s conftest.err
12334        } && test -s conftest$ac_exeext && {
12335          test "$cross_compiling" = yes ||
12336          $as_test_x conftest$ac_exeext
12337        }; then
12338   eval "$as_ac_var=yes"
12339 else
12340   $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343         eval "$as_ac_var=no"
12344 fi
12345
12346 rm -rf conftest.dSYM
12347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12348       conftest$ac_exeext conftest.$ac_ext
12349 fi
12350 ac_res=`eval 'as_val=${'$as_ac_var'}
12351                  $as_echo "$as_val"'`
12352                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12353 $as_echo "$ac_res" >&6; }
12354 as_val=`eval 'as_val=${'$as_ac_var'}
12355                  $as_echo "$as_val"'`
12356    if test "x$as_val" = x""yes; then
12357   cat >>confdefs.h <<_ACEOF
12358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359 _ACEOF
12360
12361 fi
12362 done
12363
12364
12365 for ac_func in SSL_set_cert_store
12366 do
12367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 $as_echo_n "checking for $ac_func... " >&6; }
12370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12371   $as_echo_n "(cached) " >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12381 #define $ac_func innocuous_$ac_func
12382
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char $ac_func (); below.
12385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386     <limits.h> exists even on freestanding compilers.  */
12387
12388 #ifdef __STDC__
12389 # include <limits.h>
12390 #else
12391 # include <assert.h>
12392 #endif
12393
12394 #undef $ac_func
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char $ac_func ();
12403 /* The GNU C library defines this for functions which it implements
12404     to always fail with ENOSYS.  Some functions are actually named
12405     something starting with __ and the normal name is an alias.  */
12406 #if defined __stub_$ac_func || defined __stub___$ac_func
12407 choke me
12408 #endif
12409
12410 int
12411 main ()
12412 {
12413 return $ac_func ();
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12425 $as_echo "$ac_try_echo") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && {
12433          test -z "$ac_c_werror_flag" ||
12434          test ! -s conftest.err
12435        } && test -s conftest$ac_exeext && {
12436          test "$cross_compiling" = yes ||
12437          $as_test_x conftest$ac_exeext
12438        }; then
12439   eval "$as_ac_var=yes"
12440 else
12441   $as_echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         eval "$as_ac_var=no"
12445 fi
12446
12447 rm -rf conftest.dSYM
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449       conftest$ac_exeext conftest.$ac_ext
12450 fi
12451 ac_res=`eval 'as_val=${'$as_ac_var'}
12452                  $as_echo "$as_val"'`
12453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12454 $as_echo "$ac_res" >&6; }
12455 as_val=`eval 'as_val=${'$as_ac_var'}
12456                  $as_echo "$as_val"'`
12457    if test "x$as_val" = x""yes; then
12458   cat >>confdefs.h <<_ACEOF
12459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12460 _ACEOF
12461
12462 fi
12463 done
12464
12465
12466                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
12467 $as_echo_n "checking whether to enable mod_ssl... " >&6; }
12468                     if test "$enable_ssl" = "no"; then
12469                       if test "$_apmod_error_fatal" = "no"; then
12470                         _apmod_extra_msg=" (disabled)"
12471                       else
12472                         { { $as_echo "$as_me:$LINENO: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&5
12473 $as_echo "$as_me: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&2;}
12474    { (exit 1); exit 1; }; }
12475                       fi
12476                     fi
12477   fi
12478   { $as_echo "$as_me:$LINENO: result: $enable_ssl$_apmod_extra_msg" >&5
12479 $as_echo "$enable_ssl$_apmod_extra_msg" >&6; }
12480   if test "$enable_ssl" != "no"; then
12481     case "$enable_ssl" in
12482     shared*)
12483       enable_ssl=`echo $ac_n $enable_ssl$ac_c|sed 's/shared,*//'`
12484       sharedobjs=yes
12485       shared=yes
12486       DSO_MODULES="$DSO_MODULES ssl"
12487       ;;
12488     *)
12489       MODLIST="$MODLIST ssl"
12490       if test "ssl" = "so"; then
12491           sharedobjs=yes
12492       fi
12493       shared="";;
12494     esac
12495
12496
12497   if test -z "$ssl_objs"; then
12498     objects="mod_ssl.lo"
12499   else
12500     objects="$ssl_objs"
12501   fi
12502
12503   if test -z "$module_standalone"; then
12504     if test -z "$shared"; then
12505       libname="mod_ssl.la"
12506       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12507       modpath_static="$modpath_static $libname"
12508       cat >>$modpath_current/modules.mk<<EOF
12509 $libname: $objects
12510         \$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
12511 EOF
12512     else
12513       apache_need_shared=yes
12514       libname="mod_ssl.la"
12515       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12516       modpath_shared="$modpath_shared $libname"
12517       cat >>$modpath_current/modules.mk<<EOF
12518 $libname: $shobjects
12519         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SSL_LDADD)
12520 EOF
12521     fi
12522   fi
12523
12524
12525   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"
12526
12527
12528
12529   fi
12530
12531
12532
12533   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
12534   echo "static = $modpath_static" >> $modpath_current/modules.mk
12535   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
12536   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
12537     MODULE_DIRS="$MODULE_DIRS $current_dir"
12538   else
12539     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
12540   fi
12541
12542   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
12543
12544
12545
12546
12547
12548
12549   current_dir=test
12550   modpath_current=modules/test
12551   modpath_static=
12552   modpath_shared=
12553   test -d test || $srcdir/build/mkdir.sh $modpath_current
12554   > $modpath_current/modules.mk
12555
12556
12557
12558   { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_export" >&5
12559 $as_echo_n "checking whether to enable mod_optional_hook_export... " >&6; }
12560     # Check whether --enable-optional-hook-export was given.
12561 if test "${enable_optional_hook_export+set}" = set; then
12562   enableval=$enable_optional_hook_export;
12563 else
12564   enable_optional_hook_export=no
12565 fi
12566
12567     _apmod_extra_msg=""
12568       if test "$module_selection" = "most" -a "$enable_optional_hook_export" = "most"; then
12569     _apmod_error_fatal="no"
12570   else
12571     _apmod_error_fatal="yes"
12572   fi
12573   if test "$enable_optional_hook_export" = "static"; then
12574     enable_optional_hook_export=yes
12575   elif test "$enable_optional_hook_export" = "yes"; then
12576     enable_optional_hook_export=$module_default
12577     _apmod_extra_msg=" ($module_selection)"
12578   elif test "$enable_optional_hook_export" = "most"; then
12579     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12580       enable_optional_hook_export=$module_default
12581       _apmod_extra_msg=" ($module_selection)"
12582     elif test "$enable_optional_hook_export" != "yes"; then
12583       enable_optional_hook_export=no
12584     fi
12585   elif test "$enable_optional_hook_export" = "maybe-all"; then
12586     if test "$module_selection" = "all"; then
12587       enable_optional_hook_export=$module_default
12588       _apmod_extra_msg=" (all)"
12589     else
12590       enable_optional_hook_export=no
12591     fi
12592   fi
12593   if test "$enable_optional_hook_export" != "no"; then
12594             :
12595   fi
12596   { $as_echo "$as_me:$LINENO: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
12597 $as_echo "$enable_optional_hook_export$_apmod_extra_msg" >&6; }
12598   if test "$enable_optional_hook_export" != "no"; then
12599     case "$enable_optional_hook_export" in
12600     shared*)
12601       enable_optional_hook_export=`echo $ac_n $enable_optional_hook_export$ac_c|sed 's/shared,*//'`
12602       sharedobjs=yes
12603       shared=yes
12604       DSO_MODULES="$DSO_MODULES optional_hook_export"
12605       ;;
12606     *)
12607       MODLIST="$MODLIST optional_hook_export"
12608       if test "optional_hook_export" = "so"; then
12609           sharedobjs=yes
12610       fi
12611       shared="";;
12612     esac
12613
12614
12615   if test -z ""; then
12616     objects="mod_optional_hook_export.lo"
12617   else
12618     objects=""
12619   fi
12620
12621   if test -z "$module_standalone"; then
12622     if test -z "$shared"; then
12623       libname="mod_optional_hook_export.la"
12624       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12625       modpath_static="$modpath_static $libname"
12626       cat >>$modpath_current/modules.mk<<EOF
12627 $libname: $objects
12628         \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
12629 EOF
12630     else
12631       apache_need_shared=yes
12632       libname="mod_optional_hook_export.la"
12633       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12634       modpath_shared="$modpath_shared $libname"
12635       cat >>$modpath_current/modules.mk<<EOF
12636 $libname: $shobjects
12637         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
12638 EOF
12639     fi
12640   fi
12641
12642
12643   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"
12644
12645
12646
12647   fi
12648
12649
12650   { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_import" >&5
12651 $as_echo_n "checking whether to enable mod_optional_hook_import... " >&6; }
12652     # Check whether --enable-optional-hook-import was given.
12653 if test "${enable_optional_hook_import+set}" = set; then
12654   enableval=$enable_optional_hook_import;
12655 else
12656   enable_optional_hook_import=no
12657 fi
12658
12659     _apmod_extra_msg=""
12660       if test "$module_selection" = "most" -a "$enable_optional_hook_import" = "most"; then
12661     _apmod_error_fatal="no"
12662   else
12663     _apmod_error_fatal="yes"
12664   fi
12665   if test "$enable_optional_hook_import" = "static"; then
12666     enable_optional_hook_import=yes
12667   elif test "$enable_optional_hook_import" = "yes"; then
12668     enable_optional_hook_import=$module_default
12669     _apmod_extra_msg=" ($module_selection)"
12670   elif test "$enable_optional_hook_import" = "most"; then
12671     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12672       enable_optional_hook_import=$module_default
12673       _apmod_extra_msg=" ($module_selection)"
12674     elif test "$enable_optional_hook_import" != "yes"; then
12675       enable_optional_hook_import=no
12676     fi
12677   elif test "$enable_optional_hook_import" = "maybe-all"; then
12678     if test "$module_selection" = "all"; then
12679       enable_optional_hook_import=$module_default
12680       _apmod_extra_msg=" (all)"
12681     else
12682       enable_optional_hook_import=no
12683     fi
12684   fi
12685   if test "$enable_optional_hook_import" != "no"; then
12686             :
12687   fi
12688   { $as_echo "$as_me:$LINENO: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
12689 $as_echo "$enable_optional_hook_import$_apmod_extra_msg" >&6; }
12690   if test "$enable_optional_hook_import" != "no"; then
12691     case "$enable_optional_hook_import" in
12692     shared*)
12693       enable_optional_hook_import=`echo $ac_n $enable_optional_hook_import$ac_c|sed 's/shared,*//'`
12694       sharedobjs=yes
12695       shared=yes
12696       DSO_MODULES="$DSO_MODULES optional_hook_import"
12697       ;;
12698     *)
12699       MODLIST="$MODLIST optional_hook_import"
12700       if test "optional_hook_import" = "so"; then
12701           sharedobjs=yes
12702       fi
12703       shared="";;
12704     esac
12705
12706
12707   if test -z ""; then
12708     objects="mod_optional_hook_import.lo"
12709   else
12710     objects=""
12711   fi
12712
12713   if test -z "$module_standalone"; then
12714     if test -z "$shared"; then
12715       libname="mod_optional_hook_import.la"
12716       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12717       modpath_static="$modpath_static $libname"
12718       cat >>$modpath_current/modules.mk<<EOF
12719 $libname: $objects
12720         \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
12721 EOF
12722     else
12723       apache_need_shared=yes
12724       libname="mod_optional_hook_import.la"
12725       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12726       modpath_shared="$modpath_shared $libname"
12727       cat >>$modpath_current/modules.mk<<EOF
12728 $libname: $shobjects
12729         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
12730 EOF
12731     fi
12732   fi
12733
12734
12735   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"
12736
12737
12738
12739   fi
12740
12741
12742   { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_import" >&5
12743 $as_echo_n "checking whether to enable mod_optional_fn_import... " >&6; }
12744     # Check whether --enable-optional-fn-import was given.
12745 if test "${enable_optional_fn_import+set}" = set; then
12746   enableval=$enable_optional_fn_import;
12747 else
12748   enable_optional_fn_import=no
12749 fi
12750
12751     _apmod_extra_msg=""
12752       if test "$module_selection" = "most" -a "$enable_optional_fn_import" = "most"; then
12753     _apmod_error_fatal="no"
12754   else
12755     _apmod_error_fatal="yes"
12756   fi
12757   if test "$enable_optional_fn_import" = "static"; then
12758     enable_optional_fn_import=yes
12759   elif test "$enable_optional_fn_import" = "yes"; then
12760     enable_optional_fn_import=$module_default
12761     _apmod_extra_msg=" ($module_selection)"
12762   elif test "$enable_optional_fn_import" = "most"; then
12763     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12764       enable_optional_fn_import=$module_default
12765       _apmod_extra_msg=" ($module_selection)"
12766     elif test "$enable_optional_fn_import" != "yes"; then
12767       enable_optional_fn_import=no
12768     fi
12769   elif test "$enable_optional_fn_import" = "maybe-all"; then
12770     if test "$module_selection" = "all"; then
12771       enable_optional_fn_import=$module_default
12772       _apmod_extra_msg=" (all)"
12773     else
12774       enable_optional_fn_import=no
12775     fi
12776   fi
12777   if test "$enable_optional_fn_import" != "no"; then
12778             :
12779   fi
12780   { $as_echo "$as_me:$LINENO: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
12781 $as_echo "$enable_optional_fn_import$_apmod_extra_msg" >&6; }
12782   if test "$enable_optional_fn_import" != "no"; then
12783     case "$enable_optional_fn_import" in
12784     shared*)
12785       enable_optional_fn_import=`echo $ac_n $enable_optional_fn_import$ac_c|sed 's/shared,*//'`
12786       sharedobjs=yes
12787       shared=yes
12788       DSO_MODULES="$DSO_MODULES optional_fn_import"
12789       ;;
12790     *)
12791       MODLIST="$MODLIST optional_fn_import"
12792       if test "optional_fn_import" = "so"; then
12793           sharedobjs=yes
12794       fi
12795       shared="";;
12796     esac
12797
12798
12799   if test -z ""; then
12800     objects="mod_optional_fn_import.lo"
12801   else
12802     objects=""
12803   fi
12804
12805   if test -z "$module_standalone"; then
12806     if test -z "$shared"; then
12807       libname="mod_optional_fn_import.la"
12808       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12809       modpath_static="$modpath_static $libname"
12810       cat >>$modpath_current/modules.mk<<EOF
12811 $libname: $objects
12812         \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
12813 EOF
12814     else
12815       apache_need_shared=yes
12816       libname="mod_optional_fn_import.la"
12817       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12818       modpath_shared="$modpath_shared $libname"
12819       cat >>$modpath_current/modules.mk<<EOF
12820 $libname: $shobjects
12821         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
12822 EOF
12823     fi
12824   fi
12825
12826
12827   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"
12828
12829
12830
12831   fi
12832
12833
12834   { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_export" >&5
12835 $as_echo_n "checking whether to enable mod_optional_fn_export... " >&6; }
12836     # Check whether --enable-optional-fn-export was given.
12837 if test "${enable_optional_fn_export+set}" = set; then
12838   enableval=$enable_optional_fn_export;
12839 else
12840   enable_optional_fn_export=no
12841 fi
12842
12843     _apmod_extra_msg=""
12844       if test "$module_selection" = "most" -a "$enable_optional_fn_export" = "most"; then
12845     _apmod_error_fatal="no"
12846   else
12847     _apmod_error_fatal="yes"
12848   fi
12849   if test "$enable_optional_fn_export" = "static"; then
12850     enable_optional_fn_export=yes
12851   elif test "$enable_optional_fn_export" = "yes"; then
12852     enable_optional_fn_export=$module_default
12853     _apmod_extra_msg=" ($module_selection)"
12854   elif test "$enable_optional_fn_export" = "most"; then
12855     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12856       enable_optional_fn_export=$module_default
12857       _apmod_extra_msg=" ($module_selection)"
12858     elif test "$enable_optional_fn_export" != "yes"; then
12859       enable_optional_fn_export=no
12860     fi
12861   elif test "$enable_optional_fn_export" = "maybe-all"; then
12862     if test "$module_selection" = "all"; then
12863       enable_optional_fn_export=$module_default
12864       _apmod_extra_msg=" (all)"
12865     else
12866       enable_optional_fn_export=no
12867     fi
12868   fi
12869   if test "$enable_optional_fn_export" != "no"; then
12870             :
12871   fi
12872   { $as_echo "$as_me:$LINENO: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
12873 $as_echo "$enable_optional_fn_export$_apmod_extra_msg" >&6; }
12874   if test "$enable_optional_fn_export" != "no"; then
12875     case "$enable_optional_fn_export" in
12876     shared*)
12877       enable_optional_fn_export=`echo $ac_n $enable_optional_fn_export$ac_c|sed 's/shared,*//'`
12878       sharedobjs=yes
12879       shared=yes
12880       DSO_MODULES="$DSO_MODULES optional_fn_export"
12881       ;;
12882     *)
12883       MODLIST="$MODLIST optional_fn_export"
12884       if test "optional_fn_export" = "so"; then
12885           sharedobjs=yes
12886       fi
12887       shared="";;
12888     esac
12889
12890
12891   if test -z ""; then
12892     objects="mod_optional_fn_export.lo"
12893   else
12894     objects=""
12895   fi
12896
12897   if test -z "$module_standalone"; then
12898     if test -z "$shared"; then
12899       libname="mod_optional_fn_export.la"
12900       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12901       modpath_static="$modpath_static $libname"
12902       cat >>$modpath_current/modules.mk<<EOF
12903 $libname: $objects
12904         \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
12905 EOF
12906     else
12907       apache_need_shared=yes
12908       libname="mod_optional_fn_export.la"
12909       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12910       modpath_shared="$modpath_shared $libname"
12911       cat >>$modpath_current/modules.mk<<EOF
12912 $libname: $shobjects
12913         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
12914 EOF
12915     fi
12916   fi
12917
12918
12919   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"
12920
12921
12922
12923   fi
12924
12925
12926   { $as_echo "$as_me:$LINENO: checking whether to enable mod_bucketeer" >&5
12927 $as_echo_n "checking whether to enable mod_bucketeer... " >&6; }
12928     # Check whether --enable-bucketeer was given.
12929 if test "${enable_bucketeer+set}" = set; then
12930   enableval=$enable_bucketeer;
12931 else
12932   enable_bucketeer=no
12933 fi
12934
12935     _apmod_extra_msg=""
12936       if test "$module_selection" = "most" -a "$enable_bucketeer" = "most"; then
12937     _apmod_error_fatal="no"
12938   else
12939     _apmod_error_fatal="yes"
12940   fi
12941   if test "$enable_bucketeer" = "static"; then
12942     enable_bucketeer=yes
12943   elif test "$enable_bucketeer" = "yes"; then
12944     enable_bucketeer=$module_default
12945     _apmod_extra_msg=" ($module_selection)"
12946   elif test "$enable_bucketeer" = "most"; then
12947     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12948       enable_bucketeer=$module_default
12949       _apmod_extra_msg=" ($module_selection)"
12950     elif test "$enable_bucketeer" != "yes"; then
12951       enable_bucketeer=no
12952     fi
12953   elif test "$enable_bucketeer" = "maybe-all"; then
12954     if test "$module_selection" = "all"; then
12955       enable_bucketeer=$module_default
12956       _apmod_extra_msg=" (all)"
12957     else
12958       enable_bucketeer=no
12959     fi
12960   fi
12961   if test "$enable_bucketeer" != "no"; then
12962             :
12963   fi
12964   { $as_echo "$as_me:$LINENO: result: $enable_bucketeer$_apmod_extra_msg" >&5
12965 $as_echo "$enable_bucketeer$_apmod_extra_msg" >&6; }
12966   if test "$enable_bucketeer" != "no"; then
12967     case "$enable_bucketeer" in
12968     shared*)
12969       enable_bucketeer=`echo $ac_n $enable_bucketeer$ac_c|sed 's/shared,*//'`
12970       sharedobjs=yes
12971       shared=yes
12972       DSO_MODULES="$DSO_MODULES bucketeer"
12973       ;;
12974     *)
12975       MODLIST="$MODLIST bucketeer"
12976       if test "bucketeer" = "so"; then
12977           sharedobjs=yes
12978       fi
12979       shared="";;
12980     esac
12981
12982
12983   if test -z ""; then
12984     objects="mod_bucketeer.lo"
12985   else
12986     objects=""
12987   fi
12988
12989   if test -z "$module_standalone"; then
12990     if test -z "$shared"; then
12991       libname="mod_bucketeer.la"
12992       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12993       modpath_static="$modpath_static $libname"
12994       cat >>$modpath_current/modules.mk<<EOF
12995 $libname: $objects
12996         \$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
12997 EOF
12998     else
12999       apache_need_shared=yes
13000       libname="mod_bucketeer.la"
13001       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13002       modpath_shared="$modpath_shared $libname"
13003       cat >>$modpath_current/modules.mk<<EOF
13004 $libname: $shobjects
13005         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUCKETEER_LDADD)
13006 EOF
13007     fi
13008   fi
13009
13010
13011   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"
13012
13013
13014
13015   fi
13016
13017
13018
13019   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13020   echo "static = $modpath_static" >> $modpath_current/modules.mk
13021   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13022   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13023     MODULE_DIRS="$MODULE_DIRS $current_dir"
13024   else
13025     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13026   fi
13027
13028   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13029
13030
13031
13032 if test "$OS" = "beos" ; then
13033
13034   if test "x$CFLAGS" = "x"; then
13035     echo "  setting CFLAGS to \"-DBEOS\""
13036     CFLAGS="-DBEOS"
13037   else
13038     apr_addto_bugger="-DBEOS"
13039     for i in $apr_addto_bugger; do
13040       apr_addto_duplicate="0"
13041       for j in $CFLAGS; do
13042         if test "x$i" = "x$j"; then
13043           apr_addto_duplicate="1"
13044           break
13045         fi
13046       done
13047       if test $apr_addto_duplicate = "0"; then
13048         echo "  adding \"$i\" to CFLAGS"
13049         CFLAGS="$CFLAGS $i"
13050       fi
13051     done
13052   fi
13053
13054 fi
13055
13056 { $as_echo "$as_me:$LINENO: checking for target platform" >&5
13057 $as_echo_n "checking for target platform... " >&6; }
13058
13059 case $host in
13060 *beos*)
13061   OS="beos"
13062   OS_DIR=$OS
13063   ;;
13064 *pc-os2_emx*)
13065   OS="os2"
13066   OS_DIR=$OS
13067   ;;
13068 bs2000*)
13069   OS="unix"
13070   OS_DIR=bs2000  # only the OS_DIR is platform specific.
13071   ;;
13072 *cygwin*)
13073   OS="cygwin"
13074   OS_DIR="unix"
13075   ;;
13076 *)
13077   OS="unix"
13078   OS_DIR=$OS;;
13079 esac
13080
13081 { $as_echo "$as_me:$LINENO: result: $OS" >&5
13082 $as_echo "$OS" >&6; }
13083
13084   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/$OS_DIR/Makefile"
13085
13086
13087 if test "$OS" = "os2" ; then
13088
13089   if test "x$CFLAGS" = "x"; then
13090     echo "  setting CFLAGS to \"-DOS2 -O2\""
13091     CFLAGS="-DOS2 -O2"
13092   else
13093     apr_addto_bugger="-DOS2 -O2"
13094     for i in $apr_addto_bugger; do
13095       apr_addto_duplicate="0"
13096       for j in $CFLAGS; do
13097         if test "x$i" = "x$j"; then
13098           apr_addto_duplicate="1"
13099           break
13100         fi
13101       done
13102       if test $apr_addto_duplicate = "0"; then
13103         echo "  adding \"$i\" to CFLAGS"
13104         CFLAGS="$CFLAGS $i"
13105       fi
13106     done
13107   fi
13108
13109 fi
13110
13111 if test "$OS" = "unix" ; then
13112
13113   { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
13114 $as_echo_n "checking for rlim_t... " >&6; }
13115 if test "${ac_cv_type_rlim_t+set}" = set; then
13116   $as_echo_n "(cached) " >&6
13117 else
13118
13119     cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h.  */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h.  */
13125
13126 #include <sys/types.h>
13127 #include <sys/time.h>
13128 #include <sys/resource.h>
13129
13130 int
13131 main ()
13132 {
13133 rlim_t spoon;
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (ac_try="$ac_compile"
13140 case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146   (eval "$ac_compile") 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } && {
13153          test -z "$ac_c_werror_flag" ||
13154          test ! -s conftest.err
13155        } && test -s conftest.$ac_objext; then
13156
13157       ac_cv_type_rlim_t=yes
13158
13159 else
13160   $as_echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163         ac_cv_type_rlim_t=no
13164
13165 fi
13166
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168
13169 fi
13170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
13171 $as_echo "$ac_cv_type_rlim_t" >&6; }
13172   if test "$ac_cv_type_rlim_t" = "no" ; then
13173
13174 cat >>confdefs.h <<\_ACEOF
13175 #define rlim_t int
13176 _ACEOF
13177
13178   fi
13179
13180
13181
13182
13183
13184
13185 for ac_header in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
13186 do
13187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13189   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13190 $as_echo_n "checking for $ac_header... " >&6; }
13191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13192   $as_echo_n "(cached) " >&6
13193 fi
13194 ac_res=`eval 'as_val=${'$as_ac_Header'}
13195                  $as_echo "$as_val"'`
13196                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13197 $as_echo "$ac_res" >&6; }
13198 else
13199   # Is the header compilable?
13200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13201 $as_echo_n "checking $ac_header usability... " >&6; }
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 $ac_includes_default
13209 #include <$ac_header>
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (ac_try="$ac_compile"
13213 case "(($ac_try" in
13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215   *) ac_try_echo=$ac_try;;
13216 esac
13217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13218 $as_echo "$ac_try_echo") >&5
13219   (eval "$ac_compile") 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } && {
13226          test -z "$ac_c_werror_flag" ||
13227          test ! -s conftest.err
13228        } && test -s conftest.$ac_objext; then
13229   ac_header_compiler=yes
13230 else
13231   $as_echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234         ac_header_compiler=no
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239 $as_echo "$ac_header_compiler" >&6; }
13240
13241 # Is the header present?
13242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13243 $as_echo_n "checking $ac_header presence... " >&6; }
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250 #include <$ac_header>
13251 _ACEOF
13252 if { (ac_try="$ac_cpp conftest.$ac_ext"
13253 case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258 $as_echo "$ac_try_echo") >&5
13259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13260   ac_status=$?
13261   grep -v '^ *+' conftest.er1 >conftest.err
13262   rm -f conftest.er1
13263   cat conftest.err >&5
13264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } >/dev/null && {
13266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13267          test ! -s conftest.err
13268        }; then
13269   ac_header_preproc=yes
13270 else
13271   $as_echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274   ac_header_preproc=no
13275 fi
13276
13277 rm -f conftest.err conftest.$ac_ext
13278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13279 $as_echo "$ac_header_preproc" >&6; }
13280
13281 # So?  What about this header?
13282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13283   yes:no: )
13284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13288     ac_header_preproc=yes
13289     ;;
13290   no:yes:* )
13291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13294 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13298 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13303
13304     ;;
13305 esac
13306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 $as_echo_n "checking for $ac_header... " >&6; }
13308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309   $as_echo_n "(cached) " >&6
13310 else
13311   eval "$as_ac_Header=\$ac_header_preproc"
13312 fi
13313 ac_res=`eval 'as_val=${'$as_ac_Header'}
13314                  $as_echo "$as_val"'`
13315                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13316 $as_echo "$ac_res" >&6; }
13317
13318 fi
13319 as_val=`eval 'as_val=${'$as_ac_Header'}
13320                  $as_echo "$as_val"'`
13321    if test "x$as_val" = x""yes; then
13322   cat >>confdefs.h <<_ACEOF
13323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324 _ACEOF
13325
13326 fi
13327
13328 done
13329
13330
13331
13332
13333 for ac_func in setsid killpg
13334 do
13335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13337 $as_echo_n "checking for $ac_func... " >&6; }
13338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13339   $as_echo_n "(cached) " >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13349 #define $ac_func innocuous_$ac_func
13350
13351 /* System header to define __stub macros and hopefully few prototypes,
13352     which can conflict with char $ac_func (); below.
13353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354     <limits.h> exists even on freestanding compilers.  */
13355
13356 #ifdef __STDC__
13357 # include <limits.h>
13358 #else
13359 # include <assert.h>
13360 #endif
13361
13362 #undef $ac_func
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365    Use char because int might match the return type of a GCC
13366    builtin and then its argument prototype would still apply.  */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char $ac_func ();
13371 /* The GNU C library defines this for functions which it implements
13372     to always fail with ENOSYS.  Some functions are actually named
13373     something starting with __ and the normal name is an alias.  */
13374 #if defined __stub_$ac_func || defined __stub___$ac_func
13375 choke me
13376 #endif
13377
13378 int
13379 main ()
13380 {
13381 return $ac_func ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394   (eval "$ac_link") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && {
13401          test -z "$ac_c_werror_flag" ||
13402          test ! -s conftest.err
13403        } && test -s conftest$ac_exeext && {
13404          test "$cross_compiling" = yes ||
13405          $as_test_x conftest$ac_exeext
13406        }; then
13407   eval "$as_ac_var=yes"
13408 else
13409   $as_echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412         eval "$as_ac_var=no"
13413 fi
13414
13415 rm -rf conftest.dSYM
13416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417       conftest$ac_exeext conftest.$ac_ext
13418 fi
13419 ac_res=`eval 'as_val=${'$as_ac_var'}
13420                  $as_echo "$as_val"'`
13421                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13422 $as_echo "$ac_res" >&6; }
13423 as_val=`eval 'as_val=${'$as_ac_var'}
13424                  $as_echo "$as_val"'`
13425    if test "x$as_val" = x""yes; then
13426   cat >>confdefs.h <<_ACEOF
13427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13428 _ACEOF
13429
13430 fi
13431 done
13432
13433 fi
13434
13435
13436
13437
13438
13439 for ac_header in bstring.h unistd.h
13440 do
13441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13443   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 $as_echo_n "checking for $ac_header... " >&6; }
13445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13446   $as_echo_n "(cached) " >&6
13447 fi
13448 ac_res=`eval 'as_val=${'$as_ac_Header'}
13449                  $as_echo "$as_val"'`
13450                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451 $as_echo "$ac_res" >&6; }
13452 else
13453   # Is the header compilable?
13454 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13455 $as_echo_n "checking $ac_header usability... " >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462 $ac_includes_default
13463 #include <$ac_header>
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13472 $as_echo "$ac_try_echo") >&5
13473   (eval "$ac_compile") 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } && {
13480          test -z "$ac_c_werror_flag" ||
13481          test ! -s conftest.err
13482        } && test -s conftest.$ac_objext; then
13483   ac_header_compiler=yes
13484 else
13485   $as_echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488         ac_header_compiler=no
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 $as_echo "$ac_header_compiler" >&6; }
13494
13495 # Is the header present?
13496 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 $as_echo_n "checking $ac_header presence... " >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 #include <$ac_header>
13505 _ACEOF
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13514   ac_status=$?
13515   grep -v '^ *+' conftest.er1 >conftest.err
13516   rm -f conftest.er1
13517   cat conftest.err >&5
13518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } >/dev/null && {
13520          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13521          test ! -s conftest.err
13522        }; then
13523   ac_header_preproc=yes
13524 else
13525   $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528   ac_header_preproc=no
13529 fi
13530
13531 rm -f conftest.err conftest.$ac_ext
13532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533 $as_echo "$ac_header_preproc" >&6; }
13534
13535 # So?  What about this header?
13536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537   yes:no: )
13538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13542     ac_header_preproc=yes
13543     ;;
13544   no:yes:* )
13545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13548 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13550 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13552 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13556 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13557
13558     ;;
13559 esac
13560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13561 $as_echo_n "checking for $ac_header... " >&6; }
13562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13563   $as_echo_n "(cached) " >&6
13564 else
13565   eval "$as_ac_Header=\$ac_header_preproc"
13566 fi
13567 ac_res=`eval 'as_val=${'$as_ac_Header'}
13568                  $as_echo "$as_val"'`
13569                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13570 $as_echo "$ac_res" >&6; }
13571
13572 fi
13573 as_val=`eval 'as_val=${'$as_ac_Header'}
13574                  $as_echo "$as_val"'`
13575    if test "x$as_val" = x""yes; then
13576   cat >>confdefs.h <<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13578 _ACEOF
13579
13580 fi
13581
13582 done
13583
13584
13585
13586
13587
13588 for ac_func in syslog
13589 do
13590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13592 $as_echo_n "checking for $ac_func... " >&6; }
13593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13594   $as_echo_n "(cached) " >&6
13595 else
13596   cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13604 #define $ac_func innocuous_$ac_func
13605
13606 /* System header to define __stub macros and hopefully few prototypes,
13607     which can conflict with char $ac_func (); below.
13608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609     <limits.h> exists even on freestanding compilers.  */
13610
13611 #ifdef __STDC__
13612 # include <limits.h>
13613 #else
13614 # include <assert.h>
13615 #endif
13616
13617 #undef $ac_func
13618
13619 /* Override any GCC internal prototype to avoid an error.
13620    Use char because int might match the return type of a GCC
13621    builtin and then its argument prototype would still apply.  */
13622 #ifdef __cplusplus
13623 extern "C"
13624 #endif
13625 char $ac_func ();
13626 /* The GNU C library defines this for functions which it implements
13627     to always fail with ENOSYS.  Some functions are actually named
13628     something starting with __ and the normal name is an alias.  */
13629 #if defined __stub_$ac_func || defined __stub___$ac_func
13630 choke me
13631 #endif
13632
13633 int
13634 main ()
13635 {
13636 return $ac_func ();
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (ac_try="$ac_link"
13643 case "(($ac_try" in
13644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645   *) ac_try_echo=$ac_try;;
13646 esac
13647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648 $as_echo "$ac_try_echo") >&5
13649   (eval "$ac_link") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } && {
13656          test -z "$ac_c_werror_flag" ||
13657          test ! -s conftest.err
13658        } && test -s conftest$ac_exeext && {
13659          test "$cross_compiling" = yes ||
13660          $as_test_x conftest$ac_exeext
13661        }; then
13662   eval "$as_ac_var=yes"
13663 else
13664   $as_echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667         eval "$as_ac_var=no"
13668 fi
13669
13670 rm -rf conftest.dSYM
13671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13672       conftest$ac_exeext conftest.$ac_ext
13673 fi
13674 ac_res=`eval 'as_val=${'$as_ac_var'}
13675                  $as_echo "$as_val"'`
13676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13677 $as_echo "$ac_res" >&6; }
13678 as_val=`eval 'as_val=${'$as_ac_var'}
13679                  $as_echo "$as_val"'`
13680    if test "x$as_val" = x""yes; then
13681   cat >>confdefs.h <<_ACEOF
13682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13683 _ACEOF
13684
13685 fi
13686 done
13687
13688
13689
13690 for ac_header in sys/times.h
13691 do
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697   $as_echo_n "(cached) " >&6
13698 fi
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700                  $as_echo "$as_val"'`
13701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13703 else
13704   # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 $ac_includes_default
13714 #include <$ac_header>
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724   (eval "$ac_compile") 2>conftest.er1
13725   ac_status=$?
13726   grep -v '^ *+' conftest.er1 >conftest.err
13727   rm -f conftest.er1
13728   cat conftest.err >&5
13729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } && {
13731          test -z "$ac_c_werror_flag" ||
13732          test ! -s conftest.err
13733        } && test -s conftest.$ac_objext; then
13734   ac_header_compiler=yes
13735 else
13736   $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739         ac_header_compiler=no
13740 fi
13741
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13745
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <$ac_header>
13756 _ACEOF
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } >/dev/null && {
13771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772          test ! -s conftest.err
13773        }; then
13774   ac_header_preproc=yes
13775 else
13776   $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779   ac_header_preproc=no
13780 fi
13781
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13785
13786 # So?  What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788   yes:no: )
13789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793     ac_header_preproc=yes
13794     ;;
13795   no:yes:* )
13796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808
13809     ;;
13810 esac
13811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 $as_echo_n "checking for $ac_header... " >&6; }
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814   $as_echo_n "(cached) " >&6
13815 else
13816   eval "$as_ac_Header=\$ac_header_preproc"
13817 fi
13818 ac_res=`eval 'as_val=${'$as_ac_Header'}
13819                  $as_echo "$as_val"'`
13820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13821 $as_echo "$ac_res" >&6; }
13822
13823 fi
13824 as_val=`eval 'as_val=${'$as_ac_Header'}
13825                  $as_echo "$as_val"'`
13826    if test "x$as_val" = x""yes; then
13827   cat >>confdefs.h <<_ACEOF
13828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13829 _ACEOF
13830
13831 fi
13832
13833 done
13834
13835
13836 for ac_func in times
13837 do
13838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 $as_echo_n "checking for $ac_func... " >&6; }
13841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13842   $as_echo_n "(cached) " >&6
13843 else
13844   cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13852 #define $ac_func innocuous_$ac_func
13853
13854 /* System header to define __stub macros and hopefully few prototypes,
13855     which can conflict with char $ac_func (); below.
13856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857     <limits.h> exists even on freestanding compilers.  */
13858
13859 #ifdef __STDC__
13860 # include <limits.h>
13861 #else
13862 # include <assert.h>
13863 #endif
13864
13865 #undef $ac_func
13866
13867 /* Override any GCC internal prototype to avoid an error.
13868    Use char because int might match the return type of a GCC
13869    builtin and then its argument prototype would still apply.  */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char $ac_func ();
13874 /* The GNU C library defines this for functions which it implements
13875     to always fail with ENOSYS.  Some functions are actually named
13876     something starting with __ and the normal name is an alias.  */
13877 #if defined __stub_$ac_func || defined __stub___$ac_func
13878 choke me
13879 #endif
13880
13881 int
13882 main ()
13883 {
13884 return $ac_func ();
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897   (eval "$ac_link") 2>conftest.er1
13898   ac_status=$?
13899   grep -v '^ *+' conftest.er1 >conftest.err
13900   rm -f conftest.er1
13901   cat conftest.err >&5
13902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } && {
13904          test -z "$ac_c_werror_flag" ||
13905          test ! -s conftest.err
13906        } && test -s conftest$ac_exeext && {
13907          test "$cross_compiling" = yes ||
13908          $as_test_x conftest$ac_exeext
13909        }; then
13910   eval "$as_ac_var=yes"
13911 else
13912   $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915         eval "$as_ac_var=no"
13916 fi
13917
13918 rm -rf conftest.dSYM
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920       conftest$ac_exeext conftest.$ac_ext
13921 fi
13922 ac_res=`eval 'as_val=${'$as_ac_var'}
13923                  $as_echo "$as_val"'`
13924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13926 as_val=`eval 'as_val=${'$as_ac_var'}
13927                  $as_echo "$as_val"'`
13928    if test "x$as_val" = x""yes; then
13929   cat >>confdefs.h <<_ACEOF
13930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13931 _ACEOF
13932
13933 fi
13934 done
13935
13936
13937 { $as_echo "$as_me:$LINENO: checking which MPM to use" >&5
13938 $as_echo_n "checking which MPM to use... " >&6; }
13939
13940 # Check whether --with-mpm was given.
13941 if test "${with_mpm+set}" = set; then
13942   withval=$with_mpm;
13943   APACHE_MPM=$withval
13944
13945 else
13946
13947   if test "x$APACHE_MPM" = "x"; then
13948     APACHE_MPM=prefork
13949   fi
13950
13951 fi
13952
13953 { $as_echo "$as_me:$LINENO: result: $APACHE_MPM" >&5
13954 $as_echo "$APACHE_MPM" >&6; }
13955
13956 apache_cv_mpm=$APACHE_MPM
13957
13958 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild" -o "$apache_cv_mpm" = "leader" -o "$apache_cv_mpm" = "threadpool" ; then
13959
13960 apr_old_cppflags=$CPPFLAGS
13961 CPPFLAGS="$CPPFLAGS $INCLUDES"
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968
13969 #include <apr.h>
13970 #if APR_HAS_THREADS
13971 YES_IS_DEFINED
13972 #endif
13973
13974 _ACEOF
13975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13976   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
13977   ac_cv_define_APR_HAS_THREADS=yes
13978 else
13979   ac_cv_define_APR_HAS_THREADS=no
13980 fi
13981 rm -f conftest*
13982
13983 CPPFLAGS=$apr_old_cppflags
13984
13985
13986   if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
13987     { $as_echo "$as_me:$LINENO: result: The currently selected MPM requires threads which your system seems to lack" >&5
13988 $as_echo "The currently selected MPM requires threads which your system seems to lack" >&6; }
13989     { $as_echo "$as_me:$LINENO: checking checking for replacement" >&5
13990 $as_echo_n "checking checking for replacement... " >&6; }
13991     { $as_echo "$as_me:$LINENO: result: prefork selected" >&5
13992 $as_echo "prefork selected" >&6; }
13993     apache_cv_mpm=prefork
13994   fi
13995 fi
13996
13997
13998   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"
13999
14000
14001 MPM_NAME=$apache_cv_mpm
14002 if test "$MPM_NAME" = "leader" -o "$MPM_NAME" = "threadpool" -o "$MPM_NAME" = "perchild"; then
14003   { $as_echo "$as_me:$LINENO: WARNING: You have selected an EXPERIMENTAL MPM.  Be warned!" >&5
14004 $as_echo "$as_me: WARNING: You have selected an EXPERIMENTAL MPM.  Be warned!" >&2;}
14005   MPM_SUBDIR_NAME=experimental/$MPM_NAME
14006 else
14007   MPM_SUBDIR_NAME=$MPM_NAME
14008 fi
14009 MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
14010 MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
14011
14012 if test ! -f "$abs_srcdir/$MPM_DIR/mpm.h"; then
14013     { { $as_echo "$as_me:$LINENO: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&5
14014 $as_echo "$as_me: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&2;}
14015    { (exit 1); exit 1; }; }
14016 fi
14017
14018
14019   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_NAME"
14020
14021
14022
14023   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIR_NAME"
14024
14025
14026 MODLIST="$MODLIST mpm_${MPM_NAME}"
14027
14028
14029 if test "$MPM_NAME" = "prefork" ; then
14030
14031   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
14032
14033 fi
14034
14035 htpasswd_LTFLAGS=""
14036 htdigest_LTFLAGS=""
14037 rotatelogs_LTFLAGS=""
14038 logresolve_LTFLAGS=""
14039 htdbm_LTFLAGS=""
14040 ab_LTFLAGS=""
14041 checkgid_LTFLAGS=""
14042
14043 # Check whether --enable-static-support was given.
14044 if test "${enable_static_support+set}" = set; then
14045   enableval=$enable_static_support;
14046 if test "$enableval" = "yes" ; then
14047
14048   if test "x$htpasswd_LTFLAGS" = "x"; then
14049     echo "  setting htpasswd_LTFLAGS to \"-static\""
14050     htpasswd_LTFLAGS="-static"
14051   else
14052     apr_addto_bugger="-static"
14053     for i in $apr_addto_bugger; do
14054       apr_addto_duplicate="0"
14055       for j in $htpasswd_LTFLAGS; do
14056         if test "x$i" = "x$j"; then
14057           apr_addto_duplicate="1"
14058           break
14059         fi
14060       done
14061       if test $apr_addto_duplicate = "0"; then
14062         echo "  adding \"$i\" to htpasswd_LTFLAGS"
14063         htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
14064       fi
14065     done
14066   fi
14067
14068
14069   if test "x$htdigest_LTFLAGS" = "x"; then
14070     echo "  setting htdigest_LTFLAGS to \"-static\""
14071     htdigest_LTFLAGS="-static"
14072   else
14073     apr_addto_bugger="-static"
14074     for i in $apr_addto_bugger; do
14075       apr_addto_duplicate="0"
14076       for j in $htdigest_LTFLAGS; do
14077         if test "x$i" = "x$j"; then
14078           apr_addto_duplicate="1"
14079           break
14080         fi
14081       done
14082       if test $apr_addto_duplicate = "0"; then
14083         echo "  adding \"$i\" to htdigest_LTFLAGS"
14084         htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
14085       fi
14086     done
14087   fi
14088
14089
14090   if test "x$rotatelogs_LTFLAGS" = "x"; then
14091     echo "  setting rotatelogs_LTFLAGS to \"-static\""
14092     rotatelogs_LTFLAGS="-static"
14093   else
14094     apr_addto_bugger="-static"
14095     for i in $apr_addto_bugger; do
14096       apr_addto_duplicate="0"
14097       for j in $rotatelogs_LTFLAGS; do
14098         if test "x$i" = "x$j"; then
14099           apr_addto_duplicate="1"
14100           break
14101         fi
14102       done
14103       if test $apr_addto_duplicate = "0"; then
14104         echo "  adding \"$i\" to rotatelogs_LTFLAGS"
14105         rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
14106       fi
14107     done
14108   fi
14109
14110
14111   if test "x$logresolve_LTFLAGS" = "x"; then
14112     echo "  setting logresolve_LTFLAGS to \"-static\""
14113     logresolve_LTFLAGS="-static"
14114   else
14115     apr_addto_bugger="-static"
14116     for i in $apr_addto_bugger; do
14117       apr_addto_duplicate="0"
14118       for j in $logresolve_LTFLAGS; do
14119         if test "x$i" = "x$j"; then
14120           apr_addto_duplicate="1"
14121           break
14122         fi
14123       done
14124       if test $apr_addto_duplicate = "0"; then
14125         echo "  adding \"$i\" to logresolve_LTFLAGS"
14126         logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
14127       fi
14128     done
14129   fi
14130
14131
14132   if test "x$htdbm_LTFLAGS" = "x"; then
14133     echo "  setting htdbm_LTFLAGS to \"-static\""
14134     htdbm_LTFLAGS="-static"
14135   else
14136     apr_addto_bugger="-static"
14137     for i in $apr_addto_bugger; do
14138       apr_addto_duplicate="0"
14139       for j in $htdbm_LTFLAGS; do
14140         if test "x$i" = "x$j"; then
14141           apr_addto_duplicate="1"
14142           break
14143         fi
14144       done
14145       if test $apr_addto_duplicate = "0"; then
14146         echo "  adding \"$i\" to htdbm_LTFLAGS"
14147         htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
14148       fi
14149     done
14150   fi
14151
14152
14153   if test "x$ab_LTFLAGS" = "x"; then
14154     echo "  setting ab_LTFLAGS to \"-static\""
14155     ab_LTFLAGS="-static"
14156   else
14157     apr_addto_bugger="-static"
14158     for i in $apr_addto_bugger; do
14159       apr_addto_duplicate="0"
14160       for j in $ab_LTFLAGS; do
14161         if test "x$i" = "x$j"; then
14162           apr_addto_duplicate="1"
14163           break
14164         fi
14165       done
14166       if test $apr_addto_duplicate = "0"; then
14167         echo "  adding \"$i\" to ab_LTFLAGS"
14168         ab_LTFLAGS="$ab_LTFLAGS $i"
14169       fi
14170     done
14171   fi
14172
14173
14174   if test "x$checkgid_LTFLAGS" = "x"; then
14175     echo "  setting checkgid_LTFLAGS to \"-static\""
14176     checkgid_LTFLAGS="-static"
14177   else
14178     apr_addto_bugger="-static"
14179     for i in $apr_addto_bugger; do
14180       apr_addto_duplicate="0"
14181       for j in $checkgid_LTFLAGS; do
14182         if test "x$i" = "x$j"; then
14183           apr_addto_duplicate="1"
14184           break
14185         fi
14186       done
14187       if test $apr_addto_duplicate = "0"; then
14188         echo "  adding \"$i\" to checkgid_LTFLAGS"
14189         checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
14190       fi
14191     done
14192   fi
14193
14194 fi
14195
14196 fi
14197
14198
14199 # Check whether --enable-static-htpasswd was given.
14200 if test "${enable_static_htpasswd+set}" = set; then
14201   enableval=$enable_static_htpasswd;
14202 if test "$enableval" = "yes" ; then
14203
14204   if test "x$htpasswd_LTFLAGS" = "x"; then
14205     echo "  setting htpasswd_LTFLAGS to \"-static\""
14206     htpasswd_LTFLAGS="-static"
14207   else
14208     apr_addto_bugger="-static"
14209     for i in $apr_addto_bugger; do
14210       apr_addto_duplicate="0"
14211       for j in $htpasswd_LTFLAGS; do
14212         if test "x$i" = "x$j"; then
14213           apr_addto_duplicate="1"
14214           break
14215         fi
14216       done
14217       if test $apr_addto_duplicate = "0"; then
14218         echo "  adding \"$i\" to htpasswd_LTFLAGS"
14219         htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
14220       fi
14221     done
14222   fi
14223
14224 else
14225
14226   if test "x$htpasswd_LTFLAGS" = "x-static"; then
14227     echo "  nulling htpasswd_LTFLAGS"
14228     htpasswd_LTFLAGS=""
14229   else
14230     apr_new_bugger=""
14231     apr_removed=0
14232     for i in $htpasswd_LTFLAGS; do
14233       if test "x$i" != "x-static"; then
14234         apr_new_bugger="$apr_new_bugger $i"
14235       else
14236         apr_removed=1
14237       fi
14238     done
14239     if test $apr_removed = "1"; then
14240       echo "  removed \"-static\" from htpasswd_LTFLAGS"
14241       htpasswd_LTFLAGS=$apr_new_bugger
14242     fi
14243   fi
14244
14245 fi
14246
14247 fi
14248
14249
14250   APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
14251
14252
14253
14254 # Check whether --enable-static-htdigest was given.
14255 if test "${enable_static_htdigest+set}" = set; then
14256   enableval=$enable_static_htdigest;
14257 if test "$enableval" = "yes" ; then
14258
14259   if test "x$htdigest_LTFLAGS" = "x"; then
14260     echo "  setting htdigest_LTFLAGS to \"-static\""
14261     htdigest_LTFLAGS="-static"
14262   else
14263     apr_addto_bugger="-static"
14264     for i in $apr_addto_bugger; do
14265       apr_addto_duplicate="0"
14266       for j in $htdigest_LTFLAGS; do
14267         if test "x$i" = "x$j"; then
14268           apr_addto_duplicate="1"
14269           break
14270         fi
14271       done
14272       if test $apr_addto_duplicate = "0"; then
14273         echo "  adding \"$i\" to htdigest_LTFLAGS"
14274         htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
14275       fi
14276     done
14277   fi
14278
14279 else
14280
14281   if test "x$htdigest_LTFLAGS" = "x-static"; then
14282     echo "  nulling htdigest_LTFLAGS"
14283     htdigest_LTFLAGS=""
14284   else
14285     apr_new_bugger=""
14286     apr_removed=0
14287     for i in $htdigest_LTFLAGS; do
14288       if test "x$i" != "x-static"; then
14289         apr_new_bugger="$apr_new_bugger $i"
14290       else
14291         apr_removed=1
14292       fi
14293     done
14294     if test $apr_removed = "1"; then
14295       echo "  removed \"-static\" from htdigest_LTFLAGS"
14296       htdigest_LTFLAGS=$apr_new_bugger
14297     fi
14298   fi
14299
14300 fi
14301
14302 fi
14303
14304
14305   APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
14306
14307
14308
14309 # Check whether --enable-static-rotatelogs was given.
14310 if test "${enable_static_rotatelogs+set}" = set; then
14311   enableval=$enable_static_rotatelogs;
14312 if test "$enableval" = "yes" ; then
14313
14314   if test "x$rotatelogs_LTFLAGS" = "x"; then
14315     echo "  setting rotatelogs_LTFLAGS to \"-static\""
14316     rotatelogs_LTFLAGS="-static"
14317   else
14318     apr_addto_bugger="-static"
14319     for i in $apr_addto_bugger; do
14320       apr_addto_duplicate="0"
14321       for j in $rotatelogs_LTFLAGS; do
14322         if test "x$i" = "x$j"; then
14323           apr_addto_duplicate="1"
14324           break
14325         fi
14326       done
14327       if test $apr_addto_duplicate = "0"; then
14328         echo "  adding \"$i\" to rotatelogs_LTFLAGS"
14329         rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
14330       fi
14331     done
14332   fi
14333
14334 else
14335
14336   if test "x$rotatelogs_LTFLAGS" = "x-static"; then
14337     echo "  nulling rotatelogs_LTFLAGS"
14338     rotatelogs_LTFLAGS=""
14339   else
14340     apr_new_bugger=""
14341     apr_removed=0
14342     for i in $rotatelogs_LTFLAGS; do
14343       if test "x$i" != "x-static"; then
14344         apr_new_bugger="$apr_new_bugger $i"
14345       else
14346         apr_removed=1
14347       fi
14348     done
14349     if test $apr_removed = "1"; then
14350       echo "  removed \"-static\" from rotatelogs_LTFLAGS"
14351       rotatelogs_LTFLAGS=$apr_new_bugger
14352     fi
14353   fi
14354
14355 fi
14356
14357 fi
14358
14359
14360   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
14361
14362
14363
14364 # Check whether --enable-static-logresolve was given.
14365 if test "${enable_static_logresolve+set}" = set; then
14366   enableval=$enable_static_logresolve;
14367 if test "$enableval" = "yes" ; then
14368
14369   if test "x$logresolve_LTFLAGS" = "x"; then
14370     echo "  setting logresolve_LTFLAGS to \"-static\""
14371     logresolve_LTFLAGS="-static"
14372   else
14373     apr_addto_bugger="-static"
14374     for i in $apr_addto_bugger; do
14375       apr_addto_duplicate="0"
14376       for j in $logresolve_LTFLAGS; do
14377         if test "x$i" = "x$j"; then
14378           apr_addto_duplicate="1"
14379           break
14380         fi
14381       done
14382       if test $apr_addto_duplicate = "0"; then
14383         echo "  adding \"$i\" to logresolve_LTFLAGS"
14384         logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
14385       fi
14386     done
14387   fi
14388
14389 else
14390
14391   if test "x$logresolve_LTFLAGS" = "x-static"; then
14392     echo "  nulling logresolve_LTFLAGS"
14393     logresolve_LTFLAGS=""
14394   else
14395     apr_new_bugger=""
14396     apr_removed=0
14397     for i in $logresolve_LTFLAGS; do
14398       if test "x$i" != "x-static"; then
14399         apr_new_bugger="$apr_new_bugger $i"
14400       else
14401         apr_removed=1
14402       fi
14403     done
14404     if test $apr_removed = "1"; then
14405       echo "  removed \"-static\" from logresolve_LTFLAGS"
14406       logresolve_LTFLAGS=$apr_new_bugger
14407     fi
14408   fi
14409
14410 fi
14411
14412 fi
14413
14414
14415   APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
14416
14417
14418
14419 # Check whether --enable-static-htdbm was given.
14420 if test "${enable_static_htdbm+set}" = set; then
14421   enableval=$enable_static_htdbm;
14422 if test "$enableval" = "yes" ; then
14423
14424   if test "x$htdbm_LTFLAGS" = "x"; then
14425     echo "  setting htdbm_LTFLAGS to \"-static\""
14426     htdbm_LTFLAGS="-static"
14427   else
14428     apr_addto_bugger="-static"
14429     for i in $apr_addto_bugger; do
14430       apr_addto_duplicate="0"
14431       for j in $htdbm_LTFLAGS; do
14432         if test "x$i" = "x$j"; then
14433           apr_addto_duplicate="1"
14434           break
14435         fi
14436       done
14437       if test $apr_addto_duplicate = "0"; then
14438         echo "  adding \"$i\" to htdbm_LTFLAGS"
14439         htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
14440       fi
14441     done
14442   fi
14443
14444 else
14445
14446   if test "x$htdbm_LTFLAGS" = "x-static"; then
14447     echo "  nulling htdbm_LTFLAGS"
14448     htdbm_LTFLAGS=""
14449   else
14450     apr_new_bugger=""
14451     apr_removed=0
14452     for i in $htdbm_LTFLAGS; do
14453       if test "x$i" != "x-static"; then
14454         apr_new_bugger="$apr_new_bugger $i"
14455       else
14456         apr_removed=1
14457       fi
14458     done
14459     if test $apr_removed = "1"; then
14460       echo "  removed \"-static\" from htdbm_LTFLAGS"
14461       htdbm_LTFLAGS=$apr_new_bugger
14462     fi
14463   fi
14464
14465 fi
14466
14467 fi
14468
14469
14470   APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
14471
14472
14473
14474 # Check whether --enable-static-ab was given.
14475 if test "${enable_static_ab+set}" = set; then
14476   enableval=$enable_static_ab;
14477 if test "$enableval" = "yes" ; then
14478
14479   if test "x$ab_LTFLAGS" = "x"; then
14480     echo "  setting ab_LTFLAGS to \"-static\""
14481     ab_LTFLAGS="-static"
14482   else
14483     apr_addto_bugger="-static"
14484     for i in $apr_addto_bugger; do
14485       apr_addto_duplicate="0"
14486       for j in $ab_LTFLAGS; do
14487         if test "x$i" = "x$j"; then
14488           apr_addto_duplicate="1"
14489           break
14490         fi
14491       done
14492       if test $apr_addto_duplicate = "0"; then
14493         echo "  adding \"$i\" to ab_LTFLAGS"
14494         ab_LTFLAGS="$ab_LTFLAGS $i"
14495       fi
14496     done
14497   fi
14498
14499 else
14500
14501   if test "x$ab_LTFLAGS" = "x-static"; then
14502     echo "  nulling ab_LTFLAGS"
14503     ab_LTFLAGS=""
14504   else
14505     apr_new_bugger=""
14506     apr_removed=0
14507     for i in $ab_LTFLAGS; do
14508       if test "x$i" != "x-static"; then
14509         apr_new_bugger="$apr_new_bugger $i"
14510       else
14511         apr_removed=1
14512       fi
14513     done
14514     if test $apr_removed = "1"; then
14515       echo "  removed \"-static\" from ab_LTFLAGS"
14516       ab_LTFLAGS=$apr_new_bugger
14517     fi
14518   fi
14519
14520 fi
14521
14522 fi
14523
14524
14525   APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
14526
14527
14528
14529 # Check whether --enable-static-checkgid was given.
14530 if test "${enable_static_checkgid+set}" = set; then
14531   enableval=$enable_static_checkgid;
14532 if test "$enableval" = "yes" ; then
14533
14534   if test "x$checkgid_LTFLAGS" = "x"; then
14535     echo "  setting checkgid_LTFLAGS to \"-static\""
14536     checkgid_LTFLAGS="-static"
14537   else
14538     apr_addto_bugger="-static"
14539     for i in $apr_addto_bugger; do
14540       apr_addto_duplicate="0"
14541       for j in $checkgid_LTFLAGS; do
14542         if test "x$i" = "x$j"; then
14543           apr_addto_duplicate="1"
14544           break
14545         fi
14546       done
14547       if test $apr_addto_duplicate = "0"; then
14548         echo "  adding \"$i\" to checkgid_LTFLAGS"
14549         checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
14550       fi
14551     done
14552   fi
14553
14554 else
14555
14556   if test "x$checkgid_LTFLAGS" = "x-static"; then
14557     echo "  nulling checkgid_LTFLAGS"
14558     checkgid_LTFLAGS=""
14559   else
14560     apr_new_bugger=""
14561     apr_removed=0
14562     for i in $checkgid_LTFLAGS; do
14563       if test "x$i" != "x-static"; then
14564         apr_new_bugger="$apr_new_bugger $i"
14565       else
14566         apr_removed=1
14567       fi
14568     done
14569     if test $apr_removed = "1"; then
14570       echo "  removed \"-static\" from checkgid_LTFLAGS"
14571       checkgid_LTFLAGS=$apr_new_bugger
14572     fi
14573   fi
14574
14575 fi
14576
14577 fi
14578
14579
14580   APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
14581
14582
14583
14584 case $host in
14585     *aix*)
14586         # this works in any locale, unlike the default command below, which
14587         # fails in a non-English locale if the hard limit is unlimited
14588         # since the display of the limit will translate "unlimited", but
14589         # ulimit only accepts English "unlimited" on input
14590         APACHECTL_ULIMIT="ulimit -S -n unlimited"
14591         ;;
14592     *alpha*-dec-osf*)
14593         # Tru64: -H is for setting, not retrieving
14594         APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
14595         ;;
14596     *)
14597         if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
14598             APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
14599         else
14600             APACHECTL_ULIMIT=""
14601         fi
14602         ;;
14603 esac
14604
14605   APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"
14606
14607
14608
14609
14610
14611   current_dir=http
14612   modpath_current=modules/http
14613   modpath_static=
14614   modpath_shared=
14615   test -d http || $srcdir/build/mkdir.sh $modpath_current
14616   > $modpath_current/modules.mk
14617
14618
14619 http_objects="http_core.lo http_protocol.lo http_request.lo"
14620
14621 if test "$enable_http" = "yes"; then
14622     enable_http="static"
14623 elif test "$enable_http" = "shared"; then
14624     { { $as_echo "$as_me:$LINENO: error: mod_http can not be built as a shared DSO" >&5
14625 $as_echo "$as_me: error: mod_http can not be built as a shared DSO" >&2;}
14626    { (exit 1); exit 1; }; }
14627 fi
14628
14629
14630   { $as_echo "$as_me:$LINENO: checking whether to enable mod_http" >&5
14631 $as_echo_n "checking whether to enable mod_http... " >&6; }
14632     # Check whether --enable-http was given.
14633 if test "${enable_http+set}" = set; then
14634   enableval=$enable_http;
14635 else
14636   enable_http=static
14637 fi
14638
14639     _apmod_extra_msg=""
14640       if test "$module_selection" = "most" -a "$enable_http" = "most"; then
14641     _apmod_error_fatal="no"
14642   else
14643     _apmod_error_fatal="yes"
14644   fi
14645   if test "$enable_http" = "static"; then
14646     enable_http=yes
14647   elif test "$enable_http" = "yes"; then
14648     enable_http=$module_default
14649     _apmod_extra_msg=" ($module_selection)"
14650   elif test "$enable_http" = "most"; then
14651     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14652       enable_http=$module_default
14653       _apmod_extra_msg=" ($module_selection)"
14654     elif test "$enable_http" != "yes"; then
14655       enable_http=no
14656     fi
14657   elif test "$enable_http" = "maybe-all"; then
14658     if test "$module_selection" = "all"; then
14659       enable_http=$module_default
14660       _apmod_extra_msg=" (all)"
14661     else
14662       enable_http=no
14663     fi
14664   fi
14665   if test "$enable_http" != "no"; then
14666             :
14667   fi
14668   { $as_echo "$as_me:$LINENO: result: $enable_http$_apmod_extra_msg" >&5
14669 $as_echo "$enable_http$_apmod_extra_msg" >&6; }
14670   if test "$enable_http" != "no"; then
14671     case "$enable_http" in
14672     shared*)
14673       enable_http=`echo $ac_n $enable_http$ac_c|sed 's/shared,*//'`
14674       sharedobjs=yes
14675       shared=yes
14676       DSO_MODULES="$DSO_MODULES http"
14677       ;;
14678     *)
14679       MODLIST="$MODLIST http"
14680       if test "http" = "so"; then
14681           sharedobjs=yes
14682       fi
14683       shared="";;
14684     esac
14685
14686
14687   if test -z "$http_objects"; then
14688     objects="mod_http.lo"
14689   else
14690     objects="$http_objects"
14691   fi
14692
14693   if test -z "$module_standalone"; then
14694     if test -z "$shared"; then
14695       libname="mod_http.la"
14696       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14697       modpath_static="$modpath_static $libname"
14698       cat >>$modpath_current/modules.mk<<EOF
14699 $libname: $objects
14700         \$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
14701 EOF
14702     else
14703       apache_need_shared=yes
14704       libname="mod_http.la"
14705       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14706       modpath_shared="$modpath_shared $libname"
14707       cat >>$modpath_current/modules.mk<<EOF
14708 $libname: $shobjects
14709         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP_LDADD)
14710 EOF
14711     fi
14712   fi
14713
14714
14715   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"
14716
14717
14718
14719   fi
14720
14721
14722   { $as_echo "$as_me:$LINENO: checking whether to enable mod_mime" >&5
14723 $as_echo_n "checking whether to enable mod_mime... " >&6; }
14724     # Check whether --enable-mime was given.
14725 if test "${enable_mime+set}" = set; then
14726   enableval=$enable_mime;
14727 else
14728   enable_mime=yes
14729 fi
14730
14731     _apmod_extra_msg=""
14732       if test "$module_selection" = "most" -a "$enable_mime" = "most"; then
14733     _apmod_error_fatal="no"
14734   else
14735     _apmod_error_fatal="yes"
14736   fi
14737   if test "$enable_mime" = "static"; then
14738     enable_mime=yes
14739   elif test "$enable_mime" = "yes"; then
14740     enable_mime=$module_default
14741     _apmod_extra_msg=" ($module_selection)"
14742   elif test "$enable_mime" = "most"; then
14743     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14744       enable_mime=$module_default
14745       _apmod_extra_msg=" ($module_selection)"
14746     elif test "$enable_mime" != "yes"; then
14747       enable_mime=no
14748     fi
14749   elif test "$enable_mime" = "maybe-all"; then
14750     if test "$module_selection" = "all"; then
14751       enable_mime=$module_default
14752       _apmod_extra_msg=" (all)"
14753     else
14754       enable_mime=no
14755     fi
14756   fi
14757   if test "$enable_mime" != "no"; then
14758             :
14759   fi
14760   { $as_echo "$as_me:$LINENO: result: $enable_mime$_apmod_extra_msg" >&5
14761 $as_echo "$enable_mime$_apmod_extra_msg" >&6; }
14762   if test "$enable_mime" != "no"; then
14763     case "$enable_mime" in
14764     shared*)
14765       enable_mime=`echo $ac_n $enable_mime$ac_c|sed 's/shared,*//'`
14766       sharedobjs=yes
14767       shared=yes
14768       DSO_MODULES="$DSO_MODULES mime"
14769       ;;
14770     *)
14771       MODLIST="$MODLIST mime"
14772       if test "mime" = "so"; then
14773           sharedobjs=yes
14774       fi
14775       shared="";;
14776     esac
14777
14778
14779   if test -z ""; then
14780     objects="mod_mime.lo"
14781   else
14782     objects=""
14783   fi
14784
14785   if test -z "$module_standalone"; then
14786     if test -z "$shared"; then
14787       libname="mod_mime.la"
14788       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14789       modpath_static="$modpath_static $libname"
14790       cat >>$modpath_current/modules.mk<<EOF
14791 $libname: $objects
14792         \$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
14793 EOF
14794     else
14795       apache_need_shared=yes
14796       libname="mod_mime.la"
14797       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14798       modpath_shared="$modpath_shared $libname"
14799       cat >>$modpath_current/modules.mk<<EOF
14800 $libname: $shobjects
14801         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_LDADD)
14802 EOF
14803     fi
14804   fi
14805
14806
14807   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"
14808
14809
14810
14811   fi
14812
14813
14814
14815   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14816   echo "static = $modpath_static" >> $modpath_current/modules.mk
14817   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14818   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14819     MODULE_DIRS="$MODULE_DIRS $current_dir"
14820   else
14821     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14822   fi
14823
14824   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14825
14826
14827
14828 { $as_echo "$as_me:$LINENO: checking for extra modules" >&5
14829 $as_echo_n "checking for extra modules... " >&6; }
14830
14831 # Check whether --with-module was given.
14832 if test "${with_module+set}" = set; then
14833   withval=$with_module;
14834     as_save_IFS="$IFS"; IFS=","
14835     for mod in $withval
14836     do
14837     modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
14838     pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
14839     modfilec=`echo $pkg | sed -e 's;^.*/;;'`
14840     modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
14841     modpath_current="modules/$modtype"
14842     if test "x$mod" != "x$modpath_current/$modfilec"; then
14843       if test ! -d "$modpath_current"; then
14844         mkdir $modpath_current
14845         echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
14846       fi
14847       cp $pkg $modpath_current/$modfilec
14848     fi
14849     module=`echo $pkg | sed -e 's;\(.*/\)*mod_\(.*\).c;\2;'`
14850     objects="mod_$module.lo"
14851     libname="mod_$module.la"
14852     BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14853     if test ! -s "$modpath_current/modules.mk"; then
14854       cat >>$modpath_current/modules.mk<<EOF
14855 $libname: $objects
14856         \$(MOD_LINK) $objects
14857 DISTCLEAN_TARGETS = modules.mk
14858 static = $libname
14859 shared =
14860 EOF
14861     else
14862       cat >>$modpath_current/modules.mk.tmp<<EOF
14863 $libname: $objects
14864         \$(MOD_LINK) $objects
14865 EOF
14866       cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
14867       rm $modpath_current/modules.mk
14868       mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
14869       sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
14870       rm $modpath_current/modules.mk
14871       mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
14872     fi
14873     MODLIST="$MODLIST $module"
14874     EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
14875     MODULE_DIRS="$MODULE_DIRS $modtype"
14876
14877   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14878
14879     done
14880     if test ! -z "$EXTRA_MODLIST"; then
14881       { $as_echo "$as_me:$LINENO: result: added:$EXTRA_MODLIST" >&5
14882 $as_echo "added:$EXTRA_MODLIST" >&6; }
14883     fi
14884     IFS="$as_save_IFS"
14885
14886 else
14887    { $as_echo "$as_me:$LINENO: result: none" >&5
14888 $as_echo "none" >&6; }
14889
14890 fi
14891
14892
14893
14894
14895   current_dir=dav/main
14896   modpath_current=modules/dav/main
14897   modpath_static=
14898   modpath_shared=
14899   test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
14900   > $modpath_current/modules.mk
14901
14902
14903 dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"
14904
14905 if test "$enable_http" = "no"; then
14906   dav_enable=no
14907 else
14908   dav_enable=most
14909 fi
14910
14911
14912   { $as_echo "$as_me:$LINENO: checking whether to enable mod_dav" >&5
14913 $as_echo_n "checking whether to enable mod_dav... " >&6; }
14914     # Check whether --enable-dav was given.
14915 if test "${enable_dav+set}" = set; then
14916   enableval=$enable_dav;
14917 else
14918   enable_dav=$dav_enable
14919 fi
14920
14921     _apmod_extra_msg=""
14922       if test "$module_selection" = "most" -a "$enable_dav" = "most"; then
14923     _apmod_error_fatal="no"
14924   else
14925     _apmod_error_fatal="yes"
14926   fi
14927   if test "$enable_dav" = "static"; then
14928     enable_dav=yes
14929   elif test "$enable_dav" = "yes"; then
14930     enable_dav=$module_default
14931     _apmod_extra_msg=" ($module_selection)"
14932   elif test "$enable_dav" = "most"; then
14933     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14934       enable_dav=$module_default
14935       _apmod_extra_msg=" ($module_selection)"
14936     elif test "$enable_dav" != "yes"; then
14937       enable_dav=no
14938     fi
14939   elif test "$enable_dav" = "maybe-all"; then
14940     if test "$module_selection" = "all"; then
14941       enable_dav=$module_default
14942       _apmod_extra_msg=" (all)"
14943     else
14944       enable_dav=no
14945     fi
14946   fi
14947   if test "$enable_dav" != "no"; then
14948             :
14949   fi
14950   { $as_echo "$as_me:$LINENO: result: $enable_dav$_apmod_extra_msg" >&5
14951 $as_echo "$enable_dav$_apmod_extra_msg" >&6; }
14952   if test "$enable_dav" != "no"; then
14953     case "$enable_dav" in
14954     shared*)
14955       enable_dav=`echo $ac_n $enable_dav$ac_c|sed 's/shared,*//'`
14956       sharedobjs=yes
14957       shared=yes
14958       DSO_MODULES="$DSO_MODULES dav"
14959       ;;
14960     *)
14961       MODLIST="$MODLIST dav"
14962       if test "dav" = "so"; then
14963           sharedobjs=yes
14964       fi
14965       shared="";;
14966     esac
14967
14968
14969   if test -z "$dav_objects"; then
14970     objects="mod_dav.lo"
14971   else
14972     objects="$dav_objects"
14973   fi
14974
14975   if test -z "$module_standalone"; then
14976     if test -z "$shared"; then
14977       libname="mod_dav.la"
14978       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14979       modpath_static="$modpath_static $libname"
14980       cat >>$modpath_current/modules.mk<<EOF
14981 $libname: $objects
14982         \$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
14983 EOF
14984     else
14985       apache_need_shared=yes
14986       libname="mod_dav.la"
14987       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14988       modpath_shared="$modpath_shared $libname"
14989       cat >>$modpath_current/modules.mk<<EOF
14990 $libname: $shobjects
14991         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LDADD)
14992 EOF
14993     fi
14994   fi
14995
14996
14997   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"
14998
14999
15000
15001   fi
15002
15003
15004 if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
15005   apache_need_expat=yes
15006
15007
15008   if test "x$INCLUDES" = "x"; then
15009     echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
15010     INCLUDES="-I\$(top_srcdir)/$modpath_current"
15011   else
15012     apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
15013     for i in $apr_addto_bugger; do
15014       apr_addto_duplicate="0"
15015       for j in $INCLUDES; do
15016         if test "x$i" = "x$j"; then
15017           apr_addto_duplicate="1"
15018           break
15019         fi
15020       done
15021       if test $apr_addto_duplicate = "0"; then
15022         echo "  adding \"$i\" to INCLUDES"
15023         INCLUDES="$INCLUDES $i"
15024       fi
15025     done
15026   fi
15027
15028 fi
15029
15030
15031
15032   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
15033   echo "static = $modpath_static" >> $modpath_current/modules.mk
15034   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
15035   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
15036     MODULE_DIRS="$MODULE_DIRS $current_dir"
15037   else
15038     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
15039   fi
15040
15041   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
15042
15043
15044
15045
15046
15047
15048   current_dir=generators
15049   modpath_current=modules/generators
15050   modpath_static=
15051   modpath_shared=
15052   test -d generators || $srcdir/build/mkdir.sh $modpath_current
15053   > $modpath_current/modules.mk
15054
15055
15056
15057   { $as_echo "$as_me:$LINENO: checking whether to enable mod_status" >&5
15058 $as_echo_n "checking whether to enable mod_status... " >&6; }
15059     # Check whether --enable-status was given.
15060 if test "${enable_status+set}" = set; then
15061   enableval=$enable_status;
15062 else
15063   enable_status=yes
15064 fi
15065
15066     _apmod_extra_msg=""
15067       if test "$module_selection" = "most" -a "$enable_status" = "most"; then
15068     _apmod_error_fatal="no"
15069   else
15070     _apmod_error_fatal="yes"
15071   fi
15072   if test "$enable_status" = "static"; then
15073     enable_status=yes
15074   elif test "$enable_status" = "yes"; then
15075     enable_status=$module_default
15076     _apmod_extra_msg=" ($module_selection)"
15077   elif test "$enable_status" = "most"; then
15078     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15079       enable_status=$module_default
15080       _apmod_extra_msg=" ($module_selection)"
15081     elif test "$enable_status" != "yes"; then
15082       enable_status=no
15083     fi
15084   elif test "$enable_status" = "maybe-all"; then
15085     if test "$module_selection" = "all"; then
15086       enable_status=$module_default
15087       _apmod_extra_msg=" (all)"
15088     else
15089       enable_status=no
15090     fi
15091   fi
15092   if test "$enable_status" != "no"; then
15093             :
15094   fi
15095   { $as_echo "$as_me:$LINENO: result: $enable_status$_apmod_extra_msg" >&5
15096 $as_echo "$enable_status$_apmod_extra_msg" >&6; }
15097   if test "$enable_status" != "no"; then
15098     case "$enable_status" in
15099     shared*)
15100       enable_status=`echo $ac_n $enable_status$ac_c|sed 's/shared,*//'`
15101       sharedobjs=yes
15102       shared=yes
15103       DSO_MODULES="$DSO_MODULES status"
15104       ;;
15105     *)
15106       MODLIST="$MODLIST status"
15107       if test "status" = "so"; then
15108           sharedobjs=yes
15109       fi
15110       shared="";;
15111     esac
15112
15113
15114   if test -z ""; then
15115     objects="mod_status.lo"
15116   else
15117     objects=""
15118   fi
15119
15120   if test -z "$module_standalone"; then
15121     if test -z "$shared"; then
15122       libname="mod_status.la"
15123       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15124       modpath_static="$modpath_static $libname"
15125       cat >>$modpath_current/modules.mk<<EOF
15126 $libname: $objects
15127         \$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
15128 EOF
15129     else
15130       apache_need_shared=yes
15131       libname="mod_status.la"
15132       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15133       modpath_shared="$modpath_shared $libname"
15134       cat >>$modpath_current/modules.mk<<EOF
15135 $libname: $shobjects
15136         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_STATUS_LDADD)
15137 EOF
15138     fi
15139   fi
15140
15141
15142   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"
15143
15144
15145
15146   fi
15147
15148
15149   { $as_echo "$as_me:$LINENO: checking whether to enable mod_autoindex" >&5
15150 $as_echo_n "checking whether to enable mod_autoindex... " >&6; }
15151     # Check whether --enable-autoindex was given.
15152 if test "${enable_autoindex+set}" = set; then
15153   enableval=$enable_autoindex;
15154 else
15155   enable_autoindex=yes
15156 fi
15157
15158     _apmod_extra_msg=""
15159       if test "$module_selection" = "most" -a "$enable_autoindex" = "most"; then
15160     _apmod_error_fatal="no"
15161   else
15162     _apmod_error_fatal="yes"
15163   fi
15164   if test "$enable_autoindex" = "static"; then
15165     enable_autoindex=yes
15166   elif test "$enable_autoindex" = "yes"; then
15167     enable_autoindex=$module_default
15168     _apmod_extra_msg=" ($module_selection)"
15169   elif test "$enable_autoindex" = "most"; then
15170     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15171       enable_autoindex=$module_default
15172       _apmod_extra_msg=" ($module_selection)"
15173     elif test "$enable_autoindex" != "yes"; then
15174       enable_autoindex=no
15175     fi
15176   elif test "$enable_autoindex" = "maybe-all"; then
15177     if test "$module_selection" = "all"; then
15178       enable_autoindex=$module_default
15179       _apmod_extra_msg=" (all)"
15180     else
15181       enable_autoindex=no
15182     fi
15183   fi
15184   if test "$enable_autoindex" != "no"; then
15185             :
15186   fi
15187   { $as_echo "$as_me:$LINENO: result: $enable_autoindex$_apmod_extra_msg" >&5
15188 $as_echo "$enable_autoindex$_apmod_extra_msg" >&6; }
15189   if test "$enable_autoindex" != "no"; then
15190     case "$enable_autoindex" in
15191     shared*)
15192       enable_autoindex=`echo $ac_n $enable_autoindex$ac_c|sed 's/shared,*//'`
15193       sharedobjs=yes
15194       shared=yes
15195       DSO_MODULES="$DSO_MODULES autoindex"
15196       ;;
15197     *)
15198       MODLIST="$MODLIST autoindex"
15199       if test "autoindex" = "so"; then
15200           sharedobjs=yes
15201       fi
15202       shared="";;
15203     esac
15204
15205
15206   if test -z ""; then
15207     objects="mod_autoindex.lo"
15208   else
15209     objects=""
15210   fi
15211
15212   if test -z "$module_standalone"; then
15213     if test -z "$shared"; then
15214       libname="mod_autoindex.la"
15215       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15216       modpath_static="$modpath_static $libname"
15217       cat >>$modpath_current/modules.mk<<EOF
15218 $libname: $objects
15219         \$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
15220 EOF
15221     else
15222       apache_need_shared=yes
15223       libname="mod_autoindex.la"
15224       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15225       modpath_shared="$modpath_shared $libname"
15226       cat >>$modpath_current/modules.mk<<EOF
15227 $libname: $shobjects
15228         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTOINDEX_LDADD)
15229 EOF
15230     fi
15231   fi
15232
15233
15234   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"
15235
15236
15237
15238   fi
15239
15240
15241   { $as_echo "$as_me:$LINENO: checking whether to enable mod_asis" >&5
15242 $as_echo_n "checking whether to enable mod_asis... " >&6; }
15243     # Check whether --enable-asis was given.
15244 if test "${enable_asis+set}" = set; then
15245   enableval=$enable_asis;
15246 else
15247   enable_asis=yes
15248 fi
15249
15250     _apmod_extra_msg=""
15251       if test "$module_selection" = "most" -a "$enable_asis" = "most"; then
15252     _apmod_error_fatal="no"
15253   else
15254     _apmod_error_fatal="yes"
15255   fi
15256   if test "$enable_asis" = "static"; then
15257     enable_asis=yes
15258   elif test "$enable_asis" = "yes"; then
15259     enable_asis=$module_default
15260     _apmod_extra_msg=" ($module_selection)"
15261   elif test "$enable_asis" = "most"; then
15262     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15263       enable_asis=$module_default
15264       _apmod_extra_msg=" ($module_selection)"
15265     elif test "$enable_asis" != "yes"; then
15266       enable_asis=no
15267     fi
15268   elif test "$enable_asis" = "maybe-all"; then
15269     if test "$module_selection" = "all"; then
15270       enable_asis=$module_default
15271       _apmod_extra_msg=" (all)"
15272     else
15273       enable_asis=no
15274     fi
15275   fi
15276   if test "$enable_asis" != "no"; then
15277             :
15278   fi
15279   { $as_echo "$as_me:$LINENO: result: $enable_asis$_apmod_extra_msg" >&5
15280 $as_echo "$enable_asis$_apmod_extra_msg" >&6; }
15281   if test "$enable_asis" != "no"; then
15282     case "$enable_asis" in
15283     shared*)
15284       enable_asis=`echo $ac_n $enable_asis$ac_c|sed 's/shared,*//'`
15285       sharedobjs=yes
15286       shared=yes
15287       DSO_MODULES="$DSO_MODULES asis"
15288       ;;
15289     *)
15290       MODLIST="$MODLIST asis"
15291       if test "asis" = "so"; then
15292           sharedobjs=yes
15293       fi
15294       shared="";;
15295     esac
15296
15297
15298   if test -z ""; then
15299     objects="mod_asis.lo"
15300   else
15301     objects=""
15302   fi
15303
15304   if test -z "$module_standalone"; then
15305     if test -z "$shared"; then
15306       libname="mod_asis.la"
15307       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15308       modpath_static="$modpath_static $libname"
15309       cat >>$modpath_current/modules.mk<<EOF
15310 $libname: $objects
15311         \$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
15312 EOF
15313     else
15314       apache_need_shared=yes
15315       libname="mod_asis.la"
15316       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15317       modpath_shared="$modpath_shared $libname"
15318       cat >>$modpath_current/modules.mk<<EOF
15319 $libname: $shobjects
15320         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ASIS_LDADD)
15321 EOF
15322     fi
15323   fi
15324
15325
15326   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"
15327
15328
15329
15330   fi
15331
15332
15333   { $as_echo "$as_me:$LINENO: checking whether to enable mod_info" >&5
15334 $as_echo_n "checking whether to enable mod_info... " >&6; }
15335     # Check whether --enable-info was given.
15336 if test "${enable_info+set}" = set; then
15337   enableval=$enable_info;
15338 else
15339   enable_info=most
15340 fi
15341
15342     _apmod_extra_msg=""
15343       if test "$module_selection" = "most" -a "$enable_info" = "most"; then
15344     _apmod_error_fatal="no"
15345   else
15346     _apmod_error_fatal="yes"
15347   fi
15348   if test "$enable_info" = "static"; then
15349     enable_info=yes
15350   elif test "$enable_info" = "yes"; then
15351     enable_info=$module_default
15352     _apmod_extra_msg=" ($module_selection)"
15353   elif test "$enable_info" = "most"; then
15354     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15355       enable_info=$module_default
15356       _apmod_extra_msg=" ($module_selection)"
15357     elif test "$enable_info" != "yes"; then
15358       enable_info=no
15359     fi
15360   elif test "$enable_info" = "maybe-all"; then
15361     if test "$module_selection" = "all"; then
15362       enable_info=$module_default
15363       _apmod_extra_msg=" (all)"
15364     else
15365       enable_info=no
15366     fi
15367   fi
15368   if test "$enable_info" != "no"; then
15369             :
15370   fi
15371   { $as_echo "$as_me:$LINENO: result: $enable_info$_apmod_extra_msg" >&5
15372 $as_echo "$enable_info$_apmod_extra_msg" >&6; }
15373   if test "$enable_info" != "no"; then
15374     case "$enable_info" in
15375     shared*)
15376       enable_info=`echo $ac_n $enable_info$ac_c|sed 's/shared,*//'`
15377       sharedobjs=yes
15378       shared=yes
15379       DSO_MODULES="$DSO_MODULES info"
15380       ;;
15381     *)
15382       MODLIST="$MODLIST info"
15383       if test "info" = "so"; then
15384           sharedobjs=yes
15385       fi
15386       shared="";;
15387     esac
15388
15389
15390   if test -z ""; then
15391     objects="mod_info.lo"
15392   else
15393     objects=""
15394   fi
15395
15396   if test -z "$module_standalone"; then
15397     if test -z "$shared"; then
15398       libname="mod_info.la"
15399       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15400       modpath_static="$modpath_static $libname"
15401       cat >>$modpath_current/modules.mk<<EOF
15402 $libname: $objects
15403         \$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
15404 EOF
15405     else
15406       apache_need_shared=yes
15407       libname="mod_info.la"
15408       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15409       modpath_shared="$modpath_shared $libname"
15410       cat >>$modpath_current/modules.mk<<EOF
15411 $libname: $shobjects
15412         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INFO_LDADD)
15413 EOF
15414     fi
15415   fi
15416
15417
15418   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"
15419
15420
15421
15422   fi
15423
15424
15425   { $as_echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
15426 $as_echo_n "checking whether to enable mod_suexec... " >&6; }
15427     # Check whether --enable-suexec was given.
15428 if test "${enable_suexec+set}" = set; then
15429   enableval=$enable_suexec;
15430 else
15431   enable_suexec=no
15432 fi
15433
15434     _apmod_extra_msg=""
15435       if test "$module_selection" = "most" -a "$enable_suexec" = "most"; then
15436     _apmod_error_fatal="no"
15437   else
15438     _apmod_error_fatal="yes"
15439   fi
15440   if test "$enable_suexec" = "static"; then
15441     enable_suexec=yes
15442   elif test "$enable_suexec" = "yes"; then
15443     enable_suexec=$module_default
15444     _apmod_extra_msg=" ($module_selection)"
15445   elif test "$enable_suexec" = "most"; then
15446     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15447       enable_suexec=$module_default
15448       _apmod_extra_msg=" ($module_selection)"
15449     elif test "$enable_suexec" != "yes"; then
15450       enable_suexec=no
15451     fi
15452   elif test "$enable_suexec" = "maybe-all"; then
15453     if test "$module_selection" = "all"; then
15454       enable_suexec=$module_default
15455       _apmod_extra_msg=" (all)"
15456     else
15457       enable_suexec=no
15458     fi
15459   fi
15460   if test "$enable_suexec" != "no"; then
15461             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
15462 $as_echo "checking dependencies" >&6; }
15463
15464               other_targets=suexec
15465                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
15466 $as_echo_n "checking whether to enable mod_suexec... " >&6; }
15467                     if test "$enable_suexec" = "no"; then
15468                       if test "$_apmod_error_fatal" = "no"; then
15469                         _apmod_extra_msg=" (disabled)"
15470                       else
15471                         { { $as_echo "$as_me:$LINENO: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&5
15472 $as_echo "$as_me: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&2;}
15473    { (exit 1); exit 1; }; }
15474                       fi
15475                     fi
15476   fi
15477   { $as_echo "$as_me:$LINENO: result: $enable_suexec$_apmod_extra_msg" >&5
15478 $as_echo "$enable_suexec$_apmod_extra_msg" >&6; }
15479   if test "$enable_suexec" != "no"; then
15480     case "$enable_suexec" in
15481     shared*)
15482       enable_suexec=`echo $ac_n $enable_suexec$ac_c|sed 's/shared,*//'`
15483       sharedobjs=yes
15484       shared=yes
15485       DSO_MODULES="$DSO_MODULES suexec"
15486       ;;
15487     *)
15488       MODLIST="$MODLIST suexec"
15489       if test "suexec" = "so"; then
15490           sharedobjs=yes
15491       fi
15492       shared="";;
15493     esac
15494
15495
15496   if test -z ""; then
15497     objects="mod_suexec.lo"
15498   else
15499     objects=""
15500   fi
15501
15502   if test -z "$module_standalone"; then
15503     if test -z "$shared"; then
15504       libname="mod_suexec.la"
15505       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15506       modpath_static="$modpath_static $libname"
15507       cat >>$modpath_current/modules.mk<<EOF
15508 $libname: $objects
15509         \$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
15510 EOF
15511     else
15512       apache_need_shared=yes
15513       libname="mod_suexec.la"
15514       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15515       modpath_shared="$modpath_shared $libname"
15516       cat >>$modpath_current/modules.mk<<EOF
15517 $libname: $shobjects
15518         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUEXEC_LDADD)
15519 EOF
15520     fi
15521   fi
15522
15523
15524   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"
15525
15526
15527
15528   fi
15529
15530
15531
15532   if test "x$LT_LDFLAGS" = "x"; then
15533     echo "  setting LT_LDFLAGS to \"-export-dynamic\""
15534     LT_LDFLAGS="-export-dynamic"
15535   else
15536     apr_addto_bugger="-export-dynamic"
15537     for i in $apr_addto_bugger; do
15538       apr_addto_duplicate="0"
15539       for j in $LT_LDFLAGS; do
15540         if test "x$i" = "x$j"; then
15541           apr_addto_duplicate="1"
15542           break
15543         fi
15544       done
15545       if test $apr_addto_duplicate = "0"; then
15546         echo "  adding \"$i\" to LT_LDFLAGS"
15547         LT_LDFLAGS="$LT_LDFLAGS $i"
15548       fi
15549     done
15550   fi
15551
15552
15553 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
15554 # if we are using a threaded MPM, we will get better performance with
15555 # mod_cgid, so make it the default.
15556
15557   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15558 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15559     # Check whether --enable-cgid was given.
15560 if test "${enable_cgid+set}" = set; then
15561   enableval=$enable_cgid;
15562 else
15563   enable_cgid=yes
15564 fi
15565
15566     _apmod_extra_msg=""
15567       if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
15568     _apmod_error_fatal="no"
15569   else
15570     _apmod_error_fatal="yes"
15571   fi
15572   if test "$enable_cgid" = "static"; then
15573     enable_cgid=yes
15574   elif test "$enable_cgid" = "yes"; then
15575     enable_cgid=$module_default
15576     _apmod_extra_msg=" ($module_selection)"
15577   elif test "$enable_cgid" = "most"; then
15578     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15579       enable_cgid=$module_default
15580       _apmod_extra_msg=" ($module_selection)"
15581     elif test "$enable_cgid" != "yes"; then
15582       enable_cgid=no
15583     fi
15584   elif test "$enable_cgid" = "maybe-all"; then
15585     if test "$module_selection" = "all"; then
15586       enable_cgid=$module_default
15587       _apmod_extra_msg=" (all)"
15588     else
15589       enable_cgid=no
15590     fi
15591   fi
15592   if test "$enable_cgid" != "no"; then
15593             { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
15594 $as_echo "checking dependencies" >&6; }
15595
15596     case $host in
15597       *-solaris2*)
15598         case `uname -r` in
15599           5.10)
15600                     case `uname -p` in
15601             i386)
15602               patch_id="120665"
15603               ;;
15604             sparc)
15605               patch_id="120664"
15606               ;;
15607             *)
15608               { $as_echo "$as_me:$LINENO: WARNING: Unknown platform" >&5
15609 $as_echo "$as_me: WARNING: Unknown platform" >&2;}
15610               patch_id="120664"
15611               ;;
15612           esac
15613           { $as_echo "$as_me:$LINENO: checking for Solaris patch $patch_id" >&5
15614 $as_echo_n "checking for Solaris patch $patch_id... " >&6; }
15615           showrev -p | grep "$patch_id" >/dev/null 2>&1
15616           if test $? -eq 1; then
15617                               { { $as_echo "$as_me:$LINENO: error: Please apply either patch # 120664 (Sparc) or # 120665 (x86).
15618 Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
15619 bug with AF_UNIX sockets.
15620 If you can not apply these patches, you can do one of the following:
15621  - run configure with --disable-cgid
15622  - switch to the prefork MPM
15623 For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" >&5
15624 $as_echo "$as_me: error: Please apply either patch # 120664 (Sparc) or # 120665 (x86).
15625 Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
15626 bug with AF_UNIX sockets.
15627 If you can not apply these patches, you can do one of the following:
15628  - run configure with --disable-cgid
15629  - switch to the prefork MPM
15630 For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" >&2;}
15631    { (exit 1); exit 1; }; }
15632           else
15633             { $as_echo "$as_me:$LINENO: result: yes" >&5
15634 $as_echo "yes" >&6; }
15635           fi
15636           ;;
15637         esac
15638         ;;
15639     esac
15640
15641                     { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15642 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15643                     if test "$enable_cgid" = "no"; then
15644                       if test "$_apmod_error_fatal" = "no"; then
15645                         _apmod_extra_msg=" (disabled)"
15646                       else
15647                         { { $as_echo "$as_me:$LINENO: error: mod_cgid has been requested but can not be built due to prerequisite failures" >&5
15648 $as_echo "$as_me: error: mod_cgid has been requested but can not be built due to prerequisite failures" >&2;}
15649    { (exit 1); exit 1; }; }
15650                       fi
15651                     fi
15652   fi
15653   { $as_echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
15654 $as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
15655   if test "$enable_cgid" != "no"; then
15656     case "$enable_cgid" in
15657     shared*)
15658       enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
15659       sharedobjs=yes
15660       shared=yes
15661       DSO_MODULES="$DSO_MODULES cgid"
15662       ;;
15663     *)
15664       MODLIST="$MODLIST cgid"
15665       if test "cgid" = "so"; then
15666           sharedobjs=yes
15667       fi
15668       shared="";;
15669     esac
15670
15671
15672   if test -z ""; then
15673     objects="mod_cgid.lo"
15674   else
15675     objects=""
15676   fi
15677
15678   if test -z "$module_standalone"; then
15679     if test -z "$shared"; then
15680       libname="mod_cgid.la"
15681       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15682       modpath_static="$modpath_static $libname"
15683       cat >>$modpath_current/modules.mk<<EOF
15684 $libname: $objects
15685         \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
15686 EOF
15687     else
15688       apache_need_shared=yes
15689       libname="mod_cgid.la"
15690       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15691       modpath_shared="$modpath_shared $libname"
15692       cat >>$modpath_current/modules.mk<<EOF
15693 $libname: $shobjects
15694         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
15695 EOF
15696     fi
15697   fi
15698
15699
15700   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
15701
15702
15703
15704   fi
15705
15706
15707   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
15708 $as_echo_n "checking whether to enable mod_cgi... " >&6; }
15709     # Check whether --enable-cgi was given.
15710 if test "${enable_cgi+set}" = set; then
15711   enableval=$enable_cgi;
15712 else
15713   enable_cgi=no
15714 fi
15715
15716     _apmod_extra_msg=""
15717       if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
15718     _apmod_error_fatal="no"
15719   else
15720     _apmod_error_fatal="yes"
15721   fi
15722   if test "$enable_cgi" = "static"; then
15723     enable_cgi=yes
15724   elif test "$enable_cgi" = "yes"; then
15725     enable_cgi=$module_default
15726     _apmod_extra_msg=" ($module_selection)"
15727   elif test "$enable_cgi" = "most"; then
15728     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15729       enable_cgi=$module_default
15730       _apmod_extra_msg=" ($module_selection)"
15731     elif test "$enable_cgi" != "yes"; then
15732       enable_cgi=no
15733     fi
15734   elif test "$enable_cgi" = "maybe-all"; then
15735     if test "$module_selection" = "all"; then
15736       enable_cgi=$module_default
15737       _apmod_extra_msg=" (all)"
15738     else
15739       enable_cgi=no
15740     fi
15741   fi
15742   if test "$enable_cgi" != "no"; then
15743             :
15744   fi
15745   { $as_echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
15746 $as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
15747   if test "$enable_cgi" != "no"; then
15748     case "$enable_cgi" in
15749     shared*)
15750       enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
15751       sharedobjs=yes
15752       shared=yes
15753       DSO_MODULES="$DSO_MODULES cgi"
15754       ;;
15755     *)
15756       MODLIST="$MODLIST cgi"
15757       if test "cgi" = "so"; then
15758           sharedobjs=yes
15759       fi
15760       shared="";;
15761     esac
15762
15763
15764   if test -z ""; then
15765     objects="mod_cgi.lo"
15766   else
15767     objects=""
15768   fi
15769
15770   if test -z "$module_standalone"; then
15771     if test -z "$shared"; then
15772       libname="mod_cgi.la"
15773       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15774       modpath_static="$modpath_static $libname"
15775       cat >>$modpath_current/modules.mk<<EOF
15776 $libname: $objects
15777         \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
15778 EOF
15779     else
15780       apache_need_shared=yes
15781       libname="mod_cgi.la"
15782       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15783       modpath_shared="$modpath_shared $libname"
15784       cat >>$modpath_current/modules.mk<<EOF
15785 $libname: $shobjects
15786         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
15787 EOF
15788     fi
15789   fi
15790
15791
15792   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
15793
15794
15795
15796   fi
15797
15798 else
15799 # if we are using a non-threaded MPM, it makes little sense to use
15800 # mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
15801 # default
15802
15803   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
15804 $as_echo_n "checking whether to enable mod_cgi... " >&6; }
15805     # Check whether --enable-cgi was given.
15806 if test "${enable_cgi+set}" = set; then
15807   enableval=$enable_cgi;
15808 else
15809   enable_cgi=yes
15810 fi
15811
15812     _apmod_extra_msg=""
15813       if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
15814     _apmod_error_fatal="no"
15815   else
15816     _apmod_error_fatal="yes"
15817   fi
15818   if test "$enable_cgi" = "static"; then
15819     enable_cgi=yes
15820   elif test "$enable_cgi" = "yes"; then
15821     enable_cgi=$module_default
15822     _apmod_extra_msg=" ($module_selection)"
15823   elif test "$enable_cgi" = "most"; then
15824     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15825       enable_cgi=$module_default
15826       _apmod_extra_msg=" ($module_selection)"
15827     elif test "$enable_cgi" != "yes"; then
15828       enable_cgi=no
15829     fi
15830   elif test "$enable_cgi" = "maybe-all"; then
15831     if test "$module_selection" = "all"; then
15832       enable_cgi=$module_default
15833       _apmod_extra_msg=" (all)"
15834     else
15835       enable_cgi=no
15836     fi
15837   fi
15838   if test "$enable_cgi" != "no"; then
15839             :
15840   fi
15841   { $as_echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
15842 $as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
15843   if test "$enable_cgi" != "no"; then
15844     case "$enable_cgi" in
15845     shared*)
15846       enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
15847       sharedobjs=yes
15848       shared=yes
15849       DSO_MODULES="$DSO_MODULES cgi"
15850       ;;
15851     *)
15852       MODLIST="$MODLIST cgi"
15853       if test "cgi" = "so"; then
15854           sharedobjs=yes
15855       fi
15856       shared="";;
15857     esac
15858
15859
15860   if test -z ""; then
15861     objects="mod_cgi.lo"
15862   else
15863     objects=""
15864   fi
15865
15866   if test -z "$module_standalone"; then
15867     if test -z "$shared"; then
15868       libname="mod_cgi.la"
15869       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15870       modpath_static="$modpath_static $libname"
15871       cat >>$modpath_current/modules.mk<<EOF
15872 $libname: $objects
15873         \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
15874 EOF
15875     else
15876       apache_need_shared=yes
15877       libname="mod_cgi.la"
15878       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15879       modpath_shared="$modpath_shared $libname"
15880       cat >>$modpath_current/modules.mk<<EOF
15881 $libname: $shobjects
15882         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
15883 EOF
15884     fi
15885   fi
15886
15887
15888   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
15889
15890
15891
15892   fi
15893
15894
15895   { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15896 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15897     # Check whether --enable-cgid was given.
15898 if test "${enable_cgid+set}" = set; then
15899   enableval=$enable_cgid;
15900 else
15901   enable_cgid=no
15902 fi
15903
15904     _apmod_extra_msg=""
15905       if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
15906     _apmod_error_fatal="no"
15907   else
15908     _apmod_error_fatal="yes"
15909   fi
15910   if test "$enable_cgid" = "static"; then
15911     enable_cgid=yes
15912   elif test "$enable_cgid" = "yes"; then
15913     enable_cgid=$module_default
15914     _apmod_extra_msg=" ($module_selection)"
15915   elif test "$enable_cgid" = "most"; then
15916     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15917       enable_cgid=$module_default
15918       _apmod_extra_msg=" ($module_selection)"
15919     elif test "$enable_cgid" != "yes"; then
15920       enable_cgid=no
15921     fi
15922   elif test "$enable_cgid" = "maybe-all"; then
15923     if test "$module_selection" = "all"; then
15924       enable_cgid=$module_default
15925       _apmod_extra_msg=" (all)"
15926     else
15927       enable_cgid=no
15928     fi
15929   fi
15930   if test "$enable_cgid" != "no"; then
15931             :
15932   fi
15933   { $as_echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
15934 $as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
15935   if test "$enable_cgid" != "no"; then
15936     case "$enable_cgid" in
15937     shared*)
15938       enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
15939       sharedobjs=yes
15940       shared=yes
15941       DSO_MODULES="$DSO_MODULES cgid"
15942       ;;
15943     *)
15944       MODLIST="$MODLIST cgid"
15945       if test "cgid" = "so"; then
15946           sharedobjs=yes
15947       fi
15948       shared="";;
15949     esac
15950
15951
15952   if test -z ""; then
15953     objects="mod_cgid.lo"
15954   else
15955     objects=""
15956   fi
15957
15958   if test -z "$module_standalone"; then
15959     if test -z "$shared"; then
15960       libname="mod_cgid.la"
15961       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15962       modpath_static="$modpath_static $libname"
15963       cat >>$modpath_current/modules.mk<<EOF
15964 $libname: $objects
15965         \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
15966 EOF
15967     else
15968       apache_need_shared=yes
15969       libname="mod_cgid.la"
15970       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15971       modpath_shared="$modpath_shared $libname"
15972       cat >>$modpath_current/modules.mk<<EOF
15973 $libname: $shobjects
15974         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
15975 EOF
15976     fi
15977   fi
15978
15979
15980   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
15981
15982
15983
15984   fi
15985
15986 fi
15987
15988
15989   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
15990   echo "static = $modpath_static" >> $modpath_current/modules.mk
15991   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
15992   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
15993     MODULE_DIRS="$MODULE_DIRS $current_dir"
15994   else
15995     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
15996   fi
15997
15998   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
15999
16000
16001
16002
16003 if test "$MPM_NAME" = "beos" ; then
16004     apache_apr_flags="--enable-threads"
16005
16006
16007   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16008
16009 fi
16010
16011
16012 if test "$MPM_NAME" = "leader" ; then
16013
16014 for ac_func in pthread_kill
16015 do
16016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16018 $as_echo_n "checking for $ac_func... " >&6; }
16019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16020   $as_echo_n "(cached) " >&6
16021 else
16022   cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16030 #define $ac_func innocuous_$ac_func
16031
16032 /* System header to define __stub macros and hopefully few prototypes,
16033     which can conflict with char $ac_func (); below.
16034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035     <limits.h> exists even on freestanding compilers.  */
16036
16037 #ifdef __STDC__
16038 # include <limits.h>
16039 #else
16040 # include <assert.h>
16041 #endif
16042
16043 #undef $ac_func
16044
16045 /* Override any GCC internal prototype to avoid an error.
16046    Use char because int might match the return type of a GCC
16047    builtin and then its argument prototype would still apply.  */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 char $ac_func ();
16052 /* The GNU C library defines this for functions which it implements
16053     to always fail with ENOSYS.  Some functions are actually named
16054     something starting with __ and the normal name is an alias.  */
16055 #if defined __stub_$ac_func || defined __stub___$ac_func
16056 choke me
16057 #endif
16058
16059 int
16060 main ()
16061 {
16062 return $ac_func ();
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (ac_try="$ac_link"
16069 case "(($ac_try" in
16070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071   *) ac_try_echo=$ac_try;;
16072 esac
16073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16074 $as_echo "$ac_try_echo") >&5
16075   (eval "$ac_link") 2>conftest.er1
16076   ac_status=$?
16077   grep -v '^ *+' conftest.er1 >conftest.err
16078   rm -f conftest.er1
16079   cat conftest.err >&5
16080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); } && {
16082          test -z "$ac_c_werror_flag" ||
16083          test ! -s conftest.err
16084        } && test -s conftest$ac_exeext && {
16085          test "$cross_compiling" = yes ||
16086          $as_test_x conftest$ac_exeext
16087        }; then
16088   eval "$as_ac_var=yes"
16089 else
16090   $as_echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093         eval "$as_ac_var=no"
16094 fi
16095
16096 rm -rf conftest.dSYM
16097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16098       conftest$ac_exeext conftest.$ac_ext
16099 fi
16100 ac_res=`eval 'as_val=${'$as_ac_var'}
16101                  $as_echo "$as_val"'`
16102                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16103 $as_echo "$ac_res" >&6; }
16104 as_val=`eval 'as_val=${'$as_ac_var'}
16105                  $as_echo "$as_val"'`
16106    if test "x$as_val" = x""yes; then
16107   cat >>confdefs.h <<_ACEOF
16108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16109 _ACEOF
16110
16111 fi
16112 done
16113
16114
16115   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16116
16117 fi
16118
16119
16120 if test "$MPM_NAME" = "perchild" ; then
16121
16122 for ac_func in pthread_kill
16123 do
16124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 $as_echo_n "checking for $ac_func... " >&6; }
16127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16128   $as_echo_n "(cached) " >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16138 #define $ac_func innocuous_$ac_func
16139
16140 /* System header to define __stub macros and hopefully few prototypes,
16141     which can conflict with char $ac_func (); below.
16142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143     <limits.h> exists even on freestanding compilers.  */
16144
16145 #ifdef __STDC__
16146 # include <limits.h>
16147 #else
16148 # include <assert.h>
16149 #endif
16150
16151 #undef $ac_func
16152
16153 /* Override any GCC internal prototype to avoid an error.
16154    Use char because int might match the return type of a GCC
16155    builtin and then its argument prototype would still apply.  */
16156 #ifdef __cplusplus
16157 extern "C"
16158 #endif
16159 char $ac_func ();
16160 /* The GNU C library defines this for functions which it implements
16161     to always fail with ENOSYS.  Some functions are actually named
16162     something starting with __ and the normal name is an alias.  */
16163 #if defined __stub_$ac_func || defined __stub___$ac_func
16164 choke me
16165 #endif
16166
16167 int
16168 main ()
16169 {
16170 return $ac_func ();
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (ac_try="$ac_link"
16177 case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16182 $as_echo "$ac_try_echo") >&5
16183   (eval "$ac_link") 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } && {
16190          test -z "$ac_c_werror_flag" ||
16191          test ! -s conftest.err
16192        } && test -s conftest$ac_exeext && {
16193          test "$cross_compiling" = yes ||
16194          $as_test_x conftest$ac_exeext
16195        }; then
16196   eval "$as_ac_var=yes"
16197 else
16198   $as_echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201         eval "$as_ac_var=no"
16202 fi
16203
16204 rm -rf conftest.dSYM
16205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16206       conftest$ac_exeext conftest.$ac_ext
16207 fi
16208 ac_res=`eval 'as_val=${'$as_ac_var'}
16209                  $as_echo "$as_val"'`
16210                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16211 $as_echo "$ac_res" >&6; }
16212 as_val=`eval 'as_val=${'$as_ac_var'}
16213                  $as_echo "$as_val"'`
16214    if test "x$as_val" = x""yes; then
16215   cat >>confdefs.h <<_ACEOF
16216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16217 _ACEOF
16218
16219 fi
16220 done
16221
16222
16223   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16224
16225 fi
16226
16227
16228 if test "$MPM_NAME" = "threadpool" ; then
16229
16230 for ac_func in pthread_kill
16231 do
16232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 $as_echo_n "checking for $ac_func... " >&6; }
16235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16236   $as_echo_n "(cached) " >&6
16237 else
16238   cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16246 #define $ac_func innocuous_$ac_func
16247
16248 /* System header to define __stub macros and hopefully few prototypes,
16249     which can conflict with char $ac_func (); below.
16250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251     <limits.h> exists even on freestanding compilers.  */
16252
16253 #ifdef __STDC__
16254 # include <limits.h>
16255 #else
16256 # include <assert.h>
16257 #endif
16258
16259 #undef $ac_func
16260
16261 /* Override any GCC internal prototype to avoid an error.
16262    Use char because int might match the return type of a GCC
16263    builtin and then its argument prototype would still apply.  */
16264 #ifdef __cplusplus
16265 extern "C"
16266 #endif
16267 char $ac_func ();
16268 /* The GNU C library defines this for functions which it implements
16269     to always fail with ENOSYS.  Some functions are actually named
16270     something starting with __ and the normal name is an alias.  */
16271 #if defined __stub_$ac_func || defined __stub___$ac_func
16272 choke me
16273 #endif
16274
16275 int
16276 main ()
16277 {
16278 return $ac_func ();
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (ac_try="$ac_link"
16285 case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291   (eval "$ac_link") 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } && {
16298          test -z "$ac_c_werror_flag" ||
16299          test ! -s conftest.err
16300        } && test -s conftest$ac_exeext && {
16301          test "$cross_compiling" = yes ||
16302          $as_test_x conftest$ac_exeext
16303        }; then
16304   eval "$as_ac_var=yes"
16305 else
16306   $as_echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309         eval "$as_ac_var=no"
16310 fi
16311
16312 rm -rf conftest.dSYM
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314       conftest$ac_exeext conftest.$ac_ext
16315 fi
16316 ac_res=`eval 'as_val=${'$as_ac_var'}
16317                  $as_echo "$as_val"'`
16318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16319 $as_echo "$ac_res" >&6; }
16320 as_val=`eval 'as_val=${'$as_ac_var'}
16321                  $as_echo "$as_val"'`
16322    if test "x$as_val" = x""yes; then
16323   cat >>confdefs.h <<_ACEOF
16324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16325 _ACEOF
16326
16327 fi
16328 done
16329
16330
16331   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16332
16333 fi
16334
16335 if test "$MPM_NAME" = "mpmt_os2" ; then
16336     cat >confcache <<\_ACEOF
16337 # This file is a shell script that caches the results of configure
16338 # tests run on this system so they can be shared between configure
16339 # scripts and configure runs, see configure's option --config-cache.
16340 # It is not useful on other systems.  If it contains results you don't
16341 # want to keep, you may remove or edit it.
16342 #
16343 # config.status only pays attention to the cache file if you give it
16344 # the --recheck option to rerun configure.
16345 #
16346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16348 # following values.
16349
16350 _ACEOF
16351
16352 # The following way of writing the cache mishandles newlines in values,
16353 # but we know of no workaround that is simple, portable, and efficient.
16354 # So, we kill variables containing newlines.
16355 # Ultrix sh set writes to stderr and can't be redirected directly,
16356 # and sets the high bit in the cache file unless we assign to the vars.
16357 (
16358   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16359     eval ac_val=\$$ac_var
16360     case $ac_val in #(
16361     *${as_nl}*)
16362       case $ac_var in #(
16363       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16365       esac
16366       case $ac_var in #(
16367       _ | IFS | as_nl) ;; #(
16368       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16369       *) $as_unset $ac_var ;;
16370       esac ;;
16371     esac
16372   done
16373
16374   (set) 2>&1 |
16375     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16376     *${as_nl}ac_space=\ *)
16377       # `set' does not quote correctly, so add quotes (double-quote
16378       # substitution turns \\\\ into \\, and sed turns \\ into \).
16379       sed -n \
16380         "s/'/'\\\\''/g;
16381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16382       ;; #(
16383     *)
16384       # `set' quotes correctly as required by POSIX, so do not add quotes.
16385       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16386       ;;
16387     esac |
16388     sort
16389 ) |
16390   sed '
16391      /^ac_cv_env_/b end
16392      t clear
16393      :clear
16394      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16395      t end
16396      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16397      :end' >>confcache
16398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16399   if test -w "$cache_file"; then
16400     test "x$cache_file" != "x/dev/null" &&
16401       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16402 $as_echo "$as_me: updating cache $cache_file" >&6;}
16403     cat confcache >$cache_file
16404   else
16405     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16407   fi
16408 fi
16409 rm -f confcache
16410
16411   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16412
16413
16414   if test "x$CFLAGS" = "x"; then
16415     echo "  setting CFLAGS to \"-Zmt\""
16416     CFLAGS="-Zmt"
16417   else
16418     apr_addto_bugger="-Zmt"
16419     for i in $apr_addto_bugger; do
16420       apr_addto_duplicate="0"
16421       for j in $CFLAGS; do
16422         if test "x$i" = "x$j"; then
16423           apr_addto_duplicate="1"
16424           break
16425         fi
16426       done
16427       if test $apr_addto_duplicate = "0"; then
16428         echo "  adding \"$i\" to CFLAGS"
16429         CFLAGS="$CFLAGS $i"
16430       fi
16431     done
16432   fi
16433
16434 fi
16435
16436
16437 if test "$MPM_NAME" = "worker" ; then
16438
16439 for ac_func in pthread_kill
16440 do
16441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16443 $as_echo_n "checking for $ac_func... " >&6; }
16444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16445   $as_echo_n "(cached) " >&6
16446 else
16447   cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16455 #define $ac_func innocuous_$ac_func
16456
16457 /* System header to define __stub macros and hopefully few prototypes,
16458     which can conflict with char $ac_func (); below.
16459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460     <limits.h> exists even on freestanding compilers.  */
16461
16462 #ifdef __STDC__
16463 # include <limits.h>
16464 #else
16465 # include <assert.h>
16466 #endif
16467
16468 #undef $ac_func
16469
16470 /* Override any GCC internal prototype to avoid an error.
16471    Use char because int might match the return type of a GCC
16472    builtin and then its argument prototype would still apply.  */
16473 #ifdef __cplusplus
16474 extern "C"
16475 #endif
16476 char $ac_func ();
16477 /* The GNU C library defines this for functions which it implements
16478     to always fail with ENOSYS.  Some functions are actually named
16479     something starting with __ and the normal name is an alias.  */
16480 #if defined __stub_$ac_func || defined __stub___$ac_func
16481 choke me
16482 #endif
16483
16484 int
16485 main ()
16486 {
16487 return $ac_func ();
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16499 $as_echo "$ac_try_echo") >&5
16500   (eval "$ac_link") 2>conftest.er1
16501   ac_status=$?
16502   grep -v '^ *+' conftest.er1 >conftest.err
16503   rm -f conftest.er1
16504   cat conftest.err >&5
16505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } && {
16507          test -z "$ac_c_werror_flag" ||
16508          test ! -s conftest.err
16509        } && test -s conftest$ac_exeext && {
16510          test "$cross_compiling" = yes ||
16511          $as_test_x conftest$ac_exeext
16512        }; then
16513   eval "$as_ac_var=yes"
16514 else
16515   $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518         eval "$as_ac_var=no"
16519 fi
16520
16521 rm -rf conftest.dSYM
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523       conftest$ac_exeext conftest.$ac_ext
16524 fi
16525 ac_res=`eval 'as_val=${'$as_ac_var'}
16526                  $as_echo "$as_val"'`
16527                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16528 $as_echo "$ac_res" >&6; }
16529 as_val=`eval 'as_val=${'$as_ac_var'}
16530                  $as_echo "$as_val"'`
16531    if test "x$as_val" = x""yes; then
16532   cat >>confdefs.h <<_ACEOF
16533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16534 _ACEOF
16535
16536 fi
16537 done
16538
16539
16540   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16541
16542 fi
16543
16544
16545
16546   current_dir=dav/fs
16547   modpath_current=modules/dav/fs
16548   modpath_static=
16549   modpath_shared=
16550   test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
16551   > $modpath_current/modules.mk
16552
16553
16554 dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"
16555
16556 if test "x$enable_dav" != "x"; then
16557   dav_fs_enable=$enable_dav
16558 else
16559   dav_fs_enable=$dav_enable
16560 fi
16561
16562 case "$host" in
16563   *os2*)
16564     # OS/2 DLLs must resolve all symbols at build time
16565     # and we need some from main DAV module
16566     dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
16567     ;;
16568 esac
16569
16570
16571   { $as_echo "$as_me:$LINENO: checking whether to enable mod_dav_fs" >&5
16572 $as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
16573     # Check whether --enable-dav-fs was given.
16574 if test "${enable_dav_fs+set}" = set; then
16575   enableval=$enable_dav_fs;
16576 else
16577   enable_dav_fs=$dav_fs_enable
16578 fi
16579
16580     _apmod_extra_msg=""
16581       if test "$module_selection" = "most" -a "$enable_dav_fs" = "most"; then
16582     _apmod_error_fatal="no"
16583   else
16584     _apmod_error_fatal="yes"
16585   fi
16586   if test "$enable_dav_fs" = "static"; then
16587     enable_dav_fs=yes
16588   elif test "$enable_dav_fs" = "yes"; then
16589     enable_dav_fs=$module_default
16590     _apmod_extra_msg=" ($module_selection)"
16591   elif test "$enable_dav_fs" = "most"; then
16592     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16593       enable_dav_fs=$module_default
16594       _apmod_extra_msg=" ($module_selection)"
16595     elif test "$enable_dav_fs" != "yes"; then
16596       enable_dav_fs=no
16597     fi
16598   elif test "$enable_dav_fs" = "maybe-all"; then
16599     if test "$module_selection" = "all"; then
16600       enable_dav_fs=$module_default
16601       _apmod_extra_msg=" (all)"
16602     else
16603       enable_dav_fs=no
16604     fi
16605   fi
16606   if test "$enable_dav_fs" != "no"; then
16607             :
16608   fi
16609   { $as_echo "$as_me:$LINENO: result: $enable_dav_fs$_apmod_extra_msg" >&5
16610 $as_echo "$enable_dav_fs$_apmod_extra_msg" >&6; }
16611   if test "$enable_dav_fs" != "no"; then
16612     case "$enable_dav_fs" in
16613     shared*)
16614       enable_dav_fs=`echo $ac_n $enable_dav_fs$ac_c|sed 's/shared,*//'`
16615       sharedobjs=yes
16616       shared=yes
16617       DSO_MODULES="$DSO_MODULES dav_fs"
16618       ;;
16619     *)
16620       MODLIST="$MODLIST dav_fs"
16621       if test "dav_fs" = "so"; then
16622           sharedobjs=yes
16623       fi
16624       shared="";;
16625     esac
16626
16627
16628   if test -z "$dav_fs_objects"; then
16629     objects="mod_dav_fs.lo"
16630   else
16631     objects="$dav_fs_objects"
16632   fi
16633
16634   if test -z "$module_standalone"; then
16635     if test -z "$shared"; then
16636       libname="mod_dav_fs.la"
16637       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16638       modpath_static="$modpath_static $libname"
16639       cat >>$modpath_current/modules.mk<<EOF
16640 $libname: $objects
16641         \$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
16642 EOF
16643     else
16644       apache_need_shared=yes
16645       libname="mod_dav_fs.la"
16646       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16647       modpath_shared="$modpath_shared $libname"
16648       cat >>$modpath_current/modules.mk<<EOF
16649 $libname: $shobjects
16650         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_FS_LDADD)
16651 EOF
16652     fi
16653   fi
16654
16655
16656   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"
16657
16658
16659
16660   fi
16661
16662
16663
16664   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
16665   echo "static = $modpath_static" >> $modpath_current/modules.mk
16666   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
16667   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
16668     MODULE_DIRS="$MODULE_DIRS $current_dir"
16669   else
16670     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
16671   fi
16672
16673   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
16674
16675
16676
16677
16678
16679
16680   current_dir=mappers
16681   modpath_current=modules/mappers
16682   modpath_static=
16683   modpath_shared=
16684   test -d mappers || $srcdir/build/mkdir.sh $modpath_current
16685   > $modpath_current/modules.mk
16686
16687
16688
16689   { $as_echo "$as_me:$LINENO: checking whether to enable mod_vhost_alias" >&5
16690 $as_echo_n "checking whether to enable mod_vhost_alias... " >&6; }
16691     # Check whether --enable-vhost-alias was given.
16692 if test "${enable_vhost_alias+set}" = set; then
16693   enableval=$enable_vhost_alias;
16694 else
16695   enable_vhost_alias=most
16696 fi
16697
16698     _apmod_extra_msg=""
16699       if test "$module_selection" = "most" -a "$enable_vhost_alias" = "most"; then
16700     _apmod_error_fatal="no"
16701   else
16702     _apmod_error_fatal="yes"
16703   fi
16704   if test "$enable_vhost_alias" = "static"; then
16705     enable_vhost_alias=yes
16706   elif test "$enable_vhost_alias" = "yes"; then
16707     enable_vhost_alias=$module_default
16708     _apmod_extra_msg=" ($module_selection)"
16709   elif test "$enable_vhost_alias" = "most"; then
16710     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16711       enable_vhost_alias=$module_default
16712       _apmod_extra_msg=" ($module_selection)"
16713     elif test "$enable_vhost_alias" != "yes"; then
16714       enable_vhost_alias=no
16715     fi
16716   elif test "$enable_vhost_alias" = "maybe-all"; then
16717     if test "$module_selection" = "all"; then
16718       enable_vhost_alias=$module_default
16719       _apmod_extra_msg=" (all)"
16720     else
16721       enable_vhost_alias=no
16722     fi
16723   fi
16724   if test "$enable_vhost_alias" != "no"; then
16725             :
16726   fi
16727   { $as_echo "$as_me:$LINENO: result: $enable_vhost_alias$_apmod_extra_msg" >&5
16728 $as_echo "$enable_vhost_alias$_apmod_extra_msg" >&6; }
16729   if test "$enable_vhost_alias" != "no"; then
16730     case "$enable_vhost_alias" in
16731     shared*)
16732       enable_vhost_alias=`echo $ac_n $enable_vhost_alias$ac_c|sed 's/shared,*//'`
16733       sharedobjs=yes
16734       shared=yes
16735       DSO_MODULES="$DSO_MODULES vhost_alias"
16736       ;;
16737     *)
16738       MODLIST="$MODLIST vhost_alias"
16739       if test "vhost_alias" = "so"; then
16740           sharedobjs=yes
16741       fi
16742       shared="";;
16743     esac
16744
16745
16746   if test -z ""; then
16747     objects="mod_vhost_alias.lo"
16748   else
16749     objects=""
16750   fi
16751
16752   if test -z "$module_standalone"; then
16753     if test -z "$shared"; then
16754       libname="mod_vhost_alias.la"
16755       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16756       modpath_static="$modpath_static $libname"
16757       cat >>$modpath_current/modules.mk<<EOF
16758 $libname: $objects
16759         \$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
16760 EOF
16761     else
16762       apache_need_shared=yes
16763       libname="mod_vhost_alias.la"
16764       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16765       modpath_shared="$modpath_shared $libname"
16766       cat >>$modpath_current/modules.mk<<EOF
16767 $libname: $shobjects
16768         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VHOST_ALIAS_LDADD)
16769 EOF
16770     fi
16771   fi
16772
16773
16774   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"
16775
16776
16777
16778   fi
16779
16780
16781   { $as_echo "$as_me:$LINENO: checking whether to enable mod_negotiation" >&5
16782 $as_echo_n "checking whether to enable mod_negotiation... " >&6; }
16783     # Check whether --enable-negotiation was given.
16784 if test "${enable_negotiation+set}" = set; then
16785   enableval=$enable_negotiation;
16786 else
16787   enable_negotiation=yes
16788 fi
16789
16790     _apmod_extra_msg=""
16791       if test "$module_selection" = "most" -a "$enable_negotiation" = "most"; then
16792     _apmod_error_fatal="no"
16793   else
16794     _apmod_error_fatal="yes"
16795   fi
16796   if test "$enable_negotiation" = "static"; then
16797     enable_negotiation=yes
16798   elif test "$enable_negotiation" = "yes"; then
16799     enable_negotiation=$module_default
16800     _apmod_extra_msg=" ($module_selection)"
16801   elif test "$enable_negotiation" = "most"; then
16802     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16803       enable_negotiation=$module_default
16804       _apmod_extra_msg=" ($module_selection)"
16805     elif test "$enable_negotiation" != "yes"; then
16806       enable_negotiation=no
16807     fi
16808   elif test "$enable_negotiation" = "maybe-all"; then
16809     if test "$module_selection" = "all"; then
16810       enable_negotiation=$module_default
16811       _apmod_extra_msg=" (all)"
16812     else
16813       enable_negotiation=no
16814     fi
16815   fi
16816   if test "$enable_negotiation" != "no"; then
16817             :
16818   fi
16819   { $as_echo "$as_me:$LINENO: result: $enable_negotiation$_apmod_extra_msg" >&5
16820 $as_echo "$enable_negotiation$_apmod_extra_msg" >&6; }
16821   if test "$enable_negotiation" != "no"; then
16822     case "$enable_negotiation" in
16823     shared*)
16824       enable_negotiation=`echo $ac_n $enable_negotiation$ac_c|sed 's/shared,*//'`
16825       sharedobjs=yes
16826       shared=yes
16827       DSO_MODULES="$DSO_MODULES negotiation"
16828       ;;
16829     *)
16830       MODLIST="$MODLIST negotiation"
16831       if test "negotiation" = "so"; then
16832           sharedobjs=yes
16833       fi
16834       shared="";;
16835     esac
16836
16837
16838   if test -z ""; then
16839     objects="mod_negotiation.lo"
16840   else
16841     objects=""
16842   fi
16843
16844   if test -z "$module_standalone"; then
16845     if test -z "$shared"; then
16846       libname="mod_negotiation.la"
16847       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16848       modpath_static="$modpath_static $libname"
16849       cat >>$modpath_current/modules.mk<<EOF
16850 $libname: $objects
16851         \$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
16852 EOF
16853     else
16854       apache_need_shared=yes
16855       libname="mod_negotiation.la"
16856       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16857       modpath_shared="$modpath_shared $libname"
16858       cat >>$modpath_current/modules.mk<<EOF
16859 $libname: $shobjects
16860         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_NEGOTIATION_LDADD)
16861 EOF
16862     fi
16863   fi
16864
16865
16866   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"
16867
16868
16869
16870   fi
16871
16872
16873   { $as_echo "$as_me:$LINENO: checking whether to enable mod_dir" >&5
16874 $as_echo_n "checking whether to enable mod_dir... " >&6; }
16875     # Check whether --enable-dir was given.
16876 if test "${enable_dir+set}" = set; then
16877   enableval=$enable_dir;
16878 else
16879   enable_dir=yes
16880 fi
16881
16882     _apmod_extra_msg=""
16883       if test "$module_selection" = "most" -a "$enable_dir" = "most"; then
16884     _apmod_error_fatal="no"
16885   else
16886     _apmod_error_fatal="yes"
16887   fi
16888   if test "$enable_dir" = "static"; then
16889     enable_dir=yes
16890   elif test "$enable_dir" = "yes"; then
16891     enable_dir=$module_default
16892     _apmod_extra_msg=" ($module_selection)"
16893   elif test "$enable_dir" = "most"; then
16894     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16895       enable_dir=$module_default
16896       _apmod_extra_msg=" ($module_selection)"
16897     elif test "$enable_dir" != "yes"; then
16898       enable_dir=no
16899     fi
16900   elif test "$enable_dir" = "maybe-all"; then
16901     if test "$module_selection" = "all"; then
16902       enable_dir=$module_default
16903       _apmod_extra_msg=" (all)"
16904     else
16905       enable_dir=no
16906     fi
16907   fi
16908   if test "$enable_dir" != "no"; then
16909             :
16910   fi
16911   { $as_echo "$as_me:$LINENO: result: $enable_dir$_apmod_extra_msg" >&5
16912 $as_echo "$enable_dir$_apmod_extra_msg" >&6; }
16913   if test "$enable_dir" != "no"; then
16914     case "$enable_dir" in
16915     shared*)
16916       enable_dir=`echo $ac_n $enable_dir$ac_c|sed 's/shared,*//'`
16917       sharedobjs=yes
16918       shared=yes
16919       DSO_MODULES="$DSO_MODULES dir"
16920       ;;
16921     *)
16922       MODLIST="$MODLIST dir"
16923       if test "dir" = "so"; then
16924           sharedobjs=yes
16925       fi
16926       shared="";;
16927     esac
16928
16929
16930   if test -z ""; then
16931     objects="mod_dir.lo"
16932   else
16933     objects=""
16934   fi
16935
16936   if test -z "$module_standalone"; then
16937     if test -z "$shared"; then
16938       libname="mod_dir.la"
16939       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16940       modpath_static="$modpath_static $libname"
16941       cat >>$modpath_current/modules.mk<<EOF
16942 $libname: $objects
16943         \$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
16944 EOF
16945     else
16946       apache_need_shared=yes
16947       libname="mod_dir.la"
16948       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16949       modpath_shared="$modpath_shared $libname"
16950       cat >>$modpath_current/modules.mk<<EOF
16951 $libname: $shobjects
16952         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIR_LDADD)
16953 EOF
16954     fi
16955   fi
16956
16957
16958   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"
16959
16960
16961
16962   fi
16963
16964
16965   { $as_echo "$as_me:$LINENO: checking whether to enable mod_imap" >&5
16966 $as_echo_n "checking whether to enable mod_imap... " >&6; }
16967     # Check whether --enable-imap was given.
16968 if test "${enable_imap+set}" = set; then
16969   enableval=$enable_imap;
16970 else
16971   enable_imap=yes
16972 fi
16973
16974     _apmod_extra_msg=""
16975       if test "$module_selection" = "most" -a "$enable_imap" = "most"; then
16976     _apmod_error_fatal="no"
16977   else
16978     _apmod_error_fatal="yes"
16979   fi
16980   if test "$enable_imap" = "static"; then
16981     enable_imap=yes
16982   elif test "$enable_imap" = "yes"; then
16983     enable_imap=$module_default
16984     _apmod_extra_msg=" ($module_selection)"
16985   elif test "$enable_imap" = "most"; then
16986     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16987       enable_imap=$module_default
16988       _apmod_extra_msg=" ($module_selection)"
16989     elif test "$enable_imap" != "yes"; then
16990       enable_imap=no
16991     fi
16992   elif test "$enable_imap" = "maybe-all"; then
16993     if test "$module_selection" = "all"; then
16994       enable_imap=$module_default
16995       _apmod_extra_msg=" (all)"
16996     else
16997       enable_imap=no
16998     fi
16999   fi
17000   if test "$enable_imap" != "no"; then
17001             :
17002   fi
17003   { $as_echo "$as_me:$LINENO: result: $enable_imap$_apmod_extra_msg" >&5
17004 $as_echo "$enable_imap$_apmod_extra_msg" >&6; }
17005   if test "$enable_imap" != "no"; then
17006     case "$enable_imap" in
17007     shared*)
17008       enable_imap=`echo $ac_n $enable_imap$ac_c|sed 's/shared,*//'`
17009       sharedobjs=yes
17010       shared=yes
17011       DSO_MODULES="$DSO_MODULES imap"
17012       ;;
17013     *)
17014       MODLIST="$MODLIST imap"
17015       if test "imap" = "so"; then
17016           sharedobjs=yes
17017       fi
17018       shared="";;
17019     esac
17020
17021
17022   if test -z ""; then
17023     objects="mod_imap.lo"
17024   else
17025     objects=""
17026   fi
17027
17028   if test -z "$module_standalone"; then
17029     if test -z "$shared"; then
17030       libname="mod_imap.la"
17031       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17032       modpath_static="$modpath_static $libname"
17033       cat >>$modpath_current/modules.mk<<EOF
17034 $libname: $objects
17035         \$(MOD_LINK) $objects \$(MOD_IMAP_LDADD)
17036 EOF
17037     else
17038       apache_need_shared=yes
17039       libname="mod_imap.la"
17040       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17041       modpath_shared="$modpath_shared $libname"
17042       cat >>$modpath_current/modules.mk<<EOF
17043 $libname: $shobjects
17044         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IMAP_LDADD)
17045 EOF
17046     fi
17047   fi
17048
17049
17050   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAP_LDADD"
17051
17052
17053
17054   fi
17055
17056
17057   { $as_echo "$as_me:$LINENO: checking whether to enable mod_actions" >&5
17058 $as_echo_n "checking whether to enable mod_actions... " >&6; }
17059     # Check whether --enable-actions was given.
17060 if test "${enable_actions+set}" = set; then
17061   enableval=$enable_actions;
17062 else
17063   enable_actions=yes
17064 fi
17065
17066     _apmod_extra_msg=""
17067       if test "$module_selection" = "most" -a "$enable_actions" = "most"; then
17068     _apmod_error_fatal="no"
17069   else
17070     _apmod_error_fatal="yes"
17071   fi
17072   if test "$enable_actions" = "static"; then
17073     enable_actions=yes
17074   elif test "$enable_actions" = "yes"; then
17075     enable_actions=$module_default
17076     _apmod_extra_msg=" ($module_selection)"
17077   elif test "$enable_actions" = "most"; then
17078     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17079       enable_actions=$module_default
17080       _apmod_extra_msg=" ($module_selection)"
17081     elif test "$enable_actions" != "yes"; then
17082       enable_actions=no
17083     fi
17084   elif test "$enable_actions" = "maybe-all"; then
17085     if test "$module_selection" = "all"; then
17086       enable_actions=$module_default
17087       _apmod_extra_msg=" (all)"
17088     else
17089       enable_actions=no
17090     fi
17091   fi
17092   if test "$enable_actions" != "no"; then
17093             :
17094   fi
17095   { $as_echo "$as_me:$LINENO: result: $enable_actions$_apmod_extra_msg" >&5
17096 $as_echo "$enable_actions$_apmod_extra_msg" >&6; }
17097   if test "$enable_actions" != "no"; then
17098     case "$enable_actions" in
17099     shared*)
17100       enable_actions=`echo $ac_n $enable_actions$ac_c|sed 's/shared,*//'`
17101       sharedobjs=yes
17102       shared=yes
17103       DSO_MODULES="$DSO_MODULES actions"
17104       ;;
17105     *)
17106       MODLIST="$MODLIST actions"
17107       if test "actions" = "so"; then
17108           sharedobjs=yes
17109       fi
17110       shared="";;
17111     esac
17112
17113
17114   if test -z ""; then
17115     objects="mod_actions.lo"
17116   else
17117     objects=""
17118   fi
17119
17120   if test -z "$module_standalone"; then
17121     if test -z "$shared"; then
17122       libname="mod_actions.la"
17123       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17124       modpath_static="$modpath_static $libname"
17125       cat >>$modpath_current/modules.mk<<EOF
17126 $libname: $objects
17127         \$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
17128 EOF
17129     else
17130       apache_need_shared=yes
17131       libname="mod_actions.la"
17132       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17133       modpath_shared="$modpath_shared $libname"
17134       cat >>$modpath_current/modules.mk<<EOF
17135 $libname: $shobjects
17136         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACTIONS_LDADD)
17137 EOF
17138     fi
17139   fi
17140
17141
17142   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"
17143
17144
17145
17146   fi
17147
17148
17149   { $as_echo "$as_me:$LINENO: checking whether to enable mod_speling" >&5
17150 $as_echo_n "checking whether to enable mod_speling... " >&6; }
17151     # Check whether --enable-speling was given.
17152 if test "${enable_speling+set}" = set; then
17153   enableval=$enable_speling;
17154 else
17155   enable_speling=most
17156 fi
17157
17158     _apmod_extra_msg=""
17159       if test "$module_selection" = "most" -a "$enable_speling" = "most"; then
17160     _apmod_error_fatal="no"
17161   else
17162     _apmod_error_fatal="yes"
17163   fi
17164   if test "$enable_speling" = "static"; then
17165     enable_speling=yes
17166   elif test "$enable_speling" = "yes"; then
17167     enable_speling=$module_default
17168     _apmod_extra_msg=" ($module_selection)"
17169   elif test "$enable_speling" = "most"; then
17170     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17171       enable_speling=$module_default
17172       _apmod_extra_msg=" ($module_selection)"
17173     elif test "$enable_speling" != "yes"; then
17174       enable_speling=no
17175     fi
17176   elif test "$enable_speling" = "maybe-all"; then
17177     if test "$module_selection" = "all"; then
17178       enable_speling=$module_default
17179       _apmod_extra_msg=" (all)"
17180     else
17181       enable_speling=no
17182     fi
17183   fi
17184   if test "$enable_speling" != "no"; then
17185             :
17186   fi
17187   { $as_echo "$as_me:$LINENO: result: $enable_speling$_apmod_extra_msg" >&5
17188 $as_echo "$enable_speling$_apmod_extra_msg" >&6; }
17189   if test "$enable_speling" != "no"; then
17190     case "$enable_speling" in
17191     shared*)
17192       enable_speling=`echo $ac_n $enable_speling$ac_c|sed 's/shared,*//'`
17193       sharedobjs=yes
17194       shared=yes
17195       DSO_MODULES="$DSO_MODULES speling"
17196       ;;
17197     *)
17198       MODLIST="$MODLIST speling"
17199       if test "speling" = "so"; then
17200           sharedobjs=yes
17201       fi
17202       shared="";;
17203     esac
17204
17205
17206   if test -z ""; then
17207     objects="mod_speling.lo"
17208   else
17209     objects=""
17210   fi
17211
17212   if test -z "$module_standalone"; then
17213     if test -z "$shared"; then
17214       libname="mod_speling.la"
17215       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17216       modpath_static="$modpath_static $libname"
17217       cat >>$modpath_current/modules.mk<<EOF
17218 $libname: $objects
17219         \$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
17220 EOF
17221     else
17222       apache_need_shared=yes
17223       libname="mod_speling.la"
17224       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17225       modpath_shared="$modpath_shared $libname"
17226       cat >>$modpath_current/modules.mk<<EOF
17227 $libname: $shobjects
17228         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SPELING_LDADD)
17229 EOF
17230     fi
17231   fi
17232
17233
17234   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"
17235
17236
17237
17238   fi
17239
17240
17241   { $as_echo "$as_me:$LINENO: checking whether to enable mod_userdir" >&5
17242 $as_echo_n "checking whether to enable mod_userdir... " >&6; }
17243     # Check whether --enable-userdir was given.
17244 if test "${enable_userdir+set}" = set; then
17245   enableval=$enable_userdir;
17246 else
17247   enable_userdir=yes
17248 fi
17249
17250     _apmod_extra_msg=""
17251       if test "$module_selection" = "most" -a "$enable_userdir" = "most"; then
17252     _apmod_error_fatal="no"
17253   else
17254     _apmod_error_fatal="yes"
17255   fi
17256   if test "$enable_userdir" = "static"; then
17257     enable_userdir=yes
17258   elif test "$enable_userdir" = "yes"; then
17259     enable_userdir=$module_default
17260     _apmod_extra_msg=" ($module_selection)"
17261   elif test "$enable_userdir" = "most"; then
17262     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17263       enable_userdir=$module_default
17264       _apmod_extra_msg=" ($module_selection)"
17265     elif test "$enable_userdir" != "yes"; then
17266       enable_userdir=no
17267     fi
17268   elif test "$enable_userdir" = "maybe-all"; then
17269     if test "$module_selection" = "all"; then
17270       enable_userdir=$module_default
17271       _apmod_extra_msg=" (all)"
17272     else
17273       enable_userdir=no
17274     fi
17275   fi
17276   if test "$enable_userdir" != "no"; then
17277             :
17278   fi
17279   { $as_echo "$as_me:$LINENO: result: $enable_userdir$_apmod_extra_msg" >&5
17280 $as_echo "$enable_userdir$_apmod_extra_msg" >&6; }
17281   if test "$enable_userdir" != "no"; then
17282     case "$enable_userdir" in
17283     shared*)
17284       enable_userdir=`echo $ac_n $enable_userdir$ac_c|sed 's/shared,*//'`
17285       sharedobjs=yes
17286       shared=yes
17287       DSO_MODULES="$DSO_MODULES userdir"
17288       ;;
17289     *)
17290       MODLIST="$MODLIST userdir"
17291       if test "userdir" = "so"; then
17292           sharedobjs=yes
17293       fi
17294       shared="";;
17295     esac
17296
17297
17298   if test -z ""; then
17299     objects="mod_userdir.lo"
17300   else
17301     objects=""
17302   fi
17303
17304   if test -z "$module_standalone"; then
17305     if test -z "$shared"; then
17306       libname="mod_userdir.la"
17307       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17308       modpath_static="$modpath_static $libname"
17309       cat >>$modpath_current/modules.mk<<EOF
17310 $libname: $objects
17311         \$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
17312 EOF
17313     else
17314       apache_need_shared=yes
17315       libname="mod_userdir.la"
17316       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17317       modpath_shared="$modpath_shared $libname"
17318       cat >>$modpath_current/modules.mk<<EOF
17319 $libname: $shobjects
17320         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERDIR_LDADD)
17321 EOF
17322     fi
17323   fi
17324
17325
17326   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"
17327
17328
17329
17330   fi
17331
17332
17333   { $as_echo "$as_me:$LINENO: checking whether to enable mod_alias" >&5
17334 $as_echo_n "checking whether to enable mod_alias... " >&6; }
17335     # Check whether --enable-alias was given.
17336 if test "${enable_alias+set}" = set; then
17337   enableval=$enable_alias;
17338 else
17339   enable_alias=yes
17340 fi
17341
17342     _apmod_extra_msg=""
17343       if test "$module_selection" = "most" -a "$enable_alias" = "most"; then
17344     _apmod_error_fatal="no"
17345   else
17346     _apmod_error_fatal="yes"
17347   fi
17348   if test "$enable_alias" = "static"; then
17349     enable_alias=yes
17350   elif test "$enable_alias" = "yes"; then
17351     enable_alias=$module_default
17352     _apmod_extra_msg=" ($module_selection)"
17353   elif test "$enable_alias" = "most"; then
17354     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17355       enable_alias=$module_default
17356       _apmod_extra_msg=" ($module_selection)"
17357     elif test "$enable_alias" != "yes"; then
17358       enable_alias=no
17359     fi
17360   elif test "$enable_alias" = "maybe-all"; then
17361     if test "$module_selection" = "all"; then
17362       enable_alias=$module_default
17363       _apmod_extra_msg=" (all)"
17364     else
17365       enable_alias=no
17366     fi
17367   fi
17368   if test "$enable_alias" != "no"; then
17369             :
17370   fi
17371   { $as_echo "$as_me:$LINENO: result: $enable_alias$_apmod_extra_msg" >&5
17372 $as_echo "$enable_alias$_apmod_extra_msg" >&6; }
17373   if test "$enable_alias" != "no"; then
17374     case "$enable_alias" in
17375     shared*)
17376       enable_alias=`echo $ac_n $enable_alias$ac_c|sed 's/shared,*//'`
17377       sharedobjs=yes
17378       shared=yes
17379       DSO_MODULES="$DSO_MODULES alias"
17380       ;;
17381     *)
17382       MODLIST="$MODLIST alias"
17383       if test "alias" = "so"; then
17384           sharedobjs=yes
17385       fi
17386       shared="";;
17387     esac
17388
17389
17390   if test -z ""; then
17391     objects="mod_alias.lo"
17392   else
17393     objects=""
17394   fi
17395
17396   if test -z "$module_standalone"; then
17397     if test -z "$shared"; then
17398       libname="mod_alias.la"
17399       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17400       modpath_static="$modpath_static $libname"
17401       cat >>$modpath_current/modules.mk<<EOF
17402 $libname: $objects
17403         \$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
17404 EOF
17405     else
17406       apache_need_shared=yes
17407       libname="mod_alias.la"
17408       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17409       modpath_shared="$modpath_shared $libname"
17410       cat >>$modpath_current/modules.mk<<EOF
17411 $libname: $shobjects
17412         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALIAS_LDADD)
17413 EOF
17414     fi
17415   fi
17416
17417
17418   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"
17419
17420
17421
17422   fi
17423
17424
17425
17426   { $as_echo "$as_me:$LINENO: checking whether to enable mod_rewrite" >&5
17427 $as_echo_n "checking whether to enable mod_rewrite... " >&6; }
17428     # Check whether --enable-rewrite was given.
17429 if test "${enable_rewrite+set}" = set; then
17430   enableval=$enable_rewrite;
17431 else
17432   enable_rewrite=most
17433 fi
17434
17435     _apmod_extra_msg=""
17436       if test "$module_selection" = "most" -a "$enable_rewrite" = "most"; then
17437     _apmod_error_fatal="no"
17438   else
17439     _apmod_error_fatal="yes"
17440   fi
17441   if test "$enable_rewrite" = "static"; then
17442     enable_rewrite=yes
17443   elif test "$enable_rewrite" = "yes"; then
17444     enable_rewrite=$module_default
17445     _apmod_extra_msg=" ($module_selection)"
17446   elif test "$enable_rewrite" = "most"; then
17447     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17448       enable_rewrite=$module_default
17449       _apmod_extra_msg=" ($module_selection)"
17450     elif test "$enable_rewrite" != "yes"; then
17451       enable_rewrite=no
17452     fi
17453   elif test "$enable_rewrite" = "maybe-all"; then
17454     if test "$module_selection" = "all"; then
17455       enable_rewrite=$module_default
17456       _apmod_extra_msg=" (all)"
17457     else
17458       enable_rewrite=no
17459     fi
17460   fi
17461   if test "$enable_rewrite" != "no"; then
17462             :
17463   fi
17464   { $as_echo "$as_me:$LINENO: result: $enable_rewrite$_apmod_extra_msg" >&5
17465 $as_echo "$enable_rewrite$_apmod_extra_msg" >&6; }
17466   if test "$enable_rewrite" != "no"; then
17467     case "$enable_rewrite" in
17468     shared*)
17469       enable_rewrite=`echo $ac_n $enable_rewrite$ac_c|sed 's/shared,*//'`
17470       sharedobjs=yes
17471       shared=yes
17472       DSO_MODULES="$DSO_MODULES rewrite"
17473       ;;
17474     *)
17475       MODLIST="$MODLIST rewrite"
17476       if test "rewrite" = "so"; then
17477           sharedobjs=yes
17478       fi
17479       shared="";;
17480     esac
17481
17482
17483   if test -z ""; then
17484     objects="mod_rewrite.lo"
17485   else
17486     objects=""
17487   fi
17488
17489   if test -z "$module_standalone"; then
17490     if test -z "$shared"; then
17491       libname="mod_rewrite.la"
17492       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17493       modpath_static="$modpath_static $libname"
17494       cat >>$modpath_current/modules.mk<<EOF
17495 $libname: $objects
17496         \$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
17497 EOF
17498     else
17499       apache_need_shared=yes
17500       libname="mod_rewrite.la"
17501       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17502       modpath_shared="$modpath_shared $libname"
17503       cat >>$modpath_current/modules.mk<<EOF
17504 $libname: $shobjects
17505         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
17506 EOF
17507     fi
17508   fi
17509
17510
17511   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"
17512
17513
17514
17515   fi
17516
17517
17518
17519
17520 apr_old_cppflags=$CPPFLAGS
17521 CPPFLAGS="$CPPFLAGS $INCLUDES"
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528
17529 #include <apr.h>
17530 #if APR_HAS_DSO
17531 YES_IS_DEFINED
17532 #endif
17533
17534 _ACEOF
17535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17536   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
17537   ac_cv_define_APR_HAS_DSO=yes
17538 else
17539   ac_cv_define_APR_HAS_DSO=no
17540 fi
17541 rm -f conftest*
17542
17543 CPPFLAGS=$apr_old_cppflags
17544
17545
17546 case "x$enable_so" in
17547     "xyes")
17548         if test $ac_cv_define_APR_HAS_DSO = "no"; then
17549             { { $as_echo "$as_me:$LINENO: error: mod_so has been requested but cannot be built on your system" >&5
17550 $as_echo "$as_me: error: mod_so has been requested but cannot be built on your system" >&2;}
17551    { (exit 1); exit 1; }; }
17552         fi
17553         ;;
17554     "xshared")
17555         { { $as_echo "$as_me:$LINENO: error: mod_so can not be built as a shared DSO" >&5
17556 $as_echo "$as_me: error: mod_so can not be built as a shared DSO" >&2;}
17557    { (exit 1); exit 1; }; }
17558         ;;
17559     "xno")
17560         ;;
17561     "x")
17562         enable_so=$ac_cv_define_APR_HAS_DSO
17563         ;;
17564 esac
17565
17566 if test "x$enable_so" = "xyes"; then
17567     enable_so="static"
17568 fi
17569
17570 if test "$sharedobjs" = "yes"; then
17571     if test $ac_cv_define_APR_HAS_DSO = "no"; then
17572         { { $as_echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&5
17573 $as_echo "$as_me: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&2;}
17574    { (exit 1); exit 1; }; }
17575     elif test $enable_so = "no"; then
17576         { { $as_echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so was disabled" >&5
17577 $as_echo "$as_me: error: shared objects have been requested but cannot be built since mod_so was disabled" >&2;}
17578    { (exit 1); exit 1; }; }
17579     fi
17580 fi
17581
17582
17583   { $as_echo "$as_me:$LINENO: checking whether to enable mod_so" >&5
17584 $as_echo_n "checking whether to enable mod_so... " >&6; }
17585     # Check whether --enable-so was given.
17586 if test "${enable_so+set}" = set; then
17587   enableval=$enable_so;
17588 else
17589   enable_so=$enable_so
17590 fi
17591
17592     _apmod_extra_msg=""
17593       if test "$module_selection" = "most" -a "$enable_so" = "most"; then
17594     _apmod_error_fatal="no"
17595   else
17596     _apmod_error_fatal="yes"
17597   fi
17598   if test "$enable_so" = "static"; then
17599     enable_so=yes
17600   elif test "$enable_so" = "yes"; then
17601     enable_so=$module_default
17602     _apmod_extra_msg=" ($module_selection)"
17603   elif test "$enable_so" = "most"; then
17604     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17605       enable_so=$module_default
17606       _apmod_extra_msg=" ($module_selection)"
17607     elif test "$enable_so" != "yes"; then
17608       enable_so=no
17609     fi
17610   elif test "$enable_so" = "maybe-all"; then
17611     if test "$module_selection" = "all"; then
17612       enable_so=$module_default
17613       _apmod_extra_msg=" (all)"
17614     else
17615       enable_so=no
17616     fi
17617   fi
17618   if test "$enable_so" != "no"; then
17619             :
17620   fi
17621   { $as_echo "$as_me:$LINENO: result: $enable_so$_apmod_extra_msg" >&5
17622 $as_echo "$enable_so$_apmod_extra_msg" >&6; }
17623   if test "$enable_so" != "no"; then
17624     case "$enable_so" in
17625     shared*)
17626       enable_so=`echo $ac_n $enable_so$ac_c|sed 's/shared,*//'`
17627       sharedobjs=yes
17628       shared=yes
17629       DSO_MODULES="$DSO_MODULES so"
17630       ;;
17631     *)
17632       MODLIST="$MODLIST so"
17633       if test "so" = "so"; then
17634           sharedobjs=yes
17635       fi
17636       shared="";;
17637     esac
17638
17639
17640   if test -z ""; then
17641     objects="mod_so.lo"
17642   else
17643     objects=""
17644   fi
17645
17646   if test -z "$module_standalone"; then
17647     if test -z "$shared"; then
17648       libname="mod_so.la"
17649       BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17650       modpath_static="$modpath_static $libname"
17651       cat >>$modpath_current/modules.mk<<EOF
17652 $libname: $objects
17653         \$(MOD_LINK) $objects \$(MOD_SO_LDADD)
17654 EOF
17655     else
17656       apache_need_shared=yes
17657       libname="mod_so.la"
17658       shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17659       modpath_shared="$modpath_shared $libname"
17660       cat >>$modpath_current/modules.mk<<EOF
17661 $libname: $shobjects
17662         \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SO_LDADD)
17663 EOF
17664     fi
17665   fi
17666
17667
17668   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"
17669
17670
17671
17672   fi
17673
17674
17675 cat >confcache <<\_ACEOF
17676 # This file is a shell script that caches the results of configure
17677 # tests run on this system so they can be shared between configure
17678 # scripts and configure runs, see configure's option --config-cache.
17679 # It is not useful on other systems.  If it contains results you don't
17680 # want to keep, you may remove or edit it.
17681 #
17682 # config.status only pays attention to the cache file if you give it
17683 # the --recheck option to rerun configure.
17684 #
17685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17687 # following values.
17688
17689 _ACEOF
17690
17691 # The following way of writing the cache mishandles newlines in values,
17692 # but we know of no workaround that is simple, portable, and efficient.
17693 # So, we kill variables containing newlines.
17694 # Ultrix sh set writes to stderr and can't be redirected directly,
17695 # and sets the high bit in the cache file unless we assign to the vars.
17696 (
17697   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17698     eval ac_val=\$$ac_var
17699     case $ac_val in #(
17700     *${as_nl}*)
17701       case $ac_var in #(
17702       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17704       esac
17705       case $ac_var in #(
17706       _ | IFS | as_nl) ;; #(
17707       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17708       *) $as_unset $ac_var ;;
17709       esac ;;
17710     esac
17711   done
17712
17713   (set) 2>&1 |
17714     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17715     *${as_nl}ac_space=\ *)
17716       # `set' does not quote correctly, so add quotes (double-quote
17717       # substitution turns \\\\ into \\, and sed turns \\ into \).
17718       sed -n \
17719         "s/'/'\\\\''/g;
17720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17721       ;; #(
17722     *)
17723       # `set' quotes correctly as required by POSIX, so do not add quotes.
17724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17725       ;;
17726     esac |
17727     sort
17728 ) |
17729   sed '
17730      /^ac_cv_env_/b end
17731      t clear
17732      :clear
17733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17734      t end
17735      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17736      :end' >>confcache
17737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17738   if test -w "$cache_file"; then
17739     test "x$cache_file" != "x/dev/null" &&
17740       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17741 $as_echo "$as_me: updating cache $cache_file" >&6;}
17742     cat confcache >$cache_file
17743   else
17744     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17746   fi
17747 fi
17748 rm -f confcache
17749
17750
17751   echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17752   echo "static = $modpath_static" >> $modpath_current/modules.mk
17753   echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17754   if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17755     MODULE_DIRS="$MODULE_DIRS $current_dir"
17756   else
17757     MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17758   fi
17759
17760   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17761
17762
17763
17764
17765
17766
17767   APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
17768
17769
17770
17771   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
17772
17773
17774
17775   APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
17776
17777
17778
17779   APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
17780
17781
17782
17783   APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
17784
17785
17786
17787   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
17788
17789
17790
17791   APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
17792
17793
17794
17795 PRE_SHARED_CMDS='echo ""'
17796 POST_SHARED_CMDS='echo ""'
17797
17798
17799 if test "$apache_need_shared" = "yes"; then
17800   if test -f $ac_aux_dir/ltconfig; then
17801     $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
17802   fi
17803   shared_build="shared-build"
17804 fi
17805
17806
17807 if test "$enable_so" = "yes"; then
17808   case $host in
17809     *-ibm-aix*)
17810       HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
17811       SH_LDFLAGS="$SH_LDFLAGS \$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
17812       UTIL_LDFLAGS="$UTIL_LDFLAGS -Wl,-uXML_Parse"
17813       ;;
17814     *beos)
17815       SH_LDFLAGS='$(top_builddir)/_APP_'
17816       PRE_SHARED_CMDS='ln -s $(top_builddir)/httpd $(top_builddir)/_APP_'
17817       POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
17818       ;;
17819     *os390)
17820       HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
17821       SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
17822   esac
17823 fi
17824
17825
17826   APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
17827
17828
17829
17830   APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
17831
17832
17833
17834   APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
17835
17836
17837
17838
17839 # Check whether --with-program-name was given.
17840 if test "${with_program_name+set}" = set; then
17841   withval=$with_program_name;
17842   progname="$withval"
17843 else
17844
17845   progname="httpd"
17846 fi
17847
17848
17849 # SuExec parameters
17850
17851 # Check whether --with-suexec-bin was given.
17852 if test "${with_suexec_bin+set}" = set; then
17853   withval=$with_suexec_bin;
17854
17855 cat >>confdefs.h <<_ACEOF
17856 #define SUEXEC_BIN "$withval"
17857 _ACEOF
17858
17859
17860 fi
17861
17862
17863
17864 # Check whether --with-suexec-caller was given.
17865 if test "${with_suexec_caller+set}" = set; then
17866   withval=$with_suexec_caller;
17867
17868 cat >>confdefs.h <<_ACEOF
17869 #define AP_HTTPD_USER "$withval"
17870 _ACEOF
17871
17872 fi
17873
17874
17875
17876 # Check whether --with-suexec-userdir was given.
17877 if test "${with_suexec_userdir+set}" = set; then
17878   withval=$with_suexec_userdir;
17879
17880 cat >>confdefs.h <<_ACEOF
17881 #define AP_USERDIR_SUFFIX "$withval"
17882 _ACEOF
17883
17884 fi
17885
17886
17887
17888 # Check whether --with-suexec-docroot was given.
17889 if test "${with_suexec_docroot+set}" = set; then
17890   withval=$with_suexec_docroot;
17891
17892 cat >>confdefs.h <<_ACEOF
17893 #define AP_DOC_ROOT "$withval"
17894 _ACEOF
17895
17896 fi
17897
17898
17899
17900 # Check whether --with-suexec-uidmin was given.
17901 if test "${with_suexec_uidmin+set}" = set; then
17902   withval=$with_suexec_uidmin;
17903
17904 cat >>confdefs.h <<_ACEOF
17905 #define AP_UID_MIN $withval
17906 _ACEOF
17907
17908 fi
17909
17910
17911
17912 # Check whether --with-suexec-gidmin was given.
17913 if test "${with_suexec_gidmin+set}" = set; then
17914   withval=$with_suexec_gidmin;
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define AP_GID_MIN $withval
17918 _ACEOF
17919
17920 fi
17921
17922
17923
17924 # Check whether --with-suexec-logfile was given.
17925 if test "${with_suexec_logfile+set}" = set; then
17926   withval=$with_suexec_logfile;
17927
17928 cat >>confdefs.h <<_ACEOF
17929 #define AP_LOG_EXEC "$withval"
17930 _ACEOF
17931
17932 fi
17933
17934
17935
17936 # Check whether --with-suexec-safepath was given.
17937 if test "${with_suexec_safepath+set}" = set; then
17938   withval=$with_suexec_safepath;
17939
17940 cat >>confdefs.h <<_ACEOF
17941 #define AP_SAFE_PATH "$withval"
17942 _ACEOF
17943
17944 fi
17945
17946
17947
17948 # Check whether --with-suexec-umask was given.
17949 if test "${with_suexec_umask+set}" = set; then
17950   withval=$with_suexec_umask;
17951
17952 cat >>confdefs.h <<_ACEOF
17953 #define AP_SUEXEC_UMASK 0$withval
17954 _ACEOF
17955
17956 fi
17957
17958
17959 AP_LIBS="$abs_builddir/srclib/pcre/libpcre.la $AP_LIBS"
17960
17961 AP_LIBS="$AP_LIBS `$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"
17962
17963   APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
17964
17965
17966
17967   APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
17968
17969
17970
17971   APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
17972
17973
17974
17975
17976 cat >>confdefs.h <<\_ACEOF
17977 #define AP_USING_AUTOCONF 1
17978 _ACEOF
17979
17980
17981 if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1
17985 _ACEOF
17986
17987 fi
17988
17989 if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then
17990
17991 cat >>confdefs.h <<\_ACEOF
17992 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
17993 _ACEOF
17994
17995 fi
17996
17997
17998 cat >>confdefs.h <<_ACEOF
17999 #define AP_SIG_GRACEFUL SIG$AP_SIG_GRACEFUL
18000 _ACEOF
18001
18002
18003 cat >>confdefs.h <<_ACEOF
18004 #define AP_SIG_GRACEFUL_STRING "SIG$AP_SIG_GRACEFUL"
18005 _ACEOF
18006
18007
18008 cat >>confdefs.h <<_ACEOF
18009 #define AP_SIG_GRACEFUL_SHORT $AP_SIG_GRACEFUL
18010 _ACEOF
18011
18012 AP_SIG_GRACEFUL_SHORT=$AP_SIG_GRACEFUL
18013 AP_SIG_GRACEFUL=SIG$AP_SIG_GRACEFUL_SHORT
18014
18015
18016
18017
18018 if test "$cross_compiling" = "no"; then
18019
18020  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18021 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18022 if test "${ac_cv_c_bigendian+set}" = set; then
18023   $as_echo_n "(cached) " >&6
18024 else
18025   ac_cv_c_bigendian=unknown
18026     # See if we're dealing with a universal compiler.
18027     cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 #ifndef __APPLE_CC__
18034                not a universal capable compiler
18035              #endif
18036              typedef int dummy;
18037
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (ac_try="$ac_compile"
18041 case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18046 $as_echo "$ac_try_echo") >&5
18047   (eval "$ac_compile") 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } && {
18054          test -z "$ac_c_werror_flag" ||
18055          test ! -s conftest.err
18056        } && test -s conftest.$ac_objext; then
18057
18058         # Check for potential -arch flags.  It is not universal unless
18059         # there are some -arch flags.  Note that *ppc* also matches
18060         # ppc64.  This check is also rather less than ideal.
18061         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
18062           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
18063         esac
18064 else
18065   $as_echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18067
18068
18069 fi
18070
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072     if test $ac_cv_c_bigendian = unknown; then
18073       # See if sys/param.h defines the BYTE_ORDER macro.
18074       cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h.  */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h.  */
18080 #include <sys/types.h>
18081              #include <sys/param.h>
18082
18083 int
18084 main ()
18085 {
18086 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18087                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18088                      && LITTLE_ENDIAN)
18089               bogus endian macros
18090              #endif
18091
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext
18097 if { (ac_try="$ac_compile"
18098 case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18103 $as_echo "$ac_try_echo") >&5
18104   (eval "$ac_compile") 2>conftest.er1
18105   ac_status=$?
18106   grep -v '^ *+' conftest.er1 >conftest.err
18107   rm -f conftest.er1
18108   cat conftest.err >&5
18109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } && {
18111          test -z "$ac_c_werror_flag" ||
18112          test ! -s conftest.err
18113        } && test -s conftest.$ac_objext; then
18114   # It does; now see whether it defined to BIG_ENDIAN or not.
18115          cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 #include <sys/types.h>
18122                 #include <sys/param.h>
18123
18124 int
18125 main ()
18126 {
18127 #if BYTE_ORDER != BIG_ENDIAN
18128                  not big endian
18129                 #endif
18130
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext
18136 if { (ac_try="$ac_compile"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143   (eval "$ac_compile") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } && {
18150          test -z "$ac_c_werror_flag" ||
18151          test ! -s conftest.err
18152        } && test -s conftest.$ac_objext; then
18153   ac_cv_c_bigendian=yes
18154 else
18155   $as_echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         ac_cv_c_bigendian=no
18159 fi
18160
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 else
18163   $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166
18167 fi
18168
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170     fi
18171     if test $ac_cv_c_bigendian = unknown; then
18172       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18173       cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h.  */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h.  */
18179 #include <limits.h>
18180
18181 int
18182 main ()
18183 {
18184 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18185               bogus endian macros
18186              #endif
18187
18188   ;
18189   return 0;
18190 }
18191 _ACEOF
18192 rm -f conftest.$ac_objext
18193 if { (ac_try="$ac_compile"
18194 case "(($ac_try" in
18195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196   *) ac_try_echo=$ac_try;;
18197 esac
18198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199 $as_echo "$ac_try_echo") >&5
18200   (eval "$ac_compile") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } && {
18207          test -z "$ac_c_werror_flag" ||
18208          test ! -s conftest.err
18209        } && test -s conftest.$ac_objext; then
18210   # It does; now see whether it defined to _BIG_ENDIAN or not.
18211          cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217 #include <limits.h>
18218
18219 int
18220 main ()
18221 {
18222 #ifndef _BIG_ENDIAN
18223                  not big endian
18224                 #endif
18225
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18237 $as_echo "$ac_try_echo") >&5
18238   (eval "$ac_compile") 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } && {
18245          test -z "$ac_c_werror_flag" ||
18246          test ! -s conftest.err
18247        } && test -s conftest.$ac_objext; then
18248   ac_cv_c_bigendian=yes
18249 else
18250   $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253         ac_cv_c_bigendian=no
18254 fi
18255
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 else
18258   $as_echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265     fi
18266     if test $ac_cv_c_bigendian = unknown; then
18267       # Compile a test program.
18268       if test "$cross_compiling" = yes; then
18269   # Try to guess by grepping values from an object file.
18270          cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276 short int ascii_mm[] =
18277                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18278                 short int ascii_ii[] =
18279                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18280                 int use_ascii (int i) {
18281                   return ascii_mm[i] + ascii_ii[i];
18282                 }
18283                 short int ebcdic_ii[] =
18284                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18285                 short int ebcdic_mm[] =
18286                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18287                 int use_ebcdic (int i) {
18288                   return ebcdic_mm[i] + ebcdic_ii[i];
18289                 }
18290                 extern int foo;
18291
18292 int
18293 main ()
18294 {
18295 return use_ascii (foo) == use_ebcdic (foo);
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304   *) ac_try_echo=$ac_try;;
18305 esac
18306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18307 $as_echo "$ac_try_echo") >&5
18308   (eval "$ac_compile") 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } && {
18315          test -z "$ac_c_werror_flag" ||
18316          test ! -s conftest.err
18317        } && test -s conftest.$ac_objext; then
18318   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18319               ac_cv_c_bigendian=yes
18320             fi
18321             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18322               if test "$ac_cv_c_bigendian" = unknown; then
18323                 ac_cv_c_bigendian=no
18324               else
18325                 # finding both strings is unlikely to happen, but who knows?
18326                 ac_cv_c_bigendian=unknown
18327               fi
18328             fi
18329 else
18330   $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333
18334 fi
18335
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 else
18338   cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344 $ac_includes_default
18345 int
18346 main ()
18347 {
18348
18349              /* Are we little or big endian?  From Harbison&Steele.  */
18350              union
18351              {
18352                long int l;
18353                char c[sizeof (long int)];
18354              } u;
18355              u.l = 1;
18356              return u.c[sizeof (long int) - 1] == 1;
18357
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18369 $as_echo "$ac_try_echo") >&5
18370   (eval "$ac_link") 2>&5
18371   ac_status=$?
18372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374   { (case "(($ac_try" in
18375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376   *) ac_try_echo=$ac_try;;
18377 esac
18378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18379 $as_echo "$ac_try_echo") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; }; then
18384   ac_cv_c_bigendian=no
18385 else
18386   $as_echo "$as_me: program exited with status $ac_status" >&5
18387 $as_echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 ( exit $ac_status )
18391 ac_cv_c_bigendian=yes
18392 fi
18393 rm -rf conftest.dSYM
18394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18395 fi
18396
18397
18398     fi
18399 fi
18400 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18401 $as_echo "$ac_cv_c_bigendian" >&6; }
18402  case $ac_cv_c_bigendian in #(
18403    yes)
18404      cat >>confdefs.h <<\_ACEOF
18405 #define WORDS_BIGENDIAN 1
18406 _ACEOF
18407 ;; #(
18408    no)
18409       ;; #(
18410    universal)
18411
18412 cat >>confdefs.h <<\_ACEOF
18413 #define AC_APPLE_UNIVERSAL_BUILD 1
18414 _ACEOF
18415
18416      ;; #(
18417    *)
18418      { { $as_echo "$as_me:$LINENO: error: unknown endianness
18419  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18420 $as_echo "$as_me: error: unknown endianness
18421  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18422    { (exit 1); exit 1; }; } ;;
18423  esac
18424
18425 else
18426
18427 cat >>confdefs.h <<\_ACEOF
18428 #define AP_UNKNOWN_BYTE_ORDER 1
18429 _ACEOF
18430
18431 fi
18432
18433
18434   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
18435
18436
18437   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/beos/Makefile os/os2/Makefile os/Makefile"
18438
18439
18440   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/unix/Makefile server/Makefile"
18441
18442
18443   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile srclib/pcre/Makefile"
18444
18445
18446 if test -d ./test; then
18447
18448   APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"
18449
18450 fi
18451
18452 echo $ac_n "${nl}Restore user-defined environment settings...${nl}"
18453
18454
18455 if test "x$apr_ste_save_CPPFLAGS" = "x"; then
18456   EXTRA_CPPFLAGS="$CPPFLAGS"
18457   CPPFLAGS=
18458 else
18459   if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
18460     EXTRA_CPPFLAGS=
18461   else
18462     EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
18463     CPPFLAGS="$apr_ste_save_CPPFLAGS"
18464   fi
18465 fi
18466 echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
18467 echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
18468
18469
18470
18471 if test "x$apr_ste_save_CFLAGS" = "x"; then
18472   EXTRA_CFLAGS="$CFLAGS"
18473   CFLAGS=
18474 else
18475   if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
18476     EXTRA_CFLAGS=
18477   else
18478     EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
18479     CFLAGS="$apr_ste_save_CFLAGS"
18480   fi
18481 fi
18482 echo "  restoring CFLAGS to \"$CFLAGS\""
18483 echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
18484
18485
18486
18487 if test "x$apr_ste_save_CXXFLAGS" = "x"; then
18488   EXTRA_CXXFLAGS="$CXXFLAGS"
18489   CXXFLAGS=
18490 else
18491   if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
18492     EXTRA_CXXFLAGS=
18493   else
18494     EXTRA_CXXFLAGS=`echo $CXXFLAGS | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
18495     CXXFLAGS="$apr_ste_save_CXXFLAGS"
18496   fi
18497 fi
18498 echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
18499 echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
18500
18501
18502
18503 if test "x$apr_ste_save_LDFLAGS" = "x"; then
18504   EXTRA_LDFLAGS="$LDFLAGS"
18505   LDFLAGS=
18506 else
18507   if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
18508     EXTRA_LDFLAGS=
18509   else
18510     EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
18511     LDFLAGS="$apr_ste_save_LDFLAGS"
18512   fi
18513 fi
18514 echo "  restoring LDFLAGS to \"$LDFLAGS\""
18515 echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
18516
18517
18518
18519 if test "x$apr_ste_save_LIBS" = "x"; then
18520   EXTRA_LIBS="$LIBS"
18521   LIBS=
18522 else
18523   if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
18524     EXTRA_LIBS=
18525   else
18526     EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
18527     LIBS="$apr_ste_save_LIBS"
18528   fi
18529 fi
18530 echo "  restoring LIBS to \"$LIBS\""
18531 echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
18532
18533
18534
18535 if test "x$apr_ste_save_INCLUDES" = "x"; then
18536   EXTRA_INCLUDES="$INCLUDES"
18537   INCLUDES=
18538 else
18539   if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
18540     EXTRA_INCLUDES=
18541   else
18542     EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
18543     INCLUDES="$apr_ste_save_INCLUDES"
18544   fi
18545 fi
18546 echo "  restoring INCLUDES to \"$INCLUDES\""
18547 echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
18548
18549
18550
18551 echo $ac_n "${nl}Construct makefiles and header files...${nl}"
18552
18553
18554
18555   APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
18556
18557
18558
18559   APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
18560
18561
18562
18563   APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
18564
18565
18566
18567   APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
18568
18569
18570
18571   APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
18572
18573
18574
18575   APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
18576
18577
18578
18579   APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
18580
18581
18582
18583   APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
18584
18585
18586
18587   APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
18588
18589
18590
18591   APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
18592
18593
18594
18595   APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
18596
18597
18598
18599   APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
18600
18601
18602
18603   APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
18604
18605
18606
18607   APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
18608
18609
18610
18611   APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
18612
18613
18614
18615   APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
18616
18617
18618
18619   APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
18620
18621
18622
18623   APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
18624
18625
18626
18627   APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
18628
18629
18630
18631   APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
18632
18633
18634
18635   APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
18636
18637
18638
18639   APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
18640
18641
18642
18643   APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
18644
18645
18646
18647   APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
18648
18649
18650
18651   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
18652
18653
18654
18655   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
18656
18657
18658
18659   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
18660
18661
18662
18663   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
18664
18665
18666
18667   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
18668
18669
18670
18671   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
18672
18673
18674
18675   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
18676
18677
18678
18679   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
18680
18681
18682
18683   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
18684
18685
18686
18687   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
18688
18689
18690
18691   APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
18692
18693
18694
18695   APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
18696
18697
18698
18699   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
18700
18701
18702
18703   APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
18704
18705
18706
18707   APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
18708
18709
18710
18711   APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
18712
18713
18714
18715   APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
18716
18717
18718
18719   APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
18720
18721
18722
18723   APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
18724
18725
18726
18727   APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
18728
18729
18730
18731   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
18732
18733
18734
18735   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
18736
18737
18738
18739   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
18740
18741
18742
18743   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
18744
18745
18746
18747   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
18748
18749
18750
18751   APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
18752
18753
18754
18755   APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
18756
18757
18758
18759   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
18760
18761
18762
18763   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
18764
18765
18766
18767   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
18768
18769
18770
18771   APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
18772
18773
18774
18775   APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_1"
18776
18777
18778
18779   APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_2"
18780
18781
18782
18783   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
18784
18785
18786
18787   APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
18788
18789
18790
18791   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
18792
18793
18794
18795   APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
18796
18797
18798
18799   APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
18800
18801
18802
18803   APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
18804
18805
18806
18807   APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
18808
18809
18810
18811   APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"
18812
18813
18814
18815   APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"
18816
18817
18818
18819   APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"
18820
18821
18822
18823   APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"
18824
18825
18826
18827   abs_srcdir="`(cd $srcdir && pwd)`"
18828
18829   echo creating config_vars.mk
18830   test -d build || $mkdir_p build
18831   > build/config_vars.mk
18832   for i in $APACHE_VAR_SUBST; do
18833     eval echo "$i = \$$i" >> build/config_vars.mk
18834   done
18835
18836
18837 rm -f modules.c
18838 echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
18839
18840
18841 ap_last=
18842 ap_cur="$prefix"
18843 while test "x${ap_cur}" != "x${ap_last}";
18844 do
18845   ap_last="${ap_cur}"
18846   ap_cur=`eval "echo ${ap_cur}"`
18847 done
18848 ap_prefix="${ap_cur}"
18849
18850
18851 cat >>confdefs.h <<_ACEOF
18852 #define HTTPD_ROOT "${ap_prefix}"
18853 _ACEOF
18854
18855
18856 cat >>confdefs.h <<_ACEOF
18857 #define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
18858 _ACEOF
18859
18860
18861 cat >>confdefs.h <<_ACEOF
18862 #define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
18863 _ACEOF
18864
18865
18866 cat >>confdefs.h <<_ACEOF
18867 #define APACHE_MPM_DIR "$MPM_DIR"
18868 _ACEOF
18869
18870
18871 perlbin=`$ac_aux_dir/PrintPath perl`
18872 if test "x$perlbin" = "x"; then
18873     perlbin="/replace/with/path/to/perl/interpreter"
18874 fi
18875
18876
18877
18878 BSD_MAKEFILE=no
18879 ap_make_include=include
18880 ap_make_delimiter=' '
18881 case $host in
18882 *bsdi*)
18883     # Check whether they've installed GNU make
18884     if make --version > /dev/null 2>&1; then
18885         true
18886     else
18887         BSD_MAKEFILE=yes
18888         ap_make_include=.include
18889         ap_make_delimiter='"'
18890     fi
18891     ;;
18892 esac
18893
18894
18895
18896 test -d docs/conf||$mkdir_p docs/conf
18897
18898 HTTPD_VERSION=`$srcdir/build/get-version.sh all $srcdir/include/ap_release.h AP_SERVER`
18899
18900
18901 ac_config_files="$ac_config_files $APACHE_OUTPUT_FILES docs/conf/httpd-std.conf docs/conf/ssl-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo"
18902
18903 ac_config_commands="$ac_config_commands default"
18904
18905 cat >confcache <<\_ACEOF
18906 # This file is a shell script that caches the results of configure
18907 # tests run on this system so they can be shared between configure
18908 # scripts and configure runs, see configure's option --config-cache.
18909 # It is not useful on other systems.  If it contains results you don't
18910 # want to keep, you may remove or edit it.
18911 #
18912 # config.status only pays attention to the cache file if you give it
18913 # the --recheck option to rerun configure.
18914 #
18915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18917 # following values.
18918
18919 _ACEOF
18920
18921 # The following way of writing the cache mishandles newlines in values,
18922 # but we know of no workaround that is simple, portable, and efficient.
18923 # So, we kill variables containing newlines.
18924 # Ultrix sh set writes to stderr and can't be redirected directly,
18925 # and sets the high bit in the cache file unless we assign to the vars.
18926 (
18927   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18928     eval ac_val=\$$ac_var
18929     case $ac_val in #(
18930     *${as_nl}*)
18931       case $ac_var in #(
18932       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18934       esac
18935       case $ac_var in #(
18936       _ | IFS | as_nl) ;; #(
18937       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18938       *) $as_unset $ac_var ;;
18939       esac ;;
18940     esac
18941   done
18942
18943   (set) 2>&1 |
18944     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18945     *${as_nl}ac_space=\ *)
18946       # `set' does not quote correctly, so add quotes (double-quote
18947       # substitution turns \\\\ into \\, and sed turns \\ into \).
18948       sed -n \
18949         "s/'/'\\\\''/g;
18950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18951       ;; #(
18952     *)
18953       # `set' quotes correctly as required by POSIX, so do not add quotes.
18954       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18955       ;;
18956     esac |
18957     sort
18958 ) |
18959   sed '
18960      /^ac_cv_env_/b end
18961      t clear
18962      :clear
18963      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18964      t end
18965      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18966      :end' >>confcache
18967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18968   if test -w "$cache_file"; then
18969     test "x$cache_file" != "x/dev/null" &&
18970       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18971 $as_echo "$as_me: updating cache $cache_file" >&6;}
18972     cat confcache >$cache_file
18973   else
18974     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18976   fi
18977 fi
18978 rm -f confcache
18979
18980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18981 # Let make expand exec_prefix.
18982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18983
18984 DEFS=-DHAVE_CONFIG_H
18985
18986 ac_libobjs=
18987 ac_ltlibobjs=
18988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18989   # 1. Remove the extension, and $U if already installed.
18990   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18991   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18992   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18993   #    will be set to the directory where LIBOBJS objects are built.
18994   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18995   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18996 done
18997 LIBOBJS=$ac_libobjs
18998
18999 LTLIBOBJS=$ac_ltlibobjs
19000
19001
19002
19003
19004 : ${CONFIG_STATUS=./config.status}
19005 ac_write_fail=0
19006 ac_clean_files_save=$ac_clean_files
19007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19008 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19010 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19011 #! $SHELL
19012 # Generated by $as_me.
19013 # Run this file to recreate the current configuration.
19014 # Compiler output produced by configure, useful for debugging
19015 # configure, is in config.log if it exists.
19016
19017 debug=false
19018 ac_cs_recheck=false
19019 ac_cs_silent=false
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19021 _ACEOF
19022
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 ## --------------------- ##
19025 ## M4sh Initialization.  ##
19026 ## --------------------- ##
19027
19028 # Be more Bourne compatible
19029 DUALCASE=1; export DUALCASE # for MKS sh
19030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19031   emulate sh
19032   NULLCMD=:
19033   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19034   # is contrary to our usage.  Disable this feature.
19035   alias -g '${1+"$@"}'='"$@"'
19036   setopt NO_GLOB_SUBST
19037 else
19038   case `(set -o) 2>/dev/null` in
19039   *posix*) set -o posix ;;
19040 esac
19041
19042 fi
19043
19044
19045
19046
19047 # PATH needs CR
19048 # Avoid depending upon Character Ranges.
19049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19052 as_cr_digits='0123456789'
19053 as_cr_alnum=$as_cr_Letters$as_cr_digits
19054
19055 as_nl='
19056 '
19057 export as_nl
19058 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19059 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19062 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19063   as_echo='printf %s\n'
19064   as_echo_n='printf %s'
19065 else
19066   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19067     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19068     as_echo_n='/usr/ucb/echo -n'
19069   else
19070     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19071     as_echo_n_body='eval
19072       arg=$1;
19073       case $arg in
19074       *"$as_nl"*)
19075         expr "X$arg" : "X\\(.*\\)$as_nl";
19076         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19077       esac;
19078       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19079     '
19080     export as_echo_n_body
19081     as_echo_n='sh -c $as_echo_n_body as_echo'
19082   fi
19083   export as_echo_body
19084   as_echo='sh -c $as_echo_body as_echo'
19085 fi
19086
19087 # The user is always right.
19088 if test "${PATH_SEPARATOR+set}" != set; then
19089   PATH_SEPARATOR=:
19090   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19091     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19092       PATH_SEPARATOR=';'
19093   }
19094 fi
19095
19096 # Support unset when possible.
19097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19098   as_unset=unset
19099 else
19100   as_unset=false
19101 fi
19102
19103
19104 # IFS
19105 # We need space, tab and new line, in precisely that order.  Quoting is
19106 # there to prevent editors from complaining about space-tab.
19107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19108 # splitting by setting IFS to empty value.)
19109 IFS=" ""        $as_nl"
19110
19111 # Find who we are.  Look in the path if we contain no directory separator.
19112 case $0 in
19113   *[\\/]* ) as_myself=$0 ;;
19114   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19115 for as_dir in $PATH
19116 do
19117   IFS=$as_save_IFS
19118   test -z "$as_dir" && as_dir=.
19119   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19120 done
19121 IFS=$as_save_IFS
19122
19123      ;;
19124 esac
19125 # We did not find ourselves, most probably we were run as `sh COMMAND'
19126 # in which case we are not to be found in the path.
19127 if test "x$as_myself" = x; then
19128   as_myself=$0
19129 fi
19130 if test ! -f "$as_myself"; then
19131   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19132   { (exit 1); exit 1; }
19133 fi
19134
19135 # Work around bugs in pre-3.0 UWIN ksh.
19136 for as_var in ENV MAIL MAILPATH
19137 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19138 done
19139 PS1='$ '
19140 PS2='> '
19141 PS4='+ '
19142
19143 # NLS nuisances.
19144 LC_ALL=C
19145 export LC_ALL
19146 LANGUAGE=C
19147 export LANGUAGE
19148
19149 # Required to use basename.
19150 if expr a : '\(a\)' >/dev/null 2>&1 &&
19151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19152   as_expr=expr
19153 else
19154   as_expr=false
19155 fi
19156
19157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19158   as_basename=basename
19159 else
19160   as_basename=false
19161 fi
19162
19163
19164 # Name of the executable.
19165 as_me=`$as_basename -- "$0" ||
19166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19167          X"$0" : 'X\(//\)$' \| \
19168          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19169 $as_echo X/"$0" |
19170     sed '/^.*\/\([^/][^/]*\)\/*$/{
19171             s//\1/
19172             q
19173           }
19174           /^X\/\(\/\/\)$/{
19175             s//\1/
19176             q
19177           }
19178           /^X\/\(\/\).*/{
19179             s//\1/
19180             q
19181           }
19182           s/.*/./; q'`
19183
19184 # CDPATH.
19185 $as_unset CDPATH
19186
19187
19188
19189   as_lineno_1=$LINENO
19190   as_lineno_2=$LINENO
19191   test "x$as_lineno_1" != "x$as_lineno_2" &&
19192   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19193
19194   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19195   # uniformly replaced by the line number.  The first 'sed' inserts a
19196   # line-number line after each line using $LINENO; the second 'sed'
19197   # does the real work.  The second script uses 'N' to pair each
19198   # line-number line with the line containing $LINENO, and appends
19199   # trailing '-' during substitution so that $LINENO is not a special
19200   # case at line end.
19201   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19202   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19203   # E. McMahon (1931-1989) for sed's syntax.  :-)
19204   sed -n '
19205     p
19206     /[$]LINENO/=
19207   ' <$as_myself |
19208     sed '
19209       s/[$]LINENO.*/&-/
19210       t lineno
19211       b
19212       :lineno
19213       N
19214       :loop
19215       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19216       t loop
19217       s/-\n.*//
19218     ' >$as_me.lineno &&
19219   chmod +x "$as_me.lineno" ||
19220     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19221    { (exit 1); exit 1; }; }
19222
19223   # Don't try to exec as it changes $[0], causing all sort of problems
19224   # (the dirname of $[0] is not the place where we might find the
19225   # original and so on.  Autoconf is especially sensitive to this).
19226   . "./$as_me.lineno"
19227   # Exit status is that of the last command.
19228   exit
19229 }
19230
19231
19232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19233   as_dirname=dirname
19234 else
19235   as_dirname=false
19236 fi
19237
19238 ECHO_C= ECHO_N= ECHO_T=
19239 case `echo -n x` in
19240 -n*)
19241   case `echo 'x\c'` in
19242   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19243   *)   ECHO_C='\c';;
19244   esac;;
19245 *)
19246   ECHO_N='-n';;
19247 esac
19248 if expr a : '\(a\)' >/dev/null 2>&1 &&
19249    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19250   as_expr=expr
19251 else
19252   as_expr=false
19253 fi
19254
19255 rm -f conf$$ conf$$.exe conf$$.file
19256 if test -d conf$$.dir; then
19257   rm -f conf$$.dir/conf$$.file
19258 else
19259   rm -f conf$$.dir
19260   mkdir conf$$.dir 2>/dev/null
19261 fi
19262 if (echo >conf$$.file) 2>/dev/null; then
19263   if ln -s conf$$.file conf$$ 2>/dev/null; then
19264     as_ln_s='ln -s'
19265     # ... but there are two gotchas:
19266     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19267     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19268     # In both cases, we have to default to `cp -p'.
19269     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19270       as_ln_s='cp -p'
19271   elif ln conf$$.file conf$$ 2>/dev/null; then
19272     as_ln_s=ln
19273   else
19274     as_ln_s='cp -p'
19275   fi
19276 else
19277   as_ln_s='cp -p'
19278 fi
19279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19280 rmdir conf$$.dir 2>/dev/null
19281
19282 if mkdir -p . 2>/dev/null; then
19283   as_mkdir_p=:
19284 else
19285   test -d ./-p && rmdir ./-p
19286   as_mkdir_p=false
19287 fi
19288
19289 if test -x / >/dev/null 2>&1; then
19290   as_test_x='test -x'
19291 else
19292   if ls -dL / >/dev/null 2>&1; then
19293     as_ls_L_option=L
19294   else
19295     as_ls_L_option=
19296   fi
19297   as_test_x='
19298     eval sh -c '\''
19299       if test -d "$1"; then
19300         test -d "$1/.";
19301       else
19302         case $1 in
19303         -*)set "./$1";;
19304         esac;
19305         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19306         ???[sx]*):;;*)false;;esac;fi
19307     '\'' sh
19308   '
19309 fi
19310 as_executable_p=$as_test_x
19311
19312 # Sed expression to map a string onto a valid CPP name.
19313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19314
19315 # Sed expression to map a string onto a valid variable name.
19316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19317
19318
19319 exec 6>&1
19320
19321 # Save the log message, to keep $[0] and so on meaningful, and to
19322 # report actual input values of CONFIG_FILES etc. instead of their
19323 # values after options handling.
19324 ac_log="
19325 This file was extended by $as_me, which was
19326 generated by GNU Autoconf 2.63.  Invocation command line was
19327
19328   CONFIG_FILES    = $CONFIG_FILES
19329   CONFIG_HEADERS  = $CONFIG_HEADERS
19330   CONFIG_LINKS    = $CONFIG_LINKS
19331   CONFIG_COMMANDS = $CONFIG_COMMANDS
19332   $ $0 $@
19333
19334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19335 "
19336
19337 _ACEOF
19338
19339 case $ac_config_files in *"
19340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19341 esac
19342
19343 case $ac_config_headers in *"
19344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19345 esac
19346
19347
19348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19349 # Files that config.status was made for.
19350 config_files="$ac_config_files"
19351 config_headers="$ac_config_headers"
19352 config_commands="$ac_config_commands"
19353
19354 _ACEOF
19355
19356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357 ac_cs_usage="\
19358 \`$as_me' instantiates files from templates according to the
19359 current configuration.
19360
19361 Usage: $0 [OPTION]... [FILE]...
19362
19363   -h, --help       print this help, then exit
19364   -V, --version    print version number and configuration settings, then exit
19365   -q, --quiet, --silent
19366                    do not print progress messages
19367   -d, --debug      don't remove temporary files
19368       --recheck    update $as_me by reconfiguring in the same conditions
19369       --file=FILE[:TEMPLATE]
19370                    instantiate the configuration file FILE
19371       --header=FILE[:TEMPLATE]
19372                    instantiate the configuration header FILE
19373
19374 Configuration files:
19375 $config_files
19376
19377 Configuration headers:
19378 $config_headers
19379
19380 Configuration commands:
19381 $config_commands
19382
19383 Report bugs to <bug-autoconf@gnu.org>."
19384
19385 _ACEOF
19386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19387 ac_cs_version="\\
19388 config.status
19389 configured by $0, generated by GNU Autoconf 2.63,
19390   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19391
19392 Copyright (C) 2008 Free Software Foundation, Inc.
19393 This config.status script is free software; the Free Software Foundation
19394 gives unlimited permission to copy, distribute and modify it."
19395
19396 ac_pwd='$ac_pwd'
19397 srcdir='$srcdir'
19398 INSTALL='$INSTALL'
19399 AWK='$AWK'
19400 test -n "\$AWK" || AWK=awk
19401 _ACEOF
19402
19403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404 # The default lists apply if the user does not specify any file.
19405 ac_need_defaults=:
19406 while test $# != 0
19407 do
19408   case $1 in
19409   --*=*)
19410     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19411     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19412     ac_shift=:
19413     ;;
19414   *)
19415     ac_option=$1
19416     ac_optarg=$2
19417     ac_shift=shift
19418     ;;
19419   esac
19420
19421   case $ac_option in
19422   # Handling of the options.
19423   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19424     ac_cs_recheck=: ;;
19425   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19426     $as_echo "$ac_cs_version"; exit ;;
19427   --debug | --debu | --deb | --de | --d | -d )
19428     debug=: ;;
19429   --file | --fil | --fi | --f )
19430     $ac_shift
19431     case $ac_optarg in
19432     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19433     esac
19434     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19435     ac_need_defaults=false;;
19436   --header | --heade | --head | --hea )
19437     $ac_shift
19438     case $ac_optarg in
19439     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19440     esac
19441     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19442     ac_need_defaults=false;;
19443   --he | --h)
19444     # Conflict between --help and --header
19445     { $as_echo "$as_me: error: ambiguous option: $1
19446 Try \`$0 --help' for more information." >&2
19447    { (exit 1); exit 1; }; };;
19448   --help | --hel | -h )
19449     $as_echo "$ac_cs_usage"; exit ;;
19450   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19451   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19452     ac_cs_silent=: ;;
19453
19454   # This is an error.
19455   -*) { $as_echo "$as_me: error: unrecognized option: $1
19456 Try \`$0 --help' for more information." >&2
19457    { (exit 1); exit 1; }; } ;;
19458
19459   *) ac_config_targets="$ac_config_targets $1"
19460      ac_need_defaults=false ;;
19461
19462   esac
19463   shift
19464 done
19465
19466 ac_configure_extra_args=
19467
19468 if $ac_cs_silent; then
19469   exec 6>/dev/null
19470   ac_configure_extra_args="$ac_configure_extra_args --silent"
19471 fi
19472
19473 _ACEOF
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 if \$ac_cs_recheck; then
19476   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19477   shift
19478   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19479   CONFIG_SHELL='$SHELL'
19480   export CONFIG_SHELL
19481   exec "\$@"
19482 fi
19483
19484 _ACEOF
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486 exec 5>>config.log
19487 {
19488   echo
19489   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19490 ## Running $as_me. ##
19491 _ASBOX
19492   $as_echo "$ac_log"
19493 } >&5
19494
19495 _ACEOF
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19497 #
19498 # INIT-COMMANDS
19499 #
19500
19501
19502   $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
19503
19504
19505
19506 _ACEOF
19507
19508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19509
19510 # Handling of arguments.
19511 for ac_config_target in $ac_config_targets
19512 do
19513   case $ac_config_target in
19514     "include/ap_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
19515     "$APACHE_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $APACHE_OUTPUT_FILES" ;;
19516     "docs/conf/httpd-std.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/httpd-std.conf" ;;
19517     "docs/conf/ssl-std.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/ssl-std.conf" ;;
19518     "include/ap_config_layout.h") CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
19519     "support/apxs") CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
19520     "support/apachectl") CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
19521     "support/dbmmanage") CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
19522     "support/envvars-std") CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
19523     "support/log_server_status") CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
19524     "support/logresolve.pl") CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
19525     "support/phf_abuse_log.cgi") CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
19526     "support/split-logfile") CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
19527     "build/rules.mk") CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
19528     "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
19529     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19530
19531   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19532 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19533    { (exit 1); exit 1; }; };;
19534   esac
19535 done
19536
19537
19538 # If the user did not use the arguments to specify the items to instantiate,
19539 # then the envvar interface is used.  Set only those that are not.
19540 # We use the long form for the default assignment because of an extremely
19541 # bizarre bug on SunOS 4.1.3.
19542 if $ac_need_defaults; then
19543   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19544   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19545   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19546 fi
19547
19548 # Have a temporary directory for convenience.  Make it in the build tree
19549 # simply because there is no reason against having it here, and in addition,
19550 # creating and moving files from /tmp can sometimes cause problems.
19551 # Hook for its removal unless debugging.
19552 # Note that there is a small window in which the directory will not be cleaned:
19553 # after its creation but before its name has been assigned to `$tmp'.
19554 $debug ||
19555 {
19556   tmp=
19557   trap 'exit_status=$?
19558   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19559 ' 0
19560   trap '{ (exit 1); exit 1; }' 1 2 13 15
19561 }
19562 # Create a (secure) tmp directory for tmp files.
19563
19564 {
19565   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19566   test -n "$tmp" && test -d "$tmp"
19567 }  ||
19568 {
19569   tmp=./conf$$-$RANDOM
19570   (umask 077 && mkdir "$tmp")
19571 } ||
19572 {
19573    $as_echo "$as_me: cannot create a temporary directory in ." >&2
19574    { (exit 1); exit 1; }
19575 }
19576
19577 # Set up the scripts for CONFIG_FILES section.
19578 # No need to generate them if there are no CONFIG_FILES.
19579 # This happens for instance with `./config.status config.h'.
19580 if test -n "$CONFIG_FILES"; then
19581
19582
19583 ac_cr='\r'
19584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19586   ac_cs_awk_cr='\\r'
19587 else
19588   ac_cs_awk_cr=$ac_cr
19589 fi
19590
19591 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19592 _ACEOF
19593
19594
19595 {
19596   echo "cat >conf$$subs.awk <<_ACEOF" &&
19597   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19598   echo "_ACEOF"
19599 } >conf$$subs.sh ||
19600   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19602    { (exit 1); exit 1; }; }
19603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19604 ac_delim='%!_!# '
19605 for ac_last_try in false false false false false :; do
19606   . ./conf$$subs.sh ||
19607     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19608 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19609    { (exit 1); exit 1; }; }
19610
19611   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19612   if test $ac_delim_n = $ac_delim_num; then
19613     break
19614   elif $ac_last_try; then
19615     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19616 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19617    { (exit 1); exit 1; }; }
19618   else
19619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19620   fi
19621 done
19622 rm -f conf$$subs.sh
19623
19624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19625 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19626 _ACEOF
19627 sed -n '
19628 h
19629 s/^/S["/; s/!.*/"]=/
19630 p
19631 g
19632 s/^[^!]*!//
19633 :repl
19634 t repl
19635 s/'"$ac_delim"'$//
19636 t delim
19637 :nl
19638 h
19639 s/\(.\{148\}\).*/\1/
19640 t more1
19641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19642 p
19643 n
19644 b repl
19645 :more1
19646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19647 p
19648 g
19649 s/.\{148\}//
19650 t nl
19651 :delim
19652 h
19653 s/\(.\{148\}\).*/\1/
19654 t more2
19655 s/["\\]/\\&/g; s/^/"/; s/$/"/
19656 p
19657 b
19658 :more2
19659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19660 p
19661 g
19662 s/.\{148\}//
19663 t delim
19664 ' <conf$$subs.awk | sed '
19665 /^[^""]/{
19666   N
19667   s/\n//
19668 }
19669 ' >>$CONFIG_STATUS || ac_write_fail=1
19670 rm -f conf$$subs.awk
19671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19672 _ACAWK
19673 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19674   for (key in S) S_is_set[key] = 1
19675   FS = "\a"
19676
19677 }
19678 {
19679   line = $ 0
19680   nfields = split(line, field, "@")
19681   substed = 0
19682   len = length(field[1])
19683   for (i = 2; i < nfields; i++) {
19684     key = field[i]
19685     keylen = length(key)
19686     if (S_is_set[key]) {
19687       value = S[key]
19688       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19689       len += length(value) + length(field[++i])
19690       substed = 1
19691     } else
19692       len += 1 + keylen
19693   }
19694
19695   print line
19696 }
19697
19698 _ACAWK
19699 _ACEOF
19700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19702   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19703 else
19704   cat
19705 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19706   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19707 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19708    { (exit 1); exit 1; }; }
19709 _ACEOF
19710
19711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19713 # trailing colons and then remove the whole line if VPATH becomes empty
19714 # (actually we leave an empty line to preserve line numbers).
19715 if test "x$srcdir" = x.; then
19716   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19717 s/:*\$(srcdir):*/:/
19718 s/:*\${srcdir}:*/:/
19719 s/:*@srcdir@:*/:/
19720 s/^\([^=]*=[     ]*\):*/\1/
19721 s/:*$//
19722 s/^[^=]*=[       ]*$//
19723 }'
19724 fi
19725
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727 fi # test -n "$CONFIG_FILES"
19728
19729 # Set up the scripts for CONFIG_HEADERS section.
19730 # No need to generate them if there are no CONFIG_HEADERS.
19731 # This happens for instance with `./config.status Makefile'.
19732 if test -n "$CONFIG_HEADERS"; then
19733 cat >"$tmp/defines.awk" <<\_ACAWK ||
19734 BEGIN {
19735 _ACEOF
19736
19737 # Transform confdefs.h into an awk script `defines.awk', embedded as
19738 # here-document in config.status, that substitutes the proper values into
19739 # config.h.in to produce config.h.
19740
19741 # Create a delimiter string that does not exist in confdefs.h, to ease
19742 # handling of long lines.
19743 ac_delim='%!_!# '
19744 for ac_last_try in false false :; do
19745   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19746   if test -z "$ac_t"; then
19747     break
19748   elif $ac_last_try; then
19749     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19750 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19751    { (exit 1); exit 1; }; }
19752   else
19753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19754   fi
19755 done
19756
19757 # For the awk script, D is an array of macro values keyed by name,
19758 # likewise P contains macro parameters if any.  Preserve backslash
19759 # newline sequences.
19760
19761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19762 sed -n '
19763 s/.\{148\}/&'"$ac_delim"'/g
19764 t rset
19765 :rset
19766 s/^[     ]*#[    ]*define[       ][      ]*/ /
19767 t def
19768 d
19769 :def
19770 s/\\$//
19771 t bsnl
19772 s/["\\]/\\&/g
19773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19774 D["\1"]=" \3"/p
19775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19776 d
19777 :bsnl
19778 s/["\\]/\\&/g
19779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19780 D["\1"]=" \3\\\\\\n"\\/p
19781 t cont
19782 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19783 t cont
19784 d
19785 :cont
19786 n
19787 s/.\{148\}/&'"$ac_delim"'/g
19788 t clear
19789 :clear
19790 s/\\$//
19791 t bsnlc
19792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19793 d
19794 :bsnlc
19795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19796 b cont
19797 ' <confdefs.h | sed '
19798 s/'"$ac_delim"'/"\\\
19799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19800
19801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19802   for (key in D) D_is_set[key] = 1
19803   FS = "\a"
19804 }
19805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19806   line = \$ 0
19807   split(line, arg, " ")
19808   if (arg[1] == "#") {
19809     defundef = arg[2]
19810     mac1 = arg[3]
19811   } else {
19812     defundef = substr(arg[1], 2)
19813     mac1 = arg[2]
19814   }
19815   split(mac1, mac2, "(") #)
19816   macro = mac2[1]
19817   prefix = substr(line, 1, index(line, defundef) - 1)
19818   if (D_is_set[macro]) {
19819     # Preserve the white space surrounding the "#".
19820     print prefix "define", macro P[macro] D[macro]
19821     next
19822   } else {
19823     # Replace #undef with comments.  This is necessary, for example,
19824     # in the case of _POSIX_SOURCE, which is predefined and required
19825     # on some systems where configure will not decide to define it.
19826     if (defundef == "undef") {
19827       print "/*", prefix defundef, macro, "*/"
19828       next
19829     }
19830   }
19831 }
19832 { print }
19833 _ACAWK
19834 _ACEOF
19835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19838    { (exit 1); exit 1; }; }
19839 fi # test -n "$CONFIG_HEADERS"
19840
19841
19842 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19843 shift
19844 for ac_tag
19845 do
19846   case $ac_tag in
19847   :[FHLC]) ac_mode=$ac_tag; continue;;
19848   esac
19849   case $ac_mode$ac_tag in
19850   :[FHL]*:*);;
19851   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19852 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19853    { (exit 1); exit 1; }; };;
19854   :[FH]-) ac_tag=-:-;;
19855   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19856   esac
19857   ac_save_IFS=$IFS
19858   IFS=:
19859   set x $ac_tag
19860   IFS=$ac_save_IFS
19861   shift
19862   ac_file=$1
19863   shift
19864
19865   case $ac_mode in
19866   :L) ac_source=$1;;
19867   :[FH])
19868     ac_file_inputs=
19869     for ac_f
19870     do
19871       case $ac_f in
19872       -) ac_f="$tmp/stdin";;
19873       *) # Look for the file first in the build tree, then in the source tree
19874          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19875          # because $ac_f cannot contain `:'.
19876          test -f "$ac_f" ||
19877            case $ac_f in
19878            [\\/$]*) false;;
19879            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19880            esac ||
19881            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19883    { (exit 1); exit 1; }; };;
19884       esac
19885       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19886       ac_file_inputs="$ac_file_inputs '$ac_f'"
19887     done
19888
19889     # Let's still pretend it is `configure' which instantiates (i.e., don't
19890     # use $as_me), people would be surprised to read:
19891     #    /* config.h.  Generated by config.status.  */
19892     configure_input='Generated from '`
19893           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19894         `' by configure.'
19895     if test x"$ac_file" != x-; then
19896       configure_input="$ac_file.  $configure_input"
19897       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19898 $as_echo "$as_me: creating $ac_file" >&6;}
19899     fi
19900     # Neutralize special characters interpreted by sed in replacement strings.
19901     case $configure_input in #(
19902     *\&* | *\|* | *\\* )
19903        ac_sed_conf_input=`$as_echo "$configure_input" |
19904        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19905     *) ac_sed_conf_input=$configure_input;;
19906     esac
19907
19908     case $ac_tag in
19909     *:-:* | *:-) cat >"$tmp/stdin" \
19910       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19912    { (exit 1); exit 1; }; } ;;
19913     esac
19914     ;;
19915   esac
19916
19917   ac_dir=`$as_dirname -- "$ac_file" ||
19918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19919          X"$ac_file" : 'X\(//\)[^/]' \| \
19920          X"$ac_file" : 'X\(//\)$' \| \
19921          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19922 $as_echo X"$ac_file" |
19923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19924             s//\1/
19925             q
19926           }
19927           /^X\(\/\/\)[^/].*/{
19928             s//\1/
19929             q
19930           }
19931           /^X\(\/\/\)$/{
19932             s//\1/
19933             q
19934           }
19935           /^X\(\/\).*/{
19936             s//\1/
19937             q
19938           }
19939           s/.*/./; q'`
19940   { as_dir="$ac_dir"
19941   case $as_dir in #(
19942   -*) as_dir=./$as_dir;;
19943   esac
19944   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19945     as_dirs=
19946     while :; do
19947       case $as_dir in #(
19948       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19949       *) as_qdir=$as_dir;;
19950       esac
19951       as_dirs="'$as_qdir' $as_dirs"
19952       as_dir=`$as_dirname -- "$as_dir" ||
19953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19954          X"$as_dir" : 'X\(//\)[^/]' \| \
19955          X"$as_dir" : 'X\(//\)$' \| \
19956          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19957 $as_echo X"$as_dir" |
19958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19959             s//\1/
19960             q
19961           }
19962           /^X\(\/\/\)[^/].*/{
19963             s//\1/
19964             q
19965           }
19966           /^X\(\/\/\)$/{
19967             s//\1/
19968             q
19969           }
19970           /^X\(\/\).*/{
19971             s//\1/
19972             q
19973           }
19974           s/.*/./; q'`
19975       test -d "$as_dir" && break
19976     done
19977     test -z "$as_dirs" || eval "mkdir $as_dirs"
19978   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19980    { (exit 1); exit 1; }; }; }
19981   ac_builddir=.
19982
19983 case "$ac_dir" in
19984 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19985 *)
19986   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19987   # A ".." for each directory in $ac_dir_suffix.
19988   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19989   case $ac_top_builddir_sub in
19990   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19991   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19992   esac ;;
19993 esac
19994 ac_abs_top_builddir=$ac_pwd
19995 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19996 # for backward compatibility:
19997 ac_top_builddir=$ac_top_build_prefix
19998
19999 case $srcdir in
20000   .)  # We are building in place.
20001     ac_srcdir=.
20002     ac_top_srcdir=$ac_top_builddir_sub
20003     ac_abs_top_srcdir=$ac_pwd ;;
20004   [\\/]* | ?:[\\/]* )  # Absolute name.
20005     ac_srcdir=$srcdir$ac_dir_suffix;
20006     ac_top_srcdir=$srcdir
20007     ac_abs_top_srcdir=$srcdir ;;
20008   *) # Relative name.
20009     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20010     ac_top_srcdir=$ac_top_build_prefix$srcdir
20011     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20012 esac
20013 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20014
20015
20016   case $ac_mode in
20017   :F)
20018   #
20019   # CONFIG_FILE
20020   #
20021
20022   case $INSTALL in
20023   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20024   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20025   esac
20026 _ACEOF
20027
20028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029 # If the template does not know about datarootdir, expand it.
20030 # FIXME: This hack should be removed a few years after 2.60.
20031 ac_datarootdir_hack=; ac_datarootdir_seen=
20032
20033 ac_sed_dataroot='
20034 /datarootdir/ {
20035   p
20036   q
20037 }
20038 /@datadir@/p
20039 /@docdir@/p
20040 /@infodir@/p
20041 /@localedir@/p
20042 /@mandir@/p
20043 '
20044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20045 *datarootdir*) ac_datarootdir_seen=yes;;
20046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20047   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20049 _ACEOF
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051   ac_datarootdir_hack='
20052   s&@datadir@&$datadir&g
20053   s&@docdir@&$docdir&g
20054   s&@infodir@&$infodir&g
20055   s&@localedir@&$localedir&g
20056   s&@mandir@&$mandir&g
20057     s&\\\${datarootdir}&$datarootdir&g' ;;
20058 esac
20059 _ACEOF
20060
20061 # Neutralize VPATH when `$srcdir' = `.'.
20062 # Shell code in configure.ac might set extrasub.
20063 # FIXME: do we really want to maintain this feature?
20064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20065 ac_sed_extra="$ac_vpsub
20066 $extrasub
20067 _ACEOF
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069 :t
20070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20071 s|@configure_input@|$ac_sed_conf_input|;t t
20072 s&@top_builddir@&$ac_top_builddir_sub&;t t
20073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20074 s&@srcdir@&$ac_srcdir&;t t
20075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20076 s&@top_srcdir@&$ac_top_srcdir&;t t
20077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20078 s&@builddir@&$ac_builddir&;t t
20079 s&@abs_builddir@&$ac_abs_builddir&;t t
20080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20081 s&@INSTALL@&$ac_INSTALL&;t t
20082 $ac_datarootdir_hack
20083 "
20084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20085   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20086 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20087    { (exit 1); exit 1; }; }
20088
20089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20090   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20091   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20092   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20093 which seems to be undefined.  Please make sure it is defined." >&5
20094 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20095 which seems to be undefined.  Please make sure it is defined." >&2;}
20096
20097   rm -f "$tmp/stdin"
20098   case $ac_file in
20099   -) cat "$tmp/out" && rm -f "$tmp/out";;
20100   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20101   esac \
20102   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20104    { (exit 1); exit 1; }; }
20105  ;;
20106   :H)
20107   #
20108   # CONFIG_HEADER
20109   #
20110   if test x"$ac_file" != x-; then
20111     {
20112       $as_echo "/* $configure_input  */" \
20113       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20114     } >"$tmp/config.h" \
20115       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20117    { (exit 1); exit 1; }; }
20118     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20119       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20121     else
20122       rm -f "$ac_file"
20123       mv "$tmp/config.h" "$ac_file" \
20124         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20126    { (exit 1); exit 1; }; }
20127     fi
20128   else
20129     $as_echo "/* $configure_input  */" \
20130       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20131       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20132 $as_echo "$as_me: error: could not create -" >&2;}
20133    { (exit 1); exit 1; }; }
20134   fi
20135  ;;
20136
20137   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20138 $as_echo "$as_me: executing $ac_file commands" >&6;}
20139  ;;
20140   esac
20141
20142
20143   case $ac_file$ac_mode in
20144     "default":C) true ;;
20145
20146   esac
20147 done # for ac_tag
20148
20149
20150 { (exit 0); exit 0; }
20151 _ACEOF
20152 chmod +x $CONFIG_STATUS
20153 ac_clean_files=$ac_clean_files_save
20154
20155 test $ac_write_fail = 0 ||
20156   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20157 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20158    { (exit 1); exit 1; }; }
20159
20160
20161 # configure is writing to config.log, and then calls config.status.
20162 # config.status does its own redirection, appending to config.log.
20163 # Unfortunately, on DOS this fails, as config.log is still kept open
20164 # by configure, so config.status won't be able to write to it; its
20165 # output is simply discarded.  So we exec the FD to /dev/null,
20166 # effectively closing config.log, so it can be properly (re)opened and
20167 # appended to by config.status.  When coming back to configure, we
20168 # need to make the FD available again.
20169 if test "$no_create" != yes; then
20170   ac_cs_success=:
20171   ac_config_status_args=
20172   test "$silent" = yes &&
20173     ac_config_status_args="$ac_config_status_args --quiet"
20174   exec 5>/dev/null
20175   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20176   exec 5>>config.log
20177   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20178   # would make configure fail if this is the last instruction.
20179   $ac_cs_success || { (exit 1); exit 1; }
20180 fi
20181 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20182   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20183 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20184 fi
20185
20186