could not find docbook.dsl
[privoxy.git] / configure
1 #! /bin/sh
2
3 # From configure.in Revision: 1.14 
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13 
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16   --enable-mingw32        Use mingw32 for a Windows GUI"
17 ac_help="$ac_help
18   --disable-pthread       Don't use POSIX threads (pthreads)"
19 ac_help="$ac_help
20   --disable-toggle        Don't support temporary disable"
21 ac_help="$ac_help
22   --disable-gzip          Block gzip'ed transfer of documents.  Note that
23                           this is required if you want content modification
24                           even with gzip-supporting servers."
25 ac_help="$ac_help
26   --disable-force         Don't allow blockfile to be bypassed"
27 ac_help="$ac_help
28   --disable-fast-redirects Don't support fast redirects"
29 ac_help="$ac_help
30   --disable-killpopup     Never block popups"
31 ac_help="$ac_help
32   --disable-stats         Don't keep statistics"
33 ac_help="$ac_help
34   --disable-ie-images     Don't auto-detect whether a request from MS Internet
35                           Explorer is for an image or HTML."
36 ac_help="$ac_help
37   --disable-image-blocking  Don't try to figure out whether a request is 
38                             for an image or HTML - assume HTML."
39 ac_help="$ac_help
40   --disable-acl-files     Prevents the use of ACL files to control access to
41                           the proxy by IP address."
42 ac_help="$ac_help
43   --disable-trust-files   Prevents the use of trust files."
44 ac_help="$ac_help
45   --disable-jar-files     Prevents the use of jar files to capture cookies."
46 ac_help="$ac_help
47   --enable-regex-matching=pcre     Use perl-compatible regex for actionsfile
48                                    pattern matching (default)
49   --enable-regex-matching=gnu      Use gnu style regex for actionsfile pattern
50                                    matching (-> bigger binary)
51   --disable-regex-matching         Don't use regex matching, compare URL
52                                    prefix instead (won't shrink birary)"
53 ac_help="$ac_help
54   --disable-dynamic-pcre           Use the built-in, static pcre, even if
55                                    libpcre is available"
56 ac_help="$ac_help
57   --disable-dynamic-pcrs           Use the built-in, static pcrs, even if
58                                    libpcrs is available"
59
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
63 build=NONE
64 cache_file=./config.cache
65 exec_prefix=NONE
66 host=NONE
67 no_create=
68 nonopt=NONE
69 no_recursion=
70 prefix=NONE
71 program_prefix=NONE
72 program_suffix=NONE
73 program_transform_name=s,x,x,
74 silent=
75 site=
76 srcdir=
77 target=NONE
78 verbose=
79 x_includes=NONE
80 x_libraries=NONE
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
93
94 # Initialize some other variables.
95 subdirs=
96 MFLAGS= MAKEFLAGS=
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
99 ac_max_here_lines=12
100
101 ac_prev=
102 for ac_option
103 do
104
105   # If the previous option needs an argument, assign it.
106   if test -n "$ac_prev"; then
107     eval "$ac_prev=\$ac_option"
108     ac_prev=
109     continue
110   fi
111
112   case "$ac_option" in
113   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114   *) ac_optarg= ;;
115   esac
116
117   # Accept the important Cygnus configure options, so we can diagnose typos.
118
119   case "$ac_option" in
120
121   -bindir | --bindir | --bindi | --bind | --bin | --bi)
122     ac_prev=bindir ;;
123   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124     bindir="$ac_optarg" ;;
125
126   -build | --build | --buil | --bui | --bu)
127     ac_prev=build ;;
128   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129     build="$ac_optarg" ;;
130
131   -cache-file | --cache-file | --cache-fil | --cache-fi \
132   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133     ac_prev=cache_file ;;
134   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136     cache_file="$ac_optarg" ;;
137
138   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
139     ac_prev=datadir ;;
140   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
141   | --da=*)
142     datadir="$ac_optarg" ;;
143
144   -disable-* | --disable-*)
145     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146     # Reject names that are not valid shell variable names.
147     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149     fi
150     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151     eval "enable_${ac_feature}=no" ;;
152
153   -enable-* | --enable-*)
154     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155     # Reject names that are not valid shell variable names.
156     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158     fi
159     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160     case "$ac_option" in
161       *=*) ;;
162       *) ac_optarg=yes ;;
163     esac
164     eval "enable_${ac_feature}='$ac_optarg'" ;;
165
166   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168   | --exec | --exe | --ex)
169     ac_prev=exec_prefix ;;
170   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172   | --exec=* | --exe=* | --ex=*)
173     exec_prefix="$ac_optarg" ;;
174
175   -gas | --gas | --ga | --g)
176     # Obsolete; use --with-gas.
177     with_gas=yes ;;
178
179   -help | --help | --hel | --he)
180     # Omit some internal or obsolete options to make the list less imposing.
181     # This message is too long to be a string in the A/UX 3.1 sh.
182     cat << EOF
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
185 Configuration:
186   --cache-file=FILE       cache test results in FILE
187   --help                  print this message
188   --no-create             do not create output files
189   --quiet, --silent       do not print \`checking...' messages
190   --version               print the version of autoconf that created configure
191 Directory and file names:
192   --prefix=PREFIX         install architecture-independent files in PREFIX
193                           [$ac_default_prefix]
194   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
195                           [same as prefix]
196   --bindir=DIR            user executables in DIR [EPREFIX/bin]
197   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
198   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
199   --datadir=DIR           read-only architecture-independent data in DIR
200                           [PREFIX/share]
201   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
202   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
203                           [PREFIX/com]
204   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
205   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
206   --includedir=DIR        C header files in DIR [PREFIX/include]
207   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
208   --infodir=DIR           info documentation in DIR [PREFIX/info]
209   --mandir=DIR            man documentation in DIR [PREFIX/man]
210   --srcdir=DIR            find the sources in DIR [configure dir or ..]
211   --program-prefix=PREFIX prepend PREFIX to installed program names
212   --program-suffix=SUFFIX append SUFFIX to installed program names
213   --program-transform-name=PROGRAM
214                           run sed PROGRAM on installed program names
215 EOF
216     cat << EOF
217 Host type:
218   --build=BUILD           configure for building on BUILD [BUILD=HOST]
219   --host=HOST             configure for HOST [guessed]
220   --target=TARGET         configure for TARGET [TARGET=HOST]
221 Features and packages:
222   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
223   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
224   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
225   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
226   --x-includes=DIR        X include files are in DIR
227   --x-libraries=DIR       X library files are in DIR
228 EOF
229     if test -n "$ac_help"; then
230       echo "--enable and --with options recognized:$ac_help"
231     fi
232     exit 0 ;;
233
234   -host | --host | --hos | --ho)
235     ac_prev=host ;;
236   -host=* | --host=* | --hos=* | --ho=*)
237     host="$ac_optarg" ;;
238
239   -includedir | --includedir | --includedi | --included | --include \
240   | --includ | --inclu | --incl | --inc)
241     ac_prev=includedir ;;
242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243   | --includ=* | --inclu=* | --incl=* | --inc=*)
244     includedir="$ac_optarg" ;;
245
246   -infodir | --infodir | --infodi | --infod | --info | --inf)
247     ac_prev=infodir ;;
248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249     infodir="$ac_optarg" ;;
250
251   -libdir | --libdir | --libdi | --libd)
252     ac_prev=libdir ;;
253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
254     libdir="$ac_optarg" ;;
255
256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257   | --libexe | --libex | --libe)
258     ac_prev=libexecdir ;;
259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260   | --libexe=* | --libex=* | --libe=*)
261     libexecdir="$ac_optarg" ;;
262
263   -localstatedir | --localstatedir | --localstatedi | --localstated \
264   | --localstate | --localstat | --localsta | --localst \
265   | --locals | --local | --loca | --loc | --lo)
266     ac_prev=localstatedir ;;
267   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270     localstatedir="$ac_optarg" ;;
271
272   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
273     ac_prev=mandir ;;
274   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275     mandir="$ac_optarg" ;;
276
277   -nfp | --nfp | --nf)
278     # Obsolete; use --without-fp.
279     with_fp=no ;;
280
281   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282   | --no-cr | --no-c)
283     no_create=yes ;;
284
285   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287     no_recursion=yes ;;
288
289   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291   | --oldin | --oldi | --old | --ol | --o)
292     ac_prev=oldincludedir ;;
293   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296     oldincludedir="$ac_optarg" ;;
297
298   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
299     ac_prev=prefix ;;
300   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301     prefix="$ac_optarg" ;;
302
303   -program-prefix | --program-prefix | --program-prefi | --program-pref \
304   | --program-pre | --program-pr | --program-p)
305     ac_prev=program_prefix ;;
306   -program-prefix=* | --program-prefix=* | --program-prefi=* \
307   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308     program_prefix="$ac_optarg" ;;
309
310   -program-suffix | --program-suffix | --program-suffi | --program-suff \
311   | --program-suf | --program-su | --program-s)
312     ac_prev=program_suffix ;;
313   -program-suffix=* | --program-suffix=* | --program-suffi=* \
314   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315     program_suffix="$ac_optarg" ;;
316
317   -program-transform-name | --program-transform-name \
318   | --program-transform-nam | --program-transform-na \
319   | --program-transform-n | --program-transform- \
320   | --program-transform | --program-transfor \
321   | --program-transfo | --program-transf \
322   | --program-trans | --program-tran \
323   | --progr-tra | --program-tr | --program-t)
324     ac_prev=program_transform_name ;;
325   -program-transform-name=* | --program-transform-name=* \
326   | --program-transform-nam=* | --program-transform-na=* \
327   | --program-transform-n=* | --program-transform-=* \
328   | --program-transform=* | --program-transfor=* \
329   | --program-transfo=* | --program-transf=* \
330   | --program-trans=* | --program-tran=* \
331   | --progr-tra=* | --program-tr=* | --program-t=*)
332     program_transform_name="$ac_optarg" ;;
333
334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335   | -silent | --silent | --silen | --sile | --sil)
336     silent=yes ;;
337
338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
339     ac_prev=sbindir ;;
340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
341   | --sbi=* | --sb=*)
342     sbindir="$ac_optarg" ;;
343
344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346   | --sharedst | --shareds | --shared | --share | --shar \
347   | --sha | --sh)
348     ac_prev=sharedstatedir ;;
349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
352   | --sha=* | --sh=*)
353     sharedstatedir="$ac_optarg" ;;
354
355   -site | --site | --sit)
356     ac_prev=site ;;
357   -site=* | --site=* | --sit=*)
358     site="$ac_optarg" ;;
359
360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
361     ac_prev=srcdir ;;
362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363     srcdir="$ac_optarg" ;;
364
365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366   | --syscon | --sysco | --sysc | --sys | --sy)
367     ac_prev=sysconfdir ;;
368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370     sysconfdir="$ac_optarg" ;;
371
372   -target | --target | --targe | --targ | --tar | --ta | --t)
373     ac_prev=target ;;
374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375     target="$ac_optarg" ;;
376
377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
378     verbose=yes ;;
379
380   -version | --version | --versio | --versi | --vers)
381     echo "configure generated by autoconf version 2.13"
382     exit 0 ;;
383
384   -with-* | --with-*)
385     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386     # Reject names that are not valid shell variable names.
387     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389     fi
390     ac_package=`echo $ac_package| sed 's/-/_/g'`
391     case "$ac_option" in
392       *=*) ;;
393       *) ac_optarg=yes ;;
394     esac
395     eval "with_${ac_package}='$ac_optarg'" ;;
396
397   -without-* | --without-*)
398     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399     # Reject names that are not valid shell variable names.
400     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402     fi
403     ac_package=`echo $ac_package| sed 's/-/_/g'`
404     eval "with_${ac_package}=no" ;;
405
406   --x)
407     # Obsolete; use --with-x.
408     with_x=yes ;;
409
410   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411   | --x-incl | --x-inc | --x-in | --x-i)
412     ac_prev=x_includes ;;
413   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415     x_includes="$ac_optarg" ;;
416
417   -x-libraries | --x-libraries | --x-librarie | --x-librari \
418   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419     ac_prev=x_libraries ;;
420   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422     x_libraries="$ac_optarg" ;;
423
424   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425     ;;
426
427   *)
428     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429       echo "configure: warning: $ac_option: invalid host type" 1>&2
430     fi
431     if test "x$nonopt" != xNONE; then
432       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433     fi
434     nonopt="$ac_option"
435     ;;
436
437   esac
438 done
439
440 if test -n "$ac_prev"; then
441   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 fi
443
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445
446 # File descriptor usage:
447 # 0 standard input
448 # 1 file creation
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
455   exec 6>/dev/null
456 else
457   exec 6>&1
458 fi
459 exec 5>./config.log
460
461 echo "\
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
464 " 1>&5
465
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
468 ac_configure_args=
469 for ac_arg
470 do
471   case "$ac_arg" in
472   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473   | --no-cr | --no-c) ;;
474   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479   esac
480 done
481
482 # NLS nuisances.
483 # Only set these to C if already set.  These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
491
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 echo > confdefs.h
496
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=jcc.c
500
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503   ac_srcdir_defaulted=yes
504   # Try the directory containing this script, then its parent.
505   ac_prog=$0
506   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
508   srcdir=$ac_confdir
509   if test ! -r $srcdir/$ac_unique_file; then
510     srcdir=..
511   fi
512 else
513   ac_srcdir_defaulted=no
514 fi
515 if test ! -r $srcdir/$ac_unique_file; then
516   if test "$ac_srcdir_defaulted" = yes; then
517     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518   else
519     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520   fi
521 fi
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526   if test "x$prefix" != xNONE; then
527     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
528   else
529     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530   fi
531 fi
532 for ac_site_file in $CONFIG_SITE; do
533   if test -r "$ac_site_file"; then
534     echo "loading site script $ac_site_file"
535     . "$ac_site_file"
536   fi
537 done
538
539 if test -r "$cache_file"; then
540   echo "loading cache $cache_file"
541   . $cache_file
542 else
543   echo "creating cache $cache_file"
544   > $cache_file
545 fi
546
547 ac_ext=c
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
553
554 ac_exeext=
555 ac_objext=o
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559     ac_n= ac_c='
560 ' ac_t='        '
561   else
562     ac_n=-n ac_c= ac_t=
563   fi
564 else
565   ac_n= ac_c='\c' ac_t=
566 fi
567
568
569
570
571
572
573 VERSION_MAJOR=2
574 VERSION_MINOR=9
575 VERSION_POINT=8
576 CODE_STATUS="\"alpha\""
577
578
579
580
581
582
583
584 cat >> confdefs.h <<EOF
585 #define VERSION_MAJOR ${VERSION_MAJOR}
586 EOF
587
588 cat >> confdefs.h <<EOF
589 #define VERSION_MINOR ${VERSION_MINOR}
590 EOF
591
592 cat >> confdefs.h <<EOF
593 #define VERSION_POINT ${VERSION_POINT}
594 EOF
595
596 cat >> confdefs.h <<EOF
597 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
598 EOF
599
600 cat >> confdefs.h <<EOF
601 #define CODE_STATUS ${CODE_STATUS}
602 EOF
603
604
605
606 # Extract the first word of "gcc", so it can be a program name with args.
607 set dummy gcc; ac_word=$2
608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
609 echo "configure:610: checking for $ac_word" >&5
610 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
611   echo $ac_n "(cached) $ac_c" 1>&6
612 else
613   if test -n "$CC"; then
614   ac_cv_prog_CC="$CC" # Let the user override the test.
615 else
616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
617   ac_dummy="$PATH"
618   for ac_dir in $ac_dummy; do
619     test -z "$ac_dir" && ac_dir=.
620     if test -f $ac_dir/$ac_word; then
621       ac_cv_prog_CC="gcc"
622       break
623     fi
624   done
625   IFS="$ac_save_ifs"
626 fi
627 fi
628 CC="$ac_cv_prog_CC"
629 if test -n "$CC"; then
630   echo "$ac_t""$CC" 1>&6
631 else
632   echo "$ac_t""no" 1>&6
633 fi
634
635 if test -z "$CC"; then
636   # Extract the first word of "cc", so it can be a program name with args.
637 set dummy cc; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641   echo $ac_n "(cached) $ac_c" 1>&6
642 else
643   if test -n "$CC"; then
644   ac_cv_prog_CC="$CC" # Let the user override the test.
645 else
646   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
647   ac_prog_rejected=no
648   ac_dummy="$PATH"
649   for ac_dir in $ac_dummy; do
650     test -z "$ac_dir" && ac_dir=.
651     if test -f $ac_dir/$ac_word; then
652       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
653         ac_prog_rejected=yes
654         continue
655       fi
656       ac_cv_prog_CC="cc"
657       break
658     fi
659   done
660   IFS="$ac_save_ifs"
661 if test $ac_prog_rejected = yes; then
662   # We found a bogon in the path, so make sure we never use it.
663   set dummy $ac_cv_prog_CC
664   shift
665   if test $# -gt 0; then
666     # We chose a different compiler from the bogus one.
667     # However, it has the same basename, so the bogon will be chosen
668     # first if we set CC to just the basename; use the full file name.
669     shift
670     set dummy "$ac_dir/$ac_word" "$@"
671     shift
672     ac_cv_prog_CC="$@"
673   fi
674 fi
675 fi
676 fi
677 CC="$ac_cv_prog_CC"
678 if test -n "$CC"; then
679   echo "$ac_t""$CC" 1>&6
680 else
681   echo "$ac_t""no" 1>&6
682 fi
683
684   if test -z "$CC"; then
685     case "`uname -s`" in
686     *win32* | *WIN32*)
687       # Extract the first word of "cl", so it can be a program name with args.
688 set dummy cl; ac_word=$2
689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
690 echo "configure:691: checking for $ac_word" >&5
691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
692   echo $ac_n "(cached) $ac_c" 1>&6
693 else
694   if test -n "$CC"; then
695   ac_cv_prog_CC="$CC" # Let the user override the test.
696 else
697   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
698   ac_dummy="$PATH"
699   for ac_dir in $ac_dummy; do
700     test -z "$ac_dir" && ac_dir=.
701     if test -f $ac_dir/$ac_word; then
702       ac_cv_prog_CC="cl"
703       break
704     fi
705   done
706   IFS="$ac_save_ifs"
707 fi
708 fi
709 CC="$ac_cv_prog_CC"
710 if test -n "$CC"; then
711   echo "$ac_t""$CC" 1>&6
712 else
713   echo "$ac_t""no" 1>&6
714 fi
715  ;;
716     esac
717   fi
718   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
719 fi
720
721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
722 echo "configure:723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
723
724 ac_ext=c
725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
726 ac_cpp='$CPP $CPPFLAGS'
727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
729 cross_compiling=$ac_cv_prog_cc_cross
730
731 cat > conftest.$ac_ext << EOF
732
733 #line 734 "configure"
734 #include "confdefs.h"
735
736 main(){return(0);}
737 EOF
738 if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
739   ac_cv_prog_cc_works=yes
740   # If we can't run a trivial program, we are probably using a cross compiler.
741   if (./conftest; exit) 2>/dev/null; then
742     ac_cv_prog_cc_cross=no
743   else
744     ac_cv_prog_cc_cross=yes
745   fi
746 else
747   echo "configure: failed program was:" >&5
748   cat conftest.$ac_ext >&5
749   ac_cv_prog_cc_works=no
750 fi
751 rm -fr conftest*
752 ac_ext=c
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
758
759 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
760 if test $ac_cv_prog_cc_works = no; then
761   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 fi
763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
764 echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
765 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
766 cross_compiling=$ac_cv_prog_cc_cross
767
768 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
769 echo "configure:770: checking whether we are using GNU C" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
771   echo $ac_n "(cached) $ac_c" 1>&6
772 else
773   cat > conftest.c <<EOF
774 #ifdef __GNUC__
775   yes;
776 #endif
777 EOF
778 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
779   ac_cv_prog_gcc=yes
780 else
781   ac_cv_prog_gcc=no
782 fi
783 fi
784
785 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786
787 if test $ac_cv_prog_gcc = yes; then
788   GCC=yes
789 else
790   GCC=
791 fi
792
793 ac_test_CFLAGS="${CFLAGS+set}"
794 ac_save_CFLAGS="$CFLAGS"
795 CFLAGS=
796 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
797 echo "configure:798: checking whether ${CC-cc} accepts -g" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   echo 'void f(){}' > conftest.c
802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
803   ac_cv_prog_cc_g=yes
804 else
805   ac_cv_prog_cc_g=no
806 fi
807 rm -f conftest*
808
809 fi
810
811 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
812 if test "$ac_test_CFLAGS" = set; then
813   CFLAGS="$ac_save_CFLAGS"
814 elif test $ac_cv_prog_cc_g = yes; then
815   if test "$GCC" = yes; then
816     CFLAGS="-g -O2"
817   else
818     CFLAGS="-g"
819   fi
820 else
821   if test "$GCC" = yes; then
822     CFLAGS="-O2"
823   else
824     CFLAGS=
825   fi
826 fi
827
828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
829 echo "configure:830: checking how to run the C preprocessor" >&5
830 # On Suns, sometimes $CPP names a directory.
831 if test -n "$CPP" && test -d "$CPP"; then
832   CPP=
833 fi
834 if test -z "$CPP"; then
835 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
836   echo $ac_n "(cached) $ac_c" 1>&6
837 else
838     # This must be in double quotes, not single quotes, because CPP may get
839   # substituted into the Makefile and "${CC-cc}" will confuse make.
840   CPP="${CC-cc} -E"
841   # On the NeXT, cc -E runs the code through the compiler's parser,
842   # not just through cpp.
843   cat > conftest.$ac_ext <<EOF
844 #line 845 "configure"
845 #include "confdefs.h"
846 #include <assert.h>
847 Syntax Error
848 EOF
849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
850 { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
852 if test -z "$ac_err"; then
853   :
854 else
855   echo "$ac_err" >&5
856   echo "configure: failed program was:" >&5
857   cat conftest.$ac_ext >&5
858   rm -rf conftest*
859   CPP="${CC-cc} -E -traditional-cpp"
860   cat > conftest.$ac_ext <<EOF
861 #line 862 "configure"
862 #include "confdefs.h"
863 #include <assert.h>
864 Syntax Error
865 EOF
866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
867 { (eval echo configure:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
869 if test -z "$ac_err"; then
870   :
871 else
872   echo "$ac_err" >&5
873   echo "configure: failed program was:" >&5
874   cat conftest.$ac_ext >&5
875   rm -rf conftest*
876   CPP="${CC-cc} -nologo -E"
877   cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 #include <assert.h>
881 Syntax Error
882 EOF
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
887   :
888 else
889   echo "$ac_err" >&5
890   echo "configure: failed program was:" >&5
891   cat conftest.$ac_ext >&5
892   rm -rf conftest*
893   CPP=/lib/cpp
894 fi
895 rm -f conftest*
896 fi
897 rm -f conftest*
898 fi
899 rm -f conftest*
900   ac_cv_prog_CPP="$CPP"
901 fi
902   CPP="$ac_cv_prog_CPP"
903 else
904   ac_cv_prog_CPP="$CPP"
905 fi
906 echo "$ac_t""$CPP" 1>&6
907
908
909
910
911 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
912 echo "configure:913: checking for mingw32 environment" >&5
913 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
914   echo $ac_n "(cached) $ac_c" 1>&6
915 else
916   cat > conftest.$ac_ext <<EOF
917 #line 918 "configure"
918 #include "confdefs.h"
919
920 int main() {
921 return __MINGW32__;
922 ; return 0; }
923 EOF
924 if { (eval echo configure:925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
925   rm -rf conftest*
926   ac_cv_mingw32=yes
927 else
928   echo "configure: failed program was:" >&5
929   cat conftest.$ac_ext >&5
930   rm -rf conftest*
931   ac_cv_mingw32=no
932 fi
933 rm -f conftest*
934 rm -f conftest*
935 fi
936
937 echo "$ac_t""$ac_cv_mingw32" 1>&6
938 MINGW32=
939 test "$ac_cv_mingw32" = yes && MINGW32=yes
940 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
941 echo "configure:942: checking for Cygwin environment" >&5
942 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
948
949 int main() {
950
951 #ifndef __CYGWIN__
952 #define __CYGWIN__ __CYGWIN32__
953 #endif
954 return __CYGWIN__;
955 ; return 0; }
956 EOF
957 if { (eval echo configure:958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
958   rm -rf conftest*
959   ac_cv_cygwin=yes
960 else
961   echo "configure: failed program was:" >&5
962   cat conftest.$ac_ext >&5
963   rm -rf conftest*
964   ac_cv_cygwin=no
965 fi
966 rm -f conftest*
967 rm -f conftest*
968 fi
969
970 echo "$ac_t""$ac_cv_cygwin" 1>&6
971 CYGWIN=
972 test "$ac_cv_cygwin" = yes && CYGWIN=yes
973
974 if test "$MINGW32" = "yes"; then
975   target_type=mingw
976 else
977   if test "$CYGWIN" = "yes"; then
978     target_type=cygwin
979   else
980     target_type=unix
981   fi
982 fi
983
984
985 # Check whether --enable-mingw32 or --disable-mingw32 was given.
986 if test "${enable_mingw32+set}" = set; then
987   enableval="$enable_mingw32"
988   if test $enableval = yes; then
989   target_type=mingw
990 fi
991 fi
992
993
994 if test $target_type = mingw; then
995   WIN_ONLY=
996   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
997   PTHREAD_LIB=-lpthreadGC
998   echo "Using mingw32 (Win32 GUI)"
999 else
1000   WIN_ONLY=#
1001   if test $target_type = cygwin; then
1002     SPECIAL_CFLAGS="-mno-win32"
1003     PTHREAD_LIB=
1004     echo "Using Cygnus (Win32 command line)"
1005   else
1006     SPECIAL_CFLAGS=
1007     PTHREAD_LIB=-lpthread
1008   fi
1009 fi
1010
1011
1012 old_CFLAGS_nospecial=$CFLAGS
1013 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1014
1015 # Hack to force AutoConf to use the CFLAGS we just set
1016 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1019
1020
1021
1022 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1023 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1024 echo "configure:1025: checking for pthread.h" >&5
1025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1026   echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028   cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1031 #include <pthread.h>
1032 EOF
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1036 if test -z "$ac_err"; then
1037   rm -rf conftest*
1038   eval "ac_cv_header_$ac_safe=yes"
1039 else
1040   echo "$ac_err" >&5
1041   echo "configure: failed program was:" >&5
1042   cat conftest.$ac_ext >&5
1043   rm -rf conftest*
1044   eval "ac_cv_header_$ac_safe=no"
1045 fi
1046 rm -f conftest*
1047 fi
1048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1049   echo "$ac_t""yes" 1>&6
1050   have_pthread=yes
1051 else
1052   echo "$ac_t""no" 1>&6
1053 have_pthread=no
1054 fi
1055
1056
1057 # Check whether --enable-pthread or --disable-pthread was given.
1058 if test "${enable_pthread+set}" = set; then
1059   enableval="$enable_pthread"
1060   if test $enableval = no; then
1061   # Disable pthreads
1062   have_pthread=no
1063 fi
1064 fi
1065
1066
1067 if test $have_pthread = yes; then
1068   PTHREAD_ONLY=
1069   cat >> confdefs.h <<\EOF
1070 #define FEATURE_PTHREAD 1
1071 EOF
1072
1073   echo Using POSIX threads
1074   if test "$GCC" = "yes"; then
1075     # Set a GCC specific switch:
1076     if test "$target_type" = "unix"; then
1077       # This compiler switch makes Linux thread-safe
1078       # Don't know about other OS's?  Is this switch
1079       # supported?
1080       PTHREAD_LIB=
1081       SPECIAL_CFLAGS="-pthread"
1082     fi
1083   fi
1084 else
1085   PTHREAD_ONLY=#
1086   echo Using native threads
1087 fi
1088
1089
1090
1091
1092
1093 ac_aux_dir=
1094 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1095   if test -f $ac_dir/install-sh; then
1096     ac_aux_dir=$ac_dir
1097     ac_install_sh="$ac_aux_dir/install-sh -c"
1098     break
1099   elif test -f $ac_dir/install.sh; then
1100     ac_aux_dir=$ac_dir
1101     ac_install_sh="$ac_aux_dir/install.sh -c"
1102     break
1103   fi
1104 done
1105 if test -z "$ac_aux_dir"; then
1106   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1107 fi
1108 ac_config_guess=$ac_aux_dir/config.guess
1109 ac_config_sub=$ac_aux_dir/config.sub
1110 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1111
1112
1113 # Make sure we can run config.sub.
1114 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1115 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1116 fi
1117
1118 echo $ac_n "checking host system type""... $ac_c" 1>&6
1119 echo "configure:1120: checking host system type" >&5
1120
1121 host_alias=$host
1122 case "$host_alias" in
1123 NONE)
1124   case $nonopt in
1125   NONE)
1126     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1127     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1128     fi ;;
1129   *) host_alias=$nonopt ;;
1130   esac ;;
1131 esac
1132
1133 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1134 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 echo "$ac_t""$host" 1>&6
1138
1139
1140 SOLARIS_ONLY=#
1141
1142 case "$host" in
1143 *-solaris*) SOLARIS_ONLY=
1144             cat >> confdefs.h <<\EOF
1145 #define __EXTENSIONS__ 1
1146 EOF
1147
1148             if test "$GCC" = "yes"; then
1149               # Set a GCC specific switch:
1150               # This compiler switch makes Solaris thread-safe
1151               PTHREAD_LIB=
1152               SPECIAL_CFLAGS="-pthreads"
1153             else
1154               # What do we do without GCC? Guess this:
1155               SPECIAL_CFLAGS="-D_REENTRANT"
1156             fi
1157 ;;
1158 esac
1159
1160
1161
1162
1163
1164
1165 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1166 echo "configure:1167: checking for executable suffix" >&5
1167 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1168   echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1171   ac_cv_exeext=.exe
1172 else
1173   rm -f conftest*
1174   echo 'int main () { return 0; }' > conftest.$ac_ext
1175   ac_cv_exeext=
1176   if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1177     for file in conftest.*; do
1178       case $file in
1179       *.c | *.o | *.obj) ;;
1180       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1181       esac
1182     done
1183   else
1184     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1185   fi
1186   rm -f conftest*
1187   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1188 fi
1189 fi
1190
1191 EXEEXT=""
1192 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1193 echo "$ac_t""${ac_cv_exeext}" 1>&6
1194 ac_exeext=$EXEEXT
1195
1196 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1197 echo "configure:1198: checking for object suffix" >&5
1198 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1199   echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201   rm -f conftest*
1202 echo 'int i = 1;' > conftest.$ac_ext
1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204   for ac_file in conftest.*; do
1205     case $ac_file in
1206     *.c) ;;
1207     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1208     esac
1209   done
1210 else
1211   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1212 fi
1213 rm -f conftest*
1214 fi
1215
1216 echo "$ac_t""$ac_cv_objext" 1>&6
1217 OBJEXT=$ac_cv_objext
1218 ac_objext=$ac_cv_objext
1219
1220 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1221 echo "configure:1222: checking for ANSI C header files" >&5
1222 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1223   echo $ac_n "(cached) $ac_c" 1>&6
1224 else
1225   cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 #include <stdlib.h>
1229 #include <stdarg.h>
1230 #include <string.h>
1231 #include <float.h>
1232 EOF
1233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1234 { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1236 if test -z "$ac_err"; then
1237   rm -rf conftest*
1238   ac_cv_header_stdc=yes
1239 else
1240   echo "$ac_err" >&5
1241   echo "configure: failed program was:" >&5
1242   cat conftest.$ac_ext >&5
1243   rm -rf conftest*
1244   ac_cv_header_stdc=no
1245 fi
1246 rm -f conftest*
1247
1248 if test $ac_cv_header_stdc = yes; then
1249   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1250 cat > conftest.$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1253 #include <string.h>
1254 EOF
1255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1256   egrep "memchr" >/dev/null 2>&1; then
1257   :
1258 else
1259   rm -rf conftest*
1260   ac_cv_header_stdc=no
1261 fi
1262 rm -f conftest*
1263
1264 fi
1265
1266 if test $ac_cv_header_stdc = yes; then
1267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 #include <stdlib.h>
1272 EOF
1273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1274   egrep "free" >/dev/null 2>&1; then
1275   :
1276 else
1277   rm -rf conftest*
1278   ac_cv_header_stdc=no
1279 fi
1280 rm -f conftest*
1281
1282 fi
1283
1284 if test $ac_cv_header_stdc = yes; then
1285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1286 if test "$cross_compiling" = yes; then
1287   :
1288 else
1289   cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292 #include <ctype.h>
1293 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1294 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1296 int main () { int i; for (i = 0; i < 256; i++)
1297 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1298 exit (0); }
1299
1300 EOF
1301 if { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1302 then
1303   :
1304 else
1305   echo "configure: failed program was:" >&5
1306   cat conftest.$ac_ext >&5
1307   rm -fr conftest*
1308   ac_cv_header_stdc=no
1309 fi
1310 rm -fr conftest*
1311 fi
1312
1313 fi
1314 fi
1315
1316 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1317 if test $ac_cv_header_stdc = yes; then
1318   cat >> confdefs.h <<\EOF
1319 #define STDC_HEADERS 1
1320 EOF
1321
1322 fi
1323
1324 echo $ac_n "checking for working const""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working const" >&5
1326 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1327   echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329   cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332
1333 int main() {
1334
1335 /* Ultrix mips cc rejects this.  */
1336 typedef int charset[2]; const charset x;
1337 /* SunOS 4.1.1 cc rejects this.  */
1338 char const *const *ccp;
1339 char **p;
1340 /* NEC SVR4.0.2 mips cc rejects this.  */
1341 struct point {int x, y;};
1342 static struct point const zero = {0,0};
1343 /* AIX XL C 1.02.0.0 rejects this.
1344    It does not let you subtract one const X* pointer from another in an arm
1345    of an if-expression whose if-part is not a constant expression */
1346 const char *g = "string";
1347 ccp = &g + (g ? g-g : 0);
1348 /* HPUX 7.0 cc rejects these. */
1349 ++ccp;
1350 p = (char**) ccp;
1351 ccp = (char const *const *) p;
1352 { /* SCO 3.2v4 cc rejects this.  */
1353   char *t;
1354   char const *s = 0 ? (char *) 0 : (char const *) 0;
1355
1356   *t++ = 0;
1357 }
1358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1359   int x[] = {25, 17};
1360   const int *foo = &x[0];
1361   ++foo;
1362 }
1363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1364   typedef const int *iptr;
1365   iptr p = 0;
1366   ++p;
1367 }
1368 { /* AIX XL C 1.02.0.0 rejects this saying
1369      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1370   struct s { int j; const int *ap[3]; };
1371   struct s *b; b->j = 5;
1372 }
1373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1374   const int foo = 10;
1375 }
1376
1377 ; return 0; }
1378 EOF
1379 if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380   rm -rf conftest*
1381   ac_cv_c_const=yes
1382 else
1383   echo "configure: failed program was:" >&5
1384   cat conftest.$ac_ext >&5
1385   rm -rf conftest*
1386   ac_cv_c_const=no
1387 fi
1388 rm -f conftest*
1389 fi
1390
1391 echo "$ac_t""$ac_cv_c_const" 1>&6
1392 if test $ac_cv_c_const = no; then
1393   cat >> confdefs.h <<\EOF
1394 #define const 
1395 EOF
1396
1397 fi
1398
1399 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1400 echo "configure:1401: checking for size_t" >&5
1401 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1408 #if STDC_HEADERS
1409 #include <stdlib.h>
1410 #include <stddef.h>
1411 #endif
1412 EOF
1413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1415   rm -rf conftest*
1416   ac_cv_type_size_t=yes
1417 else
1418   rm -rf conftest*
1419   ac_cv_type_size_t=no
1420 fi
1421 rm -f conftest*
1422
1423 fi
1424 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1425 if test $ac_cv_type_size_t = no; then
1426   cat >> confdefs.h <<\EOF
1427 #define size_t unsigned
1428 EOF
1429
1430 fi
1431
1432
1433
1434 for ac_func in strerror bcopy memmove
1435 do
1436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_func" >&5
1438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1439   echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441   cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 /* System header to define __stub macros and hopefully few prototypes,
1445     which can conflict with char $ac_func(); below.  */
1446 #include <assert.h>
1447 /* Override any gcc2 internal prototype to avoid an error.  */
1448 /* We use char because int might match the return type of a gcc2
1449     builtin and then its argument prototype would still apply.  */
1450 char $ac_func();
1451
1452 int main() {
1453
1454 /* The GNU C library defines this for functions which it implements
1455     to always fail with ENOSYS.  Some functions are actually named
1456     something starting with __ and the normal name is an alias.  */
1457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1458 choke me
1459 #else
1460 $ac_func();
1461 #endif
1462
1463 ; return 0; }
1464 EOF
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466   rm -rf conftest*
1467   eval "ac_cv_func_$ac_func=yes"
1468 else
1469   echo "configure: failed program was:" >&5
1470   cat conftest.$ac_ext >&5
1471   rm -rf conftest*
1472   eval "ac_cv_func_$ac_func=no"
1473 fi
1474 rm -f conftest*
1475 fi
1476
1477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1478   echo "$ac_t""yes" 1>&6
1479     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1480   cat >> confdefs.h <<EOF
1481 #define $ac_tr_func 1
1482 EOF
1483  
1484 else
1485   echo "$ac_t""no" 1>&6
1486 fi
1487 done
1488
1489
1490
1491 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1492 echo "configure:1493: checking for pcre_compile in -lpcre" >&5
1493 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495   echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497   ac_save_LIBS="$LIBS"
1498 LIBS="-lpcre  $LIBS"
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* Override any gcc2 internal prototype to avoid an error.  */
1503 /* We use char because int might match the return type of a gcc2
1504     builtin and then its argument prototype would still apply.  */
1505 char pcre_compile();
1506
1507 int main() {
1508 pcre_compile()
1509 ; return 0; }
1510 EOF
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1512   rm -rf conftest*
1513   eval "ac_cv_lib_$ac_lib_var=yes"
1514 else
1515   echo "configure: failed program was:" >&5
1516   cat conftest.$ac_ext >&5
1517   rm -rf conftest*
1518   eval "ac_cv_lib_$ac_lib_var=no"
1519 fi
1520 rm -f conftest*
1521 LIBS="$ac_save_LIBS"
1522
1523 fi
1524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525   echo "$ac_t""yes" 1>&6
1526   ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1527 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1528 echo "configure:1529: checking for pcre.h" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1530   echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532   cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 #include <pcre.h>
1536 EOF
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540 if test -z "$ac_err"; then
1541   rm -rf conftest*
1542   eval "ac_cv_header_$ac_safe=yes"
1543 else
1544   echo "$ac_err" >&5
1545   echo "configure: failed program was:" >&5
1546   cat conftest.$ac_ext >&5
1547   rm -rf conftest*
1548   eval "ac_cv_header_$ac_safe=no"
1549 fi
1550 rm -f conftest*
1551 fi
1552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1553   echo "$ac_t""yes" 1>&6
1554   have_pcre=yes
1555 else
1556   echo "$ac_t""no" 1>&6
1557 have_pcre=no
1558 fi
1559
1560 else
1561   echo "$ac_t""no" 1>&6
1562 have_pcre=no
1563 fi
1564
1565 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1566 echo "configure:1567: checking for regcomp in -lpcreposix" >&5
1567 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1569   echo $ac_n "(cached) $ac_c" 1>&6
1570 else
1571   ac_save_LIBS="$LIBS"
1572 LIBS="-lpcreposix -lpcre $LIBS"
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 /* Override any gcc2 internal prototype to avoid an error.  */
1577 /* We use char because int might match the return type of a gcc2
1578     builtin and then its argument prototype would still apply.  */
1579 char regcomp();
1580
1581 int main() {
1582 regcomp()
1583 ; return 0; }
1584 EOF
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1586   rm -rf conftest*
1587   eval "ac_cv_lib_$ac_lib_var=yes"
1588 else
1589   echo "configure: failed program was:" >&5
1590   cat conftest.$ac_ext >&5
1591   rm -rf conftest*
1592   eval "ac_cv_lib_$ac_lib_var=no"
1593 fi
1594 rm -f conftest*
1595 LIBS="$ac_save_LIBS"
1596
1597 fi
1598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1599   echo "$ac_t""yes" 1>&6
1600   ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1601 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1602 echo "configure:1603: checking for pcreposix.h" >&5
1603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1604   echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606   cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 #include <pcreposix.h>
1610 EOF
1611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1612 { (eval echo configure:1613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1614 if test -z "$ac_err"; then
1615   rm -rf conftest*
1616   eval "ac_cv_header_$ac_safe=yes"
1617 else
1618   echo "$ac_err" >&5
1619   echo "configure: failed program was:" >&5
1620   cat conftest.$ac_ext >&5
1621   rm -rf conftest*
1622   eval "ac_cv_header_$ac_safe=no"
1623 fi
1624 rm -f conftest*
1625 fi
1626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1627   echo "$ac_t""yes" 1>&6
1628   have_pcreposix=yes
1629 else
1630   echo "$ac_t""no" 1>&6
1631 have_pcreposix=no
1632 fi
1633
1634 else
1635   echo "$ac_t""no" 1>&6
1636 have_pcreposix=no
1637 fi
1638
1639 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1640 echo "configure:1641: checking for pcrs_compile in -lpcrs" >&5
1641 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1643   echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645   ac_save_LIBS="$LIBS"
1646 LIBS="-lpcrs  $LIBS"
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* Override any gcc2 internal prototype to avoid an error.  */
1651 /* We use char because int might match the return type of a gcc2
1652     builtin and then its argument prototype would still apply.  */
1653 char pcrs_compile();
1654
1655 int main() {
1656 pcrs_compile()
1657 ; return 0; }
1658 EOF
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1660   rm -rf conftest*
1661   eval "ac_cv_lib_$ac_lib_var=yes"
1662 else
1663   echo "configure: failed program was:" >&5
1664   cat conftest.$ac_ext >&5
1665   rm -rf conftest*
1666   eval "ac_cv_lib_$ac_lib_var=no"
1667 fi
1668 rm -f conftest*
1669 LIBS="$ac_save_LIBS"
1670
1671 fi
1672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1673   echo "$ac_t""yes" 1>&6
1674   ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1675 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1676 echo "configure:1677: checking for pcrs.h" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1678   echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680   cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 #include <pcrs.h>
1684 EOF
1685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1686 { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1688 if test -z "$ac_err"; then
1689   rm -rf conftest*
1690   eval "ac_cv_header_$ac_safe=yes"
1691 else
1692   echo "$ac_err" >&5
1693   echo "configure: failed program was:" >&5
1694   cat conftest.$ac_ext >&5
1695   rm -rf conftest*
1696   eval "ac_cv_header_$ac_safe=no"
1697 fi
1698 rm -f conftest*
1699 fi
1700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1701   echo "$ac_t""yes" 1>&6
1702   have_pcrs=yes
1703 else
1704   echo "$ac_t""no" 1>&6
1705 have_pcrs=no
1706 fi
1707
1708 else
1709   echo "$ac_t""no" 1>&6
1710 have_pcrs=no
1711 fi
1712
1713
1714
1715
1716 cat >> confdefs.h <<\EOF
1717 #define __MT__ 1
1718 EOF
1719
1720
1721
1722 # Check whether --enable-toggle or --disable-toggle was given.
1723 if test "${enable_toggle+set}" = set; then
1724   enableval="$enable_toggle"
1725   if test $enableval = yes; then
1726   cat >> confdefs.h <<\EOF
1727 #define FEATURE_TOGGLE 1
1728 EOF
1729
1730 fi
1731 else
1732   cat >> confdefs.h <<\EOF
1733 #define FEATURE_TOGGLE 1
1734 EOF
1735
1736 fi
1737
1738
1739 # Check whether --enable-gzip or --disable-gzip was given.
1740 if test "${enable_gzip+set}" = set; then
1741   enableval="$enable_gzip"
1742   if test $enableval = "no"; then
1743   cat >> confdefs.h <<\EOF
1744 #define FEATURE_DENY_GZIP 1
1745 EOF
1746
1747 fi
1748 fi
1749
1750
1751 # Check whether --enable-force or --disable-force was given.
1752 if test "${enable_force+set}" = set; then
1753   enableval="$enable_force"
1754   if test $enableval = yes; then
1755   cat >> confdefs.h <<\EOF
1756 #define FEATURE_FORCE_LOAD 1
1757 EOF
1758
1759 fi
1760 else
1761   cat >> confdefs.h <<\EOF
1762 #define FEATURE_FORCE_LOAD 1
1763 EOF
1764
1765 fi
1766
1767
1768 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1769 if test "${enable_fast_redirects+set}" = set; then
1770   enableval="$enable_fast_redirects"
1771   if test $enableval = yes; then
1772   cat >> confdefs.h <<\EOF
1773 #define FEATURE_FAST_REDIRECTS 1
1774 EOF
1775
1776 fi
1777 else
1778   cat >> confdefs.h <<\EOF
1779 #define FEATURE_FAST_REDIRECTS 1
1780 EOF
1781
1782 fi
1783
1784
1785 # Check whether --enable-killpopup or --disable-killpopup was given.
1786 if test "${enable_killpopup+set}" = set; then
1787   enableval="$enable_killpopup"
1788   if test $enableval = yes; then
1789   cat >> confdefs.h <<\EOF
1790 #define FEATURE_KILL_POPUPS 1
1791 EOF
1792
1793 fi
1794 else
1795   cat >> confdefs.h <<\EOF
1796 #define FEATURE_KILL_POPUPS 1
1797 EOF
1798
1799 fi
1800
1801
1802 # Check whether --enable-stats or --disable-stats was given.
1803 if test "${enable_stats+set}" = set; then
1804   enableval="$enable_stats"
1805   if test $enableval = yes; then
1806   cat >> confdefs.h <<\EOF
1807 #define FEATURE_STATISTICS 1
1808 EOF
1809
1810 fi
1811 else
1812   cat >> confdefs.h <<\EOF
1813 #define FEATURE_STATISTICS 1
1814 EOF
1815
1816 fi
1817
1818
1819 # Check whether --enable-ie-images or --disable-ie-images was given.
1820 if test "${enable_ie_images+set}" = set; then
1821   enableval="$enable_ie_images"
1822   if test $enableval = yes; then
1823   cat >> confdefs.h <<\EOF
1824 #define FEATURE_IMAGE_DETECT_MSIE 1
1825 EOF
1826
1827 fi
1828 else
1829   cat >> confdefs.h <<\EOF
1830 #define FEATURE_IMAGE_DETECT_MSIE 1
1831 EOF
1832
1833 fi
1834
1835
1836 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1837 if test "${enable_image_blocking+set}" = set; then
1838   enableval="$enable_image_blocking"
1839   if test $enableval = yes; then
1840   cat >> confdefs.h <<\EOF
1841 #define FEATURE_IMAGE_BLOCKING 1
1842 EOF
1843
1844 fi
1845 else
1846   cat >> confdefs.h <<\EOF
1847 #define FEATURE_IMAGE_BLOCKING 1
1848 EOF
1849
1850 fi
1851
1852
1853 # Check whether --enable-acl-files or --disable-acl-files was given.
1854 if test "${enable_acl_files+set}" = set; then
1855   enableval="$enable_acl_files"
1856   if test $enableval = yes; then
1857   cat >> confdefs.h <<\EOF
1858 #define FEATURE_ACL 1
1859 EOF
1860
1861 fi
1862 else
1863   cat >> confdefs.h <<\EOF
1864 #define FEATURE_ACL 1
1865 EOF
1866
1867 fi
1868
1869
1870 # Check whether --enable-trust-files or --disable-trust-files was given.
1871 if test "${enable_trust_files+set}" = set; then
1872   enableval="$enable_trust_files"
1873   if test $enableval = yes; then
1874   cat >> confdefs.h <<\EOF
1875 #define FEATURE_TRUST 1
1876 EOF
1877
1878 fi
1879 else
1880   cat >> confdefs.h <<\EOF
1881 #define FEATURE_TRUST 1
1882 EOF
1883
1884 fi
1885
1886
1887 # Check whether --enable-jar-files or --disable-jar-files was given.
1888 if test "${enable_jar_files+set}" = set; then
1889   enableval="$enable_jar_files"
1890   if test $enableval = yes; then
1891   cat >> confdefs.h <<\EOF
1892 #define FEATURE_COOKIE_JAR 1
1893 EOF
1894
1895 fi
1896 else
1897   cat >> confdefs.h <<\EOF
1898 #define FEATURE_COOKIE_JAR 1
1899 EOF
1900
1901 fi
1902
1903
1904
1905 # Check whether --enable-regex-matching or --disable-regex-matching was given.
1906 if test "${enable_regex_matching+set}" = set; then
1907   enableval="$enable_regex_matching"
1908    regex_matching=$enableval 
1909 else
1910    regex_matching=pcre 
1911 fi
1912
1913
1914 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
1915 if test "${enable_dynamic_pcre+set}" = set; then
1916   enableval="$enable_dynamic_pcre"
1917    if test $enableval = "no"; then have_pcre=no; fi 
1918 fi
1919
1920
1921 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
1922 if test "${enable_dynamic_pcrs+set}" = set; then
1923   enableval="$enable_dynamic_pcrs"
1924    if test $enableval = "no"; then have_pcrs=no; fi 
1925 fi
1926
1927
1928
1929 # Is the regex URL matching based on libpcreposix, but we
1930 # don't have that library?
1931 #
1932 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
1933   dont_miss_pcreposix=yes
1934 else
1935   dont_miss_pcreposix=no
1936 fi
1937
1938 # If we have libpcre and either we also have pcreposix or
1939 # we don't need pcreposix, then link pcre dynamically; else
1940 # build it and link statically
1941 #
1942 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
1943   echo "using libpcre"
1944   pcre_dyn=yes
1945   STATIC_PCRE_ONLY=#
1946   LIBS="$LIBS -lpcre"
1947 else
1948   echo "using built-in static pcre"
1949   pcre_dyn=no
1950   cat >> confdefs.h <<\EOF
1951 #define STATIC_PCRE 1
1952 EOF
1953
1954   STATIC_PCRE_ONLY=
1955 fi
1956
1957 # If we have libpcrs and pcre is linked dynamically
1958 # then also link pcrs dynamically, else build and link
1959 # pcrs statically
1960 #
1961 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
1962   echo "using libpcrs"
1963   STATIC_PCRS_ONLY=#
1964   LIBS="$LIBS -lpcrs"
1965 else
1966   echo "using built-in static pcrs"
1967   cat >> confdefs.h <<\EOF
1968 #define STATIC_PCRS 1
1969 EOF
1970
1971   STATIC_PCRS_ONLY=
1972 fi
1973
1974 # Which method should be used for URL matching?
1975 # pcre, gnu regex or prefix matching?
1976 #
1977 if test $regex_matching = "gnu"; then
1978   echo "using gnu regex for URL matching"
1979   cat >> confdefs.h <<\EOF
1980 #define REGEX_GNU 1
1981 EOF
1982
1983   GNU_REGEX_ONLY=
1984   PCRE_REGEX_ONLY=#
1985 elif test $regex_matching = "pcre"; then
1986   echo "using pcre regex for URL matching"
1987   cat >> confdefs.h <<\EOF
1988 #define REGEX_PCRE 1
1989 EOF
1990
1991   GNU_REGEX_ONLY=#
1992   PCRE_REGEX_ONLY=
1993   if test $pcre_dyn = "yes"; then
1994     LIBS="$LIBS -lpcreposix"
1995   fi
1996 else
1997   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
1998   GNU_REGEX_ONLY=#
1999   PCRE_REGEX_ONLY=#
2000 fi
2001
2002
2003
2004
2005
2006
2007
2008 CFLAGS=$old_CFLAGS_nospecial
2009
2010
2011
2012
2013 trap '' 1 2 15
2014 cat > confcache <<\EOF
2015 # This file is a shell script that caches the results of configure
2016 # tests run on this system so they can be shared between configure
2017 # scripts and configure runs.  It is not useful on other systems.
2018 # If it contains results you don't want to keep, you may remove or edit it.
2019 #
2020 # By default, configure uses ./config.cache as the cache file,
2021 # creating it if it does not exist already.  You can give configure
2022 # the --cache-file=FILE option to use a different cache file; that is
2023 # what configure does when it calls configure scripts in
2024 # subdirectories, so they share the cache.
2025 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2026 # config.status only pays attention to the cache file if you give it the
2027 # --recheck option to rerun configure.
2028 #
2029 EOF
2030 # The following way of writing the cache mishandles newlines in values,
2031 # but we know of no workaround that is simple, portable, and efficient.
2032 # So, don't put newlines in cache variables' values.
2033 # Ultrix sh set writes to stderr and can't be redirected directly,
2034 # and sets the high bit in the cache file unless we assign to the vars.
2035 (set) 2>&1 |
2036   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2037   *ac_space=\ *)
2038     # `set' does not quote correctly, so add quotes (double-quote substitution
2039     # turns \\\\ into \\, and sed turns \\ into \).
2040     sed -n \
2041       -e "s/'/'\\\\''/g" \
2042       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2043     ;;
2044   *)
2045     # `set' quotes correctly as required by POSIX, so do not add quotes.
2046     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2047     ;;
2048   esac >> confcache
2049 if cmp -s $cache_file confcache; then
2050   :
2051 else
2052   if test -w $cache_file; then
2053     echo "updating cache $cache_file"
2054     cat confcache > $cache_file
2055   else
2056     echo "not updating unwritable cache $cache_file"
2057   fi
2058 fi
2059 rm -f confcache
2060
2061 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2062
2063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2064 # Let make expand exec_prefix.
2065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2066
2067 # Any assignment to VPATH causes Sun make to only execute
2068 # the first set of double-colon rules, so remove it if not needed.
2069 # If there is a colon in the path, we need to keep it.
2070 if test "x$srcdir" = x.; then
2071   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2072 fi
2073
2074 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2075
2076 DEFS=-DHAVE_CONFIG_H
2077
2078 # Without the "./", some shells look in PATH for config.status.
2079 : ${CONFIG_STATUS=./config.status}
2080
2081 echo creating $CONFIG_STATUS
2082 rm -f $CONFIG_STATUS
2083 cat > $CONFIG_STATUS <<EOF
2084 #! /bin/sh
2085 # Generated automatically by configure.
2086 # Run this file to recreate the current configuration.
2087 # This directory was configured as follows,
2088 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2089 #
2090 # $0 $ac_configure_args
2091 #
2092 # Compiler output produced by configure, useful for debugging
2093 # configure, is in ./config.log if it exists.
2094
2095 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2096 for ac_option
2097 do
2098   case "\$ac_option" in
2099   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2100     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2101     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2102   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2103     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2104     exit 0 ;;
2105   -help | --help | --hel | --he | --h)
2106     echo "\$ac_cs_usage"; exit 0 ;;
2107   *) echo "\$ac_cs_usage"; exit 1 ;;
2108   esac
2109 done
2110
2111 ac_given_srcdir=$srcdir
2112
2113 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2114 EOF
2115 cat >> $CONFIG_STATUS <<EOF
2116
2117 # Protect against being on the right side of a sed subst in config.status.
2118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2119  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2120 $ac_vpsub
2121 $extrasub
2122 s%@SHELL@%$SHELL%g
2123 s%@CFLAGS@%$CFLAGS%g
2124 s%@CPPFLAGS@%$CPPFLAGS%g
2125 s%@CXXFLAGS@%$CXXFLAGS%g
2126 s%@FFLAGS@%$FFLAGS%g
2127 s%@DEFS@%$DEFS%g
2128 s%@LDFLAGS@%$LDFLAGS%g
2129 s%@LIBS@%$LIBS%g
2130 s%@exec_prefix@%$exec_prefix%g
2131 s%@prefix@%$prefix%g
2132 s%@program_transform_name@%$program_transform_name%g
2133 s%@bindir@%$bindir%g
2134 s%@sbindir@%$sbindir%g
2135 s%@libexecdir@%$libexecdir%g
2136 s%@datadir@%$datadir%g
2137 s%@sysconfdir@%$sysconfdir%g
2138 s%@sharedstatedir@%$sharedstatedir%g
2139 s%@localstatedir@%$localstatedir%g
2140 s%@libdir@%$libdir%g
2141 s%@includedir@%$includedir%g
2142 s%@oldincludedir@%$oldincludedir%g
2143 s%@infodir@%$infodir%g
2144 s%@mandir@%$mandir%g
2145 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2146 s%@VERSION_MINOR@%$VERSION_MINOR%g
2147 s%@VERSION_POINT@%$VERSION_POINT%g
2148 s%@CC@%$CC%g
2149 s%@CPP@%$CPP%g
2150 s%@WIN_ONLY@%$WIN_ONLY%g
2151 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2152 s%@host@%$host%g
2153 s%@host_alias@%$host_alias%g
2154 s%@host_cpu@%$host_cpu%g
2155 s%@host_vendor@%$host_vendor%g
2156 s%@host_os@%$host_os%g
2157 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
2158 s%@EXEEXT@%$EXEEXT%g
2159 s%@OBJEXT@%$OBJEXT%g
2160 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2161 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2162 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2163 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2164 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2165 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2166
2167 CEOF
2168 EOF
2169
2170 cat >> $CONFIG_STATUS <<\EOF
2171
2172 # Split the substitutions into bite-sized pieces for seds with
2173 # small command number limits, like on Digital OSF/1 and HP-UX.
2174 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2175 ac_file=1 # Number of current file.
2176 ac_beg=1 # First line for current file.
2177 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2178 ac_more_lines=:
2179 ac_sed_cmds=""
2180 while $ac_more_lines; do
2181   if test $ac_beg -gt 1; then
2182     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2183   else
2184     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2185   fi
2186   if test ! -s conftest.s$ac_file; then
2187     ac_more_lines=false
2188     rm -f conftest.s$ac_file
2189   else
2190     if test -z "$ac_sed_cmds"; then
2191       ac_sed_cmds="sed -f conftest.s$ac_file"
2192     else
2193       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2194     fi
2195     ac_file=`expr $ac_file + 1`
2196     ac_beg=$ac_end
2197     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2198   fi
2199 done
2200 if test -z "$ac_sed_cmds"; then
2201   ac_sed_cmds=cat
2202 fi
2203 EOF
2204
2205 cat >> $CONFIG_STATUS <<EOF
2206
2207 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2208 EOF
2209 cat >> $CONFIG_STATUS <<\EOF
2210 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2211   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2212   case "$ac_file" in
2213   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2214        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2215   *) ac_file_in="${ac_file}.in" ;;
2216   esac
2217
2218   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2219
2220   # Remove last slash and all that follows it.  Not all systems have dirname.
2221   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2222   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2223     # The file is in a subdirectory.
2224     test ! -d "$ac_dir" && mkdir "$ac_dir"
2225     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2226     # A "../" for each directory in $ac_dir_suffix.
2227     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2228   else
2229     ac_dir_suffix= ac_dots=
2230   fi
2231
2232   case "$ac_given_srcdir" in
2233   .)  srcdir=.
2234       if test -z "$ac_dots"; then top_srcdir=.
2235       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2236   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2237   *) # Relative path.
2238     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2239     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2240   esac
2241
2242
2243   echo creating "$ac_file"
2244   rm -f "$ac_file"
2245   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2246   case "$ac_file" in
2247   *Makefile*) ac_comsub="1i\\
2248 # $configure_input" ;;
2249   *) ac_comsub= ;;
2250   esac
2251
2252   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2253   sed -e "$ac_comsub
2254 s%@configure_input@%$configure_input%g
2255 s%@srcdir@%$srcdir%g
2256 s%@top_srcdir@%$top_srcdir%g
2257 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2258 fi; done
2259 rm -f conftest.s*
2260
2261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2263 #
2264 # ac_d sets the value in "#define NAME VALUE" lines.
2265 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2266 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2267 ac_dC='\3'
2268 ac_dD='%g'
2269 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2270 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2271 ac_uB='\([      ]\)%\1#\2define\3'
2272 ac_uC=' '
2273 ac_uD='\4%g'
2274 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2275 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2276 ac_eB='$%\1#\2define\3'
2277 ac_eC=' '
2278 ac_eD='%g'
2279
2280 if test "${CONFIG_HEADERS+set}" != set; then
2281 EOF
2282 cat >> $CONFIG_STATUS <<EOF
2283   CONFIG_HEADERS="config.h"
2284 EOF
2285 cat >> $CONFIG_STATUS <<\EOF
2286 fi
2287 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2288   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2289   case "$ac_file" in
2290   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2291        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2292   *) ac_file_in="${ac_file}.in" ;;
2293   esac
2294
2295   echo creating $ac_file
2296
2297   rm -f conftest.frag conftest.in conftest.out
2298   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2299   cat $ac_file_inputs > conftest.in
2300
2301 EOF
2302
2303 # Transform confdefs.h into a sed script conftest.vals that substitutes
2304 # the proper values into config.h.in to produce config.h.  And first:
2305 # Protect against being on the right side of a sed subst in config.status.
2306 # Protect against being in an unquoted here document in config.status.
2307 rm -f conftest.vals
2308 cat > conftest.hdr <<\EOF
2309 s/[\\&%]/\\&/g
2310 s%[\\$`]%\\&%g
2311 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2312 s%ac_d%ac_u%gp
2313 s%ac_u%ac_e%gp
2314 EOF
2315 sed -n -f conftest.hdr confdefs.h > conftest.vals
2316 rm -f conftest.hdr
2317
2318 # This sed command replaces #undef with comments.  This is necessary, for
2319 # example, in the case of _POSIX_SOURCE, which is predefined and required
2320 # on some systems where configure will not decide to define it.
2321 cat >> conftest.vals <<\EOF
2322 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2323 EOF
2324
2325 # Break up conftest.vals because some shells have a limit on
2326 # the size of here documents, and old seds have small limits too.
2327
2328 rm -f conftest.tail
2329 while :
2330 do
2331   ac_lines=`grep -c . conftest.vals`
2332   # grep -c gives empty output for an empty file on some AIX systems.
2333   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2334   # Write a limited-size here document to conftest.frag.
2335   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2336   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2337   echo 'CEOF
2338   sed -f conftest.frag conftest.in > conftest.out
2339   rm -f conftest.in
2340   mv conftest.out conftest.in
2341 ' >> $CONFIG_STATUS
2342   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2343   rm -f conftest.vals
2344   mv conftest.tail conftest.vals
2345 done
2346 rm -f conftest.vals
2347
2348 cat >> $CONFIG_STATUS <<\EOF
2349   rm -f conftest.frag conftest.h
2350   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2351   cat conftest.in >> conftest.h
2352   rm -f conftest.in
2353   if cmp -s $ac_file conftest.h 2>/dev/null; then
2354     echo "$ac_file is unchanged"
2355     rm -f conftest.h
2356   else
2357     # Remove last slash and all that follows it.  Not all systems have dirname.
2358       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2359       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2360       # The file is in a subdirectory.
2361       test ! -d "$ac_dir" && mkdir "$ac_dir"
2362     fi
2363     rm -f $ac_file
2364     mv conftest.h $ac_file
2365   fi
2366 fi; done
2367
2368 EOF
2369 cat >> $CONFIG_STATUS <<EOF
2370
2371 EOF
2372 cat >> $CONFIG_STATUS <<\EOF
2373
2374 exit 0
2375 EOF
2376 chmod +x $CONFIG_STATUS
2377 rm -fr confdefs* $ac_clean_files
2378 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2379
2380