3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/squid
16 --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea"
18 --enable-gnuregex Compile GNUregex"
20 --enable-xmalloc-debug Do some simple malloc debugging"
22 --enable-xmalloc-debug-trace
23 Detailed trace of memory allocations"
25 --enable-xmalloc-statistics
26 Show malloc statistics in status page"
28 --enable-carp Enable CARP support"
30 --enable-async-io Do ASYNC disk I/O using threads"
32 --enable-icmp Enable ICMP pinging"
34 --enable-delay-pools Enable delay pools to limit bandwith usage"
36 --enable-mem-gen-trace Do trace of memory stuff"
38 --enable-useragent-log Enable logging of User-Agent header"
40 --enable-kill-parent-hack
41 Kill parent on shutdown"
43 --enable-snmp Enable SNMP monitoring"
45 --enable-time-hack Update internal timestamp only once per second"
47 --enable-cachemgr-hostname[=hostname]
48 Make cachemgr.cgi default to this host"
50 --enable-arp-acl Enable use of ARP ACL lists (ether address)"
52 --enable-htcp Enable HTCP protocol"
54 --enable-forw-via-db Enable Forw/Via database"
56 --enable-cache-digests Use Cache Digests
57 see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html"
59 --enable-err-language=lang
60 Select language for Error pages (see errors dir) "
62 --enable-poll Enable poll() instead of select(). Normally poll
63 is preferred over select, but configure knows poll
64 is broken on some platforms. If you think you are
65 smarter than the configure script, you may enable
66 poll with this option.
69 --disable-http-violations
70 This allows you to remove code which is known to
71 violate the HTTP protocol specification.
74 --enable-ipf-transparent
75 Enable Transparent Proxy support for systems
76 using IP-Filter network address redirection.
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file
=.
/config.cache
92 program_transform_name
=s
,x
,x
,
100 bindir
='${exec_prefix}/bin'
101 sbindir
='${exec_prefix}/sbin'
102 libexecdir
='${exec_prefix}/libexec'
103 datadir
='${prefix}/share'
104 sysconfdir
='${prefix}/etc'
105 sharedstatedir
='${prefix}/com'
106 localstatedir
='${prefix}/var'
107 libdir
='${exec_prefix}/lib'
108 includedir
='${prefix}/include'
109 oldincludedir
='/usr/include'
110 infodir
='${prefix}/info'
111 mandir
='${prefix}/man'
113 # Initialize some other variables.
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
141 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
142 bindir
="$ac_optarg" ;;
144 -build |
--build |
--buil |
--bui |
--bu)
146 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
147 build
="$ac_optarg" ;;
149 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
150 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
151 ac_prev
=cache_file
;;
152 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
153 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
154 cache_file
="$ac_optarg" ;;
156 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
158 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
160 datadir
="$ac_optarg" ;;
162 -disable-* |
--disable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* |
--enable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
185 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
186 |
--exec |
--exe |
--ex)
187 ac_prev
=exec_prefix
;;
188 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
189 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
190 |
--exec=* |
--exe=* |
--ex=*)
191 exec_prefix
="$ac_optarg" ;;
193 -gas |
--gas |
--ga |
--g)
194 # Obsolete; use --with-gas.
197 -help |
--help |
--hel |
--he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host |
--host |
--hos |
--ho)
254 -host=* |
--host=* |
--hos=* |
--ho=*)
257 -includedir |
--includedir |
--includedi |
--included |
--include \
258 |
--includ |
--inclu |
--incl |
--inc)
259 ac_prev
=includedir
;;
260 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
261 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
262 includedir
="$ac_optarg" ;;
264 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
266 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
267 infodir
="$ac_optarg" ;;
269 -libdir |
--libdir |
--libdi |
--libd)
271 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
272 libdir
="$ac_optarg" ;;
274 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
275 |
--libexe |
--libex |
--libe)
276 ac_prev
=libexecdir
;;
277 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
278 |
--libexe=* |
--libex=* |
--libe=*)
279 libexecdir
="$ac_optarg" ;;
281 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
282 |
--localstate |
--localstat |
--localsta |
--localst \
283 |
--locals |
--local |
--loca |
--loc |
--lo)
284 ac_prev
=localstatedir
;;
285 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
286 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
287 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
288 localstatedir
="$ac_optarg" ;;
290 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
292 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
293 mandir
="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
303 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
304 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
307 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
308 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
309 |
--oldin |
--oldi |
--old |
--ol |
--o)
310 ac_prev
=oldincludedir
;;
311 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
312 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
313 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
314 oldincludedir
="$ac_optarg" ;;
316 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
318 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
319 prefix
="$ac_optarg" ;;
321 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
322 |
--program-pre |
--program-pr |
--program-p)
323 ac_prev
=program_prefix
;;
324 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
325 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
326 program_prefix
="$ac_optarg" ;;
328 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
329 |
--program-suf |
--program-su |
--program-s)
330 ac_prev
=program_suffix
;;
331 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
332 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
333 program_suffix
="$ac_optarg" ;;
335 -program-transform-name |
--program-transform-name \
336 |
--program-transform-nam |
--program-transform-na \
337 |
--program-transform-n |
--program-transform- \
338 |
--program-transform |
--program-transfor \
339 |
--program-transfo |
--program-transf \
340 |
--program-trans |
--program-tran \
341 |
--progr-tra |
--program-tr |
--program-t)
342 ac_prev
=program_transform_name
;;
343 -program-transform-name=* |
--program-transform-name=* \
344 |
--program-transform-nam=* |
--program-transform-na=* \
345 |
--program-transform-n=* |
--program-transform-=* \
346 |
--program-transform=* |
--program-transfor=* \
347 |
--program-transfo=* |
--program-transf=* \
348 |
--program-trans=* |
--program-tran=* \
349 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
350 program_transform_name
="$ac_optarg" ;;
352 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
353 |
-silent |
--silent |
--silen |
--sile |
--sil)
356 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
358 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
360 sbindir
="$ac_optarg" ;;
362 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
363 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
364 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
366 ac_prev
=sharedstatedir
;;
367 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
368 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
369 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
371 sharedstatedir
="$ac_optarg" ;;
373 -site |
--site |
--sit)
375 -site=* |
--site=* |
--sit=*)
378 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
380 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
381 srcdir
="$ac_optarg" ;;
383 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
384 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
385 ac_prev
=sysconfdir
;;
386 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
387 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
388 sysconfdir
="$ac_optarg" ;;
390 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
392 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
393 target
="$ac_optarg" ;;
395 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
398 -version |
--version |
--versio |
--versi |
--vers)
399 echo "configure generated by autoconf version 2.12"
403 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* |
--without-*)
416 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
429 |
--x-incl |
--x-inc |
--x-in |
--x-i)
430 ac_prev
=x_includes
;;
431 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
432 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
433 x_includes
="$ac_optarg" ;;
435 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
436 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
437 ac_prev
=x_libraries
;;
438 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
439 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
440 x_libraries
="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE
; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
491 |
--no-cr |
--no-c) ;;
492 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
493 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
494 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest
* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file
=src
/main.c
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted
=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted
=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE
; then
545 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file
in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp
='$CPP $CPPFLAGS'
568 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling
=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
581 ac_n
= ac_c
='\c' ac_t
=
586 # From configure.in Revision: 1.155
588 for ac_dir
in cfgaux
$srcdir/cfgaux
; do
589 if test -f $ac_dir/install-sh
; then
591 ac_install_sh
="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh
; then
595 ac_install_sh
="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in cfgaux $srcdir/cfgaux" 1>&2; exit 1; }
602 ac_config_guess
=$ac_aux_dir/config.guess
603 ac_config_sub
=$ac_aux_dir/config.sub
604 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
608 # Make sure we can run config.sub.
609 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
610 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613 echo $ac_n "checking host system type""... $ac_c" 1>&6
614 echo "configure:615: checking host system type" >&5
617 case "$host_alias" in
621 if host_alias
=`$ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624 *) host_alias
=$nonopt ;;
628 host=`$ac_config_sub $host_alias`
629 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$host" 1>&6
636 REGEXLIB
='' # -lregex
637 LIBREGEX
='' # libregex.a
639 if test "$libexecdir" = '${exec_prefix}/libexec'; then
640 libexecdir
='${bindir}'
641 localstatedir
='${prefix}'
658 if test -z "$CACHE_HTTP_PORT"; then
659 CACHE_HTTP_PORT
="3128"
661 if test -z "$CACHE_ICP_PORT"; then
662 CACHE_ICP_PORT
="3130"
668 cat >> confdefs.h
<<EOF
669 #define CONFIG_HOST_TYPE "$host"
673 if test -z "$LDFLAGS"; then
677 PRESET_CFLAGS
="$CFLAGS"
679 # Extract the first word of "gcc", so it can be a program name with args.
680 set dummy gcc
; ac_word
=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 if test -n "$CC"; then
687 ac_cv_prog_CC
="$CC" # Let the user override the test.
689 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
690 for ac_dir
in $PATH; do
691 test -z "$ac_dir" && ac_dir
=.
692 if test -f $ac_dir/$ac_word; then
701 if test -n "$CC"; then
702 echo "$ac_t""$CC" 1>&6
704 echo "$ac_t""no" 1>&6
707 if test -z "$CC"; then
708 # Extract the first word of "cc", so it can be a program name with args.
709 set dummy cc
; ac_word
=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 if test -n "$CC"; then
716 ac_cv_prog_CC
="$CC" # Let the user override the test.
718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
720 for ac_dir
in $PATH; do
721 test -z "$ac_dir" && ac_dir
=.
722 if test -f $ac_dir/$ac_word; then
723 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
732 if test $ac_prog_rejected = yes; then
733 # We found a bogon in the path, so make sure we never use it.
734 set dummy
$ac_cv_prog_CC
736 if test $# -gt 0; then
737 # We chose a different compiler from the bogus one.
738 # However, it has the same basename, so the bogon will be chosen
739 # first if we set CC to just the basename; use the full file name.
741 set dummy
"$ac_dir/$ac_word" "$@"
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
752 echo "$ac_t""no" 1>&6
755 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
758 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
759 echo "configure:760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp
='$CPP $CPPFLAGS'
764 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling
=$ac_cv_prog_cc_cross
768 cat > conftest.
$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
773 if { (eval echo configure
:774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
774 ac_cv_prog_cc_works
=yes
775 # If we can't run a trivial program, we are probably using a cross compiler.
776 if (.
/conftest
; exit) 2>/dev
/null
; then
777 ac_cv_prog_cc_cross
=no
779 ac_cv_prog_cc_cross
=yes
782 echo "configure: failed program was:" >&5
783 cat conftest.
$ac_ext >&5
784 ac_cv_prog_cc_works
=no
788 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
789 if test $ac_cv_prog_cc_works = no
; then
790 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
792 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
793 echo "configure:794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
794 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
795 cross_compiling
=$ac_cv_prog_cc_cross
797 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
798 echo "configure:799: checking whether we are using GNU C" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 cat > conftest.c
<<EOF
807 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
814 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
816 if test $ac_cv_prog_gcc = yes; then
818 ac_test_CFLAGS
="${CFLAGS+set}"
819 ac_save_CFLAGS
="$CFLAGS"
821 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
822 echo "configure:823: checking whether ${CC-cc} accepts -g" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 echo 'void f(){}' > conftest.c
827 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
836 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
837 if test "$ac_test_CFLAGS" = set; then
838 CFLAGS
="$ac_save_CFLAGS"
839 elif test $ac_cv_prog_cc_g = yes; then
846 test "${CFLAGS+set}" = set || CFLAGS
="-g"
852 CC
="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
856 if test -z "$PRESET_CFLAGS"; then
857 if test "$GCC" = "yes"; then
860 # sunos has too many warnings for this to be useful
864 # Motorola cc/ld does not like -02 but is ok on -O
865 CFLAGS
=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
868 CFLAGS
="$CFLAGS -Wall"
874 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
875 CFLAGS
="$CFLAGS -n32 -mips4 -O3 -OPT:Olimit=0:space=OFF \
876 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 \
877 -Wl,-woff,85,-woff,84,-woff,134 \
878 -nostdinc -I/usr/include -D_BSD_SIGNALS"
881 # Mogul says DEC compilers take both -g and -O2
890 if test -z "$PRESET_LDFLAGS"; then
891 if test "$GCC" = "yes"; then
900 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
901 LDFLAGS
="-n32 -mips4 -nostdlib -L/usr/lib32"
907 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
908 if test "${enable_dlmalloc+set}" = set; then
909 enableval
="$enable_dlmalloc"
911 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
912 # Ok. dlmalloc was enabled before, but state may be changed.
913 # we have to test these again
914 unset ac_cv_func_mallinfo
915 unset ac_cv_func_mallocblksize
916 unset ac_cv_func_free
917 unset ac_cv_func_realloc
918 unset ac_cv_func_memalign
919 unset ac_cv_func_valloc
920 unset ac_cv_func_pvalloc
921 unset ac_cv_func_calloc
922 unset ac_cv_func_cfree
923 unset ac_cv_func_malloc_trim
924 unset ac_cv_func_malloc_usable_size
925 unset ac_cv_func_malloc_stats
926 unset ac_cv_func_mallinfo
927 unset ac_cv_func_mallopt
928 unset ac_cv_lib_gnumalloc
929 unset ac_cv_lib_malloc
930 unset ac_cv_enabled_dlmalloc
934 LIBDLMALLOC
="libdlmalloc.a"
935 LIB_MALLOC
="-L../lib -ldlmalloc"
936 ac_cv_func_mallinfo
="yes"
937 ac_cv_func_mallocblksize
="no"
938 ac_cv_func_free
="yes"
939 ac_cv_func_realloc
="yes"
940 ac_cv_func_memalign
="yes"
941 ac_cv_func_valloc
="yes"
942 ac_cv_func_pvalloc
="yes"
943 ac_cv_func_calloc
="yes"
944 ac_cv_func_cfree
="yes"
945 ac_cv_func_malloc_trim
="yes"
946 ac_cv_func_malloc_usable_size
="yes"
947 ac_cv_func_malloc_stats
="yes"
948 ac_cv_func_mallinfo
="yes"
949 ac_cv_func_mallopt
="yes"
950 ac_cv_lib_gnumalloc
="no"
951 ac_cv_lib_malloc
="no"
952 ac_cv_enabled_dlmalloc
="yes"
953 echo "dlmalloc build enabled"
956 # Disabled explicitly.
957 echo "dlmalloc disabled."
960 # Use already installed dlmalloc library.
961 LIB_MALLOC
="${enableval}"
962 ac_cv_func_mallinfo
="yes"
963 ac_cv_func_mallocblksize
="no"
964 ac_cv_func_free
="yes"
965 ac_cv_func_realloc
="yes"
966 ac_cv_func_memalign
="yes"
967 ac_cv_func_valloc
="yes"
968 ac_cv_func_pvalloc
="yes"
969 ac_cv_func_calloc
="yes"
970 ac_cv_func_cfree
="yes"
971 ac_cv_func_malloc_trim
="yes"
972 ac_cv_func_malloc_usable_size
="yes"
973 ac_cv_func_malloc_stats
="yes"
974 ac_cv_func_mallinfo
="yes"
975 ac_cv_func_mallopt
="yes"
976 ac_cv_lib_gnumalloc
="no"
977 ac_cv_lib_malloc
="no"
978 ac_cv_enabled_dlmalloc
="yes"
979 echo "Use installed dlmalloc."
985 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
986 # Ok. dlmalloc was enabled before, but now disabled.
987 # we have to test these again
988 unset ac_cv_func_mallinfo
989 unset ac_cv_func_mallocblksize
990 unset ac_cv_func_free
991 unset ac_cv_func_realloc
992 unset ac_cv_func_memalign
993 unset ac_cv_func_valloc
994 unset ac_cv_func_pvalloc
995 unset ac_cv_func_calloc
996 unset ac_cv_func_cfree
997 unset ac_cv_func_malloc_trim
998 unset ac_cv_func_malloc_usable_size
999 unset ac_cv_func_malloc_stats
1000 unset ac_cv_func_mallinfo
1001 unset ac_cv_func_mallopt
1002 unset ac_cv_lib_gnumalloc
1003 unset ac_cv_lib_malloc
1004 unset ac_cv_enabled_dlmalloc
1012 # Check whether --enable-gnuregex or --disable-gnuregex was given.
1013 if test "${enable_gnuregex+set}" = set; then
1014 enableval
="$enable_gnuregex"
1015 USE_GNUREGEX
=$enableval
1019 # Check whether --enable-xmalloc_debug or --disable-xmalloc_debug was given.
1020 if test "${enable_xmalloc_debug+set}" = set; then
1021 enableval
="$enable_xmalloc_debug"
1022 if test "$enableval" = "yes" ; then
1023 echo "Malloc debugging enabled"
1024 cat >> confdefs.h
<<\EOF
1025 #define XMALLOC_DEBUG 1
1033 # Check whether --enable-xmalloc_debug_trace or --disable-xmalloc_debug_trace was given.
1034 if test "${enable_xmalloc_debug_trace+set}" = set; then
1035 enableval
="$enable_xmalloc_debug_trace"
1036 if test "$enableval" = "yes" ; then
1037 echo "Malloc debug trace enabled"
1038 cat >> confdefs.h
<<\EOF
1039 #define XMALLOC_TRACE 1
1042 cat >> confdefs.h
<<\EOF
1043 #define XMALLOC_DEBUG 1
1051 # Check whether --enable-xmalloc_statistics or --disable-xmalloc_statistics was given.
1052 if test "${enable_xmalloc_statistics+set}" = set; then
1053 enableval
="$enable_xmalloc_statistics"
1054 if test "$enableval" = "yes" ; then
1055 echo "Malloc statistics enabled"
1056 cat >> confdefs.h
<<\EOF
1057 #define XMALLOC_STATISTICS 1
1065 # Check whether --enable-carp or --disable-carp was given.
1066 if test "${enable_carp+set}" = set; then
1067 enableval
="$enable_carp"
1068 if test "$enableval" = "yes" ; then
1069 echo "CARP support enabled"
1070 cat >> confdefs.h
<<\EOF
1079 # Check whether --enable-async_io or --disable-async_io was given.
1080 if test "${enable_async_io+set}" = set; then
1081 enableval
="$enable_async_io"
1082 if test "$enableval" = "yes" ; then
1083 echo "Async I/O enabled"
1084 cat >> confdefs.h
<<\EOF
1085 #define USE_ASYNC_IO 1
1088 ASYNC_OBJS
='$(ASYNC_OBJS)'
1089 SQUID_PTHREAD_LIB
='$(PTHREADLIB)'
1090 CFLAGS
="$CFLAGS -D_REENTRANT"
1098 # Check whether --enable-icmp or --disable-icmp was given.
1099 if test "${enable_icmp+set}" = set; then
1100 enableval
="$enable_icmp"
1101 if test "$enableval" = "yes" ; then
1103 cat >> confdefs.h
<<\EOF
1112 # Check whether --enable-delay_pools or --disable-delay_pools was given.
1113 if test "${enable_delay_pools+set}" = set; then
1114 enableval
="$enable_delay_pools"
1115 if test "$enableval" = "yes" ; then
1116 echo "Delay pools enabled"
1117 DELAY_OBJS
='$(DELAY_OBJS)'
1118 cat >> confdefs.h
<<\EOF
1119 #define DELAY_POOLS 1
1128 # Check whether --enable-mem-gen-trace or --disable-mem-gen-trace was given.
1129 if test "${enable_mem_gen_trace+set}" = set; then
1130 enableval
="$enable_mem_gen_trace"
1131 if test "$enableval" = "yes" ; then
1132 echo "Memory trace (to file) enabled"
1133 cat >> confdefs.h
<<\EOF
1134 #define MEM_GEN_TRACE 1
1142 # Check whether --enable-useragent_log or --disable-useragent_log was given.
1143 if test "${enable_useragent_log+set}" = set; then
1144 enableval
="$enable_useragent_log"
1145 if test "$enableval" = "yes" ; then
1146 echo "User-Agent logging enabled"
1147 cat >> confdefs.h
<<\EOF
1148 #define USE_USERAGENT_LOG 1
1156 # Check whether --enable-kill_parent_hack or --disable-kill_parent_hack was given.
1157 if test "${enable_kill_parent_hack+set}" = set; then
1158 enableval
="$enable_kill_parent_hack"
1159 if test "$enableval" = "yes" ; then
1160 echo "Kill parent on shutdown"
1161 cat >> confdefs.h
<<\EOF
1162 #define KILL_PARENT_OPT 1
1170 # Check whether --enable-snmp or --disable-snmp was given.
1171 if test "${enable_snmp+set}" = set; then
1172 enableval
="$enable_snmp"
1173 if test "$enableval" = "yes" ; then
1174 echo "SNMP monitoring enabled"
1175 cat >> confdefs.h
<<\EOF
1176 #define SQUID_SNMP 1
1179 SNMPLIB
='-L../snmplib -lsnmp'
1180 SNMP_OBJS
='$(SNMP_OBJS)'
1181 SNMP_MAKEFILE
=.
/snmplib
/Makefile
1191 # Check whether --enable-time_hack or --disable-time_hack was given.
1192 if test "${enable_time_hack+set}" = set; then
1193 enableval
="$enable_time_hack"
1194 if test "$enableval" = "yes" ; then
1195 echo "Update internal timestamp only once per second"
1196 cat >> confdefs.h
<<\EOF
1197 #define ALARM_UPDATES_TIME 1
1205 # Check whether --enable-cachemgr_hostname or --disable-cachemgr_hostname was given.
1206 if test "${enable_cachemgr_hostname+set}" = set; then
1207 enableval
="$enable_cachemgr_hostname"
1210 cat >> confdefs.h
<<\EOF
1211 #define CACHEMGR_HOSTNAME getfullhostname()
1214 echo "Cachemgr default hostname == host where cachemgr runs"
1220 cat >> confdefs.h
<<EOF
1221 #define CACHEMGR_HOSTNAME "${enableval}"
1224 echo "Cachemgr default hostname set to ${enableval}"
1231 # Check whether --enable-arp_acl or --disable-arp_acl was given.
1232 if test "${enable_arp_acl+set}" = set; then
1233 enableval
="$enable_arp_acl"
1234 if test "$enableval" = "yes" ; then
1235 echo "ARP ACL lists enabled (ether address)"
1240 echo "WARNING: ARP ACL support is only currently supported on Linux"
1241 echo " ethernet interfaces, probably won't work on $host."
1245 cat >> confdefs.h
<<\EOF
1246 #define USE_ARP_ACL 1
1254 # Check whether --enable-htcp or --disable-htcp was given.
1255 if test "${enable_htcp+set}" = set; then
1256 enableval
="$enable_htcp"
1257 if test "$enableval" = "yes" ; then
1259 HTCP_OBJS
='$(HTCP_OBJS)'
1260 cat >> confdefs.h
<<\EOF
1270 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
1271 if test "${enable_forw_via_db+set}" = set; then
1272 enableval
="$enable_forw_via_db"
1273 if test "$enableval" = "yes" ; then
1274 echo "FORW-VIA enabled"
1275 cat >> confdefs.h
<<\EOF
1276 #define FORW_VIA_DB 1
1284 # Check whether --enable-cache-digests or --disable-cache-digests was given.
1285 if test "${enable_cache_digests+set}" = set; then
1286 enableval
="$enable_cache_digests"
1287 if test "$enableval" = "yes" ; then
1288 echo "USE_CACHE_DIGESTS enabled"
1289 cat >> confdefs.h
<<\EOF
1290 #define USE_CACHE_DIGESTS 1
1298 # Check whether --enable-err-language or --disable-err-language was given.
1299 if test "${enable_err_language+set}" = set; then
1300 enableval
="$enable_err_language"
1302 if test -d errors
/$enableval; then
1303 ERR_LANGUAGE
=$enableval
1305 echo "ERROR! Unknown language $enableval, see errors/"
1310 ERR_LANGUAGE
="English"
1315 # Check whether --enable-poll or --disable-poll was given.
1316 if test "${enable_poll+set}" = set; then
1317 enableval
="$enable_poll"
1318 if test "$enableval" = "yes" ; then
1319 echo "Forcing poll() to be enabled"
1320 ac_cv_func_poll
='yes'
1326 # Check whether --enable-http-violations or --disable-http-violations was given.
1327 if test "${enable_http_violations+set}" = set; then
1328 enableval
="$enable_http_violations"
1329 if test "$enableval" = "no" ; then
1330 echo "Disabling HTTP Violations"
1331 cat >> confdefs.h
<<\EOF
1332 #define HTTP_VIOLATIONS 0
1336 cat >> confdefs.h
<<\EOF
1337 #define HTTP_VIOLATIONS 1
1345 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
1346 if test "${enable_ipf_transparent+set}" = set; then
1347 enableval
="$enable_ipf_transparent"
1348 if test "$enableval" = "yes" ; then
1349 echo "IP-Filter Transparent Proxy enabled"
1350 cat >> confdefs.h
<<\EOF
1351 #define IPF_TRANSPARENT 1
1354 IPF_TRANSPARENT
="yes"
1360 # Force some compilers to use ANSI features
1364 if test "$ac_cv_prog_CC" = "cc" ; then
1365 echo "adding '-std1' to cc args for $host"
1372 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1373 echo "configure:1374: checking how to run the C preprocessor" >&5
1374 # On Suns, sometimes $CPP names a directory.
1375 if test -n "$CPP" && test -d "$CPP"; then
1378 if test -z "$CPP"; then
1379 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 # This must be in double quotes, not single quotes, because CPP may get
1383 # substituted into the Makefile and "${CC-cc}" will confuse make.
1385 # On the NeXT, cc -E runs the code through the compiler's parser,
1386 # not just through cpp.
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1394 { (eval echo configure
:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1395 ac_err
=`grep -v '^ *+' conftest.out`
1396 if test -z "$ac_err"; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1403 CPP
="${CC-cc} -E -traditional-cpp"
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure
:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err
=`grep -v '^ *+' conftest.out`
1413 if test -z "$ac_err"; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1425 ac_cv_prog_CPP
="$CPP"
1427 CPP
="$ac_cv_prog_CPP"
1429 ac_cv_prog_CPP
="$CPP"
1431 echo "$ac_t""$CPP" 1>&6
1433 # Find a good install program. We prefer a C program (faster),
1434 # so one script is as good as another. But avoid the broken or
1435 # incompatible versions:
1436 # SysV /etc/install, /usr/sbin/install
1437 # SunOS /usr/etc/install
1438 # IRIX /sbin/install
1440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1442 # ./install, which can be erroneously created by make from ./install.sh.
1443 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1444 echo "configure:1445: checking for a BSD compatible install" >&5
1445 if test -z "$INSTALL"; then
1446 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1450 for ac_dir
in $PATH; do
1451 # Account for people who put trailing slashes in PATH elements.
1453 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1455 # OSF1 and SCO ODT 3.0 have their own names for install.
1456 for ac_prog
in ginstall installbsd scoinst
install; do
1457 if test -f $ac_dir/$ac_prog; then
1458 if test $ac_prog = install &&
1459 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1460 # AIX install. It has an incompatible calling convention.
1461 # OSF/1 installbsd also uses dspmsg, but is usable.
1464 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1475 if test "${ac_cv_path_install+set}" = set; then
1476 INSTALL
="$ac_cv_path_install"
1478 # As a last resort, use the slow shell script. We don't cache a
1479 # path for INSTALL within a source directory, because that will
1480 # break other packages using the cache if that directory is
1481 # removed, or if the path is relative.
1482 INSTALL
="$ac_install_sh"
1485 echo "$ac_t""$INSTALL" 1>&6
1487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1488 # It thinks the first close brace ends the variable substitution.
1489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1491 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1493 # Extract the first word of "ranlib", so it can be a program name with args.
1494 set dummy ranlib
; ac_word
=$2
1495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_word" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 if test -n "$RANLIB"; then
1501 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1504 for ac_dir
in $PATH; do
1505 test -z "$ac_dir" && ac_dir
=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_RANLIB
="ranlib"
1512 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1515 RANLIB
="$ac_cv_prog_RANLIB"
1516 if test -n "$RANLIB"; then
1517 echo "$ac_t""$RANLIB" 1>&6
1519 echo "$ac_t""no" 1>&6
1522 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether ln -s works" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1528 if ln -s X conftestdata
2>/dev
/null
1531 ac_cv_prog_LN_S
="ln -s"
1536 LN_S
="$ac_cv_prog_LN_S"
1537 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1538 echo "$ac_t""yes" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 # Extract the first word of "sh", so it can be a program name with args.
1544 set dummy sh
; ac_word
=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_cv_path_SH
="$SH" # Let the user override the test with a path.
1555 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1556 for ac_dir
in $PATH; do
1557 test -z "$ac_dir" && ac_dir
=.
1558 if test -f $ac_dir/$ac_word; then
1559 ac_cv_path_SH
="$ac_dir/$ac_word"
1564 test -z "$ac_cv_path_SH" && ac_cv_path_SH
="/bin/sh"
1569 if test -n "$SH"; then
1570 echo "$ac_t""$SH" 1>&6
1572 echo "$ac_t""no" 1>&6
1575 # Extract the first word of "false", so it can be a program name with args.
1576 set dummy false
; ac_word
=$2
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_word" >&5
1579 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1584 ac_cv_path_FALSE
="$FALSE" # Let the user override the test with a path.
1587 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1588 for ac_dir
in $PATH; do
1589 test -z "$ac_dir" && ac_dir
=.
1590 if test -f $ac_dir/$ac_word; then
1591 ac_cv_path_FALSE
="$ac_dir/$ac_word"
1596 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE
="/usr/bin/false"
1600 FALSE
="$ac_cv_path_FALSE"
1601 if test -n "$FALSE"; then
1602 echo "$ac_t""$FALSE" 1>&6
1604 echo "$ac_t""no" 1>&6
1607 # Extract the first word of "true", so it can be a program name with args.
1608 set dummy true
; ac_word
=$2
1609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_word" >&5
1611 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1616 ac_cv_path_TRUE
="$TRUE" # Let the user override the test with a path.
1619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1620 for ac_dir
in $PATH; do
1621 test -z "$ac_dir" && ac_dir
=.
1622 if test -f $ac_dir/$ac_word; then
1623 ac_cv_path_TRUE
="$ac_dir/$ac_word"
1628 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE
="/usr/bin/true"
1632 TRUE
="$ac_cv_path_TRUE"
1633 if test -n "$TRUE"; then
1634 echo "$ac_t""$TRUE" 1>&6
1636 echo "$ac_t""no" 1>&6
1639 # Extract the first word of "rm", so it can be a program name with args.
1640 set dummy
rm; ac_word
=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1648 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1652 for ac_dir
in $PATH; do
1653 test -z "$ac_dir" && ac_dir
=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_path_RM
="$ac_dir/$ac_word"
1660 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="$FALSE"
1665 if test -n "$RM"; then
1666 echo "$ac_t""$RM" 1>&6
1668 echo "$ac_t""no" 1>&6
1671 # Extract the first word of "mv", so it can be a program name with args.
1672 set dummy
mv; ac_word
=$2
1673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1674 echo "configure:1675: checking for $ac_word" >&5
1675 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1680 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
1683 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1684 for ac_dir
in $PATH; do
1685 test -z "$ac_dir" && ac_dir
=.
1686 if test -f $ac_dir/$ac_word; then
1687 ac_cv_path_MV
="$ac_dir/$ac_word"
1692 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="$FALSE"
1697 if test -n "$MV"; then
1698 echo "$ac_t""$MV" 1>&6
1700 echo "$ac_t""no" 1>&6
1703 # Extract the first word of "mkdir", so it can be a program name with args.
1704 set dummy mkdir
; ac_word
=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1712 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
1715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1716 for ac_dir
in $PATH; do
1717 test -z "$ac_dir" && ac_dir
=.
1718 if test -f $ac_dir/$ac_word; then
1719 ac_cv_path_MKDIR
="$ac_dir/$ac_word"
1724 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="$FALSE"
1728 MKDIR
="$ac_cv_path_MKDIR"
1729 if test -n "$MKDIR"; then
1730 echo "$ac_t""$MKDIR" 1>&6
1732 echo "$ac_t""no" 1>&6
1735 # Extract the first word of "ln", so it can be a program name with args.
1736 set dummy
ln; ac_word
=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1744 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
1747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1748 for ac_dir
in $PATH; do
1749 test -z "$ac_dir" && ac_dir
=.
1750 if test -f $ac_dir/$ac_word; then
1751 ac_cv_path_LN
="$ac_dir/$ac_word"
1756 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="cp"
1761 if test -n "$LN"; then
1762 echo "$ac_t""$LN" 1>&6
1764 echo "$ac_t""no" 1>&6
1767 # Extract the first word of "perl", so it can be a program name with args.
1768 set dummy perl
; ac_word
=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5
1771 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1776 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1780 for ac_dir
in $PATH; do
1781 test -z "$ac_dir" && ac_dir
=.
1782 if test -f $ac_dir/$ac_word; then
1783 ac_cv_path_PERL
="$ac_dir/$ac_word"
1788 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="/usr/local/bin/perl"
1792 PERL
="$ac_cv_path_PERL"
1793 if test -n "$PERL"; then
1794 echo "$ac_t""$PERL" 1>&6
1796 echo "$ac_t""no" 1>&6
1799 # Extract the first word of "makedepend", so it can be a program name with args.
1800 set dummy makedepend
; ac_word
=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1803 if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPEND'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 case "$MAKEDEPEND" in
1808 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
1811 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1812 for ac_dir
in $PATH; do
1813 test -z "$ac_dir" && ac_dir
=.
1814 if test -f $ac_dir/$ac_word; then
1815 ac_cv_path_MAKEDEPEND
="$ac_dir/$ac_word"
1820 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUE"
1824 MAKEDEPEND
="$ac_cv_path_MAKEDEPEND"
1825 if test -n "$MAKEDEPEND"; then
1826 echo "$ac_t""$MAKEDEPEND" 1>&6
1828 echo "$ac_t""no" 1>&6
1831 # Extract the first word of "ar", so it can be a program name with args.
1832 set dummy
ar; ac_word
=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1835 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1840 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
1843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1844 for ac_dir
in $PATH; do
1845 test -z "$ac_dir" && ac_dir
=.
1846 if test -f $ac_dir/$ac_word; then
1847 ac_cv_path_AR
="$ac_dir/$ac_word"
1852 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="$FALSE"
1857 if test -n "$AR"; then
1858 echo "$ac_t""$AR" 1>&6
1860 echo "$ac_t""no" 1>&6
1866 echo "Disabling 'ranlib' for HP-UX..."
1880 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1882 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1883 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_hdr that defines DIR" >&5
1885 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 cat > conftest.
$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 #include <sys/types.h>
1897 if { (eval echo configure
:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1899 eval "ac_cv_header_dirent_$ac_safe=yes"
1901 echo "configure: failed program was:" >&5
1902 cat conftest.
$ac_ext >&5
1904 eval "ac_cv_header_dirent_$ac_safe=no"
1908 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1909 echo "$ac_t""yes" 1>&6
1910 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1911 cat >> confdefs.h
<<EOF
1912 #define $ac_tr_hdr 1
1914 ac_header_dirent
=$ac_hdr; break
1916 echo "$ac_t""no" 1>&6
1919 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1920 if test $ac_header_dirent = dirent.h
; then
1921 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1922 echo "configure:1923: checking for opendir in -ldir" >&5
1923 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 ac_save_LIBS
="$LIBS"
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1932 /* Override any gcc2 internal prototype to avoid an error. */
1933 /* We use char because int might match the return type of a gcc2
1934 builtin and then its argument prototype would still apply. */
1941 if { (eval echo configure
:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1943 eval "ac_cv_lib_$ac_lib_var=yes"
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1948 eval "ac_cv_lib_$ac_lib_var=no"
1951 LIBS
="$ac_save_LIBS"
1954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1955 echo "$ac_t""yes" 1>&6
1958 echo "$ac_t""no" 1>&6
1962 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1963 echo "configure:1964: checking for opendir in -lx" >&5
1964 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 ac_save_LIBS
="$LIBS"
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 /* Override any gcc2 internal prototype to avoid an error. */
1974 /* We use char because int might match the return type of a gcc2
1975 builtin and then its argument prototype would still apply. */
1982 if { (eval echo configure
:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1984 eval "ac_cv_lib_$ac_lib_var=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 eval "ac_cv_lib_$ac_lib_var=no"
1992 LIBS
="$ac_save_LIBS"
1995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1999 echo "$ac_t""no" 1>&6
2004 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2005 echo "configure:2006: checking for ANSI C header files" >&5
2006 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 cat > conftest.
$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2017 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2018 { (eval echo configure
:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2019 ac_err
=`grep -v '^ *+' conftest.out`
2020 if test -z "$ac_err"; then
2022 ac_cv_header_stdc
=yes
2025 echo "configure: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2028 ac_cv_header_stdc
=no
2032 if test $ac_cv_header_stdc = yes; then
2033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2034 cat > conftest.
$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2040 egrep "memchr" >/dev
/null
2>&1; then
2044 ac_cv_header_stdc
=no
2050 if test $ac_cv_header_stdc = yes; then
2051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2058 egrep "free" >/dev
/null
2>&1; then
2062 ac_cv_header_stdc
=no
2068 if test $ac_cv_header_stdc = yes; then
2069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2070 if test "$cross_compiling" = yes; then
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2077 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2078 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2080 int main () { int i; for (i = 0; i < 256; i++)
2081 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 ac_cv_header_stdc
=no
2100 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2101 if test $ac_cv_header_stdc = yes; then
2102 cat >> confdefs.h
<<\EOF
2103 #define STDC_HEADERS 1
2167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure
:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err
=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h
<<EOF
2197 #define $ac_tr_hdr 1
2201 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for working const""... $ac_c" 1>&6
2207 echo "configure:2208: checking for working const" >&5
2208 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2217 /* Ultrix mips cc rejects this. */
2218 typedef int charset[2]; const charset x;
2219 /* SunOS 4.1.1 cc rejects this. */
2220 char const *const *ccp;
2222 /* NEC SVR4.0.2 mips cc rejects this. */
2223 struct point {int x, y;};
2224 static struct point const zero = {0,0};
2225 /* AIX XL C 1.02.0.0 rejects this.
2226 It does not let you subtract one const X* pointer from another in an arm
2227 of an if-expression whose if-part is not a constant expression */
2228 const char *g = "string";
2229 ccp = &g + (g ? g-g : 0);
2230 /* HPUX 7.0 cc rejects these. */
2233 ccp = (char const *const *) p;
2234 { /* SCO 3.2v4 cc rejects this. */
2236 char const *s = 0 ? (char *) 0 : (char const *) 0;
2240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2242 const int *foo = &x[0];
2245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2246 typedef const int *iptr;
2250 { /* AIX XL C 1.02.0.0 rejects this saying
2251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2252 struct s { int j; const int *ap[3]; };
2253 struct s *b; b->j = 5;
2255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2261 if { (eval echo configure
:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2273 echo "$ac_t""$ac_cv_c_const" 1>&6
2274 if test $ac_cv_c_const = no
; then
2275 cat >> confdefs.h
<<\EOF
2281 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2282 echo "configure:2283: checking whether byte ordering is bigendian" >&5
2283 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 ac_cv_c_bigendian
=unknown
2287 # See if sys/param.h defines the BYTE_ORDER macro.
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 #include <sys/types.h>
2292 #include <sys/param.h>
2295 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2300 if { (eval echo configure
:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 # It does; now see whether it defined to BIG_ENDIAN or not.
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2307 #include <sys/param.h>
2310 #if BYTE_ORDER != BIG_ENDIAN
2315 if { (eval echo configure
:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 ac_cv_c_bigendian
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_c_bigendian
=no
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2330 if test $ac_cv_c_bigendian = unknown
; then
2331 if test "$cross_compiling" = yes; then
2332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2338 /* Are we little or big endian? From Harbison&Steele. */
2342 char c[sizeof (long)];
2345 exit (u.c[sizeof (long) - 1] == 1);
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2350 ac_cv_c_bigendian
=no
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 ac_cv_c_bigendian
=yes
2363 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2364 if test $ac_cv_c_bigendian = yes; then
2365 cat >> confdefs.h
<<\EOF
2366 #define WORDS_BIGENDIAN 1
2372 echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6
2373 echo "configure:2374: checking if ANSI prototypes work" >&5
2374 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 int foo(char *); int foo (char *bar) {return 1;}
2386 if { (eval echo configure
:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 ac_cv_have_ansi_prototypes
="yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.
$ac_ext >&5
2393 ac_cv_have_ansi_prototypes
="no"
2399 echo "$ac_t""$ac_cv_have_ansi_prototypes" 1>&6
2400 if test $ac_cv_have_ansi_prototypes = "yes" ; then
2401 cat >> confdefs.h
<<\EOF
2402 #define HAVE_ANSI_PROTOTYPES 1
2407 echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6
2408 echo "configure:2409: checking for tm->tm_gmtoff" >&5
2409 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.
$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2417 #include <sys/time.h>
2423 if { (eval echo configure
:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 ac_cv_have_tm_gmoff
="yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 ac_cv_have_tm_gmoff
="no"
2436 echo "$ac_t""$ac_cv_have_tm_gmoff" 1>&6
2437 if test $ac_cv_have_tm_gmoff = "yes" ; then
2438 cat >> confdefs.h
<<\EOF
2439 #define HAVE_TM_GMTOFF 1
2444 echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6
2445 echo "configure:2446: checking for extended mallinfo" >&5
2446 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <sys/types.h>
2456 struct mallinfo foo;
2460 if { (eval echo configure
:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2462 ac_cv_have_ext_mallinfo
="yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2467 ac_cv_have_ext_mallinfo
="no"
2473 echo "$ac_t""$ac_cv_have_ext_mallinfo" 1>&6
2474 if test $ac_cv_have_ext_mallinfo = "yes" ; then
2475 cat >> confdefs.h
<<\EOF
2476 #define HAVE_EXT_MALLINFO 1
2481 echo $ac_n "checking for struct rusage""... $ac_c" 1>&6
2482 echo "configure:2483: checking for struct rusage" >&5
2483 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.
$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2492 #include <sys/time.h>
2494 #if HAVE_SYS_RESOURCE_H
2495 #include <sys/resource.h>
2501 if { (eval echo configure
:2502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 ac_cv_have_struct_rusage
="yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 ac_cv_have_struct_rusage
="no"
2514 echo "$ac_t""$ac_cv_have_struct_rusage" 1>&6
2515 if test $ac_cv_have_struct_rusage = "yes" ; then
2516 cat >> confdefs.h
<<\EOF
2517 #define HAVE_STRUCT_RUSAGE 1
2522 echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6
2523 echo "configure:2524: checking for ip->ip_hl" >&5
2524 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <sys/types.h>
2532 #include <netinet/in.h>
2533 #include <netinet/in_systm.h>
2534 #include <netinet/ip.h>
2546 if { (eval echo configure
:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2548 ac_cv_have_ip_hl
="yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2553 ac_cv_have_ip_hl
="no"
2559 echo "$ac_t""$ac_cv_have_ip_hl" 1>&6
2560 if test $ac_cv_have_ip_hl = "yes" ; then
2561 cat >> confdefs.h
<<\EOF
2562 #define HAVE_IP_HL 1
2567 echo $ac_n "checking size of int""... $ac_c" 1>&6
2568 echo "configure:2569: checking size of int" >&5
2569 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 if test "$cross_compiling" = yes; then
2573 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2575 cat > conftest.
$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2581 FILE *f=fopen("conftestval", "w");
2583 fprintf(f, "%d\n", sizeof(int));
2587 if { (eval echo configure
:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2589 ac_cv_sizeof_int
=`cat conftestval`
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2600 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2601 cat >> confdefs.h
<<EOF
2602 #define SIZEOF_INT $ac_cv_sizeof_int
2606 echo $ac_n "checking size of long""... $ac_c" 1>&6
2607 echo "configure:2608: checking size of long" >&5
2608 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 if test "$cross_compiling" = yes; then
2612 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2620 FILE *f=fopen("conftestval", "w");
2622 fprintf(f, "%d\n", sizeof(long));
2626 if { (eval echo configure
:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2628 ac_cv_sizeof_long
=`cat conftestval`
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2639 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2640 cat >> confdefs.h
<<EOF
2641 #define SIZEOF_LONG $ac_cv_sizeof_long
2646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2647 # for constant arguments. Useless!
2648 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2649 echo "configure:2650: checking for working alloca.h" >&5
2650 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2658 char *p = alloca(2 * sizeof(int));
2661 if { (eval echo configure
:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2663 ac_cv_header_alloca_h
=yes
2665 echo "configure: failed program was:" >&5
2666 cat conftest.
$ac_ext >&5
2668 ac_cv_header_alloca_h
=no
2673 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2674 if test $ac_cv_header_alloca_h = yes; then
2675 cat >> confdefs.h
<<\EOF
2676 #define HAVE_ALLOCA_H 1
2681 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2682 echo "configure:2683: checking for alloca" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.
$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2691 # define alloca __builtin_alloca
2694 # include <alloca.h>
2699 # ifndef alloca /* predefined by HP cc +Olibcalls */
2707 char *p = (char *) alloca(1);
2710 if { (eval echo configure
:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2712 ac_cv_func_alloca_works
=yes
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 ac_cv_func_alloca_works
=no
2722 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2723 if test $ac_cv_func_alloca_works = yes; then
2724 cat >> confdefs.h
<<\EOF
2725 #define HAVE_ALLOCA 1
2730 if test $ac_cv_func_alloca_works = no
; then
2731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2732 # that cause trouble. Some versions do not even contain alloca or
2733 # contain a buggy version. If you still want to use their alloca,
2734 # use ar to extract alloca.o from them instead of compiling alloca.c.
2736 cat >> confdefs.h
<<\EOF
2741 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2742 echo "configure:2743: checking whether alloca needs Cray hooks" >&5
2743 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #if defined(CRAY) && ! defined(CRAY2)
2756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2757 egrep "webecray" >/dev
/null
2>&1; then
2768 echo "$ac_t""$ac_cv_os_cray" 1>&6
2769 if test $ac_cv_os_cray = yes; then
2770 for ac_func
in _getb67 GETB67 getb67
; do
2771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_func" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.
$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char $ac_func(); below. */
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2800 if { (eval echo configure
:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2802 eval "ac_cv_func_$ac_func=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.
$ac_ext >&5
2807 eval "ac_cv_func_$ac_func=no"
2812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 cat >> confdefs.h
<<EOF
2815 #define CRAY_STACKSEG_END $ac_func
2820 echo "$ac_t""no" 1>&6
2826 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2827 echo "configure:2828: checking stack direction for C alloca" >&5
2828 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test "$cross_compiling" = yes; then
2832 ac_cv_c_stack_direction
=0
2834 cat > conftest.
$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 find_stack_direction ()
2839 static char *addr = 0;
2844 return find_stack_direction ();
2847 return (&dummy > addr) ? 1 : -1;
2851 exit (find_stack_direction() < 0);
2854 if { (eval echo configure
:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2856 ac_cv_c_stack_direction
=1
2858 echo "configure: failed program was:" >&5
2859 cat conftest.
$ac_ext >&5
2861 ac_cv_c_stack_direction
=-1
2868 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2869 cat >> confdefs.h
<<EOF
2870 #define STACK_DIRECTION $ac_cv_c_stack_direction
2876 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2877 echo "configure:2878: checking for pid_t" >&5
2878 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 #include <sys/types.h>
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2893 ac_cv_type_pid_t
=yes
2901 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2902 if test $ac_cv_type_pid_t = no
; then
2903 cat >> confdefs.h
<<\EOF
2909 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2910 echo "configure:2911: checking for size_t" >&5
2911 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 #include <sys/types.h>
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2926 ac_cv_type_size_t
=yes
2929 ac_cv_type_size_t
=no
2934 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2935 if test $ac_cv_type_size_t = no
; then
2936 cat >> confdefs.h
<<\EOF
2937 #define size_t unsigned int
2942 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2943 echo "configure:2944: checking for ssize_t" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2959 ac_cv_type_ssize_t
=yes
2962 ac_cv_type_ssize_t
=no
2967 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2968 if test $ac_cv_type_ssize_t = no
; then
2969 cat >> confdefs.h
<<\EOF
2975 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2976 echo "configure:2977: checking for off_t" >&5
2977 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.
$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2990 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2992 ac_cv_type_off_t
=yes
3000 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3001 if test $ac_cv_type_off_t = no
; then
3002 cat >> confdefs.h
<<\EOF
3008 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3009 echo "configure:3010: checking for mode_t" >&5
3010 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <sys/types.h>
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3025 ac_cv_type_mode_t
=yes
3028 ac_cv_type_mode_t
=no
3033 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3034 if test $ac_cv_type_mode_t = no
; then
3035 cat >> confdefs.h
<<\EOF
3036 #define mode_t u_short
3041 echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
3042 echo "configure:3043: checking for fd_mask" >&5
3043 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 cat > conftest.
$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 #include <sys/types.h>
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "fd_mask[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3058 ac_cv_type_fd_mask
=yes
3061 ac_cv_type_fd_mask
=no
3066 echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
3067 if test $ac_cv_type_fd_mask = no
; then
3068 cat >> confdefs.h
<<\EOF
3075 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3076 echo "configure:3077: checking for socklen_t" >&5
3077 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.
$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 #include <sys/types.h>
3085 #include <sys/socket.h>
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3094 ac_cv_type_socklen_t
=yes
3097 ac_cv_type_socklen_t
=no
3104 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3105 if test $ac_cv_type_socklen_t = no
; then
3106 cat >> confdefs.h
<<\EOF
3107 #define socklen_t int
3112 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3113 echo "configure:3114: checking for main in -lnsl" >&5
3114 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 ac_save_LIBS
="$LIBS"
3120 cat > conftest.
$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3128 if { (eval echo configure
:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3130 eval "ac_cv_lib_$ac_lib_var=yes"
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 eval "ac_cv_lib_$ac_lib_var=no"
3138 LIBS
="$ac_save_LIBS"
3141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3145 cat >> confdefs.h
<<EOF
3146 #define $ac_tr_lib 1
3152 echo "$ac_t""no" 1>&6
3155 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3156 echo "configure:3157: checking for main in -lsocket" >&5
3157 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
3158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 ac_save_LIBS
="$LIBS"
3162 LIBS
="-lsocket $LIBS"
3163 cat > conftest.
$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3171 if { (eval echo configure
:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3173 eval "ac_cv_lib_$ac_lib_var=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.
$ac_ext >&5
3178 eval "ac_cv_lib_$ac_lib_var=no"
3181 LIBS
="$ac_save_LIBS"
3184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3188 cat >> confdefs.h
<<EOF
3189 #define $ac_tr_lib 1
3192 LIBS
="-lsocket $LIBS"
3195 echo "$ac_t""no" 1>&6
3199 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
3200 echo "skipping libmalloc check (--enable-dlmalloc specified)"
3202 echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
3203 echo "configure:3204: checking for main in -lgnumalloc" >&5
3204 ac_lib_var
=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
3205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_save_LIBS
="$LIBS"
3209 LIBS
="-lgnumalloc $LIBS"
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3218 if { (eval echo configure
:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3220 eval "ac_cv_lib_$ac_lib_var=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 eval "ac_cv_lib_$ac_lib_var=no"
3228 LIBS
="$ac_save_LIBS"
3231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 ac_tr_lib
=HAVE_LIB
`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3234 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3235 cat >> confdefs.h
<<EOF
3236 #define $ac_tr_lib 1
3239 LIBS
="-lgnumalloc $LIBS"
3242 echo "$ac_t""no" 1>&6
3245 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
3246 echo "Disabling extended malloc functions when using gnumalloc"
3247 ac_cv_func_mallinfo
=no
3248 ac_cv_func_mallocblksize
=no
3249 ac_cv_func_mallopt
=no
3253 echo "skipping libmalloc check for $host"
3256 echo "skipping libmalloc check for $host"
3260 echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
3261 echo "configure:3262: checking for main in -lmalloc" >&5
3262 ac_lib_var
=`echo malloc'_'main | sed 'y%./+-%__p_%'`
3263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 ac_save_LIBS
="$LIBS"
3267 LIBS
="-lmalloc $LIBS"
3268 cat > conftest.
$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS
="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib
=HAVE_LIB
`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_lib 1
3297 LIBS
="-lmalloc $LIBS"
3300 echo "$ac_t""no" 1>&6
3308 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3309 echo "configure:3310: checking for main in -lbsd" >&5
3310 ac_lib_var
=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 ac_save_LIBS
="$LIBS"
3316 cat > conftest.
$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3324 if { (eval echo configure
:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.
$ac_ext >&5
3331 eval "ac_cv_lib_$ac_lib_var=no"
3334 LIBS
="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_lib
=HAVE_LIB
`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3340 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3341 cat >> confdefs.h
<<EOF
3342 #define $ac_tr_lib 1
3348 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
3352 echo "configure:3353: checking for main in -lregex" >&5
3353 ac_lib_var
=`echo regex'_'main | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS
="$LIBS"
3358 LIBS
="-lregex $LIBS"
3359 cat > conftest.
$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3367 if { (eval echo configure
:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3369 eval "ac_cv_lib_$ac_lib_var=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3374 eval "ac_cv_lib_$ac_lib_var=no"
3377 LIBS
="$ac_save_LIBS"
3380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3384 echo "$ac_t""no" 1>&6
3387 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3388 echo "configure:3389: checking for gethostbyname in -lbind" >&5
3389 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 ac_save_LIBS
="$LIBS"
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname();
3407 if { (eval echo configure
:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS
="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3422 ac_tr_lib
=HAVE_LIB
`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3424 cat >> confdefs.h
<<EOF
3425 #define $ac_tr_lib 1
3431 echo "$ac_t""no" 1>&6
3434 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
3437 echo "skipping libresolv checks for $host"
3440 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3441 echo "configure:3442: checking for inet_aton in -lresolv" >&5
3442 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 ac_save_LIBS
="$LIBS"
3447 LIBS
="-lresolv $LIBS"
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3460 if { (eval echo configure
:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3462 eval "ac_cv_lib_$ac_lib_var=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.
$ac_ext >&5
3467 eval "ac_cv_lib_$ac_lib_var=no"
3470 LIBS
="$ac_save_LIBS"
3473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
3476 echo "configure:3477: checking for inet_aton in -l44bsd" >&5
3477 ac_lib_var
=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
3478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 ac_save_LIBS
="$LIBS"
3482 LIBS
="-l44bsd $LIBS"
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 /* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3495 if { (eval echo configure
:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3497 eval "ac_cv_lib_$ac_lib_var=yes"
3499 echo "configure: failed program was:" >&5
3500 cat conftest.
$ac_ext >&5
3502 eval "ac_cv_lib_$ac_lib_var=no"
3505 LIBS
="$ac_save_LIBS"
3508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 ac_tr_lib
=HAVE_LIB
`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
3511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3512 cat >> confdefs.h
<<EOF
3513 #define $ac_tr_lib 1
3516 LIBS
="-l44bsd $LIBS"
3519 echo "$ac_t""no" 1>&6
3523 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3527 echo "configure:3528: checking for main in -lresolv" >&5
3528 ac_lib_var
=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_save_LIBS
="$LIBS"
3533 LIBS
="-lresolv $LIBS"
3534 cat > conftest.
$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 if { (eval echo configure
:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.
$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS
="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3559 cat >> confdefs.h
<<EOF
3560 #define $ac_tr_lib 1
3563 LIBS
="-lresolv $LIBS"
3566 echo "$ac_t""no" 1>&6
3572 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3573 echo "configure:3574: checking for main in -lm" >&5
3574 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 ac_save_LIBS
="$LIBS"
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3588 if { (eval echo configure
:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3590 eval "ac_cv_lib_$ac_lib_var=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 eval "ac_cv_lib_$ac_lib_var=no"
3598 LIBS
="$ac_save_LIBS"
3601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3605 cat >> confdefs.h
<<EOF
3606 #define $ac_tr_lib 1
3612 echo "$ac_t""no" 1>&6
3616 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3617 echo "configure:3618: checking for crypt in -lcrypt" >&5
3618 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 ac_save_LIBS
="$LIBS"
3623 LIBS
="-lcrypt $LIBS"
3624 cat > conftest.
$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3636 if { (eval echo configure
:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3638 eval "ac_cv_lib_$ac_lib_var=yes"
3640 echo "configure: failed program was:" >&5
3641 cat conftest.
$ac_ext >&5
3643 eval "ac_cv_lib_$ac_lib_var=no"
3646 LIBS
="$ac_save_LIBS"
3649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3650 echo "$ac_t""yes" 1>&6
3651 ac_tr_lib
=HAVE_LIB
`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3653 cat >> confdefs.h
<<EOF
3654 #define $ac_tr_lib 1
3657 LIBS
="-lcrypt $LIBS"
3660 echo "$ac_t""no" 1>&6
3663 if test $ac_cv_lib_crypt_crypt = "yes"; then
3668 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
3669 echo "configure:3670: checking for main in -lpthread" >&5
3670 ac_lib_var
=`echo pthread'_'main | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 ac_save_LIBS
="$LIBS"
3675 LIBS
="-lpthread $LIBS"
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3684 if { (eval echo configure
:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS
="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3701 cat >> confdefs.h
<<EOF
3702 #define $ac_tr_lib 1
3705 LIBS
="-lpthread $LIBS"
3708 echo "$ac_t""no" 1>&6
3711 if test $ac_cv_lib_pthread_main = "yes"; then
3712 PTHREADLIB
="-lpthread"
3718 if test "$GCC" = "yes"; then
3719 echo "Removing -O for gcc on $host"
3720 CFLAGS
="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
3724 echo "Removing -lsocket for IRIX..."
3725 LIBS
=`echo $LIBS | sed -e s/-lsocket//`
3726 echo "Removing -lnsl for IRIX..."
3727 LIBS
=`echo $LIBS | sed -e s/-lnsl//`
3728 echo "Removing -lbsd for IRIX..."
3729 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
3732 echo "Removing -lbsd for AIX..."
3733 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
3736 CFLAGS
="$CFLAGS -D_SQUID_MOTOROLA_"
3737 cat >> confdefs.h
<<\EOF
3738 #define GETTIMEOFDAY_NO_TZP 1
3743 cat >> confdefs.h
<<\EOF
3744 #define GETTIMEOFDAY_NO_TZP 1
3749 cat >> confdefs.h
<<\EOF
3750 #define GETTIMEOFDAY_NO_TZP 1
3756 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
3759 if test `uname -v` = "2.03"; then
3760 echo "disabling mallinfo for $host"
3761 ac_cv_func_mallinfo
=no
3766 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
3767 # when running configure.
3768 if test -z "$ac_cv_func_poll"; then
3771 # John Kay (jkay@nlanr.net) 19970818
3772 echo "disabling poll for $host..."
3773 ac_cv_func_poll
='no'
3777 echo "disabling poll for $host..."
3778 ac_cv_func_poll
='no'
3781 # Henrik Nordstrom (hno@hem.passagen.se) 19980817
3782 # poll is problematic on Linux. We disable it
3783 # by default until Linux gets it right.
3784 echo "disabling poll for $host..."
3785 ac_cv_func_poll
='no'
3830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_func" >&5
3832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 cat > conftest.
$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 /* System header to define __stub macros and hopefully few prototypes,
3839 which can conflict with char $ac_func(); below. */
3841 /* Override any gcc2 internal prototype to avoid an error. */
3842 /* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
3848 /* The GNU C library defines this for functions which it implements
3849 to always fail with ENOSYS. Some functions are actually named
3850 something starting with __ and the normal name is an alias. */
3851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3859 if { (eval echo configure
:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3861 eval "ac_cv_func_$ac_func=yes"
3863 echo "configure: failed program was:" >&5
3864 cat conftest.
$ac_ext >&5
3866 eval "ac_cv_func_$ac_func=no"
3871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3872 echo "$ac_t""yes" 1>&6
3873 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3874 cat >> confdefs.h
<<EOF
3875 #define $ac_tr_func 1
3879 echo "$ac_t""no" 1>&6
3884 echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
3885 echo "configure:3886: checking if setresuid is implemented" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 if test "$cross_compiling" = yes; then
3890 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3892 cat > conftest.
$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3898 if(setresuid(-1,-1,-1)) {
3899 perror("setresuid:");
3906 if { (eval echo configure
:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3908 ac_cv_func_setresuid
="yes"
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 ac_cv_func_setresuid
="no"
3921 echo "$ac_t""$ac_cv_func_setresuid" 1>&6
3922 if test "$ac_cv_func_setresuid" = "yes" ; then
3923 cat >> confdefs.h
<<\EOF
3924 #define HAVE_SETRESUID 1
3929 if test "$IPF_TRANSPARENT" ; then
3930 echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
3931 echo "configure:3932: checking if IP-Filter header files are installed" >&5
3932 if test "$ac_cv_header_ip_compat_h" = "no" ||
3933 test "$ac_cv_header_ip_fil_h" = "no" ||
3934 test "$ac_cv_header_ip_nat_h" = "no" ; then
3935 IPF_TRANSPARENT
="no"
3936 cat >> confdefs.h
<<\EOF
3937 #define IPF_TRANSPARENT 0
3941 IPF_TRANSPARENT
="yes"
3942 cat >> confdefs.h
<<\EOF
3943 #define IPF_TRANSPARENT 1
3947 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
3949 if test "$IPF_TRANSPARENT" = "no" ; then
3950 echo "WARNING: Cannot find necessary IP-Filter header files"
3951 echo " Transparent Proxy support WILL NOT be enabled"
3955 if test -z "$USE_GNUREGEX" ; then
3957 *-sun-solaris2.
[0-4])
3965 echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
3966 echo "configure:3967: checking if GNUregex needs to be compiled" >&5
3967 if test -z "$USE_GNUREGEX"; then
3968 if test "$ac_cv_func_regcomp" = "no" ||
test "$USE_GNUREGEX" = "yes" ; then
3971 cat > conftest.
$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 #include <sys/types.h>
3977 regex_t t; regcomp(&t,"",0);
3980 if { (eval echo configure
:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3992 echo "$ac_t""$USE_GNUREGEX" 1>&6
3993 if test "$USE_GNUREGEX" = "yes"; then
3995 LIBREGEX
="libregex.a"
3996 cat >> confdefs.h
<<\EOF
3997 #define USE_GNUREGEX 1
4009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_func" >&5
4011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.
$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* System header to define __stub macros and hopefully few prototypes,
4018 which can conflict with char $ac_func(); below. */
4020 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4027 /* The GNU C library defines this for functions which it implements
4028 to always fail with ENOSYS. Some functions are actually named
4029 something starting with __ and the normal name is an alias. */
4030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4038 if { (eval echo configure
:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4040 eval "ac_cv_func_$ac_func=yes"
4042 echo "configure: failed program was:" >&5
4043 cat conftest.
$ac_ext >&5
4045 eval "ac_cv_func_$ac_func=no"
4050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4053 cat >> confdefs.h
<<EOF
4054 #define $ac_tr_func 1
4058 echo "$ac_t""no" 1>&6
4059 LIBOBJS
="$LIBOBJS ${ac_func}.o"
4065 echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
4066 echo "configure:4067: checking Default FD_SETSIZE value" >&5
4067 if test "$cross_compiling" = yes; then
4068 DEFAULT_FD_SETSIZE
=256
4070 cat > conftest.
$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4081 #include <sys/time.h>
4083 #if HAVE_SYS_SELECT_H
4084 #include <sys/select.h>
4086 #if HAVE_SYS_TYPES_H
4087 #include <sys/types.h>
4090 fprintf (fopen("conftestval", "w"), "%d\n", FD_SETSIZE);
4095 if { (eval echo configure
:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4097 DEFAULT_FD_SETSIZE
=`cat conftestval`
4099 echo "configure: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 DEFAULT_FD_SETSIZE
=256
4107 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
4108 cat >> confdefs.h
<<EOF
4109 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
4113 echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
4114 echo "configure:4115: checking Maximum number of filedescriptors we can open" >&5
4115 if test "$cross_compiling" = yes; then
4118 cat > conftest.
$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4124 #include <sys/time.h> /* needed on FreeBSD */
4125 #include <sys/param.h>
4126 #include <sys/resource.h>
4130 /* getrlimit and sysconf returns bogous values on cygwin32.
4131 * Number of fds is virtually unlimited in cygwin (sys/param.h)
4137 #if defined(RLIMIT_NOFILE)
4138 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
4139 perror("getrlimit: RLIMIT_NOFILE");
4141 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4142 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
4143 perror("setrlimit: RLIMIT_NOFILE");
4146 #elif defined(RLIMIT_OFILE)
4147 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
4148 perror("getrlimit: RLIMIT_OFILE");
4150 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4151 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
4152 perror("setrlimit: RLIMIT_OFILE");
4155 #endif /* RLIMIT_NOFILE */
4156 #endif /* HAVE_SETRLIMIT */
4157 #if HAVE_SYSCONF && defined(_SC_OPEN_MAX)
4158 i = sysconf(_SC_OPEN_MAX);
4159 #elif HAVE_GETDTABLESIZE && !defined(__linux__)
4160 i = getdtablesize();
4161 #elif defined(OPEN_MAX)
4163 #elif defined(NOFILE)
4165 #elif defined(_NFILE)
4168 while((j=open("/dev/null", 0)) > 0) i=j;
4169 close(i); close(i-1);
4172 #endif /* __CYGWIN32__ */
4173 fprintf (fopen("conftestval", "w"), "%d\n", i);
4178 if { (eval echo configure
:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4180 SQUID_MAXFD
=`cat conftestval`
4182 echo "configure: failed program was:" >&5
4183 cat conftest.
$ac_ext >&5
4190 echo "$ac_t""$SQUID_MAXFD" 1>&6
4191 cat >> confdefs.h
<<EOF
4192 #define SQUID_MAXFD $SQUID_MAXFD
4195 if test "$SQUID_MAXFD" -lt 512 ; then
4196 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
4197 echo " cache will be very busy. Please see the FAQ page"
4198 echo " http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors"
4199 echo " on how to increase your filedescriptor limit"
4203 echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
4204 echo "configure:4205: checking Default UDP send buffer size" >&5
4205 if test "$cross_compiling" = yes; then
4206 SQUID_UDP_SO_SNDBUF
=16384
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4214 #include <sys/types.h>
4215 #include <sys/socket.h>
4216 #include <netinet/in.h>
4219 int fd,val=0,len=sizeof(int);
4220 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4221 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4222 if (val<=0) exit(1);
4223 fprintf (fopen("conftestval", "w"), "%d\n", val);
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4230 SQUID_UDP_SO_SNDBUF
=`cat conftestval`
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 SQUID_UDP_SO_SNDBUF
=16384
4240 echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
4241 cat >> confdefs.h
<<EOF
4242 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
4246 echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
4247 echo "configure:4248: checking Default UDP receive buffer size" >&5
4248 if test "$cross_compiling" = yes; then
4249 SQUID_UDP_SO_RCVBUF
=16384
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4257 #include <sys/types.h>
4258 #include <sys/socket.h>
4259 #include <netinet/in.h>
4262 int fd,val=0,len=sizeof(int);
4263 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4264 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4265 if (val <= 0) exit(1);
4266 fprintf (fopen("conftestval", "w"), "%d\n", val);
4271 if { (eval echo configure
:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4273 SQUID_UDP_SO_RCVBUF
=`cat conftestval`
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4278 SQUID_UDP_SO_RCVBUF
=16384
4283 echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
4284 cat >> confdefs.h
<<EOF
4285 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
4289 echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
4290 echo "configure:4291: checking Default TCP send buffer size" >&5
4291 if test "$cross_compiling" = yes; then
4292 SQUID_TCP_SO_SNDBUF
=16384
4294 cat > conftest.
$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4300 #include <sys/types.h>
4301 #include <sys/socket.h>
4302 #include <netinet/in.h>
4305 int fd,val=0,len=sizeof(int);
4306 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4307 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4308 if (val <= 0) exit(1);
4309 fprintf (fopen("conftestval", "w"), "%d\n", val);
4314 if { (eval echo configure
:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4316 SQUID_TCP_SO_SNDBUF
=`cat conftestval`
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 SQUID_TCP_SO_SNDBUF
=16384
4326 echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
4327 cat >> confdefs.h
<<EOF
4328 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
4332 echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
4333 echo "configure:4334: checking Default TCP receive buffer size" >&5
4334 if test "$cross_compiling" = yes; then
4335 SQUID_TCP_SO_RCVBUF
=16384
4337 cat > conftest.
$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4343 #include <sys/types.h>
4344 #include <sys/socket.h>
4345 #include <netinet/in.h>
4348 int fd,val=0,len=sizeof(int);
4349 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4350 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4351 if (val <= 0) exit(1);
4352 fprintf (fopen("conftestval", "w"), "%d\n", val);
4357 if { (eval echo configure
:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4359 SQUID_TCP_SO_RCVBUF
=`cat conftestval`
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4364 SQUID_TCP_SO_RCVBUF
=16384
4369 echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
4370 cat >> confdefs.h
<<EOF
4371 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
4375 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
4376 echo "configure:4377: checking if sys_errlist is already defined" >&5
4377 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.
$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4385 char *s = sys_errlist0;
4388 if { (eval echo configure
:4389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 ac_cv_needs_sys_errlist
="no"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4395 ac_cv_needs_sys_errlist
="yes"
4401 echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
4402 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
4403 cat >> confdefs.h
<<\EOF
4404 #define NEED_SYS_ERRLIST 1
4409 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
4410 echo "configure:4411: checking for libresolv _dns_ttl_ hack" >&5
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 extern int _dns_ttl_;
4419 if { (eval echo configure
:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4421 echo "$ac_t""yes" 1>&6
4422 cat >> confdefs.h
<<\EOF
4423 #define LIBRESOLV_DNS_TTL_HACK 1
4427 echo "configure: failed program was:" >&5
4428 cat conftest.
$ac_ext >&5
4430 echo "$ac_t""no" 1>&6
4435 if test "$ac_cv_lib_malloc_main" = "yes" ; then
4436 if test -r /usr
/lib
/debug
/malloc.o
; then
4437 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/malloc.o"
4439 if test -r /usr
/lib
/debug
/mallocmap.o
; then
4440 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
4446 if test -z "$XTRA_LIBS"; then
4448 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lcrypt//"`
4449 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lpthread//"`
4450 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
4458 cat > confcache
<<\EOF
4459 # This file is a shell script that caches the results of configure
4460 # tests run on this system so they can be shared between configure
4461 # scripts and configure runs. It is not useful on other systems.
4462 # If it contains results you don't want to keep, you may remove or edit it.
4464 # By default, configure uses ./config.cache as the cache file,
4465 # creating it if it does not exist already. You can give configure
4466 # the --cache-file=FILE option to use a different cache file; that is
4467 # what configure does when it calls configure scripts in
4468 # subdirectories, so they share the cache.
4469 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4470 # config.status only pays attention to the cache file if you give it the
4471 # --recheck option to rerun configure.
4474 # The following way of writing the cache mishandles newlines in values,
4475 # but we know of no workaround that is simple, portable, and efficient.
4476 # So, don't put newlines in cache variables' values.
4477 # Ultrix sh set writes to stderr and can't be redirected directly,
4478 # and sets the high bit in the cache file unless we assign to the vars.
4480 case `(ac_space=' '; set) 2>&1` in
4482 # `set' does not quote correctly, so add quotes (double-quote substitution
4483 # turns \\\\ into \\, and sed turns \\ into \).
4485 -e "s/'/'\\\\''/g" \
4486 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4489 # `set' quotes correctly as required by POSIX, so do not add quotes.
4490 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4493 if cmp -s $cache_file confcache
; then
4496 if test -w $cache_file; then
4497 echo "updating cache $cache_file"
4498 cat confcache
> $cache_file
4500 echo "not updating unwritable cache $cache_file"
4505 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4507 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4508 # Let make expand exec_prefix.
4509 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4511 # Any assignment to VPATH causes Sun make to only execute
4512 # the first set of double-colon rules, so remove it if not needed.
4513 # If there is a colon in the path, we need to keep it.
4514 if test "x$srcdir" = x.
; then
4515 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4518 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4520 DEFS
=-DHAVE_CONFIG_H
4522 # Without the "./", some shells look in PATH for config.status.
4523 : ${CONFIG_STATUS=./config.status}
4525 echo creating
$CONFIG_STATUS
4526 rm -f $CONFIG_STATUS
4527 cat > $CONFIG_STATUS <<EOF
4529 # Generated automatically by configure.
4530 # Run this file to recreate the current configuration.
4531 # This directory was configured as follows,
4532 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4534 # $0 $ac_configure_args
4536 # Compiler output produced by configure, useful for debugging
4537 # configure, is in ./config.log if it exists.
4539 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4542 case "\$ac_option" in
4543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4544 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4545 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4546 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4547 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4549 -help | --help | --hel | --he | --h)
4550 echo "\$ac_cs_usage"; exit 0 ;;
4551 *) echo "\$ac_cs_usage"; exit 1 ;;
4555 ac_given_srcdir=$srcdir
4556 ac_given_INSTALL="$INSTALL"
4558 trap 'rm -fr `echo "\
4561 ./include/config.h \
4562 ./scripts/Makefile \
4563 ./scripts/RunCache \
4564 ./scripts/RunAccel \
4566 ./contrib/Makefile \
4570 ./auth_modules/dummy \
4571 ./auth_modules/NCSA/Makefile \
4572 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4574 cat >> $CONFIG_STATUS <<EOF
4576 # Protect against being on the right side of a sed subst in config.status.
4577 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4581 s%@CFLAGS@%$CFLAGS%g
4582 s%@CPPFLAGS@%$CPPFLAGS%g
4583 s%@CXXFLAGS@%$CXXFLAGS%g
4585 s%@LDFLAGS@%$LDFLAGS%g
4587 s%@exec_prefix@%$exec_prefix%g
4588 s%@prefix@%$prefix%g
4589 s%@program_transform_name@%$program_transform_name%g
4590 s%@bindir@%$bindir%g
4591 s%@sbindir@%$sbindir%g
4592 s%@libexecdir@%$libexecdir%g
4593 s%@datadir@%$datadir%g
4594 s%@sysconfdir@%$sysconfdir%g
4595 s%@sharedstatedir@%$sharedstatedir%g
4596 s%@localstatedir@%$localstatedir%g
4597 s%@libdir@%$libdir%g
4598 s%@includedir@%$includedir%g
4599 s%@oldincludedir@%$oldincludedir%g
4600 s%@infodir@%$infodir%g
4601 s%@mandir@%$mandir%g
4603 s%@host_alias@%$host_alias%g
4604 s%@host_cpu@%$host_cpu%g
4605 s%@host_vendor@%$host_vendor%g
4606 s%@host_os@%$host_os%g
4607 s%@exec_suffix@%$exec_suffix%g
4608 s%@cgi_suffix@%$cgi_suffix%g
4609 s%@CACHE_HTTP_PORT@%$CACHE_HTTP_PORT%g
4610 s%@CACHE_ICP_PORT@%$CACHE_ICP_PORT%g
4612 s%@LIBDLMALLOC@%$LIBDLMALLOC%g
4613 s%@LIB_MALLOC@%$LIB_MALLOC%g
4614 s%@ASYNC_OBJS@%$ASYNC_OBJS%g
4615 s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
4616 s%@DELAY_OBJS@%$DELAY_OBJS%g
4617 s%@SNMPLIB@%$SNMPLIB%g
4618 s%@SNMP_OBJS@%$SNMP_OBJS%g
4619 s%@makesnmplib@%$makesnmplib%g
4620 s%@HTCP_OBJS@%$HTCP_OBJS%g
4621 s%@ERR_LANGUAGE@%$ERR_LANGUAGE%g
4623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4624 s%@INSTALL_DATA@%$INSTALL_DATA%g
4625 s%@RANLIB@%$RANLIB%g
4635 s%@MAKEDEPEND@%$MAKEDEPEND%g
4638 s%@ALLOCA@%$ALLOCA%g
4639 s%@CRYPTLIB@%$CRYPTLIB%g
4640 s%@PTHREADLIB@%$PTHREADLIB%g
4641 s%@REGEXLIB@%$REGEXLIB%g
4642 s%@LIBREGEX@%$LIBREGEX%g
4643 s%@LIBOBJS@%$LIBOBJS%g
4644 s%@XTRA_OBJS@%$XTRA_OBJS%g
4645 s%@XTRA_LIBS@%$XTRA_LIBS%g
4650 cat >> $CONFIG_STATUS <<\EOF
4652 # Split the substitutions into bite-sized pieces for seds with
4653 # small command number limits, like on Digital OSF/1 and HP-UX.
4654 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4655 ac_file
=1 # Number of current file.
4656 ac_beg
=1 # First line for current file.
4657 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4660 while $ac_more_lines; do
4661 if test $ac_beg -gt 1; then
4662 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4664 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4666 if test ! -s conftest.s
$ac_file; then
4668 rm -f conftest.s
$ac_file
4670 if test -z "$ac_sed_cmds"; then
4671 ac_sed_cmds
="sed -f conftest.s$ac_file"
4673 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4675 ac_file
=`expr $ac_file + 1`
4677 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4680 if test -z "$ac_sed_cmds"; then
4685 cat >> $CONFIG_STATUS <<EOF
4687 CONFIG_FILES=\${CONFIG_FILES-"\
4690 ./include/config.h \
4691 ./scripts/Makefile \
4692 ./scripts/RunCache \
4693 ./scripts/RunAccel \
4695 ./contrib/Makefile \
4699 ./auth_modules/dummy \
4700 ./auth_modules/NCSA/Makefile \
4703 cat >> $CONFIG_STATUS <<\EOF
4704 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4707 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4708 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4709 *) ac_file_in
="${ac_file}.in" ;;
4712 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4714 # Remove last slash and all that follows it. Not all systems have dirname.
4715 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4716 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4717 # The file is in a subdirectory.
4718 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4719 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4720 # A "../" for each directory in $ac_dir_suffix.
4721 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4723 ac_dir_suffix
= ac_dots
=
4726 case "$ac_given_srcdir" in
4728 if test -z "$ac_dots"; then top_srcdir
=.
4729 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4730 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4732 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4733 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4736 case "$ac_given_INSTALL" in
4737 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4738 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4741 echo creating
"$ac_file"
4743 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4745 *Makefile
*) ac_comsub
="1i\\
4746 # $configure_input" ;;
4750 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4752 s%@configure_input@%$configure_input%g
4753 s%@srcdir@%$srcdir%g
4754 s%@top_srcdir@%$top_srcdir%g
4755 s%@INSTALL@%$INSTALL%g
4756 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4760 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4761 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4763 # ac_d sets the value in "#define NAME VALUE" lines.
4764 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4765 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4768 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4769 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4770 ac_uB
='\([ ]\)%\1#\2define\3'
4773 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4774 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4775 ac_eB
='$%\1#\2define\3'
4779 if test "${CONFIG_HEADERS+set}" != set; then
4781 cat >> $CONFIG_STATUS <<EOF
4782 CONFIG_HEADERS="include/autoconf.h"
4784 cat >> $CONFIG_STATUS <<\EOF
4786 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4789 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4790 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4791 *) ac_file_in
="${ac_file}.in" ;;
4794 echo creating
$ac_file
4796 rm -f conftest.frag conftest.
in conftest.out
4797 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4798 cat $ac_file_inputs > conftest.
in
4802 # Transform confdefs.h into a sed script conftest.vals that substitutes
4803 # the proper values into config.h.in to produce config.h. And first:
4804 # Protect against being on the right side of a sed subst in config.status.
4805 # Protect against being in an unquoted here document in config.status.
4807 cat > conftest.hdr
<<\EOF
4810 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4814 sed -n -f conftest.hdr confdefs.h > conftest.vals
4817 # This sed command replaces #undef with comments. This is necessary, for
4818 # example, in the case of _POSIX_SOURCE, which is predefined and required
4819 # on some systems where configure will not decide to define it.
4820 cat >> conftest.vals <<\EOF
4821 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4824 # Break up conftest.vals because some shells have a limit on
4825 # the size of here documents, and old seds have small limits too.
4830 ac_lines=`grep -c . conftest.vals
`
4831 # grep -c gives empty output for an empty file on some AIX systems.
4832 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4833 # Write a limited-size here document to conftest.frag.
4834 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4835 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4837 sed -f conftest.frag conftest.in > conftest.out
4839 mv conftest.out conftest.in
4841 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4843 mv conftest.tail conftest.vals
4847 cat >> $CONFIG_STATUS <<\EOF
4848 rm -f conftest.frag conftest.h
4849 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4850 cat conftest.in >> conftest.h
4852 if cmp -s $ac_file conftest.h 2>/dev/null; then
4853 echo "$ac_file is unchanged"
4856 # Remove last slash and all that follows it. Not all systems have dirname.
4857 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4858 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4859 # The file is in a subdirectory.
4860 test ! -d "$ac_dir" && mkdir "$ac_dir"
4863 mv conftest.h $ac_file
4868 cat >> $CONFIG_STATUS <<EOF
4871 cat >> $CONFIG_STATUS <<\EOF
4875 chmod +x $CONFIG_STATUS
4876 rm -fr confdefs* $ac_clean_files
4877 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1