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