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