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=
576 CODE_STATUS="\"alpha\""
584 cat >> confdefs.h <<EOF
585 #define VERSION_MAJOR ${VERSION_MAJOR}
588 cat >> confdefs.h <<EOF
589 #define VERSION_MINOR ${VERSION_MINOR}
592 cat >> confdefs.h <<EOF
593 #define VERSION_POINT ${VERSION_POINT}
596 cat >> confdefs.h <<EOF
597 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
600 cat >> confdefs.h <<EOF
601 #define CODE_STATUS ${CODE_STATUS}
606 # Extract the first word of "gcc", so it can be a program name with args.
607 set dummy gcc; ac_word=$2
608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
609 echo "configure:610: checking for $ac_word" >&5
610 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
611 echo $ac_n "(cached) $ac_c" 1>&6
613 if test -n "$CC"; then
614 ac_cv_prog_CC="$CC" # Let the user override the test.
616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
618 for ac_dir in $ac_dummy; do
619 test -z "$ac_dir" && ac_dir=.
620 if test -f $ac_dir/$ac_word; then
629 if test -n "$CC"; then
630 echo "$ac_t""$CC" 1>&6
632 echo "$ac_t""no" 1>&6
635 if test -z "$CC"; then
636 # Extract the first word of "cc", so it can be a program name with args.
637 set dummy cc; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 if test -n "$CC"; then
644 ac_cv_prog_CC="$CC" # Let the user override the test.
646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
649 for ac_dir in $ac_dummy; do
650 test -z "$ac_dir" && ac_dir=.
651 if test -f $ac_dir/$ac_word; then
652 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
661 if test $ac_prog_rejected = yes; then
662 # We found a bogon in the path, so make sure we never use it.
663 set dummy $ac_cv_prog_CC
665 if test $# -gt 0; then
666 # We chose a different compiler from the bogus one.
667 # However, it has the same basename, so the bogon will be chosen
668 # first if we set CC to just the basename; use the full file name.
670 set dummy "$ac_dir/$ac_word" "$@"
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
684 if test -z "$CC"; then
687 # Extract the first word of "cl", so it can be a program name with args.
688 set dummy cl; ac_word=$2
689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
690 echo "configure:691: checking for $ac_word" >&5
691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 if test -n "$CC"; then
695 ac_cv_prog_CC="$CC" # Let the user override the test.
697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
699 for ac_dir in $ac_dummy; do
700 test -z "$ac_dir" && ac_dir=.
701 if test -f $ac_dir/$ac_word; then
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
718 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
722 echo "configure:723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
726 ac_cpp='$CPP $CPPFLAGS'
727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
729 cross_compiling=$ac_cv_prog_cc_cross
731 cat > conftest.$ac_ext << EOF
733 #line 734 "configure"
734 #include "confdefs.h"
738 if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
739 ac_cv_prog_cc_works=yes
740 # If we can't run a trivial program, we are probably using a cross compiler.
741 if (./conftest; exit) 2>/dev/null; then
742 ac_cv_prog_cc_cross=no
744 ac_cv_prog_cc_cross=yes
747 echo "configure: failed program was:" >&5
748 cat conftest.$ac_ext >&5
749 ac_cv_prog_cc_works=no
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
759 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
760 if test $ac_cv_prog_cc_works = no; then
761 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
764 echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
765 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
766 cross_compiling=$ac_cv_prog_cc_cross
768 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
769 echo "configure:770: checking whether we are using GNU C" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftest.c <<EOF
778 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
785 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
787 if test $ac_cv_prog_gcc = yes; then
793 ac_test_CFLAGS="${CFLAGS+set}"
794 ac_save_CFLAGS="$CFLAGS"
796 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
797 echo "configure:798: checking whether ${CC-cc} accepts -g" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 echo 'void f(){}' > conftest.c
802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
811 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
812 if test "$ac_test_CFLAGS" = set; then
813 CFLAGS="$ac_save_CFLAGS"
814 elif test $ac_cv_prog_cc_g = yes; then
815 if test "$GCC" = yes; then
821 if test "$GCC" = yes; then
828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
829 echo "configure:830: checking how to run the C preprocessor" >&5
830 # On Suns, sometimes $CPP names a directory.
831 if test -n "$CPP" && test -d "$CPP"; then
834 if test -z "$CPP"; then
835 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 # This must be in double quotes, not single quotes, because CPP may get
839 # substituted into the Makefile and "${CC-cc}" will confuse make.
841 # On the NeXT, cc -E runs the code through the compiler's parser,
842 # not just through cpp.
843 cat > conftest.$ac_ext <<EOF
844 #line 845 "configure"
845 #include "confdefs.h"
849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
850 { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
852 if test -z "$ac_err"; then
856 echo "configure: failed program was:" >&5
857 cat conftest.$ac_ext >&5
859 CPP="${CC-cc} -E -traditional-cpp"
860 cat > conftest.$ac_ext <<EOF
861 #line 862 "configure"
862 #include "confdefs.h"
866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
867 { (eval echo configure:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
869 if test -z "$ac_err"; then
873 echo "configure: failed program was:" >&5
874 cat conftest.$ac_ext >&5
876 CPP="${CC-cc} -nologo -E"
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
900 ac_cv_prog_CPP="$CPP"
902 CPP="$ac_cv_prog_CPP"
904 ac_cv_prog_CPP="$CPP"
906 echo "$ac_t""$CPP" 1>&6
911 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
912 echo "configure:913: checking for mingw32 environment" >&5
913 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 cat > conftest.$ac_ext <<EOF
917 #line 918 "configure"
918 #include "confdefs.h"
924 if { (eval echo configure:925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
937 echo "$ac_t""$ac_cv_mingw32" 1>&6
939 test "$ac_cv_mingw32" = yes && MINGW32=yes
940 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
941 echo "configure:942: checking for Cygwin environment" >&5
942 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
952 #define __CYGWIN__ __CYGWIN32__
957 if { (eval echo configure:958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961 echo "configure: failed program was:" >&5
962 cat conftest.$ac_ext >&5
970 echo "$ac_t""$ac_cv_cygwin" 1>&6
972 test "$ac_cv_cygwin" = yes && CYGWIN=yes
974 if test "$MINGW32" = "yes"; then
977 if test "$CYGWIN" = "yes"; then
985 # Check whether --enable-mingw32 or --disable-mingw32 was given.
986 if test "${enable_mingw32+set}" = set; then
987 enableval="$enable_mingw32"
988 if test $enableval = yes; then
994 if test $target_type = mingw; then
996 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
997 PTHREAD_LIB=-lpthreadGC
998 echo "Using mingw32 (Win32 GUI)"
1001 if test $target_type = cygwin; then
1002 SPECIAL_CFLAGS="-mno-win32"
1004 echo "Using Cygnus (Win32 command line)"
1007 PTHREAD_LIB=-lpthread
1012 old_CFLAGS_nospecial=$CFLAGS
1013 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1015 # Hack to force AutoConf to use the CFLAGS we just set
1016 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1023 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1024 echo "configure:1025: checking for pthread.h" >&5
1025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
1031 #include <pthread.h>
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1036 if test -z "$ac_err"; then
1038 eval "ac_cv_header_$ac_safe=yes"
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1044 eval "ac_cv_header_$ac_safe=no"
1048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1049 echo "$ac_t""yes" 1>&6
1052 echo "$ac_t""no" 1>&6
1057 # Check whether --enable-pthread or --disable-pthread was given.
1058 if test "${enable_pthread+set}" = set; then
1059 enableval="$enable_pthread"
1060 if test $enableval = no; then
1067 if test $have_pthread = yes; then
1069 cat >> confdefs.h <<\EOF
1070 #define FEATURE_PTHREAD 1
1073 echo Using POSIX threads
1074 if test "$GCC" = "yes"; then
1075 # Set a GCC specific switch:
1076 if test "$target_type" = "unix"; then
1077 # This compiler switch makes Linux thread-safe
1078 # Don't know about other OS's? Is this switch
1081 SPECIAL_CFLAGS="-pthread"
1086 echo Using native threads
1094 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1095 if test -f $ac_dir/install-sh; then
1097 ac_install_sh="$ac_aux_dir/install-sh -c"
1099 elif test -f $ac_dir/install.sh; then
1101 ac_install_sh="$ac_aux_dir/install.sh -c"
1105 if test -z "$ac_aux_dir"; then
1106 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1108 ac_config_guess=$ac_aux_dir/config.guess
1109 ac_config_sub=$ac_aux_dir/config.sub
1110 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1113 # Make sure we can run config.sub.
1114 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1115 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1118 echo $ac_n "checking host system type""... $ac_c" 1>&6
1119 echo "configure:1120: checking host system type" >&5
1122 case "$host_alias" in
1126 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1127 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1129 *) host_alias=$nonopt ;;
1133 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1134 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 echo "$ac_t""$host" 1>&6
1143 *-solaris*) SOLARIS_ONLY=
1144 cat >> confdefs.h <<\EOF
1145 #define __EXTENSIONS__ 1
1148 if test "$GCC" = "yes"; then
1149 # Set a GCC specific switch:
1150 # This compiler switch makes Solaris thread-safe
1152 SPECIAL_CFLAGS="-pthreads"
1154 # What do we do without GCC? Guess this:
1155 SPECIAL_CFLAGS="-D_REENTRANT"
1165 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1166 echo "configure:1167: checking for executable suffix" >&5
1167 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1174 echo 'int main () { return 0; }' > conftest.$ac_ext
1176 if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1177 for file in conftest.*; do
1179 *.c | *.o | *.obj) ;;
1180 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1184 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1187 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1192 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1193 echo "$ac_t""${ac_cv_exeext}" 1>&6
1196 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1197 echo "configure:1198: checking for object suffix" >&5
1198 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1202 echo 'int i = 1;' > conftest.$ac_ext
1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204 for ac_file in conftest.*; do
1207 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1211 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1216 echo "$ac_t""$ac_cv_objext" 1>&6
1217 OBJEXT=$ac_cv_objext
1218 ac_objext=$ac_cv_objext
1220 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1221 echo "configure:1222: checking for ANSI C header files" >&5
1222 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1234 { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1236 if test -z "$ac_err"; then
1238 ac_cv_header_stdc=yes
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 ac_cv_header_stdc=no
1248 if test $ac_cv_header_stdc = yes; then
1249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1250 cat > conftest.$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1256 egrep "memchr" >/dev/null 2>&1; then
1260 ac_cv_header_stdc=no
1266 if test $ac_cv_header_stdc = yes; then
1267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1274 egrep "free" >/dev/null 2>&1; then
1278 ac_cv_header_stdc=no
1284 if test $ac_cv_header_stdc = yes; then
1285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1286 if test "$cross_compiling" = yes; then
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1293 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1294 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1296 int main () { int i; for (i = 0; i < 256; i++)
1297 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1301 if { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1305 echo "configure: failed program was:" >&5
1306 cat conftest.$ac_ext >&5
1308 ac_cv_header_stdc=no
1316 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1317 if test $ac_cv_header_stdc = yes; then
1318 cat >> confdefs.h <<\EOF
1319 #define STDC_HEADERS 1
1324 echo $ac_n "checking for working const""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working const" >&5
1326 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1335 /* Ultrix mips cc rejects this. */
1336 typedef int charset[2]; const charset x;
1337 /* SunOS 4.1.1 cc rejects this. */
1338 char const *const *ccp;
1340 /* NEC SVR4.0.2 mips cc rejects this. */
1341 struct point {int x, y;};
1342 static struct point const zero = {0,0};
1343 /* AIX XL C 1.02.0.0 rejects this.
1344 It does not let you subtract one const X* pointer from another in an arm
1345 of an if-expression whose if-part is not a constant expression */
1346 const char *g = "string";
1347 ccp = &g + (g ? g-g : 0);
1348 /* HPUX 7.0 cc rejects these. */
1351 ccp = (char const *const *) p;
1352 { /* SCO 3.2v4 cc rejects this. */
1354 char const *s = 0 ? (char *) 0 : (char const *) 0;
1358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1360 const int *foo = &x[0];
1363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1364 typedef const int *iptr;
1368 { /* AIX XL C 1.02.0.0 rejects this saying
1369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1370 struct s { int j; const int *ap[3]; };
1371 struct s *b; b->j = 5;
1373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1379 if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1391 echo "$ac_t""$ac_cv_c_const" 1>&6
1392 if test $ac_cv_c_const = no; then
1393 cat >> confdefs.h <<\EOF
1399 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1400 echo "configure:1401: checking for size_t" >&5
1401 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1416 ac_cv_type_size_t=yes
1419 ac_cv_type_size_t=no
1424 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1425 if test $ac_cv_type_size_t = no; then
1426 cat >> confdefs.h <<\EOF
1427 #define size_t unsigned
1434 for ac_func in strerror bcopy memmove
1436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_func" >&5
1438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 /* System header to define __stub macros and hopefully few prototypes,
1445 which can conflict with char $ac_func(); below. */
1447 /* Override any gcc2 internal prototype to avoid an error. */
1448 /* We use char because int might match the return type of a gcc2
1449 builtin and then its argument prototype would still apply. */
1454 /* The GNU C library defines this for functions which it implements
1455 to always fail with ENOSYS. Some functions are actually named
1456 something starting with __ and the normal name is an alias. */
1457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467 eval "ac_cv_func_$ac_func=yes"
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1472 eval "ac_cv_func_$ac_func=no"
1477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1480 cat >> confdefs.h <<EOF
1481 #define $ac_tr_func 1
1485 echo "$ac_t""no" 1>&6
1491 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1492 echo "configure:1493: checking for pcre_compile in -lpcre" >&5
1493 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 ac_save_LIBS="$LIBS"
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1505 char pcre_compile();
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1513 eval "ac_cv_lib_$ac_lib_var=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 eval "ac_cv_lib_$ac_lib_var=no"
1521 LIBS="$ac_save_LIBS"
1524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1527 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1528 echo "configure:1529: checking for pcre.h" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540 if test -z "$ac_err"; then
1542 eval "ac_cv_header_$ac_safe=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_header_$ac_safe=no"
1552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1556 echo "$ac_t""no" 1>&6
1561 echo "$ac_t""no" 1>&6
1565 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1566 echo "configure:1567: checking for regcomp in -lpcreposix" >&5
1567 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 ac_save_LIBS="$LIBS"
1572 LIBS="-lpcreposix -lpcre $LIBS"
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1587 eval "ac_cv_lib_$ac_lib_var=yes"
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1592 eval "ac_cv_lib_$ac_lib_var=no"
1595 LIBS="$ac_save_LIBS"
1598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1601 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1602 echo "configure:1603: checking for pcreposix.h" >&5
1603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 #include <pcreposix.h>
1611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1612 { (eval echo configure:1613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1614 if test -z "$ac_err"; then
1616 eval "ac_cv_header_$ac_safe=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1622 eval "ac_cv_header_$ac_safe=no"
1626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1627 echo "$ac_t""yes" 1>&6
1630 echo "$ac_t""no" 1>&6
1635 echo "$ac_t""no" 1>&6
1639 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1640 echo "configure:1641: checking for pcrs_compile in -lpcrs" >&5
1641 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 ac_save_LIBS="$LIBS"
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* Override any gcc2 internal prototype to avoid an error. */
1651 /* We use char because int might match the return type of a gcc2
1652 builtin and then its argument prototype would still apply. */
1653 char pcrs_compile();
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 eval "ac_cv_lib_$ac_lib_var=yes"
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 eval "ac_cv_lib_$ac_lib_var=no"
1669 LIBS="$ac_save_LIBS"
1672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1674 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1675 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1676 echo "configure:1677: checking for pcrs.h" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1686 { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1688 if test -z "$ac_err"; then
1690 eval "ac_cv_header_$ac_safe=yes"
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1696 eval "ac_cv_header_$ac_safe=no"
1700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1701 echo "$ac_t""yes" 1>&6
1704 echo "$ac_t""no" 1>&6
1709 echo "$ac_t""no" 1>&6
1716 cat >> confdefs.h <<\EOF
1722 # Check whether --enable-toggle or --disable-toggle was given.
1723 if test "${enable_toggle+set}" = set; then
1724 enableval="$enable_toggle"
1725 if test $enableval = yes; then
1726 cat >> confdefs.h <<\EOF
1727 #define FEATURE_TOGGLE 1
1732 cat >> confdefs.h <<\EOF
1733 #define FEATURE_TOGGLE 1
1739 # Check whether --enable-gzip or --disable-gzip was given.
1740 if test "${enable_gzip+set}" = set; then
1741 enableval="$enable_gzip"
1742 if test $enableval = "no"; then
1743 cat >> confdefs.h <<\EOF
1744 #define FEATURE_DENY_GZIP 1
1751 # Check whether --enable-force or --disable-force was given.
1752 if test "${enable_force+set}" = set; then
1753 enableval="$enable_force"
1754 if test $enableval = yes; then
1755 cat >> confdefs.h <<\EOF
1756 #define FEATURE_FORCE_LOAD 1
1761 cat >> confdefs.h <<\EOF
1762 #define FEATURE_FORCE_LOAD 1
1768 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1769 if test "${enable_fast_redirects+set}" = set; then
1770 enableval="$enable_fast_redirects"
1771 if test $enableval = yes; then
1772 cat >> confdefs.h <<\EOF
1773 #define FEATURE_FAST_REDIRECTS 1
1778 cat >> confdefs.h <<\EOF
1779 #define FEATURE_FAST_REDIRECTS 1
1785 # Check whether --enable-killpopup or --disable-killpopup was given.
1786 if test "${enable_killpopup+set}" = set; then
1787 enableval="$enable_killpopup"
1788 if test $enableval = yes; then
1789 cat >> confdefs.h <<\EOF
1790 #define FEATURE_KILL_POPUPS 1
1795 cat >> confdefs.h <<\EOF
1796 #define FEATURE_KILL_POPUPS 1
1802 # Check whether --enable-stats or --disable-stats was given.
1803 if test "${enable_stats+set}" = set; then
1804 enableval="$enable_stats"
1805 if test $enableval = yes; then
1806 cat >> confdefs.h <<\EOF
1807 #define FEATURE_STATISTICS 1
1812 cat >> confdefs.h <<\EOF
1813 #define FEATURE_STATISTICS 1
1819 # Check whether --enable-ie-images or --disable-ie-images was given.
1820 if test "${enable_ie_images+set}" = set; then
1821 enableval="$enable_ie_images"
1822 if test $enableval = yes; then
1823 cat >> confdefs.h <<\EOF
1824 #define FEATURE_IMAGE_DETECT_MSIE 1
1829 cat >> confdefs.h <<\EOF
1830 #define FEATURE_IMAGE_DETECT_MSIE 1
1836 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1837 if test "${enable_image_blocking+set}" = set; then
1838 enableval="$enable_image_blocking"
1839 if test $enableval = yes; then
1840 cat >> confdefs.h <<\EOF
1841 #define FEATURE_IMAGE_BLOCKING 1
1846 cat >> confdefs.h <<\EOF
1847 #define FEATURE_IMAGE_BLOCKING 1
1853 # Check whether --enable-acl-files or --disable-acl-files was given.
1854 if test "${enable_acl_files+set}" = set; then
1855 enableval="$enable_acl_files"
1856 if test $enableval = yes; then
1857 cat >> confdefs.h <<\EOF
1858 #define FEATURE_ACL 1
1863 cat >> confdefs.h <<\EOF
1864 #define FEATURE_ACL 1
1870 # Check whether --enable-trust-files or --disable-trust-files was given.
1871 if test "${enable_trust_files+set}" = set; then
1872 enableval="$enable_trust_files"
1873 if test $enableval = yes; then
1874 cat >> confdefs.h <<\EOF
1875 #define FEATURE_TRUST 1
1880 cat >> confdefs.h <<\EOF
1881 #define FEATURE_TRUST 1
1887 # Check whether --enable-jar-files or --disable-jar-files was given.
1888 if test "${enable_jar_files+set}" = set; then
1889 enableval="$enable_jar_files"
1890 if test $enableval = yes; then
1891 cat >> confdefs.h <<\EOF
1892 #define FEATURE_COOKIE_JAR 1
1897 cat >> confdefs.h <<\EOF
1898 #define FEATURE_COOKIE_JAR 1
1905 # Check whether --enable-regex-matching or --disable-regex-matching was given.
1906 if test "${enable_regex_matching+set}" = set; then
1907 enableval="$enable_regex_matching"
1908 regex_matching=$enableval
1914 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
1915 if test "${enable_dynamic_pcre+set}" = set; then
1916 enableval="$enable_dynamic_pcre"
1917 if test $enableval = "no"; then have_pcre=no; fi
1921 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
1922 if test "${enable_dynamic_pcrs+set}" = set; then
1923 enableval="$enable_dynamic_pcrs"
1924 if test $enableval = "no"; then have_pcrs=no; fi
1929 # Is the regex URL matching based on libpcreposix, but we
1930 # don't have that library?
1932 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
1933 dont_miss_pcreposix=yes
1935 dont_miss_pcreposix=no
1938 # If we have libpcre and either we also have pcreposix or
1939 # we don't need pcreposix, then link pcre dynamically; else
1940 # build it and link statically
1942 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
1943 echo "using libpcre"
1948 echo "using built-in static pcre"
1950 cat >> confdefs.h <<\EOF
1951 #define STATIC_PCRE 1
1957 # If we have libpcrs and pcre is linked dynamically
1958 # then also link pcrs dynamically, else build and link
1961 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
1962 echo "using libpcrs"
1966 echo "using built-in static pcrs"
1967 cat >> confdefs.h <<\EOF
1968 #define STATIC_PCRS 1
1974 # Which method should be used for URL matching?
1975 # pcre, gnu regex or prefix matching?
1977 if test $regex_matching = "gnu"; then
1978 echo "using gnu regex for URL matching"
1979 cat >> confdefs.h <<\EOF
1985 elif test $regex_matching = "pcre"; then
1986 echo "using pcre regex for URL matching"
1987 cat >> confdefs.h <<\EOF
1988 #define REGEX_PCRE 1
1993 if test $pcre_dyn = "yes"; then
1994 LIBS="$LIBS -lpcreposix"
1997 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2008 CFLAGS=$old_CFLAGS_nospecial
2014 cat > confcache <<\EOF
2015 # This file is a shell script that caches the results of configure
2016 # tests run on this system so they can be shared between configure
2017 # scripts and configure runs. It is not useful on other systems.
2018 # If it contains results you don't want to keep, you may remove or edit it.
2020 # By default, configure uses ./config.cache as the cache file,
2021 # creating it if it does not exist already. You can give configure
2022 # the --cache-file=FILE option to use a different cache file; that is
2023 # what configure does when it calls configure scripts in
2024 # subdirectories, so they share the cache.
2025 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2026 # config.status only pays attention to the cache file if you give it the
2027 # --recheck option to rerun configure.
2030 # The following way of writing the cache mishandles newlines in values,
2031 # but we know of no workaround that is simple, portable, and efficient.
2032 # So, don't put newlines in cache variables' values.
2033 # Ultrix sh set writes to stderr and can't be redirected directly,
2034 # and sets the high bit in the cache file unless we assign to the vars.
2036 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2038 # `set' does not quote correctly, so add quotes (double-quote substitution
2039 # turns \\\\ into \\, and sed turns \\ into \).
2041 -e "s/'/'\\\\''/g" \
2042 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2045 # `set' quotes correctly as required by POSIX, so do not add quotes.
2046 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2049 if cmp -s $cache_file confcache; then
2052 if test -w $cache_file; then
2053 echo "updating cache $cache_file"
2054 cat confcache > $cache_file
2056 echo "not updating unwritable cache $cache_file"
2061 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2064 # Let make expand exec_prefix.
2065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2067 # Any assignment to VPATH causes Sun make to only execute
2068 # the first set of double-colon rules, so remove it if not needed.
2069 # If there is a colon in the path, we need to keep it.
2070 if test "x$srcdir" = x.; then
2071 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2074 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2076 DEFS=-DHAVE_CONFIG_H
2078 # Without the "./", some shells look in PATH for config.status.
2079 : ${CONFIG_STATUS=./config.status}
2081 echo creating $CONFIG_STATUS
2082 rm -f $CONFIG_STATUS
2083 cat > $CONFIG_STATUS <<EOF
2085 # Generated automatically by configure.
2086 # Run this file to recreate the current configuration.
2087 # This directory was configured as follows,
2088 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2090 # $0 $ac_configure_args
2092 # Compiler output produced by configure, useful for debugging
2093 # configure, is in ./config.log if it exists.
2095 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2098 case "\$ac_option" in
2099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2100 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2101 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2102 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2103 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2105 -help | --help | --hel | --he | --h)
2106 echo "\$ac_cs_usage"; exit 0 ;;
2107 *) echo "\$ac_cs_usage"; exit 1 ;;
2111 ac_given_srcdir=$srcdir
2113 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2115 cat >> $CONFIG_STATUS <<EOF
2117 # Protect against being on the right side of a sed subst in config.status.
2118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2119 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2123 s%@CFLAGS@%$CFLAGS%g
2124 s%@CPPFLAGS@%$CPPFLAGS%g
2125 s%@CXXFLAGS@%$CXXFLAGS%g
2126 s%@FFLAGS@%$FFLAGS%g
2128 s%@LDFLAGS@%$LDFLAGS%g
2130 s%@exec_prefix@%$exec_prefix%g
2131 s%@prefix@%$prefix%g
2132 s%@program_transform_name@%$program_transform_name%g
2133 s%@bindir@%$bindir%g
2134 s%@sbindir@%$sbindir%g
2135 s%@libexecdir@%$libexecdir%g
2136 s%@datadir@%$datadir%g
2137 s%@sysconfdir@%$sysconfdir%g
2138 s%@sharedstatedir@%$sharedstatedir%g
2139 s%@localstatedir@%$localstatedir%g
2140 s%@libdir@%$libdir%g
2141 s%@includedir@%$includedir%g
2142 s%@oldincludedir@%$oldincludedir%g
2143 s%@infodir@%$infodir%g
2144 s%@mandir@%$mandir%g
2145 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2146 s%@VERSION_MINOR@%$VERSION_MINOR%g
2147 s%@VERSION_POINT@%$VERSION_POINT%g
2150 s%@WIN_ONLY@%$WIN_ONLY%g
2151 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2153 s%@host_alias@%$host_alias%g
2154 s%@host_cpu@%$host_cpu%g
2155 s%@host_vendor@%$host_vendor%g
2156 s%@host_os@%$host_os%g
2157 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
2158 s%@EXEEXT@%$EXEEXT%g
2159 s%@OBJEXT@%$OBJEXT%g
2160 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2161 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2162 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2163 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2164 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2165 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2170 cat >> $CONFIG_STATUS <<\EOF
2172 # Split the substitutions into bite-sized pieces for seds with
2173 # small command number limits, like on Digital OSF/1 and HP-UX.
2174 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2175 ac_file=1 # Number of current file.
2176 ac_beg=1 # First line for current file.
2177 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2180 while $ac_more_lines; do
2181 if test $ac_beg -gt 1; then
2182 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2184 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2186 if test ! -s conftest.s$ac_file; then
2188 rm -f conftest.s$ac_file
2190 if test -z "$ac_sed_cmds"; then
2191 ac_sed_cmds="sed -f conftest.s$ac_file"
2193 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2195 ac_file=`expr $ac_file + 1`
2197 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2200 if test -z "$ac_sed_cmds"; then
2205 cat >> $CONFIG_STATUS <<EOF
2207 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2209 cat >> $CONFIG_STATUS <<\EOF
2210 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2213 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2214 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2215 *) ac_file_in="${ac_file}.in" ;;
2218 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2220 # Remove last slash and all that follows it. Not all systems have dirname.
2221 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2222 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2223 # The file is in a subdirectory.
2224 test ! -d "$ac_dir" && mkdir "$ac_dir"
2225 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2226 # A "../" for each directory in $ac_dir_suffix.
2227 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2229 ac_dir_suffix= ac_dots=
2232 case "$ac_given_srcdir" in
2234 if test -z "$ac_dots"; then top_srcdir=.
2235 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2236 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2238 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2239 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2243 echo creating "$ac_file"
2245 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2247 *Makefile*) ac_comsub="1i\\
2248 # $configure_input" ;;
2252 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2254 s%@configure_input@%$configure_input%g
2255 s%@srcdir@%$srcdir%g
2256 s%@top_srcdir@%$top_srcdir%g
2257 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2264 # ac_d sets the value in "#define NAME VALUE" lines.
2265 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2266 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2269 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2270 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2271 ac_uB='\([ ]\)%\1#\2define\3'
2274 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2275 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2276 ac_eB='$%\1#\2define\3'
2280 if test "${CONFIG_HEADERS+set}" != set; then
2282 cat >> $CONFIG_STATUS <<EOF
2283 CONFIG_HEADERS="config.h"
2285 cat >> $CONFIG_STATUS <<\EOF
2287 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2290 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2291 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2292 *) ac_file_in="${ac_file}.in" ;;
2295 echo creating $ac_file
2297 rm -f conftest.frag conftest.in conftest.out
2298 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2299 cat $ac_file_inputs > conftest.in
2303 # Transform confdefs.h into a sed script conftest.vals that substitutes
2304 # the proper values into config.h.in to produce config.h. And first:
2305 # Protect against being on the right side of a sed subst in config.status.
2306 # Protect against being in an unquoted here document in config.status.
2308 cat > conftest.hdr <<\EOF
2311 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2315 sed -n -f conftest.hdr confdefs.h > conftest.vals
2318 # This sed command replaces #undef with comments. This is necessary, for
2319 # example, in the case of _POSIX_SOURCE, which is predefined and required
2320 # on some systems where configure will not decide to define it.
2321 cat >> conftest.vals <<\EOF
2322 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2325 # Break up conftest.vals because some shells have a limit on
2326 # the size of here documents, and old seds have small limits too.
2331 ac_lines=`grep -c . conftest.vals`
2332 # grep -c gives empty output for an empty file on some AIX systems.
2333 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2334 # Write a limited-size here document to conftest.frag.
2335 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2336 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2338 sed -f conftest.frag conftest.in > conftest.out
2340 mv conftest.out conftest.in
2342 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2344 mv conftest.tail conftest.vals
2348 cat >> $CONFIG_STATUS <<\EOF
2349 rm -f conftest.frag conftest.h
2350 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2351 cat conftest.in >> conftest.h
2353 if cmp -s $ac_file conftest.h 2>/dev/null; then
2354 echo "$ac_file is unchanged"
2357 # Remove last slash and all that follows it. Not all systems have dirname.
2358 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2360 # The file is in a subdirectory.
2361 test ! -d "$ac_dir" && mkdir "$ac_dir"
2364 mv conftest.h $ac_file
2369 cat >> $CONFIG_STATUS <<EOF
2372 cat >> $CONFIG_STATUS <<\EOF
2376 chmod +x $CONFIG_STATUS
2377 rm -fr confdefs* $ac_clean_files
2378 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1