more info on not hiding ip address
[privoxy.git] / configure
1 #! /bin/sh
2
3 # From configure.in Revision: 1.39 
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   --with-docbook=[yes|no|directory]     
17                            Enable docbook documentation creation 
18                            (default = yes, for gnu and linux)"
19 ac_help="$ac_help
20   --with-debug            Enable debug mode"
21 ac_help="$ac_help
22   --enable-mingw32        Use mingw32 for a Windows GUI"
23 ac_help="$ac_help
24   --disable-pthread       Don't use POSIX threads (pthreads)"
25 ac_help="$ac_help
26   --disable-toggle         Don't support temporary disable"
27 ac_help="$ac_help
28   --disable-force          Don't allow single-page disable"
29 ac_help="$ac_help
30   --disable-fast-redirects Don't support fast redirects"
31 ac_help="$ac_help
32   --disable-killpopup      Never block popups"
33 ac_help="$ac_help
34   --disable-stats          Don't keep statistics"
35 ac_help="$ac_help
36   --disable-ie-images      Don't auto-detect whether a request from MS Internet
37                            Explorer is for an image or HTML."
38 ac_help="$ac_help
39   --disable-image-blocking Don't try to figure out whether a request is 
40                            for an image or HTML - assume HTML."
41 ac_help="$ac_help
42   --disable-acl-files      Prevents the use of ACL files to control access to
43                            the proxy by IP address."
44 ac_help="$ac_help
45   --disable-trust-files    Prevents the use of trust files."
46 ac_help="$ac_help
47   --disable-jar-files      Prevents the use of jar files to capture cookies."
48 ac_help="$ac_help
49   --disable-editor         Prevents the use of the web-based actions file
50                            editor and web-based temporary disable setting."
51 ac_help="$ac_help
52   --enable-no-gifs         Use politically correct PNG format instead of GIF
53                            for built-in images. May not work with all browsers."
54 ac_help="$ac_help
55   --enable-regex-matching=pcre  Use perl-compatible regex for actionsfile
56                                 pattern matching (default)
57   --enable-regex-matching=gnu   Use gnu style regex for actionsfile pattern
58                                 matching (-> bigger binary)
59   --disable-regex-matching      Don't use regex matching, compare URL
60                                 prefix instead (won't shrink birary)"
61 ac_help="$ac_help
62   --disable-dynamic-pcre        Use the built-in, static pcre, even if
63                                 libpcre is available"
64 ac_help="$ac_help
65   --disable-dynamic-pcrs        Use the built-in, static pcrs, even if
66                                 libpcrs is available"
67
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
101
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
108
109 ac_prev=
110 for ac_option
111 do
112
113   # If the previous option needs an argument, assign it.
114   if test -n "$ac_prev"; then
115     eval "$ac_prev=\$ac_option"
116     ac_prev=
117     continue
118   fi
119
120   case "$ac_option" in
121   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122   *) ac_optarg= ;;
123   esac
124
125   # Accept the important Cygnus configure options, so we can diagnose typos.
126
127   case "$ac_option" in
128
129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
130     ac_prev=bindir ;;
131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132     bindir="$ac_optarg" ;;
133
134   -build | --build | --buil | --bui | --bu)
135     ac_prev=build ;;
136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137     build="$ac_optarg" ;;
138
139   -cache-file | --cache-file | --cache-fil | --cache-fi \
140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141     ac_prev=cache_file ;;
142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144     cache_file="$ac_optarg" ;;
145
146   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147     ac_prev=datadir ;;
148   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149   | --da=*)
150     datadir="$ac_optarg" ;;
151
152   -disable-* | --disable-*)
153     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154     # Reject names that are not valid shell variable names.
155     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157     fi
158     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159     eval "enable_${ac_feature}=no" ;;
160
161   -enable-* | --enable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     case "$ac_option" in
169       *=*) ;;
170       *) ac_optarg=yes ;;
171     esac
172     eval "enable_${ac_feature}='$ac_optarg'" ;;
173
174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176   | --exec | --exe | --ex)
177     ac_prev=exec_prefix ;;
178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180   | --exec=* | --exe=* | --ex=*)
181     exec_prefix="$ac_optarg" ;;
182
183   -gas | --gas | --ga | --g)
184     # Obsolete; use --with-gas.
185     with_gas=yes ;;
186
187   -help | --help | --hel | --he)
188     # Omit some internal or obsolete options to make the list less imposing.
189     # This message is too long to be a string in the A/UX 3.1 sh.
190     cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194   --cache-file=FILE       cache test results in FILE
195   --help                  print this message
196   --no-create             do not create output files
197   --quiet, --silent       do not print \`checking...' messages
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
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     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369     ac_prev=srcdir ;;
370   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371     srcdir="$ac_optarg" ;;
372
373   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374   | --syscon | --sysco | --sysc | --sys | --sy)
375     ac_prev=sysconfdir ;;
376   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378     sysconfdir="$ac_optarg" ;;
379
380   -target | --target | --targe | --targ | --tar | --ta | --t)
381     ac_prev=target ;;
382   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383     target="$ac_optarg" ;;
384
385   -v | -verbose | --verbose | --verbos | --verbo | --verb)
386     verbose=yes ;;
387
388   -version | --version | --versio | --versi | --vers)
389     echo "configure generated by autoconf version 2.13"
390     exit 0 ;;
391
392   -with-* | --with-*)
393     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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     case "$ac_option" in
400       *=*) ;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "with_${ac_package}='$ac_optarg'" ;;
404
405   -without-* | --without-*)
406     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     eval "with_${ac_package}=no" ;;
413
414   --x)
415     # Obsolete; use --with-x.
416     with_x=yes ;;
417
418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419   | --x-incl | --x-inc | --x-in | --x-i)
420     ac_prev=x_includes ;;
421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423     x_includes="$ac_optarg" ;;
424
425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427     ac_prev=x_libraries ;;
428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430     x_libraries="$ac_optarg" ;;
431
432   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433     ;;
434
435   *)
436     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437       echo "configure: warning: $ac_option: invalid host type" 1>&2
438     fi
439     if test "x$nonopt" != xNONE; then
440       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441     fi
442     nonopt="$ac_option"
443     ;;
444
445   esac
446 done
447
448 if test -n "$ac_prev"; then
449   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 fi
451
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463   exec 6>/dev/null
464 else
465   exec 6>&1
466 fi
467 exec 5>./config.log
468
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
473
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
478 do
479   case "$ac_arg" in
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c) ;;
482   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487   esac
488 done
489
490 # NLS nuisances.
491 # Only set these to C if already set.  These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
499
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
504
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=jcc.c
508
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511   ac_srcdir_defaulted=yes
512   # Try the directory containing this script, then its parent.
513   ac_prog=$0
514   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516   srcdir=$ac_confdir
517   if test ! -r $srcdir/$ac_unique_file; then
518     srcdir=..
519   fi
520 else
521   ac_srcdir_defaulted=no
522 fi
523 if test ! -r $srcdir/$ac_unique_file; then
524   if test "$ac_srcdir_defaulted" = yes; then
525     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526   else
527     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528   fi
529 fi
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534   if test "x$prefix" != xNONE; then
535     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536   else
537     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538   fi
539 fi
540 for ac_site_file in $CONFIG_SITE; do
541   if test -r "$ac_site_file"; then
542     echo "loading site script $ac_site_file"
543     . "$ac_site_file"
544   fi
545 done
546
547 if test -r "$cache_file"; then
548   echo "loading cache $cache_file"
549   . $cache_file
550 else
551   echo "creating cache $cache_file"
552   > $cache_file
553 fi
554
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
561
562 ac_exeext=
563 ac_objext=o
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567     ac_n= ac_c='
568 ' ac_t='        '
569   else
570     ac_n=-n ac_c= ac_t=
571   fi
572 else
573   ac_n= ac_c='\c' ac_t=
574 fi
575
576
577
578 ac_aux_dir=
579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
580   if test -f $ac_dir/install-sh; then
581     ac_aux_dir=$ac_dir
582     ac_install_sh="$ac_aux_dir/install-sh -c"
583     break
584   elif test -f $ac_dir/install.sh; then
585     ac_aux_dir=$ac_dir
586     ac_install_sh="$ac_aux_dir/install.sh -c"
587     break
588   fi
589 done
590 if test -z "$ac_aux_dir"; then
591   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
592 fi
593 ac_config_guess=$ac_aux_dir/config.guess
594 ac_config_sub=$ac_aux_dir/config.sub
595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596
597
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 fi
602
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
605
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609   case $nonopt in
610   NONE)
611     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613     fi ;;
614   *) host_alias=$nonopt ;;
615   esac ;;
616 esac
617
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
623
624
625 dodk=auto
626 DKPREFIX=none
627 # Check whether --with-docbook or --without-docbook was given.
628 if test "${with_docbook+set}" = set; then
629   withval="$with_docbook"
630   case "$with_docbook" in
631 yes) dodk=yes;;
632 no) dodk=no;;
633 *) 
634         dodk=no
635         DKPREFIX=$withval
636         ;;
637 esac
638
639 fi
640
641
642
643 VERSION_MAJOR=2
644 VERSION_MINOR=9
645 VERSION_POINT=11
646 CODE_STATUS="beta"
647
648
649
650
651
652
653
654
655 cat >> confdefs.h <<EOF
656 #define VERSION_MAJOR ${VERSION_MAJOR}
657 EOF
658
659 cat >> confdefs.h <<EOF
660 #define VERSION_MINOR ${VERSION_MINOR}
661 EOF
662
663 cat >> confdefs.h <<EOF
664 #define VERSION_POINT ${VERSION_POINT}
665 EOF
666
667 cat >> confdefs.h <<EOF
668 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
669 EOF
670
671 cat >> confdefs.h <<EOF
672 #define CODE_STATUS "${CODE_STATUS}"
673 EOF
674
675
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681   echo $ac_n "(cached) $ac_c" 1>&6
682 else
683   if test -n "$CC"; then
684   ac_cv_prog_CC="$CC" # Let the user override the test.
685 else
686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
687   ac_dummy="$PATH"
688   for ac_dir in $ac_dummy; do
689     test -z "$ac_dir" && ac_dir=.
690     if test -f $ac_dir/$ac_word; then
691       ac_cv_prog_CC="gcc"
692       break
693     fi
694   done
695   IFS="$ac_save_ifs"
696 fi
697 fi
698 CC="$ac_cv_prog_CC"
699 if test -n "$CC"; then
700   echo "$ac_t""$CC" 1>&6
701 else
702   echo "$ac_t""no" 1>&6
703 fi
704
705 if test -z "$CC"; then
706   # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711   echo $ac_n "(cached) $ac_c" 1>&6
712 else
713   if test -n "$CC"; then
714   ac_cv_prog_CC="$CC" # Let the user override the test.
715 else
716   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
717   ac_prog_rejected=no
718   ac_dummy="$PATH"
719   for ac_dir in $ac_dummy; do
720     test -z "$ac_dir" && ac_dir=.
721     if test -f $ac_dir/$ac_word; then
722       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723         ac_prog_rejected=yes
724         continue
725       fi
726       ac_cv_prog_CC="cc"
727       break
728     fi
729   done
730   IFS="$ac_save_ifs"
731 if test $ac_prog_rejected = yes; then
732   # We found a bogon in the path, so make sure we never use it.
733   set dummy $ac_cv_prog_CC
734   shift
735   if test $# -gt 0; then
736     # We chose a different compiler from the bogus one.
737     # However, it has the same basename, so the bogon will be chosen
738     # first if we set CC to just the basename; use the full file name.
739     shift
740     set dummy "$ac_dir/$ac_word" "$@"
741     shift
742     ac_cv_prog_CC="$@"
743   fi
744 fi
745 fi
746 fi
747 CC="$ac_cv_prog_CC"
748 if test -n "$CC"; then
749   echo "$ac_t""$CC" 1>&6
750 else
751   echo "$ac_t""no" 1>&6
752 fi
753
754   if test -z "$CC"; then
755     case "`uname -s`" in
756     *win32* | *WIN32*)
757       # Extract the first word of "cl", so it can be a program name with args.
758 set dummy cl; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762   echo $ac_n "(cached) $ac_c" 1>&6
763 else
764   if test -n "$CC"; then
765   ac_cv_prog_CC="$CC" # Let the user override the test.
766 else
767   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
768   ac_dummy="$PATH"
769   for ac_dir in $ac_dummy; do
770     test -z "$ac_dir" && ac_dir=.
771     if test -f $ac_dir/$ac_word; then
772       ac_cv_prog_CC="cl"
773       break
774     fi
775   done
776   IFS="$ac_save_ifs"
777 fi
778 fi
779 CC="$ac_cv_prog_CC"
780 if test -n "$CC"; then
781   echo "$ac_t""$CC" 1>&6
782 else
783   echo "$ac_t""no" 1>&6
784 fi
785  ;;
786     esac
787   fi
788   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789 fi
790
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
793
794 ac_ext=c
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
800
801 cat > conftest.$ac_ext << EOF
802
803 #line 804 "configure"
804 #include "confdefs.h"
805
806 main(){return(0);}
807 EOF
808 if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809   ac_cv_prog_cc_works=yes
810   # If we can't run a trivial program, we are probably using a cross compiler.
811   if (./conftest; exit) 2>/dev/null; then
812     ac_cv_prog_cc_cross=no
813   else
814     ac_cv_prog_cc_cross=yes
815   fi
816 else
817   echo "configure: failed program was:" >&5
818   cat conftest.$ac_ext >&5
819   ac_cv_prog_cc_works=no
820 fi
821 rm -fr conftest*
822 ac_ext=c
823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824 ac_cpp='$CPP $CPPFLAGS'
825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827 cross_compiling=$ac_cv_prog_cc_cross
828
829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830 if test $ac_cv_prog_cc_works = no; then
831   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832 fi
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836 cross_compiling=$ac_cv_prog_cc_cross
837
838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
839 echo "configure:840: checking whether we are using GNU C" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841   echo $ac_n "(cached) $ac_c" 1>&6
842 else
843   cat > conftest.c <<EOF
844 #ifdef __GNUC__
845   yes;
846 #endif
847 EOF
848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
849   ac_cv_prog_gcc=yes
850 else
851   ac_cv_prog_gcc=no
852 fi
853 fi
854
855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856
857 if test $ac_cv_prog_gcc = yes; then
858   GCC=yes
859 else
860   GCC=
861 fi
862
863 ac_test_CFLAGS="${CFLAGS+set}"
864 ac_save_CFLAGS="$CFLAGS"
865 CFLAGS=
866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
867 echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869   echo $ac_n "(cached) $ac_c" 1>&6
870 else
871   echo 'void f(){}' > conftest.c
872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
873   ac_cv_prog_cc_g=yes
874 else
875   ac_cv_prog_cc_g=no
876 fi
877 rm -f conftest*
878
879 fi
880
881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882 if test "$ac_test_CFLAGS" = set; then
883   CFLAGS="$ac_save_CFLAGS"
884 elif test $ac_cv_prog_cc_g = yes; then
885   if test "$GCC" = yes; then
886     CFLAGS="-g -O2"
887   else
888     CFLAGS="-g"
889   fi
890 else
891   if test "$GCC" = yes; then
892     CFLAGS="-O2"
893   else
894     CFLAGS=
895   fi
896 fi
897
898 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
899 echo "configure:900: checking how to run the C preprocessor" >&5
900 # On Suns, sometimes $CPP names a directory.
901 if test -n "$CPP" && test -d "$CPP"; then
902   CPP=
903 fi
904 if test -z "$CPP"; then
905 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
906   echo $ac_n "(cached) $ac_c" 1>&6
907 else
908     # This must be in double quotes, not single quotes, because CPP may get
909   # substituted into the Makefile and "${CC-cc}" will confuse make.
910   CPP="${CC-cc} -E"
911   # On the NeXT, cc -E runs the code through the compiler's parser,
912   # not just through cpp.
913   cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
916 #include <assert.h>
917 Syntax Error
918 EOF
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
923   :
924 else
925   echo "$ac_err" >&5
926   echo "configure: failed program was:" >&5
927   cat conftest.$ac_ext >&5
928   rm -rf conftest*
929   CPP="${CC-cc} -E -traditional-cpp"
930   cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933 #include <assert.h>
934 Syntax Error
935 EOF
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
940   :
941 else
942   echo "$ac_err" >&5
943   echo "configure: failed program was:" >&5
944   cat conftest.$ac_ext >&5
945   rm -rf conftest*
946   CPP="${CC-cc} -nologo -E"
947   cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
950 #include <assert.h>
951 Syntax Error
952 EOF
953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956 if test -z "$ac_err"; then
957   :
958 else
959   echo "$ac_err" >&5
960   echo "configure: failed program was:" >&5
961   cat conftest.$ac_ext >&5
962   rm -rf conftest*
963   CPP=/lib/cpp
964 fi
965 rm -f conftest*
966 fi
967 rm -f conftest*
968 fi
969 rm -f conftest*
970   ac_cv_prog_CPP="$CPP"
971 fi
972   CPP="$ac_cv_prog_CPP"
973 else
974   ac_cv_prog_CPP="$CPP"
975 fi
976 echo "$ac_t""$CPP" 1>&6
977
978
979 # Extract the first word of "gdb", so it can be a program name with args.
980 set dummy gdb; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
984   echo $ac_n "(cached) $ac_c" 1>&6
985 else
986   if test -n "$GDB"; then
987   ac_cv_prog_GDB="$GDB" # Let the user override the test.
988 else
989   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
990   ac_dummy="$PATH"
991   for ac_dir in $ac_dummy; do
992     test -z "$ac_dir" && ac_dir=.
993     if test -f $ac_dir/$ac_word; then
994       ac_cv_prog_GDB="yes"
995       break
996     fi
997   done
998   IFS="$ac_save_ifs"
999   test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
1000 fi
1001 fi
1002 GDB="$ac_cv_prog_GDB"
1003 if test -n "$GDB"; then
1004   echo "$ac_t""$GDB" 1>&6
1005 else
1006   echo "$ac_t""no" 1>&6
1007 fi
1008
1009
1010
1011 # Check whether --with-debug or --without-debug was given.
1012 if test "${with_debug+set}" = set; then
1013   withval="$with_debug"
1014   
1015                 if test "x$withval" != "xno" ; then
1016                     if test $ac_cv_prog_cc_g = yes; then
1017                       if test "$GCC" = yes; then
1018                         if test "$GDB"; then
1019                           CFLAGS="-ggdb"
1020                         else
1021                           CFLAGS="-g"
1022                         fi
1023                         CFLAGS="$CFLAGS -Wshadow  -Wconversion"
1024                       else
1025                         CFLAGS="-g"
1026                       fi
1027                    fi
1028                 fi
1029         
1030 else
1031   
1032             if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
1033               if test "$GCC" = yes; then
1034                 CFLAGS="-O2"
1035               else
1036                 CFLAGS=
1037               fi
1038             fi
1039         
1040
1041 fi
1042
1043
1044 if test "$GCC"; then
1045   CFLAGS="-pipe $CFLAGS"
1046 fi
1047
1048
1049
1050 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1051 echo "configure:1052: checking for mingw32 environment" >&5
1052 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1053   echo $ac_n "(cached) $ac_c" 1>&6
1054 else
1055   cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1058
1059 int main() {
1060 return __MINGW32__;
1061 ; return 0; }
1062 EOF
1063 if { (eval echo configure:1064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1064   rm -rf conftest*
1065   ac_cv_mingw32=yes
1066 else
1067   echo "configure: failed program was:" >&5
1068   cat conftest.$ac_ext >&5
1069   rm -rf conftest*
1070   ac_cv_mingw32=no
1071 fi
1072 rm -f conftest*
1073 rm -f conftest*
1074 fi
1075
1076 echo "$ac_t""$ac_cv_mingw32" 1>&6
1077 MINGW32=
1078 test "$ac_cv_mingw32" = yes && MINGW32=yes
1079 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1080 echo "configure:1081: checking for Cygwin environment" >&5
1081 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1082   echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084   cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1087
1088 int main() {
1089
1090 #ifndef __CYGWIN__
1091 #define __CYGWIN__ __CYGWIN32__
1092 #endif
1093 return __CYGWIN__;
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_cygwin=yes
1099 else
1100   echo "configure: failed program was:" >&5
1101   cat conftest.$ac_ext >&5
1102   rm -rf conftest*
1103   ac_cv_cygwin=no
1104 fi
1105 rm -f conftest*
1106 rm -f conftest*
1107 fi
1108
1109 echo "$ac_t""$ac_cv_cygwin" 1>&6
1110 CYGWIN=
1111 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1112
1113 if test "$MINGW32" = "yes"; then
1114   target_type=mingw
1115 else
1116   if test "$CYGWIN" = "yes"; then
1117     target_type=cygwin
1118   else
1119     target_type=unix
1120   fi
1121 fi
1122
1123 if test $dodk = auto; then
1124         dodk=no
1125         if test $target_type = unix; then
1126                 case "$host_os" in
1127                 linux* | gnu*)
1128                         dodk=yes
1129                 ;;
1130                 esac
1131         fi
1132 fi
1133
1134
1135 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1136 if test "${enable_mingw32+set}" = set; then
1137   enableval="$enable_mingw32"
1138   if test $enableval = yes; then
1139   target_type=mingw
1140 fi
1141 fi
1142
1143
1144 if test $target_type = mingw; then
1145   WIN_ONLY=
1146   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1147   PTHREAD_LIB=-lpthreadGC
1148   echo "Using mingw32 (Win32 GUI)"
1149 else
1150   WIN_ONLY=#
1151   if test $target_type = cygwin; then
1152     SPECIAL_CFLAGS="-mno-win32"
1153     PTHREAD_LIB=
1154     echo "Using Cygnus (Win32 command line)"
1155   else
1156     SPECIAL_CFLAGS=
1157     PTHREAD_LIB=-lpthread
1158   fi
1159 fi
1160
1161
1162 if test $dodk != no; then
1163         for ac_prog in w3m lynx links
1164 do
1165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1166 set dummy $ac_prog; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_WDUMP'+set}'`\" = set"; then
1170   echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172   if test -n "$WDUMP"; then
1173   ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
1174 else
1175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1176   ac_dummy="$PATH"
1177   for ac_dir in $ac_dummy; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       ac_cv_prog_WDUMP="$ac_prog"
1181       break
1182     fi
1183   done
1184   IFS="$ac_save_ifs"
1185 fi
1186 fi
1187 WDUMP="$ac_cv_prog_WDUMP"
1188 if test -n "$WDUMP"; then
1189   echo "$ac_t""$WDUMP" 1>&6
1190 else
1191   echo "$ac_t""no" 1>&6
1192 fi
1193
1194 test -n "$WDUMP" && break
1195 done
1196 test -n "$WDUMP" || WDUMP="false"
1197
1198         if test "$WDUMP" = false; then
1199                 { echo "configure: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" 1>&2; exit 1; }
1200         fi
1201 fi
1202
1203
1204 for ac_prog in rpm
1205 do
1206 # Extract the first word of "$ac_prog", so it can be a program name with args.
1207 set dummy $ac_prog; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_RPMBIN'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   if test -n "$RPMBIN"; then
1214   ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
1215 else
1216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1217   ac_dummy="$PATH"
1218   for ac_dir in $ac_dummy; do
1219     test -z "$ac_dir" && ac_dir=.
1220     if test -f $ac_dir/$ac_word; then
1221       ac_cv_prog_RPMBIN="$ac_prog"
1222       break
1223     fi
1224   done
1225   IFS="$ac_save_ifs"
1226 fi
1227 fi
1228 RPMBIN="$ac_cv_prog_RPMBIN"
1229 if test -n "$RPMBIN"; then
1230   echo "$ac_t""$RPMBIN" 1>&6
1231 else
1232   echo "$ac_t""no" 1>&6
1233 fi
1234
1235 test -n "$RPMBIN" && break
1236 done
1237 test -n "$RPMBIN" || RPMBIN="false"
1238
1239 if test $RPMBIN != false; then
1240                 RPM_BASE=`rpm --eval "%{_topdir}"`
1241                 if test "$RPM_BASE" = ""; then
1242                         RPM_BASE=/usr/src/redhat
1243                 fi
1244 fi
1245
1246
1247 for ac_prog in jade openjade
1248 do
1249 # Extract the first word of "$ac_prog", so it can be a program name with args.
1250 set dummy $ac_prog; ac_word=$2
1251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1252 echo "configure:1253: checking for $ac_word" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_JADEBIN'+set}'`\" = set"; then
1254   echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256   if test -n "$JADEBIN"; then
1257   ac_cv_prog_JADEBIN="$JADEBIN" # Let the user override the test.
1258 else
1259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1260   ac_dummy="$PATH"
1261   for ac_dir in $ac_dummy; do
1262     test -z "$ac_dir" && ac_dir=.
1263     if test -f $ac_dir/$ac_word; then
1264       ac_cv_prog_JADEBIN="$ac_prog"
1265       break
1266     fi
1267   done
1268   IFS="$ac_save_ifs"
1269 fi
1270 fi
1271 JADEBIN="$ac_cv_prog_JADEBIN"
1272 if test -n "$JADEBIN"; then
1273   echo "$ac_t""$JADEBIN" 1>&6
1274 else
1275   echo "$ac_t""no" 1>&6
1276 fi
1277
1278 test -n "$JADEBIN" && break
1279 done
1280 test -n "$JADEBIN" || JADEBIN="false"
1281
1282
1283
1284 if test $dodk = yes; then
1285   if test $DKPREFIX = none; then
1286     
1287 ac_safe=`echo "/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1288 echo $ac_n "checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl""... $ac_c" 1>&6
1289 echo "configure:1290: checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" >&5
1290 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1291   echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293   if test "$cross_compiling" = yes; then
1294     { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1295 else
1296   if test -r /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl; then
1297     eval "ac_cv_file_$ac_safe=yes"
1298   else
1299     eval "ac_cv_file_$ac_safe=no"
1300   fi
1301 fi
1302 fi
1303 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1304   echo "$ac_t""yes" 1>&6
1305   DKPREFIX=/usr/share/sgml/docbook/dsssl-stylesheets
1306 else
1307   echo "$ac_t""no" 1>&6
1308
1309 ac_safe=`echo "/usr/share/sgml/docbkdsl/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1310 echo $ac_n "checking for /usr/share/sgml/docbkdsl/html/docbook.dsl""... $ac_c" 1>&6
1311 echo "configure:1312: checking for /usr/share/sgml/docbkdsl/html/docbook.dsl" >&5
1312 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1313   echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315   if test "$cross_compiling" = yes; then
1316     { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1317 else
1318   if test -r /usr/share/sgml/docbkdsl/html/docbook.dsl; then
1319     eval "ac_cv_file_$ac_safe=yes"
1320   else
1321     eval "ac_cv_file_$ac_safe=no"
1322   fi
1323 fi
1324 fi
1325 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1326   echo "$ac_t""yes" 1>&6
1327   DKPREFIX=/usr/share/sgml/docbkdsl
1328 else
1329   echo "$ac_t""no" 1>&6
1330
1331 fi
1332
1333 fi
1334
1335   fi
1336 fi
1337
1338
1339 old_CFLAGS_nospecial=$CFLAGS
1340 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1341
1342 # Hack to force AutoConf to use the CFLAGS we just set
1343 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1346
1347
1348
1349 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1350 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1351 echo "configure:1352: checking for pthread.h" >&5
1352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1353   echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355   cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 #include <pthread.h>
1359 EOF
1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1364   rm -rf conftest*
1365   eval "ac_cv_header_$ac_safe=yes"
1366 else
1367   echo "$ac_err" >&5
1368   echo "configure: failed program was:" >&5
1369   cat conftest.$ac_ext >&5
1370   rm -rf conftest*
1371   eval "ac_cv_header_$ac_safe=no"
1372 fi
1373 rm -f conftest*
1374 fi
1375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1376   echo "$ac_t""yes" 1>&6
1377   have_pthread=yes
1378 else
1379   echo "$ac_t""no" 1>&6
1380 have_pthread=no
1381 fi
1382
1383
1384 # Check whether --enable-pthread or --disable-pthread was given.
1385 if test "${enable_pthread+set}" = set; then
1386   enableval="$enable_pthread"
1387   if test $enableval = no; then
1388   # Disable pthreads
1389   have_pthread=no
1390 fi
1391 fi
1392
1393
1394 if test $have_pthread = yes; then
1395   PTHREAD_ONLY=
1396   cat >> confdefs.h <<\EOF
1397 #define FEATURE_PTHREAD 1
1398 EOF
1399
1400   echo Using POSIX threads
1401   if test "$GCC" = "yes"; then
1402     # Set a GCC specific switch:
1403     if test "$target_type" = "unix"; then
1404       # This compiler switch makes Linux thread-safe
1405       # Don't know about other OS's?  Is this switch
1406       # supported?
1407       PTHREAD_LIB=
1408       SPECIAL_CFLAGS="-pthread"
1409     fi
1410   fi
1411 else
1412   PTHREAD_ONLY=#
1413   echo Using native threads
1414 fi
1415
1416
1417
1418
1419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1420 echo "configure:1421: checking for gethostbyname in -lnsl" >&5
1421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1423   echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425   ac_save_LIBS="$LIBS"
1426 LIBS="-lnsl  $LIBS"
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* Override any gcc2 internal prototype to avoid an error.  */
1431 /* We use char because int might match the return type of a gcc2
1432     builtin and then its argument prototype would still apply.  */
1433 char gethostbyname();
1434
1435 int main() {
1436 gethostbyname()
1437 ; return 0; }
1438 EOF
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440   rm -rf conftest*
1441   eval "ac_cv_lib_$ac_lib_var=yes"
1442 else
1443   echo "configure: failed program was:" >&5
1444   cat conftest.$ac_ext >&5
1445   rm -rf conftest*
1446   eval "ac_cv_lib_$ac_lib_var=no"
1447 fi
1448 rm -f conftest*
1449 LIBS="$ac_save_LIBS"
1450
1451 fi
1452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1453   echo "$ac_t""yes" 1>&6
1454     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1455     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1456   cat >> confdefs.h <<EOF
1457 #define $ac_tr_lib 1
1458 EOF
1459
1460   LIBS="-lnsl $LIBS"
1461
1462 else
1463   echo "$ac_t""no" 1>&6
1464 fi
1465
1466
1467 echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
1468 echo "configure:1469: checking for gethostbyaddr_r" >&5
1469 if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
1470   echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472   cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1475 /* System header to define __stub macros and hopefully few prototypes,
1476     which can conflict with char gethostbyaddr_r(); below.  */
1477 #include <assert.h>
1478 /* Override any gcc2 internal prototype to avoid an error.  */
1479 /* We use char because int might match the return type of a gcc2
1480     builtin and then its argument prototype would still apply.  */
1481 char gethostbyaddr_r();
1482
1483 int main() {
1484
1485 /* The GNU C library defines this for functions which it implements
1486     to always fail with ENOSYS.  Some functions are actually named
1487     something starting with __ and the normal name is an alias.  */
1488 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
1489 choke me
1490 #else
1491 gethostbyaddr_r();
1492 #endif
1493
1494 ; return 0; }
1495 EOF
1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1497   rm -rf conftest*
1498   eval "ac_cv_func_gethostbyaddr_r=yes"
1499 else
1500   echo "configure: failed program was:" >&5
1501   cat conftest.$ac_ext >&5
1502   rm -rf conftest*
1503   eval "ac_cv_func_gethostbyaddr_r=no"
1504 fi
1505 rm -f conftest*
1506 fi
1507
1508 if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
1509   echo "$ac_t""yes" 1>&6
1510   
1511   echo $ac_n "checking signature of gethostbyaddr_r""... $ac_c" 1>&6
1512 echo "configure:1513: checking signature of gethostbyaddr_r" >&5
1513   cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516
1517 #   include <netdb.h>
1518   
1519 int main() {
1520
1521     struct hostent *h, *hp;
1522     char *a, *b;
1523     int l, bl, t, e;
1524     (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
1525   
1526 ; return 0; }
1527 EOF
1528 if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1529   rm -rf conftest*
1530   
1531     cat >> confdefs.h <<\EOF
1532 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
1533 EOF
1534
1535     echo "$ac_t""8 args" 1>&6
1536   
1537 else
1538   echo "configure: failed program was:" >&5
1539   cat conftest.$ac_ext >&5
1540   rm -rf conftest*
1541   
1542     cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545
1546 #     include <netdb.h>
1547     
1548 int main() {
1549
1550       struct hostent *h;
1551       char *a, *b;
1552       int l, bl, t, e;
1553       (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
1554     
1555 ; return 0; }
1556 EOF
1557 if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1558   rm -rf conftest*
1559   
1560       cat >> confdefs.h <<\EOF
1561 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
1562 EOF
1563
1564       echo "$ac_t""7 args" 1>&6
1565     
1566 else
1567   echo "configure: failed program was:" >&5
1568   cat conftest.$ac_ext >&5
1569   rm -rf conftest*
1570   
1571       cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574
1575 #       include <netdb.h>
1576       
1577 int main() {
1578
1579         struct hostent_data *d;
1580         struct hostent *h;
1581         char a,
1582         int l, t;
1583         (void) gethostbyaddr_r(a, l, t, h, d)
1584       
1585 ; return 0; }
1586 EOF
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588   rm -rf conftest*
1589   
1590         cat >> confdefs.h <<\EOF
1591 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
1592 EOF
1593
1594         echo "$ac_t""5 args" 1>&6
1595       
1596 else
1597   echo "configure: failed program was:" >&5
1598   cat conftest.$ac_ext >&5
1599   rm -rf conftest*
1600   
1601         echo "$ac_t""unrecognised" 1>&6
1602       
1603 fi
1604 rm -f conftest*
1605     
1606 fi
1607 rm -f conftest*
1608   
1609 fi
1610 rm -f conftest*
1611
1612 else
1613   echo "$ac_t""no" 1>&6
1614
1615   echo "$ac_t""no" 1>&6
1616
1617 fi
1618
1619
1620 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
1621 echo "configure:1622: checking for gethostbyname_r" >&5
1622 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
1623   echo $ac_n "(cached) $ac_c" 1>&6
1624 else
1625   cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 /* System header to define __stub macros and hopefully few prototypes,
1629     which can conflict with char gethostbyname_r(); below.  */
1630 #include <assert.h>
1631 /* Override any gcc2 internal prototype to avoid an error.  */
1632 /* We use char because int might match the return type of a gcc2
1633     builtin and then its argument prototype would still apply.  */
1634 char gethostbyname_r();
1635
1636 int main() {
1637
1638 /* The GNU C library defines this for functions which it implements
1639     to always fail with ENOSYS.  Some functions are actually named
1640     something starting with __ and the normal name is an alias.  */
1641 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
1642 choke me
1643 #else
1644 gethostbyname_r();
1645 #endif
1646
1647 ; return 0; }
1648 EOF
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650   rm -rf conftest*
1651   eval "ac_cv_func_gethostbyname_r=yes"
1652 else
1653   echo "configure: failed program was:" >&5
1654   cat conftest.$ac_ext >&5
1655   rm -rf conftest*
1656   eval "ac_cv_func_gethostbyname_r=no"
1657 fi
1658 rm -f conftest*
1659 fi
1660
1661 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
1662   echo "$ac_t""yes" 1>&6
1663   
1664   echo $ac_n "checking signature of gethostbyname_r""... $ac_c" 1>&6
1665 echo "configure:1666: checking signature of gethostbyname_r" >&5
1666   cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669
1670 #   include <netdb.h>
1671   
1672 int main() {
1673
1674     struct hostent *h, *r;
1675     char *n, *b;
1676     int bl, e;
1677     (void) gethostbyname_r(n, h, b, bl, &r, &e)
1678   
1679 ; return 0; }
1680 EOF
1681 if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1682   rm -rf conftest*
1683   
1684     cat >> confdefs.h <<\EOF
1685 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
1686 EOF
1687
1688     echo "$ac_t""6 args" 1>&6
1689   
1690 else
1691   echo "configure: failed program was:" >&5
1692   cat conftest.$ac_ext >&5
1693   rm -rf conftest*
1694   
1695     cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698
1699 #     include <netdb.h>
1700     
1701 int main() {
1702
1703       struct hostent *h;
1704       char *n, *b;
1705       int bl, e;
1706       (void) gethostbyname_r(n, h, b, bl, &e)
1707     
1708 ; return 0; }
1709 EOF
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1711   rm -rf conftest*
1712   
1713       cat >> confdefs.h <<\EOF
1714 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
1715 EOF
1716
1717       echo "$ac_t""5 args" 1>&6
1718     
1719 else
1720   echo "configure: failed program was:" >&5
1721   cat conftest.$ac_ext >&5
1722   rm -rf conftest*
1723   
1724       cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727
1728 #       include <netdb.h>
1729       
1730 int main() {
1731
1732         struct hostent_data *d;
1733         struct hostent *h;
1734         char *n,
1735         (void) gethostbyname_r(n, h, d)
1736       
1737 ; return 0; }
1738 EOF
1739 if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740   rm -rf conftest*
1741   
1742         cat >> confdefs.h <<\EOF
1743 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
1744 EOF
1745
1746         echo "$ac_t""3 args" 1>&6
1747       
1748 else
1749   echo "configure: failed program was:" >&5
1750   cat conftest.$ac_ext >&5
1751   rm -rf conftest*
1752   
1753         echo "$ac_t""unrecognised" 1>&6
1754       
1755 fi
1756 rm -f conftest*
1757     
1758 fi
1759 rm -f conftest*
1760   
1761 fi
1762 rm -f conftest*
1763
1764 else
1765   echo "$ac_t""no" 1>&6
1766
1767   echo "$ac_t""no" 1>&6
1768
1769 fi
1770
1771
1772 echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6
1773 echo "configure:1774: checking for gmtime_r" >&5
1774 if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then
1775   echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777   cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 /* System header to define __stub macros and hopefully few prototypes,
1781     which can conflict with char gmtime_r(); below.  */
1782 #include <assert.h>
1783 /* Override any gcc2 internal prototype to avoid an error.  */
1784 /* We use char because int might match the return type of a gcc2
1785     builtin and then its argument prototype would still apply.  */
1786 char gmtime_r();
1787
1788 int main() {
1789
1790 /* The GNU C library defines this for functions which it implements
1791     to always fail with ENOSYS.  Some functions are actually named
1792     something starting with __ and the normal name is an alias.  */
1793 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
1794 choke me
1795 #else
1796 gmtime_r();
1797 #endif
1798
1799 ; return 0; }
1800 EOF
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1802   rm -rf conftest*
1803   eval "ac_cv_func_gmtime_r=yes"
1804 else
1805   echo "configure: failed program was:" >&5
1806   cat conftest.$ac_ext >&5
1807   rm -rf conftest*
1808   eval "ac_cv_func_gmtime_r=no"
1809 fi
1810 rm -f conftest*
1811 fi
1812
1813 if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
1814   echo "$ac_t""yes" 1>&6
1815   
1816   echo $ac_n "checking signature of gmtime_r""... $ac_c" 1>&6
1817 echo "configure:1818: checking signature of gmtime_r" >&5
1818   cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821
1822 #   include <time.h>
1823   
1824 int main() {
1825
1826     struct time *t;
1827     struct tm *tm;
1828     (void) gmtime_r(t, tm)
1829   
1830 ; return 0; }
1831 EOF
1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833   rm -rf conftest*
1834   
1835     echo "$ac_t""ok" 1>&6
1836     cat >> confdefs.h <<\EOF
1837 #define HAVE_GMTIME_R 1
1838 EOF
1839
1840   
1841 else
1842   echo "configure: failed program was:" >&5
1843   cat conftest.$ac_ext >&5
1844   rm -rf conftest*
1845   
1846     echo "$ac_t""unrecognised" 1>&6
1847   
1848 fi
1849 rm -f conftest*
1850
1851 else
1852   echo "$ac_t""no" 1>&6
1853
1854   echo "$ac_t""no" 1>&6
1855
1856 fi
1857
1858
1859 echo $ac_n "checking for localtime_r""... $ac_c" 1>&6
1860 echo "configure:1861: checking for localtime_r" >&5
1861 if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then
1862   echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864   cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* System header to define __stub macros and hopefully few prototypes,
1868     which can conflict with char localtime_r(); below.  */
1869 #include <assert.h>
1870 /* Override any gcc2 internal prototype to avoid an error.  */
1871 /* We use char because int might match the return type of a gcc2
1872     builtin and then its argument prototype would still apply.  */
1873 char localtime_r();
1874
1875 int main() {
1876
1877 /* The GNU C library defines this for functions which it implements
1878     to always fail with ENOSYS.  Some functions are actually named
1879     something starting with __ and the normal name is an alias.  */
1880 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
1881 choke me
1882 #else
1883 localtime_r();
1884 #endif
1885
1886 ; return 0; }
1887 EOF
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1889   rm -rf conftest*
1890   eval "ac_cv_func_localtime_r=yes"
1891 else
1892   echo "configure: failed program was:" >&5
1893   cat conftest.$ac_ext >&5
1894   rm -rf conftest*
1895   eval "ac_cv_func_localtime_r=no"
1896 fi
1897 rm -f conftest*
1898 fi
1899
1900 if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then
1901   echo "$ac_t""yes" 1>&6
1902   
1903   echo $ac_n "checking signature of localtime_r""... $ac_c" 1>&6
1904 echo "configure:1905: checking signature of localtime_r" >&5
1905   cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908
1909 #   include <time.h>
1910   
1911 int main() {
1912
1913     struct time *t;
1914     struct tm *tm;
1915     (void) localtime_r(t, tm)
1916   
1917 ; return 0; }
1918 EOF
1919 if { (eval echo configure:1920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1920   rm -rf conftest*
1921   
1922     echo "$ac_t""ok" 1>&6
1923     cat >> confdefs.h <<\EOF
1924 #define HAVE_LOCALTIME_R 1
1925 EOF
1926
1927   
1928 else
1929   echo "configure: failed program was:" >&5
1930   cat conftest.$ac_ext >&5
1931   rm -rf conftest*
1932   
1933     echo "$ac_t""unrecognised" 1>&6
1934   
1935 fi
1936 rm -f conftest*
1937
1938 else
1939   echo "$ac_t""no" 1>&6
1940
1941   echo "$ac_t""no" 1>&6
1942
1943 fi
1944
1945
1946
1947
1948 SOCKET_LIB=
1949
1950 case "$host" in
1951 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1952             cat >> confdefs.h <<\EOF
1953 #define __EXTENSIONS__ 1
1954 EOF
1955
1956             if test "$GCC" = "yes"; then
1957               # Set a GCC specific switch:
1958               # This compiler switch makes Solaris thread-safe
1959               PTHREAD_LIB=
1960               SPECIAL_CFLAGS="-pthreads"
1961             else
1962               # What do we do without GCC? Guess this:
1963               SPECIAL_CFLAGS="-D_REENTRANT"
1964             fi
1965 ;;
1966 esac
1967
1968
1969
1970
1971 case "$host" in
1972 *-os2-emx*) SOCKET_LIB=-lsocket
1973 ;;
1974 esac
1975
1976
1977
1978
1979 AMIGAOS_ONLY=#
1980
1981 case "$host" in
1982 *-amigaos) AMIGAOS_ONLY=
1983 ;;
1984 esac
1985
1986
1987
1988
1989
1990
1991 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1992 echo "configure:1993: checking for executable suffix" >&5
1993 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1994   echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1997   ac_cv_exeext=.exe
1998 else
1999   rm -f conftest*
2000   echo 'int main () { return 0; }' > conftest.$ac_ext
2001   ac_cv_exeext=
2002   if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2003     for file in conftest.*; do
2004       case $file in
2005       *.c | *.o | *.obj) ;;
2006       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2007       esac
2008     done
2009   else
2010     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2011   fi
2012   rm -f conftest*
2013   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2014 fi
2015 fi
2016
2017 EXEEXT=""
2018 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2019 echo "$ac_t""${ac_cv_exeext}" 1>&6
2020 ac_exeext=$EXEEXT
2021
2022 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2023 echo "configure:2024: checking for object suffix" >&5
2024 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2025   echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027   rm -f conftest*
2028 echo 'int i = 1;' > conftest.$ac_ext
2029 if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2030   for ac_file in conftest.*; do
2031     case $ac_file in
2032     *.c) ;;
2033     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2034     esac
2035   done
2036 else
2037   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2038 fi
2039 rm -f conftest*
2040 fi
2041
2042 echo "$ac_t""$ac_cv_objext" 1>&6
2043 OBJEXT=$ac_cv_objext
2044 ac_objext=$ac_cv_objext
2045
2046 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2047 echo "configure:2048: checking for ANSI C header files" >&5
2048 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2049   echo $ac_n "(cached) $ac_c" 1>&6
2050 else
2051   cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 #include <stdlib.h>
2055 #include <stdarg.h>
2056 #include <string.h>
2057 #include <float.h>
2058 EOF
2059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then
2063   rm -rf conftest*
2064   ac_cv_header_stdc=yes
2065 else
2066   echo "$ac_err" >&5
2067   echo "configure: failed program was:" >&5
2068   cat conftest.$ac_ext >&5
2069   rm -rf conftest*
2070   ac_cv_header_stdc=no
2071 fi
2072 rm -f conftest*
2073
2074 if test $ac_cv_header_stdc = yes; then
2075   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 #include <string.h>
2080 EOF
2081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2082   egrep "memchr" >/dev/null 2>&1; then
2083   :
2084 else
2085   rm -rf conftest*
2086   ac_cv_header_stdc=no
2087 fi
2088 rm -f conftest*
2089
2090 fi
2091
2092 if test $ac_cv_header_stdc = yes; then
2093   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <stdlib.h>
2098 EOF
2099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2100   egrep "free" >/dev/null 2>&1; then
2101   :
2102 else
2103   rm -rf conftest*
2104   ac_cv_header_stdc=no
2105 fi
2106 rm -f conftest*
2107
2108 fi
2109
2110 if test $ac_cv_header_stdc = yes; then
2111   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2112 if test "$cross_compiling" = yes; then
2113   :
2114 else
2115   cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 #include <ctype.h>
2119 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2120 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2122 int main () { int i; for (i = 0; i < 256; i++)
2123 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2124 exit (0); }
2125
2126 EOF
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2128 then
2129   :
2130 else
2131   echo "configure: failed program was:" >&5
2132   cat conftest.$ac_ext >&5
2133   rm -fr conftest*
2134   ac_cv_header_stdc=no
2135 fi
2136 rm -fr conftest*
2137 fi
2138
2139 fi
2140 fi
2141
2142 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2143 if test $ac_cv_header_stdc = yes; then
2144   cat >> confdefs.h <<\EOF
2145 #define STDC_HEADERS 1
2146 EOF
2147
2148 fi
2149
2150 echo $ac_n "checking for working const""... $ac_c" 1>&6
2151 echo "configure:2152: checking for working const" >&5
2152 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2153   echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155   cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158
2159 int main() {
2160
2161 /* Ultrix mips cc rejects this.  */
2162 typedef int charset[2]; const charset x;
2163 /* SunOS 4.1.1 cc rejects this.  */
2164 char const *const *ccp;
2165 char **p;
2166 /* NEC SVR4.0.2 mips cc rejects this.  */
2167 struct point {int x, y;};
2168 static struct point const zero = {0,0};
2169 /* AIX XL C 1.02.0.0 rejects this.
2170    It does not let you subtract one const X* pointer from another in an arm
2171    of an if-expression whose if-part is not a constant expression */
2172 const char *g = "string";
2173 ccp = &g + (g ? g-g : 0);
2174 /* HPUX 7.0 cc rejects these. */
2175 ++ccp;
2176 p = (char**) ccp;
2177 ccp = (char const *const *) p;
2178 { /* SCO 3.2v4 cc rejects this.  */
2179   char *t;
2180   char const *s = 0 ? (char *) 0 : (char const *) 0;
2181
2182   *t++ = 0;
2183 }
2184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2185   int x[] = {25, 17};
2186   const int *foo = &x[0];
2187   ++foo;
2188 }
2189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2190   typedef const int *iptr;
2191   iptr p = 0;
2192   ++p;
2193 }
2194 { /* AIX XL C 1.02.0.0 rejects this saying
2195      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2196   struct s { int j; const int *ap[3]; };
2197   struct s *b; b->j = 5;
2198 }
2199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2200   const int foo = 10;
2201 }
2202
2203 ; return 0; }
2204 EOF
2205 if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206   rm -rf conftest*
2207   ac_cv_c_const=yes
2208 else
2209   echo "configure: failed program was:" >&5
2210   cat conftest.$ac_ext >&5
2211   rm -rf conftest*
2212   ac_cv_c_const=no
2213 fi
2214 rm -f conftest*
2215 fi
2216
2217 echo "$ac_t""$ac_cv_c_const" 1>&6
2218 if test $ac_cv_c_const = no; then
2219   cat >> confdefs.h <<\EOF
2220 #define const 
2221 EOF
2222
2223 fi
2224
2225 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2226 echo "configure:2227: checking for size_t" >&5
2227 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2228   echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230   cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2234 #if STDC_HEADERS
2235 #include <stdlib.h>
2236 #include <stddef.h>
2237 #endif
2238 EOF
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2241   rm -rf conftest*
2242   ac_cv_type_size_t=yes
2243 else
2244   rm -rf conftest*
2245   ac_cv_type_size_t=no
2246 fi
2247 rm -f conftest*
2248
2249 fi
2250 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2251 if test $ac_cv_type_size_t = no; then
2252   cat >> confdefs.h <<\EOF
2253 #define size_t unsigned
2254 EOF
2255
2256 fi
2257
2258 echo $ac_n "checking size of int""... $ac_c" 1>&6
2259 echo "configure:2260: checking size of int" >&5
2260 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test "$cross_compiling" = yes; then
2264   ac_cv_sizeof_int=4
2265 else
2266   cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2269 #include <stdio.h>
2270 main()
2271 {
2272   FILE *f=fopen("conftestval", "w");
2273   if (!f) exit(1);
2274   fprintf(f, "%d\n", sizeof(int));
2275   exit(0);
2276 }
2277 EOF
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2279 then
2280   ac_cv_sizeof_int=`cat conftestval`
2281 else
2282   echo "configure: failed program was:" >&5
2283   cat conftest.$ac_ext >&5
2284   rm -fr conftest*
2285   ac_cv_sizeof_int=0
2286 fi
2287 rm -fr conftest*
2288 fi
2289
2290 fi
2291 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2292 cat >> confdefs.h <<EOF
2293 #define SIZEOF_INT $ac_cv_sizeof_int
2294 EOF
2295
2296
2297 echo $ac_n "checking size of char *""... $ac_c" 1>&6
2298 echo "configure:2299: checking size of char *" >&5
2299 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
2300   echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302   if test "$cross_compiling" = yes; then
2303   ac_cv_sizeof_char_p=4
2304 else
2305   cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <stdio.h>
2309 main()
2310 {
2311   FILE *f=fopen("conftestval", "w");
2312   if (!f) exit(1);
2313   fprintf(f, "%d\n", sizeof(char *));
2314   exit(0);
2315 }
2316 EOF
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2318 then
2319   ac_cv_sizeof_char_p=`cat conftestval`
2320 else
2321   echo "configure: failed program was:" >&5
2322   cat conftest.$ac_ext >&5
2323   rm -fr conftest*
2324   ac_cv_sizeof_char_p=0
2325 fi
2326 rm -fr conftest*
2327 fi
2328
2329 fi
2330 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
2331 cat >> confdefs.h <<EOF
2332 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2333 EOF
2334
2335
2336 echo $ac_n "checking size of long""... $ac_c" 1>&6
2337 echo "configure:2338: checking size of long" >&5
2338 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2339   echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341   if test "$cross_compiling" = yes; then
2342   ac_cv_sizeof_long=4
2343 else
2344   cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <stdio.h>
2348 main()
2349 {
2350   FILE *f=fopen("conftestval", "w");
2351   if (!f) exit(1);
2352   fprintf(f, "%d\n", sizeof(long));
2353   exit(0);
2354 }
2355 EOF
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2357 then
2358   ac_cv_sizeof_long=`cat conftestval`
2359 else
2360   echo "configure: failed program was:" >&5
2361   cat conftest.$ac_ext >&5
2362   rm -fr conftest*
2363   ac_cv_sizeof_long=0
2364 fi
2365 rm -fr conftest*
2366 fi
2367
2368 fi
2369 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2370 cat >> confdefs.h <<EOF
2371 #define SIZEOF_LONG $ac_cv_sizeof_long
2372 EOF
2373
2374
2375 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2376 echo "configure:2377: checking size of long long" >&5
2377 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2378   echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380   if test "$cross_compiling" = yes; then
2381   ac_cv_sizeof_long_long=8
2382 else
2383   cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <stdio.h>
2387 main()
2388 {
2389   FILE *f=fopen("conftestval", "w");
2390   if (!f) exit(1);
2391   fprintf(f, "%d\n", sizeof(long long));
2392   exit(0);
2393 }
2394 EOF
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2396 then
2397   ac_cv_sizeof_long_long=`cat conftestval`
2398 else
2399   echo "configure: failed program was:" >&5
2400   cat conftest.$ac_ext >&5
2401   rm -fr conftest*
2402   ac_cv_sizeof_long_long=0
2403 fi
2404 rm -fr conftest*
2405 fi
2406
2407 fi
2408 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2409 cat >> confdefs.h <<EOF
2410 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2411 EOF
2412
2413
2414 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2415 echo "configure:2416: checking size of size_t" >&5
2416 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2417   echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419   if test "$cross_compiling" = yes; then
2420   ac_cv_sizeof_size_t=4
2421 else
2422   cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 #include <stdio.h>
2426 main()
2427 {
2428   FILE *f=fopen("conftestval", "w");
2429   if (!f) exit(1);
2430   fprintf(f, "%d\n", sizeof(size_t));
2431   exit(0);
2432 }
2433 EOF
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2435 then
2436   ac_cv_sizeof_size_t=`cat conftestval`
2437 else
2438   echo "configure: failed program was:" >&5
2439   cat conftest.$ac_ext >&5
2440   rm -fr conftest*
2441   ac_cv_sizeof_size_t=0
2442 fi
2443 rm -fr conftest*
2444 fi
2445
2446 fi
2447 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2448 cat >> confdefs.h <<EOF
2449 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2450 EOF
2451
2452
2453
2454
2455 for ac_func in strerror bcopy memmove
2456 do
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460   echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462   cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466     which can conflict with char $ac_func(); below.  */
2467 #include <assert.h>
2468 /* Override any gcc2 internal prototype to avoid an error.  */
2469 /* We use char because int might match the return type of a gcc2
2470     builtin and then its argument prototype would still apply.  */
2471 char $ac_func();
2472
2473 int main() {
2474
2475 /* The GNU C library defines this for functions which it implements
2476     to always fail with ENOSYS.  Some functions are actually named
2477     something starting with __ and the normal name is an alias.  */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 choke me
2480 #else
2481 $ac_func();
2482 #endif
2483
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487   rm -rf conftest*
2488   eval "ac_cv_func_$ac_func=yes"
2489 else
2490   echo "configure: failed program was:" >&5
2491   cat conftest.$ac_ext >&5
2492   rm -rf conftest*
2493   eval "ac_cv_func_$ac_func=no"
2494 fi
2495 rm -f conftest*
2496 fi
2497
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499   echo "$ac_t""yes" 1>&6
2500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501   cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2503 EOF
2504  
2505 else
2506   echo "$ac_t""no" 1>&6
2507 fi
2508 done
2509
2510
2511
2512 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2513 echo "configure:2514: checking for pcre_compile in -lpcre" >&5
2514 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2516   echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518   ac_save_LIBS="$LIBS"
2519 LIBS="-lpcre  $LIBS"
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* Override any gcc2 internal prototype to avoid an error.  */
2524 /* We use char because int might match the return type of a gcc2
2525     builtin and then its argument prototype would still apply.  */
2526 char pcre_compile();
2527
2528 int main() {
2529 pcre_compile()
2530 ; return 0; }
2531 EOF
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533   rm -rf conftest*
2534   eval "ac_cv_lib_$ac_lib_var=yes"
2535 else
2536   echo "configure: failed program was:" >&5
2537   cat conftest.$ac_ext >&5
2538   rm -rf conftest*
2539   eval "ac_cv_lib_$ac_lib_var=no"
2540 fi
2541 rm -f conftest*
2542 LIBS="$ac_save_LIBS"
2543
2544 fi
2545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546   echo "$ac_t""yes" 1>&6
2547   ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
2548 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
2549 echo "configure:2550: checking for pcre.h" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2551   echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553   cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <pcre.h>
2557 EOF
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2562   rm -rf conftest*
2563   eval "ac_cv_header_$ac_safe=yes"
2564 else
2565   echo "$ac_err" >&5
2566   echo "configure: failed program was:" >&5
2567   cat conftest.$ac_ext >&5
2568   rm -rf conftest*
2569   eval "ac_cv_header_$ac_safe=no"
2570 fi
2571 rm -f conftest*
2572 fi
2573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2574   echo "$ac_t""yes" 1>&6
2575   have_pcre=yes
2576 else
2577   echo "$ac_t""no" 1>&6
2578 have_pcre=no
2579 fi
2580
2581 else
2582   echo "$ac_t""no" 1>&6
2583 have_pcre=no
2584 fi
2585
2586 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
2587 echo "configure:2588: checking for regcomp in -lpcreposix" >&5
2588 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
2589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2590   echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592   ac_save_LIBS="$LIBS"
2593 LIBS="-lpcreposix -lpcre $LIBS"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 /* Override any gcc2 internal prototype to avoid an error.  */
2598 /* We use char because int might match the return type of a gcc2
2599     builtin and then its argument prototype would still apply.  */
2600 char regcomp();
2601
2602 int main() {
2603 regcomp()
2604 ; return 0; }
2605 EOF
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2607   rm -rf conftest*
2608   eval "ac_cv_lib_$ac_lib_var=yes"
2609 else
2610   echo "configure: failed program was:" >&5
2611   cat conftest.$ac_ext >&5
2612   rm -rf conftest*
2613   eval "ac_cv_lib_$ac_lib_var=no"
2614 fi
2615 rm -f conftest*
2616 LIBS="$ac_save_LIBS"
2617
2618 fi
2619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2620   echo "$ac_t""yes" 1>&6
2621   ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
2622 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
2623 echo "configure:2624: checking for pcreposix.h" >&5
2624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2625   echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627   cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <pcreposix.h>
2631 EOF
2632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2636   rm -rf conftest*
2637   eval "ac_cv_header_$ac_safe=yes"
2638 else
2639   echo "$ac_err" >&5
2640   echo "configure: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   rm -rf conftest*
2643   eval "ac_cv_header_$ac_safe=no"
2644 fi
2645 rm -f conftest*
2646 fi
2647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2648   echo "$ac_t""yes" 1>&6
2649   have_pcreposix=yes
2650 else
2651   echo "$ac_t""no" 1>&6
2652 have_pcreposix=no
2653 fi
2654
2655 else
2656   echo "$ac_t""no" 1>&6
2657 have_pcreposix=no
2658 fi
2659
2660 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
2661 echo "configure:2662: checking for pcrs_compile in -lpcrs" >&5
2662 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664   echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666   ac_save_LIBS="$LIBS"
2667 LIBS="-lpcrs  $LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error.  */
2672 /* We use char because int might match the return type of a gcc2
2673     builtin and then its argument prototype would still apply.  */
2674 char pcrs_compile();
2675
2676 int main() {
2677 pcrs_compile()
2678 ; return 0; }
2679 EOF
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2681   rm -rf conftest*
2682   eval "ac_cv_lib_$ac_lib_var=yes"
2683 else
2684   echo "configure: failed program was:" >&5
2685   cat conftest.$ac_ext >&5
2686   rm -rf conftest*
2687   eval "ac_cv_lib_$ac_lib_var=no"
2688 fi
2689 rm -f conftest*
2690 LIBS="$ac_save_LIBS"
2691
2692 fi
2693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694   echo "$ac_t""yes" 1>&6
2695   ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
2697 echo "configure:2698: checking for pcrs.h" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699   echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701   cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <pcrs.h>
2705 EOF
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2710   rm -rf conftest*
2711   eval "ac_cv_header_$ac_safe=yes"
2712 else
2713   echo "$ac_err" >&5
2714   echo "configure: failed program was:" >&5
2715   cat conftest.$ac_ext >&5
2716   rm -rf conftest*
2717   eval "ac_cv_header_$ac_safe=no"
2718 fi
2719 rm -f conftest*
2720 fi
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722   echo "$ac_t""yes" 1>&6
2723   have_pcrs=yes
2724 else
2725   echo "$ac_t""no" 1>&6
2726 have_pcrs=no
2727 fi
2728
2729 else
2730   echo "$ac_t""no" 1>&6
2731 have_pcrs=no
2732 fi
2733
2734
2735
2736
2737 cat >> confdefs.h <<\EOF
2738 #define __MT__ 1
2739 EOF
2740
2741
2742
2743 # Check whether --enable-toggle or --disable-toggle was given.
2744 if test "${enable_toggle+set}" = set; then
2745   enableval="$enable_toggle"
2746   if test $enableval = yes; then
2747   cat >> confdefs.h <<\EOF
2748 #define FEATURE_TOGGLE 1
2749 EOF
2750
2751 fi
2752 else
2753   cat >> confdefs.h <<\EOF
2754 #define FEATURE_TOGGLE 1
2755 EOF
2756
2757 fi
2758
2759
2760 # Check whether --enable-force or --disable-force was given.
2761 if test "${enable_force+set}" = set; then
2762   enableval="$enable_force"
2763   if test $enableval = yes; then
2764   cat >> confdefs.h <<\EOF
2765 #define FEATURE_FORCE_LOAD 1
2766 EOF
2767
2768 fi
2769 else
2770   cat >> confdefs.h <<\EOF
2771 #define FEATURE_FORCE_LOAD 1
2772 EOF
2773
2774 fi
2775
2776
2777 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2778 if test "${enable_fast_redirects+set}" = set; then
2779   enableval="$enable_fast_redirects"
2780   if test $enableval = yes; then
2781   cat >> confdefs.h <<\EOF
2782 #define FEATURE_FAST_REDIRECTS 1
2783 EOF
2784
2785 fi
2786 else
2787   cat >> confdefs.h <<\EOF
2788 #define FEATURE_FAST_REDIRECTS 1
2789 EOF
2790
2791 fi
2792
2793
2794 # Check whether --enable-killpopup or --disable-killpopup was given.
2795 if test "${enable_killpopup+set}" = set; then
2796   enableval="$enable_killpopup"
2797   if test $enableval = yes; then
2798   cat >> confdefs.h <<\EOF
2799 #define FEATURE_KILL_POPUPS 1
2800 EOF
2801
2802 fi
2803 else
2804   cat >> confdefs.h <<\EOF
2805 #define FEATURE_KILL_POPUPS 1
2806 EOF
2807
2808 fi
2809
2810
2811 # Check whether --enable-stats or --disable-stats was given.
2812 if test "${enable_stats+set}" = set; then
2813   enableval="$enable_stats"
2814   if test $enableval = yes; then
2815   cat >> confdefs.h <<\EOF
2816 #define FEATURE_STATISTICS 1
2817 EOF
2818
2819 fi
2820 else
2821   cat >> confdefs.h <<\EOF
2822 #define FEATURE_STATISTICS 1
2823 EOF
2824
2825 fi
2826
2827
2828 # Check whether --enable-ie-images or --disable-ie-images was given.
2829 if test "${enable_ie_images+set}" = set; then
2830   enableval="$enable_ie_images"
2831   if test $enableval = yes; then
2832   cat >> confdefs.h <<\EOF
2833 #define FEATURE_IMAGE_DETECT_MSIE 1
2834 EOF
2835
2836 fi
2837 else
2838   cat >> confdefs.h <<\EOF
2839 #define FEATURE_IMAGE_DETECT_MSIE 1
2840 EOF
2841
2842 fi
2843
2844
2845 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2846 if test "${enable_image_blocking+set}" = set; then
2847   enableval="$enable_image_blocking"
2848   if test $enableval = yes; then
2849   cat >> confdefs.h <<\EOF
2850 #define FEATURE_IMAGE_BLOCKING 1
2851 EOF
2852
2853 fi
2854 else
2855   cat >> confdefs.h <<\EOF
2856 #define FEATURE_IMAGE_BLOCKING 1
2857 EOF
2858
2859 fi
2860
2861
2862 # Check whether --enable-acl-files or --disable-acl-files was given.
2863 if test "${enable_acl_files+set}" = set; then
2864   enableval="$enable_acl_files"
2865   if test $enableval = yes; then
2866   cat >> confdefs.h <<\EOF
2867 #define FEATURE_ACL 1
2868 EOF
2869
2870 fi
2871 else
2872   cat >> confdefs.h <<\EOF
2873 #define FEATURE_ACL 1
2874 EOF
2875
2876 fi
2877
2878
2879 # Check whether --enable-trust-files or --disable-trust-files was given.
2880 if test "${enable_trust_files+set}" = set; then
2881   enableval="$enable_trust_files"
2882   if test $enableval = yes; then
2883   cat >> confdefs.h <<\EOF
2884 #define FEATURE_TRUST 1
2885 EOF
2886
2887 fi
2888 else
2889   cat >> confdefs.h <<\EOF
2890 #define FEATURE_TRUST 1
2891 EOF
2892
2893 fi
2894
2895
2896 # Check whether --enable-jar-files or --disable-jar-files was given.
2897 if test "${enable_jar_files+set}" = set; then
2898   enableval="$enable_jar_files"
2899   if test $enableval = yes; then
2900   cat >> confdefs.h <<\EOF
2901 #define FEATURE_COOKIE_JAR 1
2902 EOF
2903
2904 fi
2905 else
2906   cat >> confdefs.h <<\EOF
2907 #define FEATURE_COOKIE_JAR 1
2908 EOF
2909
2910 fi
2911
2912
2913 # Check whether --enable-editor or --disable-editor was given.
2914 if test "${enable_editor+set}" = set; then
2915   enableval="$enable_editor"
2916   if test $enableval = yes; then
2917   cat >> confdefs.h <<\EOF
2918 #define FEATURE_CGI_EDIT_ACTIONS 1
2919 EOF
2920
2921 fi
2922 else
2923   cat >> confdefs.h <<\EOF
2924 #define FEATURE_CGI_EDIT_ACTIONS 1
2925 EOF
2926
2927 fi
2928
2929
2930 # Check whether --enable-no-gifs or --disable-no-gifs was given.
2931 if test "${enable_no_gifs+set}" = set; then
2932   enableval="$enable_no_gifs"
2933   if test $enableval = yes; then
2934   cat >> confdefs.h <<\EOF
2935 #define FEATURE_NO_GIFS 1
2936 EOF
2937
2938 fi
2939 fi
2940
2941
2942
2943
2944 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2945 if test "${enable_regex_matching+set}" = set; then
2946   enableval="$enable_regex_matching"
2947    regex_matching=$enableval 
2948 else
2949    regex_matching=pcre 
2950 fi
2951
2952
2953 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2954 if test "${enable_dynamic_pcre+set}" = set; then
2955   enableval="$enable_dynamic_pcre"
2956    if test $enableval = "no"; then have_pcre=no; fi 
2957 fi
2958
2959
2960 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2961 if test "${enable_dynamic_pcrs+set}" = set; then
2962   enableval="$enable_dynamic_pcrs"
2963    if test $enableval = "no"; then have_pcrs=no; fi 
2964 fi
2965
2966
2967
2968 # Is the regex URL matching based on libpcreposix, but we
2969 # don't have that library?
2970 #
2971 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2972   dont_miss_pcreposix=yes
2973 else
2974   dont_miss_pcreposix=no
2975 fi
2976
2977 # If we have libpcre and either we also have pcreposix or
2978 # we don't need pcreposix, then link pcre dynamically; else
2979 # build it and link statically
2980 #
2981 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2982   echo "using libpcre"
2983   pcre_dyn=yes
2984   STATIC_PCRE_ONLY=#
2985   LIBS="$LIBS -lpcre"
2986 else
2987   echo "using built-in static pcre"
2988   pcre_dyn=no
2989   cat >> confdefs.h <<\EOF
2990 #define STATIC_PCRE 1
2991 EOF
2992
2993   STATIC_PCRE_ONLY=
2994 fi
2995
2996 # If we have libpcrs and pcre is linked dynamically
2997 # then also link pcrs dynamically, else build and link
2998 # pcrs statically
2999 #
3000 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
3001   echo "using libpcrs"
3002   STATIC_PCRS_ONLY=#
3003   LIBS="$LIBS -lpcrs"
3004 else
3005   echo "using built-in static pcrs"
3006   cat >> confdefs.h <<\EOF
3007 #define STATIC_PCRS 1
3008 EOF
3009
3010   STATIC_PCRS_ONLY=
3011 fi
3012
3013 # Which method should be used for URL matching?
3014 # pcre, gnu regex or prefix matching?
3015 #
3016 if test $regex_matching = "gnu"; then
3017   echo "using gnu regex for URL matching"
3018   cat >> confdefs.h <<\EOF
3019 #define REGEX_GNU 1
3020 EOF
3021
3022   GNU_REGEX_ONLY=
3023   PCRE_REGEX_ONLY=#
3024 elif test $regex_matching = "pcre"; then
3025   echo "using pcre regex for URL matching"
3026   cat >> confdefs.h <<\EOF
3027 #define REGEX_PCRE 1
3028 EOF
3029
3030   GNU_REGEX_ONLY=#
3031   PCRE_REGEX_ONLY=
3032   if test $pcre_dyn = "yes"; then
3033     LIBS="$LIBS -lpcreposix"
3034   fi
3035 else
3036   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
3037   GNU_REGEX_ONLY=#
3038   PCRE_REGEX_ONLY=#
3039 fi
3040
3041
3042
3043
3044
3045
3046
3047 CFLAGS=$old_CFLAGS_nospecial
3048
3049
3050
3051
3052 trap '' 1 2 15
3053 cat > confcache <<\EOF
3054 # This file is a shell script that caches the results of configure
3055 # tests run on this system so they can be shared between configure
3056 # scripts and configure runs.  It is not useful on other systems.
3057 # If it contains results you don't want to keep, you may remove or edit it.
3058 #
3059 # By default, configure uses ./config.cache as the cache file,
3060 # creating it if it does not exist already.  You can give configure
3061 # the --cache-file=FILE option to use a different cache file; that is
3062 # what configure does when it calls configure scripts in
3063 # subdirectories, so they share the cache.
3064 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3065 # config.status only pays attention to the cache file if you give it the
3066 # --recheck option to rerun configure.
3067 #
3068 EOF
3069 # The following way of writing the cache mishandles newlines in values,
3070 # but we know of no workaround that is simple, portable, and efficient.
3071 # So, don't put newlines in cache variables' values.
3072 # Ultrix sh set writes to stderr and can't be redirected directly,
3073 # and sets the high bit in the cache file unless we assign to the vars.
3074 (set) 2>&1 |
3075   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3076   *ac_space=\ *)
3077     # `set' does not quote correctly, so add quotes (double-quote substitution
3078     # turns \\\\ into \\, and sed turns \\ into \).
3079     sed -n \
3080       -e "s/'/'\\\\''/g" \
3081       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3082     ;;
3083   *)
3084     # `set' quotes correctly as required by POSIX, so do not add quotes.
3085     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3086     ;;
3087   esac >> confcache
3088 if cmp -s $cache_file confcache; then
3089   :
3090 else
3091   if test -w $cache_file; then
3092     echo "updating cache $cache_file"
3093     cat confcache > $cache_file
3094   else
3095     echo "not updating unwritable cache $cache_file"
3096   fi
3097 fi
3098 rm -f confcache
3099
3100 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3101
3102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3103 # Let make expand exec_prefix.
3104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3105
3106 # Any assignment to VPATH causes Sun make to only execute
3107 # the first set of double-colon rules, so remove it if not needed.
3108 # If there is a colon in the path, we need to keep it.
3109 if test "x$srcdir" = x.; then
3110   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3111 fi
3112
3113 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3114
3115 DEFS=-DHAVE_CONFIG_H
3116
3117 # Without the "./", some shells look in PATH for config.status.
3118 : ${CONFIG_STATUS=./config.status}
3119
3120 echo creating $CONFIG_STATUS
3121 rm -f $CONFIG_STATUS
3122 cat > $CONFIG_STATUS <<EOF
3123 #! /bin/sh
3124 # Generated automatically by configure.
3125 # Run this file to recreate the current configuration.
3126 # This directory was configured as follows,
3127 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3128 #
3129 # $0 $ac_configure_args
3130 #
3131 # Compiler output produced by configure, useful for debugging
3132 # configure, is in ./config.log if it exists.
3133
3134 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3135 for ac_option
3136 do
3137   case "\$ac_option" in
3138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3139     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3140     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3141   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3142     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3143     exit 0 ;;
3144   -help | --help | --hel | --he | --h)
3145     echo "\$ac_cs_usage"; exit 0 ;;
3146   *) echo "\$ac_cs_usage"; exit 1 ;;
3147   esac
3148 done
3149
3150 ac_given_srcdir=$srcdir
3151
3152 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3153 EOF
3154 cat >> $CONFIG_STATUS <<EOF
3155
3156 # Protect against being on the right side of a sed subst in config.status.
3157 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3158  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3159 $ac_vpsub
3160 $extrasub
3161 s%@SHELL@%$SHELL%g
3162 s%@CFLAGS@%$CFLAGS%g
3163 s%@CPPFLAGS@%$CPPFLAGS%g
3164 s%@CXXFLAGS@%$CXXFLAGS%g
3165 s%@FFLAGS@%$FFLAGS%g
3166 s%@DEFS@%$DEFS%g
3167 s%@LDFLAGS@%$LDFLAGS%g
3168 s%@LIBS@%$LIBS%g
3169 s%@exec_prefix@%$exec_prefix%g
3170 s%@prefix@%$prefix%g
3171 s%@program_transform_name@%$program_transform_name%g
3172 s%@bindir@%$bindir%g
3173 s%@sbindir@%$sbindir%g
3174 s%@libexecdir@%$libexecdir%g
3175 s%@datadir@%$datadir%g
3176 s%@sysconfdir@%$sysconfdir%g
3177 s%@sharedstatedir@%$sharedstatedir%g
3178 s%@localstatedir@%$localstatedir%g
3179 s%@libdir@%$libdir%g
3180 s%@includedir@%$includedir%g
3181 s%@oldincludedir@%$oldincludedir%g
3182 s%@infodir@%$infodir%g
3183 s%@mandir@%$mandir%g
3184 s%@host@%$host%g
3185 s%@host_alias@%$host_alias%g
3186 s%@host_cpu@%$host_cpu%g
3187 s%@host_vendor@%$host_vendor%g
3188 s%@host_os@%$host_os%g
3189 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
3190 s%@VERSION_MINOR@%$VERSION_MINOR%g
3191 s%@VERSION_POINT@%$VERSION_POINT%g
3192 s%@CODE_STATUS@%$CODE_STATUS%g
3193 s%@CC@%$CC%g
3194 s%@CPP@%$CPP%g
3195 s%@GDB@%$GDB%g
3196 s%@WIN_ONLY@%$WIN_ONLY%g
3197 s%@WDUMP@%$WDUMP%g
3198 s%@RPMBIN@%$RPMBIN%g
3199 s%@RPM_BASE@%$RPM_BASE%g
3200 s%@JADEBIN@%$JADEBIN%g
3201 s%@DKPREFIX@%$DKPREFIX%g
3202 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
3203 s%@SOCKET_LIB@%$SOCKET_LIB%g
3204 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
3205 s%@EXEEXT@%$EXEEXT%g
3206 s%@OBJEXT@%$OBJEXT%g
3207 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
3208 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
3209 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
3210 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
3211 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
3212 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
3213
3214 CEOF
3215 EOF
3216
3217 cat >> $CONFIG_STATUS <<\EOF
3218
3219 # Split the substitutions into bite-sized pieces for seds with
3220 # small command number limits, like on Digital OSF/1 and HP-UX.
3221 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3222 ac_file=1 # Number of current file.
3223 ac_beg=1 # First line for current file.
3224 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3225 ac_more_lines=:
3226 ac_sed_cmds=""
3227 while $ac_more_lines; do
3228   if test $ac_beg -gt 1; then
3229     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3230   else
3231     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3232   fi
3233   if test ! -s conftest.s$ac_file; then
3234     ac_more_lines=false
3235     rm -f conftest.s$ac_file
3236   else
3237     if test -z "$ac_sed_cmds"; then
3238       ac_sed_cmds="sed -f conftest.s$ac_file"
3239     else
3240       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3241     fi
3242     ac_file=`expr $ac_file + 1`
3243     ac_beg=$ac_end
3244     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3245   fi
3246 done
3247 if test -z "$ac_sed_cmds"; then
3248   ac_sed_cmds=cat
3249 fi
3250 EOF
3251
3252 cat >> $CONFIG_STATUS <<EOF
3253
3254 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
3255 EOF
3256 cat >> $CONFIG_STATUS <<\EOF
3257 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3258   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3259   case "$ac_file" in
3260   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3261        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3262   *) ac_file_in="${ac_file}.in" ;;
3263   esac
3264
3265   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3266
3267   # Remove last slash and all that follows it.  Not all systems have dirname.
3268   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3269   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3270     # The file is in a subdirectory.
3271     test ! -d "$ac_dir" && mkdir "$ac_dir"
3272     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3273     # A "../" for each directory in $ac_dir_suffix.
3274     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3275   else
3276     ac_dir_suffix= ac_dots=
3277   fi
3278
3279   case "$ac_given_srcdir" in
3280   .)  srcdir=.
3281       if test -z "$ac_dots"; then top_srcdir=.
3282       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3283   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3284   *) # Relative path.
3285     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3286     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3287   esac
3288
3289
3290   echo creating "$ac_file"
3291   rm -f "$ac_file"
3292   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3293   case "$ac_file" in
3294   *Makefile*) ac_comsub="1i\\
3295 # $configure_input" ;;
3296   *) ac_comsub= ;;
3297   esac
3298
3299   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3300   sed -e "$ac_comsub
3301 s%@configure_input@%$configure_input%g
3302 s%@srcdir@%$srcdir%g
3303 s%@top_srcdir@%$top_srcdir%g
3304 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3305 fi; done
3306 rm -f conftest.s*
3307
3308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3310 #
3311 # ac_d sets the value in "#define NAME VALUE" lines.
3312 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3313 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3314 ac_dC='\3'
3315 ac_dD='%g'
3316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3317 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3318 ac_uB='\([      ]\)%\1#\2define\3'
3319 ac_uC=' '
3320 ac_uD='\4%g'
3321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3322 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3323 ac_eB='$%\1#\2define\3'
3324 ac_eC=' '
3325 ac_eD='%g'
3326
3327 if test "${CONFIG_HEADERS+set}" != set; then
3328 EOF
3329 cat >> $CONFIG_STATUS <<EOF
3330   CONFIG_HEADERS="config.h"
3331 EOF
3332 cat >> $CONFIG_STATUS <<\EOF
3333 fi
3334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3335   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3336   case "$ac_file" in
3337   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3338        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3339   *) ac_file_in="${ac_file}.in" ;;
3340   esac
3341
3342   echo creating $ac_file
3343
3344   rm -f conftest.frag conftest.in conftest.out
3345   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3346   cat $ac_file_inputs > conftest.in
3347
3348 EOF
3349
3350 # Transform confdefs.h into a sed script conftest.vals that substitutes
3351 # the proper values into config.h.in to produce config.h.  And first:
3352 # Protect against being on the right side of a sed subst in config.status.
3353 # Protect against being in an unquoted here document in config.status.
3354 rm -f conftest.vals
3355 cat > conftest.hdr <<\EOF
3356 s/[\\&%]/\\&/g
3357 s%[\\$`]%\\&%g
3358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3359 s%ac_d%ac_u%gp
3360 s%ac_u%ac_e%gp
3361 EOF
3362 sed -n -f conftest.hdr confdefs.h > conftest.vals
3363 rm -f conftest.hdr
3364
3365 # This sed command replaces #undef with comments.  This is necessary, for
3366 # example, in the case of _POSIX_SOURCE, which is predefined and required
3367 # on some systems where configure will not decide to define it.
3368 cat >> conftest.vals <<\EOF
3369 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3370 EOF
3371
3372 # Break up conftest.vals because some shells have a limit on
3373 # the size of here documents, and old seds have small limits too.
3374
3375 rm -f conftest.tail
3376 while :
3377 do
3378   ac_lines=`grep -c . conftest.vals`
3379   # grep -c gives empty output for an empty file on some AIX systems.
3380   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3381   # Write a limited-size here document to conftest.frag.
3382   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3383   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3384   echo 'CEOF
3385   sed -f conftest.frag conftest.in > conftest.out
3386   rm -f conftest.in
3387   mv conftest.out conftest.in
3388 ' >> $CONFIG_STATUS
3389   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3390   rm -f conftest.vals
3391   mv conftest.tail conftest.vals
3392 done
3393 rm -f conftest.vals
3394
3395 cat >> $CONFIG_STATUS <<\EOF
3396   rm -f conftest.frag conftest.h
3397   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3398   cat conftest.in >> conftest.h
3399   rm -f conftest.in
3400   if cmp -s $ac_file conftest.h 2>/dev/null; then
3401     echo "$ac_file is unchanged"
3402     rm -f conftest.h
3403   else
3404     # Remove last slash and all that follows it.  Not all systems have dirname.
3405       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3406       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3407       # The file is in a subdirectory.
3408       test ! -d "$ac_dir" && mkdir "$ac_dir"
3409     fi
3410     rm -f $ac_file
3411     mv conftest.h $ac_file
3412   fi
3413 fi; done
3414
3415 EOF
3416 cat >> $CONFIG_STATUS <<EOF
3417
3418 EOF
3419 cat >> $CONFIG_STATUS <<\EOF
3420
3421 exit 0
3422 EOF
3423 chmod +x $CONFIG_STATUS
3424 rm -fr confdefs* $ac_clean_files
3425 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3426