3 # From configure.in Revision: 1.18
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-debug Enable debug mode"
18 --enable-mingw32 Use mingw32 for a Windows GUI"
20 --disable-pthread Don't use POSIX threads (pthreads)"
22 --disable-toggle Don't support temporary disable"
24 --disable-force Don't allow blockfile to be bypassed"
26 --disable-fast-redirects Don't support fast redirects"
28 --disable-killpopup Never block popups"
30 --disable-stats Don't keep statistics"
32 --disable-ie-images Don't auto-detect whether a request from MS Internet
33 Explorer is for an image or HTML."
35 --disable-image-blocking Don't try to figure out whether a request is
36 for an image or HTML - assume HTML."
38 --disable-acl-files Prevents the use of ACL files to control access to
39 the proxy by IP address."
41 --disable-trust-files Prevents the use of trust files."
43 --disable-jar-files Prevents the use of jar files to capture cookies."
45 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
46 pattern matching (default)
47 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
48 matching (-> bigger binary)
49 --disable-regex-matching Don't use regex matching, compare URL
50 prefix instead (won't shrink birary)"
52 --disable-dynamic-pcre Use the built-in, static pcre, even if
55 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
58 # Initialize some variables set by options.
59 # The variables have the same names as the options, with
60 # dashes changed to underlines.
62 cache_file=./config.cache
71 program_transform_name=s,x,x,
79 bindir='${exec_prefix}/bin'
80 sbindir='${exec_prefix}/sbin'
81 libexecdir='${exec_prefix}/libexec'
82 datadir='${prefix}/share'
83 sysconfdir='${prefix}/etc'
84 sharedstatedir='${prefix}/com'
85 localstatedir='${prefix}/var'
86 libdir='${exec_prefix}/lib'
87 includedir='${prefix}/include'
88 oldincludedir='/usr/include'
89 infodir='${prefix}/info'
90 mandir='${prefix}/man'
92 # Initialize some other variables.
95 SHELL=${CONFIG_SHELL-/bin/sh}
96 # Maximum number of lines to put in a shell here document.
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
111 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 # Accept the important Cygnus configure options, so we can diagnose typos.
119 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122 bindir="$ac_optarg" ;;
124 -build | --build | --buil | --bui | --bu)
126 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127 build="$ac_optarg" ;;
129 -cache-file | --cache-file | --cache-fil | --cache-fi \
130 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131 ac_prev=cache_file ;;
132 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134 cache_file="$ac_optarg" ;;
136 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 datadir="$ac_optarg" ;;
142 -disable-* | --disable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* | --enable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166 | --exec | --exe | --ex)
167 ac_prev=exec_prefix ;;
168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170 | --exec=* | --exe=* | --ex=*)
171 exec_prefix="$ac_optarg" ;;
173 -gas | --gas | --ga | --g)
174 # Obsolete; use --with-gas.
177 -help | --help | --hel | --he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
232 -host | --host | --hos | --ho)
234 -host=* | --host=* | --hos=* | --ho=*)
237 -includedir | --includedir | --includedi | --included | --include \
238 | --includ | --inclu | --incl | --inc)
239 ac_prev=includedir ;;
240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241 | --includ=* | --inclu=* | --incl=* | --inc=*)
242 includedir="$ac_optarg" ;;
244 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247 infodir="$ac_optarg" ;;
249 -libdir | --libdir | --libdi | --libd)
251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
252 libdir="$ac_optarg" ;;
254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255 | --libexe | --libex | --libe)
256 ac_prev=libexecdir ;;
257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258 | --libexe=* | --libex=* | --libe=*)
259 libexecdir="$ac_optarg" ;;
261 -localstatedir | --localstatedir | --localstatedi | --localstated \
262 | --localstate | --localstat | --localsta | --localst \
263 | --locals | --local | --loca | --loc | --lo)
264 ac_prev=localstatedir ;;
265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268 localstatedir="$ac_optarg" ;;
270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273 mandir="$ac_optarg" ;;
276 # Obsolete; use --without-fp.
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289 | --oldin | --oldi | --old | --ol | --o)
290 ac_prev=oldincludedir ;;
291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294 oldincludedir="$ac_optarg" ;;
296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299 prefix="$ac_optarg" ;;
301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
302 | --program-pre | --program-pr | --program-p)
303 ac_prev=program_prefix ;;
304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306 program_prefix="$ac_optarg" ;;
308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
309 | --program-suf | --program-su | --program-s)
310 ac_prev=program_suffix ;;
311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313 program_suffix="$ac_optarg" ;;
315 -program-transform-name | --program-transform-name \
316 | --program-transform-nam | --program-transform-na \
317 | --program-transform-n | --program-transform- \
318 | --program-transform | --program-transfor \
319 | --program-transfo | --program-transf \
320 | --program-trans | --program-tran \
321 | --progr-tra | --program-tr | --program-t)
322 ac_prev=program_transform_name ;;
323 -program-transform-name=* | --program-transform-name=* \
324 | --program-transform-nam=* | --program-transform-na=* \
325 | --program-transform-n=* | --program-transform-=* \
326 | --program-transform=* | --program-transfor=* \
327 | --program-transfo=* | --program-transf=* \
328 | --program-trans=* | --program-tran=* \
329 | --progr-tra=* | --program-tr=* | --program-t=*)
330 program_transform_name="$ac_optarg" ;;
332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333 | -silent | --silent | --silen | --sile | --sil)
336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 sbindir="$ac_optarg" ;;
342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344 | --sharedst | --shareds | --shared | --share | --shar \
346 ac_prev=sharedstatedir ;;
347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 sharedstatedir="$ac_optarg" ;;
353 -site | --site | --sit)
355 -site=* | --site=* | --sit=*)
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
370 -target | --target | --targe | --targ | --tar | --ta | --t)
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.13"
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}='$ac_optarg'" ;;
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
405 # Obsolete; use --with-x.
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444 # File descriptor usage:
447 # 2 errors and warnings
448 # 3 some systems may open it to /dev/tty
449 # 4 used on the Kubota Titan
450 # 6 checking for... messages and results
451 # 5 compiler messages saved in config.log
452 if test "$silent" = yes; then
460 This file contains any messages produced by compilers while
461 running configure, to aid debugging if configure makes a mistake.
464 # Strip out --no-create and --no-recursion so they do not pile up.
465 # Also quote any args containing shell metacharacters.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481 # Only set these to C if already set. These must not be set unconditionally
482 # because not all systems understand e.g. LANG=C (notably SCO).
483 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484 # Non-C LC_CTYPE values break the ctype check.
485 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
491 rm -rf conftest* confdefs.h
492 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 # A filename unique to this package, relative to the directory that
496 # configure is in, which we can look for to find out if srcdir is correct.
499 # Find the source files, if location was not specified.
500 if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 if test ! -r $srcdir/$ac_unique_file; then
511 ac_srcdir_defaulted=no
513 if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522 # Prefer explicitly selected file to automatically selected ones.
523 if test -z "$CONFIG_SITE"; then
524 if test "x$prefix" != xNONE; then
525 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 for ac_site_file in $CONFIG_SITE; do
531 if test -r "$ac_site_file"; then
532 echo "loading site script $ac_site_file"
537 if test -r "$cache_file"; then
538 echo "loading cache $cache_file"
541 echo "creating cache $cache_file"
546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547 ac_cpp='$CPP $CPPFLAGS'
548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550 cross_compiling=$ac_cv_prog_cc_cross
554 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
555 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
556 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='\c' ac_t=
569 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
570 if test -f $ac_dir/install-sh; then
572 ac_install_sh="$ac_aux_dir/install-sh -c"
574 elif test -f $ac_dir/install.sh; then
576 ac_install_sh="$ac_aux_dir/install.sh -c"
580 if test -z "$ac_aux_dir"; then
581 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
583 ac_config_guess=$ac_aux_dir/config.guess
584 ac_config_sub=$ac_aux_dir/config.sub
585 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
588 # Make sure we can run config.sub.
589 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
590 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
593 echo $ac_n "checking host system type""... $ac_c" 1>&6
594 echo "configure:595: checking host system type" >&5
597 case "$host_alias" in
601 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
602 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
604 *) host_alias=$nonopt ;;
608 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
609 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
610 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
611 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
612 echo "$ac_t""$host" 1>&6
620 CODE_STATUS="\"alpha\""
628 cat >> confdefs.h <<EOF
629 #define VERSION_MAJOR ${VERSION_MAJOR}
632 cat >> confdefs.h <<EOF
633 #define VERSION_MINOR ${VERSION_MINOR}
636 cat >> confdefs.h <<EOF
637 #define VERSION_POINT ${VERSION_POINT}
640 cat >> confdefs.h <<EOF
641 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
644 cat >> confdefs.h <<EOF
645 #define CODE_STATUS ${CODE_STATUS}
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy "$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
757 echo "$ac_t""no" 1>&6
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp='$CPP $CPPFLAGS'
771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling=$ac_cv_prog_cc_cross
775 cat > conftest.$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
783 ac_cv_prog_cc_works=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (./conftest; exit) 2>/dev/null; then
786 ac_cv_prog_cc_cross=no
788 ac_cv_prog_cc_cross=yes
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
793 ac_cv_prog_cc_works=no
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.c <<EOF
822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
865 if test "$GCC" = yes; then
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
903 CPP="${CC-cc} -E -traditional-cpp"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
920 CPP="${CC-cc} -nologo -E"
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
944 ac_cv_prog_CPP="$CPP"
946 CPP="$ac_cv_prog_CPP"
948 ac_cv_prog_CPP="$CPP"
950 echo "$ac_t""$CPP" 1>&6
953 # Extract the first word of "gdb", so it can be a program name with args.
954 set dummy gdb; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 if test -n "$GDB"; then
961 ac_cv_prog_GDB="$GDB" # Let the user override the test.
963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 for ac_dir in $ac_dummy; do
966 test -z "$ac_dir" && ac_dir=.
967 if test -f $ac_dir/$ac_word; then
973 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
976 GDB="$ac_cv_prog_GDB"
977 if test -n "$GDB"; then
978 echo "$ac_t""$GDB" 1>&6
980 echo "$ac_t""no" 1>&6
985 # Check whether --with-debug or --without-debug was given.
986 if test "${with_debug+set}" = set; then
987 withval="$with_debug"
989 if test "x$withval" != "$xno" ; then
990 if test $ac_cv_prog_cc_g = yes; then
991 if test "$GCC" = yes; then
997 CFLAGS="$CFLAGS -Wshadow -Wconversion"
1002 CFLAGS="$CFLAGS -D_DEBUG"
1007 if test "$GCC" = yes; then
1017 if test "$GCC"; then
1018 CFLAGS="-pipe $CFLAGS"
1023 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1024 echo "configure:1025: checking for mingw32 environment" >&5
1025 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1036 if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1049 echo "$ac_t""$ac_cv_mingw32" 1>&6
1051 test "$ac_cv_mingw32" = yes && MINGW32=yes
1052 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1053 echo "configure:1054: checking for Cygwin environment" >&5
1054 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 cat > conftest.$ac_ext <<EOF
1058 #line 1059 "configure"
1059 #include "confdefs.h"
1064 #define __CYGWIN__ __CYGWIN32__
1069 if { (eval echo configure:1070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1082 echo "$ac_t""$ac_cv_cygwin" 1>&6
1084 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1086 if test "$MINGW32" = "yes"; then
1089 if test "$CYGWIN" = "yes"; then
1097 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1098 if test "${enable_mingw32+set}" = set; then
1099 enableval="$enable_mingw32"
1100 if test $enableval = yes; then
1106 if test $target_type = mingw; then
1108 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1109 PTHREAD_LIB=-lpthreadGC
1110 echo "Using mingw32 (Win32 GUI)"
1113 if test $target_type = cygwin; then
1114 SPECIAL_CFLAGS="-mno-win32"
1116 echo "Using Cygnus (Win32 command line)"
1119 PTHREAD_LIB=-lpthread
1125 old_CFLAGS_nospecial=$CFLAGS
1126 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1128 # Hack to force AutoConf to use the CFLAGS we just set
1129 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1136 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1137 echo "configure:1138: checking for pthread.h" >&5
1138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1144 #include <pthread.h>
1146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1147 { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1149 if test -z "$ac_err"; then
1151 eval "ac_cv_header_$ac_safe=yes"
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1157 eval "ac_cv_header_$ac_safe=no"
1161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1162 echo "$ac_t""yes" 1>&6
1165 echo "$ac_t""no" 1>&6
1170 # Check whether --enable-pthread or --disable-pthread was given.
1171 if test "${enable_pthread+set}" = set; then
1172 enableval="$enable_pthread"
1173 if test $enableval = no; then
1180 if test $have_pthread = yes; then
1182 cat >> confdefs.h <<\EOF
1183 #define FEATURE_PTHREAD 1
1186 echo Using POSIX threads
1187 if test "$GCC" = "yes"; then
1188 # Set a GCC specific switch:
1189 if test "$target_type" = "unix"; then
1190 # This compiler switch makes Linux thread-safe
1191 # Don't know about other OS's? Is this switch
1194 SPECIAL_CFLAGS="-pthread"
1199 echo Using native threads
1210 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1211 cat >> confdefs.h <<\EOF
1212 #define __EXTENSIONS__ 1
1215 if test "$GCC" = "yes"; then
1216 # Set a GCC specific switch:
1217 # This compiler switch makes Solaris thread-safe
1219 SPECIAL_CFLAGS="-pthreads"
1221 # What do we do without GCC? Guess this:
1222 SPECIAL_CFLAGS="-D_REENTRANT"
1231 *-os2-emx*) SOCKET_LIB=-lsocket
1241 *-amigaos) AMIGAOS_ONLY=
1250 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1251 echo "configure:1252: checking for executable suffix" >&5
1252 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1259 echo 'int main () { return 0; }' > conftest.$ac_ext
1261 if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1262 for file in conftest.*; do
1264 *.c | *.o | *.obj) ;;
1265 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1269 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1272 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1277 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1278 echo "$ac_t""${ac_cv_exeext}" 1>&6
1281 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1282 echo "configure:1283: checking for object suffix" >&5
1283 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1287 echo 'int i = 1;' > conftest.$ac_ext
1288 if { (eval echo configure:1289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1289 for ac_file in conftest.*; do
1292 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1296 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1301 echo "$ac_t""$ac_cv_objext" 1>&6
1302 OBJEXT=$ac_cv_objext
1303 ac_objext=$ac_cv_objext
1305 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1306 echo "configure:1307: checking for ANSI C header files" >&5
1307 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1319 { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1321 if test -z "$ac_err"; then
1323 ac_cv_header_stdc=yes
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 ac_cv_header_stdc=no
1333 if test $ac_cv_header_stdc = yes; then
1334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1341 egrep "memchr" >/dev/null 2>&1; then
1345 ac_cv_header_stdc=no
1351 if test $ac_cv_header_stdc = yes; then
1352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1359 egrep "free" >/dev/null 2>&1; then
1363 ac_cv_header_stdc=no
1369 if test $ac_cv_header_stdc = yes; then
1370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1371 if test "$cross_compiling" = yes; then
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1378 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1379 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1381 int main () { int i; for (i = 0; i < 256; i++)
1382 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 ac_cv_header_stdc=no
1401 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1402 if test $ac_cv_header_stdc = yes; then
1403 cat >> confdefs.h <<\EOF
1404 #define STDC_HEADERS 1
1409 echo $ac_n "checking for working const""... $ac_c" 1>&6
1410 echo "configure:1411: checking for working const" >&5
1411 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1420 /* Ultrix mips cc rejects this. */
1421 typedef int charset[2]; const charset x;
1422 /* SunOS 4.1.1 cc rejects this. */
1423 char const *const *ccp;
1425 /* NEC SVR4.0.2 mips cc rejects this. */
1426 struct point {int x, y;};
1427 static struct point const zero = {0,0};
1428 /* AIX XL C 1.02.0.0 rejects this.
1429 It does not let you subtract one const X* pointer from another in an arm
1430 of an if-expression whose if-part is not a constant expression */
1431 const char *g = "string";
1432 ccp = &g + (g ? g-g : 0);
1433 /* HPUX 7.0 cc rejects these. */
1436 ccp = (char const *const *) p;
1437 { /* SCO 3.2v4 cc rejects this. */
1439 char const *s = 0 ? (char *) 0 : (char const *) 0;
1443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1445 const int *foo = &x[0];
1448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1449 typedef const int *iptr;
1453 { /* AIX XL C 1.02.0.0 rejects this saying
1454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1455 struct s { int j; const int *ap[3]; };
1456 struct s *b; b->j = 5;
1458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1464 if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1476 echo "$ac_t""$ac_cv_c_const" 1>&6
1477 if test $ac_cv_c_const = no; then
1478 cat >> confdefs.h <<\EOF
1484 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1485 echo "configure:1486: checking for size_t" >&5
1486 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 #include <sys/types.h>
1498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1499 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1501 ac_cv_type_size_t=yes
1504 ac_cv_type_size_t=no
1509 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1510 if test $ac_cv_type_size_t = no; then
1511 cat >> confdefs.h <<\EOF
1512 #define size_t unsigned
1517 echo $ac_n "checking size of int""... $ac_c" 1>&6
1518 echo "configure:1519: checking size of int" >&5
1519 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 if test "$cross_compiling" = yes; then
1523 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 FILE *f=fopen("conftestval", "w");
1533 fprintf(f, "%d\n", sizeof(int));
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1539 ac_cv_sizeof_int=`cat conftestval`
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1550 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1551 cat >> confdefs.h <<EOF
1552 #define SIZEOF_INT $ac_cv_sizeof_int
1556 echo $ac_n "checking size of char *""... $ac_c" 1>&6
1557 echo "configure:1558: checking size of char *" >&5
1558 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 if test "$cross_compiling" = yes; then
1562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1570 FILE *f=fopen("conftestval", "w");
1572 fprintf(f, "%d\n", sizeof(char *));
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1578 ac_cv_sizeof_char_p=`cat conftestval`
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 ac_cv_sizeof_char_p=0
1589 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
1590 cat >> confdefs.h <<EOF
1591 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
1595 echo $ac_n "checking size of long""... $ac_c" 1>&6
1596 echo "configure:1597: checking size of long" >&5
1597 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 if test "$cross_compiling" = yes; then
1601 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1609 FILE *f=fopen("conftestval", "w");
1611 fprintf(f, "%d\n", sizeof(long));
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1617 ac_cv_sizeof_long=`cat conftestval`
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1628 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1629 cat >> confdefs.h <<EOF
1630 #define SIZEOF_LONG $ac_cv_sizeof_long
1634 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1635 echo "configure:1636: checking size of long long" >&5
1636 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 if test "$cross_compiling" = yes; then
1640 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1648 FILE *f=fopen("conftestval", "w");
1650 fprintf(f, "%d\n", sizeof(long long));
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1656 ac_cv_sizeof_long_long=`cat conftestval`
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1661 ac_cv_sizeof_long_long=0
1667 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1668 cat >> confdefs.h <<EOF
1669 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1673 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
1674 echo "configure:1675: checking size of size_t" >&5
1675 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 if test "$cross_compiling" = yes; then
1679 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1687 FILE *f=fopen("conftestval", "w");
1689 fprintf(f, "%d\n", sizeof(size_t));
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1695 ac_cv_sizeof_size_t=`cat conftestval`
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 ac_cv_sizeof_size_t=0
1706 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
1707 cat >> confdefs.h <<EOF
1708 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
1714 for ac_func in strerror bcopy memmove
1716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_func" >&5
1718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $ac_func(); below. */
1727 /* Override any gcc2 internal prototype to avoid an error. */
1728 /* We use char because int might match the return type of a gcc2
1729 builtin and then its argument prototype would still apply. */
1734 /* The GNU C library defines this for functions which it implements
1735 to always fail with ENOSYS. Some functions are actually named
1736 something starting with __ and the normal name is an alias. */
1737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1745 if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1747 eval "ac_cv_func_$ac_func=yes"
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1752 eval "ac_cv_func_$ac_func=no"
1757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1760 cat >> confdefs.h <<EOF
1761 #define $ac_tr_func 1
1765 echo "$ac_t""no" 1>&6
1771 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1772 echo "configure:1773: checking for pcre_compile in -lpcre" >&5
1773 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 ac_save_LIBS="$LIBS"
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 /* Override any gcc2 internal prototype to avoid an error. */
1783 /* We use char because int might match the return type of a gcc2
1784 builtin and then its argument prototype would still apply. */
1785 char pcre_compile();
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 eval "ac_cv_lib_$ac_lib_var=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1798 eval "ac_cv_lib_$ac_lib_var=no"
1801 LIBS="$ac_save_LIBS"
1804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1807 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1808 echo "configure:1809: checking for pcre.h" >&5
1809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1820 if test -z "$ac_err"; then
1822 eval "ac_cv_header_$ac_safe=yes"
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1828 eval "ac_cv_header_$ac_safe=no"
1832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1836 echo "$ac_t""no" 1>&6
1841 echo "$ac_t""no" 1>&6
1845 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1846 echo "configure:1847: checking for regcomp in -lpcreposix" >&5
1847 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 ac_save_LIBS="$LIBS"
1852 LIBS="-lpcreposix -lpcre $LIBS"
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1867 eval "ac_cv_lib_$ac_lib_var=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1872 eval "ac_cv_lib_$ac_lib_var=no"
1875 LIBS="$ac_save_LIBS"
1878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1881 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1882 echo "configure:1883: checking for pcreposix.h" >&5
1883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 #include <pcreposix.h>
1891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1892 { (eval echo configure:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1894 if test -z "$ac_err"; then
1896 eval "ac_cv_header_$ac_safe=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 eval "ac_cv_header_$ac_safe=no"
1906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1910 echo "$ac_t""no" 1>&6
1915 echo "$ac_t""no" 1>&6
1919 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1920 echo "configure:1921: checking for pcrs_compile in -lpcrs" >&5
1921 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 ac_save_LIBS="$LIBS"
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 /* Override any gcc2 internal prototype to avoid an error. */
1931 /* We use char because int might match the return type of a gcc2
1932 builtin and then its argument prototype would still apply. */
1933 char pcrs_compile();
1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1941 eval "ac_cv_lib_$ac_lib_var=yes"
1943 echo "configure: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1946 eval "ac_cv_lib_$ac_lib_var=no"
1949 LIBS="$ac_save_LIBS"
1952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1953 echo "$ac_t""yes" 1>&6
1954 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1955 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1956 echo "configure:1957: checking for pcrs.h" >&5
1957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1966 { (eval echo configure:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1968 if test -z "$ac_err"; then
1970 eval "ac_cv_header_$ac_safe=yes"
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1976 eval "ac_cv_header_$ac_safe=no"
1980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1984 echo "$ac_t""no" 1>&6
1989 echo "$ac_t""no" 1>&6
1996 cat >> confdefs.h <<\EOF
2002 # Check whether --enable-toggle or --disable-toggle was given.
2003 if test "${enable_toggle+set}" = set; then
2004 enableval="$enable_toggle"
2005 if test $enableval = yes; then
2006 cat >> confdefs.h <<\EOF
2007 #define FEATURE_TOGGLE 1
2012 cat >> confdefs.h <<\EOF
2013 #define FEATURE_TOGGLE 1
2019 # Check whether --enable-force or --disable-force was given.
2020 if test "${enable_force+set}" = set; then
2021 enableval="$enable_force"
2022 if test $enableval = yes; then
2023 cat >> confdefs.h <<\EOF
2024 #define FEATURE_FORCE_LOAD 1
2029 cat >> confdefs.h <<\EOF
2030 #define FEATURE_FORCE_LOAD 1
2036 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2037 if test "${enable_fast_redirects+set}" = set; then
2038 enableval="$enable_fast_redirects"
2039 if test $enableval = yes; then
2040 cat >> confdefs.h <<\EOF
2041 #define FEATURE_FAST_REDIRECTS 1
2046 cat >> confdefs.h <<\EOF
2047 #define FEATURE_FAST_REDIRECTS 1
2053 # Check whether --enable-killpopup or --disable-killpopup was given.
2054 if test "${enable_killpopup+set}" = set; then
2055 enableval="$enable_killpopup"
2056 if test $enableval = yes; then
2057 cat >> confdefs.h <<\EOF
2058 #define FEATURE_KILL_POPUPS 1
2063 cat >> confdefs.h <<\EOF
2064 #define FEATURE_KILL_POPUPS 1
2070 # Check whether --enable-stats or --disable-stats was given.
2071 if test "${enable_stats+set}" = set; then
2072 enableval="$enable_stats"
2073 if test $enableval = yes; then
2074 cat >> confdefs.h <<\EOF
2075 #define FEATURE_STATISTICS 1
2080 cat >> confdefs.h <<\EOF
2081 #define FEATURE_STATISTICS 1
2087 # Check whether --enable-ie-images or --disable-ie-images was given.
2088 if test "${enable_ie_images+set}" = set; then
2089 enableval="$enable_ie_images"
2090 if test $enableval = yes; then
2091 cat >> confdefs.h <<\EOF
2092 #define FEATURE_IMAGE_DETECT_MSIE 1
2097 cat >> confdefs.h <<\EOF
2098 #define FEATURE_IMAGE_DETECT_MSIE 1
2104 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2105 if test "${enable_image_blocking+set}" = set; then
2106 enableval="$enable_image_blocking"
2107 if test $enableval = yes; then
2108 cat >> confdefs.h <<\EOF
2109 #define FEATURE_IMAGE_BLOCKING 1
2114 cat >> confdefs.h <<\EOF
2115 #define FEATURE_IMAGE_BLOCKING 1
2121 # Check whether --enable-acl-files or --disable-acl-files was given.
2122 if test "${enable_acl_files+set}" = set; then
2123 enableval="$enable_acl_files"
2124 if test $enableval = yes; then
2125 cat >> confdefs.h <<\EOF
2126 #define FEATURE_ACL 1
2131 cat >> confdefs.h <<\EOF
2132 #define FEATURE_ACL 1
2138 # Check whether --enable-trust-files or --disable-trust-files was given.
2139 if test "${enable_trust_files+set}" = set; then
2140 enableval="$enable_trust_files"
2141 if test $enableval = yes; then
2142 cat >> confdefs.h <<\EOF
2143 #define FEATURE_TRUST 1
2148 cat >> confdefs.h <<\EOF
2149 #define FEATURE_TRUST 1
2155 # Check whether --enable-jar-files or --disable-jar-files was given.
2156 if test "${enable_jar_files+set}" = set; then
2157 enableval="$enable_jar_files"
2158 if test $enableval = yes; then
2159 cat >> confdefs.h <<\EOF
2160 #define FEATURE_COOKIE_JAR 1
2165 cat >> confdefs.h <<\EOF
2166 #define FEATURE_COOKIE_JAR 1
2173 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2174 if test "${enable_regex_matching+set}" = set; then
2175 enableval="$enable_regex_matching"
2176 regex_matching=$enableval
2182 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2183 if test "${enable_dynamic_pcre+set}" = set; then
2184 enableval="$enable_dynamic_pcre"
2185 if test $enableval = "no"; then have_pcre=no; fi
2189 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2190 if test "${enable_dynamic_pcrs+set}" = set; then
2191 enableval="$enable_dynamic_pcrs"
2192 if test $enableval = "no"; then have_pcrs=no; fi
2197 # Is the regex URL matching based on libpcreposix, but we
2198 # don't have that library?
2200 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2201 dont_miss_pcreposix=yes
2203 dont_miss_pcreposix=no
2206 # If we have libpcre and either we also have pcreposix or
2207 # we don't need pcreposix, then link pcre dynamically; else
2208 # build it and link statically
2210 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2211 echo "using libpcre"
2216 echo "using built-in static pcre"
2218 cat >> confdefs.h <<\EOF
2219 #define STATIC_PCRE 1
2225 # If we have libpcrs and pcre is linked dynamically
2226 # then also link pcrs dynamically, else build and link
2229 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2230 echo "using libpcrs"
2234 echo "using built-in static pcrs"
2235 cat >> confdefs.h <<\EOF
2236 #define STATIC_PCRS 1
2242 # Which method should be used for URL matching?
2243 # pcre, gnu regex or prefix matching?
2245 if test $regex_matching = "gnu"; then
2246 echo "using gnu regex for URL matching"
2247 cat >> confdefs.h <<\EOF
2253 elif test $regex_matching = "pcre"; then
2254 echo "using pcre regex for URL matching"
2255 cat >> confdefs.h <<\EOF
2256 #define REGEX_PCRE 1
2261 if test $pcre_dyn = "yes"; then
2262 LIBS="$LIBS -lpcreposix"
2265 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2276 CFLAGS=$old_CFLAGS_nospecial
2282 cat > confcache <<\EOF
2283 # This file is a shell script that caches the results of configure
2284 # tests run on this system so they can be shared between configure
2285 # scripts and configure runs. It is not useful on other systems.
2286 # If it contains results you don't want to keep, you may remove or edit it.
2288 # By default, configure uses ./config.cache as the cache file,
2289 # creating it if it does not exist already. You can give configure
2290 # the --cache-file=FILE option to use a different cache file; that is
2291 # what configure does when it calls configure scripts in
2292 # subdirectories, so they share the cache.
2293 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2294 # config.status only pays attention to the cache file if you give it the
2295 # --recheck option to rerun configure.
2298 # The following way of writing the cache mishandles newlines in values,
2299 # but we know of no workaround that is simple, portable, and efficient.
2300 # So, don't put newlines in cache variables' values.
2301 # Ultrix sh set writes to stderr and can't be redirected directly,
2302 # and sets the high bit in the cache file unless we assign to the vars.
2304 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2306 # `set' does not quote correctly, so add quotes (double-quote substitution
2307 # turns \\\\ into \\, and sed turns \\ into \).
2309 -e "s/'/'\\\\''/g" \
2310 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2313 # `set' quotes correctly as required by POSIX, so do not add quotes.
2314 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2317 if cmp -s $cache_file confcache; then
2320 if test -w $cache_file; then
2321 echo "updating cache $cache_file"
2322 cat confcache > $cache_file
2324 echo "not updating unwritable cache $cache_file"
2329 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2332 # Let make expand exec_prefix.
2333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2335 # Any assignment to VPATH causes Sun make to only execute
2336 # the first set of double-colon rules, so remove it if not needed.
2337 # If there is a colon in the path, we need to keep it.
2338 if test "x$srcdir" = x.; then
2339 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2342 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2344 DEFS=-DHAVE_CONFIG_H
2346 # Without the "./", some shells look in PATH for config.status.
2347 : ${CONFIG_STATUS=./config.status}
2349 echo creating $CONFIG_STATUS
2350 rm -f $CONFIG_STATUS
2351 cat > $CONFIG_STATUS <<EOF
2353 # Generated automatically by configure.
2354 # Run this file to recreate the current configuration.
2355 # This directory was configured as follows,
2356 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2358 # $0 $ac_configure_args
2360 # Compiler output produced by configure, useful for debugging
2361 # configure, is in ./config.log if it exists.
2363 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2366 case "\$ac_option" in
2367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2368 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2369 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2370 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2371 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2373 -help | --help | --hel | --he | --h)
2374 echo "\$ac_cs_usage"; exit 0 ;;
2375 *) echo "\$ac_cs_usage"; exit 1 ;;
2379 ac_given_srcdir=$srcdir
2381 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2383 cat >> $CONFIG_STATUS <<EOF
2385 # Protect against being on the right side of a sed subst in config.status.
2386 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2387 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2391 s%@CFLAGS@%$CFLAGS%g
2392 s%@CPPFLAGS@%$CPPFLAGS%g
2393 s%@CXXFLAGS@%$CXXFLAGS%g
2394 s%@FFLAGS@%$FFLAGS%g
2396 s%@LDFLAGS@%$LDFLAGS%g
2398 s%@exec_prefix@%$exec_prefix%g
2399 s%@prefix@%$prefix%g
2400 s%@program_transform_name@%$program_transform_name%g
2401 s%@bindir@%$bindir%g
2402 s%@sbindir@%$sbindir%g
2403 s%@libexecdir@%$libexecdir%g
2404 s%@datadir@%$datadir%g
2405 s%@sysconfdir@%$sysconfdir%g
2406 s%@sharedstatedir@%$sharedstatedir%g
2407 s%@localstatedir@%$localstatedir%g
2408 s%@libdir@%$libdir%g
2409 s%@includedir@%$includedir%g
2410 s%@oldincludedir@%$oldincludedir%g
2411 s%@infodir@%$infodir%g
2412 s%@mandir@%$mandir%g
2414 s%@host_alias@%$host_alias%g
2415 s%@host_cpu@%$host_cpu%g
2416 s%@host_vendor@%$host_vendor%g
2417 s%@host_os@%$host_os%g
2418 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2419 s%@VERSION_MINOR@%$VERSION_MINOR%g
2420 s%@VERSION_POINT@%$VERSION_POINT%g
2424 s%@WIN_ONLY@%$WIN_ONLY%g
2425 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2426 s%@SOCKET_LIB@%$SOCKET_LIB%g
2427 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
2428 s%@EXEEXT@%$EXEEXT%g
2429 s%@OBJEXT@%$OBJEXT%g
2430 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2431 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2432 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2433 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2434 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2435 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2440 cat >> $CONFIG_STATUS <<\EOF
2442 # Split the substitutions into bite-sized pieces for seds with
2443 # small command number limits, like on Digital OSF/1 and HP-UX.
2444 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2445 ac_file=1 # Number of current file.
2446 ac_beg=1 # First line for current file.
2447 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2450 while $ac_more_lines; do
2451 if test $ac_beg -gt 1; then
2452 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2454 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2456 if test ! -s conftest.s$ac_file; then
2458 rm -f conftest.s$ac_file
2460 if test -z "$ac_sed_cmds"; then
2461 ac_sed_cmds="sed -f conftest.s$ac_file"
2463 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2465 ac_file=`expr $ac_file + 1`
2467 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2470 if test -z "$ac_sed_cmds"; then
2475 cat >> $CONFIG_STATUS <<EOF
2477 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2479 cat >> $CONFIG_STATUS <<\EOF
2480 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2483 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2484 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2485 *) ac_file_in="${ac_file}.in" ;;
2488 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2490 # Remove last slash and all that follows it. Not all systems have dirname.
2491 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2492 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2493 # The file is in a subdirectory.
2494 test ! -d "$ac_dir" && mkdir "$ac_dir"
2495 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2496 # A "../" for each directory in $ac_dir_suffix.
2497 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2499 ac_dir_suffix= ac_dots=
2502 case "$ac_given_srcdir" in
2504 if test -z "$ac_dots"; then top_srcdir=.
2505 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2506 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2508 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2509 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2513 echo creating "$ac_file"
2515 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2517 *Makefile*) ac_comsub="1i\\
2518 # $configure_input" ;;
2522 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2524 s%@configure_input@%$configure_input%g
2525 s%@srcdir@%$srcdir%g
2526 s%@top_srcdir@%$top_srcdir%g
2527 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2531 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2532 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2534 # ac_d sets the value in "#define NAME VALUE" lines.
2535 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2536 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2539 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2540 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2541 ac_uB='\([ ]\)%\1#\2define\3'
2544 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2545 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2546 ac_eB='$%\1#\2define\3'
2550 if test "${CONFIG_HEADERS+set}" != set; then
2552 cat >> $CONFIG_STATUS <<EOF
2553 CONFIG_HEADERS="config.h"
2555 cat >> $CONFIG_STATUS <<\EOF
2557 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2560 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2561 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2562 *) ac_file_in="${ac_file}.in" ;;
2565 echo creating $ac_file
2567 rm -f conftest.frag conftest.in conftest.out
2568 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2569 cat $ac_file_inputs > conftest.in
2573 # Transform confdefs.h into a sed script conftest.vals that substitutes
2574 # the proper values into config.h.in to produce config.h. And first:
2575 # Protect against being on the right side of a sed subst in config.status.
2576 # Protect against being in an unquoted here document in config.status.
2578 cat > conftest.hdr <<\EOF
2581 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2585 sed -n -f conftest.hdr confdefs.h > conftest.vals
2588 # This sed command replaces #undef with comments. This is necessary, for
2589 # example, in the case of _POSIX_SOURCE, which is predefined and required
2590 # on some systems where configure will not decide to define it.
2591 cat >> conftest.vals <<\EOF
2592 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2595 # Break up conftest.vals because some shells have a limit on
2596 # the size of here documents, and old seds have small limits too.
2601 ac_lines=`grep -c . conftest.vals`
2602 # grep -c gives empty output for an empty file on some AIX systems.
2603 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2604 # Write a limited-size here document to conftest.frag.
2605 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2606 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2608 sed -f conftest.frag conftest.in > conftest.out
2610 mv conftest.out conftest.in
2612 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2614 mv conftest.tail conftest.vals
2618 cat >> $CONFIG_STATUS <<\EOF
2619 rm -f conftest.frag conftest.h
2620 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2621 cat conftest.in >> conftest.h
2623 if cmp -s $ac_file conftest.h 2>/dev/null; then
2624 echo "$ac_file is unchanged"
2627 # Remove last slash and all that follows it. Not all systems have dirname.
2628 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2629 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2630 # The file is in a subdirectory.
2631 test ! -d "$ac_dir" && mkdir "$ac_dir"
2634 mv conftest.h $ac_file
2639 cat >> $CONFIG_STATUS <<EOF
2642 cat >> $CONFIG_STATUS <<\EOF
2646 chmod +x $CONFIG_STATUS
2647 rm -fr confdefs* $ac_clean_files
2648 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1