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