]> git.ipfire.org Git - thirdparty/squid.git/blob - configure
2.1 branch merge
[thirdparty/squid.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/squid
15 ac_help="$ac_help
16 --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea"
17 ac_help="$ac_help
18 --enable-gnuregex Compile GNUregex"
19 ac_help="$ac_help
20 --enable-xmalloc-debug Do some simple malloc debugging"
21 ac_help="$ac_help
22 --enable-xmalloc-debug-trace
23 Detailed trace of memory allocations"
24 ac_help="$ac_help
25 --enable-xmalloc-statistics
26 Show malloc statistics in status page"
27 ac_help="$ac_help
28 --enable-carp Enable CARP support"
29 ac_help="$ac_help
30 --enable-async-io Do ASYNC disk I/O using threads"
31 ac_help="$ac_help
32 --enable-icmp Enable ICMP pinging"
33 ac_help="$ac_help
34 --enable-delay-pools Enable delay pools to limit bandwith usage"
35 ac_help="$ac_help
36 --enable-mem-gen-trace Do trace of memory stuff"
37 ac_help="$ac_help
38 --enable-useragent-log Enable logging of User-Agent header"
39 ac_help="$ac_help
40 --enable-kill-parent-hack
41 Kill parent on shutdown"
42 ac_help="$ac_help
43 --enable-snmp Enable SNMP monitoring"
44 ac_help="$ac_help
45 --enable-time-hack Update internal timestamp only once per second"
46 ac_help="$ac_help
47 --enable-cachemgr-hostname[=hostname]
48 Make cachemgr.cgi default to this host"
49 ac_help="$ac_help
50 --enable-arp-acl Enable use of ARP ACL lists (ether address)"
51 ac_help="$ac_help
52 --enable-htcp Enable HTCP protocol"
53 ac_help="$ac_help
54 --enable-forw-via-db Enable Forw/Via database"
55 ac_help="$ac_help
56 --enable-cache-digests Use Cache Digests
57 see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html"
58 ac_help="$ac_help
59 --enable-err-language=lang
60 Select language for Error pages (see errors dir) "
61 ac_help="$ac_help
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()."
68 ac_help="$ac_help
69 --disable-http-violations
70 This allows you to remove code which is known to
71 violate the HTTP protocol specification."
72 ac_help="$ac_help
73 --enable-ipf-transparent
74 Enable Transparent Proxy support for systems
75 using IP-Filter network address redirection."
76
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
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'
110
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 # Maximum number of lines to put in a shell here document.
115 ac_max_here_lines=12
116
117 ac_prev=
118 for ac_option
119 do
120
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
124 ac_prev=
125 continue
126 fi
127
128 case "$ac_option" in
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 *) ac_optarg= ;;
131 esac
132
133 # Accept the important Cygnus configure options, so we can diagnose typos.
134
135 case "$ac_option" in
136
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 ac_prev=bindir ;;
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
141
142 -build | --build | --buil | --bui | --bu)
143 ac_prev=build ;;
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
146
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" ;;
153
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 ac_prev=datadir ;;
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 | --da=*)
158 datadir="$ac_optarg" ;;
159
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; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
168
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; }
174 fi
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 case "$ac_option" in
177 *=*) ;;
178 *) ac_optarg=yes ;;
179 esac
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
181
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" ;;
190
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
193 with_gas=yes ;;
194
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.
198 cat << EOF
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
201 Configuration:
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
209 [$ac_default_prefix]
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 [same as prefix]
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
216 [PREFIX/share]
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 [PREFIX/com]
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
231 EOF
232 cat << EOF
233 Host type:
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
244 EOF
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
247 fi
248 exit 0 ;;
249
250 -host | --host | --hos | --ho)
251 ac_prev=host ;;
252 -host=* | --host=* | --hos=* | --ho=*)
253 host="$ac_optarg" ;;
254
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" ;;
261
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 ac_prev=infodir ;;
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
266
267 -libdir | --libdir | --libdi | --libd)
268 ac_prev=libdir ;;
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
271
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" ;;
278
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" ;;
287
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 ac_prev=mandir ;;
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
292
293 -nfp | --nfp | --nf)
294 # Obsolete; use --without-fp.
295 with_fp=no ;;
296
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 | --no-cr | --no-c)
299 no_create=yes ;;
300
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 no_recursion=yes ;;
304
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" ;;
313
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 ac_prev=prefix ;;
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
318
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" ;;
325
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" ;;
332
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" ;;
349
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
352 silent=yes ;;
353
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 ac_prev=sbindir ;;
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 | --sbi=* | --sb=*)
358 sbindir="$ac_optarg" ;;
359
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
363 | --sha | --sh)
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 | --sha=* | --sh=*)
369 sharedstatedir="$ac_optarg" ;;
370
371 -site | --site | --sit)
372 ac_prev=site ;;
373 -site=* | --site=* | --sit=*)
374 site="$ac_optarg" ;;
375
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
380
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" ;;
387
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
392
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
395
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.12"
398 exit 0 ;;
399
400 -with-* | --with-*)
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; }
405 fi
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
412
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; }
418 fi
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
421
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
425
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" ;;
432
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" ;;
439
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 ;;
442
443 *)
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
446 fi
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; }
449 fi
450 nonopt="$ac_option"
451 ;;
452
453 esac
454 done
455
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 fi
459
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461
462 # File descriptor usage:
463 # 0 standard input
464 # 1 file creation
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
471 exec 6>/dev/null
472 else
473 exec 6>&1
474 fi
475 exec 5>./config.log
476
477 echo "\
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
480 " 1>&5
481
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
484 ac_configure_args=
485 for ac_arg
486 do
487 case "$ac_arg" in
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" ;;
495 esac
496 done
497
498 # NLS nuisances.
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
507
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.
511 echo > confdefs.h
512
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
516
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.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
527 fi
528 else
529 ac_srcdir_defaulted=no
530 fi
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; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 fi
537 fi
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539
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"
544 else
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 fi
547 fi
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"
551 . "$ac_site_file"
552 fi
553 done
554
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
557 . $cache_file
558 else
559 echo "creating cache $cache_file"
560 > $cache_file
561 fi
562
563 ac_ext=c
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
569
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
573 ac_n= ac_c='
574 ' ac_t=' '
575 else
576 ac_n=-n ac_c= ac_t=
577 fi
578 else
579 ac_n= ac_c='\c' ac_t=
580 fi
581
582
583
584 # From configure.in Revision: 1.159.2.7
585 ac_aux_dir=
586 for ac_dir in cfgaux $srcdir/cfgaux; do
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
595 fi
596 done
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; }
599 fi
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.
603
604
605
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; }
609 fi
610
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
613
614 host_alias=$host
615 case "$host_alias" in
616 NONE)
617 case $nonopt in
618 NONE)
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; }
621 fi ;;
622 *) host_alias=$nonopt ;;
623 esac ;;
624 esac
625
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
631
632
633 CRYPTLIB=''
634 REGEXLIB='' # -lregex
635 LIBREGEX='' # libregex.a
636
637 if test "$libexecdir" = '${exec_prefix}/libexec'; then
638 libexecdir='${bindir}'
639 localstatedir='${prefix}'
640
641 fi
642
643 case "$host_os" in
644 cygwin32)
645 exec_suffix=".exe"
646 cgi_suffix=".exe"
647 ;;
648 *)
649 exec_suffix=""
650 cgi_suffix=".cgi"
651 ;;
652 esac
653
654
655
656 if test -z "$CACHE_HTTP_PORT"; then
657 CACHE_HTTP_PORT="3128"
658 fi
659 if test -z "$CACHE_ICP_PORT"; then
660 CACHE_ICP_PORT="3130"
661 fi
662
663
664
665
666 cat >> confdefs.h <<EOF
667 #define CONFIG_HOST_TYPE "$host"
668 EOF
669
670
671 if test -z "$LDFLAGS"; then
672 LDFLAGS="-g"
673 fi
674
675 PRESET_CFLAGS="$CFLAGS"
676
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
683 else
684 if test -n "$CC"; then
685 ac_cv_prog_CC="$CC" # Let the user override the test.
686 else
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
691 ac_cv_prog_CC="gcc"
692 break
693 fi
694 done
695 IFS="$ac_save_ifs"
696 fi
697 fi
698 CC="$ac_cv_prog_CC"
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
701 else
702 echo "$ac_t""no" 1>&6
703 fi
704
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
712 else
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
715 else
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
717 ac_prog_rejected=no
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
722 ac_prog_rejected=yes
723 continue
724 fi
725 ac_cv_prog_CC="cc"
726 break
727 fi
728 done
729 IFS="$ac_save_ifs"
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
733 shift
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.
738 shift
739 set dummy "$ac_dir/$ac_word" "$@"
740 shift
741 ac_cv_prog_CC="$@"
742 fi
743 fi
744 fi
745 fi
746 CC="$ac_cv_prog_CC"
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
749 else
750 echo "$ac_t""no" 1>&6
751 fi
752
753 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
754 fi
755
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
758
759 ac_ext=c
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
765
766 cat > conftest.$ac_ext <<EOF
767 #line 768 "configure"
768 #include "confdefs.h"
769 main(){return(0);}
770 EOF
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
776 else
777 ac_cv_prog_cc_cross=yes
778 fi
779 else
780 echo "configure: failed program was:" >&5
781 cat conftest.$ac_ext >&5
782 ac_cv_prog_cc_works=no
783 fi
784 rm -fr conftest*
785
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; }
789 fi
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
794
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
799 else
800 cat > conftest.c <<EOF
801 #ifdef __GNUC__
802 yes;
803 #endif
804 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
806 ac_cv_prog_gcc=yes
807 else
808 ac_cv_prog_gcc=no
809 fi
810 fi
811
812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813
814 if test $ac_cv_prog_gcc = yes; then
815 GCC=yes
816 ac_test_CFLAGS="${CFLAGS+set}"
817 ac_save_CFLAGS="$CFLAGS"
818 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
823 else
824 echo 'void f(){}' > conftest.c
825 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 ac_cv_prog_cc_g=yes
827 else
828 ac_cv_prog_cc_g=no
829 fi
830 rm -f conftest*
831
832 fi
833
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
838 CFLAGS="-g -O2"
839 else
840 CFLAGS="-O2"
841 fi
842 else
843 GCC=
844 test "${CFLAGS+set}" = set || CFLAGS="-g"
845 fi
846
847
848 case "$host" in
849 mab-next-nextstep3)
850 CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
851 ;;
852 esac
853
854 if test -z "$PRESET_CFLAGS"; then
855 if test "$GCC" = "yes"; then
856 case "$host" in
857 *-sun-sunos*)
858 # sunos has too many warnings for this to be useful
859 # motorola too
860 ;;
861 *m88k*)
862 # Motorola cc/ld does not like -02 but is ok on -O
863 CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
864 ;;
865 *)
866 CFLAGS="$CFLAGS -Wall"
867 ;;
868 esac
869 else
870 case "$host" in
871 *mips-sgi-irix6.4*)
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"
877 ;;
878 alpha-dec-osf4.*)
879 # Mogul says DEC compilers take both -g and -O2
880 CFLAGS="$CFLAGS -O2"
881 ;;
882 *)
883 ;;
884 esac
885 fi
886 fi
887
888 if test -z "$PRESET_LDFLAGS"; then
889 if test "$GCC" = "yes"; then
890 case "$host" in
891 *)
892 # nothing
893 ;;
894 esac
895 else
896 case "$host" in
897 *mips-sgi-irix6.4*)
898 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
899 LDFLAGS="-n32 -mips4 -nostdlib -L/usr/lib32"
900 ;;
901 esac
902 fi
903 fi
904
905 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
906 if test "${enable_dlmalloc+set}" = set; then
907 enableval="$enable_dlmalloc"
908
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
930 fi
931 case "$enableval" in
932 'yes')
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"
954 ;;
955 'no')
956 # Disabled explicitly.
957 echo "dlmalloc disabled."
958 ;;
959 *)
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."
981 ;;
982 esac
983
984 else
985
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
1007 fi
1008
1009 fi
1010
1011
1012
1013
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
1018 fi
1019
1020
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
1028 EOF
1029
1030 fi
1031
1032 fi
1033
1034
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
1042 EOF
1043
1044 cat >> confdefs.h <<\EOF
1045 #define XMALLOC_DEBUG 1
1046 EOF
1047
1048 fi
1049
1050 fi
1051
1052
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
1060 EOF
1061
1062 fi
1063
1064 fi
1065
1066
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
1073 #define USE_CARP 1
1074 EOF
1075
1076 fi
1077
1078 fi
1079
1080
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"
1086 async_io=yes
1087 cat >> confdefs.h <<\EOF
1088 #define USE_ASYNC_IO 1
1089 EOF
1090
1091 ASYNC_OBJS='$(ASYNC_OBJS)'
1092 SQUID_PTHREAD_LIB='$(PTHREADLIB)'
1093 CFLAGS="$CFLAGS -D_REENTRANT"
1094 case "$host" in
1095 i386-unknown-freebsd*)
1096 if test "$GCC" = "yes" ; then
1097 if test -z "$PRESET_LDFLAGS"; then
1098 LDFLAGS="$LDFLAGS -pthread"
1099 fi
1100 fi
1101 ;;
1102 esac
1103 fi
1104
1105 fi
1106
1107
1108
1109
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
1114 echo "ICMP enabled"
1115 cat >> confdefs.h <<\EOF
1116 #define USE_ICMP 1
1117 EOF
1118
1119 fi
1120
1121 fi
1122
1123
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
1132 EOF
1133
1134 fi
1135
1136 fi
1137
1138
1139
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
1147 EOF
1148
1149 fi
1150
1151 fi
1152
1153
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
1161 EOF
1162
1163 fi
1164
1165 fi
1166
1167
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
1175 EOF
1176
1177 fi
1178
1179 fi
1180
1181
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
1189 EOF
1190
1191 SNMPLIB='-L../snmplib -lsnmp'
1192 SNMP_OBJS='$(SNMP_OBJS)'
1193 SNMP_MAKEFILE=./snmplib/Makefile
1194 makesnmplib=snmplib
1195 fi
1196
1197 fi
1198
1199
1200
1201
1202
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
1210 EOF
1211
1212 fi
1213
1214 fi
1215
1216
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"
1220 case $enableval in
1221 yes)
1222 cat >> confdefs.h <<\EOF
1223 #define CACHEMGR_HOSTNAME getfullhostname()
1224 EOF
1225
1226 echo "Cachemgr default hostname == host where cachemgr runs"
1227 ;;
1228 no)
1229 : # Nothing to do..
1230 ;;
1231 *)
1232 cat >> confdefs.h <<EOF
1233 #define CACHEMGR_HOSTNAME "${enableval}"
1234 EOF
1235
1236 echo "Cachemgr default hostname set to ${enableval}"
1237 ;;
1238 esac
1239
1240 fi
1241
1242
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)"
1248 case "$host" in
1249 *-pc-linux-*)
1250 ;;
1251 *)
1252 echo "WARNING: ARP ACL support is only currently supported on Linux"
1253 echo " ethernet interfaces, probably won't work on $host."
1254 sleep 10
1255 ;;
1256 esac
1257 cat >> confdefs.h <<\EOF
1258 #define USE_ARP_ACL 1
1259 EOF
1260
1261 fi
1262
1263 fi
1264
1265
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
1270 echo "HTCP enabled"
1271 HTCP_OBJS='$(HTCP_OBJS)'
1272 cat >> confdefs.h <<\EOF
1273 #define USE_HTCP 1
1274 EOF
1275
1276 fi
1277
1278 fi
1279
1280
1281
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
1289 EOF
1290
1291 fi
1292
1293 fi
1294
1295
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
1303 EOF
1304
1305 fi
1306
1307 fi
1308
1309
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"
1313
1314 if test -d errors/$enableval; then
1315 ERR_LANGUAGE=$enableval
1316 else
1317 echo "ERROR! Unknown language $enableval, see errors/"
1318 exit 1
1319 fi
1320
1321 else
1322 ERR_LANGUAGE="English"
1323 fi
1324
1325
1326
1327 # Check whether --enable-poll or --disable-poll was given.
1328 if test "${enable_poll+set}" = set; then
1329 enableval="$enable_poll"
1330
1331 case "$enableval" in
1332 yes)
1333 echo "Forcing poll() to be enabled"
1334 ac_cv_func_poll='yes'
1335 ;;
1336 no)
1337 echo "Forcing poll() to be disabled"
1338 ac_cv_func_poll='no'
1339 ;;
1340 esac
1341
1342 fi
1343
1344
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
1352 EOF
1353
1354 else
1355 cat >> confdefs.h <<\EOF
1356 #define HTTP_VIOLATIONS 1
1357 EOF
1358
1359 fi
1360
1361 fi
1362
1363
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
1371 EOF
1372
1373 IPF_TRANSPARENT="yes"
1374 fi
1375
1376 fi
1377
1378
1379 # Force some compilers to use ANSI features
1380 #
1381 case "$host" in
1382 alpha-dec-osf*)
1383 if test "$ac_cv_prog_CC" = "cc" ; then
1384 echo "adding '-std1' to cc args for $host"
1385 CC="cc -std1";
1386 ac_cv_prog_CC="$CC"
1387 fi
1388 ;;
1389 *-hp-hpux*)
1390 if test "$ac_cv_prog_CC" = "cc" ; then
1391 echo "adding '-Ae' to cc args for $host"
1392 CC="cc -Ae";
1393 ac_cv_prog_CC="$CC"
1394 fi
1395 ;;
1396 esac
1397
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
1402 CPP=
1403 fi
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
1407 else
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.
1410 CPP="${CC-cc} -E"
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"
1416 #include <assert.h>
1417 Syntax Error
1418 EOF
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
1423 :
1424 else
1425 echo "$ac_err" >&5
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1428 rm -rf conftest*
1429 CPP="${CC-cc} -E -traditional-cpp"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 #include <assert.h>
1434 Syntax Error
1435 EOF
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
1440 :
1441 else
1442 echo "$ac_err" >&5
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 rm -rf conftest*
1446 CPP=/lib/cpp
1447 fi
1448 rm -f conftest*
1449 fi
1450 rm -f conftest*
1451 ac_cv_prog_CPP="$CPP"
1452 fi
1453 CPP="$ac_cv_prog_CPP"
1454 else
1455 ac_cv_prog_CPP="$CPP"
1456 fi
1457 echo "$ac_t""$CPP" 1>&6
1458
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
1465 # AIX /bin/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
1474 else
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.
1478 case "$ac_dir/" in
1479 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1480 *)
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.
1488 :
1489 else
1490 ac_cv_path_install="$ac_dir/$ac_prog -c"
1491 break 2
1492 fi
1493 fi
1494 done
1495 ;;
1496 esac
1497 done
1498 IFS="$ac_save_IFS"
1499
1500 fi
1501 if test "${ac_cv_path_install+set}" = set; then
1502 INSTALL="$ac_cv_path_install"
1503 else
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"
1509 fi
1510 fi
1511 echo "$ac_t""$INSTALL" 1>&6
1512
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}'
1516
1517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1518
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
1525 else
1526 if test -n "$RANLIB"; then
1527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1528 else
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"
1534 break
1535 fi
1536 done
1537 IFS="$ac_save_ifs"
1538 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1539 fi
1540 fi
1541 RANLIB="$ac_cv_prog_RANLIB"
1542 if test -n "$RANLIB"; then
1543 echo "$ac_t""$RANLIB" 1>&6
1544 else
1545 echo "$ac_t""no" 1>&6
1546 fi
1547
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
1552 else
1553 rm -f conftestdata
1554 if ln -s X conftestdata 2>/dev/null
1555 then
1556 rm -f conftestdata
1557 ac_cv_prog_LN_S="ln -s"
1558 else
1559 ac_cv_prog_LN_S=ln
1560 fi
1561 fi
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
1565 else
1566 echo "$ac_t""no" 1>&6
1567 fi
1568
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
1575 else
1576 case "$SH" in
1577 /*)
1578 ac_cv_path_SH="$SH" # Let the user override the test with a path.
1579 ;;
1580 *)
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"
1586 break
1587 fi
1588 done
1589 IFS="$ac_save_ifs"
1590 test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
1591 ;;
1592 esac
1593 fi
1594 SH="$ac_cv_path_SH"
1595 if test -n "$SH"; then
1596 echo "$ac_t""$SH" 1>&6
1597 else
1598 echo "$ac_t""no" 1>&6
1599 fi
1600
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
1607 else
1608 case "$FALSE" in
1609 /*)
1610 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
1611 ;;
1612 *)
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"
1618 break
1619 fi
1620 done
1621 IFS="$ac_save_ifs"
1622 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
1623 ;;
1624 esac
1625 fi
1626 FALSE="$ac_cv_path_FALSE"
1627 if test -n "$FALSE"; then
1628 echo "$ac_t""$FALSE" 1>&6
1629 else
1630 echo "$ac_t""no" 1>&6
1631 fi
1632
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
1639 else
1640 case "$TRUE" in
1641 /*)
1642 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
1643 ;;
1644 *)
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"
1650 break
1651 fi
1652 done
1653 IFS="$ac_save_ifs"
1654 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
1655 ;;
1656 esac
1657 fi
1658 TRUE="$ac_cv_path_TRUE"
1659 if test -n "$TRUE"; then
1660 echo "$ac_t""$TRUE" 1>&6
1661 else
1662 echo "$ac_t""no" 1>&6
1663 fi
1664
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
1671 else
1672 case "$RM" in
1673 /*)
1674 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1675 ;;
1676 *)
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"
1682 break
1683 fi
1684 done
1685 IFS="$ac_save_ifs"
1686 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
1687 ;;
1688 esac
1689 fi
1690 RM="$ac_cv_path_RM"
1691 if test -n "$RM"; then
1692 echo "$ac_t""$RM" 1>&6
1693 else
1694 echo "$ac_t""no" 1>&6
1695 fi
1696
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
1703 else
1704 case "$MV" in
1705 /*)
1706 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1707 ;;
1708 *)
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"
1714 break
1715 fi
1716 done
1717 IFS="$ac_save_ifs"
1718 test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
1719 ;;
1720 esac
1721 fi
1722 MV="$ac_cv_path_MV"
1723 if test -n "$MV"; then
1724 echo "$ac_t""$MV" 1>&6
1725 else
1726 echo "$ac_t""no" 1>&6
1727 fi
1728
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
1735 else
1736 case "$MKDIR" in
1737 /*)
1738 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1739 ;;
1740 *)
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"
1746 break
1747 fi
1748 done
1749 IFS="$ac_save_ifs"
1750 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
1751 ;;
1752 esac
1753 fi
1754 MKDIR="$ac_cv_path_MKDIR"
1755 if test -n "$MKDIR"; then
1756 echo "$ac_t""$MKDIR" 1>&6
1757 else
1758 echo "$ac_t""no" 1>&6
1759 fi
1760
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
1767 else
1768 case "$LN" in
1769 /*)
1770 ac_cv_path_LN="$LN" # Let the user override the test with a path.
1771 ;;
1772 *)
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"
1778 break
1779 fi
1780 done
1781 IFS="$ac_save_ifs"
1782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
1783 ;;
1784 esac
1785 fi
1786 LN="$ac_cv_path_LN"
1787 if test -n "$LN"; then
1788 echo "$ac_t""$LN" 1>&6
1789 else
1790 echo "$ac_t""no" 1>&6
1791 fi
1792
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
1799 else
1800 case "$PERL" in
1801 /*)
1802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1803 ;;
1804 *)
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"
1810 break
1811 fi
1812 done
1813 IFS="$ac_save_ifs"
1814 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1815 ;;
1816 esac
1817 fi
1818 PERL="$ac_cv_path_PERL"
1819 if test -n "$PERL"; then
1820 echo "$ac_t""$PERL" 1>&6
1821 else
1822 echo "$ac_t""no" 1>&6
1823 fi
1824
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
1831 else
1832 case "$MAKEDEPEND" in
1833 /*)
1834 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
1835 ;;
1836 *)
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"
1842 break
1843 fi
1844 done
1845 IFS="$ac_save_ifs"
1846 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUE"
1847 ;;
1848 esac
1849 fi
1850 MAKEDEPEND="$ac_cv_path_MAKEDEPEND"
1851 if test -n "$MAKEDEPEND"; then
1852 echo "$ac_t""$MAKEDEPEND" 1>&6
1853 else
1854 echo "$ac_t""no" 1>&6
1855 fi
1856
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
1863 else
1864 case "$AR" in
1865 /*)
1866 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1867 ;;
1868 *)
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"
1874 break
1875 fi
1876 done
1877 IFS="$ac_save_ifs"
1878 test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
1879 ;;
1880 esac
1881 fi
1882 AR="$ac_cv_path_AR"
1883 if test -n "$AR"; then
1884 echo "$ac_t""$AR" 1>&6
1885 else
1886 echo "$ac_t""no" 1>&6
1887 fi
1888
1889
1890 case "$host" in
1891 *-hp-hpux*)
1892 echo "Disabling 'ranlib' for HP-UX..."
1893 RANLIB=":"
1894 ;;
1895 esac
1896
1897 AR_R="$AR r"
1898 case "$host" in
1899 *-next-nextstep3)
1900 AR="libtool -o"
1901 ;;
1902 esac
1903
1904
1905 ac_header_dirent=no
1906 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1907 do
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
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 #include <$ac_hdr>
1919 int main() {
1920 DIR *dirp = 0;
1921 ; return 0; }
1922 EOF
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 rm -rf conftest*
1925 eval "ac_cv_header_dirent_$ac_safe=yes"
1926 else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 eval "ac_cv_header_dirent_$ac_safe=no"
1931 fi
1932 rm -f conftest*
1933 fi
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
1939 EOF
1940 ac_header_dirent=$ac_hdr; break
1941 else
1942 echo "$ac_t""no" 1>&6
1943 fi
1944 done
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
1952 else
1953 ac_save_LIBS="$LIBS"
1954 LIBS="-ldir $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. */
1961 char opendir();
1962
1963 int main() {
1964 opendir()
1965 ; return 0; }
1966 EOF
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1968 rm -rf conftest*
1969 eval "ac_cv_lib_$ac_lib_var=yes"
1970 else
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 rm -rf conftest*
1974 eval "ac_cv_lib_$ac_lib_var=no"
1975 fi
1976 rm -f conftest*
1977 LIBS="$ac_save_LIBS"
1978
1979 fi
1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 LIBS="$LIBS -ldir"
1983 else
1984 echo "$ac_t""no" 1>&6
1985 fi
1986
1987 else
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
1993 else
1994 ac_save_LIBS="$LIBS"
1995 LIBS="-lx $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. */
2002 char opendir();
2003
2004 int main() {
2005 opendir()
2006 ; return 0; }
2007 EOF
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2009 rm -rf conftest*
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2011 else
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 rm -rf conftest*
2015 eval "ac_cv_lib_$ac_lib_var=no"
2016 fi
2017 rm -f conftest*
2018 LIBS="$ac_save_LIBS"
2019
2020 fi
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 LIBS="$LIBS -lx"
2024 else
2025 echo "$ac_t""no" 1>&6
2026 fi
2027
2028 fi
2029
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
2034 else
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 #include <stdlib.h>
2039 #include <stdarg.h>
2040 #include <string.h>
2041 #include <float.h>
2042 EOF
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
2047 rm -rf conftest*
2048 ac_cv_header_stdc=yes
2049 else
2050 echo "$ac_err" >&5
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2053 rm -rf conftest*
2054 ac_cv_header_stdc=no
2055 fi
2056 rm -f conftest*
2057
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"
2063 #include <string.h>
2064 EOF
2065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2066 egrep "memchr" >/dev/null 2>&1; then
2067 :
2068 else
2069 rm -rf conftest*
2070 ac_cv_header_stdc=no
2071 fi
2072 rm -f conftest*
2073
2074 fi
2075
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"
2081 #include <stdlib.h>
2082 EOF
2083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2084 egrep "free" >/dev/null 2>&1; then
2085 :
2086 else
2087 rm -rf conftest*
2088 ac_cv_header_stdc=no
2089 fi
2090 rm -f conftest*
2091
2092 fi
2093
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
2097 :
2098 else
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <ctype.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);
2108 exit (0); }
2109
2110 EOF
2111 if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2112 then
2113 :
2114 else
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 rm -fr conftest*
2118 ac_cv_header_stdc=no
2119 fi
2120 rm -fr conftest*
2121 fi
2122
2123 fi
2124 fi
2125
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
2130 EOF
2131
2132 fi
2133
2134
2135 for ac_hdr in \
2136 alloca.h \
2137 arpa/inet.h \
2138 arpa/nameser.h \
2139 assert.h \
2140 bstring.h \
2141 config.h \
2142 crypt.h \
2143 ctype.h \
2144 errno.h \
2145 fcntl.h \
2146 getopt.h \
2147 gnumalloc.h \
2148 grp.h \
2149 ip_compat.h \
2150 ip_fil.h \
2151 ip_nat.h \
2152 libc.h \
2153 limits.h \
2154 malloc.h \
2155 math.h \
2156 memory.h \
2157 mount.h \
2158 net/if.h \
2159 netdb.h \
2160 netinet/in.h \
2161 netinet/tcp.h \
2162 poll.h \
2163 pwd.h \
2164 regex.h \
2165 resolv.h \
2166 sched.h \
2167 signal.h \
2168 stdarg.h \
2169 stddef.h \
2170 stdio.h \
2171 stdlib.h \
2172 string.h \
2173 strings.h \
2174 sys/file.h \
2175 sys/ioctl.h \
2176 sys/param.h \
2177 sys/resource.h \
2178 sys/select.h\
2179 sys/socket.h \
2180 sys/stat.h \
2181 sys/statvfs.h \
2182 sys/syscall.h \
2183 sys/time.h \
2184 sys/types.h \
2185 sys/un.h \
2186 sys/vfs.h \
2187 sys/wait.h \
2188 syslog.h \
2189 time.h \
2190 unistd.h \
2191 varargs.h \
2192
2193 do
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
2199 else
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <$ac_hdr>
2204 EOF
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
2209 rm -rf conftest*
2210 eval "ac_cv_header_$ac_safe=yes"
2211 else
2212 echo "$ac_err" >&5
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 eval "ac_cv_header_$ac_safe=no"
2217 fi
2218 rm -f conftest*
2219 fi
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
2225 EOF
2226
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230 done
2231
2232
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
2237 else
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241
2242 int main() {
2243
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;
2248 char **p;
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. */
2258 ++ccp;
2259 p = (char**) ccp;
2260 ccp = (char const *const *) p;
2261 { /* SCO 3.2v4 cc rejects this. */
2262 char *t;
2263 char const *s = 0 ? (char *) 0 : (char const *) 0;
2264
2265 *t++ = 0;
2266 }
2267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2268 int x[] = {25, 17};
2269 const int *foo = &x[0];
2270 ++foo;
2271 }
2272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2273 typedef const int *iptr;
2274 iptr p = 0;
2275 ++p;
2276 }
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;
2281 }
2282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2283 const int foo = 10;
2284 }
2285
2286 ; return 0; }
2287 EOF
2288 if { (eval echo configure:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2289 rm -rf conftest*
2290 ac_cv_c_const=yes
2291 else
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -rf conftest*
2295 ac_cv_c_const=no
2296 fi
2297 rm -f conftest*
2298 fi
2299
2300 echo "$ac_t""$ac_cv_c_const" 1>&6
2301 if test $ac_cv_c_const = no; then
2302 cat >> confdefs.h <<\EOF
2303 #define const
2304 EOF
2305
2306 fi
2307
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
2312 else
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>
2320 int main() {
2321
2322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2323 bogus endian macros
2324 #endif
2325 ; return 0; }
2326 EOF
2327 if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 rm -rf conftest*
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>
2335 int main() {
2336
2337 #if BYTE_ORDER != BIG_ENDIAN
2338 not big endian
2339 #endif
2340 ; return 0; }
2341 EOF
2342 if { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2343 rm -rf conftest*
2344 ac_cv_c_bigendian=yes
2345 else
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2348 rm -rf conftest*
2349 ac_cv_c_bigendian=no
2350 fi
2351 rm -f conftest*
2352 else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 fi
2356 rm -f conftest*
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; }
2360 else
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 main () {
2365 /* Are we little or big endian? From Harbison&Steele. */
2366 union
2367 {
2368 long l;
2369 char c[sizeof (long)];
2370 } u;
2371 u.l = 1;
2372 exit (u.c[sizeof (long) - 1] == 1);
2373 }
2374 EOF
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2376 then
2377 ac_cv_c_bigendian=no
2378 else
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 rm -fr conftest*
2382 ac_cv_c_bigendian=yes
2383 fi
2384 rm -fr conftest*
2385 fi
2386
2387 fi
2388 fi
2389
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
2394 EOF
2395
2396 fi
2397
2398
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
2403 else
2404
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 int foo(char *); int foo (char *bar) {return 1;}
2409 int main() {
2410 foo("bar")
2411 ; return 0; }
2412 EOF
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 rm -rf conftest*
2415 ac_cv_have_ansi_prototypes="yes"
2416 else
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 rm -rf conftest*
2420 ac_cv_have_ansi_prototypes="no"
2421 fi
2422 rm -f conftest*
2423
2424 fi
2425
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
2430 EOF
2431
2432 fi
2433
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
2438 else
2439
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <time.h>
2444 #include <sys/time.h>
2445 int main() {
2446 struct tm foo;
2447 foo.tm_gmtoff = 0;
2448 ; return 0; }
2449 EOF
2450 if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2451 rm -rf conftest*
2452 ac_cv_have_tm_gmoff="yes"
2453 else
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 rm -rf conftest*
2457 ac_cv_have_tm_gmoff="no"
2458 fi
2459 rm -f conftest*
2460
2461 fi
2462
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
2467 EOF
2468
2469 fi
2470
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
2475 else
2476
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <sys/types.h>
2481 #include <malloc.h>
2482 int main() {
2483 struct mallinfo foo;
2484 foo.mxfast = 0;
2485 ; return 0; }
2486 EOF
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2488 rm -rf conftest*
2489 ac_cv_have_ext_mallinfo="yes"
2490 else
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 rm -rf conftest*
2494 ac_cv_have_ext_mallinfo="no"
2495 fi
2496 rm -f conftest*
2497
2498 fi
2499
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
2504 EOF
2505
2506 fi
2507
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
2512 else
2513
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517
2518 #if HAVE_SYS_TIME_H
2519 #include <sys/time.h>
2520 #endif
2521 #if HAVE_SYS_RESOURCE_H
2522 #include <sys/resource.h>
2523 #endif
2524 int main() {
2525 struct rusage R;
2526 ; return 0; }
2527 EOF
2528 if { (eval echo configure:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2529 rm -rf conftest*
2530 ac_cv_have_struct_rusage="yes"
2531 else
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 rm -rf conftest*
2535 ac_cv_have_struct_rusage="no"
2536 fi
2537 rm -f conftest*
2538
2539 fi
2540
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
2545 EOF
2546
2547 fi
2548
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
2553 else
2554
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>
2562 #ifdef __linux__
2563 #define ip_hl ihl
2564 #endif
2565 #ifndef __linux__
2566 #define iphdr ip
2567 #endif
2568 int main() {
2569 struct iphdr ip;
2570 ip.ip_hl= 0;
2571 ; return 0; }
2572 EOF
2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2574 rm -rf conftest*
2575 ac_cv_have_ip_hl="yes"
2576 else
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 rm -rf conftest*
2580 ac_cv_have_ip_hl="no"
2581 fi
2582 rm -f conftest*
2583
2584 fi
2585
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
2590 EOF
2591
2592 fi
2593
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
2598 else
2599 if test "$cross_compiling" = yes; then
2600 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2601 else
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #include <stdio.h>
2606 main()
2607 {
2608 FILE *f=fopen("conftestval", "w");
2609 if (!f) exit(1);
2610 fprintf(f, "%d\n", sizeof(int));
2611 exit(0);
2612 }
2613 EOF
2614 if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2615 then
2616 ac_cv_sizeof_int=`cat conftestval`
2617 else
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2620 rm -fr conftest*
2621 ac_cv_sizeof_int=0
2622 fi
2623 rm -fr conftest*
2624 fi
2625
2626 fi
2627 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2628 cat >> confdefs.h <<EOF
2629 #define SIZEOF_INT $ac_cv_sizeof_int
2630 EOF
2631
2632
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
2637 else
2638 if test "$cross_compiling" = yes; then
2639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2640 else
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <stdio.h>
2645 main()
2646 {
2647 FILE *f=fopen("conftestval", "w");
2648 if (!f) exit(1);
2649 fprintf(f, "%d\n", sizeof(long));
2650 exit(0);
2651 }
2652 EOF
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2654 then
2655 ac_cv_sizeof_long=`cat conftestval`
2656 else
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -fr conftest*
2660 ac_cv_sizeof_long=0
2661 fi
2662 rm -fr conftest*
2663 fi
2664
2665 fi
2666 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2667 cat >> confdefs.h <<EOF
2668 #define SIZEOF_LONG $ac_cv_sizeof_long
2669 EOF
2670
2671
2672
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
2679 else
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <alloca.h>
2684 int main() {
2685 char *p = alloca(2 * sizeof(int));
2686 ; return 0; }
2687 EOF
2688 if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2689 rm -rf conftest*
2690 ac_cv_header_alloca_h=yes
2691 else
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 rm -rf conftest*
2695 ac_cv_header_alloca_h=no
2696 fi
2697 rm -f conftest*
2698 fi
2699
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
2704 EOF
2705
2706 fi
2707
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
2712 else
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716
2717 #ifdef __GNUC__
2718 # define alloca __builtin_alloca
2719 #else
2720 # if HAVE_ALLOCA_H
2721 # include <alloca.h>
2722 # else
2723 # ifdef _AIX
2724 #pragma alloca
2725 # else
2726 # ifndef alloca /* predefined by HP cc +Olibcalls */
2727 char *alloca ();
2728 # endif
2729 # endif
2730 # endif
2731 #endif
2732
2733 int main() {
2734 char *p = (char *) alloca(1);
2735 ; return 0; }
2736 EOF
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2738 rm -rf conftest*
2739 ac_cv_func_alloca_works=yes
2740 else
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 rm -rf conftest*
2744 ac_cv_func_alloca_works=no
2745 fi
2746 rm -f conftest*
2747 fi
2748
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
2753 EOF
2754
2755 fi
2756
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.
2762 ALLOCA=alloca.o
2763 cat >> confdefs.h <<\EOF
2764 #define C_ALLOCA 1
2765 EOF
2766
2767
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
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #if defined(CRAY) && ! defined(CRAY2)
2777 webecray
2778 #else
2779 wenotbecray
2780 #endif
2781
2782 EOF
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 egrep "webecray" >/dev/null 2>&1; then
2785 rm -rf conftest*
2786 ac_cv_os_cray=yes
2787 else
2788 rm -rf conftest*
2789 ac_cv_os_cray=no
2790 fi
2791 rm -f conftest*
2792
2793 fi
2794
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
2802 else
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. */
2808 #include <assert.h>
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. */
2812 char $ac_func();
2813
2814 int main() {
2815
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)
2820 choke me
2821 #else
2822 $ac_func();
2823 #endif
2824
2825 ; return 0; }
2826 EOF
2827 if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2828 rm -rf conftest*
2829 eval "ac_cv_func_$ac_func=yes"
2830 else
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2833 rm -rf conftest*
2834 eval "ac_cv_func_$ac_func=no"
2835 fi
2836 rm -f conftest*
2837 fi
2838
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
2843 EOF
2844
2845 break
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850 done
2851 fi
2852
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
2857 else
2858 if test "$cross_compiling" = yes; then
2859 ac_cv_c_stack_direction=0
2860 else
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 find_stack_direction ()
2865 {
2866 static char *addr = 0;
2867 auto char dummy;
2868 if (addr == 0)
2869 {
2870 addr = &dummy;
2871 return find_stack_direction ();
2872 }
2873 else
2874 return (&dummy > addr) ? 1 : -1;
2875 }
2876 main ()
2877 {
2878 exit (find_stack_direction() < 0);
2879 }
2880 EOF
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2882 then
2883 ac_cv_c_stack_direction=1
2884 else
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 rm -fr conftest*
2888 ac_cv_c_stack_direction=-1
2889 fi
2890 rm -fr conftest*
2891 fi
2892
2893 fi
2894
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
2898 EOF
2899
2900 fi
2901
2902
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
2907 else
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2912 #if STDC_HEADERS
2913 #include <stdlib.h>
2914 #include <stddef.h>
2915 #endif
2916 EOF
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2919 rm -rf conftest*
2920 ac_cv_type_pid_t=yes
2921 else
2922 rm -rf conftest*
2923 ac_cv_type_pid_t=no
2924 fi
2925 rm -f conftest*
2926
2927 fi
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
2931 #define pid_t int
2932 EOF
2933
2934 fi
2935
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
2940 else
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2945 #if STDC_HEADERS
2946 #include <stdlib.h>
2947 #include <stddef.h>
2948 #endif
2949 EOF
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2952 rm -rf conftest*
2953 ac_cv_type_size_t=yes
2954 else
2955 rm -rf conftest*
2956 ac_cv_type_size_t=no
2957 fi
2958 rm -f conftest*
2959
2960 fi
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
2965 EOF
2966
2967 fi
2968
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
2973 else
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <sys/types.h>
2978 #if STDC_HEADERS
2979 #include <stdlib.h>
2980 #include <stddef.h>
2981 #endif
2982 EOF
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2985 rm -rf conftest*
2986 ac_cv_type_ssize_t=yes
2987 else
2988 rm -rf conftest*
2989 ac_cv_type_ssize_t=no
2990 fi
2991 rm -f conftest*
2992
2993 fi
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
2997 #define ssize_t int
2998 EOF
2999
3000 fi
3001
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
3006 else
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/types.h>
3011 #if STDC_HEADERS
3012 #include <stdlib.h>
3013 #include <stddef.h>
3014 #endif
3015 EOF
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3018 rm -rf conftest*
3019 ac_cv_type_off_t=yes
3020 else
3021 rm -rf conftest*
3022 ac_cv_type_off_t=no
3023 fi
3024 rm -f conftest*
3025
3026 fi
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
3030 #define off_t int
3031 EOF
3032
3033 fi
3034
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
3039 else
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <sys/types.h>
3044 #if STDC_HEADERS
3045 #include <stdlib.h>
3046 #include <stddef.h>
3047 #endif
3048 EOF
3049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3050 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3051 rm -rf conftest*
3052 ac_cv_type_mode_t=yes
3053 else
3054 rm -rf conftest*
3055 ac_cv_type_mode_t=no
3056 fi
3057 rm -f conftest*
3058
3059 fi
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
3064 EOF
3065
3066 fi
3067
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
3072 else
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <sys/types.h>
3077 #if STDC_HEADERS
3078 #include <stdlib.h>
3079 #include <stddef.h>
3080 #endif
3081 EOF
3082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 egrep "fd_mask[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3084 rm -rf conftest*
3085 ac_cv_type_fd_mask=yes
3086 else
3087 rm -rf conftest*
3088 ac_cv_type_fd_mask=no
3089 fi
3090 rm -f conftest*
3091
3092 fi
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
3096 #define fd_mask int
3097 EOF
3098
3099 fi
3100
3101
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
3106 else
3107
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <sys/types.h>
3112 #include <sys/socket.h>
3113 #if STDC_HEADERS
3114 #include <stdlib.h>
3115 #include <stddef.h>
3116 #endif
3117 EOF
3118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 egrep "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3120 rm -rf conftest*
3121 ac_cv_type_socklen_t=yes
3122 else
3123 rm -rf conftest*
3124 ac_cv_type_socklen_t=no
3125 fi
3126 rm -f conftest*
3127
3128
3129 fi
3130
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
3135 EOF
3136
3137 fi
3138
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
3144 else
3145 ac_save_LIBS="$LIBS"
3146 LIBS="-lnsl $LIBS"
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150
3151 int main() {
3152 main()
3153 ; return 0; }
3154 EOF
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3156 rm -rf conftest*
3157 eval "ac_cv_lib_$ac_lib_var=yes"
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 eval "ac_cv_lib_$ac_lib_var=no"
3163 fi
3164 rm -f conftest*
3165 LIBS="$ac_save_LIBS"
3166
3167 fi
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
3174 EOF
3175
3176 LIBS="-lnsl $LIBS"
3177
3178 else
3179 echo "$ac_t""no" 1>&6
3180 fi
3181
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
3187 else
3188 ac_save_LIBS="$LIBS"
3189 LIBS="-lsocket $LIBS"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193
3194 int main() {
3195 main()
3196 ; return 0; }
3197 EOF
3198 if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3199 rm -rf conftest*
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3201 else
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 rm -rf conftest*
3205 eval "ac_cv_lib_$ac_lib_var=no"
3206 fi
3207 rm -f conftest*
3208 LIBS="$ac_save_LIBS"
3209
3210 fi
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
3217 EOF
3218
3219 LIBS="-lsocket $LIBS"
3220
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
3227 echo "skipping libmalloc check (--enable-dlmalloc specified)"
3228 else
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
3234 else
3235 ac_save_LIBS="$LIBS"
3236 LIBS="-lgnumalloc $LIBS"
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240
3241 int main() {
3242 main()
3243 ; return 0; }
3244 EOF
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3246 rm -rf conftest*
3247 eval "ac_cv_lib_$ac_lib_var=yes"
3248 else
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 eval "ac_cv_lib_$ac_lib_var=no"
3253 fi
3254 rm -f conftest*
3255 LIBS="$ac_save_LIBS"
3256
3257 fi
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
3264 EOF
3265
3266 LIBS="-lgnumalloc $LIBS"
3267
3268 else
3269 echo "$ac_t""no" 1>&6
3270 fi
3271
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
3277 else
3278 case "$host" in
3279 *-sun-solaris*)
3280 echo "skipping libmalloc check for $host"
3281 ;;
3282 i386-*-freebsd*)
3283 echo "skipping libmalloc check for $host"
3284 ;;
3285 *)
3286
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
3292 else
3293 ac_save_LIBS="$LIBS"
3294 LIBS="-lmalloc $LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298
3299 int main() {
3300 main()
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3304 rm -rf conftest*
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -rf conftest*
3310 eval "ac_cv_lib_$ac_lib_var=no"
3311 fi
3312 rm -f conftest*
3313 LIBS="$ac_save_LIBS"
3314
3315 fi
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
3322 EOF
3323
3324 LIBS="-lmalloc $LIBS"
3325
3326 else
3327 echo "$ac_t""no" 1>&6
3328 fi
3329
3330 ;;
3331 esac
3332 fi
3333 fi
3334
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
3340 else
3341 ac_save_LIBS="$LIBS"
3342 LIBS="-lbsd $LIBS"
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346
3347 int main() {
3348 main()
3349 ; return 0; }
3350 EOF
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3352 rm -rf conftest*
3353 eval "ac_cv_lib_$ac_lib_var=yes"
3354 else
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 eval "ac_cv_lib_$ac_lib_var=no"
3359 fi
3360 rm -f conftest*
3361 LIBS="$ac_save_LIBS"
3362
3363 fi
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
3370 EOF
3371
3372 LIBS="-lbsd $LIBS"
3373
3374 else
3375 echo "$ac_t""no" 1>&6
3376 fi
3377
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
3383 else
3384 ac_save_LIBS="$LIBS"
3385 LIBS="-lregex $LIBS"
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389
3390 int main() {
3391 main()
3392 ; return 0; }
3393 EOF
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3395 rm -rf conftest*
3396 eval "ac_cv_lib_$ac_lib_var=yes"
3397 else
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3400 rm -rf conftest*
3401 eval "ac_cv_lib_$ac_lib_var=no"
3402 fi
3403 rm -f conftest*
3404 LIBS="$ac_save_LIBS"
3405
3406 fi
3407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 REGEXLIB="-lregex"
3410 else
3411 echo "$ac_t""no" 1>&6
3412 fi
3413
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
3419 else
3420 ac_save_LIBS="$LIBS"
3421 LIBS="-lbind $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();
3429
3430 int main() {
3431 gethostbyname()
3432 ; return 0; }
3433 EOF
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3435 rm -rf conftest*
3436 eval "ac_cv_lib_$ac_lib_var=yes"
3437 else
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3440 rm -rf conftest*
3441 eval "ac_cv_lib_$ac_lib_var=no"
3442 fi
3443 rm -f conftest*
3444 LIBS="$ac_save_LIBS"
3445
3446 fi
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
3453 EOF
3454
3455 LIBS="-lbind $LIBS"
3456
3457 else
3458 echo "$ac_t""no" 1>&6
3459 fi
3460
3461 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
3462 case "$host" in
3463 i386-*-freebsd*)
3464 echo "skipping libresolv checks for $host"
3465 ;;
3466 *)
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
3472 else
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. */
3481 char inet_aton();
3482
3483 int main() {
3484 inet_aton()
3485 ; return 0; }
3486 EOF
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3488 rm -rf conftest*
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3490 else
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 rm -rf conftest*
3494 eval "ac_cv_lib_$ac_lib_var=no"
3495 fi
3496 rm -f conftest*
3497 LIBS="$ac_save_LIBS"
3498
3499 fi
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
3507 else
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. */
3516 char inet_aton();
3517
3518 int main() {
3519 inet_aton()
3520 ; return 0; }
3521 EOF
3522 if { (eval echo configure:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3523 rm -rf conftest*
3524 eval "ac_cv_lib_$ac_lib_var=yes"
3525 else
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 rm -rf conftest*
3529 eval "ac_cv_lib_$ac_lib_var=no"
3530 fi
3531 rm -f conftest*
3532 LIBS="$ac_save_LIBS"
3533
3534 fi
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
3541 EOF
3542
3543 LIBS="-l44bsd $LIBS"
3544
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549 else
3550 echo "$ac_t""no" 1>&6
3551 fi
3552
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
3558 else
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lresolv $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564
3565 int main() {
3566 main()
3567 ; return 0; }
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3570 rm -rf conftest*
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3572 else
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 rm -rf conftest*
3576 eval "ac_cv_lib_$ac_lib_var=no"
3577 fi
3578 rm -f conftest*
3579 LIBS="$ac_save_LIBS"
3580
3581 fi
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
3588 EOF
3589
3590 LIBS="-lresolv $LIBS"
3591
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596 ;;
3597 esac
3598 fi
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
3604 else
3605 ac_save_LIBS="$LIBS"
3606 LIBS="-lm $LIBS"
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610
3611 int main() {
3612 main()
3613 ; return 0; }
3614 EOF
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3616 rm -rf conftest*
3617 eval "ac_cv_lib_$ac_lib_var=yes"
3618 else
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3621 rm -rf conftest*
3622 eval "ac_cv_lib_$ac_lib_var=no"
3623 fi
3624 rm -f conftest*
3625 LIBS="$ac_save_LIBS"
3626
3627 fi
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
3634 EOF
3635
3636 LIBS="-lm $LIBS"
3637
3638 else
3639 echo "$ac_t""no" 1>&6
3640 fi
3641
3642
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
3648 else
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. */
3657 char crypt();
3658
3659 int main() {
3660 crypt()
3661 ; return 0; }
3662 EOF
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3664 rm -rf conftest*
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 eval "ac_cv_lib_$ac_lib_var=no"
3671 fi
3672 rm -f conftest*
3673 LIBS="$ac_save_LIBS"
3674
3675 fi
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
3682 EOF
3683
3684 LIBS="-lcrypt $LIBS"
3685
3686 else
3687 echo "$ac_t""no" 1>&6
3688 fi
3689
3690 if test $ac_cv_lib_crypt_crypt = "yes"; then
3691 CRYPTLIB="-lcrypt"
3692 fi
3693
3694
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
3700 else
3701 ac_save_LIBS="$LIBS"
3702 LIBS="-lpthread $LIBS"
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706
3707 int main() {
3708 main()
3709 ; return 0; }
3710 EOF
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3712 rm -rf conftest*
3713 eval "ac_cv_lib_$ac_lib_var=yes"
3714 else
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 rm -rf conftest*
3718 eval "ac_cv_lib_$ac_lib_var=no"
3719 fi
3720 rm -f conftest*
3721 LIBS="$ac_save_LIBS"
3722
3723 fi
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
3730 EOF
3731
3732 LIBS="-lpthread $LIBS"
3733
3734 else
3735 echo "$ac_t""no" 1>&6
3736 fi
3737
3738 if test $ac_cv_lib_pthread_main = "yes"; then
3739 PTHREADLIB="-lpthread"
3740 fi
3741
3742
3743 case "$host" in
3744 i386-*-solaris2.*)
3745 if test "$GCC" = "yes"; then
3746 echo "Removing -O for gcc on $host"
3747 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
3748 fi
3749 ;;
3750 *-sgi-irix*)
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//`
3757 ;;
3758 *-ibm-aix*)
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
3766 ;;
3767 *m88k*)
3768 CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
3769 cat >> confdefs.h <<\EOF
3770 #define GETTIMEOFDAY_NO_TZP 1
3771 EOF
3772
3773 ;;
3774 *-*-solaris2.[0-4])
3775 cat >> confdefs.h <<\EOF
3776 #define GETTIMEOFDAY_NO_TZP 1
3777 EOF
3778
3779 ;;
3780 *-sony-newsos56*)
3781 cat >> confdefs.h <<\EOF
3782 #define GETTIMEOFDAY_NO_TZP 1
3783 EOF
3784
3785 ;;
3786 esac
3787
3788 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
3789 case "$host" in
3790 *-univel-sysv4.2MP)
3791 if test `uname -v` = "2.03"; then
3792 echo "disabling mallinfo for $host"
3793 ac_cv_func_mallinfo=no
3794 fi
3795 ;;
3796 esac
3797
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
3801 case "$host" in
3802 alpha-dec-osf3.*)
3803 # John Kay (jkay@nlanr.net) 19970818
3804 echo "disabling poll for $host..."
3805 ac_cv_func_poll='no'
3806 ;;
3807 *-hp-hpux*.*)
3808 # Duane Wessels
3809 echo "disabling poll for $host..."
3810 ac_cv_func_poll='no'
3811 ;;
3812 *-linux-*)
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'
3818 ;;
3819 powerpc-ibm-aix4.1.*)
3820 # Mike Laster (mlaster@metavillage.com) 19981021
3821 echo "disabling poll for $host..."
3822 ac_cv_func_poll='no'
3823 ;;
3824 esac
3825 fi
3826
3827 for ac_func in \
3828 bcopy \
3829 crypt \
3830 drand48 \
3831 fchmod \
3832 getdtablesize \
3833 getpagesize \
3834 getrusage \
3835 getspnam \
3836 lrand48 \
3837 mallinfo \
3838 mallocblksize \
3839 mallopt \
3840 memcpy \
3841 memmove \
3842 memset \
3843 mktime \
3844 mstats \
3845 poll \
3846 putenv \
3847 random \
3848 regcomp \
3849 regexec \
3850 regfree \
3851 res_init \
3852 rint \
3853 seteuid \
3854 setpgrp \
3855 setrlimit \
3856 setsid \
3857 sigaction \
3858 snprintf \
3859 srand48 \
3860 srandom \
3861 statvfs \
3862 sysconf \
3863 syslog \
3864 tempnam \
3865 timegm \
3866 vsnprintf \
3867
3868 do
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
3873 else
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. */
3879 #include <assert.h>
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. */
3883 char $ac_func();
3884
3885 int main() {
3886
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)
3891 choke me
3892 #else
3893 $ac_func();
3894 #endif
3895
3896 ; return 0; }
3897 EOF
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3899 rm -rf conftest*
3900 eval "ac_cv_func_$ac_func=yes"
3901 else
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 rm -rf conftest*
3905 eval "ac_cv_func_$ac_func=no"
3906 fi
3907 rm -f conftest*
3908 fi
3909
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
3915 EOF
3916
3917 else
3918 echo "$ac_t""no" 1>&6
3919 fi
3920 done
3921
3922
3923 if test "$async_io" = "yes" ; then
3924 for ac_func in \
3925 pthread_attr_setscope \
3926 pthread_setschedparam \
3927 pthread_attr_setschedparam \
3928
3929 do
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
3934 else
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. */
3940 #include <assert.h>
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. */
3944 char $ac_func();
3945
3946 int main() {
3947
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)
3952 choke me
3953 #else
3954 $ac_func();
3955 #endif
3956
3957 ; return 0; }
3958 EOF
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3960 rm -rf conftest*
3961 eval "ac_cv_func_$ac_func=yes"
3962 else
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 rm -rf conftest*
3966 eval "ac_cv_func_$ac_func=no"
3967 fi
3968 rm -f conftest*
3969 fi
3970
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
3976 EOF
3977
3978 else
3979 echo "$ac_t""no" 1>&6
3980 fi
3981 done
3982
3983 fi
3984
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
3989 else
3990 if test "$cross_compiling" = yes; then
3991 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3992 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996
3997 #include <stdlib.h>
3998 int main() {
3999 if(setresuid(-1,-1,-1)) {
4000 perror("setresuid:");
4001 exit(1);
4002 }
4003 exit(0);
4004 }
4005
4006 EOF
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4008 then
4009 ac_cv_func_setresuid="yes"
4010 else
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4013 rm -fr conftest*
4014 ac_cv_func_setresuid="no"
4015 fi
4016 rm -fr conftest*
4017 fi
4018
4019
4020 fi
4021
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
4026 EOF
4027
4028 fi
4029
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
4039 EOF
4040
4041 else
4042 IPF_TRANSPARENT="yes"
4043 cat >> confdefs.h <<\EOF
4044 #define IPF_TRANSPARENT 1
4045 EOF
4046
4047 fi
4048 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
4049 fi
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"
4053 sleep 10
4054 fi
4055
4056 if test -z "$USE_GNUREGEX" ; then
4057 case "$host" in
4058 *-sun-solaris2.[0-4])
4059 USE_GNUREGEX="yes"
4060 ;;
4061 *-next-nextstep*)
4062 USE_GNUREGEX="yes"
4063 ;;
4064 esac
4065 fi
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
4070 USE_GNUREGEX="yes"
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <sys/types.h>
4076 #include <regex.h>
4077 int main() {
4078 regex_t t; regcomp(&t,"",0);
4079 ; return 0; }
4080 EOF
4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 rm -rf conftest*
4083 USE_GNUREGEX="no"
4084 else
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4087 rm -rf conftest*
4088 USE_GNUREGEX="yes"
4089 fi
4090 rm -f conftest*
4091 fi
4092 fi
4093 echo "$ac_t""$USE_GNUREGEX" 1>&6
4094 if test "$USE_GNUREGEX" = "yes"; then
4095 REGEXLIB="-lregex"
4096 LIBREGEX="libregex.a"
4097 cat >> confdefs.h <<\EOF
4098 #define USE_GNUREGEX 1
4099 EOF
4100
4101 fi
4102
4103
4104
4105 for ac_func in \
4106 drand48 \
4107 tempnam \
4108 strerror \
4109
4110 do
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
4115 else
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. */
4121 #include <assert.h>
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. */
4125 char $ac_func();
4126
4127 int main() {
4128
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)
4133 choke me
4134 #else
4135 $ac_func();
4136 #endif
4137
4138 ; return 0; }
4139 EOF
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4141 rm -rf conftest*
4142 eval "ac_cv_func_$ac_func=yes"
4143 else
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4146 rm -rf conftest*
4147 eval "ac_cv_func_$ac_func=no"
4148 fi
4149 rm -f conftest*
4150 fi
4151
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
4157 EOF
4158
4159 else
4160 echo "$ac_t""no" 1>&6
4161 LIBOBJS="$LIBOBJS ${ac_func}.o"
4162 fi
4163 done
4164
4165
4166
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
4171 else
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175
4176 #if HAVE_STDIO_H
4177 #include <stdio.h>
4178 #endif
4179 #if HAVE_UNISTD_H
4180 #include <unistd.h>
4181 #endif
4182 #if HAVE_SYS_TIME_H
4183 #include <sys/time.h>
4184 #endif
4185 #if HAVE_SYS_SELECT_H
4186 #include <sys/select.h>
4187 #endif
4188 #if HAVE_SYS_TYPES_H
4189 #include <sys/types.h>
4190 #endif
4191 main() {
4192 fprintf (fopen("conftestval", "w"), "%d\n", FD_SETSIZE);
4193 exit(0);
4194 }
4195
4196 EOF
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4198 then
4199 DEFAULT_FD_SETSIZE=`cat conftestval`
4200 else
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 rm -fr conftest*
4204 DEFAULT_FD_SETSIZE=256
4205 fi
4206 rm -fr conftest*
4207 fi
4208
4209 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
4210 cat >> confdefs.h <<EOF
4211 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
4212 EOF
4213
4214
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
4218 SQUID_MAXFD=256
4219 else
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223
4224 #include <stdio.h>
4225 #include <unistd.h>
4226 #include <sys/time.h> /* needed on FreeBSD */
4227 #include <sys/param.h>
4228 #include <sys/resource.h>
4229 main() {
4230 int i,j;
4231 #if __CYGWIN32__
4232 /* getrlimit and sysconf returns bogous values on cygwin32.
4233 * Number of fds is virtually unlimited in cygwin (sys/param.h)
4234 */
4235 i = NOFILE;
4236 #else
4237 #if HAVE_SETRLIMIT
4238 struct rlimit rl;
4239 #if defined(RLIMIT_NOFILE)
4240 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
4241 perror("getrlimit: RLIMIT_NOFILE");
4242 } else {
4243 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4244 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
4245 perror("setrlimit: RLIMIT_NOFILE");
4246 }
4247 }
4248 #elif defined(RLIMIT_OFILE)
4249 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
4250 perror("getrlimit: RLIMIT_OFILE");
4251 } else {
4252 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4253 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
4254 perror("setrlimit: RLIMIT_OFILE");
4255 }
4256 }
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)
4264 i = OPEN_MAX;
4265 #elif defined(NOFILE)
4266 i = NOFILE;
4267 #elif defined(_NFILE)
4268 i = _NFILE;
4269 #else
4270 while((j=open("/dev/null", 0)) > 0) i=j;
4271 close(i); close(i-1);
4272 i++;
4273 #endif
4274 #endif /* __CYGWIN32__ */
4275 fprintf (fopen("conftestval", "w"), "%d\n", i);
4276 exit(0);
4277 }
4278
4279 EOF
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4281 then
4282 SQUID_MAXFD=`cat conftestval`
4283 else
4284 echo "configure: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 rm -fr conftest*
4287 SQUID_MAXFD=256
4288 fi
4289 rm -fr conftest*
4290 fi
4291
4292 echo "$ac_t""$SQUID_MAXFD" 1>&6
4293 cat >> confdefs.h <<EOF
4294 #define SQUID_MAXFD $SQUID_MAXFD
4295 EOF
4296
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"
4302 sleep 10
4303 fi
4304
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
4309 else
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313
4314 #include <stdlib.h>
4315 #include <stdio.h>
4316 #include <sys/types.h>
4317 #include <sys/socket.h>
4318 #include <netinet/in.h>
4319 main ()
4320 {
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);
4326 exit(0);
4327 }
4328
4329 EOF
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4331 then
4332 SQUID_UDP_SO_SNDBUF=`cat conftestval`
4333 else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -fr conftest*
4337 SQUID_UDP_SO_SNDBUF=16384
4338 fi
4339 rm -fr conftest*
4340 fi
4341
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
4345 EOF
4346
4347
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
4352 else
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356
4357 #include <stdlib.h>
4358 #include <stdio.h>
4359 #include <sys/types.h>
4360 #include <sys/socket.h>
4361 #include <netinet/in.h>
4362 main ()
4363 {
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);
4369 exit(0);
4370 }
4371
4372 EOF
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4374 then
4375 SQUID_UDP_SO_RCVBUF=`cat conftestval`
4376 else
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -fr conftest*
4380 SQUID_UDP_SO_RCVBUF=16384
4381 fi
4382 rm -fr conftest*
4383 fi
4384
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
4388 EOF
4389
4390
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
4395 else
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399
4400 #include <stdlib.h>
4401 #include <stdio.h>
4402 #include <sys/types.h>
4403 #include <sys/socket.h>
4404 #include <netinet/in.h>
4405 main ()
4406 {
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);
4412 exit(0);
4413 }
4414
4415 EOF
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4417 then
4418 SQUID_TCP_SO_SNDBUF=`cat conftestval`
4419 else
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -fr conftest*
4423 SQUID_TCP_SO_SNDBUF=16384
4424 fi
4425 rm -fr conftest*
4426 fi
4427
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
4431 EOF
4432
4433
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
4438 else
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442
4443 #include <stdlib.h>
4444 #include <stdio.h>
4445 #include <sys/types.h>
4446 #include <sys/socket.h>
4447 #include <netinet/in.h>
4448 main ()
4449 {
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);
4455 exit(0);
4456 }
4457
4458 EOF
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4460 then
4461 SQUID_TCP_SO_RCVBUF=`cat conftestval`
4462 else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -fr conftest*
4466 SQUID_TCP_SO_RCVBUF=16384
4467 fi
4468 rm -fr conftest*
4469 fi
4470
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
4474 EOF
4475
4476
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
4481 else
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 #include <stdio.h>
4486 int main() {
4487 char *s = sys_errlist0;
4488 ; return 0; }
4489 EOF
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4491 rm -rf conftest*
4492 ac_cv_needs_sys_errlist="no"
4493 else
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 rm -rf conftest*
4497 ac_cv_needs_sys_errlist="yes"
4498 fi
4499 rm -f conftest*
4500
4501 fi
4502
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
4507 EOF
4508
4509 fi
4510
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_;
4517 int main() {
4518 return _dns_ttl_;
4519 ; return 0; }
4520 EOF
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4522 rm -rf conftest*
4523 echo "$ac_t""yes" 1>&6
4524 cat >> confdefs.h <<\EOF
4525 #define LIBRESOLV_DNS_TTL_HACK 1
4526 EOF
4527
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 echo "$ac_t""no" 1>&6
4533 fi
4534 rm -f conftest*
4535
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"
4540 else
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544
4545 #include <stdlib.h>
4546 #include <stdio.h>
4547 #include <sys/types.h>
4548 #include <netinet/in.h>
4549 #include <arpa/inet.h>
4550 main ()
4551 {
4552 struct in_addr in;
4553 in.s_addr = inet_addr("1.2.3.4");
4554 fprintf (fopen("conftestval", "w"), "%s\n", inet_ntoa(in));
4555 exit(0);
4556 }
4557
4558 EOF
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4560 then
4561 INET_NTOA_RESULT=`cat conftestval`
4562 else
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 rm -fr conftest*
4566 INET_NTOA_RESULT="broken"
4567 fi
4568 rm -fr conftest*
4569 fi
4570
4571 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
4572 echo "$ac_t"""yes"" 1>&6
4573 else
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."
4578 sleep 10
4579 fi
4580
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"
4587
4588 #include <stdlib.h>
4589 #include <stdio.h>
4590 #include <sys/types.h>
4591 #include <sys/statvfs.h>
4592
4593 int main() {
4594
4595 struct statvfs sfs;
4596 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
4597 sfs.f_files = sfs.f_ffree = 0;
4598 statvfs("/tmp", &sfs);
4599
4600 ; return 0; }
4601 EOF
4602 if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4603 rm -rf conftest*
4604 ac_cv_func_statvfs=yes
4605 else
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 rm -rf conftest*
4609 ac_cv_func_statvfs=no
4610 fi
4611 rm -f conftest*
4612 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
4613 fi
4614
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
4619 else
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623
4624 #if HAVE_SYS_TYPES_H
4625 #include <sys/types.h>
4626 #endif
4627 #if HAVE_NETINET_IN_H
4628 #include <netinet/in.h>
4629 #endif
4630 #if HAVE_ARPA_INET_H
4631 #include <arpa/inet.h>
4632 #endif
4633 #if HAVE_ARPA_NAMESER_H
4634 #include <arpa/nameser.h>
4635 #endif
4636 #if HAVE_RESOLV_H
4637 #include <resolv.h>
4638 #endif
4639
4640 int main() {
4641 _res.nsaddr_list[0];
4642 ; return 0; }
4643 EOF
4644 if { (eval echo configure:4645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4645 rm -rf conftest*
4646 ac_cv_have_res_nsaddr_list="yes"
4647 else
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 rm -rf conftest*
4651 ac_cv_have_res_nsaddr_list="no"
4652 fi
4653 rm -f conftest*
4654 fi
4655
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
4660 EOF
4661
4662 fi
4663
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
4669 else
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673
4674 #if HAVE_SYS_TYPES_H
4675 #include <sys/types.h>
4676 #endif
4677 #if HAVE_NETINET_IN_H
4678 #include <netinet/in.h>
4679 #endif
4680 #if HAVE_ARPA_INET_H
4681 #include <arpa/inet.h>
4682 #endif
4683 #if HAVE_ARPA_NAMESER_H
4684 #include <arpa/nameser.h>
4685 #endif
4686 #if HAVE_RESOLV_H
4687 #include <resolv.h>
4688 #endif
4689
4690 int main() {
4691 _res.ns_list[0].addr;
4692 ; return 0; }
4693 EOF
4694 if { (eval echo configure:4695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4695 rm -rf conftest*
4696 ac_cv_have_res_ns_list="yes"
4697 else
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4700 rm -rf conftest*
4701 ac_cv_have_res_ns_list="no"
4702 fi
4703 rm -f conftest*
4704 fi
4705
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
4710 EOF
4711
4712 fi
4713 fi
4714
4715 XTRA_OBJS=''
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"
4719 fi
4720 if test -r /usr/lib/debug/mallocmap.o ; then
4721 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
4722 fi
4723 fi
4724
4725
4726
4727 if test -z "$XTRA_LIBS"; then
4728 XTRA_LIBS="$LIBS"
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"`
4732 LIBS=''
4733 fi
4734
4735
4736 rm -f core
4737
4738 trap '' 1 2 15
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.
4744 #
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.
4753 #
4754 EOF
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.
4760 (set) 2>&1 |
4761 case `(ac_space=' '; set) 2>&1` in
4762 *ac_space=\ *)
4763 # `set' does not quote correctly, so add quotes (double-quote substitution
4764 # turns \\\\ into \\, and sed turns \\ into \).
4765 sed -n \
4766 -e "s/'/'\\\\''/g" \
4767 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4768 ;;
4769 *)
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'
4772 ;;
4773 esac >> confcache
4774 if cmp -s $cache_file confcache; then
4775 :
4776 else
4777 if test -w $cache_file; then
4778 echo "updating cache $cache_file"
4779 cat confcache > $cache_file
4780 else
4781 echo "not updating unwritable cache $cache_file"
4782 fi
4783 fi
4784 rm -f confcache
4785
4786 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4787
4788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4789 # Let make expand exec_prefix.
4790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4791
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'
4797 fi
4798
4799 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4800
4801 DEFS=-DHAVE_CONFIG_H
4802
4803 # Without the "./", some shells look in PATH for config.status.
4804 : ${CONFIG_STATUS=./config.status}
4805
4806 echo creating $CONFIG_STATUS
4807 rm -f $CONFIG_STATUS
4808 cat > $CONFIG_STATUS <<EOF
4809 #! /bin/sh
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`:
4814 #
4815 # $0 $ac_configure_args
4816 #
4817 # Compiler output produced by configure, useful for debugging
4818 # configure, is in ./config.log if it exists.
4819
4820 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4821 for ac_option
4822 do
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"
4829 exit 0 ;;
4830 -help | --help | --hel | --he | --h)
4831 echo "\$ac_cs_usage"; exit 0 ;;
4832 *) echo "\$ac_cs_usage"; exit 1 ;;
4833 esac
4834 done
4835
4836 ac_given_srcdir=$srcdir
4837 ac_given_INSTALL="$INSTALL"
4838
4839 trap 'rm -fr `echo "\
4840 ./makefile \
4841 ./lib/Makefile \
4842 ./include/config.h \
4843 ./scripts/Makefile \
4844 ./scripts/RunCache \
4845 ./scripts/RunAccel \
4846 ./src/Makefile \
4847 ./contrib/Makefile \
4848 $SNMP_MAKEFILE \
4849 ./icons/Makefile \
4850 ./errors/Makefile \
4851 ./auth_modules/dummy \
4852 ./auth_modules/NCSA/Makefile \
4853 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4854 EOF
4855 cat >> $CONFIG_STATUS <<EOF
4856
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
4860 $ac_vpsub
4861 $extrasub
4862 s%@CFLAGS@%$CFLAGS%g
4863 s%@CPPFLAGS@%$CPPFLAGS%g
4864 s%@CXXFLAGS@%$CXXFLAGS%g
4865 s%@DEFS@%$DEFS%g
4866 s%@LDFLAGS@%$LDFLAGS%g
4867 s%@LIBS@%$LIBS%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
4883 s%@host@%$host%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
4892 s%@CC@%$CC%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
4903 s%@CPP@%$CPP%g
4904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4905 s%@INSTALL_DATA@%$INSTALL_DATA%g
4906 s%@RANLIB@%$RANLIB%g
4907 s%@LN_S@%$LN_S%g
4908 s%@SH@%$SH%g
4909 s%@FALSE@%$FALSE%g
4910 s%@TRUE@%$TRUE%g
4911 s%@RM@%$RM%g
4912 s%@MV@%$MV%g
4913 s%@MKDIR@%$MKDIR%g
4914 s%@LN@%$LN%g
4915 s%@PERL@%$PERL%g
4916 s%@MAKEDEPEND@%$MAKEDEPEND%g
4917 s%@AR@%$AR%g
4918 s%@AR_R@%$AR_R%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
4927
4928 CEOF
4929 EOF
4930
4931 cat >> $CONFIG_STATUS <<\EOF
4932
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.
4939 ac_more_lines=:
4940 ac_sed_cmds=""
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
4944 else
4945 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4946 fi
4947 if test ! -s conftest.s$ac_file; then
4948 ac_more_lines=false
4949 rm -f conftest.s$ac_file
4950 else
4951 if test -z "$ac_sed_cmds"; then
4952 ac_sed_cmds="sed -f conftest.s$ac_file"
4953 else
4954 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4955 fi
4956 ac_file=`expr $ac_file + 1`
4957 ac_beg=$ac_end
4958 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4959 fi
4960 done
4961 if test -z "$ac_sed_cmds"; then
4962 ac_sed_cmds=cat
4963 fi
4964 EOF
4965
4966 cat >> $CONFIG_STATUS <<EOF
4967
4968 CONFIG_FILES=\${CONFIG_FILES-"\
4969 ./makefile \
4970 ./lib/Makefile \
4971 ./include/config.h \
4972 ./scripts/Makefile \
4973 ./scripts/RunCache \
4974 ./scripts/RunAccel \
4975 ./src/Makefile \
4976 ./contrib/Makefile \
4977 $SNMP_MAKEFILE \
4978 ./icons/Makefile \
4979 ./errors/Makefile \
4980 ./auth_modules/dummy \
4981 ./auth_modules/NCSA/Makefile \
4982 "}
4983 EOF
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".
4987 case "$ac_file" 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" ;;
4991 esac
4992
4993 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4994
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'`
5003 else
5004 ac_dir_suffix= ac_dots=
5005 fi
5006
5007 case "$ac_given_srcdir" in
5008 .) srcdir=.
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" ;;
5012 *) # Relative path.
5013 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5014 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5015 esac
5016
5017 case "$ac_given_INSTALL" in
5018 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5019 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5020 esac
5021
5022 echo creating "$ac_file"
5023 rm -f "$ac_file"
5024 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5025 case "$ac_file" in
5026 *Makefile*) ac_comsub="1i\\
5027 # $configure_input" ;;
5028 *) ac_comsub= ;;
5029 esac
5030
5031 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5032 sed -e "$ac_comsub
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
5038 fi; done
5039 rm -f conftest.s*
5040
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.
5043 #
5044 # ac_d sets the value in "#define NAME VALUE" lines.
5045 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5046 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5047 ac_dC='\3'
5048 ac_dD='%g'
5049 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5050 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5051 ac_uB='\([ ]\)%\1#\2define\3'
5052 ac_uC=' '
5053 ac_uD='\4%g'
5054 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5055 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5056 ac_eB='$%\1#\2define\3'
5057 ac_eC=' '
5058 ac_eD='%g'
5059
5060 if test "${CONFIG_HEADERS+set}" != set; then
5061 EOF
5062 cat >> $CONFIG_STATUS <<EOF
5063 CONFIG_HEADERS="include/autoconf.h"
5064 EOF
5065 cat >> $CONFIG_STATUS <<\EOF
5066 fi
5067 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5069 case "$ac_file" 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" ;;
5073 esac
5074
5075 echo creating $ac_file
5076
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
5080
5081 EOF
5082
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.
5087 rm -f conftest.vals
5088 cat > conftest.hdr <<\EOF
5089 s/[\\&%]/\\&/g
5090 s%[\\$`]%\\&%g
5091 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5092 s%ac_d%ac_u%gp
5093 s%ac_u%ac_e%gp
5094 EOF
5095 sed -n -f conftest.hdr confdefs.h > conftest.vals
5096 rm -f conftest.hdr
5097
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]*%/* & */%
5103 EOF
5104
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.
5107
5108 rm -f conftest.tail
5109 while :
5110 do
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
5117 echo 'CEOF
5118 sed -f conftest.frag conftest.in > conftest.out
5119 rm -f conftest.in
5120 mv conftest.out conftest.in
5121 ' >> $CONFIG_STATUS
5122 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5123 rm -f conftest.vals
5124 mv conftest.tail conftest.vals
5125 done
5126 rm -f conftest.vals
5127
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
5132 rm -f conftest.in
5133 if cmp -s $ac_file conftest.h 2>/dev/null; then
5134 echo "$ac_file is unchanged"
5135 rm -f conftest.h
5136 else
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"
5142 fi
5143 rm -f $ac_file
5144 mv conftest.h $ac_file
5145 fi
5146 fi; done
5147
5148 EOF
5149 cat >> $CONFIG_STATUS <<EOF
5150
5151 EOF
5152 cat >> $CONFIG_STATUS <<\EOF
5153
5154 exit 0
5155 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
5159