3 # From configure.in Revision: 1.28
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --with-debug Enable debug mode"
18 --enable-mingw32 Use mingw32 for a Windows GUI"
20 --disable-pthread Don't use POSIX threads (pthreads)"
22 --disable-toggle Don't support temporary disable"
24 --disable-force Don't allow single-page disable"
26 --disable-fast-redirects Don't support fast redirects"
28 --disable-killpopup Never block popups"
30 --disable-stats Don't keep statistics"
32 --disable-ie-images Don't auto-detect whether a request from MS Internet
33 Explorer is for an image or HTML."
35 --disable-image-blocking Don't try to figure out whether a request is
36 for an image or HTML - assume HTML."
38 --disable-acl-files Prevents the use of ACL files to control access to
39 the proxy by IP address."
41 --disable-trust-files Prevents the use of trust files."
43 --disable-jar-files Prevents the use of jar files to capture cookies."
45 --disable-editor Prevents the use of the web-based actions file
46 editor and web-based temporary disable setting."
48 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
49 pattern matching (default)
50 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
51 matching (-> bigger binary)
52 --disable-regex-matching Don't use regex matching, compare URL
53 prefix instead (won't shrink birary)"
55 --disable-dynamic-pcre Use the built-in, static pcre, even if
58 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host | --host | --hos | --ho)
237 -host=* | --host=* | --hos=* | --ho=*)
240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
252 -libdir | --libdir | --libdi | --libd)
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 sbindir="$ac_optarg" ;;
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 sharedstatedir="$ac_optarg" ;;
356 -site | --site | --sit)
358 -site=* | --site=* | --sit=*)
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.13"
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='\c' ac_t=
572 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
573 if test -f $ac_dir/install-sh; then
575 ac_install_sh="$ac_aux_dir/install-sh -c"
577 elif test -f $ac_dir/install.sh; then
579 ac_install_sh="$ac_aux_dir/install.sh -c"
583 if test -z "$ac_aux_dir"; then
584 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
586 ac_config_guess=$ac_aux_dir/config.guess
587 ac_config_sub=$ac_aux_dir/config.sub
588 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
600 case "$host_alias" in
604 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
607 *) host_alias=$nonopt ;;
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
632 cat >> confdefs.h <<EOF
633 #define VERSION_MAJOR ${VERSION_MAJOR}
636 cat >> confdefs.h <<EOF
637 #define VERSION_MINOR ${VERSION_MINOR}
640 cat >> confdefs.h <<EOF
641 #define VERSION_POINT ${VERSION_POINT}
644 cat >> confdefs.h <<EOF
645 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
648 cat >> confdefs.h <<EOF
649 #define CODE_STATUS "${CODE_STATUS}"
653 PID_FILE_PATH="\"/etc/junkbuster"\"
655 # Extract the first word of "gcc", so it can be a program name with args.
656 set dummy gcc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
667 for ac_dir in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
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
685 # Extract the first word of "cc", so it can be a program name with args.
686 set dummy cc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
710 if test $ac_prog_rejected = yes; then
711 # We found a bogon in the path, so make sure we never use it.
712 set dummy $ac_cv_prog_CC
714 if test $# -gt 0; then
715 # We chose a different compiler from the bogus one.
716 # However, it has the same basename, so the bogon will be chosen
717 # first if we set CC to just the basename; use the full file name.
719 set dummy "$ac_dir/$ac_word" "$@"
727 if test -n "$CC"; then
728 echo "$ac_t""$CC" 1>&6
730 echo "$ac_t""no" 1>&6
733 if test -z "$CC"; then
736 # Extract the first word of "cl", so it can be a program name with args.
737 set dummy cl; ac_word=$2
738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739 echo "configure:740: checking for $ac_word" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 if test -n "$CC"; then
744 ac_cv_prog_CC="$CC" # Let the user override the test.
746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
748 for ac_dir in $ac_dummy; do
749 test -z "$ac_dir" && ac_dir=.
750 if test -f $ac_dir/$ac_word; then
759 if test -n "$CC"; then
760 echo "$ac_t""$CC" 1>&6
762 echo "$ac_t""no" 1>&6
767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
780 cat > conftest.$ac_ext << EOF
782 #line 783 "configure"
783 #include "confdefs.h"
787 if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
788 ac_cv_prog_cc_works=yes
789 # If we can't run a trivial program, we are probably using a cross compiler.
790 if (./conftest; exit) 2>/dev/null; then
791 ac_cv_prog_cc_cross=no
793 ac_cv_prog_cc_cross=yes
796 echo "configure: failed program was:" >&5
797 cat conftest.$ac_ext >&5
798 ac_cv_prog_cc_works=no
802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803 ac_cpp='$CPP $CPPFLAGS'
804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
809 if test $ac_cv_prog_cc_works = no; then
810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
815 cross_compiling=$ac_cv_prog_cc_cross
817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
818 echo "configure:819: checking whether we are using GNU C" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftest.c <<EOF
827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
836 if test $ac_cv_prog_gcc = yes; then
842 ac_test_CFLAGS="${CFLAGS+set}"
843 ac_save_CFLAGS="$CFLAGS"
845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
846 echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 echo 'void f(){}' > conftest.c
851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
861 if test "$ac_test_CFLAGS" = set; then
862 CFLAGS="$ac_save_CFLAGS"
863 elif test $ac_cv_prog_cc_g = yes; then
864 if test "$GCC" = yes; then
870 if test "$GCC" = yes; then
877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
878 echo "configure:879: checking how to run the C preprocessor" >&5
879 # On Suns, sometimes $CPP names a directory.
880 if test -n "$CPP" && test -d "$CPP"; then
883 if test -z "$CPP"; then
884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 # This must be in double quotes, not single quotes, because CPP may get
888 # substituted into the Makefile and "${CC-cc}" will confuse make.
890 # On the NeXT, cc -E runs the code through the compiler's parser,
891 # not just through cpp.
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
901 if test -z "$ac_err"; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
908 CPP="${CC-cc} -E -traditional-cpp"
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
925 CPP="${CC-cc} -nologo -E"
926 cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
949 ac_cv_prog_CPP="$CPP"
951 CPP="$ac_cv_prog_CPP"
953 ac_cv_prog_CPP="$CPP"
955 echo "$ac_t""$CPP" 1>&6
958 # Extract the first word of "gdb", so it can be a program name with args.
959 set dummy gdb; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$GDB"; then
966 ac_cv_prog_GDB="$GDB" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
978 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
981 GDB="$ac_cv_prog_GDB"
982 if test -n "$GDB"; then
983 echo "$ac_t""$GDB" 1>&6
985 echo "$ac_t""no" 1>&6
990 # Check whether --with-debug or --without-debug was given.
991 if test "${with_debug+set}" = set; then
992 withval="$with_debug"
994 if test "x$withval" != "$xno" ; then
995 if test $ac_cv_prog_cc_g = yes; then
996 if test "$GCC" = yes; then
1002 CFLAGS="$CFLAGS -Wshadow -Wconversion"
1007 CFLAGS="$CFLAGS -D_DEBUG"
1012 if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
1013 if test "$GCC" = yes; then
1024 if test "$GCC"; then
1025 CFLAGS="-pipe $CFLAGS"
1030 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1031 echo "configure:1032: checking for mingw32 environment" >&5
1032 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1043 if { (eval echo configure:1044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1056 echo "$ac_t""$ac_cv_mingw32" 1>&6
1058 test "$ac_cv_mingw32" = yes && MINGW32=yes
1059 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1060 echo "configure:1061: checking for Cygwin environment" >&5
1061 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1071 #define __CYGWIN__ __CYGWIN32__
1076 if { (eval echo configure:1077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1089 echo "$ac_t""$ac_cv_cygwin" 1>&6
1091 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1093 if test "$MINGW32" = "yes"; then
1096 if test "$CYGWIN" = "yes"; then
1104 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1105 if test "${enable_mingw32+set}" = set; then
1106 enableval="$enable_mingw32"
1107 if test $enableval = yes; then
1113 if test $target_type = mingw; then
1115 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1116 PTHREAD_LIB=-lpthreadGC
1117 echo "Using mingw32 (Win32 GUI)"
1120 if test $target_type = cygwin; then
1121 SPECIAL_CFLAGS="-mno-win32"
1123 echo "Using Cygnus (Win32 command line)"
1126 PTHREAD_LIB=-lpthread
1132 old_CFLAGS_nospecial=$CFLAGS
1133 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1135 # Hack to force AutoConf to use the CFLAGS we just set
1136 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1142 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1143 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1144 echo "configure:1145: checking for pthread.h" >&5
1145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <pthread.h>
1153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1154 { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1156 if test -z "$ac_err"; then
1158 eval "ac_cv_header_$ac_safe=yes"
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 eval "ac_cv_header_$ac_safe=no"
1168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1169 echo "$ac_t""yes" 1>&6
1172 echo "$ac_t""no" 1>&6
1177 # Check whether --enable-pthread or --disable-pthread was given.
1178 if test "${enable_pthread+set}" = set; then
1179 enableval="$enable_pthread"
1180 if test $enableval = no; then
1187 if test $have_pthread = yes; then
1189 cat >> confdefs.h <<\EOF
1190 #define FEATURE_PTHREAD 1
1193 echo Using POSIX threads
1194 if test "$GCC" = "yes"; then
1195 # Set a GCC specific switch:
1196 if test "$target_type" = "unix"; then
1197 # This compiler switch makes Linux thread-safe
1198 # Don't know about other OS's? Is this switch
1201 SPECIAL_CFLAGS="-pthread"
1206 echo Using native threads
1212 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1213 echo "configure:1214: checking for gethostbyname in -lnsl" >&5
1214 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 ac_save_LIBS="$LIBS"
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1226 char gethostbyname();
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1239 eval "ac_cv_lib_$ac_lib_var=no"
1242 LIBS="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1249 cat >> confdefs.h <<EOF
1250 #define $ac_tr_lib 1
1256 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
1261 echo "configure:1262: checking for gethostbyaddr_r" >&5
1262 if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 /* System header to define __stub macros and hopefully few prototypes,
1269 which can conflict with char gethostbyaddr_r(); below. */
1271 /* Override any gcc2 internal prototype to avoid an error. */
1272 /* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
1274 char gethostbyaddr_r();
1278 /* The GNU C library defines this for functions which it implements
1279 to always fail with ENOSYS. Some functions are actually named
1280 something starting with __ and the normal name is an alias. */
1281 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
1289 if { (eval echo configure:1290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1291 eval "ac_cv_func_gethostbyaddr_r=yes"
1293 echo "configure: failed program was:" >&5
1294 cat conftest.$ac_ext >&5
1296 eval "ac_cv_func_gethostbyaddr_r=no"
1301 if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1304 echo $ac_n "checking signature of gethostbyaddr_r""... $ac_c" 1>&6
1305 echo "configure:1306: checking signature of gethostbyaddr_r" >&5
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1314 struct hostent *h, *hp;
1317 (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
1321 if { (eval echo configure:1322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 cat >> confdefs.h <<\EOF
1325 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
1328 echo "$ac_t""8 args" 1>&6
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1346 (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1353 cat >> confdefs.h <<\EOF
1354 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
1357 echo "$ac_t""7 args" 1>&6
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1372 struct hostent_data *d;
1376 (void) gethostbyaddr_r(a, l, t, h, d)
1380 if { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 cat >> confdefs.h <<\EOF
1384 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
1387 echo "$ac_t""5 args" 1>&6
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1394 echo "$ac_t""unrecognised" 1>&6
1406 echo "$ac_t""no" 1>&6
1408 echo "$ac_t""no" 1>&6
1413 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
1414 echo "configure:1415: checking for gethostbyname_r" >&5
1415 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* System header to define __stub macros and hopefully few prototypes,
1422 which can conflict with char gethostbyname_r(); below. */
1424 /* Override any gcc2 internal prototype to avoid an error. */
1425 /* We use char because int might match the return type of a gcc2
1426 builtin and then its argument prototype would still apply. */
1427 char gethostbyname_r();
1431 /* The GNU C library defines this for functions which it implements
1432 to always fail with ENOSYS. Some functions are actually named
1433 something starting with __ and the normal name is an alias. */
1434 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 eval "ac_cv_func_gethostbyname_r=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_func_gethostbyname_r=no"
1454 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1457 echo $ac_n "checking signature of gethostbyname_r""... $ac_c" 1>&6
1458 echo "configure:1459: checking signature of gethostbyname_r" >&5
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1467 struct hostent *h, *r;
1470 (void) gethostbyname_r(n, h, b, bl, &r, &e)
1474 if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1477 cat >> confdefs.h <<\EOF
1478 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
1481 echo "$ac_t""6 args" 1>&6
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1499 (void) gethostbyname_r(n, h, b, bl, &e)
1503 if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1506 cat >> confdefs.h <<\EOF
1507 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
1510 echo "$ac_t""5 args" 1>&6
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1525 struct hostent_data *d;
1528 (void) gethostbyname_r(n, h, d)
1532 if { (eval echo configure:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1535 cat >> confdefs.h <<\EOF
1536 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
1539 echo "$ac_t""3 args" 1>&6
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1546 echo "$ac_t""unrecognised" 1>&6
1558 echo "$ac_t""no" 1>&6
1560 echo "$ac_t""no" 1>&6
1565 echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6
1566 echo "configure:1567: checking for gmtime_r" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 /* System header to define __stub macros and hopefully few prototypes,
1574 which can conflict with char gmtime_r(); below. */
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. */
1583 /* The GNU C library defines this for functions which it implements
1584 to always fail with ENOSYS. Some functions are actually named
1585 something starting with __ and the normal name is an alias. */
1586 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596 eval "ac_cv_func_gmtime_r=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_func_gmtime_r=no"
1606 if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1609 echo $ac_n "checking signature of gmtime_r""... $ac_c" 1>&6
1610 echo "configure:1611: checking signature of gmtime_r" >&5
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1621 (void) gmtime_r(t, tm)
1625 if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 echo "$ac_t""ok" 1>&6
1629 cat >> confdefs.h <<\EOF
1630 #define HAVE_GMTIME_R 1
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1639 echo "$ac_t""unrecognised" 1>&6
1645 echo "$ac_t""no" 1>&6
1647 echo "$ac_t""no" 1>&6
1652 echo $ac_n "checking for localtime_r""... $ac_c" 1>&6
1653 echo "configure:1654: checking for localtime_r" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char localtime_r(); below. */
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_func_localtime_r=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_func_localtime_r=no"
1693 if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1696 echo $ac_n "checking signature of localtime_r""... $ac_c" 1>&6
1697 echo "configure:1698: checking signature of localtime_r" >&5
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1708 (void) localtime_r(t, tm)
1712 if { (eval echo configure:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 echo "$ac_t""ok" 1>&6
1716 cat >> confdefs.h <<\EOF
1717 #define HAVE_LOCALTIME_R 1
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1726 echo "$ac_t""unrecognised" 1>&6
1732 echo "$ac_t""no" 1>&6
1734 echo "$ac_t""no" 1>&6
1744 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1745 cat >> confdefs.h <<\EOF
1746 #define __EXTENSIONS__ 1
1749 if test "$GCC" = "yes"; then
1750 # Set a GCC specific switch:
1751 # This compiler switch makes Solaris thread-safe
1753 SPECIAL_CFLAGS="-pthreads"
1755 # What do we do without GCC? Guess this:
1756 SPECIAL_CFLAGS="-D_REENTRANT"
1765 *-os2-emx*) SOCKET_LIB=-lsocket
1775 *-amigaos) AMIGAOS_ONLY=
1784 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1785 echo "configure:1786: checking for executable suffix" >&5
1786 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1793 echo 'int main () { return 0; }' > conftest.$ac_ext
1795 if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1796 for file in conftest.*; do
1798 *.c | *.o | *.obj) ;;
1799 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1803 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1806 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1811 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1812 echo "$ac_t""${ac_cv_exeext}" 1>&6
1815 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1816 echo "configure:1817: checking for object suffix" >&5
1817 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1821 echo 'int i = 1;' > conftest.$ac_ext
1822 if { (eval echo configure:1823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1823 for ac_file in conftest.*; do
1826 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1830 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1835 echo "$ac_t""$ac_cv_objext" 1>&6
1836 OBJEXT=$ac_cv_objext
1837 ac_objext=$ac_cv_objext
1839 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1840 echo "configure:1841: checking for ANSI C header files" >&5
1841 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1853 { (eval echo configure:1854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1855 if test -z "$ac_err"; then
1857 ac_cv_header_stdc=yes
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 ac_cv_header_stdc=no
1867 if test $ac_cv_header_stdc = yes; then
1868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1875 egrep "memchr" >/dev/null 2>&1; then
1879 ac_cv_header_stdc=no
1885 if test $ac_cv_header_stdc = yes; then
1886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893 egrep "free" >/dev/null 2>&1; then
1897 ac_cv_header_stdc=no
1903 if test $ac_cv_header_stdc = yes; then
1904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1905 if test "$cross_compiling" = yes; then
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1912 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1913 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1915 int main () { int i; for (i = 0; i < 256; i++)
1916 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 ac_cv_header_stdc=no
1935 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1936 if test $ac_cv_header_stdc = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define STDC_HEADERS 1
1943 echo $ac_n "checking for working const""... $ac_c" 1>&6
1944 echo "configure:1945: checking for working const" >&5
1945 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1954 /* Ultrix mips cc rejects this. */
1955 typedef int charset[2]; const charset x;
1956 /* SunOS 4.1.1 cc rejects this. */
1957 char const *const *ccp;
1959 /* NEC SVR4.0.2 mips cc rejects this. */
1960 struct point {int x, y;};
1961 static struct point const zero = {0,0};
1962 /* AIX XL C 1.02.0.0 rejects this.
1963 It does not let you subtract one const X* pointer from another in an arm
1964 of an if-expression whose if-part is not a constant expression */
1965 const char *g = "string";
1966 ccp = &g + (g ? g-g : 0);
1967 /* HPUX 7.0 cc rejects these. */
1970 ccp = (char const *const *) p;
1971 { /* SCO 3.2v4 cc rejects this. */
1973 char const *s = 0 ? (char *) 0 : (char const *) 0;
1977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1979 const int *foo = &x[0];
1982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1983 typedef const int *iptr;
1987 { /* AIX XL C 1.02.0.0 rejects this saying
1988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1989 struct s { int j; const int *ap[3]; };
1990 struct s *b; b->j = 5;
1992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1998 if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2010 echo "$ac_t""$ac_cv_c_const" 1>&6
2011 if test $ac_cv_c_const = no; then
2012 cat >> confdefs.h <<\EOF
2018 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2019 echo "configure:2020: checking for size_t" >&5
2020 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <sys/types.h>
2032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2033 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2035 ac_cv_type_size_t=yes
2038 ac_cv_type_size_t=no
2043 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2044 if test $ac_cv_type_size_t = no; then
2045 cat >> confdefs.h <<\EOF
2046 #define size_t unsigned
2051 echo $ac_n "checking size of int""... $ac_c" 1>&6
2052 echo "configure:2053: checking size of int" >&5
2053 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 if test "$cross_compiling" = yes; then
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2065 FILE *f=fopen("conftestval", "w");
2067 fprintf(f, "%d\n", sizeof(int));
2071 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2073 ac_cv_sizeof_int=`cat conftestval`
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2084 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2085 cat >> confdefs.h <<EOF
2086 #define SIZEOF_INT $ac_cv_sizeof_int
2090 echo $ac_n "checking size of char *""... $ac_c" 1>&6
2091 echo "configure:2092: checking size of char *" >&5
2092 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 if test "$cross_compiling" = yes; then
2096 ac_cv_sizeof_char_p=4
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2104 FILE *f=fopen("conftestval", "w");
2106 fprintf(f, "%d\n", sizeof(char *));
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2112 ac_cv_sizeof_char_p=`cat conftestval`
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 ac_cv_sizeof_char_p=0
2123 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
2124 cat >> confdefs.h <<EOF
2125 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2129 echo $ac_n "checking size of long""... $ac_c" 1>&6
2130 echo "configure:2131: checking size of long" >&5
2131 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test "$cross_compiling" = yes; then
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2143 FILE *f=fopen("conftestval", "w");
2145 fprintf(f, "%d\n", sizeof(long));
2149 if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2151 ac_cv_sizeof_long=`cat conftestval`
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2162 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2163 cat >> confdefs.h <<EOF
2164 #define SIZEOF_LONG $ac_cv_sizeof_long
2168 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2169 echo "configure:2170: checking size of long long" >&5
2170 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 if test "$cross_compiling" = yes; then
2174 ac_cv_sizeof_long_long=8
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2182 FILE *f=fopen("conftestval", "w");
2184 fprintf(f, "%d\n", sizeof(long long));
2188 if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2190 ac_cv_sizeof_long_long=`cat conftestval`
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2195 ac_cv_sizeof_long_long=0
2201 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2202 cat >> confdefs.h <<EOF
2203 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2207 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2208 echo "configure:2209: checking size of size_t" >&5
2209 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 if test "$cross_compiling" = yes; then
2213 ac_cv_sizeof_size_t=4
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2221 FILE *f=fopen("conftestval", "w");
2223 fprintf(f, "%d\n", sizeof(size_t));
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2229 ac_cv_sizeof_size_t=`cat conftestval`
2231 echo "configure: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2234 ac_cv_sizeof_size_t=0
2240 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2241 cat >> confdefs.h <<EOF
2242 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2248 for ac_func in strerror bcopy memmove
2250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_func" >&5
2252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $ac_func(); below. */
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2281 eval "ac_cv_func_$ac_func=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 eval "ac_cv_func_$ac_func=no"
2291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2294 cat >> confdefs.h <<EOF
2295 #define $ac_tr_func 1
2299 echo "$ac_t""no" 1>&6
2305 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2306 echo "configure:2307: checking for pcre_compile in -lpcre" >&5
2307 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 ac_save_LIBS="$LIBS"
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char pcre_compile();
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_lib_$ac_lib_var=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_lib_$ac_lib_var=no"
2335 LIBS="$ac_save_LIBS"
2338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
2342 echo "configure:2343: checking for pcre.h" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2370 echo "$ac_t""no" 1>&6
2375 echo "$ac_t""no" 1>&6
2379 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
2380 echo "configure:2381: checking for regcomp in -lpcreposix" >&5
2381 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2386 LIBS="-lpcreposix -lpcre $LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
2415 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
2416 echo "configure:2417: checking for pcreposix.h" >&5
2417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 #include <pcreposix.h>
2425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2426 { (eval echo configure:2427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2428 if test -z "$ac_err"; then
2430 eval "ac_cv_header_$ac_safe=yes"
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2436 eval "ac_cv_header_$ac_safe=no"
2440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2444 echo "$ac_t""no" 1>&6
2449 echo "$ac_t""no" 1>&6
2453 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
2454 echo "configure:2455: checking for pcrs_compile in -lpcrs" >&5
2455 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
2456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 ac_save_LIBS="$LIBS"
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2467 char pcrs_compile();
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2475 eval "ac_cv_lib_$ac_lib_var=yes"
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 eval "ac_cv_lib_$ac_lib_var=no"
2483 LIBS="$ac_save_LIBS"
2486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
2490 echo "configure:2491: checking for pcrs.h" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 eval "ac_cv_header_$ac_safe=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_header_$ac_safe=no"
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2518 echo "$ac_t""no" 1>&6
2523 echo "$ac_t""no" 1>&6
2530 cat >> confdefs.h <<\EOF
2536 # Check whether --enable-toggle or --disable-toggle was given.
2537 if test "${enable_toggle+set}" = set; then
2538 enableval="$enable_toggle"
2539 if test $enableval = yes; then
2540 cat >> confdefs.h <<\EOF
2541 #define FEATURE_TOGGLE 1
2546 cat >> confdefs.h <<\EOF
2547 #define FEATURE_TOGGLE 1
2553 # Check whether --enable-force or --disable-force was given.
2554 if test "${enable_force+set}" = set; then
2555 enableval="$enable_force"
2556 if test $enableval = yes; then
2557 cat >> confdefs.h <<\EOF
2558 #define FEATURE_FORCE_LOAD 1
2563 cat >> confdefs.h <<\EOF
2564 #define FEATURE_FORCE_LOAD 1
2570 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2571 if test "${enable_fast_redirects+set}" = set; then
2572 enableval="$enable_fast_redirects"
2573 if test $enableval = yes; then
2574 cat >> confdefs.h <<\EOF
2575 #define FEATURE_FAST_REDIRECTS 1
2580 cat >> confdefs.h <<\EOF
2581 #define FEATURE_FAST_REDIRECTS 1
2587 # Check whether --enable-killpopup or --disable-killpopup was given.
2588 if test "${enable_killpopup+set}" = set; then
2589 enableval="$enable_killpopup"
2590 if test $enableval = yes; then
2591 cat >> confdefs.h <<\EOF
2592 #define FEATURE_KILL_POPUPS 1
2597 cat >> confdefs.h <<\EOF
2598 #define FEATURE_KILL_POPUPS 1
2604 # Check whether --enable-stats or --disable-stats was given.
2605 if test "${enable_stats+set}" = set; then
2606 enableval="$enable_stats"
2607 if test $enableval = yes; then
2608 cat >> confdefs.h <<\EOF
2609 #define FEATURE_STATISTICS 1
2614 cat >> confdefs.h <<\EOF
2615 #define FEATURE_STATISTICS 1
2621 # Check whether --enable-ie-images or --disable-ie-images was given.
2622 if test "${enable_ie_images+set}" = set; then
2623 enableval="$enable_ie_images"
2624 if test $enableval = yes; then
2625 cat >> confdefs.h <<\EOF
2626 #define FEATURE_IMAGE_DETECT_MSIE 1
2631 cat >> confdefs.h <<\EOF
2632 #define FEATURE_IMAGE_DETECT_MSIE 1
2638 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2639 if test "${enable_image_blocking+set}" = set; then
2640 enableval="$enable_image_blocking"
2641 if test $enableval = yes; then
2642 cat >> confdefs.h <<\EOF
2643 #define FEATURE_IMAGE_BLOCKING 1
2648 cat >> confdefs.h <<\EOF
2649 #define FEATURE_IMAGE_BLOCKING 1
2655 # Check whether --enable-acl-files or --disable-acl-files was given.
2656 if test "${enable_acl_files+set}" = set; then
2657 enableval="$enable_acl_files"
2658 if test $enableval = yes; then
2659 cat >> confdefs.h <<\EOF
2660 #define FEATURE_ACL 1
2665 cat >> confdefs.h <<\EOF
2666 #define FEATURE_ACL 1
2672 # Check whether --enable-trust-files or --disable-trust-files was given.
2673 if test "${enable_trust_files+set}" = set; then
2674 enableval="$enable_trust_files"
2675 if test $enableval = yes; then
2676 cat >> confdefs.h <<\EOF
2677 #define FEATURE_TRUST 1
2682 cat >> confdefs.h <<\EOF
2683 #define FEATURE_TRUST 1
2689 # Check whether --enable-jar-files or --disable-jar-files was given.
2690 if test "${enable_jar_files+set}" = set; then
2691 enableval="$enable_jar_files"
2692 if test $enableval = yes; then
2693 cat >> confdefs.h <<\EOF
2694 #define FEATURE_COOKIE_JAR 1
2699 cat >> confdefs.h <<\EOF
2700 #define FEATURE_COOKIE_JAR 1
2706 # Check whether --enable-editor or --disable-editor was given.
2707 if test "${enable_editor+set}" = set; then
2708 enableval="$enable_editor"
2709 if test $enableval = yes; then
2710 cat >> confdefs.h <<\EOF
2711 #define FEATURE_CGI_EDIT_ACTIONS 1
2716 cat >> confdefs.h <<\EOF
2717 #define FEATURE_CGI_EDIT_ACTIONS 1
2724 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2725 if test "${enable_regex_matching+set}" = set; then
2726 enableval="$enable_regex_matching"
2727 regex_matching=$enableval
2733 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2734 if test "${enable_dynamic_pcre+set}" = set; then
2735 enableval="$enable_dynamic_pcre"
2736 if test $enableval = "no"; then have_pcre=no; fi
2740 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2741 if test "${enable_dynamic_pcrs+set}" = set; then
2742 enableval="$enable_dynamic_pcrs"
2743 if test $enableval = "no"; then have_pcrs=no; fi
2748 # Is the regex URL matching based on libpcreposix, but we
2749 # don't have that library?
2751 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2752 dont_miss_pcreposix=yes
2754 dont_miss_pcreposix=no
2757 # If we have libpcre and either we also have pcreposix or
2758 # we don't need pcreposix, then link pcre dynamically; else
2759 # build it and link statically
2761 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2762 echo "using libpcre"
2767 echo "using built-in static pcre"
2769 cat >> confdefs.h <<\EOF
2770 #define STATIC_PCRE 1
2776 # If we have libpcrs and pcre is linked dynamically
2777 # then also link pcrs dynamically, else build and link
2780 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2781 echo "using libpcrs"
2785 echo "using built-in static pcrs"
2786 cat >> confdefs.h <<\EOF
2787 #define STATIC_PCRS 1
2793 # Which method should be used for URL matching?
2794 # pcre, gnu regex or prefix matching?
2796 if test $regex_matching = "gnu"; then
2797 echo "using gnu regex for URL matching"
2798 cat >> confdefs.h <<\EOF
2804 elif test $regex_matching = "pcre"; then
2805 echo "using pcre regex for URL matching"
2806 cat >> confdefs.h <<\EOF
2807 #define REGEX_PCRE 1
2812 if test $pcre_dyn = "yes"; then
2813 LIBS="$LIBS -lpcreposix"
2816 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2827 CFLAGS=$old_CFLAGS_nospecial
2831 cat >> confdefs.h <<EOF
2832 #define PID_FILE_PATH ${PID_FILE_PATH}
2839 cat > confcache <<\EOF
2840 # This file is a shell script that caches the results of configure
2841 # tests run on this system so they can be shared between configure
2842 # scripts and configure runs. It is not useful on other systems.
2843 # If it contains results you don't want to keep, you may remove or edit it.
2845 # By default, configure uses ./config.cache as the cache file,
2846 # creating it if it does not exist already. You can give configure
2847 # the --cache-file=FILE option to use a different cache file; that is
2848 # what configure does when it calls configure scripts in
2849 # subdirectories, so they share the cache.
2850 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2851 # config.status only pays attention to the cache file if you give it the
2852 # --recheck option to rerun configure.
2855 # The following way of writing the cache mishandles newlines in values,
2856 # but we know of no workaround that is simple, portable, and efficient.
2857 # So, don't put newlines in cache variables' values.
2858 # Ultrix sh set writes to stderr and can't be redirected directly,
2859 # and sets the high bit in the cache file unless we assign to the vars.
2861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2863 # `set' does not quote correctly, so add quotes (double-quote substitution
2864 # turns \\\\ into \\, and sed turns \\ into \).
2866 -e "s/'/'\\\\''/g" \
2867 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2870 # `set' quotes correctly as required by POSIX, so do not add quotes.
2871 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2874 if cmp -s $cache_file confcache; then
2877 if test -w $cache_file; then
2878 echo "updating cache $cache_file"
2879 cat confcache > $cache_file
2881 echo "not updating unwritable cache $cache_file"
2886 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2889 # Let make expand exec_prefix.
2890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2892 # Any assignment to VPATH causes Sun make to only execute
2893 # the first set of double-colon rules, so remove it if not needed.
2894 # If there is a colon in the path, we need to keep it.
2895 if test "x$srcdir" = x.; then
2896 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2899 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2901 DEFS=-DHAVE_CONFIG_H
2903 # Without the "./", some shells look in PATH for config.status.
2904 : ${CONFIG_STATUS=./config.status}
2906 echo creating $CONFIG_STATUS
2907 rm -f $CONFIG_STATUS
2908 cat > $CONFIG_STATUS <<EOF
2910 # Generated automatically by configure.
2911 # Run this file to recreate the current configuration.
2912 # This directory was configured as follows,
2913 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2915 # $0 $ac_configure_args
2917 # Compiler output produced by configure, useful for debugging
2918 # configure, is in ./config.log if it exists.
2920 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2923 case "\$ac_option" in
2924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2925 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2926 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2927 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2928 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2930 -help | --help | --hel | --he | --h)
2931 echo "\$ac_cs_usage"; exit 0 ;;
2932 *) echo "\$ac_cs_usage"; exit 1 ;;
2936 ac_given_srcdir=$srcdir
2938 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2940 cat >> $CONFIG_STATUS <<EOF
2942 # Protect against being on the right side of a sed subst in config.status.
2943 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2944 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2948 s%@CFLAGS@%$CFLAGS%g
2949 s%@CPPFLAGS@%$CPPFLAGS%g
2950 s%@CXXFLAGS@%$CXXFLAGS%g
2951 s%@FFLAGS@%$FFLAGS%g
2953 s%@LDFLAGS@%$LDFLAGS%g
2955 s%@exec_prefix@%$exec_prefix%g
2956 s%@prefix@%$prefix%g
2957 s%@program_transform_name@%$program_transform_name%g
2958 s%@bindir@%$bindir%g
2959 s%@sbindir@%$sbindir%g
2960 s%@libexecdir@%$libexecdir%g
2961 s%@datadir@%$datadir%g
2962 s%@sysconfdir@%$sysconfdir%g
2963 s%@sharedstatedir@%$sharedstatedir%g
2964 s%@localstatedir@%$localstatedir%g
2965 s%@libdir@%$libdir%g
2966 s%@includedir@%$includedir%g
2967 s%@oldincludedir@%$oldincludedir%g
2968 s%@infodir@%$infodir%g
2969 s%@mandir@%$mandir%g
2971 s%@host_alias@%$host_alias%g
2972 s%@host_cpu@%$host_cpu%g
2973 s%@host_vendor@%$host_vendor%g
2974 s%@host_os@%$host_os%g
2975 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2976 s%@VERSION_MINOR@%$VERSION_MINOR%g
2977 s%@VERSION_POINT@%$VERSION_POINT%g
2978 s%@CODE_STATUS@%$CODE_STATUS%g
2982 s%@WIN_ONLY@%$WIN_ONLY%g
2983 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2984 s%@SOCKET_LIB@%$SOCKET_LIB%g
2985 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
2986 s%@EXEEXT@%$EXEEXT%g
2987 s%@OBJEXT@%$OBJEXT%g
2988 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2989 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2990 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2991 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2992 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2993 s%@PID_FILE_PATH@%$PID_FILE_PATH%g
2994 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2999 cat >> $CONFIG_STATUS <<\EOF
3001 # Split the substitutions into bite-sized pieces for seds with
3002 # small command number limits, like on Digital OSF/1 and HP-UX.
3003 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3004 ac_file=1 # Number of current file.
3005 ac_beg=1 # First line for current file.
3006 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3009 while $ac_more_lines; do
3010 if test $ac_beg -gt 1; then
3011 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3013 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3015 if test ! -s conftest.s$ac_file; then
3017 rm -f conftest.s$ac_file
3019 if test -z "$ac_sed_cmds"; then
3020 ac_sed_cmds="sed -f conftest.s$ac_file"
3022 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3024 ac_file=`expr $ac_file + 1`
3026 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3029 if test -z "$ac_sed_cmds"; then
3034 cat >> $CONFIG_STATUS <<EOF
3036 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
3038 cat >> $CONFIG_STATUS <<\EOF
3039 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3042 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3043 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3044 *) ac_file_in="${ac_file}.in" ;;
3047 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3049 # Remove last slash and all that follows it. Not all systems have dirname.
3050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3052 # The file is in a subdirectory.
3053 test ! -d "$ac_dir" && mkdir "$ac_dir"
3054 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3055 # A "../" for each directory in $ac_dir_suffix.
3056 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3058 ac_dir_suffix= ac_dots=
3061 case "$ac_given_srcdir" in
3063 if test -z "$ac_dots"; then top_srcdir=.
3064 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3065 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3067 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3068 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3072 echo creating "$ac_file"
3074 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3076 *Makefile*) ac_comsub="1i\\
3077 # $configure_input" ;;
3081 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3083 s%@configure_input@%$configure_input%g
3084 s%@srcdir@%$srcdir%g
3085 s%@top_srcdir@%$top_srcdir%g
3086 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3090 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3091 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3093 # ac_d sets the value in "#define NAME VALUE" lines.
3094 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3095 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3098 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3099 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3100 ac_uB='\([ ]\)%\1#\2define\3'
3103 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3104 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3105 ac_eB='$%\1#\2define\3'
3109 if test "${CONFIG_HEADERS+set}" != set; then
3111 cat >> $CONFIG_STATUS <<EOF
3112 CONFIG_HEADERS="config.h"
3114 cat >> $CONFIG_STATUS <<\EOF
3116 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3119 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3120 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3121 *) ac_file_in="${ac_file}.in" ;;
3124 echo creating $ac_file
3126 rm -f conftest.frag conftest.in conftest.out
3127 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3128 cat $ac_file_inputs > conftest.in
3132 # Transform confdefs.h into a sed script conftest.vals that substitutes
3133 # the proper values into config.h.in to produce config.h. And first:
3134 # Protect against being on the right side of a sed subst in config.status.
3135 # Protect against being in an unquoted here document in config.status.
3137 cat > conftest.hdr <<\EOF
3140 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3144 sed -n -f conftest.hdr confdefs.h > conftest.vals
3147 # This sed command replaces #undef with comments. This is necessary, for
3148 # example, in the case of _POSIX_SOURCE, which is predefined and required
3149 # on some systems where configure will not decide to define it.
3150 cat >> conftest.vals <<\EOF
3151 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3154 # Break up conftest.vals because some shells have a limit on
3155 # the size of here documents, and old seds have small limits too.
3160 ac_lines=`grep -c . conftest.vals`
3161 # grep -c gives empty output for an empty file on some AIX systems.
3162 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3163 # Write a limited-size here document to conftest.frag.
3164 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3165 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3167 sed -f conftest.frag conftest.in > conftest.out
3169 mv conftest.out conftest.in
3171 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3173 mv conftest.tail conftest.vals
3177 cat >> $CONFIG_STATUS <<\EOF
3178 rm -f conftest.frag conftest.h
3179 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3180 cat conftest.in >> conftest.h
3182 if cmp -s $ac_file conftest.h 2>/dev/null; then
3183 echo "$ac_file is unchanged"
3186 # Remove last slash and all that follows it. Not all systems have dirname.
3187 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3188 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3189 # The file is in a subdirectory.
3190 test ! -d "$ac_dir" && mkdir "$ac_dir"
3193 mv conftest.h $ac_file
3198 cat >> $CONFIG_STATUS <<EOF
3201 cat >> $CONFIG_STATUS <<\EOF
3205 chmod +x $CONFIG_STATUS
3206 rm -fr confdefs* $ac_clean_files
3207 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1