3 # From configure.in Revision: 1.16
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*) SOCKET_LIB="-lsocket -lnsl"
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"
1164 *-os2-emx*) SOCKET_LIB=-lsocket
1174 *-amigaos) AMIGAOS_ONLY=
1183 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1184 echo "configure:1185: checking for executable suffix" >&5
1185 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1192 echo 'int main () { return 0; }' > conftest.$ac_ext
1194 if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1195 for file in conftest.*; do
1197 *.c | *.o | *.obj) ;;
1198 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1202 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1205 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1210 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1211 echo "$ac_t""${ac_cv_exeext}" 1>&6
1214 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1215 echo "configure:1216: checking for object suffix" >&5
1216 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1220 echo 'int i = 1;' > conftest.$ac_ext
1221 if { (eval echo configure:1222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1222 for ac_file in conftest.*; do
1225 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1229 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1234 echo "$ac_t""$ac_cv_objext" 1>&6
1235 OBJEXT=$ac_cv_objext
1236 ac_objext=$ac_cv_objext
1238 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1239 echo "configure:1240: checking for ANSI C header files" >&5
1240 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1256 ac_cv_header_stdc=yes
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1262 ac_cv_header_stdc=no
1266 if test $ac_cv_header_stdc = yes; then
1267 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then
1278 ac_cv_header_stdc=no
1284 if test $ac_cv_header_stdc = yes; then
1285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1292 egrep "free" >/dev/null 2>&1; then
1296 ac_cv_header_stdc=no
1302 if test $ac_cv_header_stdc = yes; then
1303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1304 if test "$cross_compiling" = yes; then
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1311 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1312 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1314 int main () { int i; for (i = 0; i < 256; i++)
1315 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1326 ac_cv_header_stdc=no
1334 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1335 if test $ac_cv_header_stdc = yes; then
1336 cat >> confdefs.h <<\EOF
1337 #define STDC_HEADERS 1
1342 echo $ac_n "checking for working const""... $ac_c" 1>&6
1343 echo "configure:1344: checking for working const" >&5
1344 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1353 /* Ultrix mips cc rejects this. */
1354 typedef int charset[2]; const charset x;
1355 /* SunOS 4.1.1 cc rejects this. */
1356 char const *const *ccp;
1358 /* NEC SVR4.0.2 mips cc rejects this. */
1359 struct point {int x, y;};
1360 static struct point const zero = {0,0};
1361 /* AIX XL C 1.02.0.0 rejects this.
1362 It does not let you subtract one const X* pointer from another in an arm
1363 of an if-expression whose if-part is not a constant expression */
1364 const char *g = "string";
1365 ccp = &g + (g ? g-g : 0);
1366 /* HPUX 7.0 cc rejects these. */
1369 ccp = (char const *const *) p;
1370 { /* SCO 3.2v4 cc rejects this. */
1372 char const *s = 0 ? (char *) 0 : (char const *) 0;
1376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1378 const int *foo = &x[0];
1381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1382 typedef const int *iptr;
1386 { /* AIX XL C 1.02.0.0 rejects this saying
1387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1388 struct s { int j; const int *ap[3]; };
1389 struct s *b; b->j = 5;
1391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1409 echo "$ac_t""$ac_cv_c_const" 1>&6
1410 if test $ac_cv_c_const = no; then
1411 cat >> confdefs.h <<\EOF
1417 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1418 echo "configure:1419: checking for size_t" >&5
1419 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sys/types.h>
1431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1434 ac_cv_type_size_t=yes
1437 ac_cv_type_size_t=no
1442 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1443 if test $ac_cv_type_size_t = no; then
1444 cat >> confdefs.h <<\EOF
1445 #define size_t unsigned
1452 for ac_func in strerror bcopy memmove
1454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_func" >&5
1456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* System header to define __stub macros and hopefully few prototypes,
1463 which can conflict with char $ac_func(); below. */
1465 /* Override any gcc2 internal prototype to avoid an error. */
1466 /* We use char because int might match the return type of a gcc2
1467 builtin and then its argument prototype would still apply. */
1472 /* The GNU C library defines this for functions which it implements
1473 to always fail with ENOSYS. Some functions are actually named
1474 something starting with __ and the normal name is an alias. */
1475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1485 eval "ac_cv_func_$ac_func=yes"
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1490 eval "ac_cv_func_$ac_func=no"
1495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1498 cat >> confdefs.h <<EOF
1499 #define $ac_tr_func 1
1503 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1510 echo "configure:1511: checking for pcre_compile in -lpcre" >&5
1511 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_save_LIBS="$LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error. */
1521 /* We use char because int might match the return type of a gcc2
1522 builtin and then its argument prototype would still apply. */
1523 char pcre_compile();
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 eval "ac_cv_lib_$ac_lib_var=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_lib_$ac_lib_var=no"
1539 LIBS="$ac_save_LIBS"
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543 echo "$ac_t""yes" 1>&6
1544 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1545 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1546 echo "configure:1547: checking for pcre.h" >&5
1547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1556 { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1558 if test -z "$ac_err"; then
1560 eval "ac_cv_header_$ac_safe=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 eval "ac_cv_header_$ac_safe=no"
1570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1574 echo "$ac_t""no" 1>&6
1579 echo "$ac_t""no" 1>&6
1583 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1584 echo "configure:1585: checking for regcomp in -lpcreposix" >&5
1585 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 ac_save_LIBS="$LIBS"
1590 LIBS="-lpcreposix -lpcre $LIBS"
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605 eval "ac_cv_lib_$ac_lib_var=yes"
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 eval "ac_cv_lib_$ac_lib_var=no"
1613 LIBS="$ac_save_LIBS"
1616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1617 echo "$ac_t""yes" 1>&6
1618 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1619 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1620 echo "configure:1621: checking for pcreposix.h" >&5
1621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <pcreposix.h>
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1632 if test -z "$ac_err"; then
1634 eval "ac_cv_header_$ac_safe=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1640 eval "ac_cv_header_$ac_safe=no"
1644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1648 echo "$ac_t""no" 1>&6
1653 echo "$ac_t""no" 1>&6
1657 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1658 echo "configure:1659: checking for pcrs_compile in -lpcrs" >&5
1659 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 ac_save_LIBS="$LIBS"
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 /* Override any gcc2 internal prototype to avoid an error. */
1669 /* We use char because int might match the return type of a gcc2
1670 builtin and then its argument prototype would still apply. */
1671 char pcrs_compile();
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679 eval "ac_cv_lib_$ac_lib_var=yes"
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 eval "ac_cv_lib_$ac_lib_var=no"
1687 LIBS="$ac_save_LIBS"
1690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1692 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1693 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1694 echo "configure:1695: checking for pcrs.h" >&5
1695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 eval "ac_cv_header_$ac_safe=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_header_$ac_safe=no"
1718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1722 echo "$ac_t""no" 1>&6
1727 echo "$ac_t""no" 1>&6
1734 cat >> confdefs.h <<\EOF
1740 # Check whether --enable-toggle or --disable-toggle was given.
1741 if test "${enable_toggle+set}" = set; then
1742 enableval="$enable_toggle"
1743 if test $enableval = yes; then
1744 cat >> confdefs.h <<\EOF
1745 #define FEATURE_TOGGLE 1
1750 cat >> confdefs.h <<\EOF
1751 #define FEATURE_TOGGLE 1
1757 # Check whether --enable-gzip or --disable-gzip was given.
1758 if test "${enable_gzip+set}" = set; then
1759 enableval="$enable_gzip"
1760 if test $enableval = "no"; then
1761 cat >> confdefs.h <<\EOF
1762 #define FEATURE_DENY_GZIP 1
1769 # Check whether --enable-force or --disable-force was given.
1770 if test "${enable_force+set}" = set; then
1771 enableval="$enable_force"
1772 if test $enableval = yes; then
1773 cat >> confdefs.h <<\EOF
1774 #define FEATURE_FORCE_LOAD 1
1779 cat >> confdefs.h <<\EOF
1780 #define FEATURE_FORCE_LOAD 1
1786 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1787 if test "${enable_fast_redirects+set}" = set; then
1788 enableval="$enable_fast_redirects"
1789 if test $enableval = yes; then
1790 cat >> confdefs.h <<\EOF
1791 #define FEATURE_FAST_REDIRECTS 1
1796 cat >> confdefs.h <<\EOF
1797 #define FEATURE_FAST_REDIRECTS 1
1803 # Check whether --enable-killpopup or --disable-killpopup was given.
1804 if test "${enable_killpopup+set}" = set; then
1805 enableval="$enable_killpopup"
1806 if test $enableval = yes; then
1807 cat >> confdefs.h <<\EOF
1808 #define FEATURE_KILL_POPUPS 1
1813 cat >> confdefs.h <<\EOF
1814 #define FEATURE_KILL_POPUPS 1
1820 # Check whether --enable-stats or --disable-stats was given.
1821 if test "${enable_stats+set}" = set; then
1822 enableval="$enable_stats"
1823 if test $enableval = yes; then
1824 cat >> confdefs.h <<\EOF
1825 #define FEATURE_STATISTICS 1
1830 cat >> confdefs.h <<\EOF
1831 #define FEATURE_STATISTICS 1
1837 # Check whether --enable-ie-images or --disable-ie-images was given.
1838 if test "${enable_ie_images+set}" = set; then
1839 enableval="$enable_ie_images"
1840 if test $enableval = yes; then
1841 cat >> confdefs.h <<\EOF
1842 #define FEATURE_IMAGE_DETECT_MSIE 1
1847 cat >> confdefs.h <<\EOF
1848 #define FEATURE_IMAGE_DETECT_MSIE 1
1854 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1855 if test "${enable_image_blocking+set}" = set; then
1856 enableval="$enable_image_blocking"
1857 if test $enableval = yes; then
1858 cat >> confdefs.h <<\EOF
1859 #define FEATURE_IMAGE_BLOCKING 1
1864 cat >> confdefs.h <<\EOF
1865 #define FEATURE_IMAGE_BLOCKING 1
1871 # Check whether --enable-acl-files or --disable-acl-files was given.
1872 if test "${enable_acl_files+set}" = set; then
1873 enableval="$enable_acl_files"
1874 if test $enableval = yes; then
1875 cat >> confdefs.h <<\EOF
1876 #define FEATURE_ACL 1
1881 cat >> confdefs.h <<\EOF
1882 #define FEATURE_ACL 1
1888 # Check whether --enable-trust-files or --disable-trust-files was given.
1889 if test "${enable_trust_files+set}" = set; then
1890 enableval="$enable_trust_files"
1891 if test $enableval = yes; then
1892 cat >> confdefs.h <<\EOF
1893 #define FEATURE_TRUST 1
1898 cat >> confdefs.h <<\EOF
1899 #define FEATURE_TRUST 1
1905 # Check whether --enable-jar-files or --disable-jar-files was given.
1906 if test "${enable_jar_files+set}" = set; then
1907 enableval="$enable_jar_files"
1908 if test $enableval = yes; then
1909 cat >> confdefs.h <<\EOF
1910 #define FEATURE_COOKIE_JAR 1
1915 cat >> confdefs.h <<\EOF
1916 #define FEATURE_COOKIE_JAR 1
1923 # Check whether --enable-regex-matching or --disable-regex-matching was given.
1924 if test "${enable_regex_matching+set}" = set; then
1925 enableval="$enable_regex_matching"
1926 regex_matching=$enableval
1932 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
1933 if test "${enable_dynamic_pcre+set}" = set; then
1934 enableval="$enable_dynamic_pcre"
1935 if test $enableval = "no"; then have_pcre=no; fi
1939 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
1940 if test "${enable_dynamic_pcrs+set}" = set; then
1941 enableval="$enable_dynamic_pcrs"
1942 if test $enableval = "no"; then have_pcrs=no; fi
1947 # Is the regex URL matching based on libpcreposix, but we
1948 # don't have that library?
1950 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
1951 dont_miss_pcreposix=yes
1953 dont_miss_pcreposix=no
1956 # If we have libpcre and either we also have pcreposix or
1957 # we don't need pcreposix, then link pcre dynamically; else
1958 # build it and link statically
1960 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
1961 echo "using libpcre"
1966 echo "using built-in static pcre"
1968 cat >> confdefs.h <<\EOF
1969 #define STATIC_PCRE 1
1975 # If we have libpcrs and pcre is linked dynamically
1976 # then also link pcrs dynamically, else build and link
1979 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
1980 echo "using libpcrs"
1984 echo "using built-in static pcrs"
1985 cat >> confdefs.h <<\EOF
1986 #define STATIC_PCRS 1
1992 # Which method should be used for URL matching?
1993 # pcre, gnu regex or prefix matching?
1995 if test $regex_matching = "gnu"; then
1996 echo "using gnu regex for URL matching"
1997 cat >> confdefs.h <<\EOF
2003 elif test $regex_matching = "pcre"; then
2004 echo "using pcre regex for URL matching"
2005 cat >> confdefs.h <<\EOF
2006 #define REGEX_PCRE 1
2011 if test $pcre_dyn = "yes"; then
2012 LIBS="$LIBS -lpcreposix"
2015 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2026 CFLAGS=$old_CFLAGS_nospecial
2032 cat > confcache <<\EOF
2033 # This file is a shell script that caches the results of configure
2034 # tests run on this system so they can be shared between configure
2035 # scripts and configure runs. It is not useful on other systems.
2036 # If it contains results you don't want to keep, you may remove or edit it.
2038 # By default, configure uses ./config.cache as the cache file,
2039 # creating it if it does not exist already. You can give configure
2040 # the --cache-file=FILE option to use a different cache file; that is
2041 # what configure does when it calls configure scripts in
2042 # subdirectories, so they share the cache.
2043 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2044 # config.status only pays attention to the cache file if you give it the
2045 # --recheck option to rerun configure.
2048 # The following way of writing the cache mishandles newlines in values,
2049 # but we know of no workaround that is simple, portable, and efficient.
2050 # So, don't put newlines in cache variables' values.
2051 # Ultrix sh set writes to stderr and can't be redirected directly,
2052 # and sets the high bit in the cache file unless we assign to the vars.
2054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2056 # `set' does not quote correctly, so add quotes (double-quote substitution
2057 # turns \\\\ into \\, and sed turns \\ into \).
2059 -e "s/'/'\\\\''/g" \
2060 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2063 # `set' quotes correctly as required by POSIX, so do not add quotes.
2064 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2067 if cmp -s $cache_file confcache; then
2070 if test -w $cache_file; then
2071 echo "updating cache $cache_file"
2072 cat confcache > $cache_file
2074 echo "not updating unwritable cache $cache_file"
2079 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2082 # Let make expand exec_prefix.
2083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2085 # Any assignment to VPATH causes Sun make to only execute
2086 # the first set of double-colon rules, so remove it if not needed.
2087 # If there is a colon in the path, we need to keep it.
2088 if test "x$srcdir" = x.; then
2089 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2092 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2094 DEFS=-DHAVE_CONFIG_H
2096 # Without the "./", some shells look in PATH for config.status.
2097 : ${CONFIG_STATUS=./config.status}
2099 echo creating $CONFIG_STATUS
2100 rm -f $CONFIG_STATUS
2101 cat > $CONFIG_STATUS <<EOF
2103 # Generated automatically by configure.
2104 # Run this file to recreate the current configuration.
2105 # This directory was configured as follows,
2106 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2108 # $0 $ac_configure_args
2110 # Compiler output produced by configure, useful for debugging
2111 # configure, is in ./config.log if it exists.
2113 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2116 case "\$ac_option" in
2117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2118 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2119 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2120 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2121 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2123 -help | --help | --hel | --he | --h)
2124 echo "\$ac_cs_usage"; exit 0 ;;
2125 *) echo "\$ac_cs_usage"; exit 1 ;;
2129 ac_given_srcdir=$srcdir
2131 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2133 cat >> $CONFIG_STATUS <<EOF
2135 # Protect against being on the right side of a sed subst in config.status.
2136 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2137 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2141 s%@CFLAGS@%$CFLAGS%g
2142 s%@CPPFLAGS@%$CPPFLAGS%g
2143 s%@CXXFLAGS@%$CXXFLAGS%g
2144 s%@FFLAGS@%$FFLAGS%g
2146 s%@LDFLAGS@%$LDFLAGS%g
2148 s%@exec_prefix@%$exec_prefix%g
2149 s%@prefix@%$prefix%g
2150 s%@program_transform_name@%$program_transform_name%g
2151 s%@bindir@%$bindir%g
2152 s%@sbindir@%$sbindir%g
2153 s%@libexecdir@%$libexecdir%g
2154 s%@datadir@%$datadir%g
2155 s%@sysconfdir@%$sysconfdir%g
2156 s%@sharedstatedir@%$sharedstatedir%g
2157 s%@localstatedir@%$localstatedir%g
2158 s%@libdir@%$libdir%g
2159 s%@includedir@%$includedir%g
2160 s%@oldincludedir@%$oldincludedir%g
2161 s%@infodir@%$infodir%g
2162 s%@mandir@%$mandir%g
2163 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2164 s%@VERSION_MINOR@%$VERSION_MINOR%g
2165 s%@VERSION_POINT@%$VERSION_POINT%g
2168 s%@WIN_ONLY@%$WIN_ONLY%g
2169 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2171 s%@host_alias@%$host_alias%g
2172 s%@host_cpu@%$host_cpu%g
2173 s%@host_vendor@%$host_vendor%g
2174 s%@host_os@%$host_os%g
2175 s%@SOCKET_LIB@%$SOCKET_LIB%g
2176 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
2177 s%@EXEEXT@%$EXEEXT%g
2178 s%@OBJEXT@%$OBJEXT%g
2179 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2180 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2181 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2182 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2183 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2184 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2189 cat >> $CONFIG_STATUS <<\EOF
2191 # Split the substitutions into bite-sized pieces for seds with
2192 # small command number limits, like on Digital OSF/1 and HP-UX.
2193 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2194 ac_file=1 # Number of current file.
2195 ac_beg=1 # First line for current file.
2196 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2199 while $ac_more_lines; do
2200 if test $ac_beg -gt 1; then
2201 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2203 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2205 if test ! -s conftest.s$ac_file; then
2207 rm -f conftest.s$ac_file
2209 if test -z "$ac_sed_cmds"; then
2210 ac_sed_cmds="sed -f conftest.s$ac_file"
2212 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2214 ac_file=`expr $ac_file + 1`
2216 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2219 if test -z "$ac_sed_cmds"; then
2224 cat >> $CONFIG_STATUS <<EOF
2226 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2228 cat >> $CONFIG_STATUS <<\EOF
2229 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2232 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2233 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2234 *) ac_file_in="${ac_file}.in" ;;
2237 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2239 # Remove last slash and all that follows it. Not all systems have dirname.
2240 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2241 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2242 # The file is in a subdirectory.
2243 test ! -d "$ac_dir" && mkdir "$ac_dir"
2244 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2245 # A "../" for each directory in $ac_dir_suffix.
2246 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2248 ac_dir_suffix= ac_dots=
2251 case "$ac_given_srcdir" in
2253 if test -z "$ac_dots"; then top_srcdir=.
2254 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2255 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2257 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2258 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2262 echo creating "$ac_file"
2264 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2266 *Makefile*) ac_comsub="1i\\
2267 # $configure_input" ;;
2271 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2273 s%@configure_input@%$configure_input%g
2274 s%@srcdir@%$srcdir%g
2275 s%@top_srcdir@%$top_srcdir%g
2276 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2280 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2281 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2283 # ac_d sets the value in "#define NAME VALUE" lines.
2284 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2285 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2288 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2289 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2290 ac_uB='\([ ]\)%\1#\2define\3'
2293 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2294 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2295 ac_eB='$%\1#\2define\3'
2299 if test "${CONFIG_HEADERS+set}" != set; then
2301 cat >> $CONFIG_STATUS <<EOF
2302 CONFIG_HEADERS="config.h"
2304 cat >> $CONFIG_STATUS <<\EOF
2306 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2309 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2310 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2311 *) ac_file_in="${ac_file}.in" ;;
2314 echo creating $ac_file
2316 rm -f conftest.frag conftest.in conftest.out
2317 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2318 cat $ac_file_inputs > conftest.in
2322 # Transform confdefs.h into a sed script conftest.vals that substitutes
2323 # the proper values into config.h.in to produce config.h. And first:
2324 # Protect against being on the right side of a sed subst in config.status.
2325 # Protect against being in an unquoted here document in config.status.
2327 cat > conftest.hdr <<\EOF
2330 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2334 sed -n -f conftest.hdr confdefs.h > conftest.vals
2337 # This sed command replaces #undef with comments. This is necessary, for
2338 # example, in the case of _POSIX_SOURCE, which is predefined and required
2339 # on some systems where configure will not decide to define it.
2340 cat >> conftest.vals <<\EOF
2341 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2344 # Break up conftest.vals because some shells have a limit on
2345 # the size of here documents, and old seds have small limits too.
2350 ac_lines=`grep -c . conftest.vals`
2351 # grep -c gives empty output for an empty file on some AIX systems.
2352 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2353 # Write a limited-size here document to conftest.frag.
2354 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2355 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2357 sed -f conftest.frag conftest.in > conftest.out
2359 mv conftest.out conftest.in
2361 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2363 mv conftest.tail conftest.vals
2367 cat >> $CONFIG_STATUS <<\EOF
2368 rm -f conftest.frag conftest.h
2369 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2370 cat conftest.in >> conftest.h
2372 if cmp -s $ac_file conftest.h 2>/dev/null; then
2373 echo "$ac_file is unchanged"
2376 # Remove last slash and all that follows it. Not all systems have dirname.
2377 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2379 # The file is in a subdirectory.
2380 test ! -d "$ac_dir" && mkdir "$ac_dir"
2383 mv conftest.h $ac_file
2388 cat >> $CONFIG_STATUS <<EOF
2391 cat >> $CONFIG_STATUS <<\EOF
2395 chmod +x $CONFIG_STATUS
2396 rm -fr confdefs* $ac_clean_files
2397 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1