2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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
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
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
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
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
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'"
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'"
552 exec 7<&0 </dev/null 6>&1
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`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="context.c"
580 ac_default_prefix=/usr/local/serf
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
689 SERF_BUILD_SRCLIB_DIRS
690 SERF_CLEAN_SRCLIB_DIRS
697 ac_precious_vars='build_alias
708 # Initialize some variables set by options.
710 ac_init_version=false
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
720 program_transform_name=s,x,x,
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'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
758 # If the previous option needs an argument, assign it.
759 if test -n "$ac_prev"; then
760 eval $ac_prev=\$ac_option
766 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 # Accept the important Cygnus configure options, so we can diagnose typos.
772 case $ac_dashdash$ac_option in
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
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 ;;
794 cache_file=config.cache ;;
796 -datadir | --datadir | --datadi | --datad)
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
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 ;;
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 ;;
817 -docdir | --docdir | --docdi | --doc | --do)
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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 ;;
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 ;;
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
849 -help | --help | --hel | --he | -h)
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 ;;
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 htmldir=$ac_optarg ;;
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 ;;
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
879 -libdir | --libdir | --libdi | --libd)
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
891 -localedir | --localedir | --localedi | --localed | --locale)
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
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 ;;
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909 # Obsolete; use --without-fp.
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 -psdir | --psdir | --psdi | --psd | --ps)
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
979 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 sbindir=$ac_optarg ;;
985 -sharedstatedir | --sharedstatedir | --sharedstatedi \
986 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987 | --sharedst | --shareds | --shared | --share | --shar \
989 ac_prev=sharedstatedir ;;
990 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 sharedstatedir=$ac_optarg ;;
996 -site | --site | --sit)
998 -site=* | --site=* | --sit=*)
1001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1018 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 -version | --version | --versio | --versi | --vers | -V)
1022 ac_init_version=: ;;
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 ;;
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 ;;
1043 # Obsolete; use --with-x.
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 ;;
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 ;;
1060 -*) { echo "$as_me: error: unrecognized option: $ac_option
1061 Try \`$0 --help' for more information." >&2
1062 { (exit 1); exit 1; }; }
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 ;;
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}
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; }; }
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
1097 eval ac_val=\$$ac_var
1099 [\\/$]* | ?:[\\/]* ) continue;;
1100 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1102 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1103 { (exit 1); exit 1; }; }
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.
1111 target=$target_alias
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
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1127 test "$silent" = yes && exec 6>/dev/null
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; }; }
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 ||
1150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1172 ac_srcdir_defaulted=no
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; }; }
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1182 { (exit 1); exit 1; }; }
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1202 # Report the --help message.
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.
1208 \`configure' configures this package to adapt to many kinds of systems.
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1215 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1239 For better control, use the options below.
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]
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]
1272 if test -n "$ac_init_help"; then
1277 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1278 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1279 --enable-layout=LAYOUT
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
1286 --with-apr-util=PATH prefix for installed APU or the full path to
1288 --with-openssl=PATH Path to OpenSSL (eg. /usr/local/ssl)
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>
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.
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
1314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1330 .) # We are building in place.
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 ;;
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 ;;
1343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1345 cd "$ac_dir" || { ac_status=$?; continue; }
1346 # Check for guested configure.
1347 if test -f "$ac_srcdir/configure.gnu"; then
1349 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1350 elif test -f "$ac_srcdir/configure"; then
1352 $SHELL "$ac_srcdir/configure" --help=recursive
1354 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1356 cd "$ac_pwd" || { ac_status=$?; break; }
1360 test -n "$ac_init_help" && exit $ac_status
1361 if $ac_init_version; then
1364 generated by GNU Autoconf 2.61
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.
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.
1377 It was created by $as_me, which was
1378 generated by GNU Autoconf 2.61. Invocation command line was
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`
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`
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`
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 test -z "$as_dir" && as_dir=.
1414 echo "PATH: $as_dir"
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.
1438 ac_must_keep_next=false
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)
1449 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1467 -* ) ac_must_keep_next=true ;;
1470 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1489 ## ---------------- ##
1490 ## Cache variables. ##
1491 ## ---------------- ##
1494 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1505 _ | IFS | as_nl) ;; #(
1506 *) $as_unset $ac_var ;;
1511 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1512 *${as_nl}ac_space=\ *)
1514 "s/'\''/'\''\\\\'\'''\''/g;
1515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1526 ## ----------------- ##
1527 ## Output variables. ##
1528 ## ----------------- ##
1531 for ac_var in $ac_subst_vars
1533 eval ac_val=\$$ac_var
1535 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1537 echo "$ac_var='\''$ac_val'\''"
1541 if test -n "$ac_subst_files"; then
1543 ## ------------------- ##
1544 ## File substitutions. ##
1545 ## ------------------- ##
1548 for ac_var in $ac_subst_files
1550 eval ac_val=\$$ac_var
1552 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 echo "$ac_var='\''$ac_val'\''"
1559 if test -s confdefs.h; then
1569 test "$ac_signal" != 0 &&
1570 echo "$as_me: caught signal $ac_signal"
1571 echo "$as_me: exit $exit_status"
1573 rm -f core *.core core.conftest.* &&
1574 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1577 for ac_signal in 1 2 13 15; do
1578 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1583 rm -f -r conftest* confdefs.h
1585 # Predefined preprocessor variables.
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_NAME "$PACKAGE_NAME"
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_STRING "$PACKAGE_STRING"
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1619 set x "$ac_default_prefix/share/config.site" \
1620 "$ac_default_prefix/etc/config.site"
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
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;}
1640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1641 *) . "./$cache_file";;
1645 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1646 echo "$as_me: creating cache $cache_file" >&6;}
1650 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1679 # Pass precious variables to config.status.
1680 if test "$ac_new_set" = set; then
1682 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1724 for ac_dir in build "$srcdir"/build; do
1725 if test -f "$ac_dir/install-sh"; then
1727 ac_install_sh="$ac_aux_dir/install-sh -c"
1729 elif test -f "$ac_dir/install.sh"; then
1731 ac_install_sh="$ac_aux_dir/install.sh -c"
1733 elif test -f "$ac_dir/shtool"; then
1735 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
1843 # Check whether --enable-layout was given.
1844 if test "${enable_layout+set}" = set; then
1845 enableval=$enable_layout;
1851 if test -z "$LAYOUT"; then
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'"
1860 # Catch layout names including a slash which will otherwise
1861 # confuse the heck out of the sed script.
1864 echo "** Error: $LAYOUT is not a valid layout name"
1867 pldconf=./config.pld
1869 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
1870 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
1871 -e '/[ ]*<\/Layout>[ ]*/,$d' \
1873 -e "s/:[ ]*/=\'/g" \
1875 $srcdir/config.layout > $pldconf
1877 if test ! -s $pldconf; then
1878 echo "** Error: unable to find layout $layout_name"
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\""
1889 val=`echo $val | sed -e 's;\+$;;'`
1890 eval "$var=\"\$val\""
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
1905 if test "$addtarget" = "yes"; then
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; }
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"
1928 # If the previous option needs an argument, assign it.
1929 if test -n "$ac_prev"; then
1930 eval "$ac_prev=\$ac_option"
1935 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1942 bindir="$ac_optarg" ;;
1944 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1946 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1948 datadir="$ac_optarg" ;;
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" ;;
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" ;;
1966 -infodir | --infodir | --infodi | --infod | --info | --inf)
1968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1969 infodir="$ac_optarg" ;;
1971 -libdir | --libdir | --libdi | --libd)
1973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1974 libdir="$ac_optarg" ;;
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" ;;
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" ;;
1992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1995 mandir="$ac_optarg" ;;
1997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2000 prefix="$ac_optarg" ;;
2002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2006 sbindir="$ac_optarg" ;;
2008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2010 | --sharedst | --shareds | --shared | --share | --shar \
2012 ac_prev=sharedstatedir ;;
2013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2017 sharedstatedir="$ac_optarg" ;;
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" ;;
2029 # Be sure to have absolute paths.
2030 for ac_var in exec_prefix prefix
2032 eval ac_val=$`echo $ac_var`
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; }; };;
2045 cat >config.nice<<EOF
2048 # Created by configure
2051 if test -n "$CC"; then
2052 echo "CC=\"$CC\"; export CC" >> config.nice
2054 if test -n "$CFLAGS"; then
2055 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2057 if test -n "$CPPFLAGS"; then
2058 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2060 if test -n "$LDFLAGS"; then
2061 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2063 if test -n "$LTFLAGS"; then
2064 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2066 if test -n "$LIBS"; then
2067 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2069 if test -n "$INCLUDES"; then
2070 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2072 if test -n "$NOTEST_CFLAGS"; then
2073 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2075 if test -n "$NOTEST_CPPFLAGS"; then
2076 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2078 if test -n "$NOTEST_LDFLAGS"; then
2079 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2081 if test -n "$NOTEST_LIBS"; then
2082 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2085 # Retrieve command-line arguments.
2086 eval "set x $0 $ac_configure_args"
2094 while test "x${ap_cur}" != "x${ap_last}";
2097 ap_cur=`eval "echo ${ap_cur}"`
2101 echo "\"$arg\" \\" >> config.nice
2103 echo '"$@"' >> config.nice
2104 chmod +x config.nice
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
2116 test -d conftestdir && rm -rf conftestdir
2117 mkdir -p conftestdir/somedir >/dev/null 2>&1
2118 if test -d conftestdir/somedir; then
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
2131 mkdir_p="$top_srcdir/build/mkdir.sh"
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; }; }
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
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; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2163 echo "${ECHO_T}$ac_cv_build" >&6; }
2164 case $ac_cv_build in
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; }; };;
2171 ac_save_IFS=$IFS; IFS='-'
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
2189 if test "x$host_alias" = x; then
2190 ac_cv_host=$ac_cv_build
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; }; }
2199 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200 echo "${ECHO_T}$ac_cv_host" >&6; }
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; }; };;
2208 ac_save_IFS=$IFS; IFS='-'
2214 # Remember, the first character of IFS is used to create $*,
2215 # except with old shells:
2218 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
2226 if test "x$target_alias" = x; then
2227 ac_cv_target=$ac_cv_host
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; }; }
2236 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2237 echo "${ECHO_T}$ac_cv_target" >&6; }
2238 case $ac_cv_target in
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; }; };;
2244 target=$ac_cv_target
2245 ac_save_IFS=$IFS; IFS='-'
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2255 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
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" = \
2263 program_prefix=${target_alias}-
2265 orig_prefix="$prefix"
2267 echo $ac_n "${nl}Configuring Apache Portable Runtime library...${nl}"
2272 if test "$target_os" = "os2-emx"; then
2273 # Scripts don't pass test -x on OS/2
2279 acceptable_majors="0 1"
2281 apr_temp_acceptable_apr_config=""
2282 for apr_temp_major in $acceptable_majors
2284 case $apr_temp_major in
2286 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
2289 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
2294 { echo "$as_me:$LINENO: checking for APR" >&5
2295 echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
2297 # Check whether --with-apr was given.
2298 if test "${with_apr+set}" = set; then
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; }; }
2306 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2308 for lookdir in "$withval/bin" "$withval"
2310 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
2311 apr_config="$lookdir/$apr_temp_apr_config_file"
2319 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2320 apr_config="$withval"
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; }; }
2332 if test -n "1" && test "1" = "1"; then
2333 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2335 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
2336 apr_config="$apr_temp_apr_config_file"
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"
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
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; }; }
2363 apr_temp_apr_config_file="apr-config"
2366 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
2369 if test -n ""./apr""; then
2370 apr_config=""./apr"/$apr_temp_apr_config_file"
2372 apr_config=""$srcdir/apr"/$apr_temp_apr_config_file"
2379 { echo "$as_me:$LINENO: result: $apr_found" >&5
2380 echo "${ECHO_T}$apr_found" >&6; }
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; }; }
2389 if test "$apr_found" = "reconfig"; then
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.
2399 # config.status only pays attention to the cache file if you give it
2400 # the --recheck option to rerun configure.
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
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.
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
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;} ;;
2423 _ | IFS | as_nl) ;; #(
2424 *) $as_unset $ac_var ;;
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 \).
2436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2439 # `set' quotes correctly as required by POSIX, so do not add quotes.
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
2460 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2461 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2466 echo "configuring package in apr now"
2468 apr_config_subdirs="apr"
2469 test -d apr || $mkdir_p apr
2470 ac_abs_srcdir=`(cd $srcdir/apr && pwd)`
2473 # A "../" for each directory in /$config_subdirs.
2474 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2476 # Make the cache file pathname absolute for the subdirs
2477 # required to correctly handle subdirs that might actually
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" ;;
2489 for apr_configure_arg in $ac_configure_args
2491 case "$apr_configure_arg" in
2492 --enable-layout=*|\'--enable-layout=*)
2495 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
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"
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
2505 echo "apr configured properly"
2507 echo "configure failed for apr"
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;}
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2526 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2527 echo "$as_me: creating cache $cache_file" >&6;}
2532 SERF_BUILD_SRCLIB_DIRS="apr $SERF_BUILD_SRCLIB_DIRS"
2533 SERF_CLEAN_SRCLIB_DIRS="$SERF_CLEAN_SRCLIB_DIRS apr"
2537 if test -z "$CC"; then
2538 test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
2539 CC="`$apr_config --cc`"
2543 if test -z "$CPP"; then
2544 test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
2545 CPP="`$apr_config --cpp`"
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`"
2555 if test "x$CFLAGS" = "x"; then
2556 test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
2557 CFLAGS="`$apr_config --cflags`"
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"
2568 if test $apr_addto_duplicate = "0"; then
2569 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
2576 if test "x$CPPFLAGS" = "x"; then
2577 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
2578 CPPFLAGS="`$apr_config --cppflags`"
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"
2589 if test $apr_addto_duplicate = "0"; then
2590 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
2591 CPPFLAGS="$CPPFLAGS $i"
2597 if test "x$LDFLAGS" = "x"; then
2598 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"`$apr_config --ldflags`\""
2599 LDFLAGS="`$apr_config --ldflags`"
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"
2610 if test $apr_addto_duplicate = "0"; then
2611 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
2612 LDFLAGS="$LDFLAGS $i"
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"
2629 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
2634 if test "$target_os" = "os2-emx"; then
2635 # Scripts don't pass test -x on OS/2
2641 acceptable_majors="0 1"
2643 apu_temp_acceptable_apu_config=""
2644 for apu_temp_major in $acceptable_majors
2646 case $apu_temp_major in
2648 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
2651 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
2656 { echo "$as_me:$LINENO: checking for APR-util" >&5
2657 echo $ECHO_N "checking for APR-util... $ECHO_C" >&6; }
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; }; }
2668 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
2670 for lookdir in "$withval/bin" "$withval"
2672 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
2673 apu_config="$lookdir/$apu_temp_apu_config_file"
2681 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2682 apu_config="$withval"
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; }; }
2694 if test -n "1" && test "1" = "1"; then
2695 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
2697 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
2698 apu_config="$apu_temp_apu_config_file"
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"
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
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; }; }
2725 apu_temp_apu_config_file="apu-config"
2728 apu_temp_apu_config_file="apu-$apu_bundled_major-config"
2731 if test -n ""./apr-util""; then
2732 apu_config=""./apr-util"/$apu_temp_apu_config_file"
2734 apu_config=""$srcdir/apr-util"/$apu_temp_apu_config_file"
2741 { echo "$as_me:$LINENO: result: $apu_found" >&5
2742 echo "${ECHO_T}$apu_found" >&6; }
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; }; }
2751 # Catch some misconfigurations:
2752 case ${apr_found}.${apu_found} in
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; }; }
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; }; }
2765 if test "$apu_found" = "reconfig"; then
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.
2775 # config.status only pays attention to the cache file if you give it
2776 # the --recheck option to rerun configure.
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
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.
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
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;} ;;
2799 _ | IFS | as_nl) ;; #(
2800 *) $as_unset $ac_var ;;
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 \).
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2815 # `set' quotes correctly as required by POSIX, so do not add quotes.
2816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
2836 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2837 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2842 echo "configuring package in apr-util now"
2844 apr_config_subdirs="apr-util"
2845 test -d apr-util || $mkdir_p apr-util
2846 ac_abs_srcdir=`(cd $srcdir/apr-util && pwd)`
2849 # A "../" for each directory in /$config_subdirs.
2850 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2852 # Make the cache file pathname absolute for the subdirs
2853 # required to correctly handle subdirs that might actually
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" ;;
2865 for apr_configure_arg in $ac_configure_args
2867 case "$apr_configure_arg" in
2868 --enable-layout=*|\'--enable-layout=*)
2871 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
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"
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
2881 echo "apr-util configured properly"
2883 echo "configure failed for apr-util"
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;}
2897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2898 *) . "./$cache_file";;
2902 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2903 echo "$as_me: creating cache $cache_file" >&6;}
2908 SERF_BUILD_SRCLIB_DIRS="$SERF_BUILD_SRCLIB_DIRS apr-util"
2909 SERF_CLEAN_SRCLIB_DIRS="apr-util $SERF_CLEAN_SRCLIB_DIRS"
2913 if test "x$LDFLAGS" = "x"; then
2914 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"`$apu_config --ldflags`\""
2915 LDFLAGS="`$apu_config --ldflags`"
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"
2926 if test $apr_addto_duplicate = "0"; then
2927 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
2928 LDFLAGS="$LDFLAGS $i"
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"
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
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
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
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3025 if test "x$ac_ct_CC" = x; then
3028 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3074 if test -n "$CC"; then
3075 { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3078 { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
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
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131 if test -n "$CC"; then
3132 { echo "$as_me:$LINENO: result: $CC" >&5
3133 echo "${ECHO_T}$CC" >&6; }
3135 { echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6; }
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog in cl.exe
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
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3173 if test -n "$CC"; then
3174 { echo "$as_me:$LINENO: result: $CC" >&5
3175 echo "${ECHO_T}$CC" >&6; }
3177 { echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6; }
3182 test -n "$CC" && break
3185 if test -z "$CC"; then
3187 for ac_prog in cl.exe
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
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 test -n "$ac_ct_CC" && break
3229 if test "x$ac_ct_CC" = x; then
3232 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }; }
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"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compiler --version >&5") 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268 { (ac_try="$ac_compiler -v >&5"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compiler -v >&5") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3278 { (ac_try="$ac_compiler -V >&5"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compiler -V >&5") 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
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
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[^ ]*//'`
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'
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.
3322 for ac_file in $ac_files
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 if { (ac_try="$ac_link_default"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_link_default") 2>&5
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
3346 for ac_file in $ac_files ''
3348 test -f "$ac_file" || continue
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3353 # We found the default executable, but exeext='' is most
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
3371 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }; }
3390 ac_exeext=$ac_cv_exeext
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;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_try") 2>&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3411 if test "$cross_compiling" = maybe; then
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; }; }
3424 { echo "$as_me:$LINENO: result: yes" >&5
3425 echo "${ECHO_T}yes" >&6; }
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; }
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"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_link") 2>&5
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
3452 for ac_file in conftest.exe conftest conftest.*; do
3453 test -f "$ac_file" || continue
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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; }
3473 rm -f conftest.$ac_ext
3474 EXEEXT=$ac_cv_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
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 rm -f conftest.o conftest.obj
3497 if { (ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compile") 2>&5
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;
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529 echo "${ECHO_T}$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_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
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
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
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
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
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
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
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_compile") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
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
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_c_werror_flag=$ac_save_c_werror_flag
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
3735 if test "$GCC" = yes; then
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
3746 ac_cv_prog_cc_c89=no
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.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)
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3772 s = g (p, va_arg (v,int));
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];
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787 inside strings and character constants. */
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
3800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 CC="$ac_save_CC $ac_arg"
3809 rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compile") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
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
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 rm -f conftest.$ac_ext
3842 case "x$ac_cv_prog_cc_c89" in
3844 { echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6; } ;;
3847 { echo "$as_me:$LINENO: result: unsupported" >&5
3848 echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
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
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
3873 if test -z "$CPP"; then
3874 if test "${ac_cv_prog_CPP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 # Double quotes because CPP needs to be expanded
3878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3881 for ac_c_preproc_warn_flag in '' yes
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
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # include <limits.h>
3898 # include <assert.h>
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
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
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 # Broken: fails on valid input.
3927 rm -f conftest.err conftest.$ac_ext
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3939 if { (ac_try="$ac_cpp conftest.$ac_ext"
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3947 grep -v '^ *+' conftest.er1 >conftest.err
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
3955 # Broken: success on invalid input.
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 # Passes both tests.
3966 rm -f conftest.err conftest.$ac_ext
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
3983 { echo "$as_me:$LINENO: result: $CPP" >&5
3984 echo "${ECHO_T}$CPP" >&6; }
3986 for ac_c_preproc_warn_flag in '' yes
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
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4001 # include <limits.h>
4003 # include <assert.h>
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
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
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 # Broken: fails on valid input.
4032 rm -f conftest.err conftest.$ac_ext
4034 # OK, works on sane cases. Now check whether nonexistent headers
4035 # can be detected and how.
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 #include <ac_nonexistent.h>
4044 if { (ac_try="$ac_cpp conftest.$ac_ext"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
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
4060 # Broken: success on invalid input.
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 # Passes both tests.
4071 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 # Account for people who put trailing slashes in PATH elements.
4118 ./ | .// | /cC/* | \
4119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4120 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
4138 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4151 if test "${ac_cv_path_install+set}" = set; then
4152 INSTALL=$ac_cv_path_install
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
4161 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4162 echo "${ECHO_T}$INSTALL" >&6; }
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}'
4168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
4179 echo $ac_n "Configuring Serf...${nl}"
4181 abs_srcdir=`(cd $srcdir && pwd)`
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`"
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; }; }
4204 openssl_prefix=$withval
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; }; }
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""
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"
4226 if test $apr_addto_duplicate = "0"; then
4227 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
4228 CPPFLAGS="$CPPFLAGS $i"
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""
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"
4247 if test $apr_addto_duplicate = "0"; then
4248 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4249 LDFLAGS="$LDFLAGS $i"
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""
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"
4268 if test $apr_addto_duplicate = "0"; then
4269 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4270 LDFLAGS="$LDFLAGS $i"
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
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
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
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
4308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 $ac_path_GREP_found && break 3
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; }; }
4351 ac_cv_path_GREP=$GREP
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"
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
4366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4367 then ac_cv_path_EGREP="$GREP -E"
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
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
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
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 $ac_path_EGREP_found && break 3
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; }; }
4433 ac_cv_path_EGREP=$EGREP
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"
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
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
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
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 ac_cv_header_stdc=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "memchr" >/dev/null 2>&1; then
4510 ac_cv_header_stdc=no
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
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "free" >/dev/null 2>&1; then
4531 ac_cv_header_stdc=no
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
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4550 #if ((' ' & 0x0FF) == 0x020)
4551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566 for (i = 0; i < 256; i++)
4567 if (XOR (islower (i), ISLOWER (i))
4568 || toupper (i) != TOUPPER (i))
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_link") 2>&5
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;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
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
4600 ac_cv_header_stdc=no
4602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
4612 cat >>confdefs.h <<\_ACEOF
4613 #define STDC_HEADERS 1
4618 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4645 #include <$ac_header>
4647 rm -f conftest.$ac_objext
4648 if { (ac_try="$ac_compile"
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_compile") 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
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"
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 eval "$as_ac_Header=no"
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
4693 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
4694 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
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
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>
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_compile") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
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
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_header_compiler=no
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; }
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
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #include <openssl/opensslv.h>
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
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
4764 ac_header_preproc=yes
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 ac_header_preproc=no
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; }
4776 # So? What about this header?
4777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
4806 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
4808 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
4809 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
4812 if test $ac_cv_header_openssl_opensslv_h = yes; then
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; }; }
4822 libs="`$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"
4824 if test "x$SERF_LIBS" = "x"; then
4825 test "x$silent" != "xyes" && echo " setting SERF_LIBS to \"$libs\""
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"
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"
4846 ac_config_files="$ac_config_files Makefile"
4848 ac_config_commands="$ac_config_commands mkdir-vpath"
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.
4858 # config.status only pays attention to the cache file if you give it
4859 # the --recheck option to rerun configure.
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
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.
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
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;} ;;
4882 _ | IFS | as_nl) ;; #(
4883 *) $as_unset $ac_var ;;
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 \).
4895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4898 # `set' quotes correctly as required by POSIX, so do not add quotes.
4899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
4919 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4920 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4926 # Let make expand exec_prefix.
4927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4929 # Transform confdefs.h into DEFS.
4930 # Protect against shell expansion while executing Makefile rules.
4931 # Protect against Makefile macro expansion.
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.
4939 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4941 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4945 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4958 DEFS=`sed -n "$ac_script" confdefs.h`
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'
4974 LTLIBOBJS=$ac_ltlibobjs
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
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.
4993 SHELL=\${CONFIG_SHELL-$SHELL}
4996 cat >>$CONFIG_STATUS <<\_ACEOF
4997 ## --------------------- ##
4998 ## M4sh Initialization. ##
4999 ## --------------------- ##
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
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
5011 case `(set -o) 2>/dev/null` in
5012 *posix*) set -o posix ;;
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
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
5033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5041 # Support unset when possible.
5042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
5058 # Find who we are. Look in the path if we contain no directory separator.
5060 *[\\/]* ) as_myself=$0 ;;
5061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
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
5096 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5097 eval $as_var=C; export $as_var
5099 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5103 # Required to use basename.
5104 if expr a : '\(a\)' >/dev/null 2>&1 &&
5105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5112 as_basename=basename
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 ||
5124 sed '/^.*\/\([^/][^/]*\)\/*$/{
5145 test "x$as_lineno_1" != "x$as_lineno_2" &&
5146 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
5169 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
5181 # Exit status is that of the last command.
5186 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5192 ECHO_C= ECHO_N= ECHO_T=
5195 case `echo 'x\c'` in
5196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5203 if expr a : '\(a\)' >/dev/null 2>&1 &&
5204 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5210 rm -f conf$$ conf$$.exe conf$$.file
5211 if test -d conf$$.dir; then
5212 rm -f conf$$.dir/conf$$.file
5218 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
5226 elif ln conf$$.file conf$$ 2>/dev/null; then
5231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5232 rmdir conf$$.dir 2>/dev/null
5234 if mkdir -p . 2>/dev/null; then
5237 test -d ./-p && rmdir ./-p
5241 if test -x / >/dev/null 2>&1; then
5244 if ls -dL / >/dev/null 2>&1; then
5251 if test -d "$1"; then
5257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5258 ???[sx]*):;;*)false;;esac;fi
5262 as_executable_p=$as_test_x
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'"
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'"
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.
5277 This file was extended by $as_me, which was
5278 generated by GNU Autoconf 2.61. Invocation command line was
5280 CONFIG_FILES = $CONFIG_FILES
5281 CONFIG_HEADERS = $CONFIG_HEADERS
5282 CONFIG_LINKS = $CONFIG_LINKS
5283 CONFIG_COMMANDS = $CONFIG_COMMANDS
5286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
5298 cat >>$CONFIG_STATUS <<\_ACEOF
5300 \`$as_me' instantiates files from templates according to the
5301 current configuration.
5303 Usage: $0 [OPTIONS] [FILE]...
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
5313 Configuration files:
5316 Configuration commands:
5319 Report bugs to <bug-autoconf@gnu.org>."
5322 cat >>$CONFIG_STATUS <<_ACEOF
5325 configured by $0, generated by GNU Autoconf 2.61,
5326 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
5345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5346 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5357 # Handling of the options.
5358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5361 echo "$ac_cs_version"; exit ;;
5362 --debug | --debu | --deb | --de | --d | -d )
5364 --file | --fil | --fi | --f )
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)
5375 -*) { echo "$as_me: error: unrecognized option: $1
5376 Try \`$0 --help' for more information." >&2
5377 { (exit 1); exit 1; }; } ;;
5379 *) ac_config_targets="$ac_config_targets $1"
5380 ac_need_defaults=false ;;
5386 ac_configure_extra_args=
5388 if $ac_cs_silent; then
5390 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
5399 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5403 cat >>$CONFIG_STATUS <<\_ACEOF
5407 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5408 ## Running $as_me. ##
5414 cat >>$CONFIG_STATUS <<_ACEOF
5417 cat >>$CONFIG_STATUS <<\_ACEOF
5419 # Handling of arguments.
5420 for ac_config_target in $ac_config_targets
5422 case $ac_config_target in
5423 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5424 "mkdir-vpath") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdir-vpath" ;;
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; }; };;
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
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'.
5451 trap 'exit_status=$?
5452 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5454 trap '{ (exit 1); exit 1; }' 1 2 13 15
5456 # Create a (secure) tmp directory for tmp files.
5459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5460 test -n "$tmp" && test -d "$tmp"
5463 tmp=./conf$$-$RANDOM
5464 (umask 077 && mkdir "$tmp")
5467 echo "$me: cannot create a temporary directory in ." >&2
5468 { (exit 1); exit 1; }
5472 # Set up the sed scripts for CONFIG_FILES section.
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
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
5516 ECHO_C!$ECHO_C$ac_delim
5517 ECHO_N!$ECHO_N$ac_delim
5518 ECHO_T!$ECHO_T$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
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
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
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
5561 EGREP!$EGREP$ac_delim
5562 SERF_LIBS!$SERF_LIBS$ac_delim
5563 LIBOBJS!$LIBOBJS$ac_delim
5564 LTLIBOBJS!$LTLIBOBJS$ac_delim
5567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
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; }; }
5574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
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
5589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5590 s/^/s,@/; s/!/@,|#_!!_#|/
5593 s/'"$ac_delim"'$/,g/; t
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
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[ ]*=/{
5614 s/^\([^=]*=[ ]*\):*/\1/
5620 cat >>$CONFIG_STATUS <<\_ACEOF
5621 fi # test -n "$CONFIG_FILES"
5624 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
5627 :[FHLC]) ac_mode=$ac_tag; continue;;
5629 case $ac_mode$ac_tag in
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;;
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 `:'.
5659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
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; }; };;
5665 ac_file_inputs="$ac_file_inputs $ac_f"
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;}
5680 *:-:* | *:-) cat >"$tmp/stdin";;
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 ||
5691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5710 -*) as_dir=./$as_dir;;
5712 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5716 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5717 *) as_qdir=$as_dir;;
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 ||
5726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5743 test -d "$as_dir" && break
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; }; }; }
5752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
5768 .) # We are building in place.
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 ;;
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 ;;
5781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
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=
5801 case `sed -n '/datarootdir/ {
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;}
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' ;;
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
5834 cat >>$CONFIG_STATUS <<\_ACEOF
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
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;}
5860 -) cat "$tmp/out"; rm -f "$tmp/out";;
5861 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5866 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
5867 echo "$as_me: executing $ac_file commands" >&6;}
5872 case $ac_file$ac_mode in
5873 "mkdir-vpath":C) make mkdir-vpath ;;
5879 { (exit 0); exit 0; }
5881 chmod +x $CONFIG_STATUS
5882 ac_clean_files=$ac_clean_files_save
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
5895 ac_config_status_args=
5896 test "$silent" = yes &&
5897 ac_config_status_args="$ac_config_status_args --quiet"
5899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }