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