OS/2 port: update autoconf'd support for the platform.
[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 echo $ac_n "checking for path separator""... $ac_c" 1>&6
569 echo "configure:570: checking for path separator" >&5
570 # Filter path to get backslahes into forwardslashes
571 case "`uname -s 2> /dev/null`" in
572 OS/2)
573   : ${CC=gcc.exe}
574   : ${MAKE=make}
575   : ${CXX=gcc.exe}
576   : ${CPP="gcc.exe -E"}
577   : ${CFLAGS="-O2 -m486 -Zmt"}
578   : ${CXXFLAGS="-O2 -m486 -Zmt"}
579   : ${LDFLAGS="-s -Zmt -Zcrtdll -Zsysv-signals -Zbin-files"}
580   : ${CONFIG_SHELL=sh.exe}
581   : ${AR="ar.exe"}
582   : ${LD="ld.exe"}
583   : ${NM=nm.exe}
584   : ${RANLIB="ar.exe s"}
585   SHELL=${CONFIG_SHELL}
586   PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
587   PATH_IFS=';'
588   ac_cv_emxos2=yes
589   ;;
590 *)
591   PATH_IFS=':'
592   ;;
593 esac
594 echo "$ac_t""${PATH_IFS}" 1>&6
595
596 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
597 echo "configure:598: checking for Cygwin environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
599   echo $ac_n "(cached) $ac_c" 1>&6
600 else
601   cat > conftest.$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
604
605 int main() {
606
607 #ifndef __CYGWIN__
608 #define __CYGWIN__ __CYGWIN32__
609 #endif
610 return __CYGWIN__;
611 ; return 0; }
612 EOF
613 if { (eval echo configure:614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
614   rm -rf conftest*
615   ac_cv_cygwin=yes
616 else
617   echo "configure: failed program was:" >&5
618   cat conftest.$ac_ext >&5
619   rm -rf conftest*
620   ac_cv_cygwin=no
621 fi
622 rm -f conftest*
623 rm -f conftest*
624 fi
625
626 echo "$ac_t""$ac_cv_cygwin" 1>&6
627 CYGWIN=
628 test "$ac_cv_cygwin" = yes && CYGWIN=yes
629 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
630 echo "configure:631: checking for mingw32 environment" >&5
631 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
632   echo $ac_n "(cached) $ac_c" 1>&6
633 else
634   cat > conftest.$ac_ext <<EOF
635 #line 636 "configure"
636 #include "confdefs.h"
637
638 int main() {
639 return __MINGW32__;
640 ; return 0; }
641 EOF
642 if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643   rm -rf conftest*
644   ac_cv_mingw32=yes
645 else
646   echo "configure: failed program was:" >&5
647   cat conftest.$ac_ext >&5
648   rm -rf conftest*
649   ac_cv_mingw32=no
650 fi
651 rm -f conftest*
652 rm -f conftest*
653 fi
654
655 echo "$ac_t""$ac_cv_mingw32" 1>&6
656 MINGW32=
657 test "$ac_cv_mingw32" = yes && MINGW32=yes
658 echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
659 echo "configure:660: checking for EMX/OS2 environment" >&5
660 if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
661   echo $ac_n "(cached) $ac_c" 1>&6
662 else
663   : ${CC=gcc.exe}
664 cat > conftest.$ac_ext <<EOF
665 #line 666 "configure"
666 #include "confdefs.h"
667
668 int main() {
669 return __EMX__;
670 ; return 0; }
671 EOF
672 if { (eval echo configure:673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
673   rm -rf conftest*
674   ac_cv_emxos2=yes
675 else
676   echo "configure: failed program was:" >&5
677   cat conftest.$ac_ext >&5
678   rm -rf conftest*
679   ac_cv_emxos2=no
680 fi
681 rm -f conftest*
682 rm -f conftest*
683 fi
684
685 echo "$ac_t""$ac_cv_emxos2" 1>&6
686 if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
687   echo $ac_n "(cached) $ac_c" 1>&6
688 else
689   if test "$ac_cv_emxos2" = yes ; then
690   ac_cv_libpre=
691 else
692   ac_cv_libpre=lib
693 fi
694
695 fi
696
697 EMXOS2=
698 test "$ac_cv_emxos2" = yes && EMXOS2=yes
699
700
701
702 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
703 echo "configure:704: checking for executable suffix" >&5
704 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
705   echo $ac_n "(cached) $ac_c" 1>&6
706 else
707   if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
708   ac_cv_exeext=.exe
709 else
710   rm -f conftest*
711   echo 'int main () { return 0; }' > conftest.$ac_ext
712   ac_cv_exeext=
713   if { (eval echo configure:714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
714     for file in conftest.*; do
715       case $file in
716       *.c | *.o | *.obj) ;;
717       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
718       esac
719     done
720   else
721     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
722   fi
723   rm -f conftest*
724   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
725 fi
726 fi
727
728 EXEEXT=""
729 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
730 echo "$ac_t""${ac_cv_exeext}" 1>&6
731 ac_exeext=$EXEEXT
732
733
734
735
736
737
738 VERSION_MAJOR=2
739 VERSION_MINOR=9
740 VERSION_POINT=8
741 CODE_STATUS="\"alpha\""
742
743
744
745
746
747
748
749 cat >> confdefs.h <<EOF
750 #define VERSION_MAJOR ${VERSION_MAJOR}
751 EOF
752
753 cat >> confdefs.h <<EOF
754 #define VERSION_MINOR ${VERSION_MINOR}
755 EOF
756
757 cat >> confdefs.h <<EOF
758 #define VERSION_POINT ${VERSION_POINT}
759 EOF
760
761 cat >> confdefs.h <<EOF
762 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
763 EOF
764
765 cat >> confdefs.h <<EOF
766 #define CODE_STATUS ${CODE_STATUS}
767 EOF
768
769
770
771 # Extract the first word of "gcc", so it can be a program name with args.
772 set dummy gcc; ac_word=$2
773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
774 echo "configure:775: checking for $ac_word" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
776   echo $ac_n "(cached) $ac_c" 1>&6
777 else
778   if test -n "$CC"; then
779   ac_cv_prog_CC="$CC" # Let the user override the test.
780 else
781   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
782   ac_dummy="$PATH"
783   for ac_dir in $ac_dummy; do
784     test -z "$ac_dir" && ac_dir=.
785     if test -f $ac_dir/$ac_word -o \
786             -f $ac_dir/$ac_word$ac_exeext ; then
787       ac_cv_prog_CC="gcc"
788       break
789     fi
790   done
791   IFS="$ac_save_ifs"
792 fi
793 fi
794 CC="$ac_cv_prog_CC"
795 if test -n "$CC"; then
796   echo "$ac_t""$CC" 1>&6
797 else
798   echo "$ac_t""no" 1>&6
799 fi
800
801 if test -z "$CC"; then
802   # Extract the first word of "cc", so it can be a program name with args.
803 set dummy cc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807   echo $ac_n "(cached) $ac_c" 1>&6
808 else
809   if test -n "$CC"; then
810   ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
813   ac_prog_rejected=no
814   ac_dummy="$PATH"
815   for ac_dir in $ac_dummy; do
816     test -z "$ac_dir" && ac_dir=.
817     if test -f $ac_dir/$ac_word -o \
818             -f $ac_dir/$ac_word$ac_exeext ; then
819       if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
820                "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
821         ac_prog_rejected=yes
822         continue
823       fi
824       ac_cv_prog_CC="cc"
825       break
826     fi
827   done
828   IFS="$ac_save_ifs"
829 if test $ac_prog_rejected = yes; then
830   # We found a bogon in the path, so make sure we never use it.
831   set dummy $ac_cv_prog_CC
832   shift
833   if test $# -gt 0; then
834     # We chose a different compiler from the bogus one.
835     # However, it has the same basename, so the bogon will be chosen
836     # first if we set CC to just the basename; use the full file name.
837     shift
838     set dummy "$ac_dir/$ac_word" "$@"
839     shift
840     ac_cv_prog_CC="$@"
841   fi
842 fi
843 fi
844 fi
845 CC="$ac_cv_prog_CC"
846 if test -n "$CC"; then
847   echo "$ac_t""$CC" 1>&6
848 else
849   echo "$ac_t""no" 1>&6
850 fi
851
852   if test -z "$CC"; then
853     case "`uname -s`" in
854     *win32* | *WIN32*)
855       # Extract the first word of "cl", so it can be a program name with args.
856 set dummy cl; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860   echo $ac_n "(cached) $ac_c" 1>&6
861 else
862   if test -n "$CC"; then
863   ac_cv_prog_CC="$CC" # Let the user override the test.
864 else
865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
866   ac_dummy="$PATH"
867   for ac_dir in $ac_dummy; do
868     test -z "$ac_dir" && ac_dir=.
869     if test -f $ac_dir/$ac_word -o \
870             -f $ac_dir/$ac_word$ac_exeext ; then
871       ac_cv_prog_CC="cl"
872       break
873     fi
874   done
875   IFS="$ac_save_ifs"
876 fi
877 fi
878 CC="$ac_cv_prog_CC"
879 if test -n "$CC"; then
880   echo "$ac_t""$CC" 1>&6
881 else
882   echo "$ac_t""no" 1>&6
883 fi
884  ;;
885     esac
886   fi
887   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
888 fi
889
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
892
893 ac_ext=c
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
899
900 cat > conftest.$ac_ext << EOF
901
902 #line 903 "configure"
903 #include "confdefs.h"
904
905 main(){return(0);}
906 EOF
907 if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908   ac_cv_prog_cc_works=yes
909   # If we can't run a trivial program, we are probably using a cross compiler.
910   if (./conftest; exit) 2>/dev/null; then
911     ac_cv_prog_cc_cross=no
912   else
913     ac_cv_prog_cc_cross=yes
914   fi
915 else
916   echo "configure: failed program was:" >&5
917   cat conftest.$ac_ext >&5
918   ac_cv_prog_cc_works=no
919 fi
920 rm -fr conftest*
921 ac_ext=c
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp='$CPP $CPPFLAGS'
924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling=$ac_cv_prog_cc_cross
927
928 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
929 if test $ac_cv_prog_cc_works = no; then
930   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
931 fi
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
935 cross_compiling=$ac_cv_prog_cc_cross
936
937 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
940   echo $ac_n "(cached) $ac_c" 1>&6
941 else
942   cat > conftest.c <<EOF
943 #ifdef __GNUC__
944   yes;
945 #endif
946 EOF
947 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
948   ac_cv_prog_gcc=yes
949 else
950   ac_cv_prog_gcc=no
951 fi
952 fi
953
954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
955
956 if test $ac_cv_prog_gcc = yes; then
957   GCC=yes
958 else
959   GCC=
960 fi
961
962 ac_test_CFLAGS="${CFLAGS+set}"
963 ac_save_CFLAGS="$CFLAGS"
964 CFLAGS=
965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
966 echo "configure:967: checking whether ${CC-cc} accepts -g" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   echo 'void f(){}' > conftest.c
971 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
972   ac_cv_prog_cc_g=yes
973 else
974   ac_cv_prog_cc_g=no
975 fi
976 rm -f conftest*
977
978 fi
979
980 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
981 if test "$ac_test_CFLAGS" = set; then
982   CFLAGS="$ac_save_CFLAGS"
983 elif test $ac_cv_prog_cc_g = yes; then
984   if test "$GCC" = yes; then
985     CFLAGS="-g -O2"
986   else
987     CFLAGS="-g"
988   fi
989 else
990   if test "$GCC" = yes; then
991     CFLAGS="-O2"
992   else
993     CFLAGS=
994   fi
995 fi
996
997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
998 echo "configure:999: checking how to run the C preprocessor" >&5
999 # On Suns, sometimes $CPP names a directory.
1000 if test -n "$CPP" && test -d "$CPP"; then
1001   CPP=
1002 fi
1003 if test -z "$CPP"; then
1004 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1005   echo $ac_n "(cached) $ac_c" 1>&6
1006 else
1007     # This must be in double quotes, not single quotes, because CPP may get
1008   # substituted into the Makefile and "${CC-cc}" will confuse make.
1009   CPP="${CC-cc} -E"
1010   # On the NeXT, cc -E runs the code through the compiler's parser,
1011   # not just through cpp.
1012   cat > conftest.$ac_ext <<EOF
1013 #include <sys/types.h>
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1016 #include <assert.h>
1017 Syntax Error
1018 EOF
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1023   :
1024 else
1025   echo "$ac_err" >&5
1026   echo "configure: failed program was:" >&5
1027   cat conftest.$ac_ext >&5
1028   rm -rf conftest*
1029   CPP="${CC-cc} -E -traditional-cpp"
1030   cat > conftest.$ac_ext <<EOF
1031 #include <sys/types.h>
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 #include <assert.h>
1035 Syntax Error
1036 EOF
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1040 if test -z "$ac_err"; then
1041   :
1042 else
1043   echo "$ac_err" >&5
1044   echo "configure: failed program was:" >&5
1045   cat conftest.$ac_ext >&5
1046   rm -rf conftest*
1047   CPP="${CC-cc} -nologo -E"
1048   cat > conftest.$ac_ext <<EOF
1049 #include <sys/types.h>
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 #include <assert.h>
1053 Syntax Error
1054 EOF
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1059   :
1060 else
1061   echo "$ac_err" >&5
1062   echo "configure: failed program was:" >&5
1063   cat conftest.$ac_ext >&5
1064   rm -rf conftest*
1065   CPP=/lib/cpp
1066 fi
1067 rm -f conftest*
1068 fi
1069 rm -f conftest*
1070 fi
1071 rm -f conftest*
1072   ac_cv_prog_CPP="$CPP"
1073 fi
1074   CPP="$ac_cv_prog_CPP"
1075 else
1076   ac_cv_prog_CPP="$CPP"
1077 fi
1078 echo "$ac_t""$CPP" 1>&6
1079
1080
1081
1082
1083 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1084 echo "configure:1085: checking for mingw32 environment" >&5
1085 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091
1092 int main() {
1093 return __MINGW32__;
1094 ; return 0; }
1095 EOF
1096 if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1097   rm -rf conftest*
1098   ac_cv_mingw32=yes
1099 else
1100   echo "configure: failed program was:" >&5
1101   cat conftest.$ac_ext >&5
1102   rm -rf conftest*
1103   ac_cv_mingw32=no
1104 fi
1105 rm -f conftest*
1106 rm -f conftest*
1107 fi
1108
1109 echo "$ac_t""$ac_cv_mingw32" 1>&6
1110 MINGW32=
1111 test "$ac_cv_mingw32" = yes && MINGW32=yes
1112 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1113 echo "configure:1114: checking for Cygwin environment" >&5
1114 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1115   echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117   cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120
1121 int main() {
1122
1123 #ifndef __CYGWIN__
1124 #define __CYGWIN__ __CYGWIN32__
1125 #endif
1126 return __CYGWIN__;
1127 ; return 0; }
1128 EOF
1129 if { (eval echo configure:1130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130   rm -rf conftest*
1131   ac_cv_cygwin=yes
1132 else
1133   echo "configure: failed program was:" >&5
1134   cat conftest.$ac_ext >&5
1135   rm -rf conftest*
1136   ac_cv_cygwin=no
1137 fi
1138 rm -f conftest*
1139 rm -f conftest*
1140 fi
1141
1142 echo "$ac_t""$ac_cv_cygwin" 1>&6
1143 CYGWIN=
1144 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1145
1146 if test "$MINGW32" = "yes"; then
1147   target_type=mingw
1148 else
1149   if test "$CYGWIN" = "yes"; then
1150     target_type=cygwin
1151   else
1152     target_type=unix
1153   fi
1154 fi
1155
1156
1157 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1158 if test "${enable_mingw32+set}" = set; then
1159   enableval="$enable_mingw32"
1160   if test $enableval = yes; then
1161   target_type=mingw
1162 fi
1163 fi
1164
1165
1166 if test $target_type = mingw; then
1167   WIN_ONLY=
1168   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1169   PTHREAD_LIB=-lpthreadGC
1170   echo "Using mingw32 (Win32 GUI)"
1171 else
1172   WIN_ONLY=#
1173   if test $target_type = cygwin; then
1174     SPECIAL_CFLAGS="-mno-win32"
1175     PTHREAD_LIB=
1176     echo "Using Cygnus (Win32 command line)"
1177   else
1178     SPECIAL_CFLAGS=
1179     PTHREAD_LIB=-lpthread
1180   fi
1181 fi
1182
1183
1184 old_CFLAGS_nospecial=$CFLAGS
1185 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1186
1187 # Hack to force AutoConf to use the CFLAGS we just set
1188 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1191
1192
1193
1194 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1195 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1196 echo "configure:1197: checking for pthread.h" >&5
1197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1198   echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200   cat > conftest.$ac_ext <<EOF
1201 #include <sys/types.h>
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <pthread.h>
1205 EOF
1206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1207 { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1209 if test -z "$ac_err"; then
1210   rm -rf conftest*
1211   eval "ac_cv_header_$ac_safe=yes"
1212 else
1213   echo "$ac_err" >&5
1214   echo "configure: failed program was:" >&5
1215   cat conftest.$ac_ext >&5
1216   rm -rf conftest*
1217   eval "ac_cv_header_$ac_safe=no"
1218 fi
1219 rm -f conftest*
1220 fi
1221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1222   echo "$ac_t""yes" 1>&6
1223   have_pthread=yes
1224 else
1225   echo "$ac_t""no" 1>&6
1226 have_pthread=no
1227 fi
1228
1229
1230 # Check whether --enable-pthread or --disable-pthread was given.
1231 if test "${enable_pthread+set}" = set; then
1232   enableval="$enable_pthread"
1233   if test $enableval = no; then
1234   # Disable pthreads
1235   have_pthread=no
1236 fi
1237 fi
1238
1239
1240 if test $have_pthread = yes; then
1241   PTHREAD_ONLY=
1242   cat >> confdefs.h <<\EOF
1243 #define FEATURE_PTHREAD 1
1244 EOF
1245
1246   echo Using POSIX threads
1247   if test "$GCC" = "yes"; then
1248     # Set a GCC specific switch:
1249     if test "$target_type" = "unix"; then
1250       # This compiler switch makes Linux thread-safe
1251       # Don't know about other OS's?  Is this switch
1252       # supported?
1253       PTHREAD_LIB=
1254       SPECIAL_CFLAGS="-pthread"
1255     fi
1256   fi
1257 else
1258   PTHREAD_ONLY=#
1259   echo Using native threads
1260 fi
1261
1262
1263
1264
1265
1266 ac_aux_dir=
1267 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1268   if test -f $ac_dir/install-sh; then
1269     ac_aux_dir=$ac_dir
1270     ac_install_sh="$ac_aux_dir/install-sh -c"
1271     break
1272   elif test -f $ac_dir/install.sh; then
1273     ac_aux_dir=$ac_dir
1274     ac_install_sh="$ac_aux_dir/install.sh -c"
1275     break
1276   fi
1277 done
1278 if test -z "$ac_aux_dir"; then
1279   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1280 fi
1281 case "`uname -s 2> /dev/null`" in
1282 OS/2)
1283   if test $ac_aux_dir != E:\bin ; then
1284     for i in config.sub config.guess mkinstalldirs; do
1285       cp -f E:\bin/$i $ac_aux_dir/
1286     done
1287   fi
1288   ;;
1289 esac
1290 ac_config_guess=$ac_aux_dir/config.guess
1291 ac_config_sub=$ac_aux_dir/config.sub
1292 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1293
1294
1295 # Make sure we can run config.sub.
1296 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1297 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1298 fi
1299
1300 echo $ac_n "checking host system type""... $ac_c" 1>&6
1301 echo "configure:1302: checking host system type" >&5
1302
1303 host_alias=$host
1304 case "$host_alias" in
1305 NONE)
1306   case $nonopt in
1307   NONE)
1308     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1309     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1310     fi ;;
1311   *) host_alias=$nonopt ;;
1312   esac ;;
1313 esac
1314
1315 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1316 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$ac_t""$host" 1>&6
1320
1321
1322 SOCKET_LIB=
1323
1324 case "$host" in
1325 *-solaris*) SOCKET_LIB=-lsocket -lnsl
1326             cat >> confdefs.h <<\EOF
1327 #define __EXTENSIONS__ 1
1328 EOF
1329
1330             if test "$GCC" = "yes"; then
1331               # Set a GCC specific switch:
1332               # This compiler switch makes Solaris thread-safe
1333               PTHREAD_LIB=
1334               SPECIAL_CFLAGS="-pthreads"
1335             else
1336               # What do we do without GCC? Guess this:
1337               SPECIAL_CFLAGS="-D_REENTRANT"
1338             fi
1339 ;;
1340 esac
1341
1342
1343
1344
1345 case "$host" in
1346 *-os2-emx*) SOCKET_LIB=-lsocket
1347 ;;
1348 esac
1349
1350
1351
1352
1353
1354
1355
1356 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1357 echo "configure:1358: checking for executable suffix" >&5
1358 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1359   echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361   if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
1362   ac_cv_exeext=.exe
1363 else
1364   rm -f conftest*
1365   echo 'int main () { return 0; }' > conftest.$ac_ext
1366   ac_cv_exeext=
1367   if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1368     for file in conftest.*; do
1369       case $file in
1370       *.c | *.o | *.obj) ;;
1371       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1372       esac
1373     done
1374   else
1375     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1376   fi
1377   rm -f conftest*
1378   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1379 fi
1380 fi
1381
1382 EXEEXT=""
1383 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1384 echo "$ac_t""${ac_cv_exeext}" 1>&6
1385 ac_exeext=$EXEEXT
1386
1387 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1388 echo "configure:1389: checking for object suffix" >&5
1389 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1390   echo $ac_n "(cached) $ac_c" 1>&6
1391 else
1392   rm -f conftest*
1393 echo 'int i = 1;' > conftest.$ac_ext
1394 if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395   for ac_file in conftest.*; do
1396     case $ac_file in
1397     *.c) ;;
1398     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1399     esac
1400   done
1401 else
1402   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1403 fi
1404 rm -f conftest*
1405 fi
1406
1407 echo "$ac_t""$ac_cv_objext" 1>&6
1408 OBJEXT=$ac_cv_objext
1409 ac_objext=$ac_cv_objext
1410
1411 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ANSI C header files" >&5
1413 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   cat > conftest.$ac_ext <<EOF
1417 #include <sys/types.h>
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 #include <stdlib.h>
1421 #include <stdarg.h>
1422 #include <string.h>
1423 #include <float.h>
1424 EOF
1425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1426 { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1428 if test -z "$ac_err"; then
1429   rm -rf conftest*
1430   ac_cv_header_stdc=yes
1431 else
1432   echo "$ac_err" >&5
1433   echo "configure: failed program was:" >&5
1434   cat conftest.$ac_ext >&5
1435   rm -rf conftest*
1436   ac_cv_header_stdc=no
1437 fi
1438 rm -f conftest*
1439
1440 if test $ac_cv_header_stdc = yes; then
1441   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 #include <string.h>
1446 EOF
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448   egrep "memchr" >/dev/null 2>&1; then
1449   :
1450 else
1451   rm -rf conftest*
1452   ac_cv_header_stdc=no
1453 fi
1454 rm -f conftest*
1455
1456 fi
1457
1458 if test $ac_cv_header_stdc = yes; then
1459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <stdlib.h>
1464 EOF
1465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1466   egrep "free" >/dev/null 2>&1; then
1467   :
1468 else
1469   rm -rf conftest*
1470   ac_cv_header_stdc=no
1471 fi
1472 rm -f conftest*
1473
1474 fi
1475
1476 if test $ac_cv_header_stdc = yes; then
1477   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1478 if test "$cross_compiling" = yes; then
1479   :
1480 else
1481   cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <ctype.h>
1485 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1486 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1488 int main () { int i; for (i = 0; i < 256; i++)
1489 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1490 exit (0); }
1491
1492 EOF
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1494 then
1495   :
1496 else
1497   echo "configure: failed program was:" >&5
1498   cat conftest.$ac_ext >&5
1499   rm -fr conftest*
1500   ac_cv_header_stdc=no
1501 fi
1502 rm -fr conftest*
1503 fi
1504
1505 fi
1506 fi
1507
1508 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1509 if test $ac_cv_header_stdc = yes; then
1510   cat >> confdefs.h <<\EOF
1511 #define STDC_HEADERS 1
1512 EOF
1513
1514 fi
1515
1516 echo $ac_n "checking for working const""... $ac_c" 1>&6
1517 echo "configure:1518: checking for working const" >&5
1518 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1519   echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521   cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524
1525 int main() {
1526
1527 /* Ultrix mips cc rejects this.  */
1528 typedef int charset[2]; const charset x;
1529 /* SunOS 4.1.1 cc rejects this.  */
1530 char const *const *ccp;
1531 char **p;
1532 /* NEC SVR4.0.2 mips cc rejects this.  */
1533 struct point {int x, y;};
1534 static struct point const zero = {0,0};
1535 /* AIX XL C 1.02.0.0 rejects this.
1536    It does not let you subtract one const X* pointer from another in an arm
1537    of an if-expression whose if-part is not a constant expression */
1538 const char *g = "string";
1539 ccp = &g + (g ? g-g : 0);
1540 /* HPUX 7.0 cc rejects these. */
1541 ++ccp;
1542 p = (char**) ccp;
1543 ccp = (char const *const *) p;
1544 { /* SCO 3.2v4 cc rejects this.  */
1545   char *t;
1546   char const *s = 0 ? (char *) 0 : (char const *) 0;
1547
1548   *t++ = 0;
1549 }
1550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1551   int x[] = {25, 17};
1552   const int *foo = &x[0];
1553   ++foo;
1554 }
1555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1556   typedef const int *iptr;
1557   iptr p = 0;
1558   ++p;
1559 }
1560 { /* AIX XL C 1.02.0.0 rejects this saying
1561      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1562   struct s { int j; const int *ap[3]; };
1563   struct s *b; b->j = 5;
1564 }
1565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1566   const int foo = 10;
1567 }
1568
1569 ; return 0; }
1570 EOF
1571 if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572   rm -rf conftest*
1573   ac_cv_c_const=yes
1574 else
1575   echo "configure: failed program was:" >&5
1576   cat conftest.$ac_ext >&5
1577   rm -rf conftest*
1578   ac_cv_c_const=no
1579 fi
1580 rm -f conftest*
1581 fi
1582
1583 echo "$ac_t""$ac_cv_c_const" 1>&6
1584 if test $ac_cv_c_const = no; then
1585   cat >> confdefs.h <<\EOF
1586 #define const 
1587 EOF
1588
1589 fi
1590
1591 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1592 echo "configure:1593: checking for size_t" >&5
1593 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1594   echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596   cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include <sys/types.h>
1600 #if STDC_HEADERS
1601 #include <stdlib.h>
1602 #include <stddef.h>
1603 #endif
1604 EOF
1605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1606   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1607   rm -rf conftest*
1608   ac_cv_type_size_t=yes
1609 else
1610   rm -rf conftest*
1611   ac_cv_type_size_t=no
1612 fi
1613 rm -f conftest*
1614
1615 fi
1616 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1617 if test $ac_cv_type_size_t = no; then
1618   cat >> confdefs.h <<\EOF
1619 #define size_t unsigned
1620 EOF
1621
1622 fi
1623
1624
1625
1626 for ac_func in strerror bcopy memmove
1627 do
1628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1629 echo "configure:1630: checking for $ac_func" >&5
1630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1631   echo $ac_n "(cached) $ac_c" 1>&6
1632 else
1633   cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 /* System header to define __stub macros and hopefully few prototypes,
1637     which can conflict with char $ac_func(); below.  */
1638 #include <assert.h>
1639 /* Override any gcc2 internal prototype to avoid an error.  */
1640 /* We use char because int might match the return type of a gcc2
1641     builtin and then its argument prototype would still apply.  */
1642 char $ac_func();
1643
1644 int main() {
1645
1646 /* The GNU C library defines this for functions which it implements
1647     to always fail with ENOSYS.  Some functions are actually named
1648     something starting with __ and the normal name is an alias.  */
1649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1650 choke me
1651 #else
1652 $ac_func();
1653 #endif
1654
1655 ; return 0; }
1656 EOF
1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1658   rm -rf conftest*
1659   eval "ac_cv_func_$ac_func=yes"
1660 else
1661   echo "configure: failed program was:" >&5
1662   cat conftest.$ac_ext >&5
1663   rm -rf conftest*
1664   eval "ac_cv_func_$ac_func=no"
1665 fi
1666 rm -f conftest*
1667 fi
1668
1669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1670   echo "$ac_t""yes" 1>&6
1671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1672   cat >> confdefs.h <<EOF
1673 #define $ac_tr_func 1
1674 EOF
1675  
1676 else
1677   echo "$ac_t""no" 1>&6
1678 fi
1679 done
1680
1681
1682
1683 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1684 echo "configure:1685: checking for pcre_compile in -lpcre" >&5
1685 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1687   echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689   ac_save_LIBS="$LIBS"
1690 LIBS="-lpcre  $LIBS"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* Override any gcc2 internal prototype to avoid an error.  */
1695 /* We use char because int might match the return type of a gcc2
1696     builtin and then its argument prototype would still apply.  */
1697 char pcre_compile();
1698
1699 int main() {
1700 pcre_compile()
1701 ; return 0; }
1702 EOF
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1704   rm -rf conftest*
1705   eval "ac_cv_lib_$ac_lib_var=yes"
1706 else
1707   echo "configure: failed program was:" >&5
1708   cat conftest.$ac_ext >&5
1709   rm -rf conftest*
1710   eval "ac_cv_lib_$ac_lib_var=no"
1711 fi
1712 rm -f conftest*
1713 LIBS="$ac_save_LIBS"
1714
1715 fi
1716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1717   echo "$ac_t""yes" 1>&6
1718   ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1719 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1720 echo "configure:1721: checking for pcre.h" >&5
1721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1722   echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724   cat > conftest.$ac_ext <<EOF
1725 #include <sys/types.h>
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 #include <pcre.h>
1729 EOF
1730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1734   rm -rf conftest*
1735   eval "ac_cv_header_$ac_safe=yes"
1736 else
1737   echo "$ac_err" >&5
1738   echo "configure: failed program was:" >&5
1739   cat conftest.$ac_ext >&5
1740   rm -rf conftest*
1741   eval "ac_cv_header_$ac_safe=no"
1742 fi
1743 rm -f conftest*
1744 fi
1745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1746   echo "$ac_t""yes" 1>&6
1747   have_pcre=yes
1748 else
1749   echo "$ac_t""no" 1>&6
1750 have_pcre=no
1751 fi
1752
1753 else
1754   echo "$ac_t""no" 1>&6
1755 have_pcre=no
1756 fi
1757
1758 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1759 echo "configure:1760: checking for regcomp in -lpcreposix" >&5
1760 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762   echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764   ac_save_LIBS="$LIBS"
1765 LIBS="-lpcreposix -lpcre $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error.  */
1770 /* We use char because int might match the return type of a gcc2
1771     builtin and then its argument prototype would still apply.  */
1772 char regcomp();
1773
1774 int main() {
1775 regcomp()
1776 ; return 0; }
1777 EOF
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779   rm -rf conftest*
1780   eval "ac_cv_lib_$ac_lib_var=yes"
1781 else
1782   echo "configure: failed program was:" >&5
1783   cat conftest.$ac_ext >&5
1784   rm -rf conftest*
1785   eval "ac_cv_lib_$ac_lib_var=no"
1786 fi
1787 rm -f conftest*
1788 LIBS="$ac_save_LIBS"
1789
1790 fi
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792   echo "$ac_t""yes" 1>&6
1793   ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1794 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1795 echo "configure:1796: checking for pcreposix.h" >&5
1796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1797   echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799   cat > conftest.$ac_ext <<EOF
1800 #include <sys/types.h>
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <pcreposix.h>
1804 EOF
1805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1806 { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1808 if test -z "$ac_err"; then
1809   rm -rf conftest*
1810   eval "ac_cv_header_$ac_safe=yes"
1811 else
1812   echo "$ac_err" >&5
1813   echo "configure: failed program was:" >&5
1814   cat conftest.$ac_ext >&5
1815   rm -rf conftest*
1816   eval "ac_cv_header_$ac_safe=no"
1817 fi
1818 rm -f conftest*
1819 fi
1820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1821   echo "$ac_t""yes" 1>&6
1822   have_pcreposix=yes
1823 else
1824   echo "$ac_t""no" 1>&6
1825 have_pcreposix=no
1826 fi
1827
1828 else
1829   echo "$ac_t""no" 1>&6
1830 have_pcreposix=no
1831 fi
1832
1833 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1834 echo "configure:1835: checking for pcrs_compile in -lpcrs" >&5
1835 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1837   echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839   ac_save_LIBS="$LIBS"
1840 LIBS="-lpcrs  $LIBS"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* Override any gcc2 internal prototype to avoid an error.  */
1845 /* We use char because int might match the return type of a gcc2
1846     builtin and then its argument prototype would still apply.  */
1847 char pcrs_compile();
1848
1849 int main() {
1850 pcrs_compile()
1851 ; return 0; }
1852 EOF
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1854   rm -rf conftest*
1855   eval "ac_cv_lib_$ac_lib_var=yes"
1856 else
1857   echo "configure: failed program was:" >&5
1858   cat conftest.$ac_ext >&5
1859   rm -rf conftest*
1860   eval "ac_cv_lib_$ac_lib_var=no"
1861 fi
1862 rm -f conftest*
1863 LIBS="$ac_save_LIBS"
1864
1865 fi
1866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1867   echo "$ac_t""yes" 1>&6
1868   ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1869 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1870 echo "configure:1871: checking for pcrs.h" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1872   echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874   cat > conftest.$ac_ext <<EOF
1875 #include <sys/types.h>
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1878 #include <pcrs.h>
1879 EOF
1880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1881 { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1883 if test -z "$ac_err"; then
1884   rm -rf conftest*
1885   eval "ac_cv_header_$ac_safe=yes"
1886 else
1887   echo "$ac_err" >&5
1888   echo "configure: failed program was:" >&5
1889   cat conftest.$ac_ext >&5
1890   rm -rf conftest*
1891   eval "ac_cv_header_$ac_safe=no"
1892 fi
1893 rm -f conftest*
1894 fi
1895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1896   echo "$ac_t""yes" 1>&6
1897   have_pcrs=yes
1898 else
1899   echo "$ac_t""no" 1>&6
1900 have_pcrs=no
1901 fi
1902
1903 else
1904   echo "$ac_t""no" 1>&6
1905 have_pcrs=no
1906 fi
1907
1908
1909
1910
1911 cat >> confdefs.h <<\EOF
1912 #define __MT__ 1
1913 EOF
1914
1915
1916
1917 # Check whether --enable-toggle or --disable-toggle was given.
1918 if test "${enable_toggle+set}" = set; then
1919   enableval="$enable_toggle"
1920   if test $enableval = yes; then
1921   cat >> confdefs.h <<\EOF
1922 #define FEATURE_TOGGLE 1
1923 EOF
1924
1925 fi
1926 else
1927   cat >> confdefs.h <<\EOF
1928 #define FEATURE_TOGGLE 1
1929 EOF
1930
1931 fi
1932
1933
1934 # Check whether --enable-gzip or --disable-gzip was given.
1935 if test "${enable_gzip+set}" = set; then
1936   enableval="$enable_gzip"
1937   if test $enableval = "no"; then
1938   cat >> confdefs.h <<\EOF
1939 #define FEATURE_DENY_GZIP 1
1940 EOF
1941
1942 fi
1943 fi
1944
1945
1946 # Check whether --enable-force or --disable-force was given.
1947 if test "${enable_force+set}" = set; then
1948   enableval="$enable_force"
1949   if test $enableval = yes; then
1950   cat >> confdefs.h <<\EOF
1951 #define FEATURE_FORCE_LOAD 1
1952 EOF
1953
1954 fi
1955 else
1956   cat >> confdefs.h <<\EOF
1957 #define FEATURE_FORCE_LOAD 1
1958 EOF
1959
1960 fi
1961
1962
1963 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1964 if test "${enable_fast_redirects+set}" = set; then
1965   enableval="$enable_fast_redirects"
1966   if test $enableval = yes; then
1967   cat >> confdefs.h <<\EOF
1968 #define FEATURE_FAST_REDIRECTS 1
1969 EOF
1970
1971 fi
1972 else
1973   cat >> confdefs.h <<\EOF
1974 #define FEATURE_FAST_REDIRECTS 1
1975 EOF
1976
1977 fi
1978
1979
1980 # Check whether --enable-killpopup or --disable-killpopup was given.
1981 if test "${enable_killpopup+set}" = set; then
1982   enableval="$enable_killpopup"
1983   if test $enableval = yes; then
1984   cat >> confdefs.h <<\EOF
1985 #define FEATURE_KILL_POPUPS 1
1986 EOF
1987
1988 fi
1989 else
1990   cat >> confdefs.h <<\EOF
1991 #define FEATURE_KILL_POPUPS 1
1992 EOF
1993
1994 fi
1995
1996
1997 # Check whether --enable-stats or --disable-stats was given.
1998 if test "${enable_stats+set}" = set; then
1999   enableval="$enable_stats"
2000   if test $enableval = yes; then
2001   cat >> confdefs.h <<\EOF
2002 #define FEATURE_STATISTICS 1
2003 EOF
2004
2005 fi
2006 else
2007   cat >> confdefs.h <<\EOF
2008 #define FEATURE_STATISTICS 1
2009 EOF
2010
2011 fi
2012
2013
2014 # Check whether --enable-ie-images or --disable-ie-images was given.
2015 if test "${enable_ie_images+set}" = set; then
2016   enableval="$enable_ie_images"
2017   if test $enableval = yes; then
2018   cat >> confdefs.h <<\EOF
2019 #define FEATURE_IMAGE_DETECT_MSIE 1
2020 EOF
2021
2022 fi
2023 else
2024   cat >> confdefs.h <<\EOF
2025 #define FEATURE_IMAGE_DETECT_MSIE 1
2026 EOF
2027
2028 fi
2029
2030
2031 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2032 if test "${enable_image_blocking+set}" = set; then
2033   enableval="$enable_image_blocking"
2034   if test $enableval = yes; then
2035   cat >> confdefs.h <<\EOF
2036 #define FEATURE_IMAGE_BLOCKING 1
2037 EOF
2038
2039 fi
2040 else
2041   cat >> confdefs.h <<\EOF
2042 #define FEATURE_IMAGE_BLOCKING 1
2043 EOF
2044
2045 fi
2046
2047
2048 # Check whether --enable-acl-files or --disable-acl-files was given.
2049 if test "${enable_acl_files+set}" = set; then
2050   enableval="$enable_acl_files"
2051   if test $enableval = yes; then
2052   cat >> confdefs.h <<\EOF
2053 #define FEATURE_ACL 1
2054 EOF
2055
2056 fi
2057 else
2058   cat >> confdefs.h <<\EOF
2059 #define FEATURE_ACL 1
2060 EOF
2061
2062 fi
2063
2064
2065 # Check whether --enable-trust-files or --disable-trust-files was given.
2066 if test "${enable_trust_files+set}" = set; then
2067   enableval="$enable_trust_files"
2068   if test $enableval = yes; then
2069   cat >> confdefs.h <<\EOF
2070 #define FEATURE_TRUST 1
2071 EOF
2072
2073 fi
2074 else
2075   cat >> confdefs.h <<\EOF
2076 #define FEATURE_TRUST 1
2077 EOF
2078
2079 fi
2080
2081
2082 # Check whether --enable-jar-files or --disable-jar-files was given.
2083 if test "${enable_jar_files+set}" = set; then
2084   enableval="$enable_jar_files"
2085   if test $enableval = yes; then
2086   cat >> confdefs.h <<\EOF
2087 #define FEATURE_COOKIE_JAR 1
2088 EOF
2089
2090 fi
2091 else
2092   cat >> confdefs.h <<\EOF
2093 #define FEATURE_COOKIE_JAR 1
2094 EOF
2095
2096 fi
2097
2098
2099
2100 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2101 if test "${enable_regex_matching+set}" = set; then
2102   enableval="$enable_regex_matching"
2103    regex_matching=$enableval 
2104 else
2105    regex_matching=pcre 
2106 fi
2107
2108
2109 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2110 if test "${enable_dynamic_pcre+set}" = set; then
2111   enableval="$enable_dynamic_pcre"
2112    if test $enableval = "no"; then have_pcre=no; fi 
2113 fi
2114
2115
2116 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2117 if test "${enable_dynamic_pcrs+set}" = set; then
2118   enableval="$enable_dynamic_pcrs"
2119    if test $enableval = "no"; then have_pcrs=no; fi 
2120 fi
2121
2122
2123
2124 # Is the regex URL matching based on libpcreposix, but we
2125 # don't have that library?
2126 #
2127 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2128   dont_miss_pcreposix=yes
2129 else
2130   dont_miss_pcreposix=no
2131 fi
2132
2133 # If we have libpcre and either we also have pcreposix or
2134 # we don't need pcreposix, then link pcre dynamically; else
2135 # build it and link statically
2136 #
2137 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2138   echo "using libpcre"
2139   pcre_dyn=yes
2140   STATIC_PCRE_ONLY=#
2141   LIBS="$LIBS -lpcre"
2142 else
2143   echo "using built-in static pcre"
2144   pcre_dyn=no
2145   cat >> confdefs.h <<\EOF
2146 #define STATIC_PCRE 1
2147 EOF
2148
2149   STATIC_PCRE_ONLY=
2150 fi
2151
2152 # If we have libpcrs and pcre is linked dynamically
2153 # then also link pcrs dynamically, else build and link
2154 # pcrs statically
2155 #
2156 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2157   echo "using libpcrs"
2158   STATIC_PCRS_ONLY=#
2159   LIBS="$LIBS -lpcrs"
2160 else
2161   echo "using built-in static pcrs"
2162   cat >> confdefs.h <<\EOF
2163 #define STATIC_PCRS 1
2164 EOF
2165
2166   STATIC_PCRS_ONLY=
2167 fi
2168
2169 # Which method should be used for URL matching?
2170 # pcre, gnu regex or prefix matching?
2171 #
2172 if test $regex_matching = "gnu"; then
2173   echo "using gnu regex for URL matching"
2174   cat >> confdefs.h <<\EOF
2175 #define REGEX_GNU 1
2176 EOF
2177
2178   GNU_REGEX_ONLY=
2179   PCRE_REGEX_ONLY=#
2180 elif test $regex_matching = "pcre"; then
2181   echo "using pcre regex for URL matching"
2182   cat >> confdefs.h <<\EOF
2183 #define REGEX_PCRE 1
2184 EOF
2185
2186   GNU_REGEX_ONLY=#
2187   PCRE_REGEX_ONLY=
2188   if test $pcre_dyn = "yes"; then
2189     LIBS="$LIBS -lpcreposix"
2190   fi
2191 else
2192   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2193   GNU_REGEX_ONLY=#
2194   PCRE_REGEX_ONLY=#
2195 fi
2196
2197
2198
2199
2200
2201
2202
2203 CFLAGS=$old_CFLAGS_nospecial
2204
2205
2206
2207
2208 trap '' 1 2 15
2209 cat > confcache <<\EOF
2210 # This file is a shell script that caches the results of configure
2211 # tests run on this system so they can be shared between configure
2212 # scripts and configure runs.  It is not useful on other systems.
2213 # If it contains results you don't want to keep, you may remove or edit it.
2214 #
2215 # By default, configure uses ./config.cache as the cache file,
2216 # creating it if it does not exist already.  You can give configure
2217 # the --cache-file=FILE option to use a different cache file; that is
2218 # what configure does when it calls configure scripts in
2219 # subdirectories, so they share the cache.
2220 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2221 # config.status only pays attention to the cache file if you give it the
2222 # --recheck option to rerun configure.
2223 #
2224 EOF
2225 # The following way of writing the cache mishandles newlines in values,
2226 # but we know of no workaround that is simple, portable, and efficient.
2227 # So, don't put newlines in cache variables' values.
2228 # Ultrix sh set writes to stderr and can't be redirected directly,
2229 # and sets the high bit in the cache file unless we assign to the vars.
2230 (set) 2>&1 |
2231   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2232   *ac_space=\ *)
2233     # `set' does not quote correctly, so add quotes (double-quote substitution
2234     # turns \\\\ into \\, and sed turns \\ into \).
2235     sed -n \
2236       -e "s/'/'\\\\''/g" \
2237       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2238     ;;
2239   *)
2240     # `set' quotes correctly as required by POSIX, so do not add quotes.
2241     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2242     ;;
2243   esac >> confcache
2244 if cmp -s $cache_file confcache; then
2245   :
2246 else
2247   if test -w $cache_file; then
2248     echo "updating cache $cache_file"
2249     cat confcache > $cache_file
2250   else
2251     echo "not updating unwritable cache $cache_file"
2252   fi
2253 fi
2254 rm -f confcache
2255
2256 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2257
2258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2259 # Let make expand exec_prefix.
2260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2261
2262 # Any assignment to VPATH causes Sun make to only execute
2263 # the first set of double-colon rules, so remove it if not needed.
2264 # If there is a colon in the path, we need to keep it.
2265 if test "x$srcdir" = x.; then
2266   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2267 fi
2268
2269 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2270
2271 DEFS=-DHAVE_CONFIG_H
2272
2273 # Without the "./", some shells look in PATH for config.status.
2274 : ${CONFIG_STATUS=./config.status}
2275
2276 echo creating $CONFIG_STATUS
2277 rm -f $CONFIG_STATUS
2278 cat > $CONFIG_STATUS <<EOF
2279 #! /bin/sh
2280 # Generated automatically by configure.
2281 # Run this file to recreate the current configuration.
2282 # This directory was configured as follows,
2283 EOF
2284 echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
2285 cat >> $CONFIG_STATUS <<EOF
2286 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2287 #
2288 # $0 $ac_configure_args
2289 #
2290 # Compiler output produced by configure, useful for debugging
2291 # configure, is in ./config.log if it exists.
2292
2293 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2294 for ac_option
2295 do
2296   case "\$ac_option" in
2297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2298     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2299     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2300   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2301     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2302     exit 0 ;;
2303   -help | --help | --hel | --he | --h)
2304     echo "\$ac_cs_usage"; exit 0 ;;
2305   *) echo "\$ac_cs_usage"; exit 1 ;;
2306   esac
2307 done
2308
2309 ac_given_srcdir=$srcdir
2310
2311 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2312 EOF
2313 cat >> $CONFIG_STATUS <<EOF
2314
2315 # Protect against being on the right side of a sed subst in config.status.
2316 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2317  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2318 $ac_vpsub
2319 $extrasub
2320 s,/bin/sh,${CONFIG_SHELL-/bin/sh},g
2321 s%@SHELL@%$SHELL%g
2322 s%@CFLAGS@%$CFLAGS%g
2323 s%@CPPFLAGS@%$CPPFLAGS%g
2324 s%@CXXFLAGS@%$CXXFLAGS%g
2325 s%@FFLAGS@%$FFLAGS%g
2326 s%@DEFS@%$DEFS%g
2327 s%@LDFLAGS@%$LDFLAGS%g
2328 s%@LIBS@%$LIBS%g
2329 s%@exec_prefix@%$exec_prefix%g
2330 s%@prefix@%$prefix%g
2331 s%@program_transform_name@%$program_transform_name%g
2332 s%@bindir@%$bindir%g
2333 s%@sbindir@%$sbindir%g
2334 s%@libexecdir@%$libexecdir%g
2335 s%@datadir@%$datadir%g
2336 s%@sysconfdir@%$sysconfdir%g
2337 s%@sharedstatedir@%$sharedstatedir%g
2338 s%@localstatedir@%$localstatedir%g
2339 s%@libdir@%$libdir%g
2340 s%@includedir@%$includedir%g
2341 s%@oldincludedir@%$oldincludedir%g
2342 s%@infodir@%$infodir%g
2343 s%@mandir@%$mandir%g
2344 s%@PATH_IFS@%$PATH_IFS%g
2345 s%@EXEEXT@%$EXEEXT%g
2346 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2347 s%@VERSION_MINOR@%$VERSION_MINOR%g
2348 s%@VERSION_POINT@%$VERSION_POINT%g
2349 s%@CC@%$CC%g
2350 s%@CPP@%$CPP%g
2351 s%@WIN_ONLY@%$WIN_ONLY%g
2352 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2353 s%@host@%$host%g
2354 s%@host_alias@%$host_alias%g
2355 s%@host_cpu@%$host_cpu%g
2356 s%@host_vendor@%$host_vendor%g
2357 s%@host_os@%$host_os%g
2358 s%@SOCKET_LIB@%$SOCKET_LIB%g
2359 s%@OBJEXT@%$OBJEXT%g
2360 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2361 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2362 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2363 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2364 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2365 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2366
2367 CEOF
2368 EOF
2369
2370 cat >> $CONFIG_STATUS <<\EOF
2371
2372 # Split the substitutions into bite-sized pieces for seds with
2373 # small command number limits, like on Digital OSF/1 and HP-UX.
2374 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2375 ac_file=1 # Number of current file.
2376 ac_beg=1 # First line for current file.
2377 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2378 ac_more_lines=:
2379 ac_sed_cmds=""
2380 while $ac_more_lines; do
2381   if test $ac_beg -gt 1; then
2382     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2383   else
2384     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2385   fi
2386   if test ! -s conftest.s$ac_file; then
2387     ac_more_lines=false
2388     rm -f conftest.s$ac_file
2389   else
2390     if test -z "$ac_sed_cmds"; then
2391       ac_sed_cmds="sed -f conftest.s$ac_file"
2392     else
2393       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2394     fi
2395     ac_file=`expr $ac_file + 1`
2396     ac_beg=$ac_end
2397     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2398   fi
2399 done
2400 if test -z "$ac_sed_cmds"; then
2401   ac_sed_cmds=cat
2402 fi
2403 EOF
2404
2405 cat >> $CONFIG_STATUS <<EOF
2406
2407 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2408 EOF
2409 cat >> $CONFIG_STATUS <<\EOF
2410 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2411   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2412   case "$ac_file" in
2413   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2414        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2415   *) ac_file_in="${ac_file}.in" ;;
2416   esac
2417
2418   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2419
2420   # Remove last slash and all that follows it.  Not all systems have dirname.
2421   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2422   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2423     # The file is in a subdirectory.
2424     test ! -d "$ac_dir" && mkdir "$ac_dir"
2425     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2426     # A "../" for each directory in $ac_dir_suffix.
2427     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2428   else
2429     ac_dir_suffix= ac_dots=
2430   fi
2431
2432   case "$ac_given_srcdir" in
2433   .)  srcdir=.
2434       if test -z "$ac_dots"; then top_srcdir=.
2435       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2436   /* | [A-Za-z]:*)
2437     srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2438   *) # Relative path.
2439     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2440     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2441   esac
2442
2443
2444   echo creating "$ac_file"
2445   rm -f "$ac_file"
2446   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2447   case "$ac_file" in
2448   *Makefile*) ac_comsub="1i\\
2449 # $configure_input" ;;
2450   *) ac_comsub= ;;
2451   esac
2452
2453   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2454   sed -e "$ac_comsub
2455 s%@configure_input@%$configure_input%g
2456 s%@srcdir@%$srcdir%g
2457 s%@top_srcdir@%$top_srcdir%g
2458 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2459 fi; done
2460 rm -f conftest.s*
2461
2462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2464 #
2465 # ac_d sets the value in "#define NAME VALUE" lines.
2466 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2467 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2468 ac_dC='\3'
2469 ac_dD='%g'
2470 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2471 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2472 ac_uB='\([      ]\)%\1#\2define\3'
2473 ac_uC=' '
2474 ac_uD='\4%g'
2475 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2476 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2477 ac_eB='$%\1#\2define\3'
2478 ac_eC=' '
2479 ac_eD='%g'
2480
2481 if test "${CONFIG_HEADERS+set}" != set; then
2482 EOF
2483 cat >> $CONFIG_STATUS <<EOF
2484   CONFIG_HEADERS="config.h"
2485 EOF
2486 cat >> $CONFIG_STATUS <<\EOF
2487 fi
2488 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2489   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2490   case "$ac_file" in
2491   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2492        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2493   *) ac_file_in="${ac_file}.in" ;;
2494   esac
2495
2496   echo creating $ac_file
2497
2498   rm -f conftest.frag conftest.in conftest.out
2499   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2500   cat $ac_file_inputs > conftest.in
2501
2502 EOF
2503
2504 # Transform confdefs.h into a sed script conftest.vals that substitutes
2505 # the proper values into config.h.in to produce config.h.  And first:
2506 # Protect against being on the right side of a sed subst in config.status.
2507 # Protect against being in an unquoted here document in config.status.
2508 rm -f conftest.vals
2509 cat > conftest.hdr <<\EOF
2510 s/[\\&%]/\\&/g
2511 s%[\\$`]%\\&%g
2512 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2513 s%ac_d%ac_u%gp
2514 s%ac_u%ac_e%gp
2515 EOF
2516 sed -n -f conftest.hdr confdefs.h > conftest.vals
2517 rm -f conftest.hdr
2518
2519 # This sed command replaces #undef with comments.  This is necessary, for
2520 # example, in the case of _POSIX_SOURCE, which is predefined and required
2521 # on some systems where configure will not decide to define it.
2522 cat >> conftest.vals <<\EOF
2523 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2524 EOF
2525
2526 # Break up conftest.vals because some shells have a limit on
2527 # the size of here documents, and old seds have small limits too.
2528
2529 rm -f conftest.tail
2530 while :
2531 do
2532   ac_lines=`grep -c . conftest.vals`
2533   # grep -c gives empty output for an empty file on some AIX systems.
2534   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2535   # Write a limited-size here document to conftest.frag.
2536   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2537   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2538   echo 'CEOF
2539   sed -f conftest.frag conftest.in > conftest.out
2540   rm -f conftest.in
2541   mv conftest.out conftest.in
2542 ' >> $CONFIG_STATUS
2543   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2544   rm -f conftest.vals
2545   mv conftest.tail conftest.vals
2546 done
2547 rm -f conftest.vals
2548
2549 cat >> $CONFIG_STATUS <<\EOF
2550   rm -f conftest.frag conftest.h
2551   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2552   cat conftest.in >> conftest.h
2553   rm -f conftest.in
2554   if cmp -s $ac_file conftest.h 2>/dev/null; then
2555     echo "$ac_file is unchanged"
2556     rm -f conftest.h
2557   else
2558     # Remove last slash and all that follows it.  Not all systems have dirname.
2559       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2560       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2561       # The file is in a subdirectory.
2562       test ! -d "$ac_dir" && mkdir "$ac_dir"
2563     fi
2564     rm -f $ac_file
2565     mv conftest.h $ac_file
2566   fi
2567 fi; done
2568
2569 EOF
2570 cat >> $CONFIG_STATUS <<EOF
2571
2572 EOF
2573 cat >> $CONFIG_STATUS <<\EOF
2574
2575 exit 0
2576 EOF
2577 chmod +x $CONFIG_STATUS
2578 rm -fr confdefs* $ac_clean_files
2579 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2580
2581