3 # From configure.in Revision: 1.14
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 --enable-mingw32 Use mingw32 for a Windows GUI"
18 --disable-pthread Don't use POSIX threads (pthreads)"
20 --disable-toggle Don't support temporary disable"
22 --disable-gzip Block gzip'ed transfer of documents. Note that
23 this is required if you want content modification
24 even with gzip-supporting servers."
26 --disable-force Don't allow blockfile to be bypassed"
28 --disable-fast-redirects Don't support fast redirects"
30 --disable-killpopup Never block popups"
32 --disable-stats Don't keep statistics"
34 --disable-ie-images Don't auto-detect whether a request from MS Internet
35 Explorer is for an image or HTML."
37 --disable-image-blocking Don't try to figure out whether a request is
38 for an image or HTML - assume HTML."
40 --disable-acl-files Prevents the use of ACL files to control access to
41 the proxy by IP address."
43 --disable-trust-files Prevents the use of trust files."
45 --disable-jar-files Prevents the use of jar files to capture cookies."
47 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
48 pattern matching (default)
49 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
50 matching (-> bigger binary)
51 --disable-regex-matching Don't use regex matching, compare URL
52 prefix instead (won't shrink birary)"
54 --disable-dynamic-pcre Use the built-in, static pcre, even if
57 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
568 echo $ac_n "checking for path separator""... $ac_c" 1>&6
569 echo "configure:570: checking for path separator" >&5
570 # Filter path to get backslahes into forwardslashes
571 case "`uname -s 2> /dev/null`" in
576 : ${CPP="gcc.exe -E"}
577 : ${CFLAGS="-O2 -m486 -Zmt"}
578 : ${CXXFLAGS="-O2 -m486 -Zmt"}
579 : ${LDFLAGS="-s -Zmt -Zcrtdll -Zsysv-signals -Zbin-files"}
580 : ${CONFIG_SHELL=sh.exe}
584 : ${RANLIB="ar.exe s"}
585 SHELL=${CONFIG_SHELL}
586 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
594 echo "$ac_t""${PATH_IFS}" 1>&6
596 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
597 echo "configure:598: checking for Cygwin environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 cat > conftest.$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
608 #define __CYGWIN__ __CYGWIN32__
613 if { (eval echo configure:614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
617 echo "configure: failed program was:" >&5
618 cat conftest.$ac_ext >&5
626 echo "$ac_t""$ac_cv_cygwin" 1>&6
628 test "$ac_cv_cygwin" = yes && CYGWIN=yes
629 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
630 echo "configure:631: checking for mingw32 environment" >&5
631 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 cat > conftest.$ac_ext <<EOF
635 #line 636 "configure"
636 #include "confdefs.h"
642 if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
646 echo "configure: failed program was:" >&5
647 cat conftest.$ac_ext >&5
655 echo "$ac_t""$ac_cv_mingw32" 1>&6
657 test "$ac_cv_mingw32" = yes && MINGW32=yes
658 echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
659 echo "configure:660: checking for EMX/OS2 environment" >&5
660 if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
664 cat > conftest.$ac_ext <<EOF
665 #line 666 "configure"
666 #include "confdefs.h"
672 if { (eval echo configure:673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
676 echo "configure: failed program was:" >&5
677 cat conftest.$ac_ext >&5
685 echo "$ac_t""$ac_cv_emxos2" 1>&6
686 if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 if test "$ac_cv_emxos2" = yes ; then
698 test "$ac_cv_emxos2" = yes && EMXOS2=yes
702 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
703 echo "configure:704: checking for executable suffix" >&5
704 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
711 echo 'int main () { return 0; }' > conftest.$ac_ext
713 if { (eval echo configure:714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
714 for file in conftest.*; do
716 *.c | *.o | *.obj) ;;
717 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
721 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
724 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
729 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
730 echo "$ac_t""${ac_cv_exeext}" 1>&6
741 CODE_STATUS="\"alpha\""
749 cat >> confdefs.h <<EOF
750 #define VERSION_MAJOR ${VERSION_MAJOR}
753 cat >> confdefs.h <<EOF
754 #define VERSION_MINOR ${VERSION_MINOR}
757 cat >> confdefs.h <<EOF
758 #define VERSION_POINT ${VERSION_POINT}
761 cat >> confdefs.h <<EOF
762 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
765 cat >> confdefs.h <<EOF
766 #define CODE_STATUS ${CODE_STATUS}
771 # Extract the first word of "gcc", so it can be a program name with args.
772 set dummy gcc; ac_word=$2
773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
774 echo "configure:775: checking for $ac_word" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 if test -n "$CC"; then
779 ac_cv_prog_CC="$CC" # Let the user override the test.
781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
783 for ac_dir in $ac_dummy; do
784 test -z "$ac_dir" && ac_dir=.
785 if test -f $ac_dir/$ac_word -o \
786 -f $ac_dir/$ac_word$ac_exeext ; then
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
798 echo "$ac_t""no" 1>&6
801 if test -z "$CC"; then
802 # Extract the first word of "cc", so it can be a program name with args.
803 set dummy cc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
815 for ac_dir in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir=.
817 if test -f $ac_dir/$ac_word -o \
818 -f $ac_dir/$ac_word$ac_exeext ; then
819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
820 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
829 if test $ac_prog_rejected = yes; then
830 # We found a bogon in the path, so make sure we never use it.
831 set dummy $ac_cv_prog_CC
833 if test $# -gt 0; then
834 # We chose a different compiler from the bogus one.
835 # However, it has the same basename, so the bogon will be chosen
836 # first if we set CC to just the basename; use the full file name.
838 set dummy "$ac_dir/$ac_word" "$@"
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
849 echo "$ac_t""no" 1>&6
852 if test -z "$CC"; then
855 # Extract the first word of "cl", so it can be a program name with args.
856 set dummy cl; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$CC"; then
863 ac_cv_prog_CC="$CC" # Let the user override the test.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word -o \
870 -f $ac_dir/$ac_word$ac_exeext ; then
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
882 echo "$ac_t""no" 1>&6
887 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
900 cat > conftest.$ac_ext << EOF
902 #line 903 "configure"
903 #include "confdefs.h"
907 if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908 ac_cv_prog_cc_works=yes
909 # If we can't run a trivial program, we are probably using a cross compiler.
910 if (./conftest; exit) 2>/dev/null; then
911 ac_cv_prog_cc_cross=no
913 ac_cv_prog_cc_cross=yes
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 ac_cv_prog_cc_works=no
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp='$CPP $CPPFLAGS'
924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling=$ac_cv_prog_cc_cross
928 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
929 if test $ac_cv_prog_cc_works = no; then
930 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
935 cross_compiling=$ac_cv_prog_cc_cross
937 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 cat > conftest.c <<EOF
947 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956 if test $ac_cv_prog_gcc = yes; then
962 ac_test_CFLAGS="${CFLAGS+set}"
963 ac_save_CFLAGS="$CFLAGS"
965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
966 echo "configure:967: checking whether ${CC-cc} accepts -g" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 echo 'void f(){}' > conftest.c
971 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
980 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
981 if test "$ac_test_CFLAGS" = set; then
982 CFLAGS="$ac_save_CFLAGS"
983 elif test $ac_cv_prog_cc_g = yes; then
984 if test "$GCC" = yes; then
990 if test "$GCC" = yes; then
997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
998 echo "configure:999: checking how to run the C preprocessor" >&5
999 # On Suns, sometimes $CPP names a directory.
1000 if test -n "$CPP" && test -d "$CPP"; then
1003 if test -z "$CPP"; then
1004 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 # This must be in double quotes, not single quotes, because CPP may get
1008 # substituted into the Makefile and "${CC-cc}" will confuse make.
1010 # On the NeXT, cc -E runs the code through the compiler's parser,
1011 # not just through cpp.
1012 cat > conftest.$ac_ext <<EOF
1013 #include <sys/types.h>
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1029 CPP="${CC-cc} -E -traditional-cpp"
1030 cat > conftest.$ac_ext <<EOF
1031 #include <sys/types.h>
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1040 if test -z "$ac_err"; then
1044 echo "configure: failed program was:" >&5
1045 cat conftest.$ac_ext >&5
1047 CPP="${CC-cc} -nologo -E"
1048 cat > conftest.$ac_ext <<EOF
1049 #include <sys/types.h>
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1072 ac_cv_prog_CPP="$CPP"
1074 CPP="$ac_cv_prog_CPP"
1076 ac_cv_prog_CPP="$CPP"
1078 echo "$ac_t""$CPP" 1>&6
1083 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1084 echo "configure:1085: checking for mingw32 environment" >&5
1085 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
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_mingw32" 1>&6
1111 test "$ac_cv_mingw32" = yes && MINGW32=yes
1112 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1113 echo "configure:1114: checking for Cygwin environment" >&5
1114 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1124 #define __CYGWIN__ __CYGWIN32__
1129 if { (eval echo configure:1130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1142 echo "$ac_t""$ac_cv_cygwin" 1>&6
1144 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1146 if test "$MINGW32" = "yes"; then
1149 if test "$CYGWIN" = "yes"; then
1157 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1158 if test "${enable_mingw32+set}" = set; then
1159 enableval="$enable_mingw32"
1160 if test $enableval = yes; then
1166 if test $target_type = mingw; then
1168 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1169 PTHREAD_LIB=-lpthreadGC
1170 echo "Using mingw32 (Win32 GUI)"
1173 if test $target_type = cygwin; then
1174 SPECIAL_CFLAGS="-mno-win32"
1176 echo "Using Cygnus (Win32 command line)"
1179 PTHREAD_LIB=-lpthread
1184 old_CFLAGS_nospecial=$CFLAGS
1185 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1187 # Hack to force AutoConf to use the CFLAGS we just set
1188 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1195 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1196 echo "configure:1197: checking for pthread.h" >&5
1197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.$ac_ext <<EOF
1201 #include <sys/types.h>
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <pthread.h>
1206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1207 { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1209 if test -z "$ac_err"; then
1211 eval "ac_cv_header_$ac_safe=yes"
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1217 eval "ac_cv_header_$ac_safe=no"
1221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1225 echo "$ac_t""no" 1>&6
1230 # Check whether --enable-pthread or --disable-pthread was given.
1231 if test "${enable_pthread+set}" = set; then
1232 enableval="$enable_pthread"
1233 if test $enableval = no; then
1240 if test $have_pthread = yes; then
1242 cat >> confdefs.h <<\EOF
1243 #define FEATURE_PTHREAD 1
1246 echo Using POSIX threads
1247 if test "$GCC" = "yes"; then
1248 # Set a GCC specific switch:
1249 if test "$target_type" = "unix"; then
1250 # This compiler switch makes Linux thread-safe
1251 # Don't know about other OS's? Is this switch
1254 SPECIAL_CFLAGS="-pthread"
1259 echo Using native threads
1267 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1268 if test -f $ac_dir/install-sh; then
1270 ac_install_sh="$ac_aux_dir/install-sh -c"
1272 elif test -f $ac_dir/install.sh; then
1274 ac_install_sh="$ac_aux_dir/install.sh -c"
1278 if test -z "$ac_aux_dir"; then
1279 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1281 case "`uname -s 2> /dev/null`" in
1283 if test $ac_aux_dir != E:\bin ; then
1284 for i in config.sub config.guess mkinstalldirs; do
1285 cp -f E:\bin/$i $ac_aux_dir/
1290 ac_config_guess=$ac_aux_dir/config.guess
1291 ac_config_sub=$ac_aux_dir/config.sub
1292 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1295 # Make sure we can run config.sub.
1296 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1297 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1300 echo $ac_n "checking host system type""... $ac_c" 1>&6
1301 echo "configure:1302: checking host system type" >&5
1304 case "$host_alias" in
1308 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1309 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1311 *) host_alias=$nonopt ;;
1315 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1316 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$ac_t""$host" 1>&6
1325 *-solaris*) SOCKET_LIB=-lsocket -lnsl
1326 cat >> confdefs.h <<\EOF
1327 #define __EXTENSIONS__ 1
1330 if test "$GCC" = "yes"; then
1331 # Set a GCC specific switch:
1332 # This compiler switch makes Solaris thread-safe
1334 SPECIAL_CFLAGS="-pthreads"
1336 # What do we do without GCC? Guess this:
1337 SPECIAL_CFLAGS="-D_REENTRANT"
1346 *-os2-emx*) SOCKET_LIB=-lsocket
1356 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1357 echo "configure:1358: checking for executable suffix" >&5
1358 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
1365 echo 'int main () { return 0; }' > conftest.$ac_ext
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1368 for file in conftest.*; do
1370 *.c | *.o | *.obj) ;;
1371 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1375 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1378 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1383 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1384 echo "$ac_t""${ac_cv_exeext}" 1>&6
1387 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1388 echo "configure:1389: checking for object suffix" >&5
1389 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1393 echo 'int i = 1;' > conftest.$ac_ext
1394 if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395 for ac_file in conftest.*; do
1398 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1402 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1407 echo "$ac_t""$ac_cv_objext" 1>&6
1408 OBJEXT=$ac_cv_objext
1409 ac_objext=$ac_cv_objext
1411 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ANSI C header files" >&5
1413 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 cat > conftest.$ac_ext <<EOF
1417 #include <sys/types.h>
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1426 { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1428 if test -z "$ac_err"; then
1430 ac_cv_header_stdc=yes
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 ac_cv_header_stdc=no
1440 if test $ac_cv_header_stdc = yes; then
1441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448 egrep "memchr" >/dev/null 2>&1; then
1452 ac_cv_header_stdc=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1466 egrep "free" >/dev/null 2>&1; then
1470 ac_cv_header_stdc=no
1476 if test $ac_cv_header_stdc = yes; then
1477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1478 if test "$cross_compiling" = yes; then
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1485 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1486 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1488 int main () { int i; for (i = 0; i < 256; i++)
1489 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 ac_cv_header_stdc=no
1508 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1509 if test $ac_cv_header_stdc = yes; then
1510 cat >> confdefs.h <<\EOF
1511 #define STDC_HEADERS 1
1516 echo $ac_n "checking for working const""... $ac_c" 1>&6
1517 echo "configure:1518: checking for working const" >&5
1518 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1527 /* Ultrix mips cc rejects this. */
1528 typedef int charset[2]; const charset x;
1529 /* SunOS 4.1.1 cc rejects this. */
1530 char const *const *ccp;
1532 /* NEC SVR4.0.2 mips cc rejects this. */
1533 struct point {int x, y;};
1534 static struct point const zero = {0,0};
1535 /* AIX XL C 1.02.0.0 rejects this.
1536 It does not let you subtract one const X* pointer from another in an arm
1537 of an if-expression whose if-part is not a constant expression */
1538 const char *g = "string";
1539 ccp = &g + (g ? g-g : 0);
1540 /* HPUX 7.0 cc rejects these. */
1543 ccp = (char const *const *) p;
1544 { /* SCO 3.2v4 cc rejects this. */
1546 char const *s = 0 ? (char *) 0 : (char const *) 0;
1550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1552 const int *foo = &x[0];
1555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1556 typedef const int *iptr;
1560 { /* AIX XL C 1.02.0.0 rejects this saying
1561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1562 struct s { int j; const int *ap[3]; };
1563 struct s *b; b->j = 5;
1565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1571 if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1583 echo "$ac_t""$ac_cv_c_const" 1>&6
1584 if test $ac_cv_c_const = no; then
1585 cat >> confdefs.h <<\EOF
1591 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1592 echo "configure:1593: checking for size_t" >&5
1593 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include <sys/types.h>
1605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1606 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1608 ac_cv_type_size_t=yes
1611 ac_cv_type_size_t=no
1616 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1617 if test $ac_cv_type_size_t = no; then
1618 cat >> confdefs.h <<\EOF
1619 #define size_t unsigned
1626 for ac_func in strerror bcopy memmove
1628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1629 echo "configure:1630: checking for $ac_func" >&5
1630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 /* System header to define __stub macros and hopefully few prototypes,
1637 which can conflict with char $ac_func(); below. */
1639 /* Override any gcc2 internal prototype to avoid an error. */
1640 /* We use char because int might match the return type of a gcc2
1641 builtin and then its argument prototype would still apply. */
1646 /* The GNU C library defines this for functions which it implements
1647 to always fail with ENOSYS. Some functions are actually named
1648 something starting with __ and the normal name is an alias. */
1649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1659 eval "ac_cv_func_$ac_func=yes"
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1664 eval "ac_cv_func_$ac_func=no"
1669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1672 cat >> confdefs.h <<EOF
1673 #define $ac_tr_func 1
1677 echo "$ac_t""no" 1>&6
1683 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1684 echo "configure:1685: checking for pcre_compile in -lpcre" >&5
1685 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 ac_save_LIBS="$LIBS"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* Override any gcc2 internal prototype to avoid an error. */
1695 /* We use char because int might match the return type of a gcc2
1696 builtin and then its argument prototype would still apply. */
1697 char pcre_compile();
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1705 eval "ac_cv_lib_$ac_lib_var=yes"
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1710 eval "ac_cv_lib_$ac_lib_var=no"
1713 LIBS="$ac_save_LIBS"
1716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1719 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1720 echo "configure:1721: checking for pcre.h" >&5
1721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 cat > conftest.$ac_ext <<EOF
1725 #include <sys/types.h>
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1735 eval "ac_cv_header_$ac_safe=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_header_$ac_safe=no"
1745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1749 echo "$ac_t""no" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1759 echo "configure:1760: checking for regcomp in -lpcreposix" >&5
1760 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1765 LIBS="-lpcreposix -lpcre $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1794 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1795 echo "configure:1796: checking for pcreposix.h" >&5
1796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.$ac_ext <<EOF
1800 #include <sys/types.h>
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <pcreposix.h>
1805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1806 { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1808 if test -z "$ac_err"; then
1810 eval "ac_cv_header_$ac_safe=yes"
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 eval "ac_cv_header_$ac_safe=no"
1820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1824 echo "$ac_t""no" 1>&6
1829 echo "$ac_t""no" 1>&6
1833 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1834 echo "configure:1835: checking for pcrs_compile in -lpcrs" >&5
1835 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 ac_save_LIBS="$LIBS"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1847 char pcrs_compile();
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1855 eval "ac_cv_lib_$ac_lib_var=yes"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 eval "ac_cv_lib_$ac_lib_var=no"
1863 LIBS="$ac_save_LIBS"
1866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1868 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1869 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1870 echo "configure:1871: checking for pcrs.h" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.$ac_ext <<EOF
1875 #include <sys/types.h>
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1881 { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1883 if test -z "$ac_err"; then
1885 eval "ac_cv_header_$ac_safe=yes"
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1891 eval "ac_cv_header_$ac_safe=no"
1895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1899 echo "$ac_t""no" 1>&6
1904 echo "$ac_t""no" 1>&6
1911 cat >> confdefs.h <<\EOF
1917 # Check whether --enable-toggle or --disable-toggle was given.
1918 if test "${enable_toggle+set}" = set; then
1919 enableval="$enable_toggle"
1920 if test $enableval = yes; then
1921 cat >> confdefs.h <<\EOF
1922 #define FEATURE_TOGGLE 1
1927 cat >> confdefs.h <<\EOF
1928 #define FEATURE_TOGGLE 1
1934 # Check whether --enable-gzip or --disable-gzip was given.
1935 if test "${enable_gzip+set}" = set; then
1936 enableval="$enable_gzip"
1937 if test $enableval = "no"; then
1938 cat >> confdefs.h <<\EOF
1939 #define FEATURE_DENY_GZIP 1
1946 # Check whether --enable-force or --disable-force was given.
1947 if test "${enable_force+set}" = set; then
1948 enableval="$enable_force"
1949 if test $enableval = yes; then
1950 cat >> confdefs.h <<\EOF
1951 #define FEATURE_FORCE_LOAD 1
1956 cat >> confdefs.h <<\EOF
1957 #define FEATURE_FORCE_LOAD 1
1963 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1964 if test "${enable_fast_redirects+set}" = set; then
1965 enableval="$enable_fast_redirects"
1966 if test $enableval = yes; then
1967 cat >> confdefs.h <<\EOF
1968 #define FEATURE_FAST_REDIRECTS 1
1973 cat >> confdefs.h <<\EOF
1974 #define FEATURE_FAST_REDIRECTS 1
1980 # Check whether --enable-killpopup or --disable-killpopup was given.
1981 if test "${enable_killpopup+set}" = set; then
1982 enableval="$enable_killpopup"
1983 if test $enableval = yes; then
1984 cat >> confdefs.h <<\EOF
1985 #define FEATURE_KILL_POPUPS 1
1990 cat >> confdefs.h <<\EOF
1991 #define FEATURE_KILL_POPUPS 1
1997 # Check whether --enable-stats or --disable-stats was given.
1998 if test "${enable_stats+set}" = set; then
1999 enableval="$enable_stats"
2000 if test $enableval = yes; then
2001 cat >> confdefs.h <<\EOF
2002 #define FEATURE_STATISTICS 1
2007 cat >> confdefs.h <<\EOF
2008 #define FEATURE_STATISTICS 1
2014 # Check whether --enable-ie-images or --disable-ie-images was given.
2015 if test "${enable_ie_images+set}" = set; then
2016 enableval="$enable_ie_images"
2017 if test $enableval = yes; then
2018 cat >> confdefs.h <<\EOF
2019 #define FEATURE_IMAGE_DETECT_MSIE 1
2024 cat >> confdefs.h <<\EOF
2025 #define FEATURE_IMAGE_DETECT_MSIE 1
2031 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2032 if test "${enable_image_blocking+set}" = set; then
2033 enableval="$enable_image_blocking"
2034 if test $enableval = yes; then
2035 cat >> confdefs.h <<\EOF
2036 #define FEATURE_IMAGE_BLOCKING 1
2041 cat >> confdefs.h <<\EOF
2042 #define FEATURE_IMAGE_BLOCKING 1
2048 # Check whether --enable-acl-files or --disable-acl-files was given.
2049 if test "${enable_acl_files+set}" = set; then
2050 enableval="$enable_acl_files"
2051 if test $enableval = yes; then
2052 cat >> confdefs.h <<\EOF
2053 #define FEATURE_ACL 1
2058 cat >> confdefs.h <<\EOF
2059 #define FEATURE_ACL 1
2065 # Check whether --enable-trust-files or --disable-trust-files was given.
2066 if test "${enable_trust_files+set}" = set; then
2067 enableval="$enable_trust_files"
2068 if test $enableval = yes; then
2069 cat >> confdefs.h <<\EOF
2070 #define FEATURE_TRUST 1
2075 cat >> confdefs.h <<\EOF
2076 #define FEATURE_TRUST 1
2082 # Check whether --enable-jar-files or --disable-jar-files was given.
2083 if test "${enable_jar_files+set}" = set; then
2084 enableval="$enable_jar_files"
2085 if test $enableval = yes; then
2086 cat >> confdefs.h <<\EOF
2087 #define FEATURE_COOKIE_JAR 1
2092 cat >> confdefs.h <<\EOF
2093 #define FEATURE_COOKIE_JAR 1
2100 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2101 if test "${enable_regex_matching+set}" = set; then
2102 enableval="$enable_regex_matching"
2103 regex_matching=$enableval
2109 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2110 if test "${enable_dynamic_pcre+set}" = set; then
2111 enableval="$enable_dynamic_pcre"
2112 if test $enableval = "no"; then have_pcre=no; fi
2116 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2117 if test "${enable_dynamic_pcrs+set}" = set; then
2118 enableval="$enable_dynamic_pcrs"
2119 if test $enableval = "no"; then have_pcrs=no; fi
2124 # Is the regex URL matching based on libpcreposix, but we
2125 # don't have that library?
2127 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2128 dont_miss_pcreposix=yes
2130 dont_miss_pcreposix=no
2133 # If we have libpcre and either we also have pcreposix or
2134 # we don't need pcreposix, then link pcre dynamically; else
2135 # build it and link statically
2137 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2138 echo "using libpcre"
2143 echo "using built-in static pcre"
2145 cat >> confdefs.h <<\EOF
2146 #define STATIC_PCRE 1
2152 # If we have libpcrs and pcre is linked dynamically
2153 # then also link pcrs dynamically, else build and link
2156 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2157 echo "using libpcrs"
2161 echo "using built-in static pcrs"
2162 cat >> confdefs.h <<\EOF
2163 #define STATIC_PCRS 1
2169 # Which method should be used for URL matching?
2170 # pcre, gnu regex or prefix matching?
2172 if test $regex_matching = "gnu"; then
2173 echo "using gnu regex for URL matching"
2174 cat >> confdefs.h <<\EOF
2180 elif test $regex_matching = "pcre"; then
2181 echo "using pcre regex for URL matching"
2182 cat >> confdefs.h <<\EOF
2183 #define REGEX_PCRE 1
2188 if test $pcre_dyn = "yes"; then
2189 LIBS="$LIBS -lpcreposix"
2192 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2203 CFLAGS=$old_CFLAGS_nospecial
2209 cat > confcache <<\EOF
2210 # This file is a shell script that caches the results of configure
2211 # tests run on this system so they can be shared between configure
2212 # scripts and configure runs. It is not useful on other systems.
2213 # If it contains results you don't want to keep, you may remove or edit it.
2215 # By default, configure uses ./config.cache as the cache file,
2216 # creating it if it does not exist already. You can give configure
2217 # the --cache-file=FILE option to use a different cache file; that is
2218 # what configure does when it calls configure scripts in
2219 # subdirectories, so they share the cache.
2220 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2221 # config.status only pays attention to the cache file if you give it the
2222 # --recheck option to rerun configure.
2225 # The following way of writing the cache mishandles newlines in values,
2226 # but we know of no workaround that is simple, portable, and efficient.
2227 # So, don't put newlines in cache variables' values.
2228 # Ultrix sh set writes to stderr and can't be redirected directly,
2229 # and sets the high bit in the cache file unless we assign to the vars.
2231 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2233 # `set' does not quote correctly, so add quotes (double-quote substitution
2234 # turns \\\\ into \\, and sed turns \\ into \).
2236 -e "s/'/'\\\\''/g" \
2237 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2240 # `set' quotes correctly as required by POSIX, so do not add quotes.
2241 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2244 if cmp -s $cache_file confcache; then
2247 if test -w $cache_file; then
2248 echo "updating cache $cache_file"
2249 cat confcache > $cache_file
2251 echo "not updating unwritable cache $cache_file"
2256 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2259 # Let make expand exec_prefix.
2260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2262 # Any assignment to VPATH causes Sun make to only execute
2263 # the first set of double-colon rules, so remove it if not needed.
2264 # If there is a colon in the path, we need to keep it.
2265 if test "x$srcdir" = x.; then
2266 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2269 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2271 DEFS=-DHAVE_CONFIG_H
2273 # Without the "./", some shells look in PATH for config.status.
2274 : ${CONFIG_STATUS=./config.status}
2276 echo creating $CONFIG_STATUS
2277 rm -f $CONFIG_STATUS
2278 cat > $CONFIG_STATUS <<EOF
2280 # Generated automatically by configure.
2281 # Run this file to recreate the current configuration.
2282 # This directory was configured as follows,
2284 echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
2285 cat >> $CONFIG_STATUS <<EOF
2286 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2288 # $0 $ac_configure_args
2290 # Compiler output produced by configure, useful for debugging
2291 # configure, is in ./config.log if it exists.
2293 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2296 case "\$ac_option" in
2297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2298 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2299 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2300 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2301 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2303 -help | --help | --hel | --he | --h)
2304 echo "\$ac_cs_usage"; exit 0 ;;
2305 *) echo "\$ac_cs_usage"; exit 1 ;;
2309 ac_given_srcdir=$srcdir
2311 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2313 cat >> $CONFIG_STATUS <<EOF
2315 # Protect against being on the right side of a sed subst in config.status.
2316 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2317 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2320 s,/bin/sh,${CONFIG_SHELL-/bin/sh},g
2322 s%@CFLAGS@%$CFLAGS%g
2323 s%@CPPFLAGS@%$CPPFLAGS%g
2324 s%@CXXFLAGS@%$CXXFLAGS%g
2325 s%@FFLAGS@%$FFLAGS%g
2327 s%@LDFLAGS@%$LDFLAGS%g
2329 s%@exec_prefix@%$exec_prefix%g
2330 s%@prefix@%$prefix%g
2331 s%@program_transform_name@%$program_transform_name%g
2332 s%@bindir@%$bindir%g
2333 s%@sbindir@%$sbindir%g
2334 s%@libexecdir@%$libexecdir%g
2335 s%@datadir@%$datadir%g
2336 s%@sysconfdir@%$sysconfdir%g
2337 s%@sharedstatedir@%$sharedstatedir%g
2338 s%@localstatedir@%$localstatedir%g
2339 s%@libdir@%$libdir%g
2340 s%@includedir@%$includedir%g
2341 s%@oldincludedir@%$oldincludedir%g
2342 s%@infodir@%$infodir%g
2343 s%@mandir@%$mandir%g
2344 s%@PATH_IFS@%$PATH_IFS%g
2345 s%@EXEEXT@%$EXEEXT%g
2346 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2347 s%@VERSION_MINOR@%$VERSION_MINOR%g
2348 s%@VERSION_POINT@%$VERSION_POINT%g
2351 s%@WIN_ONLY@%$WIN_ONLY%g
2352 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2354 s%@host_alias@%$host_alias%g
2355 s%@host_cpu@%$host_cpu%g
2356 s%@host_vendor@%$host_vendor%g
2357 s%@host_os@%$host_os%g
2358 s%@SOCKET_LIB@%$SOCKET_LIB%g
2359 s%@OBJEXT@%$OBJEXT%g
2360 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2361 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2362 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2363 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2364 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2365 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2370 cat >> $CONFIG_STATUS <<\EOF
2372 # Split the substitutions into bite-sized pieces for seds with
2373 # small command number limits, like on Digital OSF/1 and HP-UX.
2374 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2375 ac_file=1 # Number of current file.
2376 ac_beg=1 # First line for current file.
2377 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2380 while $ac_more_lines; do
2381 if test $ac_beg -gt 1; then
2382 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2384 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2386 if test ! -s conftest.s$ac_file; then
2388 rm -f conftest.s$ac_file
2390 if test -z "$ac_sed_cmds"; then
2391 ac_sed_cmds="sed -f conftest.s$ac_file"
2393 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2395 ac_file=`expr $ac_file + 1`
2397 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2400 if test -z "$ac_sed_cmds"; then
2405 cat >> $CONFIG_STATUS <<EOF
2407 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2409 cat >> $CONFIG_STATUS <<\EOF
2410 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2413 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2414 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2415 *) ac_file_in="${ac_file}.in" ;;
2418 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2420 # Remove last slash and all that follows it. Not all systems have dirname.
2421 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2422 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2423 # The file is in a subdirectory.
2424 test ! -d "$ac_dir" && mkdir "$ac_dir"
2425 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2426 # A "../" for each directory in $ac_dir_suffix.
2427 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2429 ac_dir_suffix= ac_dots=
2432 case "$ac_given_srcdir" in
2434 if test -z "$ac_dots"; then top_srcdir=.
2435 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2437 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2439 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2440 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2444 echo creating "$ac_file"
2446 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2448 *Makefile*) ac_comsub="1i\\
2449 # $configure_input" ;;
2453 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2455 s%@configure_input@%$configure_input%g
2456 s%@srcdir@%$srcdir%g
2457 s%@top_srcdir@%$top_srcdir%g
2458 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2465 # ac_d sets the value in "#define NAME VALUE" lines.
2466 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2467 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2470 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2471 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2472 ac_uB='\([ ]\)%\1#\2define\3'
2475 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2476 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2477 ac_eB='$%\1#\2define\3'
2481 if test "${CONFIG_HEADERS+set}" != set; then
2483 cat >> $CONFIG_STATUS <<EOF
2484 CONFIG_HEADERS="config.h"
2486 cat >> $CONFIG_STATUS <<\EOF
2488 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2491 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2492 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2493 *) ac_file_in="${ac_file}.in" ;;
2496 echo creating $ac_file
2498 rm -f conftest.frag conftest.in conftest.out
2499 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2500 cat $ac_file_inputs > conftest.in
2504 # Transform confdefs.h into a sed script conftest.vals that substitutes
2505 # the proper values into config.h.in to produce config.h. And first:
2506 # Protect against being on the right side of a sed subst in config.status.
2507 # Protect against being in an unquoted here document in config.status.
2509 cat > conftest.hdr <<\EOF
2512 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2516 sed -n -f conftest.hdr confdefs.h > conftest.vals
2519 # This sed command replaces #undef with comments. This is necessary, for
2520 # example, in the case of _POSIX_SOURCE, which is predefined and required
2521 # on some systems where configure will not decide to define it.
2522 cat >> conftest.vals <<\EOF
2523 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2526 # Break up conftest.vals because some shells have a limit on
2527 # the size of here documents, and old seds have small limits too.
2532 ac_lines=`grep -c . conftest.vals`
2533 # grep -c gives empty output for an empty file on some AIX systems.
2534 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2535 # Write a limited-size here document to conftest.frag.
2536 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2537 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2539 sed -f conftest.frag conftest.in > conftest.out
2541 mv conftest.out conftest.in
2543 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2545 mv conftest.tail conftest.vals
2549 cat >> $CONFIG_STATUS <<\EOF
2550 rm -f conftest.frag conftest.h
2551 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2552 cat conftest.in >> conftest.h
2554 if cmp -s $ac_file conftest.h 2>/dev/null; then
2555 echo "$ac_file is unchanged"
2558 # Remove last slash and all that follows it. Not all systems have dirname.
2559 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2560 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2561 # The file is in a subdirectory.
2562 test ! -d "$ac_dir" && mkdir "$ac_dir"
2565 mv conftest.h $ac_file
2570 cat >> $CONFIG_STATUS <<EOF
2573 cat >> $CONFIG_STATUS <<\EOF
2577 chmod +x $CONFIG_STATUS
2578 rm -fr confdefs* $ac_clean_files
2579 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1