OSDN Git Service

Merge branch 'master' into branch_0.13.0
[modchxj/mod_chxj.git] / src / serf / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="context.c"
580 ac_default_prefix=/usr/local/serf
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 mkdir_p
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 APR_LIBTOOL
668 APR_BINDIR
669 APR_INCLUDEDIR
670 APR_VERSION
671 APR_CONFIG
672 APU_BINDIR
673 APU_INCLUDEDIR
674 APU_VERSION
675 APU_CONFIG
676 CC
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
683 CPP
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 SERF_MAJOR_VERSION
688 SERF_DOTTED_VERSION
689 SERF_BUILD_SRCLIB_DIRS
690 SERF_CLEAN_SRCLIB_DIRS
691 GREP
692 EGREP
693 SERF_LIBS
694 LIBOBJS
695 LTLIBOBJS'
696 ac_subst_files=''
697       ac_precious_vars='build_alias
698 host_alias
699 target_alias
700 CC
701 CFLAGS
702 LDFLAGS
703 LIBS
704 CPPFLAGS
705 CPP'
706
707
708 # Initialize some variables set by options.
709 ac_init_help=
710 ac_init_version=false
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
713 cache_file=/dev/null
714 exec_prefix=NONE
715 no_create=
716 no_recursion=
717 prefix=NONE
718 program_prefix=NONE
719 program_suffix=NONE
720 program_transform_name=s,x,x,
721 silent=
722 site=
723 srcdir=
724 verbose=
725 x_includes=NONE
726 x_libraries=NONE
727
728 # Installation directory options.
729 # These are left unexpanded so users can "make install exec_prefix=/foo"
730 # and all the variables that are supposed to be based on exec_prefix
731 # by default will actually change.
732 # Use braces instead of parens because sh, perl, etc. also accept them.
733 # (The list follows the same order as the GNU Coding Standards.)
734 bindir='${exec_prefix}/bin'
735 sbindir='${exec_prefix}/sbin'
736 libexecdir='${exec_prefix}/libexec'
737 datarootdir='${prefix}/share'
738 datadir='${datarootdir}'
739 sysconfdir='${prefix}/etc'
740 sharedstatedir='${prefix}/com'
741 localstatedir='${prefix}/var'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE}'
745 infodir='${datarootdir}/info'
746 htmldir='${docdir}'
747 dvidir='${docdir}'
748 pdfdir='${docdir}'
749 psdir='${docdir}'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
753
754 ac_prev=
755 ac_dashdash=
756 for ac_option
757 do
758   # If the previous option needs an argument, assign it.
759   if test -n "$ac_prev"; then
760     eval $ac_prev=\$ac_option
761     ac_prev=
762     continue
763   fi
764
765   case $ac_option in
766   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767   *)    ac_optarg=yes ;;
768   esac
769
770   # Accept the important Cygnus configure options, so we can diagnose typos.
771
772   case $ac_dashdash$ac_option in
773   --)
774     ac_dashdash=yes ;;
775
776   -bindir | --bindir | --bindi | --bind | --bin | --bi)
777     ac_prev=bindir ;;
778   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779     bindir=$ac_optarg ;;
780
781   -build | --build | --buil | --bui | --bu)
782     ac_prev=build_alias ;;
783   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784     build_alias=$ac_optarg ;;
785
786   -cache-file | --cache-file | --cache-fil | --cache-fi \
787   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788     ac_prev=cache_file ;;
789   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791     cache_file=$ac_optarg ;;
792
793   --config-cache | -C)
794     cache_file=config.cache ;;
795
796   -datadir | --datadir | --datadi | --datad)
797     ac_prev=datadir ;;
798   -datadir=* | --datadir=* | --datadi=* | --datad=*)
799     datadir=$ac_optarg ;;
800
801   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802   | --dataroo | --dataro | --datar)
803     ac_prev=datarootdir ;;
804   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806     datarootdir=$ac_optarg ;;
807
808   -disable-* | --disable-*)
809     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810     # Reject names that are not valid shell variable names.
811     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
813    { (exit 1); exit 1; }; }
814     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
815     eval enable_$ac_feature=no ;;
816
817   -docdir | --docdir | --docdi | --doc | --do)
818     ac_prev=docdir ;;
819   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820     docdir=$ac_optarg ;;
821
822   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823     ac_prev=dvidir ;;
824   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825     dvidir=$ac_optarg ;;
826
827   -enable-* | --enable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834     eval enable_$ac_feature=\$ac_optarg ;;
835
836   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838   | --exec | --exe | --ex)
839     ac_prev=exec_prefix ;;
840   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842   | --exec=* | --exe=* | --ex=*)
843     exec_prefix=$ac_optarg ;;
844
845   -gas | --gas | --ga | --g)
846     # Obsolete; use --with-gas.
847     with_gas=yes ;;
848
849   -help | --help | --hel | --he | -h)
850     ac_init_help=long ;;
851   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852     ac_init_help=recursive ;;
853   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854     ac_init_help=short ;;
855
856   -host | --host | --hos | --ho)
857     ac_prev=host_alias ;;
858   -host=* | --host=* | --hos=* | --ho=*)
859     host_alias=$ac_optarg ;;
860
861   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862     ac_prev=htmldir ;;
863   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864   | --ht=*)
865     htmldir=$ac_optarg ;;
866
867   -includedir | --includedir | --includedi | --included | --include \
868   | --includ | --inclu | --incl | --inc)
869     ac_prev=includedir ;;
870   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871   | --includ=* | --inclu=* | --incl=* | --inc=*)
872     includedir=$ac_optarg ;;
873
874   -infodir | --infodir | --infodi | --infod | --info | --inf)
875     ac_prev=infodir ;;
876   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877     infodir=$ac_optarg ;;
878
879   -libdir | --libdir | --libdi | --libd)
880     ac_prev=libdir ;;
881   -libdir=* | --libdir=* | --libdi=* | --libd=*)
882     libdir=$ac_optarg ;;
883
884   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885   | --libexe | --libex | --libe)
886     ac_prev=libexecdir ;;
887   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888   | --libexe=* | --libex=* | --libe=*)
889     libexecdir=$ac_optarg ;;
890
891   -localedir | --localedir | --localedi | --localed | --locale)
892     ac_prev=localedir ;;
893   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894     localedir=$ac_optarg ;;
895
896   -localstatedir | --localstatedir | --localstatedi | --localstated \
897   | --localstate | --localstat | --localsta | --localst | --locals)
898     ac_prev=localstatedir ;;
899   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901     localstatedir=$ac_optarg ;;
902
903   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904     ac_prev=mandir ;;
905   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906     mandir=$ac_optarg ;;
907
908   -nfp | --nfp | --nf)
909     # Obsolete; use --without-fp.
910     with_fp=no ;;
911
912   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913   | --no-cr | --no-c | -n)
914     no_create=yes ;;
915
916   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918     no_recursion=yes ;;
919
920   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922   | --oldin | --oldi | --old | --ol | --o)
923     ac_prev=oldincludedir ;;
924   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927     oldincludedir=$ac_optarg ;;
928
929   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930     ac_prev=prefix ;;
931   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932     prefix=$ac_optarg ;;
933
934   -program-prefix | --program-prefix | --program-prefi | --program-pref \
935   | --program-pre | --program-pr | --program-p)
936     ac_prev=program_prefix ;;
937   -program-prefix=* | --program-prefix=* | --program-prefi=* \
938   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939     program_prefix=$ac_optarg ;;
940
941   -program-suffix | --program-suffix | --program-suffi | --program-suff \
942   | --program-suf | --program-su | --program-s)
943     ac_prev=program_suffix ;;
944   -program-suffix=* | --program-suffix=* | --program-suffi=* \
945   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946     program_suffix=$ac_optarg ;;
947
948   -program-transform-name | --program-transform-name \
949   | --program-transform-nam | --program-transform-na \
950   | --program-transform-n | --program-transform- \
951   | --program-transform | --program-transfor \
952   | --program-transfo | --program-transf \
953   | --program-trans | --program-tran \
954   | --progr-tra | --program-tr | --program-t)
955     ac_prev=program_transform_name ;;
956   -program-transform-name=* | --program-transform-name=* \
957   | --program-transform-nam=* | --program-transform-na=* \
958   | --program-transform-n=* | --program-transform-=* \
959   | --program-transform=* | --program-transfor=* \
960   | --program-transfo=* | --program-transf=* \
961   | --program-trans=* | --program-tran=* \
962   | --progr-tra=* | --program-tr=* | --program-t=*)
963     program_transform_name=$ac_optarg ;;
964
965   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966     ac_prev=pdfdir ;;
967   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968     pdfdir=$ac_optarg ;;
969
970   -psdir | --psdir | --psdi | --psd | --ps)
971     ac_prev=psdir ;;
972   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973     psdir=$ac_optarg ;;
974
975   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976   | -silent | --silent | --silen | --sile | --sil)
977     silent=yes ;;
978
979   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980     ac_prev=sbindir ;;
981   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982   | --sbi=* | --sb=*)
983     sbindir=$ac_optarg ;;
984
985   -sharedstatedir | --sharedstatedir | --sharedstatedi \
986   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987   | --sharedst | --shareds | --shared | --share | --shar \
988   | --sha | --sh)
989     ac_prev=sharedstatedir ;;
990   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993   | --sha=* | --sh=*)
994     sharedstatedir=$ac_optarg ;;
995
996   -site | --site | --sit)
997     ac_prev=site ;;
998   -site=* | --site=* | --sit=*)
999     site=$ac_optarg ;;
1000
1001   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002     ac_prev=srcdir ;;
1003   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004     srcdir=$ac_optarg ;;
1005
1006   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007   | --syscon | --sysco | --sysc | --sys | --sy)
1008     ac_prev=sysconfdir ;;
1009   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011     sysconfdir=$ac_optarg ;;
1012
1013   -target | --target | --targe | --targ | --tar | --ta | --t)
1014     ac_prev=target_alias ;;
1015   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016     target_alias=$ac_optarg ;;
1017
1018   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1019     verbose=yes ;;
1020
1021   -version | --version | --versio | --versi | --vers | -V)
1022     ac_init_version=: ;;
1023
1024   -with-* | --with-*)
1025     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028       { echo "$as_me: error: invalid package name: $ac_package" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1031     eval with_$ac_package=\$ac_optarg ;;
1032
1033   -without-* | --without-*)
1034     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037       { echo "$as_me: error: invalid package name: $ac_package" >&2
1038    { (exit 1); exit 1; }; }
1039     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040     eval with_$ac_package=no ;;
1041
1042   --x)
1043     # Obsolete; use --with-x.
1044     with_x=yes ;;
1045
1046   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047   | --x-incl | --x-inc | --x-in | --x-i)
1048     ac_prev=x_includes ;;
1049   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051     x_includes=$ac_optarg ;;
1052
1053   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055     ac_prev=x_libraries ;;
1056   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058     x_libraries=$ac_optarg ;;
1059
1060   -*) { echo "$as_me: error: unrecognized option: $ac_option
1061 Try \`$0 --help' for more information." >&2
1062    { (exit 1); exit 1; }; }
1063     ;;
1064
1065   *=*)
1066     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1070    { (exit 1); exit 1; }; }
1071     eval $ac_envvar=\$ac_optarg
1072     export $ac_envvar ;;
1073
1074   *)
1075     # FIXME: should be removed in autoconf 3.0.
1076     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1080     ;;
1081
1082   esac
1083 done
1084
1085 if test -n "$ac_prev"; then
1086   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087   { echo "$as_me: error: missing argument to $ac_option" >&2
1088    { (exit 1); exit 1; }; }
1089 fi
1090
1091 # Be sure to have absolute directory names.
1092 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093                 datadir sysconfdir sharedstatedir localstatedir includedir \
1094                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095                 libdir localedir mandir
1096 do
1097   eval ac_val=\$$ac_var
1098   case $ac_val in
1099     [\\/$]* | ?:[\\/]* )  continue;;
1100     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1101   esac
1102   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1103    { (exit 1); exit 1; }; }
1104 done
1105
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1109 build=$build_alias
1110 host=$host_alias
1111 target=$target_alias
1112
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115   if test "x$build_alias" = x; then
1116     cross_compiling=maybe
1117     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118     If a cross compiler is detected then cross compile mode will be used." >&2
1119   elif test "x$build_alias" != "x$host_alias"; then
1120     cross_compiling=yes
1121   fi
1122 fi
1123
1124 ac_tool_prefix=
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126
1127 test "$silent" = yes && exec 6>/dev/null
1128
1129
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133   { echo "$as_me: error: Working directory cannot be determined" >&2
1134    { (exit 1); exit 1; }; }
1135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1136   { echo "$as_me: error: pwd does not report name of working directory" >&2
1137    { (exit 1); exit 1; }; }
1138
1139
1140 # Find the source files, if location was not specified.
1141 if test -z "$srcdir"; then
1142   ac_srcdir_defaulted=yes
1143   # Try the directory containing this script, then the parent directory.
1144   ac_confdir=`$as_dirname -- "$0" ||
1145 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146          X"$0" : 'X\(//\)[^/]' \| \
1147          X"$0" : 'X\(//\)$' \| \
1148          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1149 echo X"$0" |
1150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151             s//\1/
1152             q
1153           }
1154           /^X\(\/\/\)[^/].*/{
1155             s//\1/
1156             q
1157           }
1158           /^X\(\/\/\)$/{
1159             s//\1/
1160             q
1161           }
1162           /^X\(\/\).*/{
1163             s//\1/
1164             q
1165           }
1166           s/.*/./; q'`
1167   srcdir=$ac_confdir
1168   if test ! -r "$srcdir/$ac_unique_file"; then
1169     srcdir=..
1170   fi
1171 else
1172   ac_srcdir_defaulted=no
1173 fi
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1177    { (exit 1); exit 1; }; }
1178 fi
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1180 ac_abs_confdir=`(
1181         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1182    { (exit 1); exit 1; }; }
1183         pwd)`
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1186   srcdir=.
1187 fi
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1191 case $srcdir in
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 esac
1194 for ac_var in $ac_precious_vars; do
1195   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196   eval ac_env_${ac_var}_value=\$${ac_var}
1197   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 done
1200
1201 #
1202 # Report the --help message.
1203 #
1204 if test "$ac_init_help" = "long"; then
1205   # Omit some internal or obsolete options to make the list less imposing.
1206   # This message is too long to be a string in the A/UX 3.1 sh.
1207   cat <<_ACEOF
1208 \`configure' configures this package to adapt to many kinds of systems.
1209
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1211
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE.  See below for descriptions of some of the useful variables.
1214
1215 Defaults for the options are specified in brackets.
1216
1217 Configuration:
1218   -h, --help              display this help and exit
1219       --help=short        display options specific to this package
1220       --help=recursive    display the short help of all the included packages
1221   -V, --version           display version information and exit
1222   -q, --quiet, --silent   do not print \`checking...' messages
1223       --cache-file=FILE   cache test results in FILE [disabled]
1224   -C, --config-cache      alias for \`--cache-file=config.cache'
1225   -n, --no-create         do not create output files
1226       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1227
1228 Installation directories:
1229   --prefix=PREFIX         install architecture-independent files in PREFIX
1230                           [$ac_default_prefix]
1231   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1232                           [PREFIX]
1233
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1238
1239 For better control, use the options below.
1240
1241 Fine tuning of the installation directories:
1242   --bindir=DIR           user executables [EPREFIX/bin]
1243   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1244   --libexecdir=DIR       program executables [EPREFIX/libexec]
1245   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1246   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1247   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1248   --libdir=DIR           object code libraries [EPREFIX/lib]
1249   --includedir=DIR       C header files [PREFIX/include]
1250   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1251   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1252   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1253   --infodir=DIR          info documentation [DATAROOTDIR/info]
1254   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1255   --mandir=DIR           man documentation [DATAROOTDIR/man]
1256   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1257   --htmldir=DIR          html documentation [DOCDIR]
1258   --dvidir=DIR           dvi documentation [DOCDIR]
1259   --pdfdir=DIR           pdf documentation [DOCDIR]
1260   --psdir=DIR            ps documentation [DOCDIR]
1261 _ACEOF
1262
1263   cat <<\_ACEOF
1264
1265 System types:
1266   --build=BUILD     configure for building on BUILD [guessed]
1267   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1268   --target=TARGET   configure for building compilers for TARGET [HOST]
1269 _ACEOF
1270 fi
1271
1272 if test -n "$ac_init_help"; then
1273
1274   cat <<\_ACEOF
1275
1276 Optional Features:
1277   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1278   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1279   --enable-layout=LAYOUT
1280
1281 Optional Packages:
1282   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1283   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1284   --with-apr=PATH         prefix for installed APR or the full path to
1285                              apr-config
1286   --with-apr-util=PATH    prefix for installed APU or the full path to
1287                              apu-config
1288   --with-openssl=PATH     Path to OpenSSL (eg. /usr/local/ssl)
1289
1290 Some influential environment variables:
1291   CC          C compiler command
1292   CFLAGS      C compiler flags
1293   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1294               nonstandard directory <lib dir>
1295   LIBS        libraries to pass to the linker, e.g. -l<library>
1296   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1297               you have headers in a nonstandard directory <include dir>
1298   CPP         C preprocessor
1299
1300 Use these variables to override the choices made by `configure' or to help
1301 it to find libraries and programs with nonstandard names/locations.
1302
1303 _ACEOF
1304 ac_status=$?
1305 fi
1306
1307 if test "$ac_init_help" = "recursive"; then
1308   # If there are subdirs, report their specific --help.
1309   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1310     test -d "$ac_dir" || continue
1311     ac_builddir=.
1312
1313 case "$ac_dir" in
1314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 *)
1316   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1317   # A ".." for each directory in $ac_dir_suffix.
1318   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1319   case $ac_top_builddir_sub in
1320   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1322   esac ;;
1323 esac
1324 ac_abs_top_builddir=$ac_pwd
1325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1326 # for backward compatibility:
1327 ac_top_builddir=$ac_top_build_prefix
1328
1329 case $srcdir in
1330   .)  # We are building in place.
1331     ac_srcdir=.
1332     ac_top_srcdir=$ac_top_builddir_sub
1333     ac_abs_top_srcdir=$ac_pwd ;;
1334   [\\/]* | ?:[\\/]* )  # Absolute name.
1335     ac_srcdir=$srcdir$ac_dir_suffix;
1336     ac_top_srcdir=$srcdir
1337     ac_abs_top_srcdir=$srcdir ;;
1338   *) # Relative name.
1339     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1340     ac_top_srcdir=$ac_top_build_prefix$srcdir
1341     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1342 esac
1343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1344
1345     cd "$ac_dir" || { ac_status=$?; continue; }
1346     # Check for guested configure.
1347     if test -f "$ac_srcdir/configure.gnu"; then
1348       echo &&
1349       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1350     elif test -f "$ac_srcdir/configure"; then
1351       echo &&
1352       $SHELL "$ac_srcdir/configure" --help=recursive
1353     else
1354       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1355     fi || ac_status=$?
1356     cd "$ac_pwd" || { ac_status=$?; break; }
1357   done
1358 fi
1359
1360 test -n "$ac_init_help" && exit $ac_status
1361 if $ac_init_version; then
1362   cat <<\_ACEOF
1363 configure
1364 generated by GNU Autoconf 2.61
1365
1366 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1367 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1368 This configure script is free software; the Free Software Foundation
1369 gives unlimited permission to copy, distribute and modify it.
1370 _ACEOF
1371   exit
1372 fi
1373 cat >config.log <<_ACEOF
1374 This file contains any messages produced by compilers while
1375 running configure, to aid debugging if configure makes a mistake.
1376
1377 It was created by $as_me, which was
1378 generated by GNU Autoconf 2.61.  Invocation command line was
1379
1380   $ $0 $@
1381
1382 _ACEOF
1383 exec 5>>config.log
1384 {
1385 cat <<_ASUNAME
1386 ## --------- ##
1387 ## Platform. ##
1388 ## --------- ##
1389
1390 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1391 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1392 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1393 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1394 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1395
1396 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1397 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1398
1399 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1400 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1401 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1402 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1403 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1404 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1405 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1406
1407 _ASUNAME
1408
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 for as_dir in $PATH
1411 do
1412   IFS=$as_save_IFS
1413   test -z "$as_dir" && as_dir=.
1414   echo "PATH: $as_dir"
1415 done
1416 IFS=$as_save_IFS
1417
1418 } >&5
1419
1420 cat >&5 <<_ACEOF
1421
1422
1423 ## ----------- ##
1424 ## Core tests. ##
1425 ## ----------- ##
1426
1427 _ACEOF
1428
1429
1430 # Keep a trace of the command line.
1431 # Strip out --no-create and --no-recursion so they do not pile up.
1432 # Strip out --silent because we don't want to record it for future runs.
1433 # Also quote any args containing shell meta-characters.
1434 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_configure_args=
1436 ac_configure_args0=
1437 ac_configure_args1=
1438 ac_must_keep_next=false
1439 for ac_pass in 1 2
1440 do
1441   for ac_arg
1442   do
1443     case $ac_arg in
1444     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1445     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1446     | -silent | --silent | --silen | --sile | --sil)
1447       continue ;;
1448     *\'*)
1449       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1450     esac
1451     case $ac_pass in
1452     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1453     2)
1454       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1455       if test $ac_must_keep_next = true; then
1456         ac_must_keep_next=false # Got value, back to normal.
1457       else
1458         case $ac_arg in
1459           *=* | --config-cache | -C | -disable-* | --disable-* \
1460           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1461           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1462           | -with-* | --with-* | -without-* | --without-* | --x)
1463             case "$ac_configure_args0 " in
1464               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1465             esac
1466             ;;
1467           -* ) ac_must_keep_next=true ;;
1468         esac
1469       fi
1470       ac_configure_args="$ac_configure_args '$ac_arg'"
1471       ;;
1472     esac
1473   done
1474 done
1475 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1476 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1477
1478 # When interrupted or exit'd, cleanup temporary files, and complete
1479 # config.log.  We remove comments because anyway the quotes in there
1480 # would cause problems or look ugly.
1481 # WARNING: Use '\'' to represent an apostrophe within the trap.
1482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1483 trap 'exit_status=$?
1484   # Save into config.log some information that might help in debugging.
1485   {
1486     echo
1487
1488     cat <<\_ASBOX
1489 ## ---------------- ##
1490 ## Cache variables. ##
1491 ## ---------------- ##
1492 _ASBOX
1493     echo
1494     # The following way of writing the cache mishandles newlines in values,
1495 (
1496   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1497     eval ac_val=\$$ac_var
1498     case $ac_val in #(
1499     *${as_nl}*)
1500       case $ac_var in #(
1501       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1502 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1503       esac
1504       case $ac_var in #(
1505       _ | IFS | as_nl) ;; #(
1506       *) $as_unset $ac_var ;;
1507       esac ;;
1508     esac
1509   done
1510   (set) 2>&1 |
1511     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1512     *${as_nl}ac_space=\ *)
1513       sed -n \
1514         "s/'\''/'\''\\\\'\'''\''/g;
1515           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1516       ;; #(
1517     *)
1518       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1519       ;;
1520     esac |
1521     sort
1522 )
1523     echo
1524
1525     cat <<\_ASBOX
1526 ## ----------------- ##
1527 ## Output variables. ##
1528 ## ----------------- ##
1529 _ASBOX
1530     echo
1531     for ac_var in $ac_subst_vars
1532     do
1533       eval ac_val=\$$ac_var
1534       case $ac_val in
1535       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1536       esac
1537       echo "$ac_var='\''$ac_val'\''"
1538     done | sort
1539     echo
1540
1541     if test -n "$ac_subst_files"; then
1542       cat <<\_ASBOX
1543 ## ------------------- ##
1544 ## File substitutions. ##
1545 ## ------------------- ##
1546 _ASBOX
1547       echo
1548       for ac_var in $ac_subst_files
1549       do
1550         eval ac_val=\$$ac_var
1551         case $ac_val in
1552         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1553         esac
1554         echo "$ac_var='\''$ac_val'\''"
1555       done | sort
1556       echo
1557     fi
1558
1559     if test -s confdefs.h; then
1560       cat <<\_ASBOX
1561 ## ----------- ##
1562 ## confdefs.h. ##
1563 ## ----------- ##
1564 _ASBOX
1565       echo
1566       cat confdefs.h
1567       echo
1568     fi
1569     test "$ac_signal" != 0 &&
1570       echo "$as_me: caught signal $ac_signal"
1571     echo "$as_me: exit $exit_status"
1572   } >&5
1573   rm -f core *.core core.conftest.* &&
1574     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1575     exit $exit_status
1576 ' 0
1577 for ac_signal in 1 2 13 15; do
1578   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1579 done
1580 ac_signal=0
1581
1582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1583 rm -f -r conftest* confdefs.h
1584
1585 # Predefined preprocessor variables.
1586
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_NAME "$PACKAGE_NAME"
1589 _ACEOF
1590
1591
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1594 _ACEOF
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1599 _ACEOF
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 _ACEOF
1605
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1609 _ACEOF
1610
1611
1612 # Let the site file select an alternate cache file if it wants to.
1613 # Prefer explicitly selected file to automatically selected ones.
1614 if test -n "$CONFIG_SITE"; then
1615   set x "$CONFIG_SITE"
1616 elif test "x$prefix" != xNONE; then
1617   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1618 else
1619   set x "$ac_default_prefix/share/config.site" \
1620         "$ac_default_prefix/etc/config.site"
1621 fi
1622 shift
1623 for ac_site_file
1624 do
1625   if test -r "$ac_site_file"; then
1626     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1627 echo "$as_me: loading site script $ac_site_file" >&6;}
1628     sed 's/^/| /' "$ac_site_file" >&5
1629     . "$ac_site_file"
1630   fi
1631 done
1632
1633 if test -r "$cache_file"; then
1634   # Some versions of bash will fail to source /dev/null (special
1635   # files actually), so we avoid doing that.
1636   if test -f "$cache_file"; then
1637     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1638 echo "$as_me: loading cache $cache_file" >&6;}
1639     case $cache_file in
1640       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1641       *)                      . "./$cache_file";;
1642     esac
1643   fi
1644 else
1645   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1646 echo "$as_me: creating cache $cache_file" >&6;}
1647   >$cache_file
1648 fi
1649
1650 # Check that the precious variables saved in the cache have kept the same
1651 # value.
1652 ac_cache_corrupted=false
1653 for ac_var in $ac_precious_vars; do
1654   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1655   eval ac_new_set=\$ac_env_${ac_var}_set
1656   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1657   eval ac_new_val=\$ac_env_${ac_var}_value
1658   case $ac_old_set,$ac_new_set in
1659     set,)
1660       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1661 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1662       ac_cache_corrupted=: ;;
1663     ,set)
1664       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1665 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1666       ac_cache_corrupted=: ;;
1667     ,);;
1668     *)
1669       if test "x$ac_old_val" != "x$ac_new_val"; then
1670         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1671 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1672         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1673 echo "$as_me:   former value:  $ac_old_val" >&2;}
1674         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1675 echo "$as_me:   current value: $ac_new_val" >&2;}
1676         ac_cache_corrupted=:
1677       fi;;
1678   esac
1679   # Pass precious variables to config.status.
1680   if test "$ac_new_set" = set; then
1681     case $ac_new_val in
1682     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1683     *) ac_arg=$ac_var=$ac_new_val ;;
1684     esac
1685     case " $ac_configure_args " in
1686       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1687       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1688     esac
1689   fi
1690 done
1691 if $ac_cache_corrupted; then
1692   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1693 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1694   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1695 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1696    { (exit 1); exit 1; }; }
1697 fi
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715 ac_ext=c
1716 ac_cpp='$CPP $CPPFLAGS'
1717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1720
1721
1722
1723 ac_aux_dir=
1724 for ac_dir in build "$srcdir"/build; do
1725   if test -f "$ac_dir/install-sh"; then
1726     ac_aux_dir=$ac_dir
1727     ac_install_sh="$ac_aux_dir/install-sh -c"
1728     break
1729   elif test -f "$ac_dir/install.sh"; then
1730     ac_aux_dir=$ac_dir
1731     ac_install_sh="$ac_aux_dir/install.sh -c"
1732     break
1733   elif test -f "$ac_dir/shtool"; then
1734     ac_aux_dir=$ac_dir
1735     ac_install_sh="$ac_aux_dir/shtool install -c"
1736     break
1737   fi
1738 done
1739 if test -z "$ac_aux_dir"; then
1740   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
1741 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
1742    { (exit 1); exit 1; }; }
1743 fi
1744
1745 # These three variables are undocumented and unsupported,
1746 # and are intended to be withdrawn in a future Autoconf release.
1747 # They can cause serious problems if a builder's source tree is in a directory
1748 # whose full name contains unusual characters.
1749 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1750 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1751 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843 # Check whether --enable-layout was given.
1844 if test "${enable_layout+set}" = set; then
1845   enableval=$enable_layout;
1846   LAYOUT=$enableval
1847
1848 fi
1849
1850
1851 if test -z "$LAYOUT"; then
1852   LAYOUT="Serf"
1853 fi
1854
1855   if test ! -f $srcdir/config.layout; then
1856     echo "** Error: Layout file $srcdir/config.layout not found"
1857     echo "** Error: Cannot use undefined layout '$LAYOUT'"
1858     exit 1
1859   fi
1860   # Catch layout names including a slash which will otherwise
1861   # confuse the heck out of the sed script.
1862   case $LAYOUT in
1863   */*)
1864     echo "** Error: $LAYOUT is not a valid layout name"
1865     exit 1 ;;
1866   esac
1867   pldconf=./config.pld
1868
1869   sed -e "1s/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*//;1t" \
1870       -e "1,/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*/d" \
1871       -e '/[    ]*<\/Layout>[   ]*/,$d' \
1872       -e "s/^[  ]*//g" \
1873       -e "s/:[  ]*/=\'/g" \
1874       -e "s/[   ]*$/'/g" \
1875       $srcdir/config.layout > $pldconf
1876   layout_name=$LAYOUT
1877   if test ! -s $pldconf; then
1878     echo "** Error: unable to find layout $layout_name"
1879     exit 1
1880   fi
1881   . $pldconf
1882   rm $pldconf
1883   for var in prefix exec_prefix bindir sbindir libexecdir mandir \
1884              sysconfdir datadir includedir localstatedir runtimedir \
1885              logfiledir libdir installbuilddir libsuffix ; do
1886     eval "val=\"\$$var\""
1887     case $val in
1888       *+)
1889         val=`echo $val | sed -e 's;\+$;;'`
1890         eval "$var=\"\$val\""
1891         autosuffix=yes
1892         ;;
1893       *)
1894         autosuffix=no
1895         ;;
1896     esac
1897     val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1898     val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1899     if test "$autosuffix" = "yes"; then
1900       if echo $val | grep apache >/dev/null; then
1901         addtarget=no
1902       else
1903         addtarget=yes
1904       fi
1905       if test "$addtarget" = "yes"; then
1906         val="$val/apache2"
1907       fi
1908     fi
1909     eval "$var='$val'"
1910   done
1911
1912
1913
1914 { echo "$as_me:$LINENO: checking for chosen layout" >&5
1915 echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6; }
1916 { echo "$as_me:$LINENO: result: $layout_name" >&5
1917 echo "${ECHO_T}$layout_name" >&6; }
1918
1919
1920
1921 ac_prev=
1922 # Retrieve the command-line arguments.  The eval is needed because
1923 # the arguments are quoted to preserve accuracy.
1924 eval "set x $ac_configure_args"
1925 shift
1926 for ac_option
1927 do
1928   # If the previous option needs an argument, assign it.
1929   if test -n "$ac_prev"; then
1930     eval "$ac_prev=\$ac_option"
1931     ac_prev=
1932     continue
1933   fi
1934
1935   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1936
1937   case $ac_option in
1938
1939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1940     ac_prev=bindir ;;
1941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1942     bindir="$ac_optarg" ;;
1943
1944   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1945     ac_prev=datadir ;;
1946   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1947   | --da=*)
1948     datadir="$ac_optarg" ;;
1949
1950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1952   | --exec | --exe | --ex)
1953     ac_prev=exec_prefix ;;
1954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1956   | --exec=* | --exe=* | --ex=*)
1957     exec_prefix="$ac_optarg" ;;
1958
1959   -includedir | --includedir | --includedi | --included | --include \
1960   | --includ | --inclu | --incl | --inc)
1961     ac_prev=includedir ;;
1962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1963   | --includ=* | --inclu=* | --incl=* | --inc=*)
1964     includedir="$ac_optarg" ;;
1965
1966   -infodir | --infodir | --infodi | --infod | --info | --inf)
1967     ac_prev=infodir ;;
1968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1969     infodir="$ac_optarg" ;;
1970
1971   -libdir | --libdir | --libdi | --libd)
1972     ac_prev=libdir ;;
1973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1974     libdir="$ac_optarg" ;;
1975
1976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1977   | --libexe | --libex | --libe)
1978     ac_prev=libexecdir ;;
1979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1980   | --libexe=* | --libex=* | --libe=*)
1981     libexecdir="$ac_optarg" ;;
1982
1983   -localstatedir | --localstatedir | --localstatedi | --localstated \
1984   | --localstate | --localstat | --localsta | --localst \
1985   | --locals | --local | --loca | --loc | --lo)
1986     ac_prev=localstatedir ;;
1987   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1988   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1989   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1990     localstatedir="$ac_optarg" ;;
1991
1992   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1993     ac_prev=mandir ;;
1994   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1995     mandir="$ac_optarg" ;;
1996
1997   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1998     ac_prev=prefix ;;
1999   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2000     prefix="$ac_optarg" ;;
2001
2002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2003     ac_prev=sbindir ;;
2004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2005   | --sbi=* | --sb=*)
2006     sbindir="$ac_optarg" ;;
2007
2008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2010   | --sharedst | --shareds | --shared | --share | --shar \
2011   | --sha | --sh)
2012     ac_prev=sharedstatedir ;;
2013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2016   | --sha=* | --sh=*)
2017     sharedstatedir="$ac_optarg" ;;
2018
2019   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2020   | --syscon | --sysco | --sysc | --sys | --sy)
2021     ac_prev=sysconfdir ;;
2022   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2023   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2024     sysconfdir="$ac_optarg" ;;
2025
2026   esac
2027 done
2028
2029 # Be sure to have absolute paths.
2030 for ac_var in exec_prefix prefix
2031 do
2032   eval ac_val=$`echo $ac_var`
2033   case $ac_val in
2034     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
2035     *)  { { echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
2036 echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
2037    { (exit 1); exit 1; }; };;
2038   esac
2039 done
2040
2041
2042
2043
2044   rm -f config.nice
2045   cat >config.nice<<EOF
2046 #! /bin/sh
2047 #
2048 # Created by configure
2049
2050 EOF
2051   if test -n "$CC"; then
2052     echo "CC=\"$CC\"; export CC" >> config.nice
2053   fi
2054   if test -n "$CFLAGS"; then
2055     echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2056   fi
2057   if test -n "$CPPFLAGS"; then
2058     echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2059   fi
2060   if test -n "$LDFLAGS"; then
2061     echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2062   fi
2063   if test -n "$LTFLAGS"; then
2064     echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2065   fi
2066   if test -n "$LIBS"; then
2067     echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2068   fi
2069   if test -n "$INCLUDES"; then
2070     echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2071   fi
2072   if test -n "$NOTEST_CFLAGS"; then
2073     echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2074   fi
2075   if test -n "$NOTEST_CPPFLAGS"; then
2076     echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2077   fi
2078   if test -n "$NOTEST_LDFLAGS"; then
2079     echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2080   fi
2081   if test -n "$NOTEST_LIBS"; then
2082     echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2083   fi
2084
2085   # Retrieve command-line arguments.
2086   eval "set x $0 $ac_configure_args"
2087   shift
2088
2089   for arg
2090   do
2091
2092 ap_last=
2093 ap_cur="$arg"
2094 while test "x${ap_cur}" != "x${ap_last}";
2095 do
2096   ap_last="${ap_cur}"
2097   ap_cur=`eval "echo ${ap_cur}"`
2098 done
2099 arg="${ap_cur}"
2100
2101     echo "\"$arg\" \\" >> config.nice
2102   done
2103   echo '"$@"' >> config.nice
2104   chmod +x config.nice
2105
2106
2107 nl='
2108 '
2109
2110   { echo "$as_me:$LINENO: checking for working mkdir -p" >&5
2111 echo $ECHO_N "checking for working mkdir -p... $ECHO_C" >&6; }
2112 if test "${ac_cv_mkdir_p+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115
2116     test -d conftestdir && rm -rf conftestdir
2117     mkdir -p conftestdir/somedir >/dev/null 2>&1
2118     if test -d conftestdir/somedir; then
2119       ac_cv_mkdir_p=yes
2120     else
2121       ac_cv_mkdir_p=no
2122     fi
2123     rm -rf conftestdir
2124
2125 fi
2126 { echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
2127 echo "${ECHO_T}$ac_cv_mkdir_p" >&6; }
2128   if test "$ac_cv_mkdir_p" = "yes"; then
2129       mkdir_p="mkdir -p"
2130   else
2131       mkdir_p="$top_srcdir/build/mkdir.sh"
2132   fi
2133
2134
2135
2136
2137
2138 # Make sure we can run config.sub.
2139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2140   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2141 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2142    { (exit 1); exit 1; }; }
2143
2144 { echo "$as_me:$LINENO: checking build system type" >&5
2145 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2146 if test "${ac_cv_build+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   ac_build_alias=$build_alias
2150 test "x$ac_build_alias" = x &&
2151   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152 test "x$ac_build_alias" = x &&
2153   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2154 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2155    { (exit 1); exit 1; }; }
2156 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2157   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2158 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2159    { (exit 1); exit 1; }; }
2160
2161 fi
2162 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2163 echo "${ECHO_T}$ac_cv_build" >&6; }
2164 case $ac_cv_build in
2165 *-*-*) ;;
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2167 echo "$as_me: error: invalid value of canonical build" >&2;}
2168    { (exit 1); exit 1; }; };;
2169 esac
2170 build=$ac_cv_build
2171 ac_save_IFS=$IFS; IFS='-'
2172 set x $ac_cv_build
2173 shift
2174 build_cpu=$1
2175 build_vendor=$2
2176 shift; shift
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2179 build_os=$*
2180 IFS=$ac_save_IFS
2181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2182
2183
2184 { echo "$as_me:$LINENO: checking host system type" >&5
2185 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2186 if test "${ac_cv_host+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test "x$host_alias" = x; then
2190   ac_cv_host=$ac_cv_build
2191 else
2192   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2193     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2195    { (exit 1); exit 1; }; }
2196 fi
2197
2198 fi
2199 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200 echo "${ECHO_T}$ac_cv_host" >&6; }
2201 case $ac_cv_host in
2202 *-*-*) ;;
2203 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2204 echo "$as_me: error: invalid value of canonical host" >&2;}
2205    { (exit 1); exit 1; }; };;
2206 esac
2207 host=$ac_cv_host
2208 ac_save_IFS=$IFS; IFS='-'
2209 set x $ac_cv_host
2210 shift
2211 host_cpu=$1
2212 host_vendor=$2
2213 shift; shift
2214 # Remember, the first character of IFS is used to create $*,
2215 # except with old shells:
2216 host_os=$*
2217 IFS=$ac_save_IFS
2218 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2219
2220
2221 { echo "$as_me:$LINENO: checking target system type" >&5
2222 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2223 if test "${ac_cv_target+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test "x$target_alias" = x; then
2227   ac_cv_target=$ac_cv_host
2228 else
2229   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2230     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2231 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 fi
2236 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2237 echo "${ECHO_T}$ac_cv_target" >&6; }
2238 case $ac_cv_target in
2239 *-*-*) ;;
2240 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2241 echo "$as_me: error: invalid value of canonical target" >&2;}
2242    { (exit 1); exit 1; }; };;
2243 esac
2244 target=$ac_cv_target
2245 ac_save_IFS=$IFS; IFS='-'
2246 set x $ac_cv_target
2247 shift
2248 target_cpu=$1
2249 target_vendor=$2
2250 shift; shift
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2253 target_os=$*
2254 IFS=$ac_save_IFS
2255 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2256
2257
2258 # The aliases save the names the user supplied, while $host etc.
2259 # will get canonicalized.
2260 test -n "$target_alias" &&
2261   test "$program_prefix$program_suffix$program_transform_name" = \
2262     NONENONEs,x,x, &&
2263   program_prefix=${target_alias}-
2264
2265 orig_prefix="$prefix"
2266
2267 echo $ac_n "${nl}Configuring Apache Portable Runtime library...${nl}"
2268
2269
2270   apr_found="no"
2271
2272   if test "$target_os" = "os2-emx"; then
2273     # Scripts don't pass test -x on OS/2
2274     TEST_X="test -f"
2275   else
2276     TEST_X="test -x"
2277   fi
2278
2279   acceptable_majors="0 1"
2280
2281   apr_temp_acceptable_apr_config=""
2282   for apr_temp_major in $acceptable_majors
2283   do
2284     case $apr_temp_major in
2285       0)
2286       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
2287       ;;
2288       *)
2289       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
2290       ;;
2291     esac
2292   done
2293
2294   { echo "$as_me:$LINENO: checking for APR" >&5
2295 echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
2296
2297 # Check whether --with-apr was given.
2298 if test "${with_apr+set}" = set; then
2299   withval=$with_apr;
2300     if test "$withval" = "no" || test "$withval" = "yes"; then
2301       { { echo "$as_me:$LINENO: error: --with-apr requires a directory or file to be provided" >&5
2302 echo "$as_me: error: --with-apr requires a directory or file to be provided" >&2;}
2303    { (exit 1); exit 1; }; }
2304     fi
2305
2306     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2307     do
2308       for lookdir in "$withval/bin" "$withval"
2309       do
2310         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
2311           apr_config="$lookdir/$apr_temp_apr_config_file"
2312
2313           apr_found="yes"
2314           break 2
2315         fi
2316       done
2317     done
2318
2319     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2320       apr_config="$withval"
2321       apr_found="yes"
2322     fi
2323
2324             if test "$apr_found" != "yes"; then
2325       { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&5
2326 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&2;}
2327    { (exit 1); exit 1; }; }
2328     fi
2329
2330 else
2331
2332         if test -n "1" && test "1" = "1"; then
2333       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2334       do
2335         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
2336           apr_config="$apr_temp_apr_config_file"
2337
2338           apr_found="yes"
2339           break
2340         else
2341                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
2342             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
2343               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
2344
2345               apr_found="yes"
2346               break 2
2347             fi
2348           done
2349         fi
2350       done
2351     fi
2352         if test "$apr_found" = "no" && test -d ""$srcdir/apr""; then
2353       apr_temp_abs_srcdir="`cd "$srcdir/apr" && pwd`"
2354       apr_found="reconfig"
2355       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/apr"/include/apr_version.h\"`"
2356       case $apr_bundled_major in
2357         "")
2358           { { echo "$as_me:$LINENO: error: failed to find major version of bundled APR" >&5
2359 echo "$as_me: error: failed to find major version of bundled APR" >&2;}
2360    { (exit 1); exit 1; }; }
2361         ;;
2362         0)
2363           apr_temp_apr_config_file="apr-config"
2364         ;;
2365         *)
2366           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
2367         ;;
2368       esac
2369       if test -n ""./apr""; then
2370         apr_config=""./apr"/$apr_temp_apr_config_file"
2371       else
2372         apr_config=""$srcdir/apr"/$apr_temp_apr_config_file"
2373       fi
2374     fi
2375
2376 fi
2377
2378
2379   { echo "$as_me:$LINENO: result: $apr_found" >&5
2380 echo "${ECHO_T}$apr_found" >&6; }
2381
2382
2383 if test "$apr_found" = "no"; then
2384   { { echo "$as_me:$LINENO: error: APR not found.  Please read the documentation." >&5
2385 echo "$as_me: error: APR not found.  Please read the documentation." >&2;}
2386    { (exit 1); exit 1; }; }
2387 fi
2388
2389 if test "$apr_found" = "reconfig"; then
2390
2391   # save our work to this point; this allows the sub-package to use it
2392   cat >confcache <<\_ACEOF
2393 # This file is a shell script that caches the results of configure
2394 # tests run on this system so they can be shared between configure
2395 # scripts and configure runs, see configure's option --config-cache.
2396 # It is not useful on other systems.  If it contains results you don't
2397 # want to keep, you may remove or edit it.
2398 #
2399 # config.status only pays attention to the cache file if you give it
2400 # the --recheck option to rerun configure.
2401 #
2402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2404 # following values.
2405
2406 _ACEOF
2407
2408 # The following way of writing the cache mishandles newlines in values,
2409 # but we know of no workaround that is simple, portable, and efficient.
2410 # So, we kill variables containing newlines.
2411 # Ultrix sh set writes to stderr and can't be redirected directly,
2412 # and sets the high bit in the cache file unless we assign to the vars.
2413 (
2414   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2415     eval ac_val=\$$ac_var
2416     case $ac_val in #(
2417     *${as_nl}*)
2418       case $ac_var in #(
2419       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2420 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2421       esac
2422       case $ac_var in #(
2423       _ | IFS | as_nl) ;; #(
2424       *) $as_unset $ac_var ;;
2425       esac ;;
2426     esac
2427   done
2428
2429   (set) 2>&1 |
2430     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2431     *${as_nl}ac_space=\ *)
2432       # `set' does not quote correctly, so add quotes (double-quote
2433       # substitution turns \\\\ into \\, and sed turns \\ into \).
2434       sed -n \
2435         "s/'/'\\\\''/g;
2436           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2437       ;; #(
2438     *)
2439       # `set' quotes correctly as required by POSIX, so do not add quotes.
2440       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441       ;;
2442     esac |
2443     sort
2444 ) |
2445   sed '
2446      /^ac_cv_env_/b end
2447      t clear
2448      :clear
2449      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2450      t end
2451      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2452      :end' >>confcache
2453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2454   if test -w "$cache_file"; then
2455     test "x$cache_file" != "x/dev/null" &&
2456       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2457 echo "$as_me: updating cache $cache_file" >&6;}
2458     cat confcache >$cache_file
2459   else
2460     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2461 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2462   fi
2463 fi
2464 rm -f confcache
2465
2466   echo "configuring package in apr now"
2467   ac_popdir=`pwd`
2468   apr_config_subdirs="apr"
2469   test -d apr || $mkdir_p apr
2470   ac_abs_srcdir=`(cd $srcdir/apr && pwd)`
2471   cd apr
2472
2473       # A "../" for each directory in /$config_subdirs.
2474       ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2475
2476   # Make the cache file pathname absolute for the subdirs
2477   # required to correctly handle subdirs that might actually
2478   # be symlinks
2479   case "$cache_file" in
2480   /*) # already absolute
2481     ac_sub_cache_file=$cache_file ;;
2482   *)  # Was relative path.
2483     ac_sub_cache_file="$ac_popdir/$cache_file" ;;
2484   esac
2485
2486
2487   apr_configure_args=
2488   apr_sep=
2489   for apr_configure_arg in $ac_configure_args
2490   do
2491     case "$apr_configure_arg" in
2492       --enable-layout=*|\'--enable-layout=*)
2493         continue ;;
2494     esac
2495     apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
2496     apr_sep=" "
2497   done
2498
2499
2500   # autoconf doesn't add --silent to ac_configure_args; explicitly pass it
2501   test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
2502
2503               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 --datadir=$datadir --with-installbuilddir=$installbuilddir
2504   then :
2505     echo "apr configured properly"
2506   else
2507     echo "configure failed for apr"
2508     exit 1
2509   fi
2510
2511   cd $ac_popdir
2512
2513   # grab any updates from the sub-package
2514   if test -r "$cache_file"; then
2515   # Some versions of bash will fail to source /dev/null (special
2516   # files actually), so we avoid doing that.
2517   if test -f "$cache_file"; then
2518     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2519 echo "$as_me: loading cache $cache_file" >&6;}
2520     case $cache_file in
2521       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522       *)                      . "./$cache_file";;
2523     esac
2524   fi
2525 else
2526   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2527 echo "$as_me: creating cache $cache_file" >&6;}
2528   >$cache_file
2529 fi
2530
2531
2532     SERF_BUILD_SRCLIB_DIRS="apr $SERF_BUILD_SRCLIB_DIRS"
2533   SERF_CLEAN_SRCLIB_DIRS="$SERF_CLEAN_SRCLIB_DIRS apr"
2534 fi
2535
2536
2537   if test -z "$CC"; then
2538     test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
2539     CC="`$apr_config --cc`"
2540   fi
2541
2542
2543   if test -z "$CPP"; then
2544     test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
2545     CPP="`$apr_config --cpp`"
2546   fi
2547
2548
2549   if test -z "$APR_LIBTOOL"; then
2550     test "x$silent" != "xyes" && echo "  setting APR_LIBTOOL to \"`$apr_config --apr-libtool`\""
2551     APR_LIBTOOL="`$apr_config --apr-libtool`"
2552   fi
2553
2554
2555   if test "x$CFLAGS" = "x"; then
2556     test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
2557     CFLAGS="`$apr_config --cflags`"
2558   else
2559     apr_addto_bugger="`$apr_config --cflags`"
2560     for i in $apr_addto_bugger; do
2561       apr_addto_duplicate="0"
2562       for j in $CFLAGS; do
2563         if test "x$i" = "x$j"; then
2564           apr_addto_duplicate="1"
2565           break
2566         fi
2567       done
2568       if test $apr_addto_duplicate = "0"; then
2569         test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
2570         CFLAGS="$CFLAGS $i"
2571       fi
2572     done
2573   fi
2574
2575
2576   if test "x$CPPFLAGS" = "x"; then
2577     test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
2578     CPPFLAGS="`$apr_config --cppflags`"
2579   else
2580     apr_addto_bugger="`$apr_config --cppflags`"
2581     for i in $apr_addto_bugger; do
2582       apr_addto_duplicate="0"
2583       for j in $CPPFLAGS; do
2584         if test "x$i" = "x$j"; then
2585           apr_addto_duplicate="1"
2586           break
2587         fi
2588       done
2589       if test $apr_addto_duplicate = "0"; then
2590         test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
2591         CPPFLAGS="$CPPFLAGS $i"
2592       fi
2593     done
2594   fi
2595
2596
2597   if test "x$LDFLAGS" = "x"; then
2598     test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
2599     LDFLAGS="`$apr_config --ldflags`"
2600   else
2601     apr_addto_bugger="`$apr_config --ldflags`"
2602     for i in $apr_addto_bugger; do
2603       apr_addto_duplicate="0"
2604       for j in $LDFLAGS; do
2605         if test "x$i" = "x$j"; then
2606           apr_addto_duplicate="1"
2607           break
2608         fi
2609       done
2610       if test $apr_addto_duplicate = "0"; then
2611         test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
2612         LDFLAGS="$LDFLAGS $i"
2613       fi
2614     done
2615   fi
2616
2617 SHLIBPATH_VAR=`$apr_config --shlib-path-var`
2618 APR_BINDIR=`$apr_config --bindir`
2619 APR_INCLUDEDIR=`$apr_config --includedir`
2620 APR_VERSION=`$apr_config --version`
2621 APR_CONFIG="$apr_config"
2622
2623
2624
2625
2626
2627
2628
2629 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
2630
2631
2632   apu_found="no"
2633
2634   if test "$target_os" = "os2-emx"; then
2635     # Scripts don't pass test -x on OS/2
2636     TEST_X="test -f"
2637   else
2638     TEST_X="test -x"
2639   fi
2640
2641   acceptable_majors="0 1"
2642
2643   apu_temp_acceptable_apu_config=""
2644   for apu_temp_major in $acceptable_majors
2645   do
2646     case $apu_temp_major in
2647       0)
2648       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
2649       ;;
2650       *)
2651       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
2652       ;;
2653     esac
2654   done
2655
2656   { echo "$as_me:$LINENO: checking for APR-util" >&5
2657 echo $ECHO_N "checking for APR-util... $ECHO_C" >&6; }
2658
2659 # Check whether --with-apr-util was given.
2660 if test "${with_apr_util+set}" = set; then
2661   withval=$with_apr_util;
2662     if test "$withval" = "no" || test "$withval" = "yes"; then
2663       { { echo "$as_me:$LINENO: error: --with-apr-util requires a directory or file to be provided" >&5
2664 echo "$as_me: error: --with-apr-util requires a directory or file to be provided" >&2;}
2665    { (exit 1); exit 1; }; }
2666     fi
2667
2668     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
2669     do
2670       for lookdir in "$withval/bin" "$withval"
2671       do
2672         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
2673           apu_config="$lookdir/$apu_temp_apu_config_file"
2674
2675           apu_found="yes"
2676           break 2
2677         fi
2678       done
2679     done
2680
2681     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2682       apu_config="$withval"
2683       apu_found="yes"
2684     fi
2685
2686             if test "$apu_found" != "yes"; then
2687       { { echo "$as_me:$LINENO: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." >&5
2688 echo "$as_me: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." >&2;}
2689    { (exit 1); exit 1; }; }
2690     fi
2691
2692 else
2693
2694     if test -n "1" && test "1" = "1"; then
2695       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
2696       do
2697         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
2698           apu_config="$apu_temp_apu_config_file"
2699
2700           apu_found="yes"
2701           break
2702         else
2703                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
2704             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
2705               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
2706
2707               apu_found="yes"
2708               break 2
2709             fi
2710           done
2711         fi
2712       done
2713     fi
2714         if test "$apu_found" = "no" && test -d ""$srcdir/apr-util""; then
2715       apu_temp_abs_srcdir="`cd "$srcdir/apr-util" && pwd`"
2716       apu_found="reconfig"
2717       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/apr-util"/include/apu_version.h\"`"
2718       case $apu_bundled_major in
2719         "")
2720           { { echo "$as_me:$LINENO: error: failed to find major version of bundled APU" >&5
2721 echo "$as_me: error: failed to find major version of bundled APU" >&2;}
2722    { (exit 1); exit 1; }; }
2723         ;;
2724         0)
2725           apu_temp_apu_config_file="apu-config"
2726         ;;
2727         *)
2728           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
2729         ;;
2730       esac
2731       if test -n ""./apr-util""; then
2732         apu_config=""./apr-util"/$apu_temp_apu_config_file"
2733       else
2734         apu_config=""$srcdir/apr-util"/$apu_temp_apu_config_file"
2735       fi
2736     fi
2737
2738 fi
2739
2740
2741   { echo "$as_me:$LINENO: result: $apu_found" >&5
2742 echo "${ECHO_T}$apu_found" >&6; }
2743
2744
2745 if test "$apu_found" = "no"; then
2746   { { echo "$as_me:$LINENO: error: APR-util not found.  Please read the documentation." >&5
2747 echo "$as_me: error: APR-util not found.  Please read the documentation." >&2;}
2748    { (exit 1); exit 1; }; }
2749 fi
2750
2751 # Catch some misconfigurations:
2752 case ${apr_found}.${apu_found} in
2753 reconfig.yes)
2754   { { echo "$as_me:$LINENO: error: Cannot use an external APR-util with the bundled APR" >&5
2755 echo "$as_me: error: Cannot use an external APR-util with the bundled APR" >&2;}
2756    { (exit 1); exit 1; }; }
2757   ;;
2758 yes.reconfig)
2759   { { echo "$as_me:$LINENO: error: Cannot use an external APR with the bundled APR-util" >&5
2760 echo "$as_me: error: Cannot use an external APR with the bundled APR-util" >&2;}
2761    { (exit 1); exit 1; }; }
2762   ;;
2763 esac
2764
2765 if test "$apu_found" = "reconfig"; then
2766
2767   # save our work to this point; this allows the sub-package to use it
2768   cat >confcache <<\_ACEOF
2769 # This file is a shell script that caches the results of configure
2770 # tests run on this system so they can be shared between configure
2771 # scripts and configure runs, see configure's option --config-cache.
2772 # It is not useful on other systems.  If it contains results you don't
2773 # want to keep, you may remove or edit it.
2774 #
2775 # config.status only pays attention to the cache file if you give it
2776 # the --recheck option to rerun configure.
2777 #
2778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2780 # following values.
2781
2782 _ACEOF
2783
2784 # The following way of writing the cache mishandles newlines in values,
2785 # but we know of no workaround that is simple, portable, and efficient.
2786 # So, we kill variables containing newlines.
2787 # Ultrix sh set writes to stderr and can't be redirected directly,
2788 # and sets the high bit in the cache file unless we assign to the vars.
2789 (
2790   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2791     eval ac_val=\$$ac_var
2792     case $ac_val in #(
2793     *${as_nl}*)
2794       case $ac_var in #(
2795       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2796 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2797       esac
2798       case $ac_var in #(
2799       _ | IFS | as_nl) ;; #(
2800       *) $as_unset $ac_var ;;
2801       esac ;;
2802     esac
2803   done
2804
2805   (set) 2>&1 |
2806     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2807     *${as_nl}ac_space=\ *)
2808       # `set' does not quote correctly, so add quotes (double-quote
2809       # substitution turns \\\\ into \\, and sed turns \\ into \).
2810       sed -n \
2811         "s/'/'\\\\''/g;
2812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2813       ;; #(
2814     *)
2815       # `set' quotes correctly as required by POSIX, so do not add quotes.
2816       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817       ;;
2818     esac |
2819     sort
2820 ) |
2821   sed '
2822      /^ac_cv_env_/b end
2823      t clear
2824      :clear
2825      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2826      t end
2827      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2828      :end' >>confcache
2829 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2830   if test -w "$cache_file"; then
2831     test "x$cache_file" != "x/dev/null" &&
2832       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2833 echo "$as_me: updating cache $cache_file" >&6;}
2834     cat confcache >$cache_file
2835   else
2836     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2837 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2838   fi
2839 fi
2840 rm -f confcache
2841
2842   echo "configuring package in apr-util now"
2843   ac_popdir=`pwd`
2844   apr_config_subdirs="apr-util"
2845   test -d apr-util || $mkdir_p apr-util
2846   ac_abs_srcdir=`(cd $srcdir/apr-util && pwd)`
2847   cd apr-util
2848
2849       # A "../" for each directory in /$config_subdirs.
2850       ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2851
2852   # Make the cache file pathname absolute for the subdirs
2853   # required to correctly handle subdirs that might actually
2854   # be symlinks
2855   case "$cache_file" in
2856   /*) # already absolute
2857     ac_sub_cache_file=$cache_file ;;
2858   *)  # Was relative path.
2859     ac_sub_cache_file="$ac_popdir/$cache_file" ;;
2860   esac
2861
2862
2863   apr_configure_args=
2864   apr_sep=
2865   for apr_configure_arg in $ac_configure_args
2866   do
2867     case "$apr_configure_arg" in
2868       --enable-layout=*|\'--enable-layout=*)
2869         continue ;;
2870     esac
2871     apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
2872     apr_sep=" "
2873   done
2874
2875
2876   # autoconf doesn't add --silent to ac_configure_args; explicitly pass it
2877   test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
2878
2879               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
2880   then :
2881     echo "apr-util configured properly"
2882   else
2883     echo "configure failed for apr-util"
2884     exit 1
2885   fi
2886
2887   cd $ac_popdir
2888
2889   # grab any updates from the sub-package
2890   if test -r "$cache_file"; then
2891   # Some versions of bash will fail to source /dev/null (special
2892   # files actually), so we avoid doing that.
2893   if test -f "$cache_file"; then
2894     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2895 echo "$as_me: loading cache $cache_file" >&6;}
2896     case $cache_file in
2897       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2898       *)                      . "./$cache_file";;
2899     esac
2900   fi
2901 else
2902   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2903 echo "$as_me: creating cache $cache_file" >&6;}
2904   >$cache_file
2905 fi
2906
2907
2908     SERF_BUILD_SRCLIB_DIRS="$SERF_BUILD_SRCLIB_DIRS apr-util"
2909   SERF_CLEAN_SRCLIB_DIRS="apr-util $SERF_CLEAN_SRCLIB_DIRS"
2910 fi
2911
2912
2913   if test "x$LDFLAGS" = "x"; then
2914     test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
2915     LDFLAGS="`$apu_config --ldflags`"
2916   else
2917     apr_addto_bugger="`$apu_config --ldflags`"
2918     for i in $apr_addto_bugger; do
2919       apr_addto_duplicate="0"
2920       for j in $LDFLAGS; do
2921         if test "x$i" = "x$j"; then
2922           apr_addto_duplicate="1"
2923           break
2924         fi
2925       done
2926       if test $apr_addto_duplicate = "0"; then
2927         test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
2928         LDFLAGS="$LDFLAGS $i"
2929       fi
2930     done
2931   fi
2932
2933 APU_BINDIR=`$apu_config --bindir`
2934 APU_INCLUDEDIR=`$apu_config --includedir`
2935 APU_VERSION=`$apu_config --version`
2936 APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
2937
2938
2939
2940
2941
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   if test -n "$CC"; then
2957   ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964   for ac_exec_ext in '' $ac_executable_extensions; do
2965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988   ac_ct_CC=$CC
2989   # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   if test -n "$ac_ct_CC"; then
2997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004   for ac_exec_ext in '' $ac_executable_extensions; do
3005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006     ac_cv_prog_ac_ct_CC="gcc"
3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 echo "${ECHO_T}$ac_ct_CC" >&6; }
3020 else
3021   { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3023 fi
3024
3025   if test "x$ac_ct_CC" = x; then
3026     CC=""
3027   else
3028     case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet.  If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&5
3033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3034 whose name does not start with the host triplet.  If you think this
3035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038     CC=$ac_ct_CC
3039   fi
3040 else
3041   CC="$ac_cv_prog_CC"
3042 fi
3043
3044 if test -z "$CC"; then
3045           if test -n "$ac_tool_prefix"; then
3046     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   if test -n "$CC"; then
3054   ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061   for ac_exec_ext in '' $ac_executable_extensions; do
3062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063     ac_cv_prog_CC="${ac_tool_prefix}cc"
3064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065     break 2
3066   fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075   { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3077 else
3078   { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
3080 fi
3081
3082
3083   fi
3084 fi
3085 if test -z "$CC"; then
3086   # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   if test -n "$CC"; then
3094   ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096   ac_prog_rejected=no
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102   for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105        ac_prog_rejected=yes
3106        continue
3107      fi
3108     ac_cv_prog_CC="cc"
3109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 if test $ac_prog_rejected = yes; then
3117   # We found a bogon in the path, so make sure we never use it.
3118   set dummy $ac_cv_prog_CC
3119   shift
3120   if test $# != 0; then
3121     # We chose a different compiler from the bogus one.
3122     # However, it has the same basename, so the bogon will be chosen
3123     # first if we set CC to just the basename; use the full file name.
3124     shift
3125     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126   fi
3127 fi
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132   { echo "$as_me:$LINENO: result: $CC" >&5
3133 echo "${ECHO_T}$CC" >&6; }
3134 else
3135   { echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$CC"; then
3142   if test -n "$ac_tool_prefix"; then
3143   for ac_prog in cl.exe
3144   do
3145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   if test -n "$CC"; then
3153   ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160   for ac_exec_ext in '' $ac_executable_extensions; do
3161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164     break 2
3165   fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174   { echo "$as_me:$LINENO: result: $CC" >&5
3175 echo "${ECHO_T}$CC" >&6; }
3176 else
3177   { echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6; }
3179 fi
3180
3181
3182     test -n "$CC" && break
3183   done
3184 fi
3185 if test -z "$CC"; then
3186   ac_ct_CC=$CC
3187   for ac_prog in cl.exe
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$ac_ct_CC"; then
3197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_ac_ct_CC="$ac_prog"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219 echo "${ECHO_T}$ac_ct_CC" >&6; }
3220 else
3221   { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3223 fi
3224
3225
3226   test -n "$ac_ct_CC" && break
3227 done
3228
3229   if test "x$ac_ct_CC" = x; then
3230     CC=""
3231   else
3232     case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet.  If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet.  If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242     CC=$ac_ct_CC
3243   fi
3244 fi
3245
3246 fi
3247
3248
3249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&2;}
3253    { (exit 1); exit 1; }; }
3254
3255 # Provide some information about the compiler.
3256 echo "$as_me:$LINENO: checking for C compiler version" >&5
3257 ac_compiler=`set X $ac_compile; echo $2`
3258 { (ac_try="$ac_compiler --version >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_compiler --version >&5") 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }
3268 { (ac_try="$ac_compiler -v >&5"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274   (eval "$ac_compiler -v >&5") 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }
3278 { (ac_try="$ac_compiler -V >&5"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284   (eval "$ac_compiler -V >&5") 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }
3288
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3308 # of exeext.
3309 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312 #
3313 # List of possible output files, starting from the most likely.
3314 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3315 # only as a last resort.  b.out is created by i960 compilers.
3316 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3317 #
3318 # The IRIX 6 linker writes into existing files which may not be
3319 # executable, retaining their permissions.  Remove them first so a
3320 # subsequent execution test works.
3321 ac_rmfiles=
3322 for ac_file in $ac_files
3323 do
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3326     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327   esac
3328 done
3329 rm -f $ac_rmfiles
3330
3331 if { (ac_try="$ac_link_default"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_link_default") 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; then
3341   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3344 # so that the user can short-circuit this test for compilers unknown to
3345 # Autoconf.
3346 for ac_file in $ac_files ''
3347 do
3348   test -f "$ac_file" || continue
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3351         ;;
3352     [ab].out )
3353         # We found the default executable, but exeext='' is most
3354         # certainly right.
3355         break;;
3356     *.* )
3357         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358         then :; else
3359            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360         fi
3361         # We set ac_cv_exeext here because the later test for it is not
3362         # safe: cross compilers may not add the suffix if given an `-o'
3363         # argument, so we may need to know it at that point already.
3364         # Even if this section looks crufty: it has the advantage of
3365         # actually working.
3366         break;;
3367     * )
3368         break;;
3369   esac
3370 done
3371 test "$ac_cv_exeext" = no && ac_cv_exeext=
3372
3373 else
3374   ac_file=''
3375 fi
3376
3377 { echo "$as_me:$LINENO: result: $ac_file" >&5
3378 echo "${ECHO_T}$ac_file" >&6; }
3379 if test -z "$ac_file"; then
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&5
3385 echo "$as_me: error: C compiler cannot create executables
3386 See \`config.log' for more details." >&2;}
3387    { (exit 77); exit 77; }; }
3388 fi
3389
3390 ac_exeext=$ac_cv_exeext
3391
3392 # Check that the compiler produces executables we can run.  If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3395 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3397 # If not cross compiling, check that we can run a simple program.
3398 if test "$cross_compiling" != yes; then
3399   if { ac_try='./$ac_file'
3400   { (case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_try") 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; }; then
3409     cross_compiling=no
3410   else
3411     if test "$cross_compiling" = maybe; then
3412         cross_compiling=yes
3413     else
3414         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3415 If you meant to cross compile, use \`--host'.
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: cannot run C compiled programs.
3418 If you meant to cross compile, use \`--host'.
3419 See \`config.log' for more details." >&2;}
3420    { (exit 1); exit 1; }; }
3421     fi
3422   fi
3423 fi
3424 { echo "$as_me:$LINENO: result: yes" >&5
3425 echo "${ECHO_T}yes" >&6; }
3426
3427 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3428 ac_clean_files=$ac_clean_files_save
3429 # Check that the compiler produces executables we can run.  If not, either
3430 # the compiler is broken, or we cross compile.
3431 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3432 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3433 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3434 echo "${ECHO_T}$cross_compiling" >&6; }
3435
3436 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3437 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3438 if { (ac_try="$ac_link"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_link") 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; then
3448   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3449 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3450 # work properly (i.e., refer to `conftest.exe'), while it won't with
3451 # `rm'.
3452 for ac_file in conftest.exe conftest conftest.*; do
3453   test -f "$ac_file" || continue
3454   case $ac_file in
3455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3456     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457           break;;
3458     * ) break;;
3459   esac
3460 done
3461 else
3462   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&2;}
3466    { (exit 1); exit 1; }; }
3467 fi
3468
3469 rm -f conftest$ac_cv_exeext
3470 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3471 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3472
3473 rm -f conftest.$ac_ext
3474 EXEEXT=$ac_cv_exeext
3475 ac_exeext=$EXEEXT
3476 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3478 if test "${ac_cv_objext+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.o conftest.obj
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_compile") 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }; then
3507   for ac_file in conftest.o conftest.obj conftest.*; do
3508   test -f "$ac_file" || continue;
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3511     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512        break;;
3513   esac
3514 done
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&5
3521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." >&2;}
3523    { (exit 1); exit 1; }; }
3524 fi
3525
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 fi
3528 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529 echo "${ECHO_T}$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3531 ac_objext=$OBJEXT
3532 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547 #ifndef __GNUC__
3548        choke me
3549 #endif
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_compiler_gnu=yes
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577         ac_compiler_gnu=no
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3586 GCC=`test $ac_compiler_gnu = yes && echo yes`
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   ac_save_c_werror_flag=$ac_c_werror_flag
3595    ac_c_werror_flag=yes
3596    ac_cv_prog_cc_g=no
3597    CFLAGS="-g"
3598    cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_prog_cc_g=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635         CFLAGS=""
3636       cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } && {
3665          test -z "$ac_c_werror_flag" ||
3666          test ! -s conftest.err
3667        } && test -s conftest.$ac_objext; then
3668   :
3669 else
3670   echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673         ac_c_werror_flag=$ac_save_c_werror_flag
3674          CFLAGS="-g"
3675          cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h.  */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h.  */
3681
3682 int
3683 main ()
3684 {
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_compile") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && {
3704          test -z "$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        } && test -s conftest.$ac_objext; then
3707   ac_cv_prog_cc_g=yes
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722    ac_c_werror_flag=$ac_save_c_werror_flag
3723 fi
3724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3725 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727   CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729   if test "$GCC" = yes; then
3730     CFLAGS="-g -O2"
3731   else
3732     CFLAGS="-g"
3733   fi
3734 else
3735   if test "$GCC" = yes; then
3736     CFLAGS="-O2"
3737   else
3738     CFLAGS=
3739   fi
3740 fi
3741 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3742 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3743 if test "${ac_cv_prog_cc_c89+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   ac_cv_prog_cc_c89=no
3747 ac_save_CC=$CC
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h.  */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h.  */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762      char **p;
3763      int i;
3764 {
3765   return p[i];
3766 }
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3768 {
3769   char *s;
3770   va_list v;
3771   va_start (v,p);
3772   s = g (p, va_arg (v,int));
3773   va_end (v);
3774   return s;
3775 }
3776
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778    function prototypes and stuff, but not '\xHH' hex character constants.
3779    These don't provoke an error unfortunately, instead are silently treated
3780    as 'x'.  The following induces an error, until -std is added to get
3781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782    array size at least.  It's necessary to write '\x00'==0 to get something
3783    that's true only with -std.  */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787    inside strings and character constants.  */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3797 int
3798 main ()
3799 {
3800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 do
3808   CC="$ac_save_CC $ac_arg"
3809   rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816   (eval "$ac_compile") 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } && {
3823          test -z "$ac_c_werror_flag" ||
3824          test ! -s conftest.err
3825        } && test -s conftest.$ac_objext; then
3826   ac_cv_prog_cc_c89=$ac_arg
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831
3832 fi
3833
3834 rm -f core conftest.err conftest.$ac_objext
3835   test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843   x)
3844     { echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6; } ;;
3846   xno)
3847     { echo "$as_me:$LINENO: result: unsupported" >&5
3848 echo "${ECHO_T}unsupported" >&6; } ;;
3849   *)
3850     CC="$CC $ac_cv_prog_cc_c89"
3851     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3852 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3869 # On Suns, sometimes $CPP names a directory.
3870 if test -n "$CPP" && test -d "$CPP"; then
3871   CPP=
3872 fi
3873 if test -z "$CPP"; then
3874   if test "${ac_cv_prog_CPP+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877       # Double quotes because CPP needs to be expanded
3878     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3879     do
3880       ac_preproc_ok=false
3881 for ac_c_preproc_warn_flag in '' yes
3882 do
3883   # Use a header file that comes with gcc, so configuring glibc
3884   # with a fresh cross-compiler works.
3885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3886   # <limits.h> exists even on freestanding compilers.
3887   # On the NeXT, cc -E runs the code through the compiler's parser,
3888   # not just through cpp. "Syntax error" is here to catch this case.
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 #ifdef __STDC__
3896 # include <limits.h>
3897 #else
3898 # include <assert.h>
3899 #endif
3900                      Syntax error
3901 _ACEOF
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909   ac_status=$?
3910   grep -v '^ *+' conftest.er1 >conftest.err
3911   rm -f conftest.er1
3912   cat conftest.err >&5
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } >/dev/null && {
3915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916          test ! -s conftest.err
3917        }; then
3918   :
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923   # Broken: fails on valid input.
3924 continue
3925 fi
3926
3927 rm -f conftest.err conftest.$ac_ext
3928
3929   # OK, works on sane cases.  Now check whether nonexistent headers
3930   # can be detected and how.
3931   cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if { (ac_try="$ac_cpp conftest.$ac_ext"
3940 case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3946   ac_status=$?
3947   grep -v '^ *+' conftest.er1 >conftest.err
3948   rm -f conftest.er1
3949   cat conftest.err >&5
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); } >/dev/null && {
3952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3953          test ! -s conftest.err
3954        }; then
3955   # Broken: success on invalid input.
3956 continue
3957 else
3958   echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961   # Passes both tests.
3962 ac_preproc_ok=:
3963 break
3964 fi
3965
3966 rm -f conftest.err conftest.$ac_ext
3967
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then
3972   break
3973 fi
3974
3975     done
3976     ac_cv_prog_CPP=$CPP
3977
3978 fi
3979   CPP=$ac_cv_prog_CPP
3980 else
3981   ac_cv_prog_CPP=$CPP
3982 fi
3983 { echo "$as_me:$LINENO: result: $CPP" >&5
3984 echo "${ECHO_T}$CPP" >&6; }
3985 ac_preproc_ok=false
3986 for ac_c_preproc_warn_flag in '' yes
3987 do
3988   # Use a header file that comes with gcc, so configuring glibc
3989   # with a fresh cross-compiler works.
3990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991   # <limits.h> exists even on freestanding compilers.
3992   # On the NeXT, cc -E runs the code through the compiler's parser,
3993   # not just through cpp. "Syntax error" is here to catch this case.
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005                      Syntax error
4006 _ACEOF
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } >/dev/null && {
4020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021          test ! -s conftest.err
4022        }; then
4023   :
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028   # Broken: fails on valid input.
4029 continue
4030 fi
4031
4032 rm -f conftest.err conftest.$ac_ext
4033
4034   # OK, works on sane cases.  Now check whether nonexistent headers
4035   # can be detected and how.
4036   cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h.  */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h.  */
4042 #include <ac_nonexistent.h>
4043 _ACEOF
4044 if { (ac_try="$ac_cpp conftest.$ac_ext"
4045 case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } >/dev/null && {
4057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4058          test ! -s conftest.err
4059        }; then
4060   # Broken: success on invalid input.
4061 continue
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066   # Passes both tests.
4067 ac_preproc_ok=:
4068 break
4069 fi
4070
4071 rm -f conftest.err conftest.$ac_ext
4072
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then
4077   :
4078 else
4079   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4080 See \`config.log' for more details." >&5
4081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4082 See \`config.log' for more details." >&2;}
4083    { (exit 1); exit 1; }; }
4084 fi
4085
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 # Find a good install program.  We prefer a C program (faster),
4093 # so one script is as good as another.  But avoid the broken or
4094 # incompatible versions:
4095 # SysV /etc/install, /usr/sbin/install
4096 # SunOS /usr/etc/install
4097 # IRIX /sbin/install
4098 # AIX /bin/install
4099 # AmigaOS /C/install, which installs bootblocks on floppy discs
4100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4103 # OS/2's system install, which has a completely different semantic
4104 # ./install, which can be erroneously created by make from ./install.sh.
4105 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4106 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4107 if test -z "$INSTALL"; then
4108 if test "${ac_cv_path_install+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116   # Account for people who put trailing slashes in PATH elements.
4117 case $as_dir/ in
4118   ./ | .// | /cC/* | \
4119   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4120   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4121   /usr/ucb/* ) ;;
4122   *)
4123     # OSF1 and SCO ODT 3.0 have their own names for install.
4124     # Don't use installbsd from OSF since it installs stuff as root
4125     # by default.
4126     for ac_prog in ginstall scoinst install; do
4127       for ac_exec_ext in '' $ac_executable_extensions; do
4128         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4129           if test $ac_prog = install &&
4130             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4131             # AIX install.  It has an incompatible calling convention.
4132             :
4133           elif test $ac_prog = install &&
4134             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4135             # program-specific install script used by HP pwplus--don't use.
4136             :
4137           else
4138             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4139             break 3
4140           fi
4141         fi
4142       done
4143     done
4144     ;;
4145 esac
4146 done
4147 IFS=$as_save_IFS
4148
4149
4150 fi
4151   if test "${ac_cv_path_install+set}" = set; then
4152     INSTALL=$ac_cv_path_install
4153   else
4154     # As a last resort, use the slow shell script.  Don't cache a
4155     # value for INSTALL within a source directory, because that will
4156     # break other packages using the cache if that directory is
4157     # removed, or if the value is a relative name.
4158     INSTALL=$ac_install_sh
4159   fi
4160 fi
4161 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4162 echo "${ECHO_T}$INSTALL" >&6; }
4163
4164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4165 # It thinks the first close brace ends the variable substitution.
4166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4167
4168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4169
4170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4171
4172
4173 if test "x${cache_file}" = "x/dev/null"; then
4174   # Likewise, ensure that CC and CPP are passed through to the pcre
4175   # configure script iff caching is disabled (the autoconf 2.5x default).
4176   export CC; export CPP
4177 fi
4178
4179 echo $ac_n "Configuring Serf...${nl}"
4180
4181 abs_srcdir=`(cd $srcdir && pwd)`
4182 abs_builddir=`pwd`
4183
4184 get_version="$abs_srcdir/build/get-version.sh"
4185 version_hdr="$abs_srcdir/serf.h"
4186 SERF_MAJOR_VERSION="`$get_version major $version_hdr SERF`"
4187 SERF_DOTTED_VERSION="`$get_version all $version_hdr SERF`"
4188
4189
4190
4191
4192
4193
4194
4195
4196 # Check whether --with-openssl was given.
4197 if test "${with_openssl+set}" = set; then
4198   withval=$with_openssl;
4199   if test "$withval" = "yes"; then
4200     { { echo "$as_me:$LINENO: error: --with-openssl requires a path" >&5
4201 echo "$as_me: error: --with-openssl requires a path" >&2;}
4202    { (exit 1); exit 1; }; }
4203   else
4204     openssl_prefix=$withval
4205
4206     if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
4207       { { echo "$as_me:$LINENO: error: '--with-openssl requires a path to a directory'" >&5
4208 echo "$as_me: error: '--with-openssl requires a path to a directory'" >&2;}
4209    { (exit 1); exit 1; }; }
4210     fi
4211
4212
4213   if test "x$CPPFLAGS" = "x"; then
4214     test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \""-I${openssl_prefix}/include"\""
4215     CPPFLAGS=""-I${openssl_prefix}/include""
4216   else
4217     apr_addto_bugger=""-I${openssl_prefix}/include""
4218     for i in $apr_addto_bugger; do
4219       apr_addto_duplicate="0"
4220       for j in $CPPFLAGS; do
4221         if test "x$i" = "x$j"; then
4222           apr_addto_duplicate="1"
4223           break
4224         fi
4225       done
4226       if test $apr_addto_duplicate = "0"; then
4227         test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
4228         CPPFLAGS="$CPPFLAGS $i"
4229       fi
4230     done
4231   fi
4232
4233
4234   if test "x$LDFLAGS" = "x"; then
4235     test "x$silent" != "xyes" && echo "  setting LDFLAGS to \""-L${openssl_prefix}/lib"\""
4236     LDFLAGS=""-L${openssl_prefix}/lib""
4237   else
4238     apr_addto_bugger=""-L${openssl_prefix}/lib""
4239     for i in $apr_addto_bugger; do
4240       apr_addto_duplicate="0"
4241       for j in $LDFLAGS; do
4242         if test "x$i" = "x$j"; then
4243           apr_addto_duplicate="1"
4244           break
4245         fi
4246       done
4247       if test $apr_addto_duplicate = "0"; then
4248         test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4249         LDFLAGS="$LDFLAGS $i"
4250       fi
4251     done
4252   fi
4253
4254
4255   if test "x$LDFLAGS" = "x"; then
4256     test "x$silent" != "xyes" && echo "  setting LDFLAGS to \""-R${openssl_prefix}/lib"\""
4257     LDFLAGS=""-R${openssl_prefix}/lib""
4258   else
4259     apr_addto_bugger=""-R${openssl_prefix}/lib""
4260     for i in $apr_addto_bugger; do
4261       apr_addto_duplicate="0"
4262       for j in $LDFLAGS; do
4263         if test "x$i" = "x$j"; then
4264           apr_addto_duplicate="1"
4265           break
4266         fi
4267       done
4268       if test $apr_addto_duplicate = "0"; then
4269         test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4270         LDFLAGS="$LDFLAGS $i"
4271       fi
4272     done
4273   fi
4274
4275   fi
4276
4277 fi
4278
4279
4280
4281
4282 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4283 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4284 if test "${ac_cv_path_GREP+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   # Extract the first word of "grep ggrep" to use in msg output
4288 if test -z "$GREP"; then
4289 set dummy grep ggrep; ac_prog_name=$2
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   ac_path_GREP_found=false
4294 # Loop through the user's path and test for each of PROGNAME-LIST
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_prog in grep ggrep; do
4301   for ac_exec_ext in '' $ac_executable_extensions; do
4302     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4303     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4304     # Check for GNU ac_path_GREP and select it if it is found.
4305   # Check for GNU $ac_path_GREP
4306 case `"$ac_path_GREP" --version 2>&1` in
4307 *GNU*)
4308   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4309 *)
4310   ac_count=0
4311   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4312   while :
4313   do
4314     cat "conftest.in" "conftest.in" >"conftest.tmp"
4315     mv "conftest.tmp" "conftest.in"
4316     cp "conftest.in" "conftest.nl"
4317     echo 'GREP' >> "conftest.nl"
4318     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320     ac_count=`expr $ac_count + 1`
4321     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4322       # Best one so far, save it but keep looking for a better one
4323       ac_cv_path_GREP="$ac_path_GREP"
4324       ac_path_GREP_max=$ac_count
4325     fi
4326     # 10*(2^10) chars as input seems more than enough
4327     test $ac_count -gt 10 && break
4328   done
4329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4331
4332
4333     $ac_path_GREP_found && break 3
4334   done
4335 done
4336
4337 done
4338 IFS=$as_save_IFS
4339
4340
4341 fi
4342
4343 GREP="$ac_cv_path_GREP"
4344 if test -z "$GREP"; then
4345   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4347    { (exit 1); exit 1; }; }
4348 fi
4349
4350 else
4351   ac_cv_path_GREP=$GREP
4352 fi
4353
4354
4355 fi
4356 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4357 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4358  GREP="$ac_cv_path_GREP"
4359
4360
4361 { echo "$as_me:$LINENO: checking for egrep" >&5
4362 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4363 if test "${ac_cv_path_EGREP+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4367    then ac_cv_path_EGREP="$GREP -E"
4368    else
4369      # Extract the first word of "egrep" to use in msg output
4370 if test -z "$EGREP"; then
4371 set dummy egrep; ac_prog_name=$2
4372 if test "${ac_cv_path_EGREP+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_prog in egrep; do
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386     # Check for GNU ac_path_EGREP and select it if it is found.
4387   # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4389 *GNU*)
4390   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391 *)
4392   ac_count=0
4393   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4394   while :
4395   do
4396     cat "conftest.in" "conftest.in" >"conftest.tmp"
4397     mv "conftest.tmp" "conftest.in"
4398     cp "conftest.in" "conftest.nl"
4399     echo 'EGREP' >> "conftest.nl"
4400     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402     ac_count=`expr $ac_count + 1`
4403     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404       # Best one so far, save it but keep looking for a better one
4405       ac_cv_path_EGREP="$ac_path_EGREP"
4406       ac_path_EGREP_max=$ac_count
4407     fi
4408     # 10*(2^10) chars as input seems more than enough
4409     test $ac_count -gt 10 && break
4410   done
4411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414
4415     $ac_path_EGREP_found && break 3
4416   done
4417 done
4418
4419 done
4420 IFS=$as_save_IFS
4421
4422
4423 fi
4424
4425 EGREP="$ac_cv_path_EGREP"
4426 if test -z "$EGREP"; then
4427   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4429    { (exit 1); exit 1; }; }
4430 fi
4431
4432 else
4433   ac_cv_path_EGREP=$EGREP
4434 fi
4435
4436
4437    fi
4438 fi
4439 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4440 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4441  EGREP="$ac_cv_path_EGREP"
4442
4443
4444 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <stdlib.h>
4456 #include <stdarg.h>
4457 #include <string.h>
4458 #include <float.h>
4459
4460 int
4461 main ()
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } && {
4482          test -z "$ac_c_werror_flag" ||
4483          test ! -s conftest.err
4484        } && test -s conftest.$ac_objext; then
4485   ac_cv_header_stdc=yes
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490         ac_cv_header_stdc=no
4491 fi
4492
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494
4495 if test $ac_cv_header_stdc = yes; then
4496   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #include <string.h>
4504
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507   $EGREP "memchr" >/dev/null 2>&1; then
4508   :
4509 else
4510   ac_cv_header_stdc=no
4511 fi
4512 rm -f conftest*
4513
4514 fi
4515
4516 if test $ac_cv_header_stdc = yes; then
4517   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 #include <stdlib.h>
4525
4526 _ACEOF
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528   $EGREP "free" >/dev/null 2>&1; then
4529   :
4530 else
4531   ac_cv_header_stdc=no
4532 fi
4533 rm -f conftest*
4534
4535 fi
4536
4537 if test $ac_cv_header_stdc = yes; then
4538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539   if test "$cross_compiling" = yes; then
4540   :
4541 else
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 #include <ctype.h>
4549 #include <stdlib.h>
4550 #if ((' ' & 0x0FF) == 0x020)
4551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4553 #else
4554 # define ISLOWER(c) \
4555                    (('a' <= (c) && (c) <= 'i') \
4556                      || ('j' <= (c) && (c) <= 'r') \
4557                      || ('s' <= (c) && (c) <= 'z'))
4558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4559 #endif
4560
4561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4562 int
4563 main ()
4564 {
4565   int i;
4566   for (i = 0; i < 256; i++)
4567     if (XOR (islower (i), ISLOWER (i))
4568         || toupper (i) != TOUPPER (i))
4569       return 2;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_link") 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4584   { (case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589   (eval "$ac_try") 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   :
4594 else
4595   echo "$as_me: program exited with status $ac_status" >&5
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 ( exit $ac_status )
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4603 fi
4604
4605
4606 fi
4607 fi
4608 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4609 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4610 if test $ac_cv_header_stdc = yes; then
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define STDC_HEADERS 1
4614 _ACEOF
4615
4616 fi
4617
4618 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4629                   inttypes.h stdint.h unistd.h
4630 do
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 $ac_includes_default
4644
4645 #include <$ac_header>
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (ac_try="$ac_compile"
4649 case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654   (eval "$ac_compile") 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } && {
4661          test -z "$ac_c_werror_flag" ||
4662          test ! -s conftest.err
4663        } && test -s conftest.$ac_objext; then
4664   eval "$as_ac_Header=yes"
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669         eval "$as_ac_Header=no"
4670 fi
4671
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 ac_res=`eval echo '${'$as_ac_Header'}'`
4675                { echo "$as_me:$LINENO: result: $ac_res" >&5
4676 echo "${ECHO_T}$ac_res" >&6; }
4677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4678   cat >>confdefs.h <<_ACEOF
4679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4680 _ACEOF
4681
4682 fi
4683
4684 done
4685
4686
4687 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
4688   { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
4689 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
4690 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 fi
4693 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
4694 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
4695 else
4696   # Is the header compilable?
4697 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
4698 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 $ac_includes_default
4706 #include <openssl/opensslv.h>
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715   (eval "$ac_compile") 2>conftest.er1
4716   ac_status=$?
4717   grep -v '^ *+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } && {
4722          test -z "$ac_c_werror_flag" ||
4723          test ! -s conftest.err
4724        } && test -s conftest.$ac_objext; then
4725   ac_header_compiler=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730         ac_header_compiler=no
4731 fi
4732
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4735 echo "${ECHO_T}$ac_header_compiler" >&6; }
4736
4737 # Is the header present?
4738 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
4739 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 #include <openssl/opensslv.h>
4747 _ACEOF
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } >/dev/null && {
4761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762          test ! -s conftest.err
4763        }; then
4764   ac_header_preproc=yes
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769   ac_header_preproc=no
4770 fi
4771
4772 rm -f conftest.err conftest.$ac_ext
4773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4774 echo "${ECHO_T}$ac_header_preproc" >&6; }
4775
4776 # So?  What about this header?
4777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4778   yes:no: )
4779     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
4780 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4781     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
4782 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
4783     ac_header_preproc=yes
4784     ;;
4785   no:yes:* )
4786     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
4787 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
4788     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&5
4789 echo "$as_me: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&2;}
4790     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
4791 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
4792     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&5
4793 echo "$as_me: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4794     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
4795 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
4796     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
4797 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
4798
4799     ;;
4800 esac
4801 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
4802 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
4803 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_cv_header_openssl_opensslv_h=$ac_header_preproc
4807 fi
4808 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
4809 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
4810
4811 fi
4812 if test $ac_cv_header_openssl_opensslv_h = yes; then
4813   :
4814 else
4815   { { echo "$as_me:$LINENO: error: We require OpenSSL; try --with-openssl" >&5
4816 echo "$as_me: error: We require OpenSSL; try --with-openssl" >&2;}
4817    { (exit 1); exit 1; }; }
4818 fi
4819
4820
4821
4822 libs="`$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"
4823
4824   if test "x$SERF_LIBS" = "x"; then
4825     test "x$silent" != "xyes" && echo "  setting SERF_LIBS to \"$libs\""
4826     SERF_LIBS="$libs"
4827   else
4828     apr_addto_bugger="$libs"
4829     for i in $apr_addto_bugger; do
4830       apr_addto_duplicate="0"
4831       for j in $SERF_LIBS; do
4832         if test "x$i" = "x$j"; then
4833           apr_addto_duplicate="1"
4834           break
4835         fi
4836       done
4837       if test $apr_addto_duplicate = "0"; then
4838         test "x$silent" != "xyes" && echo "  adding \"$i\" to SERF_LIBS"
4839         SERF_LIBS="$SERF_LIBS $i"
4840       fi
4841     done
4842   fi
4843
4844
4845
4846 ac_config_files="$ac_config_files Makefile"
4847
4848 ac_config_commands="$ac_config_commands mkdir-vpath"
4849
4850
4851 cat >confcache <<\_ACEOF
4852 # This file is a shell script that caches the results of configure
4853 # tests run on this system so they can be shared between configure
4854 # scripts and configure runs, see configure's option --config-cache.
4855 # It is not useful on other systems.  If it contains results you don't
4856 # want to keep, you may remove or edit it.
4857 #
4858 # config.status only pays attention to the cache file if you give it
4859 # the --recheck option to rerun configure.
4860 #
4861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4863 # following values.
4864
4865 _ACEOF
4866
4867 # The following way of writing the cache mishandles newlines in values,
4868 # but we know of no workaround that is simple, portable, and efficient.
4869 # So, we kill variables containing newlines.
4870 # Ultrix sh set writes to stderr and can't be redirected directly,
4871 # and sets the high bit in the cache file unless we assign to the vars.
4872 (
4873   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4874     eval ac_val=\$$ac_var
4875     case $ac_val in #(
4876     *${as_nl}*)
4877       case $ac_var in #(
4878       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4879 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4880       esac
4881       case $ac_var in #(
4882       _ | IFS | as_nl) ;; #(
4883       *) $as_unset $ac_var ;;
4884       esac ;;
4885     esac
4886   done
4887
4888   (set) 2>&1 |
4889     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4890     *${as_nl}ac_space=\ *)
4891       # `set' does not quote correctly, so add quotes (double-quote
4892       # substitution turns \\\\ into \\, and sed turns \\ into \).
4893       sed -n \
4894         "s/'/'\\\\''/g;
4895           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4896       ;; #(
4897     *)
4898       # `set' quotes correctly as required by POSIX, so do not add quotes.
4899       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4900       ;;
4901     esac |
4902     sort
4903 ) |
4904   sed '
4905      /^ac_cv_env_/b end
4906      t clear
4907      :clear
4908      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4909      t end
4910      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4911      :end' >>confcache
4912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4913   if test -w "$cache_file"; then
4914     test "x$cache_file" != "x/dev/null" &&
4915       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4916 echo "$as_me: updating cache $cache_file" >&6;}
4917     cat confcache >$cache_file
4918   else
4919     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4920 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4921   fi
4922 fi
4923 rm -f confcache
4924
4925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4926 # Let make expand exec_prefix.
4927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4928
4929 # Transform confdefs.h into DEFS.
4930 # Protect against shell expansion while executing Makefile rules.
4931 # Protect against Makefile macro expansion.
4932 #
4933 # If the first sed substitution is executed (which looks for macros that
4934 # take arguments), then branch to the quote section.  Otherwise,
4935 # look for a macro that doesn't take arguments.
4936 ac_script='
4937 t clear
4938 :clear
4939 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4940 t quote
4941 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4942 t quote
4943 b any
4944 :quote
4945 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4946 s/\[/\\&/g
4947 s/\]/\\&/g
4948 s/\$/$$/g
4949 H
4950 :any
4951 ${
4952         g
4953         s/^\n//
4954         s/\n/ /g
4955         p
4956 }
4957 '
4958 DEFS=`sed -n "$ac_script" confdefs.h`
4959
4960
4961 ac_libobjs=
4962 ac_ltlibobjs=
4963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4964   # 1. Remove the extension, and $U if already installed.
4965   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4966   ac_i=`echo "$ac_i" | sed "$ac_script"`
4967   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4968   #    will be set to the directory where LIBOBJS objects are built.
4969   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4970   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4971 done
4972 LIBOBJS=$ac_libobjs
4973
4974 LTLIBOBJS=$ac_ltlibobjs
4975
4976
4977
4978 : ${CONFIG_STATUS=./config.status}
4979 ac_clean_files_save=$ac_clean_files
4980 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4983 cat >$CONFIG_STATUS <<_ACEOF
4984 #! $SHELL
4985 # Generated by $as_me.
4986 # Run this file to recreate the current configuration.
4987 # Compiler output produced by configure, useful for debugging
4988 # configure, is in config.log if it exists.
4989
4990 debug=false
4991 ac_cs_recheck=false
4992 ac_cs_silent=false
4993 SHELL=\${CONFIG_SHELL-$SHELL}
4994 _ACEOF
4995
4996 cat >>$CONFIG_STATUS <<\_ACEOF
4997 ## --------------------- ##
4998 ## M4sh Initialization.  ##
4999 ## --------------------- ##
5000
5001 # Be more Bourne compatible
5002 DUALCASE=1; export DUALCASE # for MKS sh
5003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5004   emulate sh
5005   NULLCMD=:
5006   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5007   # is contrary to our usage.  Disable this feature.
5008   alias -g '${1+"$@"}'='"$@"'
5009   setopt NO_GLOB_SUBST
5010 else
5011   case `(set -o) 2>/dev/null` in
5012   *posix*) set -o posix ;;
5013 esac
5014
5015 fi
5016
5017
5018
5019
5020 # PATH needs CR
5021 # Avoid depending upon Character Ranges.
5022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5025 as_cr_digits='0123456789'
5026 as_cr_alnum=$as_cr_Letters$as_cr_digits
5027
5028 # The user is always right.
5029 if test "${PATH_SEPARATOR+set}" != set; then
5030   echo "#! /bin/sh" >conf$$.sh
5031   echo  "exit 0"   >>conf$$.sh
5032   chmod +x conf$$.sh
5033   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5034     PATH_SEPARATOR=';'
5035   else
5036     PATH_SEPARATOR=:
5037   fi
5038   rm -f conf$$.sh
5039 fi
5040
5041 # Support unset when possible.
5042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5043   as_unset=unset
5044 else
5045   as_unset=false
5046 fi
5047
5048
5049 # IFS
5050 # We need space, tab and new line, in precisely that order.  Quoting is
5051 # there to prevent editors from complaining about space-tab.
5052 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5053 # splitting by setting IFS to empty value.)
5054 as_nl='
5055 '
5056 IFS=" ""        $as_nl"
5057
5058 # Find who we are.  Look in the path if we contain no directory separator.
5059 case $0 in
5060   *[\\/]* ) as_myself=$0 ;;
5061   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5067 done
5068 IFS=$as_save_IFS
5069
5070      ;;
5071 esac
5072 # We did not find ourselves, most probably we were run as `sh COMMAND'
5073 # in which case we are not to be found in the path.
5074 if test "x$as_myself" = x; then
5075   as_myself=$0
5076 fi
5077 if test ! -f "$as_myself"; then
5078   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5079   { (exit 1); exit 1; }
5080 fi
5081
5082 # Work around bugs in pre-3.0 UWIN ksh.
5083 for as_var in ENV MAIL MAILPATH
5084 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5085 done
5086 PS1='$ '
5087 PS2='> '
5088 PS4='+ '
5089
5090 # NLS nuisances.
5091 for as_var in \
5092   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5093   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5094   LC_TELEPHONE LC_TIME
5095 do
5096   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5097     eval $as_var=C; export $as_var
5098   else
5099     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5100   fi
5101 done
5102
5103 # Required to use basename.
5104 if expr a : '\(a\)' >/dev/null 2>&1 &&
5105    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5106   as_expr=expr
5107 else
5108   as_expr=false
5109 fi
5110
5111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5112   as_basename=basename
5113 else
5114   as_basename=false
5115 fi
5116
5117
5118 # Name of the executable.
5119 as_me=`$as_basename -- "$0" ||
5120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5121          X"$0" : 'X\(//\)$' \| \
5122          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5123 echo X/"$0" |
5124     sed '/^.*\/\([^/][^/]*\)\/*$/{
5125             s//\1/
5126             q
5127           }
5128           /^X\/\(\/\/\)$/{
5129             s//\1/
5130             q
5131           }
5132           /^X\/\(\/\).*/{
5133             s//\1/
5134             q
5135           }
5136           s/.*/./; q'`
5137
5138 # CDPATH.
5139 $as_unset CDPATH
5140
5141
5142
5143   as_lineno_1=$LINENO
5144   as_lineno_2=$LINENO
5145   test "x$as_lineno_1" != "x$as_lineno_2" &&
5146   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5147
5148   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5149   # uniformly replaced by the line number.  The first 'sed' inserts a
5150   # line-number line after each line using $LINENO; the second 'sed'
5151   # does the real work.  The second script uses 'N' to pair each
5152   # line-number line with the line containing $LINENO, and appends
5153   # trailing '-' during substitution so that $LINENO is not a special
5154   # case at line end.
5155   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5156   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5157   # E. McMahon (1931-1989) for sed's syntax.  :-)
5158   sed -n '
5159     p
5160     /[$]LINENO/=
5161   ' <$as_myself |
5162     sed '
5163       s/[$]LINENO.*/&-/
5164       t lineno
5165       b
5166       :lineno
5167       N
5168       :loop
5169       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5170       t loop
5171       s/-\n.*//
5172     ' >$as_me.lineno &&
5173   chmod +x "$as_me.lineno" ||
5174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5175    { (exit 1); exit 1; }; }
5176
5177   # Don't try to exec as it changes $[0], causing all sort of problems
5178   # (the dirname of $[0] is not the place where we might find the
5179   # original and so on.  Autoconf is especially sensitive to this).
5180   . "./$as_me.lineno"
5181   # Exit status is that of the last command.
5182   exit
5183 }
5184
5185
5186 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5187   as_dirname=dirname
5188 else
5189   as_dirname=false
5190 fi
5191
5192 ECHO_C= ECHO_N= ECHO_T=
5193 case `echo -n x` in
5194 -n*)
5195   case `echo 'x\c'` in
5196   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5197   *)   ECHO_C='\c';;
5198   esac;;
5199 *)
5200   ECHO_N='-n';;
5201 esac
5202
5203 if expr a : '\(a\)' >/dev/null 2>&1 &&
5204    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5205   as_expr=expr
5206 else
5207   as_expr=false
5208 fi
5209
5210 rm -f conf$$ conf$$.exe conf$$.file
5211 if test -d conf$$.dir; then
5212   rm -f conf$$.dir/conf$$.file
5213 else
5214   rm -f conf$$.dir
5215   mkdir conf$$.dir
5216 fi
5217 echo >conf$$.file
5218 if ln -s conf$$.file conf$$ 2>/dev/null; then
5219   as_ln_s='ln -s'
5220   # ... but there are two gotchas:
5221   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5222   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5223   # In both cases, we have to default to `cp -p'.
5224   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5225     as_ln_s='cp -p'
5226 elif ln conf$$.file conf$$ 2>/dev/null; then
5227   as_ln_s=ln
5228 else
5229   as_ln_s='cp -p'
5230 fi
5231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5232 rmdir conf$$.dir 2>/dev/null
5233
5234 if mkdir -p . 2>/dev/null; then
5235   as_mkdir_p=:
5236 else
5237   test -d ./-p && rmdir ./-p
5238   as_mkdir_p=false
5239 fi
5240
5241 if test -x / >/dev/null 2>&1; then
5242   as_test_x='test -x'
5243 else
5244   if ls -dL / >/dev/null 2>&1; then
5245     as_ls_L_option=L
5246   else
5247     as_ls_L_option=
5248   fi
5249   as_test_x='
5250     eval sh -c '\''
5251       if test -d "$1"; then
5252         test -d "$1/.";
5253       else
5254         case $1 in
5255         -*)set "./$1";;
5256         esac;
5257         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5258         ???[sx]*):;;*)false;;esac;fi
5259     '\'' sh
5260   '
5261 fi
5262 as_executable_p=$as_test_x
5263
5264 # Sed expression to map a string onto a valid CPP name.
5265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5266
5267 # Sed expression to map a string onto a valid variable name.
5268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5269
5270
5271 exec 6>&1
5272
5273 # Save the log message, to keep $[0] and so on meaningful, and to
5274 # report actual input values of CONFIG_FILES etc. instead of their
5275 # values after options handling.
5276 ac_log="
5277 This file was extended by $as_me, which was
5278 generated by GNU Autoconf 2.61.  Invocation command line was
5279
5280   CONFIG_FILES    = $CONFIG_FILES
5281   CONFIG_HEADERS  = $CONFIG_HEADERS
5282   CONFIG_LINKS    = $CONFIG_LINKS
5283   CONFIG_COMMANDS = $CONFIG_COMMANDS
5284   $ $0 $@
5285
5286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5287 "
5288
5289 _ACEOF
5290
5291 cat >>$CONFIG_STATUS <<_ACEOF
5292 # Files that config.status was made for.
5293 config_files="$ac_config_files"
5294 config_commands="$ac_config_commands"
5295
5296 _ACEOF
5297
5298 cat >>$CONFIG_STATUS <<\_ACEOF
5299 ac_cs_usage="\
5300 \`$as_me' instantiates files from templates according to the
5301 current configuration.
5302
5303 Usage: $0 [OPTIONS] [FILE]...
5304
5305   -h, --help       print this help, then exit
5306   -V, --version    print version number and configuration settings, then exit
5307   -q, --quiet      do not print progress messages
5308   -d, --debug      don't remove temporary files
5309       --recheck    update $as_me by reconfiguring in the same conditions
5310   --file=FILE[:TEMPLATE]
5311                    instantiate the configuration file FILE
5312
5313 Configuration files:
5314 $config_files
5315
5316 Configuration commands:
5317 $config_commands
5318
5319 Report bugs to <bug-autoconf@gnu.org>."
5320
5321 _ACEOF
5322 cat >>$CONFIG_STATUS <<_ACEOF
5323 ac_cs_version="\\
5324 config.status
5325 configured by $0, generated by GNU Autoconf 2.61,
5326   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5327
5328 Copyright (C) 2006 Free Software Foundation, Inc.
5329 This config.status script is free software; the Free Software Foundation
5330 gives unlimited permission to copy, distribute and modify it."
5331
5332 ac_pwd='$ac_pwd'
5333 srcdir='$srcdir'
5334 INSTALL='$INSTALL'
5335 _ACEOF
5336
5337 cat >>$CONFIG_STATUS <<\_ACEOF
5338 # If no file are specified by the user, then we need to provide default
5339 # value.  By we need to know if files were specified by the user.
5340 ac_need_defaults=:
5341 while test $# != 0
5342 do
5343   case $1 in
5344   --*=*)
5345     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5346     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5347     ac_shift=:
5348     ;;
5349   *)
5350     ac_option=$1
5351     ac_optarg=$2
5352     ac_shift=shift
5353     ;;
5354   esac
5355
5356   case $ac_option in
5357   # Handling of the options.
5358   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5359     ac_cs_recheck=: ;;
5360   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5361     echo "$ac_cs_version"; exit ;;
5362   --debug | --debu | --deb | --de | --d | -d )
5363     debug=: ;;
5364   --file | --fil | --fi | --f )
5365     $ac_shift
5366     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5367     ac_need_defaults=false;;
5368   --he | --h |  --help | --hel | -h )
5369     echo "$ac_cs_usage"; exit ;;
5370   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5371   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5372     ac_cs_silent=: ;;
5373
5374   # This is an error.
5375   -*) { echo "$as_me: error: unrecognized option: $1
5376 Try \`$0 --help' for more information." >&2
5377    { (exit 1); exit 1; }; } ;;
5378
5379   *) ac_config_targets="$ac_config_targets $1"
5380      ac_need_defaults=false ;;
5381
5382   esac
5383   shift
5384 done
5385
5386 ac_configure_extra_args=
5387
5388 if $ac_cs_silent; then
5389   exec 6>/dev/null
5390   ac_configure_extra_args="$ac_configure_extra_args --silent"
5391 fi
5392
5393 _ACEOF
5394 cat >>$CONFIG_STATUS <<_ACEOF
5395 if \$ac_cs_recheck; then
5396   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5397   CONFIG_SHELL=$SHELL
5398   export CONFIG_SHELL
5399   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5400 fi
5401
5402 _ACEOF
5403 cat >>$CONFIG_STATUS <<\_ACEOF
5404 exec 5>>config.log
5405 {
5406   echo
5407   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5408 ## Running $as_me. ##
5409 _ASBOX
5410   echo "$ac_log"
5411 } >&5
5412
5413 _ACEOF
5414 cat >>$CONFIG_STATUS <<_ACEOF
5415 _ACEOF
5416
5417 cat >>$CONFIG_STATUS <<\_ACEOF
5418
5419 # Handling of arguments.
5420 for ac_config_target in $ac_config_targets
5421 do
5422   case $ac_config_target in
5423     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5424     "mkdir-vpath") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdir-vpath" ;;
5425
5426   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5428    { (exit 1); exit 1; }; };;
5429   esac
5430 done
5431
5432
5433 # If the user did not use the arguments to specify the items to instantiate,
5434 # then the envvar interface is used.  Set only those that are not.
5435 # We use the long form for the default assignment because of an extremely
5436 # bizarre bug on SunOS 4.1.3.
5437 if $ac_need_defaults; then
5438   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5439   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5440 fi
5441
5442 # Have a temporary directory for convenience.  Make it in the build tree
5443 # simply because there is no reason against having it here, and in addition,
5444 # creating and moving files from /tmp can sometimes cause problems.
5445 # Hook for its removal unless debugging.
5446 # Note that there is a small window in which the directory will not be cleaned:
5447 # after its creation but before its name has been assigned to `$tmp'.
5448 $debug ||
5449 {
5450   tmp=
5451   trap 'exit_status=$?
5452   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5453 ' 0
5454   trap '{ (exit 1); exit 1; }' 1 2 13 15
5455 }
5456 # Create a (secure) tmp directory for tmp files.
5457
5458 {
5459   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5460   test -n "$tmp" && test -d "$tmp"
5461 }  ||
5462 {
5463   tmp=./conf$$-$RANDOM
5464   (umask 077 && mkdir "$tmp")
5465 } ||
5466 {
5467    echo "$me: cannot create a temporary directory in ." >&2
5468    { (exit 1); exit 1; }
5469 }
5470
5471 #
5472 # Set up the sed scripts for CONFIG_FILES section.
5473 #
5474
5475 # No need to generate the scripts if there are no CONFIG_FILES.
5476 # This happens for instance when ./config.status config.h
5477 if test -n "$CONFIG_FILES"; then
5478
5479 _ACEOF
5480
5481
5482
5483 ac_delim='%!_!# '
5484 for ac_last_try in false false false false false :; do
5485   cat >conf$$subs.sed <<_ACEOF
5486 SHELL!$SHELL$ac_delim
5487 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5488 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5489 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5490 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5491 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5492 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5493 exec_prefix!$exec_prefix$ac_delim
5494 prefix!$prefix$ac_delim
5495 program_transform_name!$program_transform_name$ac_delim
5496 bindir!$bindir$ac_delim
5497 sbindir!$sbindir$ac_delim
5498 libexecdir!$libexecdir$ac_delim
5499 datarootdir!$datarootdir$ac_delim
5500 datadir!$datadir$ac_delim
5501 sysconfdir!$sysconfdir$ac_delim
5502 sharedstatedir!$sharedstatedir$ac_delim
5503 localstatedir!$localstatedir$ac_delim
5504 includedir!$includedir$ac_delim
5505 oldincludedir!$oldincludedir$ac_delim
5506 docdir!$docdir$ac_delim
5507 infodir!$infodir$ac_delim
5508 htmldir!$htmldir$ac_delim
5509 dvidir!$dvidir$ac_delim
5510 pdfdir!$pdfdir$ac_delim
5511 psdir!$psdir$ac_delim
5512 libdir!$libdir$ac_delim
5513 localedir!$localedir$ac_delim
5514 mandir!$mandir$ac_delim
5515 DEFS!$DEFS$ac_delim
5516 ECHO_C!$ECHO_C$ac_delim
5517 ECHO_N!$ECHO_N$ac_delim
5518 ECHO_T!$ECHO_T$ac_delim
5519 LIBS!$LIBS$ac_delim
5520 build_alias!$build_alias$ac_delim
5521 host_alias!$host_alias$ac_delim
5522 target_alias!$target_alias$ac_delim
5523 mkdir_p!$mkdir_p$ac_delim
5524 build!$build$ac_delim
5525 build_cpu!$build_cpu$ac_delim
5526 build_vendor!$build_vendor$ac_delim
5527 build_os!$build_os$ac_delim
5528 host!$host$ac_delim
5529 host_cpu!$host_cpu$ac_delim
5530 host_vendor!$host_vendor$ac_delim
5531 host_os!$host_os$ac_delim
5532 target!$target$ac_delim
5533 target_cpu!$target_cpu$ac_delim
5534 target_vendor!$target_vendor$ac_delim
5535 target_os!$target_os$ac_delim
5536 APR_LIBTOOL!$APR_LIBTOOL$ac_delim
5537 APR_BINDIR!$APR_BINDIR$ac_delim
5538 APR_INCLUDEDIR!$APR_INCLUDEDIR$ac_delim
5539 APR_VERSION!$APR_VERSION$ac_delim
5540 APR_CONFIG!$APR_CONFIG$ac_delim
5541 APU_BINDIR!$APU_BINDIR$ac_delim
5542 APU_INCLUDEDIR!$APU_INCLUDEDIR$ac_delim
5543 APU_VERSION!$APU_VERSION$ac_delim
5544 APU_CONFIG!$APU_CONFIG$ac_delim
5545 CC!$CC$ac_delim
5546 CFLAGS!$CFLAGS$ac_delim
5547 LDFLAGS!$LDFLAGS$ac_delim
5548 CPPFLAGS!$CPPFLAGS$ac_delim
5549 ac_ct_CC!$ac_ct_CC$ac_delim
5550 EXEEXT!$EXEEXT$ac_delim
5551 OBJEXT!$OBJEXT$ac_delim
5552 CPP!$CPP$ac_delim
5553 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5554 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5555 INSTALL_DATA!$INSTALL_DATA$ac_delim
5556 SERF_MAJOR_VERSION!$SERF_MAJOR_VERSION$ac_delim
5557 SERF_DOTTED_VERSION!$SERF_DOTTED_VERSION$ac_delim
5558 SERF_BUILD_SRCLIB_DIRS!$SERF_BUILD_SRCLIB_DIRS$ac_delim
5559 SERF_CLEAN_SRCLIB_DIRS!$SERF_CLEAN_SRCLIB_DIRS$ac_delim
5560 GREP!$GREP$ac_delim
5561 EGREP!$EGREP$ac_delim
5562 SERF_LIBS!$SERF_LIBS$ac_delim
5563 LIBOBJS!$LIBOBJS$ac_delim
5564 LTLIBOBJS!$LTLIBOBJS$ac_delim
5565 _ACEOF
5566
5567   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
5568     break
5569   elif $ac_last_try; then
5570     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5572    { (exit 1); exit 1; }; }
5573   else
5574     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5575   fi
5576 done
5577
5578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5579 if test -n "$ac_eof"; then
5580   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5581   ac_eof=`expr $ac_eof + 1`
5582 fi
5583
5584 cat >>$CONFIG_STATUS <<_ACEOF
5585 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5587 _ACEOF
5588 sed '
5589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5590 s/^/s,@/; s/!/@,|#_!!_#|/
5591 :n
5592 t n
5593 s/'"$ac_delim"'$/,g/; t
5594 s/$/\\/; p
5595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5596 ' >>$CONFIG_STATUS <conf$$subs.sed
5597 rm -f conf$$subs.sed
5598 cat >>$CONFIG_STATUS <<_ACEOF
5599 :end
5600 s/|#_!!_#|//g
5601 CEOF$ac_eof
5602 _ACEOF
5603
5604
5605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5607 # trailing colons and then remove the whole line if VPATH becomes empty
5608 # (actually we leave an empty line to preserve line numbers).
5609 if test "x$srcdir" = x.; then
5610   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5611 s/:*\$(srcdir):*/:/
5612 s/:*\${srcdir}:*/:/
5613 s/:*@srcdir@:*/:/
5614 s/^\([^=]*=[     ]*\):*/\1/
5615 s/:*$//
5616 s/^[^=]*=[       ]*$//
5617 }'
5618 fi
5619
5620 cat >>$CONFIG_STATUS <<\_ACEOF
5621 fi # test -n "$CONFIG_FILES"
5622
5623
5624 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
5625 do
5626   case $ac_tag in
5627   :[FHLC]) ac_mode=$ac_tag; continue;;
5628   esac
5629   case $ac_mode$ac_tag in
5630   :[FHL]*:*);;
5631   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5632 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5633    { (exit 1); exit 1; }; };;
5634   :[FH]-) ac_tag=-:-;;
5635   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5636   esac
5637   ac_save_IFS=$IFS
5638   IFS=:
5639   set x $ac_tag
5640   IFS=$ac_save_IFS
5641   shift
5642   ac_file=$1
5643   shift
5644
5645   case $ac_mode in
5646   :L) ac_source=$1;;
5647   :[FH])
5648     ac_file_inputs=
5649     for ac_f
5650     do
5651       case $ac_f in
5652       -) ac_f="$tmp/stdin";;
5653       *) # Look for the file first in the build tree, then in the source tree
5654          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5655          # because $ac_f cannot contain `:'.
5656          test -f "$ac_f" ||
5657            case $ac_f in
5658            [\\/$]*) false;;
5659            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5660            esac ||
5661            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5662 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5663    { (exit 1); exit 1; }; };;
5664       esac
5665       ac_file_inputs="$ac_file_inputs $ac_f"
5666     done
5667
5668     # Let's still pretend it is `configure' which instantiates (i.e., don't
5669     # use $as_me), people would be surprised to read:
5670     #    /* config.h.  Generated by config.status.  */
5671     configure_input="Generated from "`IFS=:
5672           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5673     if test x"$ac_file" != x-; then
5674       configure_input="$ac_file.  $configure_input"
5675       { echo "$as_me:$LINENO: creating $ac_file" >&5
5676 echo "$as_me: creating $ac_file" >&6;}
5677     fi
5678
5679     case $ac_tag in
5680     *:-:* | *:-) cat >"$tmp/stdin";;
5681     esac
5682     ;;
5683   esac
5684
5685   ac_dir=`$as_dirname -- "$ac_file" ||
5686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5687          X"$ac_file" : 'X\(//\)[^/]' \| \
5688          X"$ac_file" : 'X\(//\)$' \| \
5689          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5690 echo X"$ac_file" |
5691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5692             s//\1/
5693             q
5694           }
5695           /^X\(\/\/\)[^/].*/{
5696             s//\1/
5697             q
5698           }
5699           /^X\(\/\/\)$/{
5700             s//\1/
5701             q
5702           }
5703           /^X\(\/\).*/{
5704             s//\1/
5705             q
5706           }
5707           s/.*/./; q'`
5708   { as_dir="$ac_dir"
5709   case $as_dir in #(
5710   -*) as_dir=./$as_dir;;
5711   esac
5712   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5713     as_dirs=
5714     while :; do
5715       case $as_dir in #(
5716       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5717       *) as_qdir=$as_dir;;
5718       esac
5719       as_dirs="'$as_qdir' $as_dirs"
5720       as_dir=`$as_dirname -- "$as_dir" ||
5721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5722          X"$as_dir" : 'X\(//\)[^/]' \| \
5723          X"$as_dir" : 'X\(//\)$' \| \
5724          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5725 echo X"$as_dir" |
5726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5727             s//\1/
5728             q
5729           }
5730           /^X\(\/\/\)[^/].*/{
5731             s//\1/
5732             q
5733           }
5734           /^X\(\/\/\)$/{
5735             s//\1/
5736             q
5737           }
5738           /^X\(\/\).*/{
5739             s//\1/
5740             q
5741           }
5742           s/.*/./; q'`
5743       test -d "$as_dir" && break
5744     done
5745     test -z "$as_dirs" || eval "mkdir $as_dirs"
5746   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5748    { (exit 1); exit 1; }; }; }
5749   ac_builddir=.
5750
5751 case "$ac_dir" in
5752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5753 *)
5754   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5755   # A ".." for each directory in $ac_dir_suffix.
5756   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5757   case $ac_top_builddir_sub in
5758   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5759   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5760   esac ;;
5761 esac
5762 ac_abs_top_builddir=$ac_pwd
5763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5764 # for backward compatibility:
5765 ac_top_builddir=$ac_top_build_prefix
5766
5767 case $srcdir in
5768   .)  # We are building in place.
5769     ac_srcdir=.
5770     ac_top_srcdir=$ac_top_builddir_sub
5771     ac_abs_top_srcdir=$ac_pwd ;;
5772   [\\/]* | ?:[\\/]* )  # Absolute name.
5773     ac_srcdir=$srcdir$ac_dir_suffix;
5774     ac_top_srcdir=$srcdir
5775     ac_abs_top_srcdir=$srcdir ;;
5776   *) # Relative name.
5777     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5778     ac_top_srcdir=$ac_top_build_prefix$srcdir
5779     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5780 esac
5781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5782
5783
5784   case $ac_mode in
5785   :F)
5786   #
5787   # CONFIG_FILE
5788   #
5789
5790   case $INSTALL in
5791   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5792   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5793   esac
5794 _ACEOF
5795
5796 cat >>$CONFIG_STATUS <<\_ACEOF
5797 # If the template does not know about datarootdir, expand it.
5798 # FIXME: This hack should be removed a few years after 2.60.
5799 ac_datarootdir_hack=; ac_datarootdir_seen=
5800
5801 case `sed -n '/datarootdir/ {
5802   p
5803   q
5804 }
5805 /@datadir@/p
5806 /@docdir@/p
5807 /@infodir@/p
5808 /@localedir@/p
5809 /@mandir@/p
5810 ' $ac_file_inputs` in
5811 *datarootdir*) ac_datarootdir_seen=yes;;
5812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5813   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5814 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5815 _ACEOF
5816 cat >>$CONFIG_STATUS <<_ACEOF
5817   ac_datarootdir_hack='
5818   s&@datadir@&$datadir&g
5819   s&@docdir@&$docdir&g
5820   s&@infodir@&$infodir&g
5821   s&@localedir@&$localedir&g
5822   s&@mandir@&$mandir&g
5823     s&\\\${datarootdir}&$datarootdir&g' ;;
5824 esac
5825 _ACEOF
5826
5827 # Neutralize VPATH when `$srcdir' = `.'.
5828 # Shell code in configure.ac might set extrasub.
5829 # FIXME: do we really want to maintain this feature?
5830 cat >>$CONFIG_STATUS <<_ACEOF
5831   sed "$ac_vpsub
5832 $extrasub
5833 _ACEOF
5834 cat >>$CONFIG_STATUS <<\_ACEOF
5835 :t
5836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5837 s&@configure_input@&$configure_input&;t t
5838 s&@top_builddir@&$ac_top_builddir_sub&;t t
5839 s&@srcdir@&$ac_srcdir&;t t
5840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5841 s&@top_srcdir@&$ac_top_srcdir&;t t
5842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5843 s&@builddir@&$ac_builddir&;t t
5844 s&@abs_builddir@&$ac_abs_builddir&;t t
5845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5846 s&@INSTALL@&$ac_INSTALL&;t t
5847 $ac_datarootdir_hack
5848 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5849
5850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5851   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5852   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5853   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5854 which seems to be undefined.  Please make sure it is defined." >&5
5855 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5856 which seems to be undefined.  Please make sure it is defined." >&2;}
5857
5858   rm -f "$tmp/stdin"
5859   case $ac_file in
5860   -) cat "$tmp/out"; rm -f "$tmp/out";;
5861   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5862   esac
5863  ;;
5864
5865
5866   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
5867 echo "$as_me: executing $ac_file commands" >&6;}
5868  ;;
5869   esac
5870
5871
5872   case $ac_file$ac_mode in
5873     "mkdir-vpath":C) make mkdir-vpath ;;
5874
5875   esac
5876 done # for ac_tag
5877
5878
5879 { (exit 0); exit 0; }
5880 _ACEOF
5881 chmod +x $CONFIG_STATUS
5882 ac_clean_files=$ac_clean_files_save
5883
5884
5885 # configure is writing to config.log, and then calls config.status.
5886 # config.status does its own redirection, appending to config.log.
5887 # Unfortunately, on DOS this fails, as config.log is still kept open
5888 # by configure, so config.status won't be able to write to it; its
5889 # output is simply discarded.  So we exec the FD to /dev/null,
5890 # effectively closing config.log, so it can be properly (re)opened and
5891 # appended to by config.status.  When coming back to configure, we
5892 # need to make the FD available again.
5893 if test "$no_create" != yes; then
5894   ac_cs_success=:
5895   ac_config_status_args=
5896   test "$silent" = yes &&
5897     ac_config_status_args="$ac_config_status_args --quiet"
5898   exec 5>/dev/null
5899   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5900   exec 5>>config.log
5901   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5902   # would make configure fail if this is the last instruction.
5903   $ac_cs_success || { (exit 1); exit 1; }
5904 fi
5905