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