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.
67 --disable-poll Disable the use of poll()."
69 --disable-http-violations
70 This allows you to remove code which is known to
71 violate the HTTP protocol specification."
73 --enable-ipf-transparent
74 Enable Transparent Proxy support for systems
75 using IP-Filter network address redirection."
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file
=.
/config.cache
90 program_transform_name
=s
,x
,x
,
98 bindir
='${exec_prefix}/bin'
99 sbindir
='${exec_prefix}/sbin'
100 libexecdir
='${exec_prefix}/libexec'
101 datadir
='${prefix}/share'
102 sysconfdir
='${prefix}/etc'
103 sharedstatedir
='${prefix}/com'
104 localstatedir
='${prefix}/var'
105 libdir
='${exec_prefix}/lib'
106 includedir
='${prefix}/include'
107 oldincludedir
='/usr/include'
108 infodir
='${prefix}/info'
109 mandir
='${prefix}/man'
111 # Initialize some other variables.
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
139 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
140 bindir
="$ac_optarg" ;;
142 -build |
--build |
--buil |
--bui |
--bu)
144 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
145 build
="$ac_optarg" ;;
147 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
148 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
149 ac_prev
=cache_file
;;
150 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
151 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
152 cache_file
="$ac_optarg" ;;
154 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
156 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
158 datadir
="$ac_optarg" ;;
160 -disable-* |
--disable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* |
--enable-*)
170 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
183 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
184 |
--exec |
--exe |
--ex)
185 ac_prev
=exec_prefix
;;
186 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
187 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
188 |
--exec=* |
--exe=* |
--ex=*)
189 exec_prefix
="$ac_optarg" ;;
191 -gas |
--gas |
--ga |
--g)
192 # Obsolete; use --with-gas.
195 -help |
--help |
--hel |
--he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host |
--host |
--hos |
--ho)
252 -host=* |
--host=* |
--hos=* |
--ho=*)
255 -includedir |
--includedir |
--includedi |
--included |
--include \
256 |
--includ |
--inclu |
--incl |
--inc)
257 ac_prev
=includedir
;;
258 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
259 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
260 includedir
="$ac_optarg" ;;
262 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
264 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
265 infodir
="$ac_optarg" ;;
267 -libdir |
--libdir |
--libdi |
--libd)
269 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
270 libdir
="$ac_optarg" ;;
272 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
273 |
--libexe |
--libex |
--libe)
274 ac_prev
=libexecdir
;;
275 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
276 |
--libexe=* |
--libex=* |
--libe=*)
277 libexecdir
="$ac_optarg" ;;
279 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
280 |
--localstate |
--localstat |
--localsta |
--localst \
281 |
--locals |
--local |
--loca |
--loc |
--lo)
282 ac_prev
=localstatedir
;;
283 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
284 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
285 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
286 localstatedir
="$ac_optarg" ;;
288 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
290 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
291 mandir
="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
301 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
302 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
305 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
306 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
307 |
--oldin |
--oldi |
--old |
--ol |
--o)
308 ac_prev
=oldincludedir
;;
309 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
310 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
311 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
312 oldincludedir
="$ac_optarg" ;;
314 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
316 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
317 prefix
="$ac_optarg" ;;
319 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
320 |
--program-pre |
--program-pr |
--program-p)
321 ac_prev
=program_prefix
;;
322 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
323 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
324 program_prefix
="$ac_optarg" ;;
326 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
327 |
--program-suf |
--program-su |
--program-s)
328 ac_prev
=program_suffix
;;
329 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
330 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
331 program_suffix
="$ac_optarg" ;;
333 -program-transform-name |
--program-transform-name \
334 |
--program-transform-nam |
--program-transform-na \
335 |
--program-transform-n |
--program-transform- \
336 |
--program-transform |
--program-transfor \
337 |
--program-transfo |
--program-transf \
338 |
--program-trans |
--program-tran \
339 |
--progr-tra |
--program-tr |
--program-t)
340 ac_prev
=program_transform_name
;;
341 -program-transform-name=* |
--program-transform-name=* \
342 |
--program-transform-nam=* |
--program-transform-na=* \
343 |
--program-transform-n=* |
--program-transform-=* \
344 |
--program-transform=* |
--program-transfor=* \
345 |
--program-transfo=* |
--program-transf=* \
346 |
--program-trans=* |
--program-tran=* \
347 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
348 program_transform_name
="$ac_optarg" ;;
350 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
351 |
-silent |
--silent |
--silen |
--sile |
--sil)
354 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
356 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
358 sbindir
="$ac_optarg" ;;
360 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
361 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
362 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
364 ac_prev
=sharedstatedir
;;
365 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
366 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
367 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
369 sharedstatedir
="$ac_optarg" ;;
371 -site |
--site |
--sit)
373 -site=* |
--site=* |
--sit=*)
376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
379 srcdir
="$ac_optarg" ;;
381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
383 ac_prev
=sysconfdir
;;
384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
386 sysconfdir
="$ac_optarg" ;;
388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
391 target
="$ac_optarg" ;;
393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
396 -version |
--version |
--versio |
--versi |
--vers)
397 echo "configure generated by autoconf version 2.12"
401 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* |
--without-*)
414 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
427 |
--x-incl |
--x-inc |
--x-in |
--x-i)
428 ac_prev
=x_includes
;;
429 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
430 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
431 x_includes
="$ac_optarg" ;;
433 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
434 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
435 ac_prev
=x_libraries
;;
436 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
437 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
438 x_libraries
="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE
; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
489 |
--no-cr |
--no-c) ;;
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
492 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest
* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file
=src
/main.c
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted
=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted
=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE
; then
543 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file
in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp
='$CPP $CPPFLAGS'
566 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling
=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
579 ac_n
= ac_c
='\c' ac_t
=
584 # From configure.in Revision: 1.159.2.7
586 for ac_dir
in cfgaux
$srcdir/cfgaux
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in cfgaux $srcdir/cfgaux" 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
606 # Make sure we can run config.sub.
607 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
615 case "$host_alias" in
619 if host_alias
=`$ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 *) host_alias
=$nonopt ;;
626 host=`$ac_config_sub $host_alias`
627 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
634 REGEXLIB
='' # -lregex
635 LIBREGEX
='' # libregex.a
637 if test "$libexecdir" = '${exec_prefix}/libexec'; then
638 libexecdir
='${bindir}'
639 localstatedir
='${prefix}'
656 if test -z "$CACHE_HTTP_PORT"; then
657 CACHE_HTTP_PORT
="3128"
659 if test -z "$CACHE_ICP_PORT"; then
660 CACHE_ICP_PORT
="3130"
666 cat >> confdefs.h
<<EOF
667 #define CONFIG_HOST_TYPE "$host"
671 if test -z "$LDFLAGS"; then
675 PRESET_CFLAGS
="$CFLAGS"
677 # Extract the first word of "gcc", so it can be a program name with args.
678 set dummy gcc
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$CC"; then
685 ac_cv_prog_CC
="$CC" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
688 for ac_dir
in $PATH; do
689 test -z "$ac_dir" && ac_dir
=.
690 if test -f $ac_dir/$ac_word; then
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc
; ac_word
=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC
="$CC" # Let the user override the test.
716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
718 for ac_dir
in $PATH; do
719 test -z "$ac_dir" && ac_dir
=.
720 if test -f $ac_dir/$ac_word; then
721 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
730 if test $ac_prog_rejected = yes; then
731 # We found a bogon in the path, so make sure we never use it.
732 set dummy
$ac_cv_prog_CC
734 if test $# -gt 0; then
735 # We chose a different compiler from the bogus one.
736 # However, it has the same basename, so the bogon will be chosen
737 # first if we set CC to just the basename; use the full file name.
739 set dummy
"$ac_dir/$ac_word" "$@"
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
757 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp
='$CPP $CPPFLAGS'
762 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling
=$ac_cv_prog_cc_cross
766 cat > conftest.
$ac_ext <<EOF
767 #line 768 "configure"
768 #include "confdefs.h"
771 if { (eval echo configure
:772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
772 ac_cv_prog_cc_works
=yes
773 # If we can't run a trivial program, we are probably using a cross compiler.
774 if (.
/conftest
; exit) 2>/dev
/null
; then
775 ac_cv_prog_cc_cross
=no
777 ac_cv_prog_cc_cross
=yes
780 echo "configure: failed program was:" >&5
781 cat conftest.
$ac_ext >&5
782 ac_cv_prog_cc_works
=no
786 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
787 if test $ac_cv_prog_cc_works = no
; then
788 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
790 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
791 echo "configure:792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
792 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
793 cross_compiling
=$ac_cv_prog_cc_cross
795 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
796 echo "configure:797: checking whether we are using GNU C" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 cat > conftest.c
<<EOF
805 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
814 if test $ac_cv_prog_gcc = yes; then
816 ac_test_CFLAGS
="${CFLAGS+set}"
817 ac_save_CFLAGS
="$CFLAGS"
819 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
820 echo "configure:821: checking whether ${CC-cc} accepts -g" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 echo 'void f(){}' > conftest.c
825 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
834 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
835 if test "$ac_test_CFLAGS" = set; then
836 CFLAGS
="$ac_save_CFLAGS"
837 elif test $ac_cv_prog_cc_g = yes; then
844 test "${CFLAGS+set}" = set || CFLAGS
="-g"
850 CC
="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
854 if test -z "$PRESET_CFLAGS"; then
855 if test "$GCC" = "yes"; then
858 # sunos has too many warnings for this to be useful
862 # Motorola cc/ld does not like -02 but is ok on -O
863 CFLAGS
=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
866 CFLAGS
="$CFLAGS -Wall"
872 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
873 CFLAGS
="$CFLAGS -n32 -mips4 -O3 -OPT:Olimit=0:space=OFF \
874 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 \
875 -Wl,-woff,85,-woff,84,-woff,134 \
876 -nostdinc -I/usr/include -D_BSD_SIGNALS"
879 # Mogul says DEC compilers take both -g and -O2
888 if test -z "$PRESET_LDFLAGS"; then
889 if test "$GCC" = "yes"; then
898 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
899 LDFLAGS
="-n32 -mips4 -nostdlib -L/usr/lib32"
905 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
906 if test "${enable_dlmalloc+set}" = set; then
907 enableval
="$enable_dlmalloc"
909 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
910 # Ok. dlmalloc was enabled before, but state may be changed.
911 # we have to test these again
912 unset ac_cv_func_mallinfo
913 unset ac_cv_func_mallocblksize
914 unset ac_cv_func_free
915 unset ac_cv_func_realloc
916 unset ac_cv_func_memalign
917 unset ac_cv_func_valloc
918 unset ac_cv_func_pvalloc
919 unset ac_cv_func_calloc
920 unset ac_cv_func_cfree
921 unset ac_cv_func_malloc_trim
922 unset ac_cv_func_malloc_usable_size
923 unset ac_cv_func_malloc_stats
924 unset ac_cv_func_mallinfo
925 unset ac_cv_func_mallopt
926 unset ac_cv_lib_gnumalloc
927 unset ac_cv_header_gnumalloc_h
928 unset ac_cv_lib_malloc
929 unset ac_cv_enabled_dlmalloc
933 LIBDLMALLOC
="libdlmalloc.a"
934 LIB_MALLOC
="-L../lib -ldlmalloc"
935 ac_cv_func_mallinfo
="yes"
936 ac_cv_func_mallocblksize
="no"
937 ac_cv_func_free
="yes"
938 ac_cv_func_realloc
="yes"
939 ac_cv_func_memalign
="yes"
940 ac_cv_func_valloc
="yes"
941 ac_cv_func_pvalloc
="yes"
942 ac_cv_func_calloc
="yes"
943 ac_cv_func_cfree
="yes"
944 ac_cv_func_malloc_trim
="yes"
945 ac_cv_func_malloc_usable_size
="yes"
946 ac_cv_func_malloc_stats
="yes"
947 ac_cv_func_mallinfo
="yes"
948 ac_cv_func_mallopt
="yes"
949 ac_cv_lib_gnumalloc
="no"
950 ac_cv_header_gnumalloc_h
="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_header_gnumalloc_h
="no"
978 ac_cv_lib_malloc
="no"
979 ac_cv_enabled_dlmalloc
="yes"
980 echo "Use installed dlmalloc."
986 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
987 # Ok. dlmalloc was enabled before, but now disabled.
988 # we have to test these again
989 unset ac_cv_func_mallinfo
990 unset ac_cv_func_mallocblksize
991 unset ac_cv_func_free
992 unset ac_cv_func_realloc
993 unset ac_cv_func_memalign
994 unset ac_cv_func_valloc
995 unset ac_cv_func_pvalloc
996 unset ac_cv_func_calloc
997 unset ac_cv_func_cfree
998 unset ac_cv_func_malloc_trim
999 unset ac_cv_func_malloc_usable_size
1000 unset ac_cv_func_malloc_stats
1001 unset ac_cv_func_mallinfo
1002 unset ac_cv_func_mallopt
1003 unset ac_cv_lib_gnumalloc
1004 unset ac_cv_header_gnumalloc_h
1005 unset ac_cv_lib_malloc
1006 unset ac_cv_enabled_dlmalloc
1014 # Check whether --enable-gnuregex or --disable-gnuregex was given.
1015 if test "${enable_gnuregex+set}" = set; then
1016 enableval
="$enable_gnuregex"
1017 USE_GNUREGEX
=$enableval
1021 # Check whether --enable-xmalloc_debug or --disable-xmalloc_debug was given.
1022 if test "${enable_xmalloc_debug+set}" = set; then
1023 enableval
="$enable_xmalloc_debug"
1024 if test "$enableval" = "yes" ; then
1025 echo "Malloc debugging enabled"
1026 cat >> confdefs.h
<<\EOF
1027 #define XMALLOC_DEBUG 1
1035 # Check whether --enable-xmalloc_debug_trace or --disable-xmalloc_debug_trace was given.
1036 if test "${enable_xmalloc_debug_trace+set}" = set; then
1037 enableval
="$enable_xmalloc_debug_trace"
1038 if test "$enableval" = "yes" ; then
1039 echo "Malloc debug trace enabled"
1040 cat >> confdefs.h
<<\EOF
1041 #define XMALLOC_TRACE 1
1044 cat >> confdefs.h
<<\EOF
1045 #define XMALLOC_DEBUG 1
1053 # Check whether --enable-xmalloc_statistics or --disable-xmalloc_statistics was given.
1054 if test "${enable_xmalloc_statistics+set}" = set; then
1055 enableval
="$enable_xmalloc_statistics"
1056 if test "$enableval" = "yes" ; then
1057 echo "Malloc statistics enabled"
1058 cat >> confdefs.h
<<\EOF
1059 #define XMALLOC_STATISTICS 1
1067 # Check whether --enable-carp or --disable-carp was given.
1068 if test "${enable_carp+set}" = set; then
1069 enableval
="$enable_carp"
1070 if test "$enableval" = "yes" ; then
1071 echo "CARP support enabled"
1072 cat >> confdefs.h
<<\EOF
1081 # Check whether --enable-async_io or --disable-async_io was given.
1082 if test "${enable_async_io+set}" = set; then
1083 enableval
="$enable_async_io"
1084 if test "$enableval" = "yes" ; then
1085 echo "Async I/O enabled"
1087 cat >> confdefs.h
<<\EOF
1088 #define USE_ASYNC_IO 1
1091 ASYNC_OBJS
='$(ASYNC_OBJS)'
1092 SQUID_PTHREAD_LIB
='$(PTHREADLIB)'
1093 CFLAGS
="$CFLAGS -D_REENTRANT"
1095 i386-unknown-freebsd
*)
1096 if test "$GCC" = "yes" ; then
1097 if test -z "$PRESET_LDFLAGS"; then
1098 LDFLAGS
="$LDFLAGS -pthread"
1110 # Check whether --enable-icmp or --disable-icmp was given.
1111 if test "${enable_icmp+set}" = set; then
1112 enableval
="$enable_icmp"
1113 if test "$enableval" = "yes" ; then
1115 cat >> confdefs.h
<<\EOF
1124 # Check whether --enable-delay_pools or --disable-delay_pools was given.
1125 if test "${enable_delay_pools+set}" = set; then
1126 enableval
="$enable_delay_pools"
1127 if test "$enableval" = "yes" ; then
1128 echo "Delay pools enabled"
1129 DELAY_OBJS
='$(DELAY_OBJS)'
1130 cat >> confdefs.h
<<\EOF
1131 #define DELAY_POOLS 1
1140 # Check whether --enable-mem-gen-trace or --disable-mem-gen-trace was given.
1141 if test "${enable_mem_gen_trace+set}" = set; then
1142 enableval
="$enable_mem_gen_trace"
1143 if test "$enableval" = "yes" ; then
1144 echo "Memory trace (to file) enabled"
1145 cat >> confdefs.h
<<\EOF
1146 #define MEM_GEN_TRACE 1
1154 # Check whether --enable-useragent_log or --disable-useragent_log was given.
1155 if test "${enable_useragent_log+set}" = set; then
1156 enableval
="$enable_useragent_log"
1157 if test "$enableval" = "yes" ; then
1158 echo "User-Agent logging enabled"
1159 cat >> confdefs.h
<<\EOF
1160 #define USE_USERAGENT_LOG 1
1168 # Check whether --enable-kill_parent_hack or --disable-kill_parent_hack was given.
1169 if test "${enable_kill_parent_hack+set}" = set; then
1170 enableval
="$enable_kill_parent_hack"
1171 if test "$enableval" = "yes" ; then
1172 echo "Kill parent on shutdown"
1173 cat >> confdefs.h
<<\EOF
1174 #define KILL_PARENT_OPT 1
1182 # Check whether --enable-snmp or --disable-snmp was given.
1183 if test "${enable_snmp+set}" = set; then
1184 enableval
="$enable_snmp"
1185 if test "$enableval" = "yes" ; then
1186 echo "SNMP monitoring enabled"
1187 cat >> confdefs.h
<<\EOF
1188 #define SQUID_SNMP 1
1191 SNMPLIB
='-L../snmplib -lsnmp'
1192 SNMP_OBJS
='$(SNMP_OBJS)'
1193 SNMP_MAKEFILE
=.
/snmplib
/Makefile
1203 # Check whether --enable-time_hack or --disable-time_hack was given.
1204 if test "${enable_time_hack+set}" = set; then
1205 enableval
="$enable_time_hack"
1206 if test "$enableval" = "yes" ; then
1207 echo "Update internal timestamp only once per second"
1208 cat >> confdefs.h
<<\EOF
1209 #define ALARM_UPDATES_TIME 1
1217 # Check whether --enable-cachemgr_hostname or --disable-cachemgr_hostname was given.
1218 if test "${enable_cachemgr_hostname+set}" = set; then
1219 enableval
="$enable_cachemgr_hostname"
1222 cat >> confdefs.h
<<\EOF
1223 #define CACHEMGR_HOSTNAME getfullhostname()
1226 echo "Cachemgr default hostname == host where cachemgr runs"
1232 cat >> confdefs.h
<<EOF
1233 #define CACHEMGR_HOSTNAME "${enableval}"
1236 echo "Cachemgr default hostname set to ${enableval}"
1243 # Check whether --enable-arp_acl or --disable-arp_acl was given.
1244 if test "${enable_arp_acl+set}" = set; then
1245 enableval
="$enable_arp_acl"
1246 if test "$enableval" = "yes" ; then
1247 echo "ARP ACL lists enabled (ether address)"
1252 echo "WARNING: ARP ACL support is only currently supported on Linux"
1253 echo " ethernet interfaces, probably won't work on $host."
1257 cat >> confdefs.h
<<\EOF
1258 #define USE_ARP_ACL 1
1266 # Check whether --enable-htcp or --disable-htcp was given.
1267 if test "${enable_htcp+set}" = set; then
1268 enableval
="$enable_htcp"
1269 if test "$enableval" = "yes" ; then
1271 HTCP_OBJS
='$(HTCP_OBJS)'
1272 cat >> confdefs.h
<<\EOF
1282 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
1283 if test "${enable_forw_via_db+set}" = set; then
1284 enableval
="$enable_forw_via_db"
1285 if test "$enableval" = "yes" ; then
1286 echo "FORW-VIA enabled"
1287 cat >> confdefs.h
<<\EOF
1288 #define FORW_VIA_DB 1
1296 # Check whether --enable-cache-digests or --disable-cache-digests was given.
1297 if test "${enable_cache_digests+set}" = set; then
1298 enableval
="$enable_cache_digests"
1299 if test "$enableval" = "yes" ; then
1300 echo "USE_CACHE_DIGESTS enabled"
1301 cat >> confdefs.h
<<\EOF
1302 #define USE_CACHE_DIGESTS 1
1310 # Check whether --enable-err-language or --disable-err-language was given.
1311 if test "${enable_err_language+set}" = set; then
1312 enableval
="$enable_err_language"
1314 if test -d errors
/$enableval; then
1315 ERR_LANGUAGE
=$enableval
1317 echo "ERROR! Unknown language $enableval, see errors/"
1322 ERR_LANGUAGE
="English"
1327 # Check whether --enable-poll or --disable-poll was given.
1328 if test "${enable_poll+set}" = set; then
1329 enableval
="$enable_poll"
1331 case "$enableval" in
1333 echo "Forcing poll() to be enabled"
1334 ac_cv_func_poll
='yes'
1337 echo "Forcing poll() to be disabled"
1338 ac_cv_func_poll
='no'
1345 # Check whether --enable-http-violations or --disable-http-violations was given.
1346 if test "${enable_http_violations+set}" = set; then
1347 enableval
="$enable_http_violations"
1348 if test "$enableval" = "no" ; then
1349 echo "Disabling HTTP Violations"
1350 cat >> confdefs.h
<<\EOF
1351 #define HTTP_VIOLATIONS 0
1355 cat >> confdefs.h
<<\EOF
1356 #define HTTP_VIOLATIONS 1
1364 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
1365 if test "${enable_ipf_transparent+set}" = set; then
1366 enableval
="$enable_ipf_transparent"
1367 if test "$enableval" = "yes" ; then
1368 echo "IP-Filter Transparent Proxy enabled"
1369 cat >> confdefs.h
<<\EOF
1370 #define IPF_TRANSPARENT 1
1373 IPF_TRANSPARENT
="yes"
1379 # Force some compilers to use ANSI features
1383 if test "$ac_cv_prog_CC" = "cc" ; then
1384 echo "adding '-std1' to cc args for $host"
1390 if test "$ac_cv_prog_CC" = "cc" ; then
1391 echo "adding '-Ae' to cc args for $host"
1398 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1399 echo "configure:1400: checking how to run the C preprocessor" >&5
1400 # On Suns, sometimes $CPP names a directory.
1401 if test -n "$CPP" && test -d "$CPP"; then
1404 if test -z "$CPP"; then
1405 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 # This must be in double quotes, not single quotes, because CPP may get
1409 # substituted into the Makefile and "${CC-cc}" will confuse make.
1411 # On the NeXT, cc -E runs the code through the compiler's parser,
1412 # not just through cpp.
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1419 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure
:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err
=`grep -v '^ *+' conftest.out`
1422 if test -z "$ac_err"; then
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1429 CPP
="${CC-cc} -E -traditional-cpp"
1430 cat > conftest.
$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1437 { (eval echo configure
:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1438 ac_err
=`grep -v '^ *+' conftest.out`
1439 if test -z "$ac_err"; then
1443 echo "configure: failed program was:" >&5
1444 cat conftest.
$ac_ext >&5
1451 ac_cv_prog_CPP
="$CPP"
1453 CPP
="$ac_cv_prog_CPP"
1455 ac_cv_prog_CPP
="$CPP"
1457 echo "$ac_t""$CPP" 1>&6
1459 # Find a good install program. We prefer a C program (faster),
1460 # so one script is as good as another. But avoid the broken or
1461 # incompatible versions:
1462 # SysV /etc/install, /usr/sbin/install
1463 # SunOS /usr/etc/install
1464 # IRIX /sbin/install
1466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1468 # ./install, which can be erroneously created by make from ./install.sh.
1469 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1470 echo "configure:1471: checking for a BSD compatible install" >&5
1471 if test -z "$INSTALL"; then
1472 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1476 for ac_dir
in $PATH; do
1477 # Account for people who put trailing slashes in PATH elements.
1479 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1481 # OSF1 and SCO ODT 3.0 have their own names for install.
1482 for ac_prog
in ginstall installbsd scoinst
install; do
1483 if test -f $ac_dir/$ac_prog; then
1484 if test $ac_prog = install &&
1485 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1486 # AIX install. It has an incompatible calling convention.
1487 # OSF/1 installbsd also uses dspmsg, but is usable.
1490 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1501 if test "${ac_cv_path_install+set}" = set; then
1502 INSTALL
="$ac_cv_path_install"
1504 # As a last resort, use the slow shell script. We don't cache a
1505 # path for INSTALL within a source directory, because that will
1506 # break other packages using the cache if that directory is
1507 # removed, or if the path is relative.
1508 INSTALL
="$ac_install_sh"
1511 echo "$ac_t""$INSTALL" 1>&6
1513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1514 # It thinks the first close brace ends the variable substitution.
1515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1517 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1519 # Extract the first word of "ranlib", so it can be a program name with args.
1520 set dummy ranlib
; ac_word
=$2
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_word" >&5
1523 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 if test -n "$RANLIB"; then
1527 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1530 for ac_dir
in $PATH; do
1531 test -z "$ac_dir" && ac_dir
=.
1532 if test -f $ac_dir/$ac_word; then
1533 ac_cv_prog_RANLIB
="ranlib"
1538 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1541 RANLIB
="$ac_cv_prog_RANLIB"
1542 if test -n "$RANLIB"; then
1543 echo "$ac_t""$RANLIB" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether ln -s works" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1554 if ln -s X conftestdata
2>/dev
/null
1557 ac_cv_prog_LN_S
="ln -s"
1562 LN_S
="$ac_cv_prog_LN_S"
1563 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1564 echo "$ac_t""yes" 1>&6
1566 echo "$ac_t""no" 1>&6
1569 # Extract the first word of "sh", so it can be a program name with args.
1570 set dummy sh
; ac_word
=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1578 ac_cv_path_SH
="$SH" # Let the user override the test with a path.
1581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1582 for ac_dir
in $PATH; do
1583 test -z "$ac_dir" && ac_dir
=.
1584 if test -f $ac_dir/$ac_word; then
1585 ac_cv_path_SH
="$ac_dir/$ac_word"
1590 test -z "$ac_cv_path_SH" && ac_cv_path_SH
="/bin/sh"
1595 if test -n "$SH"; then
1596 echo "$ac_t""$SH" 1>&6
1598 echo "$ac_t""no" 1>&6
1601 # Extract the first word of "false", so it can be a program name with args.
1602 set dummy false
; ac_word
=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1610 ac_cv_path_FALSE
="$FALSE" # Let the user override the test with a path.
1613 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1614 for ac_dir
in $PATH; do
1615 test -z "$ac_dir" && ac_dir
=.
1616 if test -f $ac_dir/$ac_word; then
1617 ac_cv_path_FALSE
="$ac_dir/$ac_word"
1622 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE
="/usr/bin/false"
1626 FALSE
="$ac_cv_path_FALSE"
1627 if test -n "$FALSE"; then
1628 echo "$ac_t""$FALSE" 1>&6
1630 echo "$ac_t""no" 1>&6
1633 # Extract the first word of "true", so it can be a program name with args.
1634 set dummy true
; ac_word
=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1637 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1642 ac_cv_path_TRUE
="$TRUE" # Let the user override the test with a path.
1645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1646 for ac_dir
in $PATH; do
1647 test -z "$ac_dir" && ac_dir
=.
1648 if test -f $ac_dir/$ac_word; then
1649 ac_cv_path_TRUE
="$ac_dir/$ac_word"
1654 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE
="/usr/bin/true"
1658 TRUE
="$ac_cv_path_TRUE"
1659 if test -n "$TRUE"; then
1660 echo "$ac_t""$TRUE" 1>&6
1662 echo "$ac_t""no" 1>&6
1665 # Extract the first word of "rm", so it can be a program name with args.
1666 set dummy
rm; ac_word
=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1674 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1677 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1678 for ac_dir
in $PATH; do
1679 test -z "$ac_dir" && ac_dir
=.
1680 if test -f $ac_dir/$ac_word; then
1681 ac_cv_path_RM
="$ac_dir/$ac_word"
1686 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="$FALSE"
1691 if test -n "$RM"; then
1692 echo "$ac_t""$RM" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 # Extract the first word of "mv", so it can be a program name with args.
1698 set dummy
mv; ac_word
=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1706 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
1709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1710 for ac_dir
in $PATH; do
1711 test -z "$ac_dir" && ac_dir
=.
1712 if test -f $ac_dir/$ac_word; then
1713 ac_cv_path_MV
="$ac_dir/$ac_word"
1718 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="$FALSE"
1723 if test -n "$MV"; then
1724 echo "$ac_t""$MV" 1>&6
1726 echo "$ac_t""no" 1>&6
1729 # Extract the first word of "mkdir", so it can be a program name with args.
1730 set dummy mkdir
; ac_word
=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1733 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1738 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
1741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1742 for ac_dir
in $PATH; do
1743 test -z "$ac_dir" && ac_dir
=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_path_MKDIR
="$ac_dir/$ac_word"
1750 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="$FALSE"
1754 MKDIR
="$ac_cv_path_MKDIR"
1755 if test -n "$MKDIR"; then
1756 echo "$ac_t""$MKDIR" 1>&6
1758 echo "$ac_t""no" 1>&6
1761 # Extract the first word of "ln", so it can be a program name with args.
1762 set dummy
ln; ac_word
=$2
1763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_word" >&5
1765 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1770 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
1773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1774 for ac_dir
in $PATH; do
1775 test -z "$ac_dir" && ac_dir
=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_path_LN
="$ac_dir/$ac_word"
1782 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="cp"
1787 if test -n "$LN"; then
1788 echo "$ac_t""$LN" 1>&6
1790 echo "$ac_t""no" 1>&6
1793 # Extract the first word of "perl", so it can be a program name with args.
1794 set dummy perl
; ac_word
=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1805 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1806 for ac_dir
in $PATH; do
1807 test -z "$ac_dir" && ac_dir
=.
1808 if test -f $ac_dir/$ac_word; then
1809 ac_cv_path_PERL
="$ac_dir/$ac_word"
1814 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="/usr/local/bin/perl"
1818 PERL
="$ac_cv_path_PERL"
1819 if test -n "$PERL"; then
1820 echo "$ac_t""$PERL" 1>&6
1822 echo "$ac_t""no" 1>&6
1825 # Extract the first word of "makedepend", so it can be a program name with args.
1826 set dummy makedepend
; ac_word
=$2
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_word" >&5
1829 if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPEND'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 case "$MAKEDEPEND" in
1834 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
1837 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1838 for ac_dir
in $PATH; do
1839 test -z "$ac_dir" && ac_dir
=.
1840 if test -f $ac_dir/$ac_word; then
1841 ac_cv_path_MAKEDEPEND
="$ac_dir/$ac_word"
1846 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUE"
1850 MAKEDEPEND
="$ac_cv_path_MAKEDEPEND"
1851 if test -n "$MAKEDEPEND"; then
1852 echo "$ac_t""$MAKEDEPEND" 1>&6
1854 echo "$ac_t""no" 1>&6
1857 # Extract the first word of "ar", so it can be a program name with args.
1858 set dummy
ar; ac_word
=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1866 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
1869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1870 for ac_dir
in $PATH; do
1871 test -z "$ac_dir" && ac_dir
=.
1872 if test -f $ac_dir/$ac_word; then
1873 ac_cv_path_AR
="$ac_dir/$ac_word"
1878 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="$FALSE"
1883 if test -n "$AR"; then
1884 echo "$ac_t""$AR" 1>&6
1886 echo "$ac_t""no" 1>&6
1892 echo "Disabling 'ranlib' for HP-UX..."
1906 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1908 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1909 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_hdr that defines DIR" >&5
1911 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1923 if { (eval echo configure
:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 eval "ac_cv_header_dirent_$ac_safe=yes"
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 eval "ac_cv_header_dirent_$ac_safe=no"
1934 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1937 cat >> confdefs.h
<<EOF
1938 #define $ac_tr_hdr 1
1940 ac_header_dirent
=$ac_hdr; break
1942 echo "$ac_t""no" 1>&6
1945 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1946 if test $ac_header_dirent = dirent.h
; then
1947 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1948 echo "configure:1949: checking for opendir in -ldir" >&5
1949 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 ac_save_LIBS
="$LIBS"
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958 /* Override any gcc2 internal prototype to avoid an error. */
1959 /* We use char because int might match the return type of a gcc2
1960 builtin and then its argument prototype would still apply. */
1967 if { (eval echo configure
:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1969 eval "ac_cv_lib_$ac_lib_var=yes"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 eval "ac_cv_lib_$ac_lib_var=no"
1977 LIBS
="$ac_save_LIBS"
1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1984 echo "$ac_t""no" 1>&6
1988 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1989 echo "configure:1990: checking for opendir in -lx" >&5
1990 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 ac_save_LIBS
="$LIBS"
1996 cat > conftest.
$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* Override any gcc2 internal prototype to avoid an error. */
2000 /* We use char because int might match the return type of a gcc2
2001 builtin and then its argument prototype would still apply. */
2008 if { (eval echo configure
:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 eval "ac_cv_lib_$ac_lib_var=no"
2018 LIBS
="$ac_save_LIBS"
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2025 echo "$ac_t""no" 1>&6
2030 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2031 echo "configure:2032: checking for ANSI C header files" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.
$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2044 { (eval echo configure
:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2045 ac_err
=`grep -v '^ *+' conftest.out`
2046 if test -z "$ac_err"; then
2048 ac_cv_header_stdc
=yes
2051 echo "configure: failed program was:" >&5
2052 cat conftest.
$ac_ext >&5
2054 ac_cv_header_stdc
=no
2058 if test $ac_cv_header_stdc = yes; then
2059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2060 cat > conftest.
$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2066 egrep "memchr" >/dev
/null
2>&1; then
2070 ac_cv_header_stdc
=no
2076 if test $ac_cv_header_stdc = yes; then
2077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2084 egrep "free" >/dev
/null
2>&1; then
2088 ac_cv_header_stdc
=no
2094 if test $ac_cv_header_stdc = yes; then
2095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2096 if test "$cross_compiling" = yes; then
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2104 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2106 int main () { int i; for (i = 0; i < 256; i++)
2107 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2111 if { (eval echo configure
:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 ac_cv_header_stdc
=no
2126 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2127 if test $ac_cv_header_stdc = yes; then
2128 cat >> confdefs.h
<<\EOF
2129 #define STDC_HEADERS 1
2194 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_hdr" >&5
2197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2206 { (eval echo configure
:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2207 ac_err
=`grep -v '^ *+' conftest.out`
2208 if test -z "$ac_err"; then
2210 eval "ac_cv_header_$ac_safe=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 eval "ac_cv_header_$ac_safe=no"
2220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_hdr 1
2228 echo "$ac_t""no" 1>&6
2233 echo $ac_n "checking for working const""... $ac_c" 1>&6
2234 echo "configure:2235: checking for working const" >&5
2235 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2244 /* Ultrix mips cc rejects this. */
2245 typedef int charset[2]; const charset x;
2246 /* SunOS 4.1.1 cc rejects this. */
2247 char const *const *ccp;
2249 /* NEC SVR4.0.2 mips cc rejects this. */
2250 struct point {int x, y;};
2251 static struct point const zero = {0,0};
2252 /* AIX XL C 1.02.0.0 rejects this.
2253 It does not let you subtract one const X* pointer from another in an arm
2254 of an if-expression whose if-part is not a constant expression */
2255 const char *g = "string";
2256 ccp = &g + (g ? g-g : 0);
2257 /* HPUX 7.0 cc rejects these. */
2260 ccp = (char const *const *) p;
2261 { /* SCO 3.2v4 cc rejects this. */
2263 char const *s = 0 ? (char *) 0 : (char const *) 0;
2267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2269 const int *foo = &x[0];
2272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2273 typedef const int *iptr;
2277 { /* AIX XL C 1.02.0.0 rejects this saying
2278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2279 struct s { int j; const int *ap[3]; };
2280 struct s *b; b->j = 5;
2282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2288 if { (eval echo configure
:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2300 echo "$ac_t""$ac_cv_c_const" 1>&6
2301 if test $ac_cv_c_const = no
; then
2302 cat >> confdefs.h
<<\EOF
2308 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2309 echo "configure:2310: checking whether byte ordering is bigendian" >&5
2310 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 ac_cv_c_bigendian
=unknown
2314 # See if sys/param.h defines the BYTE_ORDER macro.
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 #include <sys/types.h>
2319 #include <sys/param.h>
2322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2327 if { (eval echo configure
:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329 # It does; now see whether it defined to BIG_ENDIAN or not.
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2334 #include <sys/param.h>
2337 #if BYTE_ORDER != BIG_ENDIAN
2342 if { (eval echo configure
:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2344 ac_cv_c_bigendian
=yes
2346 echo "configure: failed program was:" >&5
2347 cat conftest.
$ac_ext >&5
2349 ac_cv_c_bigendian
=no
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2357 if test $ac_cv_c_bigendian = unknown
; then
2358 if test "$cross_compiling" = yes; then
2359 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2365 /* Are we little or big endian? From Harbison&Steele. */
2369 char c[sizeof (long)];
2372 exit (u.c[sizeof (long) - 1] == 1);
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2377 ac_cv_c_bigendian
=no
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 ac_cv_c_bigendian
=yes
2390 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2391 if test $ac_cv_c_bigendian = yes; then
2392 cat >> confdefs.h
<<\EOF
2393 #define WORDS_BIGENDIAN 1
2399 echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6
2400 echo "configure:2401: checking if ANSI prototypes work" >&5
2401 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 int foo(char *); int foo (char *bar) {return 1;}
2413 if { (eval echo configure
:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 ac_cv_have_ansi_prototypes
="yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2420 ac_cv_have_ansi_prototypes
="no"
2426 echo "$ac_t""$ac_cv_have_ansi_prototypes" 1>&6
2427 if test $ac_cv_have_ansi_prototypes = "yes" ; then
2428 cat >> confdefs.h
<<\EOF
2429 #define HAVE_ANSI_PROTOTYPES 1
2434 echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6
2435 echo "configure:2436: checking for tm->tm_gmtoff" >&5
2436 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2444 #include <sys/time.h>
2450 if { (eval echo configure
:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2452 ac_cv_have_tm_gmoff
="yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 ac_cv_have_tm_gmoff
="no"
2463 echo "$ac_t""$ac_cv_have_tm_gmoff" 1>&6
2464 if test $ac_cv_have_tm_gmoff = "yes" ; then
2465 cat >> confdefs.h
<<\EOF
2466 #define HAVE_TM_GMTOFF 1
2471 echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6
2472 echo "configure:2473: checking for extended mallinfo" >&5
2473 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <sys/types.h>
2483 struct mallinfo foo;
2487 if { (eval echo configure
:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2489 ac_cv_have_ext_mallinfo
="yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2494 ac_cv_have_ext_mallinfo
="no"
2500 echo "$ac_t""$ac_cv_have_ext_mallinfo" 1>&6
2501 if test $ac_cv_have_ext_mallinfo = "yes" ; then
2502 cat >> confdefs.h
<<\EOF
2503 #define HAVE_EXT_MALLINFO 1
2508 echo $ac_n "checking for struct rusage""... $ac_c" 1>&6
2509 echo "configure:2510: checking for struct rusage" >&5
2510 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2519 #include <sys/time.h>
2521 #if HAVE_SYS_RESOURCE_H
2522 #include <sys/resource.h>
2528 if { (eval echo configure
:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2530 ac_cv_have_struct_rusage
="yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 ac_cv_have_struct_rusage
="no"
2541 echo "$ac_t""$ac_cv_have_struct_rusage" 1>&6
2542 if test $ac_cv_have_struct_rusage = "yes" ; then
2543 cat >> confdefs.h
<<\EOF
2544 #define HAVE_STRUCT_RUSAGE 1
2549 echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6
2550 echo "configure:2551: checking for ip->ip_hl" >&5
2551 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 #include <sys/types.h>
2559 #include <netinet/in.h>
2560 #include <netinet/in_systm.h>
2561 #include <netinet/ip.h>
2573 if { (eval echo configure
:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2575 ac_cv_have_ip_hl
="yes"
2577 echo "configure: failed program was:" >&5
2578 cat conftest.
$ac_ext >&5
2580 ac_cv_have_ip_hl
="no"
2586 echo "$ac_t""$ac_cv_have_ip_hl" 1>&6
2587 if test $ac_cv_have_ip_hl = "yes" ; then
2588 cat >> confdefs.h
<<\EOF
2589 #define HAVE_IP_HL 1
2594 echo $ac_n "checking size of int""... $ac_c" 1>&6
2595 echo "configure:2596: checking size of int" >&5
2596 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 if test "$cross_compiling" = yes; then
2600 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2608 FILE *f=fopen("conftestval", "w");
2610 fprintf(f, "%d\n", sizeof(int));
2614 if { (eval echo configure
:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2616 ac_cv_sizeof_int
=`cat conftestval`
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2627 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2628 cat >> confdefs.h
<<EOF
2629 #define SIZEOF_INT $ac_cv_sizeof_int
2633 echo $ac_n "checking size of long""... $ac_c" 1>&6
2634 echo "configure:2635: checking size of long" >&5
2635 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 if test "$cross_compiling" = yes; then
2639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2647 FILE *f=fopen("conftestval", "w");
2649 fprintf(f, "%d\n", sizeof(long));
2653 if { (eval echo configure
:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2655 ac_cv_sizeof_long
=`cat conftestval`
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2666 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2667 cat >> confdefs.h
<<EOF
2668 #define SIZEOF_LONG $ac_cv_sizeof_long
2673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2674 # for constant arguments. Useless!
2675 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2676 echo "configure:2677: checking for working alloca.h" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2685 char *p = alloca(2 * sizeof(int));
2688 if { (eval echo configure
:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2690 ac_cv_header_alloca_h
=yes
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 ac_cv_header_alloca_h
=no
2700 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2701 if test $ac_cv_header_alloca_h = yes; then
2702 cat >> confdefs.h
<<\EOF
2703 #define HAVE_ALLOCA_H 1
2708 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2709 echo "configure:2710: checking for alloca" >&5
2710 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 # define alloca __builtin_alloca
2721 # include <alloca.h>
2726 # ifndef alloca /* predefined by HP cc +Olibcalls */
2734 char *p = (char *) alloca(1);
2737 if { (eval echo configure
:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2739 ac_cv_func_alloca_works
=yes
2741 echo "configure: failed program was:" >&5
2742 cat conftest.
$ac_ext >&5
2744 ac_cv_func_alloca_works
=no
2749 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2750 if test $ac_cv_func_alloca_works = yes; then
2751 cat >> confdefs.h
<<\EOF
2752 #define HAVE_ALLOCA 1
2757 if test $ac_cv_func_alloca_works = no
; then
2758 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2759 # that cause trouble. Some versions do not even contain alloca or
2760 # contain a buggy version. If you still want to use their alloca,
2761 # use ar to extract alloca.o from them instead of compiling alloca.c.
2763 cat >> confdefs.h
<<\EOF
2768 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2769 echo "configure:2770: checking whether alloca needs Cray hooks" >&5
2770 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.
$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #if defined(CRAY) && ! defined(CRAY2)
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 egrep "webecray" >/dev
/null
2>&1; then
2795 echo "$ac_t""$ac_cv_os_cray" 1>&6
2796 if test $ac_cv_os_cray = yes; then
2797 for ac_func
in _getb67 GETB67 getb67
; do
2798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_func" >&5
2800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.
$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 /* System header to define __stub macros and hopefully few prototypes,
2807 which can conflict with char $ac_func(); below. */
2809 /* Override any gcc2 internal prototype to avoid an error. */
2810 /* We use char because int might match the return type of a gcc2
2811 builtin and then its argument prototype would still apply. */
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2827 if { (eval echo configure
:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2829 eval "ac_cv_func_$ac_func=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2834 eval "ac_cv_func_$ac_func=no"
2839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 cat >> confdefs.h
<<EOF
2842 #define CRAY_STACKSEG_END $ac_func
2847 echo "$ac_t""no" 1>&6
2853 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2854 echo "configure:2855: checking stack direction for C alloca" >&5
2855 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 if test "$cross_compiling" = yes; then
2859 ac_cv_c_stack_direction
=0
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 find_stack_direction ()
2866 static char *addr = 0;
2871 return find_stack_direction ();
2874 return (&dummy > addr) ? 1 : -1;
2878 exit (find_stack_direction() < 0);
2881 if { (eval echo configure
:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2883 ac_cv_c_stack_direction
=1
2885 echo "configure: failed program was:" >&5
2886 cat conftest.
$ac_ext >&5
2888 ac_cv_c_stack_direction
=-1
2895 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2896 cat >> confdefs.h
<<EOF
2897 #define STACK_DIRECTION $ac_cv_c_stack_direction
2903 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2904 echo "configure:2905: checking for pid_t" >&5
2905 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2920 ac_cv_type_pid_t
=yes
2928 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2929 if test $ac_cv_type_pid_t = no
; then
2930 cat >> confdefs.h
<<\EOF
2936 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2937 echo "configure:2938: checking for size_t" >&5
2938 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2953 ac_cv_type_size_t
=yes
2956 ac_cv_type_size_t
=no
2961 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2962 if test $ac_cv_type_size_t = no
; then
2963 cat >> confdefs.h
<<\EOF
2964 #define size_t unsigned int
2969 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2970 echo "configure:2971: checking for ssize_t" >&5
2971 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <sys/types.h>
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2986 ac_cv_type_ssize_t
=yes
2989 ac_cv_type_ssize_t
=no
2994 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2995 if test $ac_cv_type_ssize_t = no
; then
2996 cat >> confdefs.h
<<\EOF
3002 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3003 echo "configure:3004: checking for off_t" >&5
3004 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/types.h>
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3019 ac_cv_type_off_t
=yes
3027 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3028 if test $ac_cv_type_off_t = no
; then
3029 cat >> confdefs.h
<<\EOF
3035 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3036 echo "configure:3037: checking for mode_t" >&5
3037 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <sys/types.h>
3049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3050 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3052 ac_cv_type_mode_t
=yes
3055 ac_cv_type_mode_t
=no
3060 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3061 if test $ac_cv_type_mode_t = no
; then
3062 cat >> confdefs.h
<<\EOF
3063 #define mode_t u_short
3068 echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
3069 echo "configure:3070: checking for fd_mask" >&5
3070 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.
$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <sys/types.h>
3082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 egrep "fd_mask[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3085 ac_cv_type_fd_mask
=yes
3088 ac_cv_type_fd_mask
=no
3093 echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
3094 if test $ac_cv_type_fd_mask = no
; then
3095 cat >> confdefs.h
<<\EOF
3102 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3103 echo "configure:3104: checking for socklen_t" >&5
3104 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <sys/types.h>
3112 #include <sys/socket.h>
3118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3121 ac_cv_type_socklen_t
=yes
3124 ac_cv_type_socklen_t
=no
3131 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3132 if test $ac_cv_type_socklen_t = no
; then
3133 cat >> confdefs.h
<<\EOF
3134 #define socklen_t int
3139 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3140 echo "configure:3141: checking for main in -lnsl" >&5
3141 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 ac_save_LIBS
="$LIBS"
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3155 if { (eval echo configure
:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3157 eval "ac_cv_lib_$ac_lib_var=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 eval "ac_cv_lib_$ac_lib_var=no"
3165 LIBS
="$ac_save_LIBS"
3168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3172 cat >> confdefs.h
<<EOF
3173 #define $ac_tr_lib 1
3179 echo "$ac_t""no" 1>&6
3182 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3183 echo "configure:3184: checking for main in -lsocket" >&5
3184 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
3185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_save_LIBS
="$LIBS"
3189 LIBS
="-lsocket $LIBS"
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3198 if { (eval echo configure
:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3202 echo "configure: failed program was:" >&5
3203 cat conftest.
$ac_ext >&5
3205 eval "ac_cv_lib_$ac_lib_var=no"
3208 LIBS
="$ac_save_LIBS"
3211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3213 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3215 cat >> confdefs.h
<<EOF
3216 #define $ac_tr_lib 1
3219 LIBS
="-lsocket $LIBS"
3222 echo "$ac_t""no" 1>&6
3226 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
3227 echo "skipping libmalloc check (--enable-dlmalloc specified)"
3229 echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
3230 echo "configure:3231: checking for main in -lgnumalloc" >&5
3231 ac_lib_var
=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
3232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 ac_save_LIBS
="$LIBS"
3236 LIBS
="-lgnumalloc $LIBS"
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3245 if { (eval echo configure
:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3247 eval "ac_cv_lib_$ac_lib_var=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_lib_$ac_lib_var=no"
3255 LIBS
="$ac_save_LIBS"
3258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ac_tr_lib
=HAVE_LIB
`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3262 cat >> confdefs.h
<<EOF
3263 #define $ac_tr_lib 1
3266 LIBS
="-lgnumalloc $LIBS"
3269 echo "$ac_t""no" 1>&6
3272 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
3273 echo "Disabling extended malloc functions when using gnumalloc"
3274 ac_cv_func_mallinfo
=no
3275 ac_cv_func_mallocblksize
=no
3276 ac_cv_func_mallopt
=no
3280 echo "skipping libmalloc check for $host"
3283 echo "skipping libmalloc check for $host"
3287 echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
3288 echo "configure:3289: checking for main in -lmalloc" >&5
3289 ac_lib_var
=`echo malloc'_'main | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS
="$LIBS"
3294 LIBS
="-lmalloc $LIBS"
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3303 if { (eval echo configure
:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 eval "ac_cv_lib_$ac_lib_var=no"
3313 LIBS
="$ac_save_LIBS"
3316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_lib
=HAVE_LIB
`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3320 cat >> confdefs.h
<<EOF
3321 #define $ac_tr_lib 1
3324 LIBS
="-lmalloc $LIBS"
3327 echo "$ac_t""no" 1>&6
3335 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3336 echo "configure:3337: checking for main in -lbsd" >&5
3337 ac_lib_var
=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 ac_save_LIBS
="$LIBS"
3343 cat > conftest.
$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3351 if { (eval echo configure
:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3353 eval "ac_cv_lib_$ac_lib_var=yes"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3358 eval "ac_cv_lib_$ac_lib_var=no"
3361 LIBS
="$ac_save_LIBS"
3364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_lib
=HAVE_LIB
`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3368 cat >> confdefs.h
<<EOF
3369 #define $ac_tr_lib 1
3375 echo "$ac_t""no" 1>&6
3378 echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
3379 echo "configure:3380: checking for main in -lregex" >&5
3380 ac_lib_var
=`echo regex'_'main | sed 'y%./+-%__p_%'`
3381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 ac_save_LIBS
="$LIBS"
3385 LIBS
="-lregex $LIBS"
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3396 eval "ac_cv_lib_$ac_lib_var=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 eval "ac_cv_lib_$ac_lib_var=no"
3404 LIBS
="$ac_save_LIBS"
3407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3411 echo "$ac_t""no" 1>&6
3414 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3415 echo "configure:3416: checking for gethostbyname in -lbind" >&5
3416 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 ac_save_LIBS
="$LIBS"
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 /* We use char because int might match the return type of a gcc2
3427 builtin and then its argument prototype would still apply. */
3428 char gethostbyname();
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3436 eval "ac_cv_lib_$ac_lib_var=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 eval "ac_cv_lib_$ac_lib_var=no"
3444 LIBS
="$ac_save_LIBS"
3447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 ac_tr_lib
=HAVE_LIB
`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3451 cat >> confdefs.h
<<EOF
3452 #define $ac_tr_lib 1
3458 echo "$ac_t""no" 1>&6
3461 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
3464 echo "skipping libresolv checks for $host"
3467 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3468 echo "configure:3469: checking for inet_aton in -lresolv" >&5
3469 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS
="$LIBS"
3474 LIBS
="-lresolv $LIBS"
3475 cat > conftest.
$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3487 if { (eval echo configure
:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.
$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS
="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
3503 echo "configure:3504: checking for inet_aton in -l44bsd" >&5
3504 ac_lib_var
=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
3505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_save_LIBS
="$LIBS"
3509 LIBS
="-l44bsd $LIBS"
3510 cat > conftest.
$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3522 if { (eval echo configure
:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3524 eval "ac_cv_lib_$ac_lib_var=yes"
3526 echo "configure: failed program was:" >&5
3527 cat conftest.
$ac_ext >&5
3529 eval "ac_cv_lib_$ac_lib_var=no"
3532 LIBS
="$ac_save_LIBS"
3535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_lib
=HAVE_LIB
`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
3538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3539 cat >> confdefs.h
<<EOF
3540 #define $ac_tr_lib 1
3543 LIBS
="-l44bsd $LIBS"
3546 echo "$ac_t""no" 1>&6
3550 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3554 echo "configure:3555: checking for main in -lresolv" >&5
3555 ac_lib_var
=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS
="$LIBS"
3560 LIBS
="-lresolv $LIBS"
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3569 if { (eval echo configure
:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS
="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3586 cat >> confdefs.h
<<EOF
3587 #define $ac_tr_lib 1
3590 LIBS
="-lresolv $LIBS"
3593 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3600 echo "configure:3601: checking for main in -lm" >&5
3601 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 ac_save_LIBS
="$LIBS"
3607 cat > conftest.
$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3615 if { (eval echo configure
:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3617 eval "ac_cv_lib_$ac_lib_var=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3622 eval "ac_cv_lib_$ac_lib_var=no"
3625 LIBS
="$ac_save_LIBS"
3628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3630 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3632 cat >> confdefs.h
<<EOF
3633 #define $ac_tr_lib 1
3639 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3644 echo "configure:3645: checking for crypt in -lcrypt" >&5
3645 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 ac_save_LIBS
="$LIBS"
3650 LIBS
="-lcrypt $LIBS"
3651 cat > conftest.
$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3663 if { (eval echo configure
:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3670 eval "ac_cv_lib_$ac_lib_var=no"
3673 LIBS
="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_lib
=HAVE_LIB
`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3680 cat >> confdefs.h
<<EOF
3681 #define $ac_tr_lib 1
3684 LIBS
="-lcrypt $LIBS"
3687 echo "$ac_t""no" 1>&6
3690 if test $ac_cv_lib_crypt_crypt = "yes"; then
3695 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
3696 echo "configure:3697: checking for main in -lpthread" >&5
3697 ac_lib_var
=`echo pthread'_'main | sed 'y%./+-%__p_%'`
3698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 ac_save_LIBS
="$LIBS"
3702 LIBS
="-lpthread $LIBS"
3703 cat > conftest.
$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3711 if { (eval echo configure
:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3713 eval "ac_cv_lib_$ac_lib_var=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.
$ac_ext >&5
3718 eval "ac_cv_lib_$ac_lib_var=no"
3721 LIBS
="$ac_save_LIBS"
3724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3727 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3728 cat >> confdefs.h
<<EOF
3729 #define $ac_tr_lib 1
3732 LIBS
="-lpthread $LIBS"
3735 echo "$ac_t""no" 1>&6
3738 if test $ac_cv_lib_pthread_main = "yes"; then
3739 PTHREADLIB
="-lpthread"
3745 if test "$GCC" = "yes"; then
3746 echo "Removing -O for gcc on $host"
3747 CFLAGS
="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
3751 echo "Removing -lsocket for IRIX..."
3752 LIBS
=`echo $LIBS | sed -e s/-lsocket//`
3753 echo "Removing -lnsl for IRIX..."
3754 LIBS
=`echo $LIBS | sed -e s/-lnsl//`
3755 echo "Removing -lbsd for IRIX..."
3756 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
3759 echo "Removing -lbsd for AIX..."
3760 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
3761 echo "disabling snprintf/vsnprintf for $host"
3762 ac_cv_func_snprintf
=no
3763 ac_cv_func_vsnprintf
=no
3764 echo "disabling seteuid for $host"
3765 ac_cv_func_seteuid
=no
3768 CFLAGS
="$CFLAGS -D_SQUID_MOTOROLA_"
3769 cat >> confdefs.h
<<\EOF
3770 #define GETTIMEOFDAY_NO_TZP 1
3775 cat >> confdefs.h
<<\EOF
3776 #define GETTIMEOFDAY_NO_TZP 1
3781 cat >> confdefs.h
<<\EOF
3782 #define GETTIMEOFDAY_NO_TZP 1
3788 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
3791 if test `uname -v` = "2.03"; then
3792 echo "disabling mallinfo for $host"
3793 ac_cv_func_mallinfo
=no
3798 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
3799 # when running configure.
3800 if test -z "$ac_cv_func_poll"; then
3803 # John Kay (jkay@nlanr.net) 19970818
3804 echo "disabling poll for $host..."
3805 ac_cv_func_poll
='no'
3809 echo "disabling poll for $host..."
3810 ac_cv_func_poll
='no'
3813 # Henrik Nordstrom (hno@hem.passagen.se) 19980817
3814 # poll is problematic on Linux. We disable it
3815 # by default until Linux gets it right.
3816 echo "disabling poll for $host..."
3817 ac_cv_func_poll
='no'
3819 powerpc-ibm-aix4.1.
*)
3820 # Mike Laster (mlaster@metavillage.com) 19981021
3821 echo "disabling poll for $host..."
3822 ac_cv_func_poll
='no'
3869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3870 echo "configure:3871: checking for $ac_func" >&5
3871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 cat > conftest.
$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* System header to define __stub macros and hopefully few prototypes,
3878 which can conflict with char $ac_func(); below. */
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3887 /* The GNU C library defines this for functions which it implements
3888 to always fail with ENOSYS. Some functions are actually named
3889 something starting with __ and the normal name is an alias. */
3890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3898 if { (eval echo configure
:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3900 eval "ac_cv_func_$ac_func=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 eval "ac_cv_func_$ac_func=no"
3910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3911 echo "$ac_t""yes" 1>&6
3912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3913 cat >> confdefs.h
<<EOF
3914 #define $ac_tr_func 1
3918 echo "$ac_t""no" 1>&6
3923 if test "$async_io" = "yes" ; then
3925 pthread_attr_setscope \
3926 pthread_setschedparam \
3927 pthread_attr_setschedparam \
3930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3931 echo "configure:3932: checking for $ac_func" >&5
3932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 cat > conftest.
$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* System header to define __stub macros and hopefully few prototypes,
3939 which can conflict with char $ac_func(); below. */
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3948 /* The GNU C library defines this for functions which it implements
3949 to always fail with ENOSYS. Some functions are actually named
3950 something starting with __ and the normal name is an alias. */
3951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 if { (eval echo configure
:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3961 eval "ac_cv_func_$ac_func=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.
$ac_ext >&5
3966 eval "ac_cv_func_$ac_func=no"
3971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3974 cat >> confdefs.h
<<EOF
3975 #define $ac_tr_func 1
3979 echo "$ac_t""no" 1>&6
3985 echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
3986 echo "configure:3987: checking if setresuid is implemented" >&5
3987 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 if test "$cross_compiling" = yes; then
3991 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3999 if(setresuid(-1,-1,-1)) {
4000 perror("setresuid:");
4007 if { (eval echo configure
:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4009 ac_cv_func_setresuid
="yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.
$ac_ext >&5
4014 ac_cv_func_setresuid
="no"
4022 echo "$ac_t""$ac_cv_func_setresuid" 1>&6
4023 if test "$ac_cv_func_setresuid" = "yes" ; then
4024 cat >> confdefs.h
<<\EOF
4025 #define HAVE_SETRESUID 1
4030 if test "$IPF_TRANSPARENT" ; then
4031 echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
4032 echo "configure:4033: checking if IP-Filter header files are installed" >&5
4033 if test "$ac_cv_header_ip_compat_h" = "no" ||
4034 test "$ac_cv_header_ip_fil_h" = "no" ||
4035 test "$ac_cv_header_ip_nat_h" = "no" ; then
4036 IPF_TRANSPARENT
="no"
4037 cat >> confdefs.h
<<\EOF
4038 #define IPF_TRANSPARENT 0
4042 IPF_TRANSPARENT
="yes"
4043 cat >> confdefs.h
<<\EOF
4044 #define IPF_TRANSPARENT 1
4048 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
4050 if test "$IPF_TRANSPARENT" = "no" ; then
4051 echo "WARNING: Cannot find necessary IP-Filter header files"
4052 echo " Transparent Proxy support WILL NOT be enabled"
4056 if test -z "$USE_GNUREGEX" ; then
4058 *-sun-solaris2.
[0-4])
4066 echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
4067 echo "configure:4068: checking if GNUregex needs to be compiled" >&5
4068 if test -z "$USE_GNUREGEX"; then
4069 if test "$ac_cv_func_regcomp" = "no" ||
test "$USE_GNUREGEX" = "yes" ; then
4072 cat > conftest.
$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <sys/types.h>
4078 regex_t t; regcomp(&t,"",0);
4081 if { (eval echo configure
:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 echo "configure: failed program was:" >&5
4086 cat conftest.
$ac_ext >&5
4093 echo "$ac_t""$USE_GNUREGEX" 1>&6
4094 if test "$USE_GNUREGEX" = "yes"; then
4096 LIBREGEX
="libregex.a"
4097 cat >> confdefs.h
<<\EOF
4098 #define USE_GNUREGEX 1
4111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4112 echo "configure:4113: checking for $ac_func" >&5
4113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.
$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 /* System header to define __stub macros and hopefully few prototypes,
4120 which can conflict with char $ac_func(); below. */
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4129 /* The GNU C library defines this for functions which it implements
4130 to always fail with ENOSYS. Some functions are actually named
4131 something starting with __ and the normal name is an alias. */
4132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4140 if { (eval echo configure
:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4142 eval "ac_cv_func_$ac_func=yes"
4144 echo "configure: failed program was:" >&5
4145 cat conftest.
$ac_ext >&5
4147 eval "ac_cv_func_$ac_func=no"
4152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4154 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4155 cat >> confdefs.h
<<EOF
4156 #define $ac_tr_func 1
4160 echo "$ac_t""no" 1>&6
4161 LIBOBJS
="$LIBOBJS ${ac_func}.o"
4167 echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
4168 echo "configure:4169: checking Default FD_SETSIZE value" >&5
4169 if test "$cross_compiling" = yes; then
4170 DEFAULT_FD_SETSIZE
=256
4172 cat > conftest.
$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4183 #include <sys/time.h>
4185 #if HAVE_SYS_SELECT_H
4186 #include <sys/select.h>
4188 #if HAVE_SYS_TYPES_H
4189 #include <sys/types.h>
4192 fprintf (fopen("conftestval", "w"), "%d\n", FD_SETSIZE);
4197 if { (eval echo configure
:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4199 DEFAULT_FD_SETSIZE
=`cat conftestval`
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 DEFAULT_FD_SETSIZE
=256
4209 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
4210 cat >> confdefs.h
<<EOF
4211 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
4215 echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
4216 echo "configure:4217: checking Maximum number of filedescriptors we can open" >&5
4217 if test "$cross_compiling" = yes; then
4220 cat > conftest.
$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4226 #include <sys/time.h> /* needed on FreeBSD */
4227 #include <sys/param.h>
4228 #include <sys/resource.h>
4232 /* getrlimit and sysconf returns bogous values on cygwin32.
4233 * Number of fds is virtually unlimited in cygwin (sys/param.h)
4239 #if defined(RLIMIT_NOFILE)
4240 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
4241 perror("getrlimit: RLIMIT_NOFILE");
4243 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4244 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
4245 perror("setrlimit: RLIMIT_NOFILE");
4248 #elif defined(RLIMIT_OFILE)
4249 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
4250 perror("getrlimit: RLIMIT_OFILE");
4252 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4253 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
4254 perror("setrlimit: RLIMIT_OFILE");
4257 #endif /* RLIMIT_NOFILE */
4258 #endif /* HAVE_SETRLIMIT */
4259 #if HAVE_SYSCONF && defined(_SC_OPEN_MAX)
4260 i = sysconf(_SC_OPEN_MAX);
4261 #elif HAVE_GETDTABLESIZE && !defined(__linux__)
4262 i = getdtablesize();
4263 #elif defined(OPEN_MAX)
4265 #elif defined(NOFILE)
4267 #elif defined(_NFILE)
4270 while((j=open("/dev/null", 0)) > 0) i=j;
4271 close(i); close(i-1);
4274 #endif /* __CYGWIN32__ */
4275 fprintf (fopen("conftestval", "w"), "%d\n", i);
4280 if { (eval echo configure
:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4282 SQUID_MAXFD
=`cat conftestval`
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4292 echo "$ac_t""$SQUID_MAXFD" 1>&6
4293 cat >> confdefs.h
<<EOF
4294 #define SQUID_MAXFD $SQUID_MAXFD
4297 if test "$SQUID_MAXFD" -lt 512 ; then
4298 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
4299 echo " cache will be very busy. Please see the FAQ page"
4300 echo " http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors"
4301 echo " on how to increase your filedescriptor limit"
4305 echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
4306 echo "configure:4307: checking Default UDP send buffer size" >&5
4307 if test "$cross_compiling" = yes; then
4308 SQUID_UDP_SO_SNDBUF
=16384
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4316 #include <sys/types.h>
4317 #include <sys/socket.h>
4318 #include <netinet/in.h>
4321 int fd,val=0,len=sizeof(int);
4322 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4323 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4324 if (val<=0) exit(1);
4325 fprintf (fopen("conftestval", "w"), "%d\n", val);
4330 if { (eval echo configure
:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4332 SQUID_UDP_SO_SNDBUF
=`cat conftestval`
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4337 SQUID_UDP_SO_SNDBUF
=16384
4342 echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
4343 cat >> confdefs.h
<<EOF
4344 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
4348 echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
4349 echo "configure:4350: checking Default UDP receive buffer size" >&5
4350 if test "$cross_compiling" = yes; then
4351 SQUID_UDP_SO_RCVBUF
=16384
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4359 #include <sys/types.h>
4360 #include <sys/socket.h>
4361 #include <netinet/in.h>
4364 int fd,val=0,len=sizeof(int);
4365 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4366 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4367 if (val <= 0) exit(1);
4368 fprintf (fopen("conftestval", "w"), "%d\n", val);
4373 if { (eval echo configure
:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4375 SQUID_UDP_SO_RCVBUF
=`cat conftestval`
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 SQUID_UDP_SO_RCVBUF
=16384
4385 echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
4386 cat >> confdefs.h
<<EOF
4387 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
4391 echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
4392 echo "configure:4393: checking Default TCP send buffer size" >&5
4393 if test "$cross_compiling" = yes; then
4394 SQUID_TCP_SO_SNDBUF
=16384
4396 cat > conftest.
$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4402 #include <sys/types.h>
4403 #include <sys/socket.h>
4404 #include <netinet/in.h>
4407 int fd,val=0,len=sizeof(int);
4408 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4409 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4410 if (val <= 0) exit(1);
4411 fprintf (fopen("conftestval", "w"), "%d\n", val);
4416 if { (eval echo configure
:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4418 SQUID_TCP_SO_SNDBUF
=`cat conftestval`
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 SQUID_TCP_SO_SNDBUF
=16384
4428 echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
4429 cat >> confdefs.h
<<EOF
4430 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
4434 echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
4435 echo "configure:4436: checking Default TCP receive buffer size" >&5
4436 if test "$cross_compiling" = yes; then
4437 SQUID_TCP_SO_RCVBUF
=16384
4439 cat > conftest.
$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4445 #include <sys/types.h>
4446 #include <sys/socket.h>
4447 #include <netinet/in.h>
4450 int fd,val=0,len=sizeof(int);
4451 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4452 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4453 if (val <= 0) exit(1);
4454 fprintf (fopen("conftestval", "w"), "%d\n", val);
4459 if { (eval echo configure
:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4461 SQUID_TCP_SO_RCVBUF
=`cat conftestval`
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 SQUID_TCP_SO_RCVBUF
=16384
4471 echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
4472 cat >> confdefs.h
<<EOF
4473 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
4477 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
4478 echo "configure:4479: checking if sys_errlist is already defined" >&5
4479 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4487 char *s = sys_errlist0;
4490 if { (eval echo configure
:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4492 ac_cv_needs_sys_errlist
="no"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 ac_cv_needs_sys_errlist
="yes"
4503 echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
4504 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
4505 cat >> confdefs.h
<<\EOF
4506 #define NEED_SYS_ERRLIST 1
4511 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
4512 echo "configure:4513: checking for libresolv _dns_ttl_ hack" >&5
4513 cat > conftest.
$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 extern int _dns_ttl_;
4521 if { (eval echo configure
:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4523 echo "$ac_t""yes" 1>&6
4524 cat >> confdefs.h
<<\EOF
4525 #define LIBRESOLV_DNS_TTL_HACK 1
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 echo "$ac_t""no" 1>&6
4536 echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
4537 echo "configure:4538: checking if inet_ntoa() actually works" >&5
4538 if test "$cross_compiling" = yes; then
4539 INET_NTOA_RESULT
="broken"
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4547 #include <sys/types.h>
4548 #include <netinet/in.h>
4549 #include <arpa/inet.h>
4553 in.s_addr = inet_addr("1.2.3.4");
4554 fprintf (fopen("conftestval", "w"), "%s\n", inet_ntoa(in));
4559 if { (eval echo configure
:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4561 INET_NTOA_RESULT
=`cat conftestval`
4563 echo "configure: failed program was:" >&5
4564 cat conftest.
$ac_ext >&5
4566 INET_NTOA_RESULT
="broken"
4571 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
4572 echo "$ac_t"""yes"" 1>&6
4574 echo "$ac_t"""no
"" 1>&6
4575 echo "WARNING: This looks bad, and probably prevents Squid from working."
4576 echo " If you're on IRIX and using GCC 2.8, you probably need"
4577 echo " to use the IRIX C compiler instead."
4581 if test "$ac_cv_func_statvfs" = "yes" ; then
4582 echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
4583 echo "configure:4584: checking for working statvfs() interface" >&5
4584 cat > conftest.
$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4590 #include <sys/types.h>
4591 #include <sys/statvfs.h>
4596 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
4597 sfs.f_files = sfs.f_ffree = 0;
4598 statvfs("/tmp", &sfs);
4602 if { (eval echo configure
:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 ac_cv_func_statvfs
=yes
4606 echo "configure: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4609 ac_cv_func_statvfs
=no
4612 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
4615 echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
4616 echo "configure:4617: checking for _res.nsaddr_list" >&5
4617 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4624 #if HAVE_SYS_TYPES_H
4625 #include <sys/types.h>
4627 #if HAVE_NETINET_IN_H
4628 #include <netinet/in.h>
4630 #if HAVE_ARPA_INET_H
4631 #include <arpa/inet.h>
4633 #if HAVE_ARPA_NAMESER_H
4634 #include <arpa/nameser.h>
4641 _res.nsaddr_list[0];
4644 if { (eval echo configure
:4645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4646 ac_cv_have_res_nsaddr_list
="yes"
4648 echo "configure: failed program was:" >&5
4649 cat conftest.
$ac_ext >&5
4651 ac_cv_have_res_nsaddr_list
="no"
4656 echo "$ac_t""$ac_cv_have_res_nsaddr_list" 1>&6
4657 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_RES_NSADDR_LIST 1
4664 if test $ac_cv_have_res_nsaddr_list = "no" ; then
4665 echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
4666 echo "configure:4667: checking for _res.ns_list" >&5
4667 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 cat > conftest.
$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4674 #if HAVE_SYS_TYPES_H
4675 #include <sys/types.h>
4677 #if HAVE_NETINET_IN_H
4678 #include <netinet/in.h>
4680 #if HAVE_ARPA_INET_H
4681 #include <arpa/inet.h>
4683 #if HAVE_ARPA_NAMESER_H
4684 #include <arpa/nameser.h>
4691 _res.ns_list[0].addr;
4694 if { (eval echo configure
:4695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4696 ac_cv_have_res_ns_list
="yes"
4698 echo "configure: failed program was:" >&5
4699 cat conftest.
$ac_ext >&5
4701 ac_cv_have_res_ns_list
="no"
4706 echo "$ac_t""$ac_cv_have_res_ns_list" 1>&6
4707 if test $ac_cv_have_res_ns_list = "yes" ; then
4708 cat >> confdefs.h
<<\EOF
4709 #define HAVE_RES_NS_LIST 1
4716 if test "$ac_cv_lib_malloc_main" = "yes" ; then
4717 if test -r /usr
/lib
/debug
/malloc.o
; then
4718 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/malloc.o"
4720 if test -r /usr
/lib
/debug
/mallocmap.o
; then
4721 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
4727 if test -z "$XTRA_LIBS"; then
4729 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lcrypt//"`
4730 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lpthread//"`
4731 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
4739 cat > confcache
<<\EOF
4740 # This file is a shell script that caches the results of configure
4741 # tests run on this system so they can be shared between configure
4742 # scripts and configure runs. It is not useful on other systems.
4743 # If it contains results you don't want to keep, you may remove or edit it.
4745 # By default, configure uses ./config.cache as the cache file,
4746 # creating it if it does not exist already. You can give configure
4747 # the --cache-file=FILE option to use a different cache file; that is
4748 # what configure does when it calls configure scripts in
4749 # subdirectories, so they share the cache.
4750 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4751 # config.status only pays attention to the cache file if you give it the
4752 # --recheck option to rerun configure.
4755 # The following way of writing the cache mishandles newlines in values,
4756 # but we know of no workaround that is simple, portable, and efficient.
4757 # So, don't put newlines in cache variables' values.
4758 # Ultrix sh set writes to stderr and can't be redirected directly,
4759 # and sets the high bit in the cache file unless we assign to the vars.
4761 case `(ac_space=' '; set) 2>&1` in
4763 # `set' does not quote correctly, so add quotes (double-quote substitution
4764 # turns \\\\ into \\, and sed turns \\ into \).
4766 -e "s/'/'\\\\''/g" \
4767 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4770 # `set' quotes correctly as required by POSIX, so do not add quotes.
4771 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4774 if cmp -s $cache_file confcache
; then
4777 if test -w $cache_file; then
4778 echo "updating cache $cache_file"
4779 cat confcache
> $cache_file
4781 echo "not updating unwritable cache $cache_file"
4786 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4788 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4789 # Let make expand exec_prefix.
4790 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4792 # Any assignment to VPATH causes Sun make to only execute
4793 # the first set of double-colon rules, so remove it if not needed.
4794 # If there is a colon in the path, we need to keep it.
4795 if test "x$srcdir" = x.
; then
4796 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4799 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4801 DEFS
=-DHAVE_CONFIG_H
4803 # Without the "./", some shells look in PATH for config.status.
4804 : ${CONFIG_STATUS=./config.status}
4806 echo creating
$CONFIG_STATUS
4807 rm -f $CONFIG_STATUS
4808 cat > $CONFIG_STATUS <<EOF
4810 # Generated automatically by configure.
4811 # Run this file to recreate the current configuration.
4812 # This directory was configured as follows,
4813 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4815 # $0 $ac_configure_args
4817 # Compiler output produced by configure, useful for debugging
4818 # configure, is in ./config.log if it exists.
4820 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4823 case "\$ac_option" in
4824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4825 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4826 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4827 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4828 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4830 -help | --help | --hel | --he | --h)
4831 echo "\$ac_cs_usage"; exit 0 ;;
4832 *) echo "\$ac_cs_usage"; exit 1 ;;
4836 ac_given_srcdir=$srcdir
4837 ac_given_INSTALL="$INSTALL"
4839 trap 'rm -fr `echo "\
4842 ./include/config.h \
4843 ./scripts/Makefile \
4844 ./scripts/RunCache \
4845 ./scripts/RunAccel \
4847 ./contrib/Makefile \
4851 ./auth_modules/dummy \
4852 ./auth_modules/NCSA/Makefile \
4853 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4855 cat >> $CONFIG_STATUS <<EOF
4857 # Protect against being on the right side of a sed subst in config.status.
4858 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4859 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4862 s%@CFLAGS@%$CFLAGS%g
4863 s%@CPPFLAGS@%$CPPFLAGS%g
4864 s%@CXXFLAGS@%$CXXFLAGS%g
4866 s%@LDFLAGS@%$LDFLAGS%g
4868 s%@exec_prefix@%$exec_prefix%g
4869 s%@prefix@%$prefix%g
4870 s%@program_transform_name@%$program_transform_name%g
4871 s%@bindir@%$bindir%g
4872 s%@sbindir@%$sbindir%g
4873 s%@libexecdir@%$libexecdir%g
4874 s%@datadir@%$datadir%g
4875 s%@sysconfdir@%$sysconfdir%g
4876 s%@sharedstatedir@%$sharedstatedir%g
4877 s%@localstatedir@%$localstatedir%g
4878 s%@libdir@%$libdir%g
4879 s%@includedir@%$includedir%g
4880 s%@oldincludedir@%$oldincludedir%g
4881 s%@infodir@%$infodir%g
4882 s%@mandir@%$mandir%g
4884 s%@host_alias@%$host_alias%g
4885 s%@host_cpu@%$host_cpu%g
4886 s%@host_vendor@%$host_vendor%g
4887 s%@host_os@%$host_os%g
4888 s%@exec_suffix@%$exec_suffix%g
4889 s%@cgi_suffix@%$cgi_suffix%g
4890 s%@CACHE_HTTP_PORT@%$CACHE_HTTP_PORT%g
4891 s%@CACHE_ICP_PORT@%$CACHE_ICP_PORT%g
4893 s%@LIBDLMALLOC@%$LIBDLMALLOC%g
4894 s%@LIB_MALLOC@%$LIB_MALLOC%g
4895 s%@ASYNC_OBJS@%$ASYNC_OBJS%g
4896 s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
4897 s%@DELAY_OBJS@%$DELAY_OBJS%g
4898 s%@SNMPLIB@%$SNMPLIB%g
4899 s%@SNMP_OBJS@%$SNMP_OBJS%g
4900 s%@makesnmplib@%$makesnmplib%g
4901 s%@HTCP_OBJS@%$HTCP_OBJS%g
4902 s%@ERR_LANGUAGE@%$ERR_LANGUAGE%g
4904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4905 s%@INSTALL_DATA@%$INSTALL_DATA%g
4906 s%@RANLIB@%$RANLIB%g
4916 s%@MAKEDEPEND@%$MAKEDEPEND%g
4919 s%@ALLOCA@%$ALLOCA%g
4920 s%@CRYPTLIB@%$CRYPTLIB%g
4921 s%@PTHREADLIB@%$PTHREADLIB%g
4922 s%@REGEXLIB@%$REGEXLIB%g
4923 s%@LIBREGEX@%$LIBREGEX%g
4924 s%@LIBOBJS@%$LIBOBJS%g
4925 s%@XTRA_OBJS@%$XTRA_OBJS%g
4926 s%@XTRA_LIBS@%$XTRA_LIBS%g
4931 cat >> $CONFIG_STATUS <<\EOF
4933 # Split the substitutions into bite-sized pieces for seds with
4934 # small command number limits, like on Digital OSF/1 and HP-UX.
4935 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4936 ac_file
=1 # Number of current file.
4937 ac_beg
=1 # First line for current file.
4938 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4941 while $ac_more_lines; do
4942 if test $ac_beg -gt 1; then
4943 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4945 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4947 if test ! -s conftest.s
$ac_file; then
4949 rm -f conftest.s
$ac_file
4951 if test -z "$ac_sed_cmds"; then
4952 ac_sed_cmds
="sed -f conftest.s$ac_file"
4954 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4956 ac_file
=`expr $ac_file + 1`
4958 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4961 if test -z "$ac_sed_cmds"; then
4966 cat >> $CONFIG_STATUS <<EOF
4968 CONFIG_FILES=\${CONFIG_FILES-"\
4971 ./include/config.h \
4972 ./scripts/Makefile \
4973 ./scripts/RunCache \
4974 ./scripts/RunAccel \
4976 ./contrib/Makefile \
4980 ./auth_modules/dummy \
4981 ./auth_modules/NCSA/Makefile \
4984 cat >> $CONFIG_STATUS <<\EOF
4985 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4988 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4989 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4990 *) ac_file_in
="${ac_file}.in" ;;
4993 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4995 # Remove last slash and all that follows it. Not all systems have dirname.
4996 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4997 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4998 # The file is in a subdirectory.
4999 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5000 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5001 # A "../" for each directory in $ac_dir_suffix.
5002 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5004 ac_dir_suffix
= ac_dots
=
5007 case "$ac_given_srcdir" in
5009 if test -z "$ac_dots"; then top_srcdir
=.
5010 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5011 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5013 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5014 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5017 case "$ac_given_INSTALL" in
5018 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5019 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5022 echo creating
"$ac_file"
5024 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5026 *Makefile
*) ac_comsub
="1i\\
5027 # $configure_input" ;;
5031 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5033 s%@configure_input@%$configure_input%g
5034 s%@srcdir@%$srcdir%g
5035 s%@top_srcdir@%$top_srcdir%g
5036 s%@INSTALL@%$INSTALL%g
5037 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5041 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5042 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5044 # ac_d sets the value in "#define NAME VALUE" lines.
5045 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5046 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5049 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5050 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5051 ac_uB
='\([ ]\)%\1#\2define\3'
5054 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5055 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5056 ac_eB
='$%\1#\2define\3'
5060 if test "${CONFIG_HEADERS+set}" != set; then
5062 cat >> $CONFIG_STATUS <<EOF
5063 CONFIG_HEADERS="include/autoconf.h"
5065 cat >> $CONFIG_STATUS <<\EOF
5067 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5070 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5071 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5072 *) ac_file_in
="${ac_file}.in" ;;
5075 echo creating
$ac_file
5077 rm -f conftest.frag conftest.
in conftest.out
5078 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5079 cat $ac_file_inputs > conftest.
in
5083 # Transform confdefs.h into a sed script conftest.vals that substitutes
5084 # the proper values into config.h.in to produce config.h. And first:
5085 # Protect against being on the right side of a sed subst in config.status.
5086 # Protect against being in an unquoted here document in config.status.
5088 cat > conftest.hdr
<<\EOF
5091 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5095 sed -n -f conftest.hdr confdefs.h > conftest.vals
5098 # This sed command replaces #undef with comments. This is necessary, for
5099 # example, in the case of _POSIX_SOURCE, which is predefined and required
5100 # on some systems where configure will not decide to define it.
5101 cat >> conftest.vals <<\EOF
5102 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5105 # Break up conftest.vals because some shells have a limit on
5106 # the size of here documents, and old seds have small limits too.
5111 ac_lines=`grep -c . conftest.vals
`
5112 # grep -c gives empty output for an empty file on some AIX systems.
5113 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5114 # Write a limited-size here document to conftest.frag.
5115 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5116 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5118 sed -f conftest.frag conftest.in > conftest.out
5120 mv conftest.out conftest.in
5122 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5124 mv conftest.tail conftest.vals
5128 cat >> $CONFIG_STATUS <<\EOF
5129 rm -f conftest.frag conftest.h
5130 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5131 cat conftest.in >> conftest.h
5133 if cmp -s $ac_file conftest.h 2>/dev/null; then
5134 echo "$ac_file is unchanged"
5137 # Remove last slash and all that follows it. Not all systems have dirname.
5138 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5139 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5140 # The file is in a subdirectory.
5141 test ! -d "$ac_dir" && mkdir "$ac_dir"
5144 mv conftest.h $ac_file
5149 cat >> $CONFIG_STATUS <<EOF
5152 cat >> $CONFIG_STATUS <<\EOF
5156 chmod +x $CONFIG_STATUS
5157 rm -fr confdefs* $ac_clean_files
5158 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1