3 # From configure.in Revision: 1.39
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --with-docbook=[yes|no|directory]
17 Enable docbook documentation creation
18 (default = yes, for gnu and linux)"
20 --with-debug Enable debug mode"
22 --enable-mingw32 Use mingw32 for a Windows GUI"
24 --disable-pthread Don't use POSIX threads (pthreads)"
26 --disable-toggle Don't support temporary disable"
28 --disable-force Don't allow single-page disable"
30 --disable-fast-redirects Don't support fast redirects"
32 --disable-killpopup Never block popups"
34 --disable-stats Don't keep statistics"
36 --disable-ie-images Don't auto-detect whether a request from MS Internet
37 Explorer is for an image or HTML."
39 --disable-image-blocking Don't try to figure out whether a request is
40 for an image or HTML - assume HTML."
42 --disable-acl-files Prevents the use of ACL files to control access to
43 the proxy by IP address."
45 --disable-trust-files Prevents the use of trust files."
47 --disable-jar-files Prevents the use of jar files to capture cookies."
49 --disable-editor Prevents the use of the web-based actions file
50 editor and web-based temporary disable setting."
52 --enable-no-gifs Use politically correct PNG format instead of GIF
53 for built-in images. May not work with all browsers."
55 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
56 pattern matching (default)
57 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
58 matching (-> bigger binary)
59 --disable-regex-matching Don't use regex matching, compare URL
60 prefix instead (won't shrink birary)"
62 --disable-dynamic-pcre Use the built-in, static pcre, even if
65 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
125 # Accept the important Cygnus configure options, so we can diagnose typos.
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
139 -cache-file | --cache-file | --cache-fil | --cache-fi \
140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141 ac_prev=cache_file ;;
142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144 cache_file="$ac_optarg" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 datadir="$ac_optarg" ;;
152 -disable-* | --disable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* | --enable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176 | --exec | --exe | --ex)
177 ac_prev=exec_prefix ;;
178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180 | --exec=* | --exe=* | --ex=*)
181 exec_prefix="$ac_optarg" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
187 -help | --help | --hel | --he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host | --host | --hos | --ho)
244 -host=* | --host=* | --hos=* | --ho=*)
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
365 -site=* | --site=* | --sit=*)
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374 | --syscon | --sysco | --sysc | --sys | --sy)
375 ac_prev=sysconfdir ;;
376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378 sysconfdir="$ac_optarg" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.13"
393 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}='$ac_optarg'" ;;
405 -without-* | --without-*)
406 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
415 # Obsolete; use --with-x.
418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419 | --x-incl | --x-inc | --x-in | --x-i)
420 ac_prev=x_includes ;;
421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423 x_includes="$ac_optarg" ;;
425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427 ac_prev=x_libraries ;;
428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430 x_libraries="$ac_optarg" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 if test "x$nonopt" != xNONE; then
440 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c) ;;
482 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 # Only set these to C if already set. These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511 ac_srcdir_defaulted=yes
512 # Try the directory containing this script, then its parent.
514 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 if test ! -r $srcdir/$ac_unique_file; then
521 ac_srcdir_defaulted=no
523 if test ! -r $srcdir/$ac_unique_file; then
524 if test "$ac_srcdir_defaulted" = yes; then
525 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
540 for ac_site_file in $CONFIG_SITE; do
541 if test -r "$ac_site_file"; then
542 echo "loading site script $ac_site_file"
547 if test -r "$cache_file"; then
548 echo "loading cache $cache_file"
551 echo "creating cache $cache_file"
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573 ac_n= ac_c='\c' ac_t=
579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
580 if test -f $ac_dir/install-sh; then
582 ac_install_sh="$ac_aux_dir/install-sh -c"
584 elif test -f $ac_dir/install.sh; then
586 ac_install_sh="$ac_aux_dir/install.sh -c"
590 if test -z "$ac_aux_dir"; then
591 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
593 ac_config_guess=$ac_aux_dir/config.guess
594 ac_config_sub=$ac_aux_dir/config.sub
595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
627 # Check whether --with-docbook or --without-docbook was given.
628 if test "${with_docbook+set}" = set; then
629 withval="$with_docbook"
630 case "$with_docbook" in
655 cat >> confdefs.h <<EOF
656 #define VERSION_MAJOR ${VERSION_MAJOR}
659 cat >> confdefs.h <<EOF
660 #define VERSION_MINOR ${VERSION_MINOR}
663 cat >> confdefs.h <<EOF
664 #define VERSION_POINT ${VERSION_POINT}
667 cat >> confdefs.h <<EOF
668 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
671 cat >> confdefs.h <<EOF
672 #define CODE_STATUS "${CODE_STATUS}"
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
731 if test $ac_prog_rejected = yes; then
732 # We found a bogon in the path, so make sure we never use it.
733 set dummy $ac_cv_prog_CC
735 if test $# -gt 0; then
736 # We chose a different compiler from the bogus one.
737 # However, it has the same basename, so the bogon will be chosen
738 # first if we set CC to just the basename; use the full file name.
740 set dummy "$ac_dir/$ac_word" "$@"
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
751 echo "$ac_t""no" 1>&6
754 if test -z "$CC"; then
757 # Extract the first word of "cl", so it can be a program name with args.
758 set dummy cl; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
780 if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
783 echo "$ac_t""no" 1>&6
788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
801 cat > conftest.$ac_ext << EOF
803 #line 804 "configure"
804 #include "confdefs.h"
808 if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809 ac_cv_prog_cc_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cc_cross=no
814 ac_cv_prog_cc_cross=yes
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cc_works=no
823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824 ac_cpp='$CPP $CPPFLAGS'
825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827 cross_compiling=$ac_cv_prog_cc_cross
829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830 if test $ac_cv_prog_cc_works = no; then
831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836 cross_compiling=$ac_cv_prog_cc_cross
838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
839 echo "configure:840: checking whether we are using GNU C" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 cat > conftest.c <<EOF
848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
857 if test $ac_cv_prog_gcc = yes; then
863 ac_test_CFLAGS="${CFLAGS+set}"
864 ac_save_CFLAGS="$CFLAGS"
866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
867 echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 echo 'void f(){}' > conftest.c
872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882 if test "$ac_test_CFLAGS" = set; then
883 CFLAGS="$ac_save_CFLAGS"
884 elif test $ac_cv_prog_cc_g = yes; then
885 if test "$GCC" = yes; then
891 if test "$GCC" = yes; then
898 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
899 echo "configure:900: checking how to run the C preprocessor" >&5
900 # On Suns, sometimes $CPP names a directory.
901 if test -n "$CPP" && test -d "$CPP"; then
904 if test -z "$CPP"; then
905 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 # This must be in double quotes, not single quotes, because CPP may get
909 # substituted into the Makefile and "${CC-cc}" will confuse make.
911 # On the NeXT, cc -E runs the code through the compiler's parser,
912 # not just through cpp.
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
929 CPP="${CC-cc} -E -traditional-cpp"
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
946 CPP="${CC-cc} -nologo -E"
947 cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956 if test -z "$ac_err"; then
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
970 ac_cv_prog_CPP="$CPP"
972 CPP="$ac_cv_prog_CPP"
974 ac_cv_prog_CPP="$CPP"
976 echo "$ac_t""$CPP" 1>&6
979 # Extract the first word of "gdb", so it can be a program name with args.
980 set dummy gdb; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 if test -n "$GDB"; then
987 ac_cv_prog_GDB="$GDB" # Let the user override the test.
989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991 for ac_dir in $ac_dummy; do
992 test -z "$ac_dir" && ac_dir=.
993 if test -f $ac_dir/$ac_word; then
999 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
1002 GDB="$ac_cv_prog_GDB"
1003 if test -n "$GDB"; then
1004 echo "$ac_t""$GDB" 1>&6
1006 echo "$ac_t""no" 1>&6
1011 # Check whether --with-debug or --without-debug was given.
1012 if test "${with_debug+set}" = set; then
1013 withval="$with_debug"
1015 if test "x$withval" != "xno" ; then
1016 if test $ac_cv_prog_cc_g = yes; then
1017 if test "$GCC" = yes; then
1018 if test "$GDB"; then
1023 CFLAGS="$CFLAGS -Wshadow -Wconversion"
1032 if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
1033 if test "$GCC" = yes; then
1044 if test "$GCC"; then
1045 CFLAGS="-pipe $CFLAGS"
1050 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1051 echo "configure:1052: checking for mingw32 environment" >&5
1052 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1063 if { (eval echo configure:1064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1076 echo "$ac_t""$ac_cv_mingw32" 1>&6
1078 test "$ac_cv_mingw32" = yes && MINGW32=yes
1079 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1080 echo "configure:1081: checking for Cygwin environment" >&5
1081 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1091 #define __CYGWIN__ __CYGWIN32__
1096 if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1109 echo "$ac_t""$ac_cv_cygwin" 1>&6
1111 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1113 if test "$MINGW32" = "yes"; then
1116 if test "$CYGWIN" = "yes"; then
1123 if test $dodk = auto; then
1125 if test $target_type = unix; then
1135 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1136 if test "${enable_mingw32+set}" = set; then
1137 enableval="$enable_mingw32"
1138 if test $enableval = yes; then
1144 if test $target_type = mingw; then
1146 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1147 PTHREAD_LIB=-lpthreadGC
1148 echo "Using mingw32 (Win32 GUI)"
1151 if test $target_type = cygwin; then
1152 SPECIAL_CFLAGS="-mno-win32"
1154 echo "Using Cygnus (Win32 command line)"
1157 PTHREAD_LIB=-lpthread
1162 if test $dodk != no; then
1163 for ac_prog in w3m lynx links
1165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1166 set dummy $ac_prog; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_WDUMP'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$WDUMP"; then
1173 ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_WDUMP="$ac_prog"
1187 WDUMP="$ac_cv_prog_WDUMP"
1188 if test -n "$WDUMP"; then
1189 echo "$ac_t""$WDUMP" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 test -n "$WDUMP" && break
1196 test -n "$WDUMP" || WDUMP="false"
1198 if test "$WDUMP" = false; then
1199 { echo "configure: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" 1>&2; exit 1; }
1206 # Extract the first word of "$ac_prog", so it can be a program name with args.
1207 set dummy $ac_prog; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_RPMBIN'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -n "$RPMBIN"; then
1214 ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1218 for ac_dir in $ac_dummy; do
1219 test -z "$ac_dir" && ac_dir=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_RPMBIN="$ac_prog"
1228 RPMBIN="$ac_cv_prog_RPMBIN"
1229 if test -n "$RPMBIN"; then
1230 echo "$ac_t""$RPMBIN" 1>&6
1232 echo "$ac_t""no" 1>&6
1235 test -n "$RPMBIN" && break
1237 test -n "$RPMBIN" || RPMBIN="false"
1239 if test $RPMBIN != false; then
1240 RPM_BASE=`rpm --eval "%{_topdir}"`
1241 if test "$RPM_BASE" = ""; then
1242 RPM_BASE=/usr/src/redhat
1247 for ac_prog in jade openjade
1249 # Extract the first word of "$ac_prog", so it can be a program name with args.
1250 set dummy $ac_prog; ac_word=$2
1251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1252 echo "configure:1253: checking for $ac_word" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_JADEBIN'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 if test -n "$JADEBIN"; then
1257 ac_cv_prog_JADEBIN="$JADEBIN" # Let the user override the test.
1259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1261 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 if test -f $ac_dir/$ac_word; then
1264 ac_cv_prog_JADEBIN="$ac_prog"
1271 JADEBIN="$ac_cv_prog_JADEBIN"
1272 if test -n "$JADEBIN"; then
1273 echo "$ac_t""$JADEBIN" 1>&6
1275 echo "$ac_t""no" 1>&6
1278 test -n "$JADEBIN" && break
1280 test -n "$JADEBIN" || JADEBIN="false"
1284 if test $dodk = yes; then
1285 if test $DKPREFIX = none; then
1287 ac_safe=`echo "/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1288 echo $ac_n "checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl""... $ac_c" 1>&6
1289 echo "configure:1290: checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" >&5
1290 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 if test "$cross_compiling" = yes; then
1294 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1296 if test -r /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl; then
1297 eval "ac_cv_file_$ac_safe=yes"
1299 eval "ac_cv_file_$ac_safe=no"
1303 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 DKPREFIX=/usr/share/sgml/docbook/dsssl-stylesheets
1307 echo "$ac_t""no" 1>&6
1309 ac_safe=`echo "/usr/share/sgml/docbkdsl/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1310 echo $ac_n "checking for /usr/share/sgml/docbkdsl/html/docbook.dsl""... $ac_c" 1>&6
1311 echo "configure:1312: checking for /usr/share/sgml/docbkdsl/html/docbook.dsl" >&5
1312 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 if test "$cross_compiling" = yes; then
1316 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1318 if test -r /usr/share/sgml/docbkdsl/html/docbook.dsl; then
1319 eval "ac_cv_file_$ac_safe=yes"
1321 eval "ac_cv_file_$ac_safe=no"
1325 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1326 echo "$ac_t""yes" 1>&6
1327 DKPREFIX=/usr/share/sgml/docbkdsl
1329 echo "$ac_t""no" 1>&6
1339 old_CFLAGS_nospecial=$CFLAGS
1340 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1342 # Hack to force AutoConf to use the CFLAGS we just set
1343 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1349 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1350 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1351 echo "configure:1352: checking for pthread.h" >&5
1352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 #include <pthread.h>
1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1365 eval "ac_cv_header_$ac_safe=yes"
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1371 eval "ac_cv_header_$ac_safe=no"
1375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1379 echo "$ac_t""no" 1>&6
1384 # Check whether --enable-pthread or --disable-pthread was given.
1385 if test "${enable_pthread+set}" = set; then
1386 enableval="$enable_pthread"
1387 if test $enableval = no; then
1394 if test $have_pthread = yes; then
1396 cat >> confdefs.h <<\EOF
1397 #define FEATURE_PTHREAD 1
1400 echo Using POSIX threads
1401 if test "$GCC" = "yes"; then
1402 # Set a GCC specific switch:
1403 if test "$target_type" = "unix"; then
1404 # This compiler switch makes Linux thread-safe
1405 # Don't know about other OS's? Is this switch
1408 SPECIAL_CFLAGS="-pthread"
1413 echo Using native threads
1419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1420 echo "configure:1421: checking for gethostbyname in -lnsl" >&5
1421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 ac_save_LIBS="$LIBS"
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* Override any gcc2 internal prototype to avoid an error. */
1431 /* We use char because int might match the return type of a gcc2
1432 builtin and then its argument prototype would still apply. */
1433 char gethostbyname();
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441 eval "ac_cv_lib_$ac_lib_var=yes"
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1446 eval "ac_cv_lib_$ac_lib_var=no"
1449 LIBS="$ac_save_LIBS"
1452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1453 echo "$ac_t""yes" 1>&6
1454 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1456 cat >> confdefs.h <<EOF
1457 #define $ac_tr_lib 1
1463 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
1468 echo "configure:1469: checking for gethostbyaddr_r" >&5
1469 if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1475 /* System header to define __stub macros and hopefully few prototypes,
1476 which can conflict with char gethostbyaddr_r(); below. */
1478 /* Override any gcc2 internal prototype to avoid an error. */
1479 /* We use char because int might match the return type of a gcc2
1480 builtin and then its argument prototype would still apply. */
1481 char gethostbyaddr_r();
1485 /* The GNU C library defines this for functions which it implements
1486 to always fail with ENOSYS. Some functions are actually named
1487 something starting with __ and the normal name is an alias. */
1488 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1498 eval "ac_cv_func_gethostbyaddr_r=yes"
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1503 eval "ac_cv_func_gethostbyaddr_r=no"
1508 if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1511 echo $ac_n "checking signature of gethostbyaddr_r""... $ac_c" 1>&6
1512 echo "configure:1513: checking signature of gethostbyaddr_r" >&5
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1521 struct hostent *h, *hp;
1524 (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
1528 if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1531 cat >> confdefs.h <<\EOF
1532 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
1535 echo "$ac_t""8 args" 1>&6
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1553 (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
1557 if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1560 cat >> confdefs.h <<\EOF
1561 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
1564 echo "$ac_t""7 args" 1>&6
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1579 struct hostent_data *d;
1583 (void) gethostbyaddr_r(a, l, t, h, d)
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1590 cat >> confdefs.h <<\EOF
1591 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
1594 echo "$ac_t""5 args" 1>&6
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1601 echo "$ac_t""unrecognised" 1>&6
1613 echo "$ac_t""no" 1>&6
1615 echo "$ac_t""no" 1>&6
1620 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
1621 echo "configure:1622: checking for gethostbyname_r" >&5
1622 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 /* System header to define __stub macros and hopefully few prototypes,
1629 which can conflict with char gethostbyname_r(); below. */
1631 /* Override any gcc2 internal prototype to avoid an error. */
1632 /* We use char because int might match the return type of a gcc2
1633 builtin and then its argument prototype would still apply. */
1634 char gethostbyname_r();
1638 /* The GNU C library defines this for functions which it implements
1639 to always fail with ENOSYS. Some functions are actually named
1640 something starting with __ and the normal name is an alias. */
1641 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1651 eval "ac_cv_func_gethostbyname_r=yes"
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1656 eval "ac_cv_func_gethostbyname_r=no"
1661 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
1662 echo "$ac_t""yes" 1>&6
1664 echo $ac_n "checking signature of gethostbyname_r""... $ac_c" 1>&6
1665 echo "configure:1666: checking signature of gethostbyname_r" >&5
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1674 struct hostent *h, *r;
1677 (void) gethostbyname_r(n, h, b, bl, &r, &e)
1681 if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1684 cat >> confdefs.h <<\EOF
1685 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
1688 echo "$ac_t""6 args" 1>&6
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1706 (void) gethostbyname_r(n, h, b, bl, &e)
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 cat >> confdefs.h <<\EOF
1714 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
1717 echo "$ac_t""5 args" 1>&6
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1732 struct hostent_data *d;
1735 (void) gethostbyname_r(n, h, d)
1739 if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1742 cat >> confdefs.h <<\EOF
1743 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
1746 echo "$ac_t""3 args" 1>&6
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1753 echo "$ac_t""unrecognised" 1>&6
1765 echo "$ac_t""no" 1>&6
1767 echo "$ac_t""no" 1>&6
1772 echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6
1773 echo "configure:1774: checking for gmtime_r" >&5
1774 if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char gmtime_r(); below. */
1783 /* Override any gcc2 internal prototype to avoid an error. */
1784 /* We use char because int might match the return type of a gcc2
1785 builtin and then its argument prototype would still apply. */
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1803 eval "ac_cv_func_gmtime_r=yes"
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 eval "ac_cv_func_gmtime_r=no"
1813 if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1816 echo $ac_n "checking signature of gmtime_r""... $ac_c" 1>&6
1817 echo "configure:1818: checking signature of gmtime_r" >&5
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1828 (void) gmtime_r(t, tm)
1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1835 echo "$ac_t""ok" 1>&6
1836 cat >> confdefs.h <<\EOF
1837 #define HAVE_GMTIME_R 1
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1846 echo "$ac_t""unrecognised" 1>&6
1852 echo "$ac_t""no" 1>&6
1854 echo "$ac_t""no" 1>&6
1859 echo $ac_n "checking for localtime_r""... $ac_c" 1>&6
1860 echo "configure:1861: checking for localtime_r" >&5
1861 if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char localtime_r(); below. */
1870 /* Override any gcc2 internal prototype to avoid an error. */
1871 /* We use char because int might match the return type of a gcc2
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1890 eval "ac_cv_func_localtime_r=yes"
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 eval "ac_cv_func_localtime_r=no"
1900 if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1903 echo $ac_n "checking signature of localtime_r""... $ac_c" 1>&6
1904 echo "configure:1905: checking signature of localtime_r" >&5
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1915 (void) localtime_r(t, tm)
1919 if { (eval echo configure:1920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1922 echo "$ac_t""ok" 1>&6
1923 cat >> confdefs.h <<\EOF
1924 #define HAVE_LOCALTIME_R 1
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1933 echo "$ac_t""unrecognised" 1>&6
1939 echo "$ac_t""no" 1>&6
1941 echo "$ac_t""no" 1>&6
1951 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1952 cat >> confdefs.h <<\EOF
1953 #define __EXTENSIONS__ 1
1956 if test "$GCC" = "yes"; then
1957 # Set a GCC specific switch:
1958 # This compiler switch makes Solaris thread-safe
1960 SPECIAL_CFLAGS="-pthreads"
1962 # What do we do without GCC? Guess this:
1963 SPECIAL_CFLAGS="-D_REENTRANT"
1972 *-os2-emx*) SOCKET_LIB=-lsocket
1982 *-amigaos) AMIGAOS_ONLY=
1991 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1992 echo "configure:1993: checking for executable suffix" >&5
1993 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2000 echo 'int main () { return 0; }' > conftest.$ac_ext
2002 if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2003 for file in conftest.*; do
2005 *.c | *.o | *.obj) ;;
2006 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2010 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2013 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2018 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2019 echo "$ac_t""${ac_cv_exeext}" 1>&6
2022 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2023 echo "configure:2024: checking for object suffix" >&5
2024 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2028 echo 'int i = 1;' > conftest.$ac_ext
2029 if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2030 for ac_file in conftest.*; do
2033 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2037 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2042 echo "$ac_t""$ac_cv_objext" 1>&6
2043 OBJEXT=$ac_cv_objext
2044 ac_objext=$ac_cv_objext
2046 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2047 echo "configure:2048: checking for ANSI C header files" >&5
2048 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then
2064 ac_cv_header_stdc=yes
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 ac_cv_header_stdc=no
2074 if test $ac_cv_header_stdc = yes; then
2075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2082 egrep "memchr" >/dev/null 2>&1; then
2086 ac_cv_header_stdc=no
2092 if test $ac_cv_header_stdc = yes; then
2093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2100 egrep "free" >/dev/null 2>&1; then
2104 ac_cv_header_stdc=no
2110 if test $ac_cv_header_stdc = yes; then
2111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2112 if test "$cross_compiling" = yes; then
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2119 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2120 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2122 int main () { int i; for (i = 0; i < 256; i++)
2123 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2134 ac_cv_header_stdc=no
2142 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2143 if test $ac_cv_header_stdc = yes; then
2144 cat >> confdefs.h <<\EOF
2145 #define STDC_HEADERS 1
2150 echo $ac_n "checking for working const""... $ac_c" 1>&6
2151 echo "configure:2152: checking for working const" >&5
2152 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2161 /* Ultrix mips cc rejects this. */
2162 typedef int charset[2]; const charset x;
2163 /* SunOS 4.1.1 cc rejects this. */
2164 char const *const *ccp;
2166 /* NEC SVR4.0.2 mips cc rejects this. */
2167 struct point {int x, y;};
2168 static struct point const zero = {0,0};
2169 /* AIX XL C 1.02.0.0 rejects this.
2170 It does not let you subtract one const X* pointer from another in an arm
2171 of an if-expression whose if-part is not a constant expression */
2172 const char *g = "string";
2173 ccp = &g + (g ? g-g : 0);
2174 /* HPUX 7.0 cc rejects these. */
2177 ccp = (char const *const *) p;
2178 { /* SCO 3.2v4 cc rejects this. */
2180 char const *s = 0 ? (char *) 0 : (char const *) 0;
2184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2186 const int *foo = &x[0];
2189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2190 typedef const int *iptr;
2194 { /* AIX XL C 1.02.0.0 rejects this saying
2195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2196 struct s { int j; const int *ap[3]; };
2197 struct s *b; b->j = 5;
2199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2205 if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2217 echo "$ac_t""$ac_cv_c_const" 1>&6
2218 if test $ac_cv_c_const = no; then
2219 cat >> confdefs.h <<\EOF
2225 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2226 echo "configure:2227: checking for size_t" >&5
2227 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2242 ac_cv_type_size_t=yes
2245 ac_cv_type_size_t=no
2250 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2251 if test $ac_cv_type_size_t = no; then
2252 cat >> confdefs.h <<\EOF
2253 #define size_t unsigned
2258 echo $ac_n "checking size of int""... $ac_c" 1>&6
2259 echo "configure:2260: checking size of int" >&5
2260 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 if test "$cross_compiling" = yes; then
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2272 FILE *f=fopen("conftestval", "w");
2274 fprintf(f, "%d\n", sizeof(int));
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2280 ac_cv_sizeof_int=`cat conftestval`
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2291 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2292 cat >> confdefs.h <<EOF
2293 #define SIZEOF_INT $ac_cv_sizeof_int
2297 echo $ac_n "checking size of char *""... $ac_c" 1>&6
2298 echo "configure:2299: checking size of char *" >&5
2299 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 if test "$cross_compiling" = yes; then
2303 ac_cv_sizeof_char_p=4
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 FILE *f=fopen("conftestval", "w");
2313 fprintf(f, "%d\n", sizeof(char *));
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2319 ac_cv_sizeof_char_p=`cat conftestval`
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 ac_cv_sizeof_char_p=0
2330 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
2331 cat >> confdefs.h <<EOF
2332 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2336 echo $ac_n "checking size of long""... $ac_c" 1>&6
2337 echo "configure:2338: checking size of long" >&5
2338 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 if test "$cross_compiling" = yes; then
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 FILE *f=fopen("conftestval", "w");
2352 fprintf(f, "%d\n", sizeof(long));
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2358 ac_cv_sizeof_long=`cat conftestval`
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2369 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2370 cat >> confdefs.h <<EOF
2371 #define SIZEOF_LONG $ac_cv_sizeof_long
2375 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2376 echo "configure:2377: checking size of long long" >&5
2377 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 if test "$cross_compiling" = yes; then
2381 ac_cv_sizeof_long_long=8
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2389 FILE *f=fopen("conftestval", "w");
2391 fprintf(f, "%d\n", sizeof(long long));
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2397 ac_cv_sizeof_long_long=`cat conftestval`
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2402 ac_cv_sizeof_long_long=0
2408 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2409 cat >> confdefs.h <<EOF
2410 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2414 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2415 echo "configure:2416: checking size of size_t" >&5
2416 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 if test "$cross_compiling" = yes; then
2420 ac_cv_sizeof_size_t=4
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2428 FILE *f=fopen("conftestval", "w");
2430 fprintf(f, "%d\n", sizeof(size_t));
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2436 ac_cv_sizeof_size_t=`cat conftestval`
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2441 ac_cv_sizeof_size_t=0
2447 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2448 cat >> confdefs.h <<EOF
2449 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2455 for ac_func in strerror bcopy memmove
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2488 eval "ac_cv_func_$ac_func=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 eval "ac_cv_func_$ac_func=no"
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2506 echo "$ac_t""no" 1>&6
2512 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2513 echo "configure:2514: checking for pcre_compile in -lpcre" >&5
2514 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 ac_save_LIBS="$LIBS"
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2526 char pcre_compile();
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 eval "ac_cv_lib_$ac_lib_var=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 eval "ac_cv_lib_$ac_lib_var=no"
2542 LIBS="$ac_save_LIBS"
2545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
2548 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
2549 echo "configure:2550: checking for pcre.h" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2563 eval "ac_cv_header_$ac_safe=yes"
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 eval "ac_cv_header_$ac_safe=no"
2573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2577 echo "$ac_t""no" 1>&6
2582 echo "$ac_t""no" 1>&6
2586 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
2587 echo "configure:2588: checking for regcomp in -lpcreposix" >&5
2588 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
2589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 ac_save_LIBS="$LIBS"
2593 LIBS="-lpcreposix -lpcre $LIBS"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 /* Override any gcc2 internal prototype to avoid an error. */
2598 /* We use char because int might match the return type of a gcc2
2599 builtin and then its argument prototype would still apply. */
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 eval "ac_cv_lib_$ac_lib_var=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_lib_$ac_lib_var=no"
2616 LIBS="$ac_save_LIBS"
2619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
2622 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
2623 echo "configure:2624: checking for pcreposix.h" >&5
2624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <pcreposix.h>
2632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2637 eval "ac_cv_header_$ac_safe=yes"
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2643 eval "ac_cv_header_$ac_safe=no"
2647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2648 echo "$ac_t""yes" 1>&6
2651 echo "$ac_t""no" 1>&6
2656 echo "$ac_t""no" 1>&6
2660 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
2661 echo "configure:2662: checking for pcrs_compile in -lpcrs" >&5
2662 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_save_LIBS="$LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674 char pcrs_compile();
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2682 eval "ac_cv_lib_$ac_lib_var=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "ac_cv_lib_$ac_lib_var=no"
2690 LIBS="$ac_save_LIBS"
2693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
2697 echo "configure:2698: checking for pcrs.h" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2725 echo "$ac_t""no" 1>&6
2730 echo "$ac_t""no" 1>&6
2737 cat >> confdefs.h <<\EOF
2743 # Check whether --enable-toggle or --disable-toggle was given.
2744 if test "${enable_toggle+set}" = set; then
2745 enableval="$enable_toggle"
2746 if test $enableval = yes; then
2747 cat >> confdefs.h <<\EOF
2748 #define FEATURE_TOGGLE 1
2753 cat >> confdefs.h <<\EOF
2754 #define FEATURE_TOGGLE 1
2760 # Check whether --enable-force or --disable-force was given.
2761 if test "${enable_force+set}" = set; then
2762 enableval="$enable_force"
2763 if test $enableval = yes; then
2764 cat >> confdefs.h <<\EOF
2765 #define FEATURE_FORCE_LOAD 1
2770 cat >> confdefs.h <<\EOF
2771 #define FEATURE_FORCE_LOAD 1
2777 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2778 if test "${enable_fast_redirects+set}" = set; then
2779 enableval="$enable_fast_redirects"
2780 if test $enableval = yes; then
2781 cat >> confdefs.h <<\EOF
2782 #define FEATURE_FAST_REDIRECTS 1
2787 cat >> confdefs.h <<\EOF
2788 #define FEATURE_FAST_REDIRECTS 1
2794 # Check whether --enable-killpopup or --disable-killpopup was given.
2795 if test "${enable_killpopup+set}" = set; then
2796 enableval="$enable_killpopup"
2797 if test $enableval = yes; then
2798 cat >> confdefs.h <<\EOF
2799 #define FEATURE_KILL_POPUPS 1
2804 cat >> confdefs.h <<\EOF
2805 #define FEATURE_KILL_POPUPS 1
2811 # Check whether --enable-stats or --disable-stats was given.
2812 if test "${enable_stats+set}" = set; then
2813 enableval="$enable_stats"
2814 if test $enableval = yes; then
2815 cat >> confdefs.h <<\EOF
2816 #define FEATURE_STATISTICS 1
2821 cat >> confdefs.h <<\EOF
2822 #define FEATURE_STATISTICS 1
2828 # Check whether --enable-ie-images or --disable-ie-images was given.
2829 if test "${enable_ie_images+set}" = set; then
2830 enableval="$enable_ie_images"
2831 if test $enableval = yes; then
2832 cat >> confdefs.h <<\EOF
2833 #define FEATURE_IMAGE_DETECT_MSIE 1
2838 cat >> confdefs.h <<\EOF
2839 #define FEATURE_IMAGE_DETECT_MSIE 1
2845 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2846 if test "${enable_image_blocking+set}" = set; then
2847 enableval="$enable_image_blocking"
2848 if test $enableval = yes; then
2849 cat >> confdefs.h <<\EOF
2850 #define FEATURE_IMAGE_BLOCKING 1
2855 cat >> confdefs.h <<\EOF
2856 #define FEATURE_IMAGE_BLOCKING 1
2862 # Check whether --enable-acl-files or --disable-acl-files was given.
2863 if test "${enable_acl_files+set}" = set; then
2864 enableval="$enable_acl_files"
2865 if test $enableval = yes; then
2866 cat >> confdefs.h <<\EOF
2867 #define FEATURE_ACL 1
2872 cat >> confdefs.h <<\EOF
2873 #define FEATURE_ACL 1
2879 # Check whether --enable-trust-files or --disable-trust-files was given.
2880 if test "${enable_trust_files+set}" = set; then
2881 enableval="$enable_trust_files"
2882 if test $enableval = yes; then
2883 cat >> confdefs.h <<\EOF
2884 #define FEATURE_TRUST 1
2889 cat >> confdefs.h <<\EOF
2890 #define FEATURE_TRUST 1
2896 # Check whether --enable-jar-files or --disable-jar-files was given.
2897 if test "${enable_jar_files+set}" = set; then
2898 enableval="$enable_jar_files"
2899 if test $enableval = yes; then
2900 cat >> confdefs.h <<\EOF
2901 #define FEATURE_COOKIE_JAR 1
2906 cat >> confdefs.h <<\EOF
2907 #define FEATURE_COOKIE_JAR 1
2913 # Check whether --enable-editor or --disable-editor was given.
2914 if test "${enable_editor+set}" = set; then
2915 enableval="$enable_editor"
2916 if test $enableval = yes; then
2917 cat >> confdefs.h <<\EOF
2918 #define FEATURE_CGI_EDIT_ACTIONS 1
2923 cat >> confdefs.h <<\EOF
2924 #define FEATURE_CGI_EDIT_ACTIONS 1
2930 # Check whether --enable-no-gifs or --disable-no-gifs was given.
2931 if test "${enable_no_gifs+set}" = set; then
2932 enableval="$enable_no_gifs"
2933 if test $enableval = yes; then
2934 cat >> confdefs.h <<\EOF
2935 #define FEATURE_NO_GIFS 1
2944 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2945 if test "${enable_regex_matching+set}" = set; then
2946 enableval="$enable_regex_matching"
2947 regex_matching=$enableval
2953 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2954 if test "${enable_dynamic_pcre+set}" = set; then
2955 enableval="$enable_dynamic_pcre"
2956 if test $enableval = "no"; then have_pcre=no; fi
2960 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2961 if test "${enable_dynamic_pcrs+set}" = set; then
2962 enableval="$enable_dynamic_pcrs"
2963 if test $enableval = "no"; then have_pcrs=no; fi
2968 # Is the regex URL matching based on libpcreposix, but we
2969 # don't have that library?
2971 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2972 dont_miss_pcreposix=yes
2974 dont_miss_pcreposix=no
2977 # If we have libpcre and either we also have pcreposix or
2978 # we don't need pcreposix, then link pcre dynamically; else
2979 # build it and link statically
2981 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2982 echo "using libpcre"
2987 echo "using built-in static pcre"
2989 cat >> confdefs.h <<\EOF
2990 #define STATIC_PCRE 1
2996 # If we have libpcrs and pcre is linked dynamically
2997 # then also link pcrs dynamically, else build and link
3000 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
3001 echo "using libpcrs"
3005 echo "using built-in static pcrs"
3006 cat >> confdefs.h <<\EOF
3007 #define STATIC_PCRS 1
3013 # Which method should be used for URL matching?
3014 # pcre, gnu regex or prefix matching?
3016 if test $regex_matching = "gnu"; then
3017 echo "using gnu regex for URL matching"
3018 cat >> confdefs.h <<\EOF
3024 elif test $regex_matching = "pcre"; then
3025 echo "using pcre regex for URL matching"
3026 cat >> confdefs.h <<\EOF
3027 #define REGEX_PCRE 1
3032 if test $pcre_dyn = "yes"; then
3033 LIBS="$LIBS -lpcreposix"
3036 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
3047 CFLAGS=$old_CFLAGS_nospecial
3053 cat > confcache <<\EOF
3054 # This file is a shell script that caches the results of configure
3055 # tests run on this system so they can be shared between configure
3056 # scripts and configure runs. It is not useful on other systems.
3057 # If it contains results you don't want to keep, you may remove or edit it.
3059 # By default, configure uses ./config.cache as the cache file,
3060 # creating it if it does not exist already. You can give configure
3061 # the --cache-file=FILE option to use a different cache file; that is
3062 # what configure does when it calls configure scripts in
3063 # subdirectories, so they share the cache.
3064 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3065 # config.status only pays attention to the cache file if you give it the
3066 # --recheck option to rerun configure.
3069 # The following way of writing the cache mishandles newlines in values,
3070 # but we know of no workaround that is simple, portable, and efficient.
3071 # So, don't put newlines in cache variables' values.
3072 # Ultrix sh set writes to stderr and can't be redirected directly,
3073 # and sets the high bit in the cache file unless we assign to the vars.
3075 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3077 # `set' does not quote correctly, so add quotes (double-quote substitution
3078 # turns \\\\ into \\, and sed turns \\ into \).
3080 -e "s/'/'\\\\''/g" \
3081 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3084 # `set' quotes correctly as required by POSIX, so do not add quotes.
3085 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3088 if cmp -s $cache_file confcache; then
3091 if test -w $cache_file; then
3092 echo "updating cache $cache_file"
3093 cat confcache > $cache_file
3095 echo "not updating unwritable cache $cache_file"
3100 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3103 # Let make expand exec_prefix.
3104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3106 # Any assignment to VPATH causes Sun make to only execute
3107 # the first set of double-colon rules, so remove it if not needed.
3108 # If there is a colon in the path, we need to keep it.
3109 if test "x$srcdir" = x.; then
3110 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3113 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3115 DEFS=-DHAVE_CONFIG_H
3117 # Without the "./", some shells look in PATH for config.status.
3118 : ${CONFIG_STATUS=./config.status}
3120 echo creating $CONFIG_STATUS
3121 rm -f $CONFIG_STATUS
3122 cat > $CONFIG_STATUS <<EOF
3124 # Generated automatically by configure.
3125 # Run this file to recreate the current configuration.
3126 # This directory was configured as follows,
3127 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3129 # $0 $ac_configure_args
3131 # Compiler output produced by configure, useful for debugging
3132 # configure, is in ./config.log if it exists.
3134 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3137 case "\$ac_option" in
3138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3139 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3140 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3141 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3142 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3144 -help | --help | --hel | --he | --h)
3145 echo "\$ac_cs_usage"; exit 0 ;;
3146 *) echo "\$ac_cs_usage"; exit 1 ;;
3150 ac_given_srcdir=$srcdir
3152 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3154 cat >> $CONFIG_STATUS <<EOF
3156 # Protect against being on the right side of a sed subst in config.status.
3157 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3158 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3162 s%@CFLAGS@%$CFLAGS%g
3163 s%@CPPFLAGS@%$CPPFLAGS%g
3164 s%@CXXFLAGS@%$CXXFLAGS%g
3165 s%@FFLAGS@%$FFLAGS%g
3167 s%@LDFLAGS@%$LDFLAGS%g
3169 s%@exec_prefix@%$exec_prefix%g
3170 s%@prefix@%$prefix%g
3171 s%@program_transform_name@%$program_transform_name%g
3172 s%@bindir@%$bindir%g
3173 s%@sbindir@%$sbindir%g
3174 s%@libexecdir@%$libexecdir%g
3175 s%@datadir@%$datadir%g
3176 s%@sysconfdir@%$sysconfdir%g
3177 s%@sharedstatedir@%$sharedstatedir%g
3178 s%@localstatedir@%$localstatedir%g
3179 s%@libdir@%$libdir%g
3180 s%@includedir@%$includedir%g
3181 s%@oldincludedir@%$oldincludedir%g
3182 s%@infodir@%$infodir%g
3183 s%@mandir@%$mandir%g
3185 s%@host_alias@%$host_alias%g
3186 s%@host_cpu@%$host_cpu%g
3187 s%@host_vendor@%$host_vendor%g
3188 s%@host_os@%$host_os%g
3189 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
3190 s%@VERSION_MINOR@%$VERSION_MINOR%g
3191 s%@VERSION_POINT@%$VERSION_POINT%g
3192 s%@CODE_STATUS@%$CODE_STATUS%g
3196 s%@WIN_ONLY@%$WIN_ONLY%g
3198 s%@RPMBIN@%$RPMBIN%g
3199 s%@RPM_BASE@%$RPM_BASE%g
3200 s%@JADEBIN@%$JADEBIN%g
3201 s%@DKPREFIX@%$DKPREFIX%g
3202 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
3203 s%@SOCKET_LIB@%$SOCKET_LIB%g
3204 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
3205 s%@EXEEXT@%$EXEEXT%g
3206 s%@OBJEXT@%$OBJEXT%g
3207 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
3208 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
3209 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
3210 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
3211 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
3212 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
3217 cat >> $CONFIG_STATUS <<\EOF
3219 # Split the substitutions into bite-sized pieces for seds with
3220 # small command number limits, like on Digital OSF/1 and HP-UX.
3221 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3222 ac_file=1 # Number of current file.
3223 ac_beg=1 # First line for current file.
3224 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3227 while $ac_more_lines; do
3228 if test $ac_beg -gt 1; then
3229 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3231 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3233 if test ! -s conftest.s$ac_file; then
3235 rm -f conftest.s$ac_file
3237 if test -z "$ac_sed_cmds"; then
3238 ac_sed_cmds="sed -f conftest.s$ac_file"
3240 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3242 ac_file=`expr $ac_file + 1`
3244 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3247 if test -z "$ac_sed_cmds"; then
3252 cat >> $CONFIG_STATUS <<EOF
3254 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
3256 cat >> $CONFIG_STATUS <<\EOF
3257 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3262 *) ac_file_in="${ac_file}.in" ;;
3265 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3267 # Remove last slash and all that follows it. Not all systems have dirname.
3268 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3269 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3270 # The file is in a subdirectory.
3271 test ! -d "$ac_dir" && mkdir "$ac_dir"
3272 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3273 # A "../" for each directory in $ac_dir_suffix.
3274 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3276 ac_dir_suffix= ac_dots=
3279 case "$ac_given_srcdir" in
3281 if test -z "$ac_dots"; then top_srcdir=.
3282 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3283 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3285 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3286 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3290 echo creating "$ac_file"
3292 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3294 *Makefile*) ac_comsub="1i\\
3295 # $configure_input" ;;
3299 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3301 s%@configure_input@%$configure_input%g
3302 s%@srcdir@%$srcdir%g
3303 s%@top_srcdir@%$top_srcdir%g
3304 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3311 # ac_d sets the value in "#define NAME VALUE" lines.
3312 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3313 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3317 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3318 ac_uB='\([ ]\)%\1#\2define\3'
3321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3322 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3323 ac_eB='$%\1#\2define\3'
3327 if test "${CONFIG_HEADERS+set}" != set; then
3329 cat >> $CONFIG_STATUS <<EOF
3330 CONFIG_HEADERS="config.h"
3332 cat >> $CONFIG_STATUS <<\EOF
3334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3339 *) ac_file_in="${ac_file}.in" ;;
3342 echo creating $ac_file
3344 rm -f conftest.frag conftest.in conftest.out
3345 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3346 cat $ac_file_inputs > conftest.in
3350 # Transform confdefs.h into a sed script conftest.vals that substitutes
3351 # the proper values into config.h.in to produce config.h. And first:
3352 # Protect against being on the right side of a sed subst in config.status.
3353 # Protect against being in an unquoted here document in config.status.
3355 cat > conftest.hdr <<\EOF
3358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3362 sed -n -f conftest.hdr confdefs.h > conftest.vals
3365 # This sed command replaces #undef with comments. This is necessary, for
3366 # example, in the case of _POSIX_SOURCE, which is predefined and required
3367 # on some systems where configure will not decide to define it.
3368 cat >> conftest.vals <<\EOF
3369 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3372 # Break up conftest.vals because some shells have a limit on
3373 # the size of here documents, and old seds have small limits too.
3378 ac_lines=`grep -c . conftest.vals`
3379 # grep -c gives empty output for an empty file on some AIX systems.
3380 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3381 # Write a limited-size here document to conftest.frag.
3382 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3383 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3385 sed -f conftest.frag conftest.in > conftest.out
3387 mv conftest.out conftest.in
3389 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3391 mv conftest.tail conftest.vals
3395 cat >> $CONFIG_STATUS <<\EOF
3396 rm -f conftest.frag conftest.h
3397 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3398 cat conftest.in >> conftest.h
3400 if cmp -s $ac_file conftest.h 2>/dev/null; then
3401 echo "$ac_file is unchanged"
3404 # Remove last slash and all that follows it. Not all systems have dirname.
3405 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3406 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3407 # The file is in a subdirectory.
3408 test ! -d "$ac_dir" && mkdir "$ac_dir"
3411 mv conftest.h $ac_file
3416 cat >> $CONFIG_STATUS <<EOF
3419 cat >> $CONFIG_STATUS <<\EOF
3423 chmod +x $CONFIG_STATUS
3424 rm -fr confdefs* $ac_clean_files
3425 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1