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