Debian Codegraph @

configure

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