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