]> git.ipfire.org Git - thirdparty/squid.git/blob - configure
Break out the comm code into a more "modular" format - poll code
[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.13
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_help="$ac_help
15 --disable-dependency-tracking Speeds up one-time builds
16 --enable-dependency-tracking Do not reject slow dependency extractors"
17 ac_default_prefix=/usr/local/squid
18 ac_help="$ac_help
19 --enable-maintainer-mode enable make rules and dependencies not useful
20 (and sometimes confusing) to the casual installer"
21 ac_help="$ac_help
22 --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea"
23 ac_help="$ac_help
24 --enable-gnuregex Compile GNUregex"
25 ac_help="$ac_help
26 --enable-xmalloc-debug Do some simple malloc debugging"
27 ac_help="$ac_help
28 --enable-xmalloc-debug-trace
29 Detailed trace of memory allocations"
30 ac_help="$ac_help
31 --enable-xmalloc-statistics
32 Show malloc statistics in status page"
33 ac_help="$ac_help
34 --enable-carp Enable CARP support"
35 ac_help="$ac_help
36 --enable-async-io[=N_THREADS]
37 Shorthand for
38 --with-aufs-threads=N_THREADS
39 --with-pthreads
40 --enable-storeio=ufs,aufs"
41 ac_help="$ac_help
42 --with-aufs-threads=N_THREADS
43 Tune the number of worker threads for the aufs object
44 store."
45 ac_help="$ac_help
46 --with-pthreads Use POSIX Threads"
47 ac_help="$ac_help
48 --with-aio Use POSIX AIO"
49 ac_help="$ac_help
50 --enable-storeio=\"list of modules\"
51 Build support for the list of store I/O modules.
52 The default is only to build the "ufs" module.
53 See src/fs for a list of available modules, or
54 Programmers Guide section <not yet written>
55 for details on how to build your custom store module"
56 ac_help="$ac_help
57 --enable-heap-replacement
58 Backwards compability option. Please use the
59 new --enable-removal-policies directive instead."
60 ac_help="$ac_help
61 --enable-removal-policies=\"list of policies\"
62 Build support for the list of removal policies.
63 The default is only to build the "lru" module.
64 See src/repl for a list of available modules, or
65 Programmers Guide section 9.9 for details on how
66 to build your custom policy"
67 ac_help="$ac_help
68 --enable-icmp Enable ICMP pinging"
69 ac_help="$ac_help
70 --enable-delay-pools Enable delay pools to limit bandwidth usage"
71 ac_help="$ac_help
72 --enable-mem-gen-trace Do trace of memory stuff"
73 ac_help="$ac_help
74 --enable-useragent-log Enable logging of User-Agent header"
75 ac_help="$ac_help
76 --enable-referer-log Enable logging of Referer header"
77 ac_help="$ac_help
78 --disable-wccp Disable Web Cache Coordination Protocol"
79 ac_help="$ac_help
80 --enable-kill-parent-hack
81 Kill parent on shutdown"
82 ac_help="$ac_help
83 --enable-snmp Enable SNMP monitoring"
84 ac_help="$ac_help
85 --enable-time-hack Update internal timestamp only once per second"
86 ac_help="$ac_help
87 --enable-cachemgr-hostname[=hostname]
88 Make cachemgr.cgi default to this host"
89 ac_help="$ac_help
90 --enable-arp-acl Enable use of ARP ACL lists (ether address)"
91 ac_help="$ac_help
92 --enable-htcp Enable HTCP protocol"
93 ac_help="$ac_help
94 --enable-ssl Enable ssl gatewaying support using OpenSSL"
95 ac_help="$ac_help
96 --with-openssl[=prefix]
97 Compile with the OpenSSL libraries. The path to
98 the OpenSSL development libraries and headers
99 installation can be specified if outside of the
100 system standard directories"
101 ac_help="$ac_help
102 --enable-forw-via-db Enable Forw/Via database"
103 ac_help="$ac_help
104 --enable-cache-digests Use Cache Digests
105 see http://www.squid-cache.org/FAQ/FAQ-16.html"
106 ac_help="$ac_help
107 --enable-default-err-language=lang
108 Select default language for Error pages (see errors dir) "
109 ac_help="$ac_help
110 --enable-err-languages=\"lang1 lang2..\"
111 Select languages to be installed. (All will be installed by default) "
112 ac_help="$ac_help
113 --with-coss-membuf-size COSS membuf size (default 1048576 bytes) "
114 ac_help="$ac_help
115 --enable-poll Enable poll() support.
116 --disable-poll Disable poll() support. "
117 ac_help="$ac_help
118 --enable-select Enable select() support.
119 --disable-select Disable select() support. "
120 ac_help="$ac_help
121 --enable-kqueue Enable kqueue() support.
122 --disable-kqueue Disable kqueue() support. "
123 ac_help="$ac_help
124 --disable-http-violations
125 This allows you to remove code which is known to
126 violate the HTTP protocol specification."
127 ac_help="$ac_help
128 --enable-ipf-transparent
129 Enable Transparent Proxy support for systems
130 using IP-Filter network address redirection."
131 ac_help="$ac_help
132 --enable-linux-netfilter
133 Enable Transparent Proxy support for Linux 2.4."
134 ac_help="$ac_help
135 --enable-leakfinder
136 Enable Leak Finding code. Enabling this alone
137 does nothing; you also have to modify the source
138 code to use the leak finding functions. Probably
139 Useful for hackers only."
140 ac_help="$ac_help
141 --disable-ident-lookups
142 This allows you to remove code that performs
143 Ident (RFC 931) lookups."
144 ac_help="$ac_help
145 --disable-internal-dns This prevents Squid from directly sending and
146 receiving DNS messages, and instead enables the
147 old external 'dnsserver' processes."
148 ac_help="$ac_help
149 --enable-truncate This uses truncate() instead of unlink() when
150 removing cache files. Truncate gives a little
151 performance improvement, but may cause problems
152 when used with async I/O. Truncate uses more
153 filesystem inodes than unlink.."
154 ac_help="$ac_help
155 --enable-underscores Squid by default rejects any host names with _
156 in their name to conform with internet standards.
157 If you disagree with this you may allow _ in
158 hostnames by using this switch, provided that
159 the resolver library on the host where Squid runs
160 does not reject _ in hostnames..."
161 ac_help="$ac_help
162 --enable-auth=\"list of auth scheme modules\"
163 Build support for the list of authentication schemes.
164 The default is to build support for the Basic scheme.
165 See src/auth for a list of available modules, or
166 Programmers Guide section authentication schemes
167 for details on how to build your custom auth scheme
168 module"
169 ac_help="$ac_help
170 --enable-auth-modules=\"list of helpers\"
171 Backwards compability alias for
172 --enable-basic-auth-helpers"
173 ac_help="$ac_help
174 --enable-basic-auth-helpers=\"list of helpers\"
175 This option selects which basic scheme proxy_auth
176 helpers to build and install as part of the normal
177 build process. For a list of available
178 helpers see the src/auth/basic/helpers directory."
179 ac_help="$ac_help
180 --enable-ntlm-auth-helpers=\"list of helpers\"
181 This option selects which proxy_auth ntlm helpers
182 to build and install as part of the normal build
183 process. For a list of available modules see
184 the src/auth/ntlm/helpers directory."
185 ac_help="$ac_help
186 --enable-digest-auth-helpers=\"list of helpers\"
187 This option selects which digest scheme authentication
188 helpers to build and install as part of the normal build
189 process. For a list of available modules see the
190 src/auth/digest/helpers directory."
191 ac_help="$ac_help
192 --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the
193 Authentication steps can allow squid to still authenticate
194 the user."
195 ac_help="$ac_help
196 --disable-unlinkd Do not use unlinkd"
197 ac_help="$ac_help
198 --enable-stacktraces Enable automatic call backtrace on fatal errors"
199 ac_help="$ac_help
200 --enable-x-accelerator-vary Enable support for the X-Accelerator-Vary
201 HTTP header. Can be used to indicate
202 variance within an accelerator setup.
203 Typically used together with other code
204 that adds custom HTTP headers to the requests."
205
206 # Initialize some variables set by options.
207 # The variables have the same names as the options, with
208 # dashes changed to underlines.
209 build=NONE
210 cache_file=./config.cache
211 exec_prefix=NONE
212 host=NONE
213 no_create=
214 nonopt=NONE
215 no_recursion=
216 prefix=NONE
217 program_prefix=NONE
218 program_suffix=NONE
219 program_transform_name=s,x,x,
220 silent=
221 site=
222 srcdir=
223 target=NONE
224 verbose=
225 x_includes=NONE
226 x_libraries=NONE
227 bindir='${exec_prefix}/bin'
228 sbindir='${exec_prefix}/sbin'
229 libexecdir='${exec_prefix}/libexec'
230 datadir='${prefix}/share'
231 sysconfdir='${prefix}/etc'
232 sharedstatedir='${prefix}/com'
233 localstatedir='${prefix}/var'
234 libdir='${exec_prefix}/lib'
235 includedir='${prefix}/include'
236 oldincludedir='/usr/include'
237 infodir='${prefix}/info'
238 mandir='${prefix}/man'
239
240 # Initialize some other variables.
241 subdirs=
242 MFLAGS= MAKEFLAGS=
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 # Maximum number of lines to put in a shell here document.
245 ac_max_here_lines=12
246
247 ac_prev=
248 for ac_option
249 do
250
251 # If the previous option needs an argument, assign it.
252 if test -n "$ac_prev"; then
253 eval "$ac_prev=\$ac_option"
254 ac_prev=
255 continue
256 fi
257
258 case "$ac_option" in
259 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
260 *) ac_optarg= ;;
261 esac
262
263 # Accept the important Cygnus configure options, so we can diagnose typos.
264
265 case "$ac_option" in
266
267 -bindir | --bindir | --bindi | --bind | --bin | --bi)
268 ac_prev=bindir ;;
269 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
270 bindir="$ac_optarg" ;;
271
272 -build | --build | --buil | --bui | --bu)
273 ac_prev=build ;;
274 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
275 build="$ac_optarg" ;;
276
277 -cache-file | --cache-file | --cache-fil | --cache-fi \
278 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
279 ac_prev=cache_file ;;
280 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
281 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
282 cache_file="$ac_optarg" ;;
283
284 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
285 ac_prev=datadir ;;
286 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
287 | --da=*)
288 datadir="$ac_optarg" ;;
289
290 -disable-* | --disable-*)
291 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
292 # Reject names that are not valid shell variable names.
293 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
294 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
295 fi
296 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
297 eval "enable_${ac_feature}=no" ;;
298
299 -enable-* | --enable-*)
300 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
301 # Reject names that are not valid shell variable names.
302 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
303 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
304 fi
305 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
306 case "$ac_option" in
307 *=*) ;;
308 *) ac_optarg=yes ;;
309 esac
310 eval "enable_${ac_feature}='$ac_optarg'" ;;
311
312 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
313 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
314 | --exec | --exe | --ex)
315 ac_prev=exec_prefix ;;
316 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
317 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
318 | --exec=* | --exe=* | --ex=*)
319 exec_prefix="$ac_optarg" ;;
320
321 -gas | --gas | --ga | --g)
322 # Obsolete; use --with-gas.
323 with_gas=yes ;;
324
325 -help | --help | --hel | --he)
326 # Omit some internal or obsolete options to make the list less imposing.
327 # This message is too long to be a string in the A/UX 3.1 sh.
328 cat << EOF
329 Usage: configure [options] [host]
330 Options: [defaults in brackets after descriptions]
331 Configuration:
332 --cache-file=FILE cache test results in FILE
333 --help print this message
334 --no-create do not create output files
335 --quiet, --silent do not print \`checking...' messages
336 --version print the version of autoconf that created configure
337 Directory and file names:
338 --prefix=PREFIX install architecture-independent files in PREFIX
339 [$ac_default_prefix]
340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
341 [same as prefix]
342 --bindir=DIR user executables in DIR [EPREFIX/bin]
343 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
344 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
345 --datadir=DIR read-only architecture-independent data in DIR
346 [PREFIX/share]
347 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
348 --sharedstatedir=DIR modifiable architecture-independent data in DIR
349 [PREFIX/com]
350 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
351 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
352 --includedir=DIR C header files in DIR [PREFIX/include]
353 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
354 --infodir=DIR info documentation in DIR [PREFIX/info]
355 --mandir=DIR man documentation in DIR [PREFIX/man]
356 --srcdir=DIR find the sources in DIR [configure dir or ..]
357 --program-prefix=PREFIX prepend PREFIX to installed program names
358 --program-suffix=SUFFIX append SUFFIX to installed program names
359 --program-transform-name=PROGRAM
360 run sed PROGRAM on installed program names
361 EOF
362 cat << EOF
363 Host type:
364 --build=BUILD configure for building on BUILD [BUILD=HOST]
365 --host=HOST configure for HOST [guessed]
366 --target=TARGET configure for TARGET [TARGET=HOST]
367 Features and packages:
368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
372 --x-includes=DIR X include files are in DIR
373 --x-libraries=DIR X library files are in DIR
374 EOF
375 if test -n "$ac_help"; then
376 echo "--enable and --with options recognized:$ac_help"
377 fi
378 exit 0 ;;
379
380 -host | --host | --hos | --ho)
381 ac_prev=host ;;
382 -host=* | --host=* | --hos=* | --ho=*)
383 host="$ac_optarg" ;;
384
385 -includedir | --includedir | --includedi | --included | --include \
386 | --includ | --inclu | --incl | --inc)
387 ac_prev=includedir ;;
388 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
389 | --includ=* | --inclu=* | --incl=* | --inc=*)
390 includedir="$ac_optarg" ;;
391
392 -infodir | --infodir | --infodi | --infod | --info | --inf)
393 ac_prev=infodir ;;
394 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
395 infodir="$ac_optarg" ;;
396
397 -libdir | --libdir | --libdi | --libd)
398 ac_prev=libdir ;;
399 -libdir=* | --libdir=* | --libdi=* | --libd=*)
400 libdir="$ac_optarg" ;;
401
402 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
403 | --libexe | --libex | --libe)
404 ac_prev=libexecdir ;;
405 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
406 | --libexe=* | --libex=* | --libe=*)
407 libexecdir="$ac_optarg" ;;
408
409 -localstatedir | --localstatedir | --localstatedi | --localstated \
410 | --localstate | --localstat | --localsta | --localst \
411 | --locals | --local | --loca | --loc | --lo)
412 ac_prev=localstatedir ;;
413 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
414 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
415 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
416 localstatedir="$ac_optarg" ;;
417
418 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
419 ac_prev=mandir ;;
420 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
421 mandir="$ac_optarg" ;;
422
423 -nfp | --nfp | --nf)
424 # Obsolete; use --without-fp.
425 with_fp=no ;;
426
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c)
429 no_create=yes ;;
430
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
433 no_recursion=yes ;;
434
435 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
436 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
437 | --oldin | --oldi | --old | --ol | --o)
438 ac_prev=oldincludedir ;;
439 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
440 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
441 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
442 oldincludedir="$ac_optarg" ;;
443
444 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
445 ac_prev=prefix ;;
446 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
447 prefix="$ac_optarg" ;;
448
449 -program-prefix | --program-prefix | --program-prefi | --program-pref \
450 | --program-pre | --program-pr | --program-p)
451 ac_prev=program_prefix ;;
452 -program-prefix=* | --program-prefix=* | --program-prefi=* \
453 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
454 program_prefix="$ac_optarg" ;;
455
456 -program-suffix | --program-suffix | --program-suffi | --program-suff \
457 | --program-suf | --program-su | --program-s)
458 ac_prev=program_suffix ;;
459 -program-suffix=* | --program-suffix=* | --program-suffi=* \
460 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
461 program_suffix="$ac_optarg" ;;
462
463 -program-transform-name | --program-transform-name \
464 | --program-transform-nam | --program-transform-na \
465 | --program-transform-n | --program-transform- \
466 | --program-transform | --program-transfor \
467 | --program-transfo | --program-transf \
468 | --program-trans | --program-tran \
469 | --progr-tra | --program-tr | --program-t)
470 ac_prev=program_transform_name ;;
471 -program-transform-name=* | --program-transform-name=* \
472 | --program-transform-nam=* | --program-transform-na=* \
473 | --program-transform-n=* | --program-transform-=* \
474 | --program-transform=* | --program-transfor=* \
475 | --program-transfo=* | --program-transf=* \
476 | --program-trans=* | --program-tran=* \
477 | --progr-tra=* | --program-tr=* | --program-t=*)
478 program_transform_name="$ac_optarg" ;;
479
480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
481 | -silent | --silent | --silen | --sile | --sil)
482 silent=yes ;;
483
484 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
485 ac_prev=sbindir ;;
486 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
487 | --sbi=* | --sb=*)
488 sbindir="$ac_optarg" ;;
489
490 -sharedstatedir | --sharedstatedir | --sharedstatedi \
491 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
492 | --sharedst | --shareds | --shared | --share | --shar \
493 | --sha | --sh)
494 ac_prev=sharedstatedir ;;
495 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
496 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
497 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
498 | --sha=* | --sh=*)
499 sharedstatedir="$ac_optarg" ;;
500
501 -site | --site | --sit)
502 ac_prev=site ;;
503 -site=* | --site=* | --sit=*)
504 site="$ac_optarg" ;;
505
506 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
507 ac_prev=srcdir ;;
508 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
509 srcdir="$ac_optarg" ;;
510
511 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
512 | --syscon | --sysco | --sysc | --sys | --sy)
513 ac_prev=sysconfdir ;;
514 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
515 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
516 sysconfdir="$ac_optarg" ;;
517
518 -target | --target | --targe | --targ | --tar | --ta | --t)
519 ac_prev=target ;;
520 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
521 target="$ac_optarg" ;;
522
523 -v | -verbose | --verbose | --verbos | --verbo | --verb)
524 verbose=yes ;;
525
526 -version | --version | --versio | --versi | --vers)
527 echo "configure generated by autoconf version 2.13"
528 exit 0 ;;
529
530 -with-* | --with-*)
531 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
532 # Reject names that are not valid shell variable names.
533 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
534 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
535 fi
536 ac_package=`echo $ac_package| sed 's/-/_/g'`
537 case "$ac_option" in
538 *=*) ;;
539 *) ac_optarg=yes ;;
540 esac
541 eval "with_${ac_package}='$ac_optarg'" ;;
542
543 -without-* | --without-*)
544 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
545 # Reject names that are not valid shell variable names.
546 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
547 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
548 fi
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
550 eval "with_${ac_package}=no" ;;
551
552 --x)
553 # Obsolete; use --with-x.
554 with_x=yes ;;
555
556 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
557 | --x-incl | --x-inc | --x-in | --x-i)
558 ac_prev=x_includes ;;
559 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
560 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
561 x_includes="$ac_optarg" ;;
562
563 -x-libraries | --x-libraries | --x-librarie | --x-librari \
564 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
565 ac_prev=x_libraries ;;
566 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
567 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
568 x_libraries="$ac_optarg" ;;
569
570 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
571 ;;
572
573 *)
574 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
575 echo "configure: warning: $ac_option: invalid host type" 1>&2
576 fi
577 if test "x$nonopt" != xNONE; then
578 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
579 fi
580 nonopt="$ac_option"
581 ;;
582
583 esac
584 done
585
586 if test -n "$ac_prev"; then
587 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
588 fi
589
590 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
591
592 # File descriptor usage:
593 # 0 standard input
594 # 1 file creation
595 # 2 errors and warnings
596 # 3 some systems may open it to /dev/tty
597 # 4 used on the Kubota Titan
598 # 6 checking for... messages and results
599 # 5 compiler messages saved in config.log
600 if test "$silent" = yes; then
601 exec 6>/dev/null
602 else
603 exec 6>&1
604 fi
605 exec 5>./config.log
606
607 echo "\
608 This file contains any messages produced by compilers while
609 running configure, to aid debugging if configure makes a mistake.
610 " 1>&5
611
612 # Strip out --no-create and --no-recursion so they do not pile up.
613 # Also quote any args containing shell metacharacters.
614 ac_configure_args=
615 for ac_arg
616 do
617 case "$ac_arg" in
618 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
619 | --no-cr | --no-c) ;;
620 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
621 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
622 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
623 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
624 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
625 esac
626 done
627
628 # NLS nuisances.
629 # Only set these to C if already set. These must not be set unconditionally
630 # because not all systems understand e.g. LANG=C (notably SCO).
631 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
632 # Non-C LC_CTYPE values break the ctype check.
633 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
634 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
635 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
636 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
637
638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
639 rm -rf conftest* confdefs.h
640 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
641 echo > confdefs.h
642
643 # A filename unique to this package, relative to the directory that
644 # configure is in, which we can look for to find out if srcdir is correct.
645 ac_unique_file=src/main.c
646
647 # Find the source files, if location was not specified.
648 if test -z "$srcdir"; then
649 ac_srcdir_defaulted=yes
650 # Try the directory containing this script, then its parent.
651 ac_prog=$0
652 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
653 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
654 srcdir=$ac_confdir
655 if test ! -r $srcdir/$ac_unique_file; then
656 srcdir=..
657 fi
658 else
659 ac_srcdir_defaulted=no
660 fi
661 if test ! -r $srcdir/$ac_unique_file; then
662 if test "$ac_srcdir_defaulted" = yes; then
663 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
664 else
665 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
666 fi
667 fi
668 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
669
670 # Prefer explicitly selected file to automatically selected ones.
671 if test -z "$CONFIG_SITE"; then
672 if test "x$prefix" != xNONE; then
673 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
674 else
675 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
676 fi
677 fi
678 for ac_site_file in $CONFIG_SITE; do
679 if test -r "$ac_site_file"; then
680 echo "loading site script $ac_site_file"
681 . "$ac_site_file"
682 fi
683 done
684
685 if test -r "$cache_file"; then
686 echo "loading cache $cache_file"
687 . $cache_file
688 else
689 echo "creating cache $cache_file"
690 > $cache_file
691 fi
692
693 ac_ext=c
694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
695 ac_cpp='$CPP $CPPFLAGS'
696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
698 cross_compiling=$ac_cv_prog_cc_cross
699
700 ac_exeext=
701 ac_objext=o
702 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
703 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
704 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
705 ac_n= ac_c='
706 ' ac_t=' '
707 else
708 ac_n=-n ac_c= ac_t=
709 fi
710 else
711 ac_n= ac_c='\c' ac_t=
712 fi
713
714
715 ac_aux_dir=
716 for ac_dir in cfgaux $srcdir/cfgaux; do
717 if test -f $ac_dir/install-sh; then
718 ac_aux_dir=$ac_dir
719 ac_install_sh="$ac_aux_dir/install-sh -c"
720 break
721 elif test -f $ac_dir/install.sh; then
722 ac_aux_dir=$ac_dir
723 ac_install_sh="$ac_aux_dir/install.sh -c"
724 break
725 fi
726 done
727 if test -z "$ac_aux_dir"; then
728 { echo "configure: error: can not find install-sh or install.sh in cfgaux $srcdir/cfgaux" 1>&2; exit 1; }
729 fi
730 ac_config_guess=$ac_aux_dir/config.guess
731 ac_config_sub=$ac_aux_dir/config.sub
732 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
733
734
735 # expand $ac_aux_dir to an absolute path
736 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
737
738 # Find a good install program. We prefer a C program (faster),
739 # so one script is as good as another. But avoid the broken or
740 # incompatible versions:
741 # SysV /etc/install, /usr/sbin/install
742 # SunOS /usr/etc/install
743 # IRIX /sbin/install
744 # AIX /bin/install
745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
758 case "$ac_dir/" in
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760 *)
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 # Don't use installbsd from OSF since it installs stuff as root
763 # by default.
764 for ac_prog in ginstall scoinst install; do
765 if test -f $ac_dir/$ac_prog; then
766 if test $ac_prog = install &&
767 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
768 # AIX install. It has an incompatible calling convention.
769 :
770 else
771 ac_cv_path_install="$ac_dir/$ac_prog -c"
772 break 2
773 fi
774 fi
775 done
776 ;;
777 esac
778 done
779 IFS="$ac_save_IFS"
780
781 fi
782 if test "${ac_cv_path_install+set}" = set; then
783 INSTALL="$ac_cv_path_install"
784 else
785 # As a last resort, use the slow shell script. We don't cache a
786 # path for INSTALL within a source directory, because that will
787 # break other packages using the cache if that directory is
788 # removed, or if the path is relative.
789 INSTALL="$ac_install_sh"
790 fi
791 fi
792 echo "$ac_t""$INSTALL" 1>&6
793
794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
795 # It thinks the first close brace ends the variable substitution.
796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797
798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801
802 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
803 echo "configure:804: checking whether build environment is sane" >&5
804 # Just in case
805 sleep 1
806 echo timestamp > conftest.file
807 # Do `set' in a subshell so we don't clobber the current shell's
808 # arguments. Must try -L first in case configure is actually a
809 # symlink; some systems play weird games with the mod time of symlinks
810 # (eg FreeBSD returns the mod time of the symlink's containing
811 # directory).
812 if (
813 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
814 if test "$*" = "X"; then
815 # -L didn't work.
816 set X `ls -t $srcdir/configure conftest.file`
817 fi
818 rm -f conftest.file
819 if test "$*" != "X $srcdir/configure conftest.file" \
820 && test "$*" != "X conftest.file $srcdir/configure"; then
821
822 # If neither matched, then we have a broken ls. This can happen
823 # if, for instance, CONFIG_SHELL is bash and it inherits a
824 # broken ls alias from the environment. This has actually
825 # happened. Such a system could not be considered "sane".
826 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
827 alias in your environment" 1>&2; exit 1; }
828 fi
829
830 test "$2" = conftest.file
831 )
832 then
833 # Ok.
834 :
835 else
836 { echo "configure: error: newly created file is older than distributed files!
837 Check your system clock" 1>&2; exit 1; }
838 fi
839 echo "$ac_t""yes" 1>&6
840 if test "$program_transform_name" = s,x,x,; then
841 program_transform_name=
842 else
843 # Double any \ or $. echo might interpret backslashes.
844 cat <<\EOF_SED > conftestsed
845 s,\\,\\\\,g; s,\$,$$,g
846 EOF_SED
847 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
848 rm -f conftestsed
849 fi
850 test "$program_prefix" != NONE &&
851 program_transform_name="s,^,${program_prefix},; $program_transform_name"
852 # Use a double $ so make ignores it.
853 test "$program_suffix" != NONE &&
854 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855
856 # sed with no file args requires a program.
857 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858
859 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
860 # Use eval to expand $SHELL
861 if eval "$MISSING --run true"; then
862 am_missing_run="$MISSING --run "
863 else
864 am_missing_run=
865 am_backtick='`'
866 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
867 fi
868
869 for ac_prog in mawk gawk nawk awk
870 do
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy $ac_prog; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 if test -n "$AWK"; then
879 ac_cv_prog_AWK="$AWK" # Let the user override the test.
880 else
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 ac_dummy="$PATH"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_AWK="$ac_prog"
887 break
888 fi
889 done
890 IFS="$ac_save_ifs"
891 fi
892 fi
893 AWK="$ac_cv_prog_AWK"
894 if test -n "$AWK"; then
895 echo "$ac_t""$AWK" 1>&6
896 else
897 echo "$ac_t""no" 1>&6
898 fi
899
900 test -n "$AWK" && break
901 done
902
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908 else
909 cat > conftestmake <<\EOF
910 all:
911 @echo 'ac_maketemp="${MAKE}"'
912 EOF
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
917 else
918 eval ac_cv_prog_make_${ac_make}_set=no
919 fi
920 rm -f conftestmake
921 fi
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
924 SET_MAKE=
925 else
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
928 fi
929
930 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
931 if test "${enable_dependency_tracking+set}" = set; then
932 enableval="$enable_dependency_tracking"
933 :
934 fi
935
936 if test "x$enable_dependency_tracking" != xno; then
937 am_depcomp="$ac_aux_dir/depcomp"
938 AMDEPBACKSLASH='\'
939 fi
940
941
942 if test "x$enable_dependency_tracking" != xno; then
943 AMDEP_TRUE=
944 AMDEP_FALSE='#'
945 else
946 AMDEP_TRUE='#'
947 AMDEP_FALSE=
948 fi
949
950
951
952
953 rm -f .deps 2>/dev/null
954 mkdir .deps 2>/dev/null
955 if test -d .deps; then
956 DEPDIR=.deps
957 else
958 # MS-DOS does not allow filenames that begin with a dot.
959 DEPDIR=_deps
960 fi
961 rmdir .deps 2>/dev/null
962
963
964 # test to see if srcdir already configured
965 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
966 test -f $srcdir/config.status; then
967 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
968 fi
969
970 # Define the identity of the package.
971 PACKAGE=squid
972 VERSION=2.6-DEVEL
973 cat >> confdefs.h <<EOF
974 #define PACKAGE "$PACKAGE"
975 EOF
976
977 cat >> confdefs.h <<EOF
978 #define VERSION "$VERSION"
979 EOF
980
981
982 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
983 # the ones we care about.
984
985 # Autoconf 2.50 always computes EXEEXT. However we need to be
986 # compatible with 2.13, for now. So we always define EXEEXT, but we
987 # don't compute it.
988
989 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
990 # requests that it be used. This is a bit dumb.
991 : ${OBJEXT=o}
992
993
994 # Some tools Automake needs.
995
996 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
997
998
999 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1000
1001
1002 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1003
1004
1005 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1006
1007
1008 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1009
1010
1011 AMTAR=${AMTAR-"${am_missing_run}tar"}
1012
1013 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1014
1015 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1016
1017 # We need awk for the "check" target. The system "awk" is bad on
1018 # some platforms.
1019
1020
1021
1022
1023 # From configure.in Revision: 1.252
1024 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether to enable maintainer-specific portions of Makefiles" >&5
1026 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1027 if test "${enable_maintainer_mode+set}" = set; then
1028 enableval="$enable_maintainer_mode"
1029 USE_MAINTAINER_MODE=$enableval
1030 else
1031 USE_MAINTAINER_MODE=no
1032 fi
1033
1034 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1035
1036
1037 if test $USE_MAINTAINER_MODE = yes; then
1038 MAINTAINER_MODE_TRUE=
1039 MAINTAINER_MODE_FALSE='#'
1040 else
1041 MAINTAINER_MODE_TRUE='#'
1042 MAINTAINER_MODE_FALSE=
1043 fi
1044 MAINT=$MAINTAINER_MODE_TRUE
1045
1046
1047
1048 if test -z "$LDFLAGS"; then
1049 LDFLAGS="-g"
1050 fi
1051
1052 PRESET_CFLAGS="$CFLAGS"
1053
1054 # Extract the first word of "gcc", so it can be a program name with args.
1055 set dummy gcc; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061 if test -n "$CC"; then
1062 ac_cv_prog_CC="$CC" # Let the user override the test.
1063 else
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 ac_dummy="$PATH"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_CC="gcc"
1070 break
1071 fi
1072 done
1073 IFS="$ac_save_ifs"
1074 fi
1075 fi
1076 CC="$ac_cv_prog_CC"
1077 if test -n "$CC"; then
1078 echo "$ac_t""$CC" 1>&6
1079 else
1080 echo "$ac_t""no" 1>&6
1081 fi
1082
1083 if test -z "$CC"; then
1084 # Extract the first word of "cc", so it can be a program name with args.
1085 set dummy cc; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1090 else
1091 if test -n "$CC"; then
1092 ac_cv_prog_CC="$CC" # Let the user override the test.
1093 else
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1095 ac_prog_rejected=no
1096 ac_dummy="$PATH"
1097 for ac_dir in $ac_dummy; do
1098 test -z "$ac_dir" && ac_dir=.
1099 if test -f $ac_dir/$ac_word; then
1100 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1101 ac_prog_rejected=yes
1102 continue
1103 fi
1104 ac_cv_prog_CC="cc"
1105 break
1106 fi
1107 done
1108 IFS="$ac_save_ifs"
1109 if test $ac_prog_rejected = yes; then
1110 # We found a bogon in the path, so make sure we never use it.
1111 set dummy $ac_cv_prog_CC
1112 shift
1113 if test $# -gt 0; then
1114 # We chose a different compiler from the bogus one.
1115 # However, it has the same basename, so the bogon will be chosen
1116 # first if we set CC to just the basename; use the full file name.
1117 shift
1118 set dummy "$ac_dir/$ac_word" "$@"
1119 shift
1120 ac_cv_prog_CC="$@"
1121 fi
1122 fi
1123 fi
1124 fi
1125 CC="$ac_cv_prog_CC"
1126 if test -n "$CC"; then
1127 echo "$ac_t""$CC" 1>&6
1128 else
1129 echo "$ac_t""no" 1>&6
1130 fi
1131
1132 if test -z "$CC"; then
1133 case "`uname -s`" in
1134 *win32* | *WIN32*)
1135 # Extract the first word of "cl", so it can be a program name with args.
1136 set dummy cl; ac_word=$2
1137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_word" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 if test -n "$CC"; then
1143 ac_cv_prog_CC="$CC" # Let the user override the test.
1144 else
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 ac_dummy="$PATH"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 ac_cv_prog_CC="cl"
1151 break
1152 fi
1153 done
1154 IFS="$ac_save_ifs"
1155 fi
1156 fi
1157 CC="$ac_cv_prog_CC"
1158 if test -n "$CC"; then
1159 echo "$ac_t""$CC" 1>&6
1160 else
1161 echo "$ac_t""no" 1>&6
1162 fi
1163 ;;
1164 esac
1165 fi
1166 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1167 fi
1168
1169 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1171
1172 ac_ext=c
1173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1174 ac_cpp='$CPP $CPPFLAGS'
1175 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1176 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1177 cross_compiling=$ac_cv_prog_cc_cross
1178
1179 cat > conftest.$ac_ext << EOF
1180
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183
1184 main(){return(0);}
1185 EOF
1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1187 ac_cv_prog_cc_works=yes
1188 # If we can't run a trivial program, we are probably using a cross compiler.
1189 if (./conftest; exit) 2>/dev/null; then
1190 ac_cv_prog_cc_cross=no
1191 else
1192 ac_cv_prog_cc_cross=yes
1193 fi
1194 else
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 ac_cv_prog_cc_works=no
1198 fi
1199 rm -fr conftest*
1200 ac_ext=c
1201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1202 ac_cpp='$CPP $CPPFLAGS'
1203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1205 cross_compiling=$ac_cv_prog_cc_cross
1206
1207 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1208 if test $ac_cv_prog_cc_works = no; then
1209 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1210 fi
1211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1213 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1214 cross_compiling=$ac_cv_prog_cc_cross
1215
1216 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether we are using GNU C" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221 cat > conftest.c <<EOF
1222 #ifdef __GNUC__
1223 yes;
1224 #endif
1225 EOF
1226 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1227 ac_cv_prog_gcc=yes
1228 else
1229 ac_cv_prog_gcc=no
1230 fi
1231 fi
1232
1233 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1234
1235 if test $ac_cv_prog_gcc = yes; then
1236 GCC=yes
1237 else
1238 GCC=
1239 fi
1240
1241 ac_test_CFLAGS="${CFLAGS+set}"
1242 ac_save_CFLAGS="$CFLAGS"
1243 CFLAGS=
1244 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether ${CC-cc} accepts -g" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248 else
1249 echo 'void f(){}' > conftest.c
1250 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1251 ac_cv_prog_cc_g=yes
1252 else
1253 ac_cv_prog_cc_g=no
1254 fi
1255 rm -f conftest*
1256
1257 fi
1258
1259 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1260 if test "$ac_test_CFLAGS" = set; then
1261 CFLAGS="$ac_save_CFLAGS"
1262 elif test $ac_cv_prog_cc_g = yes; then
1263 if test "$GCC" = yes; then
1264 CFLAGS="-g -O2"
1265 else
1266 CFLAGS="-g"
1267 fi
1268 else
1269 if test "$GCC" = yes; then
1270 CFLAGS="-O2"
1271 else
1272 CFLAGS=
1273 fi
1274 fi
1275
1276
1277 am_make=${MAKE-make}
1278 cat > confinc << 'END'
1279 doit:
1280 @echo done
1281 END
1282 # If we don't find an include directive, just comment out the code.
1283 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
1284 echo "configure:1285: checking for style of include used by $am_make" >&5
1285 am__include='#'
1286 am__quote=
1287 _am_result=none
1288 # First try GNU make style include.
1289 echo "include confinc" > confmf
1290 # We grep out `Entering directory' and `Leaving directory'
1291 # messages which can occur if `w' ends up in MAKEFLAGS.
1292 # In particular we don't look at `^make:' because GNU make might
1293 # be invoked under some other name (usually "gmake"), in which
1294 # case it prints its new name instead of `make'.
1295 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1296 am__include=include
1297 am__quote=
1298 _am_result=GNU
1299 fi
1300 # Now try BSD make style include.
1301 if test "$am__include" = "#"; then
1302 echo '.include "confinc"' > confmf
1303 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1304 am__include=.include
1305 am__quote='"'
1306 _am_result=BSD
1307 fi
1308 fi
1309
1310
1311 echo "$ac_t""$_am_result" 1>&6
1312 rm -f confinc confmf
1313
1314
1315 depcc="$CC" am_compiler_list=
1316
1317 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1318 echo "configure:1319: checking dependency style of $depcc" >&5
1319 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1323 # We make a subdir and do the tests there. Otherwise we can end up
1324 # making bogus files that we don't know about and never remove. For
1325 # instance it was reported that on HP-UX the gcc test will end up
1326 # making a dummy file named `D' -- because `-MD' means `put the output
1327 # in D'.
1328 mkdir conftest.dir
1329 # Copy depcomp to subdir because otherwise we won't find it if we're
1330 # using a relative directory.
1331 cp "$am_depcomp" conftest.dir
1332 cd conftest.dir
1333
1334 am_cv_CC_dependencies_compiler_type=none
1335 if test "$am_compiler_list" = ""; then
1336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1337 fi
1338 for depmode in $am_compiler_list; do
1339 # We need to recreate these files for each test, as the compiler may
1340 # overwrite some of them when testing with obscure command lines.
1341 # This happens at least with the AIX C compiler.
1342 echo '#include "conftest.h"' > conftest.c
1343 echo 'int i;' > conftest.h
1344 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1345
1346 case $depmode in
1347 nosideeffect)
1348 # after this tag, mechanisms are not by side-effect, so they'll
1349 # only be used when explicitly requested
1350 if test "x$enable_dependency_tracking" = xyes; then
1351 continue
1352 else
1353 break
1354 fi
1355 ;;
1356 none) break ;;
1357 esac
1358 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1359 # mode. It turns out that the SunPro C++ compiler does not properly
1360 # handle `-M -o', and we need to detect this.
1361 if depmode=$depmode \
1362 source=conftest.c object=conftest.o \
1363 depfile=conftest.Po tmpdepfile=conftest.TPo \
1364 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1365 grep conftest.h conftest.Po > /dev/null 2>&1 &&
1366 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1367 am_cv_CC_dependencies_compiler_type=$depmode
1368 break
1369 fi
1370 done
1371
1372 cd ..
1373 rm -rf conftest.dir
1374 else
1375 am_cv_CC_dependencies_compiler_type=none
1376 fi
1377
1378 fi
1379
1380 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1381 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1382
1383
1384 if test "x$CC" != xcc; then
1385 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether $CC and cc understand -c and -o together" >&5
1387 else
1388 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1389 echo "configure:1390: checking whether cc understands -c and -o together" >&5
1390 fi
1391 set dummy $CC; ac_cc="`echo $2 |
1392 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1393 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396 echo 'foo(){}' > conftest.c
1397 # Make sure it works both with $CC and with simple cc.
1398 # We do the test twice because some compilers refuse to overwrite an
1399 # existing .o file with -o, though they will create one.
1400 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1401 if { (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1402 test -f conftest.o && { (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1403 then
1404 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1405 if test "x$CC" != xcc; then
1406 # Test first that cc exists at all.
1407 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1408 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1409 if { (eval echo configure:1410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1410 test -f conftest.o && { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1411 then
1412 # cc works too.
1413 :
1414 else
1415 # cc exists but doesn't like -o.
1416 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1417 fi
1418 fi
1419 fi
1420 else
1421 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1422 fi
1423 rm -f conftest*
1424
1425 fi
1426 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1427 echo "$ac_t""yes" 1>&6
1428 else
1429 echo "$ac_t""no" 1>&6
1430 cat >> confdefs.h <<\EOF
1431 #define NO_MINUS_C_MINUS_O 1
1432 EOF
1433
1434 fi
1435
1436 # FIXME: we rely on the cache variable name because
1437 # there is no other way.
1438 set dummy $CC
1439 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1440 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
1441 # Losing compiler, so override with the script.
1442 # FIXME: It is wrong to rewrite CC.
1443 # But if we don't then we get into trouble of one sort or another.
1444 # A longer-term fix would be to have automake use am__CC in this case,
1445 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1446 CC="$am_aux_dir/compile $CC"
1447 fi
1448
1449
1450 # Make sure we can run config.sub.
1451 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1452 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1453 fi
1454
1455 echo $ac_n "checking host system type""... $ac_c" 1>&6
1456 echo "configure:1457: checking host system type" >&5
1457
1458 host_alias=$host
1459 case "$host_alias" in
1460 NONE)
1461 case $nonopt in
1462 NONE)
1463 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1464 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1465 fi ;;
1466 *) host_alias=$nonopt ;;
1467 esac ;;
1468 esac
1469
1470 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1471 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 echo "$ac_t""$host" 1>&6
1475
1476
1477
1478 CRYPTLIB=''
1479 REGEXLIB='' # -lregex
1480 LIBREGEX='' # libregex.a
1481
1482 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1483 echo "configure:1484: checking for Cygwin environment" >&5
1484 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1486 else
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490
1491 int main() {
1492
1493 #ifndef __CYGWIN__
1494 #define __CYGWIN__ __CYGWIN32__
1495 #endif
1496 return __CYGWIN__;
1497 ; return 0; }
1498 EOF
1499 if { (eval echo configure:1500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1500 rm -rf conftest*
1501 ac_cv_cygwin=yes
1502 else
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 ac_cv_cygwin=no
1507 fi
1508 rm -f conftest*
1509 rm -f conftest*
1510 fi
1511
1512 echo "$ac_t""$ac_cv_cygwin" 1>&6
1513 CYGWIN=
1514 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1515 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1516 echo "configure:1517: checking for mingw32 environment" >&5
1517 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523
1524 int main() {
1525 return __MINGW32__;
1526 ; return 0; }
1527 EOF
1528 if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1529 rm -rf conftest*
1530 ac_cv_mingw32=yes
1531 else
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1534 rm -rf conftest*
1535 ac_cv_mingw32=no
1536 fi
1537 rm -f conftest*
1538 rm -f conftest*
1539 fi
1540
1541 echo "$ac_t""$ac_cv_mingw32" 1>&6
1542 MINGW32=
1543 test "$ac_cv_mingw32" = yes && MINGW32=yes
1544
1545
1546 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1547 echo "configure:1548: checking for executable suffix" >&5
1548 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1552 ac_cv_exeext=.exe
1553 else
1554 rm -f conftest*
1555 echo 'int main () { return 0; }' > conftest.$ac_ext
1556 ac_cv_exeext=
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1558 for file in conftest.*; do
1559 case $file in
1560 *.c | *.C | *.o | *.obj) ;;
1561 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1562 esac
1563 done
1564 else
1565 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1566 fi
1567 rm -f conftest*
1568 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1569 fi
1570 fi
1571
1572 EXEEXT=""
1573 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1574 echo "$ac_t""${ac_cv_exeext}" 1>&6
1575 ac_exeext=$EXEEXT
1576
1577 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1578 echo "configure:1579: checking for object suffix" >&5
1579 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 rm -f conftest*
1583 echo 'int i = 1;' > conftest.$ac_ext
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 for ac_file in conftest.*; do
1586 case $ac_file in
1587 *.c) ;;
1588 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1589 esac
1590 done
1591 else
1592 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1593 fi
1594 rm -f conftest*
1595 fi
1596
1597 echo "$ac_t""$ac_cv_objext" 1>&6
1598 OBJEXT=$ac_cv_objext
1599 ac_objext=$ac_cv_objext
1600
1601
1602 if test -z "$EXEEXT"; then
1603 CGIEXT=".cgi"
1604 else
1605 CGIEXT="$EXEEXT"
1606 fi
1607
1608 case "$host_os" in
1609 cygwin|cygwin32)
1610
1611
1612 if true; then
1613 ENABLE_WIN32SPECIFIC_TRUE=
1614 ENABLE_WIN32SPECIFIC_FALSE='#'
1615 else
1616 ENABLE_WIN32SPECIFIC_TRUE='#'
1617 ENABLE_WIN32SPECIFIC_FALSE=
1618 fi
1619 ;;
1620 *)
1621
1622
1623 if false; then
1624 ENABLE_WIN32SPECIFIC_TRUE=
1625 ENABLE_WIN32SPECIFIC_FALSE='#'
1626 else
1627 ENABLE_WIN32SPECIFIC_TRUE='#'
1628 ENABLE_WIN32SPECIFIC_FALSE=
1629 fi
1630 ;;
1631 esac
1632
1633 if test -z "$CACHE_HTTP_PORT"; then
1634 CACHE_HTTP_PORT="3128"
1635 fi
1636 if test -z "$CACHE_ICP_PORT"; then
1637 CACHE_ICP_PORT="3130"
1638 fi
1639
1640 cat >> confdefs.h <<EOF
1641 #define CACHE_HTTP_PORT $CACHE_HTTP_PORT
1642 EOF
1643
1644 cat >> confdefs.h <<EOF
1645 #define CACHE_ICP_PORT $CACHE_ICP_PORT
1646 EOF
1647
1648
1649 cat >> confdefs.h <<EOF
1650 #define CONFIG_HOST_TYPE "$host"
1651 EOF
1652
1653
1654 cat >> confdefs.h <<EOF
1655 #define SQUID_CONFIGURE_OPTIONS "$ac_configure_args"
1656 EOF
1657
1658
1659 case "$host" in
1660 mab-next-nextstep3)
1661 CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
1662 ;;
1663 esac
1664
1665 if test -z "$PRESET_CFLAGS"; then
1666 if test "$GCC" = "yes"; then
1667 case "$host" in
1668 *-sun-sunos*)
1669 # sunos has too many warnings for this to be useful
1670 # motorola too
1671 ;;
1672 *m88k*)
1673 # Motorola cc/ld does not like -02 but is ok on -O
1674 CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
1675 ;;
1676 *)
1677 CFLAGS="$CFLAGS -Wall"
1678 ;;
1679 esac
1680 else
1681 case "$host" in
1682 *mips-sgi-irix6.*)
1683 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
1684 CFLAGS="$CFLAGS -n32 -mips3 -O3 -OPT:Olimit=0:space=OFF \
1685 -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \
1686 -Wl,-woff,85,-woff,84,-woff,134 \
1687 -nostdinc -I/usr/include -D_BSD_SIGNALS"
1688 ;;
1689 alpha-dec-osf4.*)
1690 # Mogul says DEC compilers take both -g and -O2
1691 CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'`
1692 CFLAGS="$CFLAGS -O2"
1693 ;;
1694 *)
1695 ;;
1696 esac
1697 fi
1698 fi
1699
1700 if test -z "$PRESET_LDFLAGS"; then
1701 if test "$GCC" = "yes"; then
1702 case "$host" in
1703 *)
1704 # nothing
1705 ;;
1706 esac
1707 else
1708 case "$host" in
1709 *mips-sgi-irix6.*)
1710 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
1711 LDFLAGS="-n32 -mips3 -nostdlib -L/usr/lib32"
1712 ;;
1713 esac
1714 fi
1715 fi
1716
1717 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
1718 if test "${enable_dlmalloc+set}" = set; then
1719 enableval="$enable_dlmalloc"
1720
1721 case "$enableval" in
1722 'yes')
1723 use_dlmalloc="yes"
1724 LIBDLMALLOC="libdlmalloc.a"
1725 LIB_MALLOC="-L../lib -ldlmalloc"
1726 echo "dlmalloc enabled"
1727 ;;
1728 'no')
1729 use_dlmalloc="no"
1730 echo "dlmalloc disabled"
1731 ;;
1732 *) use_dlmalloc="yes"
1733 LIB_MALLOC="$enableval"
1734 echo "dlmalloc enabled with $LIB_MALLOC"
1735 esac
1736
1737 fi
1738
1739 if test "${use_dlmalloc-unset}" = unset; then
1740 case "$host" in
1741 i386-*-solaris2.*)
1742 echo "Enabling dlmalloc for $host"
1743 use_dlmalloc="yes"
1744 LIBDLMALLOC="libdlmalloc.a"
1745 LIB_MALLOC="-L../lib -ldlmalloc"
1746 ;;
1747 *-sgi-irix*)
1748 echo "Enabling dlmalloc for $host"
1749 use_dlmalloc="yes"
1750 LIBDLMALLOC="libdlmalloc.a"
1751 LIB_MALLOC="-L../lib -ldlmalloc"
1752 ;;
1753 esac
1754 fi
1755 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
1756 # Ok. dlmalloc was enabled before, but state may be changed.
1757 # we have to test these again
1758 unset ac_cv_func_mallinfo
1759 unset ac_cv_func_mallocblksize
1760 unset ac_cv_func_free
1761 unset ac_cv_func_realloc
1762 unset ac_cv_func_memalign
1763 unset ac_cv_func_valloc
1764 unset ac_cv_func_pvalloc
1765 unset ac_cv_func_calloc
1766 unset ac_cv_func_cfree
1767 unset ac_cv_func_malloc_trim
1768 unset ac_cv_func_malloc_usable_size
1769 unset ac_cv_func_malloc_stats
1770 unset ac_cv_func_mallinfo
1771 unset ac_cv_func_mallopt
1772 unset ac_cv_lib_gnumalloc
1773 unset ac_cv_header_gnumalloc_h
1774 unset ac_cv_lib_malloc
1775 unset ac_cv_enabled_dlmalloc
1776 fi
1777 if test "$use_dlmalloc" = yes; then
1778 ac_cv_func_mallinfo="yes"
1779 ac_cv_func_mallocblksize="no"
1780 ac_cv_func_free="yes"
1781 ac_cv_func_realloc="yes"
1782 ac_cv_func_memalign="yes"
1783 ac_cv_func_valloc="yes"
1784 ac_cv_func_pvalloc="yes"
1785 ac_cv_func_calloc="yes"
1786 ac_cv_func_cfree="yes"
1787 ac_cv_func_malloc_trim="yes"
1788 ac_cv_func_malloc_usable_size="yes"
1789 ac_cv_func_malloc_stats="yes"
1790 ac_cv_func_mallopt="yes"
1791 ac_cv_lib_gnumalloc="no"
1792 ac_cv_header_gnumalloc_h="no"
1793 ac_cv_lib_malloc="no"
1794 ac_cv_enabled_dlmalloc="yes"
1795 fi
1796
1797
1798
1799
1800 # Check whether --enable-gnuregex or --disable-gnuregex was given.
1801 if test "${enable_gnuregex+set}" = set; then
1802 enableval="$enable_gnuregex"
1803 USE_GNUREGEX=$enableval
1804 fi
1805
1806
1807 # Check whether --enable-xmalloc-debug or --disable-xmalloc-debug was given.
1808 if test "${enable_xmalloc_debug+set}" = set; then
1809 enableval="$enable_xmalloc_debug"
1810 if test "$enableval" = "yes" ; then
1811 echo "Malloc debugging enabled"
1812 cat >> confdefs.h <<\EOF
1813 #define XMALLOC_DEBUG 1
1814 EOF
1815
1816 fi
1817
1818 fi
1819
1820
1821 # Check whether --enable-xmalloc-debug-trace or --disable-xmalloc-debug-trace was given.
1822 if test "${enable_xmalloc_debug_trace+set}" = set; then
1823 enableval="$enable_xmalloc_debug_trace"
1824 if test "$enableval" = "yes" ; then
1825 echo "Malloc debug trace enabled"
1826 cat >> confdefs.h <<\EOF
1827 #define XMALLOC_TRACE 1
1828 EOF
1829
1830 cat >> confdefs.h <<\EOF
1831 #define XMALLOC_DEBUG 1
1832 EOF
1833
1834 fi
1835
1836 fi
1837
1838
1839 # Check whether --enable-xmalloc-statistics or --disable-xmalloc-statistics was given.
1840 if test "${enable_xmalloc_statistics+set}" = set; then
1841 enableval="$enable_xmalloc_statistics"
1842 if test "$enableval" = "yes" ; then
1843 echo "Malloc statistics enabled"
1844 cat >> confdefs.h <<\EOF
1845 #define XMALLOC_STATISTICS 1
1846 EOF
1847
1848 fi
1849
1850 fi
1851
1852
1853 # Check whether --enable-carp or --disable-carp was given.
1854 if test "${enable_carp+set}" = set; then
1855 enableval="$enable_carp"
1856 if test "$enableval" = "yes" ; then
1857 echo "CARP support enabled"
1858 cat >> confdefs.h <<\EOF
1859 #define USE_CARP 1
1860 EOF
1861
1862 fi
1863
1864 fi
1865
1866
1867 # Check whether --enable-async-io or --disable-async-io was given.
1868 if test "${enable_async_io+set}" = set; then
1869 enableval="$enable_async_io"
1870 case $enableval in
1871 yes)
1872 with_pthreads=yes
1873 STORE_MODULES="ufs aufs"
1874 ;;
1875 no)
1876 ;;
1877 *)
1878 aufs_io_threads=$enableval
1879 with_pthreads=yes
1880 STORE_MODULES="ufs aufs"
1881 ;;
1882 esac
1883
1884 fi
1885
1886
1887 # Check whether --with-aufs-threads or --without-aufs-threads was given.
1888 if test "${with_aufs_threads+set}" = set; then
1889 withval="$with_aufs_threads"
1890 aufs_io_threads=$withval
1891 fi
1892
1893 if test "$aufs_io_threads"; then
1894 echo "With $aufs_io_threads aufs threads"
1895 with_pthreads=yes
1896 cat >> confdefs.h <<EOF
1897 #define AUFS_IO_THREADS $aufs_io_threads
1898 EOF
1899
1900 fi
1901
1902 # Check whether --with-pthreads or --without-pthreads was given.
1903 if test "${with_pthreads+set}" = set; then
1904 withval="$with_pthreads"
1905 if test "$enableval" = "yes"; then
1906 with_pthreads=yes
1907 fi
1908
1909 fi
1910
1911 if test "$with_pthreads"; then
1912 echo "With pthreads"
1913 SQUID_PTHREAD_LIB='$(PTHREADLIB)'
1914 CFLAGS="$CFLAGS -D_REENTRANT"
1915 case "$host" in
1916 i386-unknown-freebsd*)
1917 if test "$GCC" = "yes" ; then
1918 if test -z "$PRESET_LDFLAGS"; then
1919 LDFLAGS="$LDFLAGS -pthread"
1920 fi
1921 fi
1922 ;;
1923 *-solaris2.*)
1924 if test "$GCC" = "yes" ; then
1925 CFLAGS="$CFLAGS -pthreads"
1926 else
1927 CFLAGS="$CFLAGS -mt"
1928 fi
1929 ;;
1930 esac
1931 fi
1932
1933
1934 # Check whether --with-aio or --without-aio was given.
1935 if test "${with_aio+set}" = set; then
1936 withval="$with_aio"
1937 if test "$enableval" = "yes"; then
1938 with_aio=yes
1939 fi
1940
1941 fi
1942
1943 if test "$with_aio"; then
1944 echo "With aio"
1945 SQUID_AIO_LIB='$(AIOLIB)'
1946 fi
1947
1948
1949 # Check whether --enable-storeio or --disable-storeio was given.
1950 if test "${enable_storeio+set}" = set; then
1951 enableval="$enable_storeio"
1952 case $enableval in
1953 yes)
1954 for module in $srcdir/src/fs/*; do
1955 if test -f $module/Makefile.in; then
1956 STORE_MODULES="$STORE_MODULES `basename $module`"
1957 fi
1958 done
1959 ;;
1960 no)
1961 ;;
1962 *) STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
1963 ;;
1964 esac
1965
1966 else
1967 if test -z "$STORE_MODULES"; then
1968 STORE_MODULES="ufs"
1969 fi
1970
1971 fi
1972
1973 echo "Store modules built: $STORE_MODULES"
1974 STORE_OBJS="fs/lib`echo $STORE_MODULES|sed -e 's% %.a fs/lib%g'`.a"
1975
1976 STORE_LIBS="`echo $STORE_OBJS|sed -e 's%fs/%%g'`"
1977
1978 STORE_MODULE_SUBDIRS=
1979 for fs in $STORE_MODULES none; do
1980 if test "$fs" = "diskd"; then
1981 STORE_MODULE_SUBDIRS="$STORE_MODULE_SUBDIRS $fs"
1982 OPT_DISKD_EXE='diskd$(EXEEXT)'
1983 fi
1984 done
1985
1986
1987
1988
1989
1990 # Check whether --enable-heap-replacement or --disable-heap-replacement was given.
1991 if test "${enable_heap_replacement+set}" = set; then
1992 enableval="$enable_heap_replacement"
1993 if test "$enableval" = "yes" ; then
1994 echo "--enable-heap-replacement is obsolete. please use the new"
1995 echo "--enable-removal-policies directive instead"
1996 sleep 5
1997 REPL_POLICIES="heap"
1998 fi
1999
2000 fi
2001
2002
2003 # Check whether --enable-removal-policies or --disable-removal-policies was given.
2004 if test "${enable_removal_policies+set}" = set; then
2005 enableval="$enable_removal_policies"
2006 case $enableval in
2007 yes)
2008 for module in $srcdir/src/repl/*; do
2009 if test -f $module/Makefile.in; then
2010 REPL_POLICIES="$REPL_POLICIES `basename $module`"
2011 fi
2012 done
2013 ;;
2014 no)
2015 ;;
2016 *) REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2017 ;;
2018 esac
2019
2020 else
2021 if test -z "$REPL_POLICIES"; then
2022 REPL_POLICIES="lru"
2023 fi
2024
2025 fi
2026
2027 echo "Removal policies built: $REPL_POLICIES"
2028
2029 REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
2030
2031 REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"
2032
2033
2034 OPT_PINGER=''
2035 OPT_PINGER_EXE=''
2036 # Check whether --enable-icmp or --disable-icmp was given.
2037 if test "${enable_icmp+set}" = set; then
2038 enableval="$enable_icmp"
2039 if test "$enableval" = "yes" ; then
2040 echo "ICMP enabled"
2041 cat >> confdefs.h <<\EOF
2042 #define USE_ICMP 1
2043 EOF
2044
2045 OPT_PINGER='pinger'
2046 OPT_PINGER_EXE='pinger$(EXEEXT)'
2047 fi
2048
2049 fi
2050
2051
2052
2053
2054
2055
2056 if false; then
2057 USE_DELAY_POOLS_TRUE=
2058 USE_DELAY_POOLS_FALSE='#'
2059 else
2060 USE_DELAY_POOLS_TRUE='#'
2061 USE_DELAY_POOLS_FALSE=
2062 fi
2063 # Check whether --enable-delay-pools or --disable-delay-pools was given.
2064 if test "${enable_delay_pools+set}" = set; then
2065 enableval="$enable_delay_pools"
2066 if test "$enableval" = "yes" ; then
2067 echo "Delay pools enabled"
2068 cat >> confdefs.h <<\EOF
2069 #define DELAY_POOLS 1
2070 EOF
2071
2072
2073
2074 if true; then
2075 USE_DELAY_POOLS_TRUE=
2076 USE_DELAY_POOLS_FALSE='#'
2077 else
2078 USE_DELAY_POOLS_TRUE='#'
2079 USE_DELAY_POOLS_FALSE=
2080 fi
2081 fi
2082
2083 fi
2084
2085
2086 # Check whether --enable-mem-gen-trace or --disable-mem-gen-trace was given.
2087 if test "${enable_mem_gen_trace+set}" = set; then
2088 enableval="$enable_mem_gen_trace"
2089 if test "$enableval" = "yes" ; then
2090 echo "Memory trace (to file) enabled"
2091 cat >> confdefs.h <<\EOF
2092 #define MEM_GEN_TRACE 1
2093 EOF
2094
2095 fi
2096
2097 fi
2098
2099
2100 # Check whether --enable-useragent-log or --disable-useragent-log was given.
2101 if test "${enable_useragent_log+set}" = set; then
2102 enableval="$enable_useragent_log"
2103 if test "$enableval" = "yes" ; then
2104 echo "User-Agent logging enabled"
2105 cat >> confdefs.h <<\EOF
2106 #define USE_USERAGENT_LOG 1
2107 EOF
2108
2109 fi
2110
2111 fi
2112
2113
2114 # Check whether --enable-referer-log or --disable-referer-log was given.
2115 if test "${enable_referer_log+set}" = set; then
2116 enableval="$enable_referer_log"
2117 if test "$enableval" = "yes" ; then
2118 echo "Referer logging enabled"
2119 cat >> confdefs.h <<\EOF
2120 #define USE_REFERER_LOG 1
2121 EOF
2122
2123 fi
2124
2125 fi
2126
2127
2128 # Check whether --enable-wccp or --disable-wccp was given.
2129 if test "${enable_wccp+set}" = set; then
2130 enableval="$enable_wccp"
2131 if test "$enableval" = "no" ; then
2132 echo "Web Cache Coordination Protocol disabled"
2133 cat >> confdefs.h <<\EOF
2134 #define USE_WCCP 0
2135 EOF
2136
2137 else
2138 cat >> confdefs.h <<\EOF
2139 #define USE_WCCP 1
2140 EOF
2141
2142 fi
2143
2144 fi
2145
2146
2147 # Check whether --enable-kill-parent-hack or --disable-kill-parent-hack was given.
2148 if test "${enable_kill_parent_hack+set}" = set; then
2149 enableval="$enable_kill_parent_hack"
2150 if test "$enableval" = "yes" ; then
2151 echo "Kill parent on shutdown"
2152 cat >> confdefs.h <<\EOF
2153 #define KILL_PARENT_OPT 1
2154 EOF
2155
2156 fi
2157
2158 fi
2159
2160
2161
2162
2163 if false; then
2164 USE_SNMP_TRUE=
2165 USE_SNMP_FALSE='#'
2166 else
2167 USE_SNMP_TRUE='#'
2168 USE_SNMP_FALSE=
2169 fi
2170 # Check whether --enable-snmp or --disable-snmp was given.
2171 if test "${enable_snmp+set}" = set; then
2172 enableval="$enable_snmp"
2173 if test "$enableval" = "yes" ; then
2174 echo "SNMP monitoring enabled"
2175 cat >> confdefs.h <<\EOF
2176 #define SQUID_SNMP 1
2177 EOF
2178
2179 SNMPLIB='-L../snmplib -lsnmp'
2180
2181
2182 if true; then
2183 USE_SNMP_TRUE=
2184 USE_SNMP_FALSE='#'
2185 else
2186 USE_SNMP_TRUE='#'
2187 USE_SNMP_FALSE=
2188 fi
2189 SNMP_MAKEFILE=./snmplib/Makefile
2190 makesnmplib=snmplib
2191 fi
2192
2193 fi
2194
2195
2196
2197
2198 # Check whether --enable-time-hack or --disable-time-hack was given.
2199 if test "${enable_time_hack+set}" = set; then
2200 enableval="$enable_time_hack"
2201 if test "$enableval" = "yes" ; then
2202 echo "Update internal timestamp only once per second"
2203 cat >> confdefs.h <<\EOF
2204 #define ALARM_UPDATES_TIME 1
2205 EOF
2206
2207 fi
2208
2209 fi
2210
2211
2212 # Check whether --enable-cachemgr-hostname or --disable-cachemgr-hostname was given.
2213 if test "${enable_cachemgr_hostname+set}" = set; then
2214 enableval="$enable_cachemgr_hostname"
2215 case $enableval in
2216 yes)
2217 cat >> confdefs.h <<\EOF
2218 #define CACHEMGR_HOSTNAME getfullhostname()
2219 EOF
2220
2221 echo "Cachemgr default hostname == host where cachemgr runs"
2222 ;;
2223 no)
2224 : # Nothing to do..
2225 ;;
2226 *)
2227 cat >> confdefs.h <<EOF
2228 #define CACHEMGR_HOSTNAME "${enableval}"
2229 EOF
2230
2231 echo "Cachemgr default hostname set to ${enableval}"
2232 ;;
2233 esac
2234
2235 fi
2236
2237
2238 # Check whether --enable-arp-acl or --disable-arp-acl was given.
2239 if test "${enable_arp_acl+set}" = set; then
2240 enableval="$enable_arp_acl"
2241 if test "$enableval" = "yes" ; then
2242 echo "ARP ACL lists enabled (ether address)"
2243 case "$host" in
2244 *-linux-*)
2245 ;;
2246 *-solaris-*)
2247 ;;
2248 *)
2249 echo "WARNING: ARP ACL support probably won't work on $host."
2250 sleep 10
2251 ;;
2252 esac
2253 cat >> confdefs.h <<\EOF
2254 #define USE_ARP_ACL 1
2255 EOF
2256
2257 fi
2258
2259 fi
2260
2261
2262
2263
2264 if false; then
2265 ENABLE_HTCP_TRUE=
2266 ENABLE_HTCP_FALSE='#'
2267 else
2268 ENABLE_HTCP_TRUE='#'
2269 ENABLE_HTCP_FALSE=
2270 fi
2271 # Check whether --enable-htcp or --disable-htcp was given.
2272 if test "${enable_htcp+set}" = set; then
2273 enableval="$enable_htcp"
2274 if test "$enableval" = "yes" ; then
2275 echo "HTCP enabled"
2276 cat >> confdefs.h <<\EOF
2277 #define USE_HTCP 1
2278 EOF
2279
2280
2281
2282 if true; then
2283 ENABLE_HTCP_TRUE=
2284 ENABLE_HTCP_FALSE='#'
2285 else
2286 ENABLE_HTCP_TRUE='#'
2287 ENABLE_HTCP_FALSE=
2288 fi
2289 fi
2290
2291 fi
2292
2293
2294
2295
2296 if false; then
2297 ENABLE_SSL_TRUE=
2298 ENABLE_SSL_FALSE='#'
2299 else
2300 ENABLE_SSL_TRUE='#'
2301 ENABLE_SSL_FALSE=
2302 fi
2303
2304 # Check whether --enable-ssl or --disable-ssl was given.
2305 if test "${enable_ssl+set}" = set; then
2306 enableval="$enable_ssl"
2307 if test "$enableval" != "no"; then
2308 echo "SSL gatewaying using OpenSSL enabled"
2309 cat >> confdefs.h <<\EOF
2310 #define USE_SSL 1
2311 EOF
2312
2313
2314
2315 if true; then
2316 ENABLE_SSL_TRUE=
2317 ENABLE_SSL_FALSE='#'
2318 else
2319 ENABLE_SSL_TRUE='#'
2320 ENABLE_SSL_FALSE=
2321 fi
2322 SSLLIB='-lssl -lcrypto'
2323 USE_OPENSSL=1
2324 fi
2325
2326 fi
2327
2328
2329
2330
2331 if true; then
2332 NEED_OWN_MD5_TRUE=
2333 NEED_OWN_MD5_FALSE='#'
2334 else
2335 NEED_OWN_MD5_TRUE='#'
2336 NEED_OWN_MD5_FALSE=
2337 fi
2338
2339 # Check whether --with-openssl or --without-openssl was given.
2340 if test "${with_openssl+set}" = set; then
2341 withval="$with_openssl"
2342
2343 case "$with_openssl" in
2344 yes)
2345 USE_OPENSSL=1
2346 ;;
2347 no)
2348 USE_OPENSSL=
2349 ;;
2350 *)
2351 SSLLIBDIR="$with_openssl/lib"
2352 CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
2353 USE_OPENSSL=1
2354 esac
2355
2356 fi
2357
2358
2359 if test -n "$USE_OPENSSL"; then
2360 echo "Using OpenSSL MD5 implementation"
2361 cat >> confdefs.h <<\EOF
2362 #define USE_OPENSSL 1
2363 EOF
2364
2365
2366
2367 if false; then
2368 NEED_OWN_MD5_TRUE=
2369 NEED_OWN_MD5_FALSE='#'
2370 else
2371 NEED_OWN_MD5_TRUE='#'
2372 NEED_OWN_MD5_FALSE=
2373 fi
2374 if test -z "$SSLLIB"; then
2375 SSLLIB="-lcrypto" # for MD5 routines
2376 fi
2377 fi
2378 if test -n "$SSLLIBDIR"; then
2379 SSLLIB="-L$SSLLIBDIR $SSLLIB"
2380 fi
2381
2382
2383 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
2384 if test "${enable_forw_via_db+set}" = set; then
2385 enableval="$enable_forw_via_db"
2386 if test "$enableval" = "yes" ; then
2387 echo "FORW-VIA enabled"
2388 cat >> confdefs.h <<\EOF
2389 #define FORW_VIA_DB 1
2390 EOF
2391
2392 fi
2393
2394 fi
2395
2396
2397 # Check whether --enable-cache-digests or --disable-cache-digests was given.
2398 if test "${enable_cache_digests+set}" = set; then
2399 enableval="$enable_cache_digests"
2400 if test "$enableval" = "yes" ; then
2401 echo "USE_CACHE_DIGESTS enabled"
2402 cat >> confdefs.h <<\EOF
2403 #define USE_CACHE_DIGESTS 1
2404 EOF
2405
2406 fi
2407
2408 fi
2409
2410
2411 # Check whether --enable-default-err-language or --disable-default-err-language was given.
2412 if test "${enable_default_err_language+set}" = set; then
2413 enableval="$enable_default_err_language"
2414
2415 if test -d $srcdir/errors/$enableval; then
2416 ERR_DEFAULT_LANGUAGE=$enableval
2417 else
2418 echo "ERROR! Unknown language $enableval, see errors/"
2419 exit 1
2420 fi
2421
2422 else
2423 ERR_DEFAULT_LANGUAGE="English"
2424 fi
2425
2426
2427
2428 # Check whether --enable-err-languages or --disable-err-languages was given.
2429 if test "${enable_err_languages+set}" = set; then
2430 enableval="$enable_err_languages"
2431
2432 for l in $enableval; do
2433 if test -d $srcdir/errors/$l; then :; else
2434 echo "ERROR! Unknown language $$l, see errors/"
2435 exit 1
2436 fi
2437 done
2438 ERR_LANGUAGES=$enableval
2439
2440 else
2441
2442 ERR_LANGUAGES=
2443 for l in $srcdir/errors/*; do
2444 if test -f $l/generic; then
2445 ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`"
2446 fi
2447 done
2448
2449 fi
2450
2451
2452
2453 # Check whether --with-coss-membuf-size or --without-coss-membuf-size was given.
2454 if test "${with_coss_membuf_size+set}" = set; then
2455 withval="$with_coss_membuf_size"
2456 if test "$with_coss_membuf_size"; then
2457 echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
2458 cat >> confdefs.h <<EOF
2459 #define COSS_MEMBUF_SZ $with_coss_membuf_size
2460 EOF
2461
2462 fi
2463
2464 fi
2465
2466
2467 # Check whether --enable-poll or --disable-poll was given.
2468 if test "${enable_poll+set}" = set; then
2469 enableval="$enable_poll"
2470
2471 case "$enableval" in
2472 yes)
2473 echo "Forcing poll() to be enabled"
2474 ac_cv_func_poll='yes'
2475 ;;
2476 no)
2477 echo "Forcing poll() to be disabled"
2478 ac_cv_func_poll='no'
2479 ;;
2480 esac
2481
2482 fi
2483
2484
2485 # Check whether --enable-select or --disable-select was given.
2486 if test "${enable_select+set}" = set; then
2487 enableval="$enable_select"
2488
2489 case "$enableval" in
2490 yes)
2491 echo "Forcing select() to be enabled"
2492 ac_cv_func_select='yes'
2493 ;;
2494 no)
2495 echo "Forcing select() to be disabled"
2496 ac_cv_func_select='no'
2497 ;;
2498 esac
2499
2500 fi
2501
2502
2503 # Check whether --enable-kqueue or --disable-kqueue was given.
2504 if test "${enable_kqueue+set}" = set; then
2505 enableval="$enable_kqueue"
2506
2507 case "$enableval" in
2508 yes)
2509 echo "Forcing kqueue() to be enabled"
2510 ac_cv_func_kqueue='yes'
2511 ;;
2512 no)
2513 echo "Forcing kqueue() to be disabled"
2514 ac_cv_func_kqueue='no'
2515 ;;
2516 esac
2517
2518 fi
2519
2520
2521 # Check whether --enable-http-violations or --disable-http-violations was given.
2522 if test "${enable_http_violations+set}" = set; then
2523 enableval="$enable_http_violations"
2524 if test "$enableval" = "no" ; then
2525 echo "Disabling HTTP Violations"
2526 cat >> confdefs.h <<\EOF
2527 #define HTTP_VIOLATIONS 0
2528 EOF
2529
2530 else
2531 cat >> confdefs.h <<\EOF
2532 #define HTTP_VIOLATIONS 1
2533 EOF
2534
2535 fi
2536
2537 fi
2538
2539
2540 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
2541 if test "${enable_ipf_transparent+set}" = set; then
2542 enableval="$enable_ipf_transparent"
2543 if test "$enableval" = "yes" ; then
2544 echo "IP-Filter Transparent Proxy enabled"
2545 cat >> confdefs.h <<\EOF
2546 #define IPF_TRANSPARENT 1
2547 EOF
2548
2549 IPF_TRANSPARENT="yes"
2550 fi
2551
2552 fi
2553
2554
2555 # Check whether --enable-linux-netfilter or --disable-linux-netfilter was given.
2556 if test "${enable_linux_netfilter+set}" = set; then
2557 enableval="$enable_linux_netfilter"
2558 if test "$enableval" = "yes" ; then
2559 echo "Linux-Netfilter Transparent Proxy enabled"
2560 cat >> confdefs.h <<\EOF
2561 #define LINUX_NETFILTER 1
2562 EOF
2563
2564 LINUX_NETFILTER="yes"
2565 fi
2566
2567 fi
2568
2569
2570
2571
2572 if false; then
2573 MAKE_LEAKFINDER_TRUE=
2574 MAKE_LEAKFINDER_FALSE='#'
2575 else
2576 MAKE_LEAKFINDER_TRUE='#'
2577 MAKE_LEAKFINDER_FALSE=
2578 fi
2579 # Check whether --enable-leakfinder or --disable-leakfinder was given.
2580 if test "${enable_leakfinder+set}" = set; then
2581 enableval="$enable_leakfinder"
2582 if test "$enableval" = "yes" ; then
2583 echo "Leak-Finding enabled"
2584 cat >> confdefs.h <<\EOF
2585 #define USE_LEAKFINDER 1
2586 EOF
2587
2588 USE_LEAKFINDER="yes"
2589
2590
2591 if true; then
2592 MAKE_LEAKFINDER_TRUE=
2593 MAKE_LEAKFINDER_FALSE='#'
2594 else
2595 MAKE_LEAKFINDER_TRUE='#'
2596 MAKE_LEAKFINDER_FALSE=
2597 fi
2598 fi
2599
2600 fi
2601
2602
2603 # Check whether --enable-ident-lookups or --disable-ident-lookups was given.
2604 if test "${enable_ident_lookups+set}" = set; then
2605 enableval="$enable_ident_lookups"
2606 if test "$enableval" = "no" ; then
2607 echo "Disabling Ident Lookups"
2608 cat >> confdefs.h <<\EOF
2609 #define USE_IDENT 0
2610 EOF
2611
2612 else
2613 cat >> confdefs.h <<\EOF
2614 #define USE_IDENT 1
2615 EOF
2616
2617 fi
2618
2619 fi
2620
2621
2622
2623
2624 if false; then
2625 USE_DNSSERVER_TRUE=
2626 USE_DNSSERVER_FALSE='#'
2627 else
2628 USE_DNSSERVER_TRUE='#'
2629 USE_DNSSERVER_FALSE=
2630 fi
2631 use_dnsserver=
2632 # Check whether --enable-internal-dns or --disable-internal-dns was given.
2633 if test "${enable_internal_dns+set}" = set; then
2634 enableval="$enable_internal_dns"
2635 if test "$enableval" = "no" ; then
2636 echo "Disabling Internal DNS queries"
2637 use_dnsserver="yes"
2638 fi
2639
2640 fi
2641
2642 if test "$use_dnsserver" = "yes"; then
2643 cat >> confdefs.h <<\EOF
2644 #define USE_DNSSERVERS 1
2645 EOF
2646
2647 OPT_DNSSERVER_EXE='dnsserver$(EXEEXT)'
2648
2649
2650 if true; then
2651 USE_DNSSERVER_TRUE=
2652 USE_DNSSERVER_FALSE='#'
2653 else
2654 USE_DNSSERVER_TRUE='#'
2655 USE_DNSSERVER_FALSE=
2656 fi
2657 else
2658 OPT_DNSSERVER_EXE=''
2659 fi
2660
2661
2662 # Check whether --enable-truncate or --disable-truncate was given.
2663 if test "${enable_truncate+set}" = set; then
2664 enableval="$enable_truncate"
2665 if test "$enableval" = "yes" ; then
2666 echo "Enabling truncate instead of unlink"
2667 cat >> confdefs.h <<\EOF
2668 #define USE_TRUNCATE 1
2669 EOF
2670
2671 fi
2672
2673 fi
2674
2675
2676 # Check whether --enable-underscores or --disable-underscores was given.
2677 if test "${enable_underscores+set}" = set; then
2678 enableval="$enable_underscores"
2679 if test "$enableval" = "yes" ; then
2680 echo "Enabling the use of underscores in host names"
2681 cat >> confdefs.h <<\EOF
2682 #define ALLOW_HOSTNAME_UNDERSCORES 1
2683 EOF
2684
2685 fi
2686
2687 fi
2688
2689
2690
2691 # Check whether --enable-auth or --disable-auth was given.
2692 if test "${enable_auth+set}" = set; then
2693 enableval="$enable_auth"
2694 case $enableval in
2695 yes)
2696 for module in $srcdir/src/auth/*; do
2697 if test -f $module/Makefile.in; then
2698 AUTH_MODULES="$AUTH_MODULES `basename $module`"
2699 fi
2700 done
2701 ;;
2702 no)
2703 ;;
2704 *) AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2705 ;;
2706 esac
2707
2708 else
2709 if test -z "$AUTH_MODULES"; then
2710 AUTH_MODULES="basic"
2711 fi
2712
2713 fi
2714
2715 echo "Auth scheme modules built: $AUTH_MODULES"
2716
2717 AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a"
2718
2719 AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`"
2720
2721
2722 BASIC_AUTH_HELPERS=""
2723 # Check whether --enable-auth-modules or --disable-auth-modules was given.
2724 if test "${enable_auth_modules+set}" = set; then
2725 enableval="$enable_auth_modules"
2726 echo "--enable-auth-modules is obsolete. Please use the new"
2727 echo "option --enable-basic-auth-helpers"
2728 sleep 5
2729 case "$enableval" in
2730 yes)
2731 for helper in $srcdir/src/auth/basic/helpers/*; do
2732 if test -f $helper/Makefile.in; then
2733 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
2734 fi
2735 done
2736 ;;
2737 no)
2738 ;;
2739 *)
2740 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2741 esac
2742
2743 fi
2744
2745 # Check whether --enable-basic-auth-helpers or --disable-basic-auth-helpers was given.
2746 if test "${enable_basic_auth_helpers+set}" = set; then
2747 enableval="$enable_basic_auth_helpers"
2748 case "$enableval" in
2749 yes)
2750 BASIC_AUTH_HELPERS=""
2751 for helper in $srcdir/src/auth/basic/helpers/*; do
2752 if test -f $helper/Makefile.in; then
2753 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
2754 fi
2755 done
2756 ;;
2757 no)
2758 ;;
2759 *)
2760 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2761 esac
2762
2763 fi
2764
2765 if test -n "$BASIC_AUTH_HELPERS"; then
2766 echo "Basic auth helpers built: $BASIC_AUTH_HELPERS"
2767 fi
2768
2769
2770 NTLM_AUTH_HELPERS=
2771 # Check whether --enable-ntlm-auth-helpers or --disable-ntlm-auth-helpers was given.
2772 if test "${enable_ntlm_auth_helpers+set}" = set; then
2773 enableval="$enable_ntlm_auth_helpers"
2774 case "$enableval" in
2775 yes)
2776 for helper in $srcdir/src/auth/ntlm/helpers/*; do
2777 if test -f $helper/Makefile.in; then
2778 NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS `basename $helper`"
2779 fi
2780 done
2781 ;;
2782 no)
2783 ;;
2784 *)
2785 NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2786 esac
2787
2788 fi
2789
2790 if test -n "$NTLM_AUTH_HELPERS"; then
2791 echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS"
2792 fi
2793
2794
2795 DIGEST_AUTH_HELPERS=
2796 # Check whether --enable-digest-auth-helpers or --disable-digest-auth-helpers was given.
2797 if test "${enable_digest_auth_helpers+set}" = set; then
2798 enableval="$enable_digest_auth_helpers"
2799 case "$enableval" in
2800 yes)
2801 for helper in $srcdir/src/auth/digest/helpers/*; do
2802 if test -f $helper/Makefile.in; then
2803 DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS `basename $helper`"
2804 fi
2805 done
2806 ;;
2807 no)
2808 ;;
2809 *)
2810 DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
2811 esac
2812
2813 fi
2814
2815 if test -n "$DIGEST_AUTH_HELPERS"; then
2816 echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS"
2817 fi
2818
2819
2820 # Check whether --enable-ntlm-fail-open or --disable-ntlm-fail-open was given.
2821 if test "${enable_ntlm_fail_open+set}" = set; then
2822 enableval="$enable_ntlm_fail_open"
2823 if test "$enableval" = "yes" ; then
2824 cat >> confdefs.h <<\EOF
2825 #define NTLM_FAIL_OPEN 1
2826 EOF
2827
2828 fi
2829
2830 fi
2831
2832
2833 # Check whether --enable-unlinkd or --disable-unlinkd was given.
2834 if test "${enable_unlinkd+set}" = set; then
2835 enableval="$enable_unlinkd"
2836 if test "$enableval" = "no" ; then
2837 use_unlinkd=no
2838 else
2839 use_unlinkd=yes
2840 fi
2841
2842 else
2843
2844 # Here we should probably use some magic depending on the selected
2845 # storage models
2846 use_unlinkd=yes
2847
2848 fi
2849
2850 if test "$use_unlinkd" = "yes"; then
2851 echo "unlinkd enabled"
2852 cat >> confdefs.h <<\EOF
2853 #define USE_UNLINKD 1
2854 EOF
2855
2856
2857
2858 if true; then
2859 ENABLE_UNLINKD_TRUE=
2860 ENABLE_UNLINKD_FALSE='#'
2861 else
2862 ENABLE_UNLINKD_TRUE='#'
2863 ENABLE_UNLINKD_FALSE=
2864 fi
2865 else
2866 echo "unlinkd disabled"
2867
2868
2869 if false; then
2870 ENABLE_UNLINKD_TRUE=
2871 ENABLE_UNLINKD_FALSE='#'
2872 else
2873 ENABLE_UNLINKD_TRUE='#'
2874 ENABLE_UNLINKD_FALSE=
2875 fi
2876 fi
2877
2878 # Check whether --enable-stacktraces or --disable-stacktraces was given.
2879 if test "${enable_stacktraces+set}" = set; then
2880 enableval="$enable_stacktraces"
2881 if test "$enableval" = "yes" ; then
2882 echo "Enabling automatic stack backtraces on fatal errors"
2883 cat >> confdefs.h <<\EOF
2884 #define PRINT_STACK_TRACE 1
2885 EOF
2886
2887 fi
2888
2889 fi
2890
2891
2892 # Check whether --enable-x_accelerator_vary or --disable-x_accelerator_vary was given.
2893 if test "${enable_x_accelerator_vary+set}" = set; then
2894 enableval="$enable_x_accelerator_vary"
2895 if test "$enableval" = "yes" ; then
2896 echo "Enabling support for X-Accelerator-Vary"
2897 cat >> confdefs.h <<\EOF
2898 #define X_ACCELERATOR_VARY 1
2899 EOF
2900
2901 fi
2902
2903 fi
2904
2905
2906 # Force some compilers to use ANSI features
2907 #
2908 case "$host" in
2909 alpha-dec-osf*)
2910 if test "$ac_cv_prog_CC" = "cc" ; then
2911 echo "adding '-std1' to cc args for $host"
2912 CC="cc -std1";
2913 ac_cv_prog_CC="$CC"
2914 fi
2915 ;;
2916 *-hp-hpux*)
2917 if test "$ac_cv_prog_CC" = "cc" ; then
2918 echo "adding '-Ae' to cc args for $host"
2919 CC="cc -Ae";
2920 ac_cv_prog_CC="$CC"
2921 fi
2922 ;;
2923 esac
2924
2925 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2926 echo "configure:2927: checking how to run the C preprocessor" >&5
2927 # On Suns, sometimes $CPP names a directory.
2928 if test -n "$CPP" && test -d "$CPP"; then
2929 CPP=
2930 fi
2931 if test -z "$CPP"; then
2932 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2934 else
2935 # This must be in double quotes, not single quotes, because CPP may get
2936 # substituted into the Makefile and "${CC-cc}" will confuse make.
2937 CPP="${CC-cc} -E"
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp.
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 #include <assert.h>
2944 Syntax Error
2945 EOF
2946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2949 if test -z "$ac_err"; then
2950 :
2951 else
2952 echo "$ac_err" >&5
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2955 rm -rf conftest*
2956 CPP="${CC-cc} -E -traditional-cpp"
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 #include <assert.h>
2961 Syntax Error
2962 EOF
2963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964 { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966 if test -z "$ac_err"; then
2967 :
2968 else
2969 echo "$ac_err" >&5
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 CPP="${CC-cc} -nologo -E"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <assert.h>
2978 Syntax Error
2979 EOF
2980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2981 { (eval echo configure:2982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2983 if test -z "$ac_err"; then
2984 :
2985 else
2986 echo "$ac_err" >&5
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 rm -rf conftest*
2990 CPP=/lib/cpp
2991 fi
2992 rm -f conftest*
2993 fi
2994 rm -f conftest*
2995 fi
2996 rm -f conftest*
2997 ac_cv_prog_CPP="$CPP"
2998 fi
2999 CPP="$ac_cv_prog_CPP"
3000 else
3001 ac_cv_prog_CPP="$CPP"
3002 fi
3003 echo "$ac_t""$CPP" 1>&6
3004
3005 # Find a good install program. We prefer a C program (faster),
3006 # so one script is as good as another. But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # ./install, which can be erroneously created by make from ./install.sh.
3016 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3017 echo "configure:3018: checking for a BSD compatible install" >&5
3018 if test -z "$INSTALL"; then
3019 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3023 for ac_dir in $PATH; do
3024 # Account for people who put trailing slashes in PATH elements.
3025 case "$ac_dir/" in
3026 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3027 *)
3028 # OSF1 and SCO ODT 3.0 have their own names for install.
3029 # Don't use installbsd from OSF since it installs stuff as root
3030 # by default.
3031 for ac_prog in ginstall scoinst install; do
3032 if test -f $ac_dir/$ac_prog; then
3033 if test $ac_prog = install &&
3034 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3035 # AIX install. It has an incompatible calling convention.
3036 :
3037 else
3038 ac_cv_path_install="$ac_dir/$ac_prog -c"
3039 break 2
3040 fi
3041 fi
3042 done
3043 ;;
3044 esac
3045 done
3046 IFS="$ac_save_IFS"
3047
3048 fi
3049 if test "${ac_cv_path_install+set}" = set; then
3050 INSTALL="$ac_cv_path_install"
3051 else
3052 # As a last resort, use the slow shell script. We don't cache a
3053 # path for INSTALL within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the path is relative.
3056 INSTALL="$ac_install_sh"
3057 fi
3058 fi
3059 echo "$ac_t""$INSTALL" 1>&6
3060
3061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3062 # It thinks the first close brace ends the variable substitution.
3063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3064
3065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3066
3067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3068
3069 # Extract the first word of "ranlib", so it can be a program name with args.
3070 set dummy ranlib; ac_word=$2
3071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_word" >&5
3073 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075 else
3076 if test -n "$RANLIB"; then
3077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3078 else
3079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3080 ac_dummy="$PATH"
3081 for ac_dir in $ac_dummy; do
3082 test -z "$ac_dir" && ac_dir=.
3083 if test -f $ac_dir/$ac_word; then
3084 ac_cv_prog_RANLIB="ranlib"
3085 break
3086 fi
3087 done
3088 IFS="$ac_save_ifs"
3089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3090 fi
3091 fi
3092 RANLIB="$ac_cv_prog_RANLIB"
3093 if test -n "$RANLIB"; then
3094 echo "$ac_t""$RANLIB" 1>&6
3095 else
3096 echo "$ac_t""no" 1>&6
3097 fi
3098
3099 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3100 echo "configure:3101: checking whether ln -s works" >&5
3101 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3103 else
3104 rm -f conftestdata
3105 if ln -s X conftestdata 2>/dev/null
3106 then
3107 rm -f conftestdata
3108 ac_cv_prog_LN_S="ln -s"
3109 else
3110 ac_cv_prog_LN_S=ln
3111 fi
3112 fi
3113 LN_S="$ac_cv_prog_LN_S"
3114 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120 # Extract the first word of "sh", so it can be a program name with args.
3121 set dummy sh; ac_word=$2
3122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3123 echo "configure:3124: checking for $ac_word" >&5
3124 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3126 else
3127 case "$SH" in
3128 /*)
3129 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3130 ;;
3131 ?:/*)
3132 ac_cv_path_SH="$SH" # Let the user override the test with a dos path.
3133 ;;
3134 *)
3135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3136 ac_dummy="$PATH"
3137 for ac_dir in $ac_dummy; do
3138 test -z "$ac_dir" && ac_dir=.
3139 if test -f $ac_dir/$ac_word; then
3140 ac_cv_path_SH="$ac_dir/$ac_word"
3141 break
3142 fi
3143 done
3144 IFS="$ac_save_ifs"
3145 test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
3146 ;;
3147 esac
3148 fi
3149 SH="$ac_cv_path_SH"
3150 if test -n "$SH"; then
3151 echo "$ac_t""$SH" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156 # Extract the first word of "false", so it can be a program name with args.
3157 set dummy false; ac_word=$2
3158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_word" >&5
3160 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3162 else
3163 case "$FALSE" in
3164 /*)
3165 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
3166 ;;
3167 ?:/*)
3168 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a dos path.
3169 ;;
3170 *)
3171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3172 ac_dummy="$PATH"
3173 for ac_dir in $ac_dummy; do
3174 test -z "$ac_dir" && ac_dir=.
3175 if test -f $ac_dir/$ac_word; then
3176 ac_cv_path_FALSE="$ac_dir/$ac_word"
3177 break
3178 fi
3179 done
3180 IFS="$ac_save_ifs"
3181 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
3182 ;;
3183 esac
3184 fi
3185 FALSE="$ac_cv_path_FALSE"
3186 if test -n "$FALSE"; then
3187 echo "$ac_t""$FALSE" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192 # Extract the first word of "true", so it can be a program name with args.
3193 set dummy true; ac_word=$2
3194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3195 echo "configure:3196: checking for $ac_word" >&5
3196 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 case "$TRUE" in
3200 /*)
3201 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
3202 ;;
3203 ?:/*)
3204 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a dos path.
3205 ;;
3206 *)
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 ac_dummy="$PATH"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_path_TRUE="$ac_dir/$ac_word"
3213 break
3214 fi
3215 done
3216 IFS="$ac_save_ifs"
3217 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
3218 ;;
3219 esac
3220 fi
3221 TRUE="$ac_cv_path_TRUE"
3222 if test -n "$TRUE"; then
3223 echo "$ac_t""$TRUE" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228 # Extract the first word of "rm", so it can be a program name with args.
3229 set dummy rm; ac_word=$2
3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_word" >&5
3232 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3234 else
3235 case "$RM" in
3236 /*)
3237 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3238 ;;
3239 ?:/*)
3240 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3241 ;;
3242 *)
3243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3244 ac_dummy="$PATH"
3245 for ac_dir in $ac_dummy; do
3246 test -z "$ac_dir" && ac_dir=.
3247 if test -f $ac_dir/$ac_word; then
3248 ac_cv_path_RM="$ac_dir/$ac_word"
3249 break
3250 fi
3251 done
3252 IFS="$ac_save_ifs"
3253 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
3254 ;;
3255 esac
3256 fi
3257 RM="$ac_cv_path_RM"
3258 if test -n "$RM"; then
3259 echo "$ac_t""$RM" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264 # Extract the first word of "mv", so it can be a program name with args.
3265 set dummy mv; ac_word=$2
3266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_word" >&5
3268 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270 else
3271 case "$MV" in
3272 /*)
3273 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3274 ;;
3275 ?:/*)
3276 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3277 ;;
3278 *)
3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3280 ac_dummy="$PATH"
3281 for ac_dir in $ac_dummy; do
3282 test -z "$ac_dir" && ac_dir=.
3283 if test -f $ac_dir/$ac_word; then
3284 ac_cv_path_MV="$ac_dir/$ac_word"
3285 break
3286 fi
3287 done
3288 IFS="$ac_save_ifs"
3289 test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
3290 ;;
3291 esac
3292 fi
3293 MV="$ac_cv_path_MV"
3294 if test -n "$MV"; then
3295 echo "$ac_t""$MV" 1>&6
3296 else
3297 echo "$ac_t""no" 1>&6
3298 fi
3299
3300 # Extract the first word of "mkdir", so it can be a program name with args.
3301 set dummy mkdir; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3304 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 case "$MKDIR" in
3308 /*)
3309 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
3310 ;;
3311 ?:/*)
3312 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path.
3313 ;;
3314 *)
3315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 ac_dummy="$PATH"
3317 for ac_dir in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f $ac_dir/$ac_word; then
3320 ac_cv_path_MKDIR="$ac_dir/$ac_word"
3321 break
3322 fi
3323 done
3324 IFS="$ac_save_ifs"
3325 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
3326 ;;
3327 esac
3328 fi
3329 MKDIR="$ac_cv_path_MKDIR"
3330 if test -n "$MKDIR"; then
3331 echo "$ac_t""$MKDIR" 1>&6
3332 else
3333 echo "$ac_t""no" 1>&6
3334 fi
3335
3336 # Extract the first word of "ln", so it can be a program name with args.
3337 set dummy ln; ac_word=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3342 else
3343 case "$LN" in
3344 /*)
3345 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3346 ;;
3347 ?:/*)
3348 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3349 ;;
3350 *)
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3352 ac_dummy="$PATH"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 ac_cv_path_LN="$ac_dir/$ac_word"
3357 break
3358 fi
3359 done
3360 IFS="$ac_save_ifs"
3361 test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
3362 ;;
3363 esac
3364 fi
3365 LN="$ac_cv_path_LN"
3366 if test -n "$LN"; then
3367 echo "$ac_t""$LN" 1>&6
3368 else
3369 echo "$ac_t""no" 1>&6
3370 fi
3371
3372 # Extract the first word of "perl", so it can be a program name with args.
3373 set dummy perl; ac_word=$2
3374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3375 echo "configure:3376: checking for $ac_word" >&5
3376 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 case "$PERL" in
3380 /*)
3381 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3382 ;;
3383 ?:/*)
3384 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3385 ;;
3386 *)
3387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 ac_dummy="$PATH"
3389 for ac_dir in $ac_dummy; do
3390 test -z "$ac_dir" && ac_dir=.
3391 if test -f $ac_dir/$ac_word; then
3392 ac_cv_path_PERL="$ac_dir/$ac_word"
3393 break
3394 fi
3395 done
3396 IFS="$ac_save_ifs"
3397 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
3398 ;;
3399 esac
3400 fi
3401 PERL="$ac_cv_path_PERL"
3402 if test -n "$PERL"; then
3403 echo "$ac_t""$PERL" 1>&6
3404 else
3405 echo "$ac_t""no" 1>&6
3406 fi
3407
3408 # Extract the first word of "ar", so it can be a program name with args.
3409 set dummy ar; ac_word=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 case "$AR" in
3416 /*)
3417 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3418 ;;
3419 ?:/*)
3420 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
3421 ;;
3422 *)
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3424 ac_dummy="$PATH"
3425 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 if test -f $ac_dir/$ac_word; then
3428 ac_cv_path_AR="$ac_dir/$ac_word"
3429 break
3430 fi
3431 done
3432 IFS="$ac_save_ifs"
3433 test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
3434 ;;
3435 esac
3436 fi
3437 AR="$ac_cv_path_AR"
3438 if test -n "$AR"; then
3439 echo "$ac_t""$AR" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
3445 if test "$ac_cv_path_PERL" = "none"; then
3446 echo "Perl is required to compile Squid"
3447 echo "Please install Perl and then re-run configure"
3448 exit 1
3449 fi
3450
3451 case "$host" in
3452 *-hp-hpux*)
3453 echo "Disabling 'ranlib' for HP-UX..."
3454 RANLIB=":"
3455 ;;
3456 esac
3457
3458 AR_R="$AR r"
3459 case "$host" in
3460 *-next-nextstep3)
3461 AR="libtool -o"
3462 ;;
3463 esac
3464
3465
3466 ac_header_dirent=no
3467 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3468 do
3469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3470 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_hdr that defines DIR" >&5
3472 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3474 else
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include <sys/types.h>
3479 #include <$ac_hdr>
3480 int main() {
3481 DIR *dirp = 0;
3482 ; return 0; }
3483 EOF
3484 if { (eval echo configure:3485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 rm -rf conftest*
3486 eval "ac_cv_header_dirent_$ac_safe=yes"
3487 else
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3490 rm -rf conftest*
3491 eval "ac_cv_header_dirent_$ac_safe=no"
3492 fi
3493 rm -f conftest*
3494 fi
3495 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_hdr 1
3500 EOF
3501 ac_header_dirent=$ac_hdr; break
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505 done
3506 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3507 if test $ac_header_dirent = dirent.h; then
3508 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3509 echo "configure:3510: checking for opendir in -ldir" >&5
3510 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 ac_save_LIBS="$LIBS"
3515 LIBS="-ldir $LIBS"
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3522 char opendir();
3523
3524 int main() {
3525 opendir()
3526 ; return 0; }
3527 EOF
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3529 rm -rf conftest*
3530 eval "ac_cv_lib_$ac_lib_var=yes"
3531 else
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 rm -rf conftest*
3535 eval "ac_cv_lib_$ac_lib_var=no"
3536 fi
3537 rm -f conftest*
3538 LIBS="$ac_save_LIBS"
3539
3540 fi
3541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3542 echo "$ac_t""yes" 1>&6
3543 LIBS="$LIBS -ldir"
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548 else
3549 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3550 echo "configure:3551: checking for opendir in -lx" >&5
3551 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3554 else
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lx $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3563 char opendir();
3564
3565 int main() {
3566 opendir()
3567 ; return 0; }
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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 LIBS="$LIBS -lx"
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589 fi
3590
3591 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3592 echo "configure:3593: checking for ANSI C header files" >&5
3593 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595 else
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <stdlib.h>
3600 #include <stdarg.h>
3601 #include <string.h>
3602 #include <float.h>
3603 EOF
3604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3605 { (eval echo configure:3606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3607 if test -z "$ac_err"; then
3608 rm -rf conftest*
3609 ac_cv_header_stdc=yes
3610 else
3611 echo "$ac_err" >&5
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 ac_cv_header_stdc=no
3616 fi
3617 rm -f conftest*
3618
3619 if test $ac_cv_header_stdc = yes; then
3620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <string.h>
3625 EOF
3626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 egrep "memchr" >/dev/null 2>&1; then
3628 :
3629 else
3630 rm -rf conftest*
3631 ac_cv_header_stdc=no
3632 fi
3633 rm -f conftest*
3634
3635 fi
3636
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <stdlib.h>
3643 EOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 egrep "free" >/dev/null 2>&1; then
3646 :
3647 else
3648 rm -rf conftest*
3649 ac_cv_header_stdc=no
3650 fi
3651 rm -f conftest*
3652
3653 fi
3654
3655 if test $ac_cv_header_stdc = yes; then
3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3657 if test "$cross_compiling" = yes; then
3658 :
3659 else
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 #include <ctype.h>
3664 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3665 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3667 int main () { int i; for (i = 0; i < 256; i++)
3668 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3669 exit (0); }
3670
3671 EOF
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3673 then
3674 :
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -fr conftest*
3679 ac_cv_header_stdc=no
3680 fi
3681 rm -fr conftest*
3682 fi
3683
3684 fi
3685 fi
3686
3687 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3688 if test $ac_cv_header_stdc = yes; then
3689 cat >> confdefs.h <<\EOF
3690 #define STDC_HEADERS 1
3691 EOF
3692
3693 fi
3694
3695
3696 for ac_hdr in \
3697 arpa/inet.h \
3698 arpa/nameser.h \
3699 assert.h \
3700 bstring.h \
3701 crypt.h \
3702 ctype.h \
3703 errno.h \
3704 execinfo.h \
3705 fcntl.h \
3706 getopt.h \
3707 gnumalloc.h \
3708 grp.h \
3709 ip_compat.h \
3710 ip_fil_compat.h \
3711 ip_fil.h \
3712 ip_nat.h \
3713 libc.h \
3714 limits.h \
3715 linux/netfilter_ipv4.h \
3716 malloc.h \
3717 math.h \
3718 memory.h \
3719 mount.h \
3720 net/if.h \
3721 netdb.h \
3722 netinet/if_ether.h \
3723 netinet/in.h \
3724 netinet/tcp.h \
3725 netinet/ip_compat.h \
3726 netinet/ip_fil_compat.h \
3727 netinet/ip_fil.h \
3728 netinet/ip_nat.h \
3729 openssl/err.h \
3730 openssl/md5.h \
3731 openssl/ssl.h \
3732 poll.h \
3733 pwd.h \
3734 regex.h \
3735 resolv.h \
3736 sched.h \
3737 signal.h \
3738 stdarg.h \
3739 stddef.h \
3740 stdio.h \
3741 stdlib.h \
3742 string.h \
3743 strings.h \
3744 sys/file.h \
3745 sys/ioctl.h \
3746 sys/mount.h \
3747 sys/msg.h \
3748 sys/param.h \
3749 sys/resource.h \
3750 sys/select.h\
3751 sys/socket.h \
3752 sys/stat.h \
3753 sys/statvfs.h \
3754 syscall.h \
3755 sys/syscall.h \
3756 sys/time.h \
3757 sys/types.h \
3758 sys/un.h \
3759 sys/vfs.h \
3760 sys/wait.h \
3761 syslog.h \
3762 time.h \
3763 unistd.h \
3764 utime.h \
3765 varargs.h \
3766 byteswap.h \
3767 glib.h \
3768 stdint.h \
3769 inttypes.h \
3770 grp.h \
3771 nss_common.h \
3772 nss.h
3773
3774 do
3775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3777 echo "configure:3778: checking for $ac_hdr" >&5
3778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3780 else
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 #include <$ac_hdr>
3785 EOF
3786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3787 { (eval echo configure:3788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3789 if test -z "$ac_err"; then
3790 rm -rf conftest*
3791 eval "ac_cv_header_$ac_safe=yes"
3792 else
3793 echo "$ac_err" >&5
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3796 rm -rf conftest*
3797 eval "ac_cv_header_$ac_safe=no"
3798 fi
3799 rm -f conftest*
3800 fi
3801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3804 cat >> confdefs.h <<EOF
3805 #define $ac_tr_hdr 1
3806 EOF
3807
3808 else
3809 echo "$ac_t""no" 1>&6
3810 fi
3811 done
3812
3813
3814 echo $ac_n "checking for working const""... $ac_c" 1>&6
3815 echo "configure:3816: checking for working const" >&5
3816 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822
3823 int main() {
3824
3825 /* Ultrix mips cc rejects this. */
3826 typedef int charset[2]; const charset x;
3827 /* SunOS 4.1.1 cc rejects this. */
3828 char const *const *ccp;
3829 char **p;
3830 /* NEC SVR4.0.2 mips cc rejects this. */
3831 struct point {int x, y;};
3832 static struct point const zero = {0,0};
3833 /* AIX XL C 1.02.0.0 rejects this.
3834 It does not let you subtract one const X* pointer from another in an arm
3835 of an if-expression whose if-part is not a constant expression */
3836 const char *g = "string";
3837 ccp = &g + (g ? g-g : 0);
3838 /* HPUX 7.0 cc rejects these. */
3839 ++ccp;
3840 p = (char**) ccp;
3841 ccp = (char const *const *) p;
3842 { /* SCO 3.2v4 cc rejects this. */
3843 char *t;
3844 char const *s = 0 ? (char *) 0 : (char const *) 0;
3845
3846 *t++ = 0;
3847 }
3848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3849 int x[] = {25, 17};
3850 const int *foo = &x[0];
3851 ++foo;
3852 }
3853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3854 typedef const int *iptr;
3855 iptr p = 0;
3856 ++p;
3857 }
3858 { /* AIX XL C 1.02.0.0 rejects this saying
3859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3860 struct s { int j; const int *ap[3]; };
3861 struct s *b; b->j = 5;
3862 }
3863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3864 const int foo = 10;
3865 }
3866
3867 ; return 0; }
3868 EOF
3869 if { (eval echo configure:3870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3870 rm -rf conftest*
3871 ac_cv_c_const=yes
3872 else
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 rm -rf conftest*
3876 ac_cv_c_const=no
3877 fi
3878 rm -f conftest*
3879 fi
3880
3881 echo "$ac_t""$ac_cv_c_const" 1>&6
3882 if test $ac_cv_c_const = no; then
3883 cat >> confdefs.h <<\EOF
3884 #define const
3885 EOF
3886
3887 fi
3888
3889 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3890 echo "configure:3891: checking whether byte ordering is bigendian" >&5
3891 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 ac_cv_c_bigendian=unknown
3895 # See if sys/param.h defines the BYTE_ORDER macro.
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 #include <sys/types.h>
3900 #include <sys/param.h>
3901 int main() {
3902
3903 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3904 bogus endian macros
3905 #endif
3906 ; return 0; }
3907 EOF
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 rm -rf conftest*
3910 # It does; now see whether it defined to BIG_ENDIAN or not.
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 #include <sys/types.h>
3915 #include <sys/param.h>
3916 int main() {
3917
3918 #if BYTE_ORDER != BIG_ENDIAN
3919 not big endian
3920 #endif
3921 ; return 0; }
3922 EOF
3923 if { (eval echo configure:3924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 rm -rf conftest*
3925 ac_cv_c_bigendian=yes
3926 else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -rf conftest*
3930 ac_cv_c_bigendian=no
3931 fi
3932 rm -f conftest*
3933 else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 fi
3937 rm -f conftest*
3938 if test $ac_cv_c_bigendian = unknown; then
3939 if test "$cross_compiling" = yes; then
3940 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3941 else
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 main () {
3946 /* Are we little or big endian? From Harbison&Steele. */
3947 union
3948 {
3949 long l;
3950 char c[sizeof (long)];
3951 } u;
3952 u.l = 1;
3953 exit (u.c[sizeof (long) - 1] == 1);
3954 }
3955 EOF
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3957 then
3958 ac_cv_c_bigendian=no
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -fr conftest*
3963 ac_cv_c_bigendian=yes
3964 fi
3965 rm -fr conftest*
3966 fi
3967
3968 fi
3969 fi
3970
3971 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3972 if test $ac_cv_c_bigendian = yes; then
3973 cat >> confdefs.h <<\EOF
3974 #define WORDS_BIGENDIAN 1
3975 EOF
3976
3977 fi
3978
3979
3980 echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6
3981 echo "configure:3982: checking if ANSI prototypes work" >&5
3982 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3985
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 int foo(char *); int foo (char *bar) {return 1;}
3990 int main() {
3991 foo("bar")
3992 ; return 0; }
3993 EOF
3994 if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3995 rm -rf conftest*
3996 ac_cv_have_ansi_prototypes="yes"
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 ac_cv_have_ansi_prototypes="no"
4002 fi
4003 rm -f conftest*
4004
4005 fi
4006
4007 echo "$ac_t""$ac_cv_have_ansi_prototypes" 1>&6
4008 if test $ac_cv_have_ansi_prototypes = "yes" ; then
4009 cat >> confdefs.h <<\EOF
4010 #define HAVE_ANSI_PROTOTYPES 1
4011 EOF
4012
4013 fi
4014
4015 echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6
4016 echo "configure:4017: checking for tm->tm_gmtoff" >&5
4017 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4019 else
4020
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 #include <time.h>
4025 #include <sys/time.h>
4026 int main() {
4027 struct tm foo;
4028 foo.tm_gmtoff = 0;
4029 ; return 0; }
4030 EOF
4031 if { (eval echo configure:4032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032 rm -rf conftest*
4033 ac_cv_have_tm_gmoff="yes"
4034 else
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 rm -rf conftest*
4038 ac_cv_have_tm_gmoff="no"
4039 fi
4040 rm -f conftest*
4041
4042 fi
4043
4044 echo "$ac_t""$ac_cv_have_tm_gmoff" 1>&6
4045 if test $ac_cv_have_tm_gmoff = "yes" ; then
4046 cat >> confdefs.h <<\EOF
4047 #define HAVE_TM_GMTOFF 1
4048 EOF
4049
4050 fi
4051
4052 echo $ac_n "checking for struct mallinfo""... $ac_c" 1>&6
4053 echo "configure:4054: checking for struct mallinfo" >&5
4054 if eval "test \"`echo '$''{'ac_cv_have_struct_mallinfo'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4057
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 #include <sys/types.h>
4062 #if HAVE_MALLOC_H
4063 #include <malloc.h>
4064 #endif
4065 int main() {
4066 struct mallinfo foo;
4067 foo.arena = 0;
4068 foo.ordblks = 0;
4069 foo.smblks = 0;
4070 foo.hblks = 0;
4071 foo.hblkhd = 0;
4072 foo.uordblks = 0;
4073 foo.fordblks = 0;
4074 foo.keepcost = 0;
4075 ; return 0; }
4076 EOF
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 rm -rf conftest*
4079 ac_cv_have_struct_mallinfo="yes"
4080 else
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 rm -rf conftest*
4084 ac_cv_have_struct_mallinfo="no"
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089
4090 echo "$ac_t""$ac_cv_have_struct_mallinfo" 1>&6
4091 if test $ac_cv_have_struct_mallinfo = "yes" ; then
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_STRUCT_MALLINFO 1
4094 EOF
4095
4096 fi
4097
4098 echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6
4099 echo "configure:4100: checking for extended mallinfo" >&5
4100 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4102 else
4103
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4108 #include <malloc.h>
4109 int main() {
4110 struct mallinfo foo;
4111 foo.mxfast = 0;
4112 ; return 0; }
4113 EOF
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 rm -rf conftest*
4116 ac_cv_have_ext_mallinfo="yes"
4117 else
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4120 rm -rf conftest*
4121 ac_cv_have_ext_mallinfo="no"
4122 fi
4123 rm -f conftest*
4124
4125 fi
4126
4127 echo "$ac_t""$ac_cv_have_ext_mallinfo" 1>&6
4128 if test $ac_cv_have_ext_mallinfo = "yes" ; then
4129 cat >> confdefs.h <<\EOF
4130 #define HAVE_EXT_MALLINFO 1
4131 EOF
4132
4133 fi
4134
4135 echo $ac_n "checking for struct rusage""... $ac_c" 1>&6
4136 echo "configure:4137: checking for struct rusage" >&5
4137 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4139 else
4140
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144
4145 #if HAVE_SYS_TIME_H
4146 #include <sys/time.h>
4147 #endif
4148 #if HAVE_SYS_RESOURCE_H
4149 #include <sys/resource.h>
4150 #endif
4151 int main() {
4152 struct rusage R;
4153 ; return 0; }
4154 EOF
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4156 rm -rf conftest*
4157 ac_cv_have_struct_rusage="yes"
4158 else
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 rm -rf conftest*
4162 ac_cv_have_struct_rusage="no"
4163 fi
4164 rm -f conftest*
4165
4166 fi
4167
4168 echo "$ac_t""$ac_cv_have_struct_rusage" 1>&6
4169 if test $ac_cv_have_struct_rusage = "yes" ; then
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_STRUCT_RUSAGE 1
4172 EOF
4173
4174 fi
4175
4176 echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6
4177 echo "configure:4178: checking for ip->ip_hl" >&5
4178 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4181
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <sys/types.h>
4186 #include <netinet/in.h>
4187 #include <netinet/in_systm.h>
4188 #include <netinet/ip.h>
4189 #if defined (__linux__) || defined (__CYGWIN__)
4190 #define ip_hl ihl
4191 #endif
4192 #ifndef __linux__
4193 #ifndef __CYGWIN__
4194 #define iphdr ip
4195 #endif
4196 #endif
4197 int main() {
4198 struct iphdr ip;
4199 ip.ip_hl= 0;
4200 ; return 0; }
4201 EOF
4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 rm -rf conftest*
4204 ac_cv_have_ip_hl="yes"
4205 else
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 rm -rf conftest*
4209 ac_cv_have_ip_hl="no"
4210 fi
4211 rm -f conftest*
4212
4213 fi
4214
4215 echo "$ac_t""$ac_cv_have_ip_hl" 1>&6
4216 if test $ac_cv_have_ip_hl = "yes" ; then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_IP_HL 1
4219 EOF
4220
4221 fi
4222
4223 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4224 echo "configure:4225: checking size of void *" >&5
4225 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 if test "$cross_compiling" = yes; then
4229 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4230 else
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4234 #include <stdio.h>
4235 main()
4236 {
4237 FILE *f=fopen("conftestval", "w");
4238 if (!f) exit(1);
4239 fprintf(f, "%d\n", sizeof(void *));
4240 exit(0);
4241 }
4242 EOF
4243 if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4244 then
4245 ac_cv_sizeof_void_p=`cat conftestval`
4246 else
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 rm -fr conftest*
4250 ac_cv_sizeof_void_p=0
4251 fi
4252 rm -fr conftest*
4253 fi
4254
4255 fi
4256 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4257 cat >> confdefs.h <<EOF
4258 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4259 EOF
4260
4261
4262 echo $ac_n "checking size of short""... $ac_c" 1>&6
4263 echo "configure:4264: checking size of short" >&5
4264 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4267 if test "$cross_compiling" = yes; then
4268 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4269 else
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 #include <stdio.h>
4274 main()
4275 {
4276 FILE *f=fopen("conftestval", "w");
4277 if (!f) exit(1);
4278 fprintf(f, "%d\n", sizeof(short));
4279 exit(0);
4280 }
4281 EOF
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4283 then
4284 ac_cv_sizeof_short=`cat conftestval`
4285 else
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 rm -fr conftest*
4289 ac_cv_sizeof_short=0
4290 fi
4291 rm -fr conftest*
4292 fi
4293
4294 fi
4295 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4296 cat >> confdefs.h <<EOF
4297 #define SIZEOF_SHORT $ac_cv_sizeof_short
4298 EOF
4299
4300
4301 echo $ac_n "checking size of int""... $ac_c" 1>&6
4302 echo "configure:4303: checking size of int" >&5
4303 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306 if test "$cross_compiling" = yes; then
4307 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4308 else
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 #include <stdio.h>
4313 main()
4314 {
4315 FILE *f=fopen("conftestval", "w");
4316 if (!f) exit(1);
4317 fprintf(f, "%d\n", sizeof(int));
4318 exit(0);
4319 }
4320 EOF
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4322 then
4323 ac_cv_sizeof_int=`cat conftestval`
4324 else
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 rm -fr conftest*
4328 ac_cv_sizeof_int=0
4329 fi
4330 rm -fr conftest*
4331 fi
4332
4333 fi
4334 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4335 cat >> confdefs.h <<EOF
4336 #define SIZEOF_INT $ac_cv_sizeof_int
4337 EOF
4338
4339
4340 echo $ac_n "checking size of long""... $ac_c" 1>&6
4341 echo "configure:4342: checking size of long" >&5
4342 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345 if test "$cross_compiling" = yes; then
4346 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4347 else
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 #include <stdio.h>
4352 main()
4353 {
4354 FILE *f=fopen("conftestval", "w");
4355 if (!f) exit(1);
4356 fprintf(f, "%d\n", sizeof(long));
4357 exit(0);
4358 }
4359 EOF
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4361 then
4362 ac_cv_sizeof_long=`cat conftestval`
4363 else
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4366 rm -fr conftest*
4367 ac_cv_sizeof_long=0
4368 fi
4369 rm -fr conftest*
4370 fi
4371
4372 fi
4373 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4374 cat >> confdefs.h <<EOF
4375 #define SIZEOF_LONG $ac_cv_sizeof_long
4376 EOF
4377
4378
4379 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4380 echo "configure:4381: checking size of long long" >&5
4381 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383 else
4384 if test "$cross_compiling" = yes; then
4385 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4386 else
4387 cat > conftest.$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 #include <stdio.h>
4391 main()
4392 {
4393 FILE *f=fopen("conftestval", "w");
4394 if (!f) exit(1);
4395 fprintf(f, "%d\n", sizeof(long long));
4396 exit(0);
4397 }
4398 EOF
4399 if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4400 then
4401 ac_cv_sizeof_long_long=`cat conftestval`
4402 else
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 rm -fr conftest*
4406 ac_cv_sizeof_long_long=0
4407 fi
4408 rm -fr conftest*
4409 fi
4410
4411 fi
4412 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4413 cat >> confdefs.h <<EOF
4414 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4415 EOF
4416
4417
4418 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
4419 echo "configure:4420: checking size of __int64" >&5
4420 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4422 else
4423 if test "$cross_compiling" = yes; then
4424 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4425 else
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <stdio.h>
4430 main()
4431 {
4432 FILE *f=fopen("conftestval", "w");
4433 if (!f) exit(1);
4434 fprintf(f, "%d\n", sizeof(__int64));
4435 exit(0);
4436 }
4437 EOF
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4439 then
4440 ac_cv_sizeof___int64=`cat conftestval`
4441 else
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4444 rm -fr conftest*
4445 ac_cv_sizeof___int64=0
4446 fi
4447 rm -fr conftest*
4448 fi
4449
4450 fi
4451 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
4452 cat >> confdefs.h <<EOF
4453 #define SIZEOF___INT64 $ac_cv_sizeof___int64
4454 EOF
4455
4456
4457 echo $ac_n "checking size of int16_t""... $ac_c" 1>&6
4458 echo "configure:4459: checking size of int16_t" >&5
4459 if eval "test \"`echo '$''{'ac_cv_sizeof_int16_t'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462 if test "$cross_compiling" = yes; then
4463 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4464 else
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 #include <stdio.h>
4469 main()
4470 {
4471 FILE *f=fopen("conftestval", "w");
4472 if (!f) exit(1);
4473 fprintf(f, "%d\n", sizeof(int16_t));
4474 exit(0);
4475 }
4476 EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4478 then
4479 ac_cv_sizeof_int16_t=`cat conftestval`
4480 else
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 rm -fr conftest*
4484 ac_cv_sizeof_int16_t=0
4485 fi
4486 rm -fr conftest*
4487 fi
4488
4489 fi
4490 echo "$ac_t""$ac_cv_sizeof_int16_t" 1>&6
4491 cat >> confdefs.h <<EOF
4492 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
4493 EOF
4494
4495
4496 echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
4497 echo "configure:4498: checking size of uint16_t" >&5
4498 if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501 if test "$cross_compiling" = yes; then
4502 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4503 else
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 #include <stdio.h>
4508 main()
4509 {
4510 FILE *f=fopen("conftestval", "w");
4511 if (!f) exit(1);
4512 fprintf(f, "%d\n", sizeof(uint16_t));
4513 exit(0);
4514 }
4515 EOF
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4517 then
4518 ac_cv_sizeof_uint16_t=`cat conftestval`
4519 else
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 rm -fr conftest*
4523 ac_cv_sizeof_uint16_t=0
4524 fi
4525 rm -fr conftest*
4526 fi
4527
4528 fi
4529 echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
4530 cat >> confdefs.h <<EOF
4531 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
4532 EOF
4533
4534
4535 echo $ac_n "checking size of u_int16_t""... $ac_c" 1>&6
4536 echo "configure:4537: checking size of u_int16_t" >&5
4537 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int16_t'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4539 else
4540 if test "$cross_compiling" = yes; then
4541 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4542 else
4543 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4546 #include <stdio.h>
4547 main()
4548 {
4549 FILE *f=fopen("conftestval", "w");
4550 if (!f) exit(1);
4551 fprintf(f, "%d\n", sizeof(u_int16_t));
4552 exit(0);
4553 }
4554 EOF
4555 if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4556 then
4557 ac_cv_sizeof_u_int16_t=`cat conftestval`
4558 else
4559 echo "configure: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4561 rm -fr conftest*
4562 ac_cv_sizeof_u_int16_t=0
4563 fi
4564 rm -fr conftest*
4565 fi
4566
4567 fi
4568 echo "$ac_t""$ac_cv_sizeof_u_int16_t" 1>&6
4569 cat >> confdefs.h <<EOF
4570 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
4571 EOF
4572
4573
4574 echo $ac_n "checking size of int32_t""... $ac_c" 1>&6
4575 echo "configure:4576: checking size of int32_t" >&5
4576 if eval "test \"`echo '$''{'ac_cv_sizeof_int32_t'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4578 else
4579 if test "$cross_compiling" = yes; then
4580 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4581 else
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4585 #include <stdio.h>
4586 main()
4587 {
4588 FILE *f=fopen("conftestval", "w");
4589 if (!f) exit(1);
4590 fprintf(f, "%d\n", sizeof(int32_t));
4591 exit(0);
4592 }
4593 EOF
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4595 then
4596 ac_cv_sizeof_int32_t=`cat conftestval`
4597 else
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 rm -fr conftest*
4601 ac_cv_sizeof_int32_t=0
4602 fi
4603 rm -fr conftest*
4604 fi
4605
4606 fi
4607 echo "$ac_t""$ac_cv_sizeof_int32_t" 1>&6
4608 cat >> confdefs.h <<EOF
4609 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
4610 EOF
4611
4612
4613 echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
4614 echo "configure:4615: checking size of uint32_t" >&5
4615 if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4617 else
4618 if test "$cross_compiling" = yes; then
4619 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4620 else
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 #include <stdio.h>
4625 main()
4626 {
4627 FILE *f=fopen("conftestval", "w");
4628 if (!f) exit(1);
4629 fprintf(f, "%d\n", sizeof(uint32_t));
4630 exit(0);
4631 }
4632 EOF
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4634 then
4635 ac_cv_sizeof_uint32_t=`cat conftestval`
4636 else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -fr conftest*
4640 ac_cv_sizeof_uint32_t=0
4641 fi
4642 rm -fr conftest*
4643 fi
4644
4645 fi
4646 echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
4647 cat >> confdefs.h <<EOF
4648 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
4649 EOF
4650
4651
4652 echo $ac_n "checking size of u_int32_t""... $ac_c" 1>&6
4653 echo "configure:4654: checking size of u_int32_t" >&5
4654 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int32_t'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4656 else
4657 if test "$cross_compiling" = yes; then
4658 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4659 else
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <stdio.h>
4664 main()
4665 {
4666 FILE *f=fopen("conftestval", "w");
4667 if (!f) exit(1);
4668 fprintf(f, "%d\n", sizeof(u_int32_t));
4669 exit(0);
4670 }
4671 EOF
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4673 then
4674 ac_cv_sizeof_u_int32_t=`cat conftestval`
4675 else
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -fr conftest*
4679 ac_cv_sizeof_u_int32_t=0
4680 fi
4681 rm -fr conftest*
4682 fi
4683
4684 fi
4685 echo "$ac_t""$ac_cv_sizeof_u_int32_t" 1>&6
4686 cat >> confdefs.h <<EOF
4687 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
4688 EOF
4689
4690
4691 echo $ac_n "checking size of int64_t""... $ac_c" 1>&6
4692 echo "configure:4693: checking size of int64_t" >&5
4693 if eval "test \"`echo '$''{'ac_cv_sizeof_int64_t'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4695 else
4696 if test "$cross_compiling" = yes; then
4697 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4698 else
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <stdio.h>
4703 main()
4704 {
4705 FILE *f=fopen("conftestval", "w");
4706 if (!f) exit(1);
4707 fprintf(f, "%d\n", sizeof(int64_t));
4708 exit(0);
4709 }
4710 EOF
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4712 then
4713 ac_cv_sizeof_int64_t=`cat conftestval`
4714 else
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 rm -fr conftest*
4718 ac_cv_sizeof_int64_t=0
4719 fi
4720 rm -fr conftest*
4721 fi
4722
4723 fi
4724 echo "$ac_t""$ac_cv_sizeof_int64_t" 1>&6
4725 cat >> confdefs.h <<EOF
4726 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
4727 EOF
4728
4729
4730 echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
4731 echo "configure:4732: checking size of uint64_t" >&5
4732 if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734 else
4735 if test "$cross_compiling" = yes; then
4736 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4737 else
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <stdio.h>
4742 main()
4743 {
4744 FILE *f=fopen("conftestval", "w");
4745 if (!f) exit(1);
4746 fprintf(f, "%d\n", sizeof(uint64_t));
4747 exit(0);
4748 }
4749 EOF
4750 if { (eval echo configure:4751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4751 then
4752 ac_cv_sizeof_uint64_t=`cat conftestval`
4753 else
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 rm -fr conftest*
4757 ac_cv_sizeof_uint64_t=0
4758 fi
4759 rm -fr conftest*
4760 fi
4761
4762 fi
4763 echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
4764 cat >> confdefs.h <<EOF
4765 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
4766 EOF
4767
4768
4769 echo $ac_n "checking size of u_int64_t""... $ac_c" 1>&6
4770 echo "configure:4771: checking size of u_int64_t" >&5
4771 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int64_t'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4773 else
4774 if test "$cross_compiling" = yes; then
4775 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4776 else
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 #include <stdio.h>
4781 main()
4782 {
4783 FILE *f=fopen("conftestval", "w");
4784 if (!f) exit(1);
4785 fprintf(f, "%d\n", sizeof(u_int64_t));
4786 exit(0);
4787 }
4788 EOF
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4790 then
4791 ac_cv_sizeof_u_int64_t=`cat conftestval`
4792 else
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 rm -fr conftest*
4796 ac_cv_sizeof_u_int64_t=0
4797 fi
4798 rm -fr conftest*
4799 fi
4800
4801 fi
4802 echo "$ac_t""$ac_cv_sizeof_u_int64_t" 1>&6
4803 cat >> confdefs.h <<EOF
4804 #define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
4805 EOF
4806
4807
4808
4809 if test "x$ac_cv_sizeof_short" = "x2"; then
4810 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
4811 echo "configure:4812: checking for int16_t" >&5
4812 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/types.h>
4819 #if STDC_HEADERS
4820 #include <stdlib.h>
4821 #include <stddef.h>
4822 #endif
4823 EOF
4824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4825 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4826 rm -rf conftest*
4827 ac_cv_type_int16_t=yes
4828 else
4829 rm -rf conftest*
4830 ac_cv_type_int16_t=no
4831 fi
4832 rm -f conftest*
4833
4834 fi
4835 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
4836 if test $ac_cv_type_int16_t = no; then
4837 cat >> confdefs.h <<\EOF
4838 #define int16_t short
4839 EOF
4840
4841 fi
4842
4843 elif test "x$ac_cv_sizeof_int" = "x2"; then
4844 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
4845 echo "configure:4846: checking for int16_t" >&5
4846 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <sys/types.h>
4853 #if STDC_HEADERS
4854 #include <stdlib.h>
4855 #include <stddef.h>
4856 #endif
4857 EOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4860 rm -rf conftest*
4861 ac_cv_type_int16_t=yes
4862 else
4863 rm -rf conftest*
4864 ac_cv_type_int16_t=no
4865 fi
4866 rm -f conftest*
4867
4868 fi
4869 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
4870 if test $ac_cv_type_int16_t = no; then
4871 cat >> confdefs.h <<\EOF
4872 #define int16_t int
4873 EOF
4874
4875 fi
4876
4877 fi
4878 if test "x$ac_cv_sizeof_uint16_t" = "x2"; then
4879 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
4880 echo "configure:4881: checking for u_int16_t" >&5
4881 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4883 else
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 #include <sys/types.h>
4888 #if STDC_HEADERS
4889 #include <stdlib.h>
4890 #include <stddef.h>
4891 #endif
4892 EOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4895 rm -rf conftest*
4896 ac_cv_type_u_int16_t=yes
4897 else
4898 rm -rf conftest*
4899 ac_cv_type_u_int16_t=no
4900 fi
4901 rm -f conftest*
4902
4903 fi
4904 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
4905 if test $ac_cv_type_u_int16_t = no; then
4906 cat >> confdefs.h <<\EOF
4907 #define u_int16_t uint16_t
4908 EOF
4909
4910 fi
4911
4912 elif test "x$ac_cv_sizeof_short" = "x2"; then
4913 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
4914 echo "configure:4915: checking for u_int16_t" >&5
4915 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4917 else
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4921 #include <sys/types.h>
4922 #if STDC_HEADERS
4923 #include <stdlib.h>
4924 #include <stddef.h>
4925 #endif
4926 EOF
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4929 rm -rf conftest*
4930 ac_cv_type_u_int16_t=yes
4931 else
4932 rm -rf conftest*
4933 ac_cv_type_u_int16_t=no
4934 fi
4935 rm -f conftest*
4936
4937 fi
4938 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
4939 if test $ac_cv_type_u_int16_t = no; then
4940 cat >> confdefs.h <<\EOF
4941 #define u_int16_t unsigned short
4942 EOF
4943
4944 fi
4945
4946 elif test "x$ac_cv_sizeof_int" = "x2"; then
4947 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
4948 echo "configure:4949: checking for u_int16_t" >&5
4949 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4951 else
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955 #include <sys/types.h>
4956 #if STDC_HEADERS
4957 #include <stdlib.h>
4958 #include <stddef.h>
4959 #endif
4960 EOF
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4963 rm -rf conftest*
4964 ac_cv_type_u_int16_t=yes
4965 else
4966 rm -rf conftest*
4967 ac_cv_type_u_int16_t=no
4968 fi
4969 rm -f conftest*
4970
4971 fi
4972 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
4973 if test $ac_cv_type_u_int16_t = no; then
4974 cat >> confdefs.h <<\EOF
4975 #define u_int16_t unsigned int
4976 EOF
4977
4978 fi
4979
4980 fi
4981 if test "x$ac_cv_sizeof_int" = "x4"; then
4982 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
4983 echo "configure:4984: checking for int32_t" >&5
4984 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4986 else
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4990 #include <sys/types.h>
4991 #if STDC_HEADERS
4992 #include <stdlib.h>
4993 #include <stddef.h>
4994 #endif
4995 EOF
4996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4997 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4998 rm -rf conftest*
4999 ac_cv_type_int32_t=yes
5000 else
5001 rm -rf conftest*
5002 ac_cv_type_int32_t=no
5003 fi
5004 rm -f conftest*
5005
5006 fi
5007 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
5008 if test $ac_cv_type_int32_t = no; then
5009 cat >> confdefs.h <<\EOF
5010 #define int32_t int
5011 EOF
5012
5013 fi
5014
5015 elif "x$ac_cv_sizeof_long" = "x4"; then
5016 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
5017 echo "configure:5018: checking for int32_t" >&5
5018 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5020 else
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 #include <sys/types.h>
5025 #if STDC_HEADERS
5026 #include <stdlib.h>
5027 #include <stddef.h>
5028 #endif
5029 EOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5032 rm -rf conftest*
5033 ac_cv_type_int32_t=yes
5034 else
5035 rm -rf conftest*
5036 ac_cv_type_int32_t=no
5037 fi
5038 rm -f conftest*
5039
5040 fi
5041 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
5042 if test $ac_cv_type_int32_t = no; then
5043 cat >> confdefs.h <<\EOF
5044 #define int32_t long
5045 EOF
5046
5047 fi
5048
5049 fi
5050 if test "x$ac_cv_sizeof_uint32_t" = "x4"; then
5051 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
5052 echo "configure:5053: checking for u_int32_t" >&5
5053 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5055 else
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5059 #include <sys/types.h>
5060 #if STDC_HEADERS
5061 #include <stdlib.h>
5062 #include <stddef.h>
5063 #endif
5064 EOF
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5067 rm -rf conftest*
5068 ac_cv_type_u_int32_t=yes
5069 else
5070 rm -rf conftest*
5071 ac_cv_type_u_int32_t=no
5072 fi
5073 rm -f conftest*
5074
5075 fi
5076 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
5077 if test $ac_cv_type_u_int32_t = no; then
5078 cat >> confdefs.h <<\EOF
5079 #define u_int32_t uint32_t
5080 EOF
5081
5082 fi
5083
5084 elif test "x$ac_cv_sizeof_int" = "x4"; then
5085 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
5086 echo "configure:5087: checking for u_int32_t" >&5
5087 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5089 else
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093 #include <sys/types.h>
5094 #if STDC_HEADERS
5095 #include <stdlib.h>
5096 #include <stddef.h>
5097 #endif
5098 EOF
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5101 rm -rf conftest*
5102 ac_cv_type_u_int32_t=yes
5103 else
5104 rm -rf conftest*
5105 ac_cv_type_u_int32_t=no
5106 fi
5107 rm -f conftest*
5108
5109 fi
5110 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
5111 if test $ac_cv_type_u_int32_t = no; then
5112 cat >> confdefs.h <<\EOF
5113 #define u_int32_t unsigned int
5114 EOF
5115
5116 fi
5117
5118 elif test "x$ac_cv_sizeof_long" = "x4"; then
5119 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
5120 echo "configure:5121: checking for u_int32_t" >&5
5121 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 #include <sys/types.h>
5128 #if STDC_HEADERS
5129 #include <stdlib.h>
5130 #include <stddef.h>
5131 #endif
5132 EOF
5133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5134 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5135 rm -rf conftest*
5136 ac_cv_type_u_int32_t=yes
5137 else
5138 rm -rf conftest*
5139 ac_cv_type_u_int32_t=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
5145 if test $ac_cv_type_u_int32_t = no; then
5146 cat >> confdefs.h <<\EOF
5147 #define u_int32_t unsigned long
5148 EOF
5149
5150 fi
5151
5152 fi
5153 if test "x$ac_cv_sizeof_long" = "x8"; then
5154 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
5155 echo "configure:5156: checking for int64_t" >&5
5156 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5158 else
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 #include <sys/types.h>
5163 #if STDC_HEADERS
5164 #include <stdlib.h>
5165 #include <stddef.h>
5166 #endif
5167 EOF
5168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5169 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5170 rm -rf conftest*
5171 ac_cv_type_int64_t=yes
5172 else
5173 rm -rf conftest*
5174 ac_cv_type_int64_t=no
5175 fi
5176 rm -f conftest*
5177
5178 fi
5179 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
5180 if test $ac_cv_type_int64_t = no; then
5181 cat >> confdefs.h <<\EOF
5182 #define int64_t long
5183 EOF
5184
5185 fi
5186
5187 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
5188 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
5189 echo "configure:5190: checking for int64_t" >&5
5190 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 #include <sys/types.h>
5197 #if STDC_HEADERS
5198 #include <stdlib.h>
5199 #include <stddef.h>
5200 #endif
5201 EOF
5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5204 rm -rf conftest*
5205 ac_cv_type_int64_t=yes
5206 else
5207 rm -rf conftest*
5208 ac_cv_type_int64_t=no
5209 fi
5210 rm -f conftest*
5211
5212 fi
5213 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
5214 if test $ac_cv_type_int64_t = no; then
5215 cat >> confdefs.h <<\EOF
5216 #define int64_t long long
5217 EOF
5218
5219 fi
5220
5221 elif test "x$ac_cv_sizeof___int64" = "x8"; then
5222 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
5223 echo "configure:5224: checking for int64_t" >&5
5224 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 #include <sys/types.h>
5231 #if STDC_HEADERS
5232 #include <stdlib.h>
5233 #include <stddef.h>
5234 #endif
5235 EOF
5236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5237 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5238 rm -rf conftest*
5239 ac_cv_type_int64_t=yes
5240 else
5241 rm -rf conftest*
5242 ac_cv_type_int64_t=no
5243 fi
5244 rm -f conftest*
5245
5246 fi
5247 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
5248 if test $ac_cv_type_int64_t = no; then
5249 cat >> confdefs.h <<\EOF
5250 #define int64_t __int64
5251 EOF
5252
5253 fi
5254
5255 fi
5256 if test "x$ac_cv_sizeof_uint64_t" = "x8"; then
5257 echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
5258 echo "configure:5259: checking for u_int64_t" >&5
5259 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5261 else
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 #include <sys/types.h>
5266 #if STDC_HEADERS
5267 #include <stdlib.h>
5268 #include <stddef.h>
5269 #endif
5270 EOF
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5273 rm -rf conftest*
5274 ac_cv_type_u_int64_t=yes
5275 else
5276 rm -rf conftest*
5277 ac_cv_type_u_int64_t=no
5278 fi
5279 rm -f conftest*
5280
5281 fi
5282 echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
5283 if test $ac_cv_type_u_int64_t = no; then
5284 cat >> confdefs.h <<\EOF
5285 #define u_int64_t uint64_t
5286 EOF
5287
5288 fi
5289
5290 elif test "x$ac_cv_sizeof_long" = "x8"; then
5291 echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
5292 echo "configure:5293: checking for u_int64_t" >&5
5293 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5295 else
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5300 #if STDC_HEADERS
5301 #include <stdlib.h>
5302 #include <stddef.h>
5303 #endif
5304 EOF
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5307 rm -rf conftest*
5308 ac_cv_type_u_int64_t=yes
5309 else
5310 rm -rf conftest*
5311 ac_cv_type_u_int64_t=no
5312 fi
5313 rm -f conftest*
5314
5315 fi
5316 echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
5317 if test $ac_cv_type_u_int64_t = no; then
5318 cat >> confdefs.h <<\EOF
5319 #define u_int64_t unsigned long
5320 EOF
5321
5322 fi
5323
5324 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
5325 echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
5326 echo "configure:5327: checking for u_int64_t" >&5
5327 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5329 else
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 #include <sys/types.h>
5334 #if STDC_HEADERS
5335 #include <stdlib.h>
5336 #include <stddef.h>
5337 #endif
5338 EOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5341 rm -rf conftest*
5342 ac_cv_type_u_int64_t=yes
5343 else
5344 rm -rf conftest*
5345 ac_cv_type_u_int64_t=no
5346 fi
5347 rm -f conftest*
5348
5349 fi
5350 echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
5351 if test $ac_cv_type_u_int64_t = no; then
5352 cat >> confdefs.h <<\EOF
5353 #define u_int64_t unsigned long long
5354 EOF
5355
5356 fi
5357
5358 elif test "x$ac_cv_sizeof___int64" = "x8"; then
5359 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
5360 echo "configure:5361: checking for int64_t" >&5
5361 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5363 else
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 #include <sys/types.h>
5368 #if STDC_HEADERS
5369 #include <stdlib.h>
5370 #include <stddef.h>
5371 #endif
5372 EOF
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5375 rm -rf conftest*
5376 ac_cv_type_int64_t=yes
5377 else
5378 rm -rf conftest*
5379 ac_cv_type_int64_t=no
5380 fi
5381 rm -f conftest*
5382
5383 fi
5384 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
5385 if test $ac_cv_type_int64_t = no; then
5386 cat >> confdefs.h <<\EOF
5387 #define int64_t unsigned __int64
5388 EOF
5389
5390 fi
5391
5392 fi
5393
5394 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5395 echo "configure:5396: checking for pid_t" >&5
5396 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5398 else
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 #include <sys/types.h>
5403 #if STDC_HEADERS
5404 #include <stdlib.h>
5405 #include <stddef.h>
5406 #endif
5407 EOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5410 rm -rf conftest*
5411 ac_cv_type_pid_t=yes
5412 else
5413 rm -rf conftest*
5414 ac_cv_type_pid_t=no
5415 fi
5416 rm -f conftest*
5417
5418 fi
5419 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5420 if test $ac_cv_type_pid_t = no; then
5421 cat >> confdefs.h <<\EOF
5422 #define pid_t int
5423 EOF
5424
5425 fi
5426
5427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5428 echo "configure:5429: checking for size_t" >&5
5429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5431 else
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 #include <sys/types.h>
5436 #if STDC_HEADERS
5437 #include <stdlib.h>
5438 #include <stddef.h>
5439 #endif
5440 EOF
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5443 rm -rf conftest*
5444 ac_cv_type_size_t=yes
5445 else
5446 rm -rf conftest*
5447 ac_cv_type_size_t=no
5448 fi
5449 rm -f conftest*
5450
5451 fi
5452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5453 if test $ac_cv_type_size_t = no; then
5454 cat >> confdefs.h <<\EOF
5455 #define size_t unsigned int
5456 EOF
5457
5458 fi
5459
5460 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5461 echo "configure:5462: checking for ssize_t" >&5
5462 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5464 else
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 #include <sys/types.h>
5469 #if STDC_HEADERS
5470 #include <stdlib.h>
5471 #include <stddef.h>
5472 #endif
5473 EOF
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5476 rm -rf conftest*
5477 ac_cv_type_ssize_t=yes
5478 else
5479 rm -rf conftest*
5480 ac_cv_type_ssize_t=no
5481 fi
5482 rm -f conftest*
5483
5484 fi
5485 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5486 if test $ac_cv_type_ssize_t = no; then
5487 cat >> confdefs.h <<\EOF
5488 #define ssize_t int
5489 EOF
5490
5491 fi
5492
5493 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5494 echo "configure:5495: checking for off_t" >&5
5495 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5497 else
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 #include <sys/types.h>
5502 #if STDC_HEADERS
5503 #include <stdlib.h>
5504 #include <stddef.h>
5505 #endif
5506 EOF
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5509 rm -rf conftest*
5510 ac_cv_type_off_t=yes
5511 else
5512 rm -rf conftest*
5513 ac_cv_type_off_t=no
5514 fi
5515 rm -f conftest*
5516
5517 fi
5518 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5519 if test $ac_cv_type_off_t = no; then
5520 cat >> confdefs.h <<\EOF
5521 #define off_t int
5522 EOF
5523
5524 fi
5525
5526 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5527 echo "configure:5528: checking for mode_t" >&5
5528 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5530 else
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 #include <sys/types.h>
5535 #if STDC_HEADERS
5536 #include <stdlib.h>
5537 #include <stddef.h>
5538 #endif
5539 EOF
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5542 rm -rf conftest*
5543 ac_cv_type_mode_t=yes
5544 else
5545 rm -rf conftest*
5546 ac_cv_type_mode_t=no
5547 fi
5548 rm -f conftest*
5549
5550 fi
5551 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5552 if test $ac_cv_type_mode_t = no; then
5553 cat >> confdefs.h <<\EOF
5554 #define mode_t u_short
5555 EOF
5556
5557 fi
5558
5559 echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
5560 echo "configure:5561: checking for fd_mask" >&5
5561 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5563 else
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 #include <sys/types.h>
5568 #if STDC_HEADERS
5569 #include <stdlib.h>
5570 #include <stddef.h>
5571 #endif
5572 EOF
5573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5574 egrep "(^|[^a-zA-Z_0-9])fd_mask[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5575 rm -rf conftest*
5576 ac_cv_type_fd_mask=yes
5577 else
5578 rm -rf conftest*
5579 ac_cv_type_fd_mask=no
5580 fi
5581 rm -f conftest*
5582
5583 fi
5584 echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
5585 if test $ac_cv_type_fd_mask = no; then
5586 cat >> confdefs.h <<\EOF
5587 #define fd_mask int
5588 EOF
5589
5590 fi
5591
5592
5593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5594 # for constant arguments. Useless!
5595 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5596 echo "configure:5597: checking for working alloca.h" >&5
5597 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 #include <alloca.h>
5604 int main() {
5605 char *p = alloca(2 * sizeof(int));
5606 ; return 0; }
5607 EOF
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5609 rm -rf conftest*
5610 ac_cv_header_alloca_h=yes
5611 else
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5614 rm -rf conftest*
5615 ac_cv_header_alloca_h=no
5616 fi
5617 rm -f conftest*
5618 fi
5619
5620 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5621 if test $ac_cv_header_alloca_h = yes; then
5622 cat >> confdefs.h <<\EOF
5623 #define HAVE_ALLOCA_H 1
5624 EOF
5625
5626 fi
5627
5628 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5629 echo "configure:5630: checking for alloca" >&5
5630 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5632 else
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636
5637 #ifdef __GNUC__
5638 # define alloca __builtin_alloca
5639 #else
5640 # ifdef _MSC_VER
5641 # include <malloc.h>
5642 # define alloca _alloca
5643 # else
5644 # if HAVE_ALLOCA_H
5645 # include <alloca.h>
5646 # else
5647 # ifdef _AIX
5648 #pragma alloca
5649 # else
5650 # ifndef alloca /* predefined by HP cc +Olibcalls */
5651 char *alloca ();
5652 # endif
5653 # endif
5654 # endif
5655 # endif
5656 #endif
5657
5658 int main() {
5659 char *p = (char *) alloca(1);
5660 ; return 0; }
5661 EOF
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 rm -rf conftest*
5664 ac_cv_func_alloca_works=yes
5665 else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 ac_cv_func_alloca_works=no
5670 fi
5671 rm -f conftest*
5672 fi
5673
5674 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5675 if test $ac_cv_func_alloca_works = yes; then
5676 cat >> confdefs.h <<\EOF
5677 #define HAVE_ALLOCA 1
5678 EOF
5679
5680 fi
5681
5682 if test $ac_cv_func_alloca_works = no; then
5683 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5684 # that cause trouble. Some versions do not even contain alloca or
5685 # contain a buggy version. If you still want to use their alloca,
5686 # use ar to extract alloca.o from them instead of compiling alloca.c.
5687 ALLOCA=alloca.${ac_objext}
5688 cat >> confdefs.h <<\EOF
5689 #define C_ALLOCA 1
5690 EOF
5691
5692
5693 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5694 echo "configure:5695: checking whether alloca needs Cray hooks" >&5
5695 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5697 else
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 #if defined(CRAY) && ! defined(CRAY2)
5702 webecray
5703 #else
5704 wenotbecray
5705 #endif
5706
5707 EOF
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 egrep "webecray" >/dev/null 2>&1; then
5710 rm -rf conftest*
5711 ac_cv_os_cray=yes
5712 else
5713 rm -rf conftest*
5714 ac_cv_os_cray=no
5715 fi
5716 rm -f conftest*
5717
5718 fi
5719
5720 echo "$ac_t""$ac_cv_os_cray" 1>&6
5721 if test $ac_cv_os_cray = yes; then
5722 for ac_func in _getb67 GETB67 getb67; do
5723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5724 echo "configure:5725: checking for $ac_func" >&5
5725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727 else
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 /* System header to define __stub macros and hopefully few prototypes,
5732 which can conflict with char $ac_func(); below. */
5733 #include <assert.h>
5734 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5737 char $ac_func();
5738
5739 int main() {
5740
5741 /* The GNU C library defines this for functions which it implements
5742 to always fail with ENOSYS. Some functions are actually named
5743 something starting with __ and the normal name is an alias. */
5744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745 choke me
5746 #else
5747 $ac_func();
5748 #endif
5749
5750 ; return 0; }
5751 EOF
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753 rm -rf conftest*
5754 eval "ac_cv_func_$ac_func=yes"
5755 else
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5758 rm -rf conftest*
5759 eval "ac_cv_func_$ac_func=no"
5760 fi
5761 rm -f conftest*
5762 fi
5763
5764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5765 echo "$ac_t""yes" 1>&6
5766 cat >> confdefs.h <<EOF
5767 #define CRAY_STACKSEG_END $ac_func
5768 EOF
5769
5770 break
5771 else
5772 echo "$ac_t""no" 1>&6
5773 fi
5774
5775 done
5776 fi
5777
5778 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5779 echo "configure:5780: checking stack direction for C alloca" >&5
5780 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5782 else
5783 if test "$cross_compiling" = yes; then
5784 ac_cv_c_stack_direction=0
5785 else
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 find_stack_direction ()
5790 {
5791 static char *addr = 0;
5792 auto char dummy;
5793 if (addr == 0)
5794 {
5795 addr = &dummy;
5796 return find_stack_direction ();
5797 }
5798 else
5799 return (&dummy > addr) ? 1 : -1;
5800 }
5801 main ()
5802 {
5803 exit (find_stack_direction() < 0);
5804 }
5805 EOF
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5807 then
5808 ac_cv_c_stack_direction=1
5809 else
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5812 rm -fr conftest*
5813 ac_cv_c_stack_direction=-1
5814 fi
5815 rm -fr conftest*
5816 fi
5817
5818 fi
5819
5820 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5821 cat >> confdefs.h <<EOF
5822 #define STACK_DIRECTION $ac_cv_c_stack_direction
5823 EOF
5824
5825 fi
5826
5827
5828
5829 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
5830 echo "configure:5831: checking for socklen_t" >&5
5831 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 #include <sys/types.h>
5839 #include <sys/socket.h>
5840 #if STDC_HEADERS
5841 #include <stdlib.h>
5842 #include <stddef.h>
5843 #endif
5844 EOF
5845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5846 egrep "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5847 rm -rf conftest*
5848 ac_cv_type_socklen_t=yes
5849 else
5850 rm -rf conftest*
5851 ac_cv_type_socklen_t=no
5852 fi
5853 rm -f conftest*
5854
5855
5856 fi
5857
5858 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
5859 if test $ac_cv_type_socklen_t = no; then
5860 cat >> confdefs.h <<\EOF
5861 #define socklen_t int
5862 EOF
5863
5864 fi
5865
5866 echo $ac_n "checking for mtyp_t""... $ac_c" 1>&6
5867 echo "configure:5868: checking for mtyp_t" >&5
5868 if eval "test \"`echo '$''{'ac_cv_type_mtyp_t'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5870 else
5871
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 #include <sys/types.h>
5876 #include <sys/ipc.h>
5877 #include <sys/msg.h>
5878 EOF
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 egrep "mtyp_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5881 rm -rf conftest*
5882 ac_cv_type_mtyp_t=yes
5883 else
5884 rm -rf conftest*
5885 ac_cv_type_mtyp_t=no
5886 fi
5887 rm -f conftest*
5888
5889
5890 fi
5891
5892 echo "$ac_t""$ac_cv_type_mtyp_t" 1>&6
5893 if test $ac_cv_type_mtyp_t = no; then
5894 cat >> confdefs.h <<\EOF
5895 #define mtyp_t long
5896 EOF
5897
5898 fi
5899
5900 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5901 echo "configure:5902: checking for main in -lnsl" >&5
5902 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906 ac_save_LIBS="$LIBS"
5907 LIBS="-lnsl $LIBS"
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911
5912 int main() {
5913 main()
5914 ; return 0; }
5915 EOF
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 rm -rf conftest*
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5919 else
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_lib_$ac_lib_var=no"
5924 fi
5925 rm -f conftest*
5926 LIBS="$ac_save_LIBS"
5927
5928 fi
5929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5931 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_lib 1
5935 EOF
5936
5937 LIBS="-lnsl $LIBS"
5938
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5944 echo "configure:5945: checking for main in -lsocket" >&5
5945 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5948 else
5949 ac_save_LIBS="$LIBS"
5950 LIBS="-lsocket $LIBS"
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5954
5955 int main() {
5956 main()
5957 ; return 0; }
5958 EOF
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 rm -rf conftest*
5961 eval "ac_cv_lib_$ac_lib_var=yes"
5962 else
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 eval "ac_cv_lib_$ac_lib_var=no"
5967 fi
5968 rm -f conftest*
5969 LIBS="$ac_save_LIBS"
5970
5971 fi
5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5974 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5976 cat >> confdefs.h <<EOF
5977 #define $ac_tr_lib 1
5978 EOF
5979
5980 LIBS="-lsocket $LIBS"
5981
5982 else
5983 echo "$ac_t""no" 1>&6
5984 fi
5985
5986
5987 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
5988 echo "configure:5989: checking for unix domain sockets" >&5
5989 if eval "test \"`echo '$''{'squid_cv_unixsocket'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5991 else
5992
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996
5997 #include <sys/types.h>
5998 #include <stdlib.h>
5999 #include <stddef.h>
6000 #include <sys/socket.h>
6001 #include <sys/un.h>
6002 int main() {
6003
6004 struct sockaddr_un sunaddr;
6005 sunaddr.sun_family = AF_UNIX;
6006
6007 ; return 0; }
6008 EOF
6009 if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6010 rm -rf conftest*
6011 squid_cv_unixsocket=yes
6012 else
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6015 rm -rf conftest*
6016 squid_cv_unixsocket=no
6017 fi
6018 rm -f conftest*
6019 fi
6020
6021 echo "$ac_t""$squid_cv_unixsocket" 1>&6
6022 if test x"$squid_cv_unixsocket" = x"yes"; then
6023 cat >> confdefs.h <<\EOF
6024 #define HAVE_UNIXSOCKET 1
6025 EOF
6026
6027 fi
6028
6029 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
6030 echo "skipping libmalloc check (--enable-dlmalloc specified)"
6031 else
6032 echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
6033 echo "configure:6034: checking for main in -lgnumalloc" >&5
6034 ac_lib_var=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
6035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6037 else
6038 ac_save_LIBS="$LIBS"
6039 LIBS="-lgnumalloc $LIBS"
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043
6044 int main() {
6045 main()
6046 ; return 0; }
6047 EOF
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 rm -rf conftest*
6050 eval "ac_cv_lib_$ac_lib_var=yes"
6051 else
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 rm -rf conftest*
6055 eval "ac_cv_lib_$ac_lib_var=no"
6056 fi
6057 rm -f conftest*
6058 LIBS="$ac_save_LIBS"
6059
6060 fi
6061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_lib=HAVE_LIB`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6065 cat >> confdefs.h <<EOF
6066 #define $ac_tr_lib 1
6067 EOF
6068
6069 LIBS="-lgnumalloc $LIBS"
6070
6071 else
6072 echo "$ac_t""no" 1>&6
6073 fi
6074
6075 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
6076 echo "Disabling extended malloc functions when using gnumalloc"
6077 ac_cv_func_mallinfo=no
6078 ac_cv_func_mallocblksize=no
6079 ac_cv_func_mallopt=no
6080 else
6081 case "$host" in
6082 *-sun-solaris*)
6083 echo "skipping libmalloc check for $host"
6084 ;;
6085 i386-*-freebsd*)
6086 echo "skipping libmalloc check for $host"
6087 ;;
6088 *)
6089
6090 echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
6091 echo "configure:6092: checking for main in -lmalloc" >&5
6092 ac_lib_var=`echo malloc'_'main | sed 'y%./+-%__p_%'`
6093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6095 else
6096 ac_save_LIBS="$LIBS"
6097 LIBS="-lmalloc $LIBS"
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101
6102 int main() {
6103 main()
6104 ; return 0; }
6105 EOF
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 rm -rf conftest*
6108 eval "ac_cv_lib_$ac_lib_var=yes"
6109 else
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 rm -rf conftest*
6113 eval "ac_cv_lib_$ac_lib_var=no"
6114 fi
6115 rm -f conftest*
6116 LIBS="$ac_save_LIBS"
6117
6118 fi
6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_lib=HAVE_LIB`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6123 cat >> confdefs.h <<EOF
6124 #define $ac_tr_lib 1
6125 EOF
6126
6127 LIBS="-lmalloc $LIBS"
6128
6129 else
6130 echo "$ac_t""no" 1>&6
6131 fi
6132
6133 ;;
6134 esac
6135 fi
6136 fi
6137
6138 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
6139 echo "configure:6140: checking for main in -lbsd" >&5
6140 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
6141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143 else
6144 ac_save_LIBS="$LIBS"
6145 LIBS="-lbsd $LIBS"
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149
6150 int main() {
6151 main()
6152 ; return 0; }
6153 EOF
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 rm -rf conftest*
6156 eval "ac_cv_lib_$ac_lib_var=yes"
6157 else
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6160 rm -rf conftest*
6161 eval "ac_cv_lib_$ac_lib_var=no"
6162 fi
6163 rm -f conftest*
6164 LIBS="$ac_save_LIBS"
6165
6166 fi
6167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_lib 1
6173 EOF
6174
6175 LIBS="-lbsd $LIBS"
6176
6177 else
6178 echo "$ac_t""no" 1>&6
6179 fi
6180
6181 echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
6182 echo "configure:6183: checking for main in -lregex" >&5
6183 ac_lib_var=`echo regex'_'main | sed 'y%./+-%__p_%'`
6184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6186 else
6187 ac_save_LIBS="$LIBS"
6188 LIBS="-lregex $LIBS"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192
6193 int main() {
6194 main()
6195 ; return 0; }
6196 EOF
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6198 rm -rf conftest*
6199 eval "ac_cv_lib_$ac_lib_var=yes"
6200 else
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6203 rm -rf conftest*
6204 eval "ac_cv_lib_$ac_lib_var=no"
6205 fi
6206 rm -f conftest*
6207 LIBS="$ac_save_LIBS"
6208
6209 fi
6210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6212 REGEXLIB="-lregex"
6213 else
6214 echo "$ac_t""no" 1>&6
6215 fi
6216
6217 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
6218 echo "configure:6219: checking for gethostbyname in -lbind" >&5
6219 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
6220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223 ac_save_LIBS="$LIBS"
6224 LIBS="-lbind $LIBS"
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6231 char gethostbyname();
6232
6233 int main() {
6234 gethostbyname()
6235 ; return 0; }
6236 EOF
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 rm -rf conftest*
6239 eval "ac_cv_lib_$ac_lib_var=yes"
6240 else
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 rm -rf conftest*
6244 eval "ac_cv_lib_$ac_lib_var=no"
6245 fi
6246 rm -f conftest*
6247 LIBS="$ac_save_LIBS"
6248
6249 fi
6250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6251 echo "$ac_t""yes" 1>&6
6252 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6254 cat >> confdefs.h <<EOF
6255 #define $ac_tr_lib 1
6256 EOF
6257
6258 LIBS="-lbind $LIBS"
6259
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
6265 case "$host" in
6266 i386-*-freebsd*)
6267 echo "skipping libresolv checks for $host"
6268 ;;
6269 *)
6270 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6271 echo "configure:6272: checking for inet_aton in -lresolv" >&5
6272 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6275 else
6276 ac_save_LIBS="$LIBS"
6277 LIBS="-lresolv $LIBS"
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6284 char inet_aton();
6285
6286 int main() {
6287 inet_aton()
6288 ; return 0; }
6289 EOF
6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 rm -rf conftest*
6292 eval "ac_cv_lib_$ac_lib_var=yes"
6293 else
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6296 rm -rf conftest*
6297 eval "ac_cv_lib_$ac_lib_var=no"
6298 fi
6299 rm -f conftest*
6300 LIBS="$ac_save_LIBS"
6301
6302 fi
6303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
6306 echo "configure:6307: checking for inet_aton in -l44bsd" >&5
6307 ac_lib_var=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
6308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6310 else
6311 ac_save_LIBS="$LIBS"
6312 LIBS="-l44bsd $LIBS"
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char inet_aton();
6320
6321 int main() {
6322 inet_aton()
6323 ; return 0; }
6324 EOF
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 rm -rf conftest*
6327 eval "ac_cv_lib_$ac_lib_var=yes"
6328 else
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 rm -rf conftest*
6332 eval "ac_cv_lib_$ac_lib_var=no"
6333 fi
6334 rm -f conftest*
6335 LIBS="$ac_save_LIBS"
6336
6337 fi
6338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_lib=HAVE_LIB`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
6341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6342 cat >> confdefs.h <<EOF
6343 #define $ac_tr_lib 1
6344 EOF
6345
6346 LIBS="-l44bsd $LIBS"
6347
6348 else
6349 echo "$ac_t""no" 1>&6
6350 fi
6351
6352 else
6353 echo "$ac_t""no" 1>&6
6354 fi
6355
6356 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
6357 echo "configure:6358: checking for main in -lresolv" >&5
6358 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
6359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6361 else
6362 ac_save_LIBS="$LIBS"
6363 LIBS="-lresolv $LIBS"
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367
6368 int main() {
6369 main()
6370 ; return 0; }
6371 EOF
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6373 rm -rf conftest*
6374 eval "ac_cv_lib_$ac_lib_var=yes"
6375 else
6376 echo "configure: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 rm -rf conftest*
6379 eval "ac_cv_lib_$ac_lib_var=no"
6380 fi
6381 rm -f conftest*
6382 LIBS="$ac_save_LIBS"
6383
6384 fi
6385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6387 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_lib 1
6391 EOF
6392
6393 LIBS="-lresolv $LIBS"
6394
6395 else
6396 echo "$ac_t""no" 1>&6
6397 fi
6398
6399 ;;
6400 esac
6401 fi
6402 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6403 echo "configure:6404: checking for main in -lm" >&5
6404 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6407 else
6408 ac_save_LIBS="$LIBS"
6409 LIBS="-lm $LIBS"
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413
6414 int main() {
6415 main()
6416 ; return 0; }
6417 EOF
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6419 rm -rf conftest*
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6421 else
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 rm -rf conftest*
6425 eval "ac_cv_lib_$ac_lib_var=no"
6426 fi
6427 rm -f conftest*
6428 LIBS="$ac_save_LIBS"
6429
6430 fi
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6435 cat >> confdefs.h <<EOF
6436 #define $ac_tr_lib 1
6437 EOF
6438
6439 LIBS="-lm $LIBS"
6440
6441 else
6442 echo "$ac_t""no" 1>&6
6443 fi
6444
6445
6446 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6447 echo "configure:6448: checking for crypt in -lcrypt" >&5
6448 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6451 else
6452 ac_save_LIBS="$LIBS"
6453 LIBS="-lcrypt $LIBS"
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6457 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6460 char crypt();
6461
6462 int main() {
6463 crypt()
6464 ; return 0; }
6465 EOF
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6467 rm -rf conftest*
6468 eval "ac_cv_lib_$ac_lib_var=yes"
6469 else
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 rm -rf conftest*
6473 eval "ac_cv_lib_$ac_lib_var=no"
6474 fi
6475 rm -f conftest*
6476 LIBS="$ac_save_LIBS"
6477
6478 fi
6479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6480 echo "$ac_t""yes" 1>&6
6481 CRYPTLIB="-lcrypt"
6482 else
6483 echo "$ac_t""no" 1>&6
6484 fi
6485
6486
6487
6488 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6489 echo "configure:6490: checking for dlopen in -ldl" >&5
6490 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6493 else
6494 ac_save_LIBS="$LIBS"
6495 LIBS="-ldl $LIBS"
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char dlopen();
6503
6504 int main() {
6505 dlopen()
6506 ; return 0; }
6507 EOF
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest*
6510 eval "ac_cv_lib_$ac_lib_var=yes"
6511 else
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 rm -rf conftest*
6515 eval "ac_cv_lib_$ac_lib_var=no"
6516 fi
6517 rm -f conftest*
6518 LIBS="$ac_save_LIBS"
6519
6520 fi
6521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6522 echo "$ac_t""yes" 1>&6
6523 DLLIB="-ldl"
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
6529
6530 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
6531 echo "configure:6532: checking for main in -lpthread" >&5
6532 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
6533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6535 else
6536 ac_save_LIBS="$LIBS"
6537 LIBS="-lpthread $LIBS"
6538 cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541
6542 int main() {
6543 main()
6544 ; return 0; }
6545 EOF
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 rm -rf conftest*
6548 eval "ac_cv_lib_$ac_lib_var=yes"
6549 else
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 rm -rf conftest*
6553 eval "ac_cv_lib_$ac_lib_var=no"
6554 fi
6555 rm -f conftest*
6556 LIBS="$ac_save_LIBS"
6557
6558 fi
6559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 PTHREADLIB="-lpthread"
6562 else
6563 echo "$ac_t""no" 1>&6
6564 fi
6565
6566
6567
6568 echo $ac_n "checking for aio_read in -lrt""... $ac_c" 1>&6
6569 echo "configure:6570: checking for aio_read in -lrt" >&5
6570 ac_lib_var=`echo rt'_'aio_read | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6573 else
6574 ac_save_LIBS="$LIBS"
6575 LIBS="-lrt $LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char aio_read();
6583
6584 int main() {
6585 aio_read()
6586 ; return 0; }
6587 EOF
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6589 rm -rf conftest*
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6591 else
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 rm -rf conftest*
6595 eval "ac_cv_lib_$ac_lib_var=no"
6596 fi
6597 rm -f conftest*
6598 LIBS="$ac_save_LIBS"
6599
6600 fi
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 AIOLIB="-lrt"
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609
6610 case "$host" in
6611 *-pc-sco3.2*)
6612 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6613 echo "configure:6614: checking for strftime in -lintl" >&5
6614 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617 else
6618 ac_save_LIBS="$LIBS"
6619 LIBS="-lintl $LIBS"
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626 char strftime();
6627
6628 int main() {
6629 strftime()
6630 ; return 0; }
6631 EOF
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 rm -rf conftest*
6634 eval "ac_cv_lib_$ac_lib_var=yes"
6635 else
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 rm -rf conftest*
6639 eval "ac_cv_lib_$ac_lib_var=no"
6640 fi
6641 rm -f conftest*
6642 LIBS="$ac_save_LIBS"
6643
6644 fi
6645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6649 cat >> confdefs.h <<EOF
6650 #define $ac_tr_lib 1
6651 EOF
6652
6653 LIBS="-lintl $LIBS"
6654
6655 else
6656 echo "$ac_t""no" 1>&6
6657 fi
6658
6659 ;;
6660 esac
6661
6662 case "$host" in
6663 i386-*-solaris2.*)
6664 if test "$GCC" = "yes"; then
6665 echo "Removing -O for gcc on $host"
6666 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
6667 fi
6668 ;;
6669 *-sgi-irix*)
6670 echo "Removing -lsocket for IRIX..."
6671 LIBS=`echo $LIBS | sed -e s/-lsocket//`
6672 echo "Removing -lnsl for IRIX..."
6673 LIBS=`echo $LIBS | sed -e s/-lnsl//`
6674 ac_cv_lib_nsl_main=no
6675 echo "Removing -lbsd for IRIX..."
6676 LIBS=`echo $LIBS | sed -e s/-lbsd//`
6677 ;;
6678 *-ibm-aix*)
6679 echo "Removing -lbsd for AIX..."
6680 LIBS=`echo $LIBS | sed -e s/-lbsd//`
6681 echo "disabling snprintf/vsnprintf for $host"
6682 ac_cv_func_snprintf=no
6683 ac_cv_func_vsnprintf=no
6684 ;;
6685 *m88k*)
6686 CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
6687 cat >> confdefs.h <<\EOF
6688 #define GETTIMEOFDAY_NO_TZP 1
6689 EOF
6690
6691 ;;
6692 *-*-solaris2.[0-4])
6693 cat >> confdefs.h <<\EOF
6694 #define GETTIMEOFDAY_NO_TZP 1
6695 EOF
6696
6697 ;;
6698 *-sony-newsos[56]*)
6699 cat >> confdefs.h <<\EOF
6700 #define GETTIMEOFDAY_NO_TZP 1
6701 EOF
6702
6703 ;;
6704 esac
6705
6706 # Remove optimization for GCC 2.95.[123]
6707 # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
6708 if test "$GCC" = "yes"; then
6709 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
6710 case "$GCCVER" in
6711 2.95.[123])
6712 echo "Removing -O for gcc on $host with GCC $GCCVER"
6713 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
6714 ;;
6715 esac
6716 fi
6717
6718 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
6719 case "$host" in
6720 *-univel-sysv4.2MP)
6721 if test `uname -v` = "2.03"; then
6722 echo "disabling mallinfo for $host"
6723 ac_cv_func_mallinfo=no
6724 fi
6725 ;;
6726 esac
6727
6728 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
6729 # when running configure.
6730 if test -z "$ac_cv_func_poll"; then
6731 case "$host" in
6732 alpha-dec-osf3.*)
6733 # John Kay (jkay@nlanr.net) 19970818
6734 echo "disabling poll for $host..."
6735 ac_cv_func_poll='no'
6736 ;;
6737 *-hp-hpux*.*)
6738 # Duane Wessels
6739 echo "disabling poll for $host..."
6740 ac_cv_func_poll='no'
6741 ;;
6742 *-linux-*)
6743 # Henrik Nordstrom (hno@squid-cache.org) 19980817
6744 # poll is problematic on Linux. We disable it
6745 # by default until Linux gets it right.
6746 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
6747 if test $rev -lt 002002; then
6748 echo "disabling poll for $host < 2.2..."
6749 ac_cv_func_poll='no'
6750 fi
6751 ;;
6752 powerpc-ibm-aix4.1.*)
6753 # Mike Laster (mlaster@metavillage.com) 19981021
6754 echo "disabling poll for $host..."
6755 ac_cv_func_poll='no'
6756 ;;
6757 *-pc-sco3.2*)
6758 # Robert Side <rside@aiinc.bc.ca>
6759 # Mon, 18 Jan 1999 17:48:00 GMT
6760 echo "disabling poll for $host..."
6761 ac_cv_func_poll='no'
6762 ;;
6763 esac
6764 fi
6765
6766 for ac_func in \
6767 bcopy \
6768 backtrace_symbols_fd \
6769 crypt \
6770 fchmod \
6771 getdtablesize \
6772 getpagesize \
6773 getrusage \
6774 getspnam \
6775 lrand48 \
6776 mallinfo \
6777 mallocblksize \
6778 mallopt \
6779 memcpy \
6780 memmove \
6781 memset \
6782 mkstemp \
6783 mktime \
6784 mstats \
6785 poll \
6786 pthread_attr_setscope \
6787 pthread_setschedparam \
6788 pthread_attr_setschedparam \
6789 pthread_sigmask \
6790 putenv \
6791 random \
6792 regcomp \
6793 regexec \
6794 regfree \
6795 res_init \
6796 rint \
6797 seteuid \
6798 setgroups \
6799 setpgrp \
6800 setrlimit \
6801 getrlimit \
6802 setsid \
6803 sigaction \
6804 snprintf \
6805 srand48 \
6806 srandom \
6807 statfs \
6808 sysconf \
6809 syslog \
6810 timegm \
6811 vsnprintf \
6812 bswap_16 \
6813 bswap_32 \
6814
6815 do
6816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6817 echo "configure:6818: checking for $ac_func" >&5
6818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6820 else
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char $ac_func(); below. */
6826 #include <assert.h>
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char $ac_func();
6831
6832 int main() {
6833
6834 /* The GNU C library defines this for functions which it implements
6835 to always fail with ENOSYS. Some functions are actually named
6836 something starting with __ and the normal name is an alias. */
6837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6838 choke me
6839 #else
6840 $ac_func();
6841 #endif
6842
6843 ; return 0; }
6844 EOF
6845 if { (eval echo configure:6846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 rm -rf conftest*
6847 eval "ac_cv_func_$ac_func=yes"
6848 else
6849 echo "configure: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6851 rm -rf conftest*
6852 eval "ac_cv_func_$ac_func=no"
6853 fi
6854 rm -f conftest*
6855 fi
6856
6857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6860 cat >> confdefs.h <<EOF
6861 #define $ac_tr_func 1
6862 EOF
6863
6864 else
6865 echo "$ac_t""no" 1>&6
6866 fi
6867 done
6868
6869
6870
6871
6872 if test "$ac_cv_func_poll" = "yes" ; then
6873 SELECT_TYPE="poll"
6874 cat >> confdefs.h <<\EOF
6875 #define USE_POLL 1
6876 EOF
6877
6878 elif test "$ac_cv_func_select" = "yes" ; then
6879 SELECT_TYPE="select"
6880 cat >> confdefs.h <<\EOF
6881 #define USE_SELECT 1
6882 EOF
6883
6884 else
6885 echo "Eep! Can't find poll or select!"
6886 echo "I'll try select and hope for the best."
6887 SELECT_TYPE="select"
6888 cat >> confdefs.h <<\EOF
6889 #define USE_SELECT 1
6890 EOF
6891
6892 fi
6893 echo "Using ${SELECT_TYPE} for select loop."
6894 cat >> confdefs.h <<EOF
6895 #define SELECT_TYPE "$SELECT_TYPE"
6896 EOF
6897
6898
6899
6900 echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
6901 echo "configure:6902: checking if setresuid is implemented" >&5
6902 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6904 else
6905 if test "$cross_compiling" = yes; then
6906 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6907 else
6908 cat > conftest.$ac_ext <<EOF
6909 #line 6910 "configure"
6910 #include "confdefs.h"
6911
6912 #include <stdlib.h>
6913 int main() {
6914 if(setresuid(-1,-1,-1)) {
6915 perror("setresuid:");
6916 exit(1);
6917 }
6918 exit(0);
6919 }
6920
6921 EOF
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6923 then
6924 ac_cv_func_setresuid="yes"
6925 else
6926 echo "configure: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 rm -fr conftest*
6929 ac_cv_func_setresuid="no"
6930 fi
6931 rm -fr conftest*
6932 fi
6933
6934
6935 fi
6936
6937 echo "$ac_t""$ac_cv_func_setresuid" 1>&6
6938 if test "$ac_cv_func_setresuid" = "yes" ; then
6939 cat >> confdefs.h <<\EOF
6940 #define HAVE_SETRESUID 1
6941 EOF
6942
6943 fi
6944
6945
6946
6947 if false; then
6948 NEED_OWN_SNPRINTF_TRUE=
6949 NEED_OWN_SNPRINTF_FALSE='#'
6950 else
6951 NEED_OWN_SNPRINTF_TRUE='#'
6952 NEED_OWN_SNPRINTF_FALSE=
6953 fi
6954 if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then
6955
6956
6957 if true; then
6958 NEED_OWN_SNPRINTF_TRUE=
6959 NEED_OWN_SNPRINTF_FALSE='#'
6960 else
6961 NEED_OWN_SNPRINTF_TRUE='#'
6962 NEED_OWN_SNPRINTF_FALSE=
6963 fi
6964 fi
6965
6966 if test "$IPF_TRANSPARENT" ; then
6967 echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
6968 echo "configure:6969: checking if IP-Filter header files are installed" >&5
6969 # hold on to your hats...
6970 if test "$ac_cv_header_ip_compat_h" = "yes" ||
6971 test "$ac_cv_header_ip_fil_compat_h" = "yes" ||
6972 test "$ac_cv_header_netinet_ip_compat_h" = "yes" ||
6973 test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then
6974 have_ipfilter_compat_header="yes"
6975 fi
6976 if test "x$have_ipfilter_compat_header" = "xyes" &&
6977 test "$ac_cv_header_ip_fil_h" = "yes" &&
6978 test "$ac_cv_header_ip_nat_h" = "yes" ; then
6979 IPF_TRANSPARENT="yes"
6980 cat >> confdefs.h <<\EOF
6981 #define IPF_TRANSPARENT 1
6982 EOF
6983
6984 elif test "$have_ipfilter_compat_header" = "yes" &&
6985 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
6986 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
6987 IPF_TRANSPARENT="yes"
6988 cat >> confdefs.h <<\EOF
6989 #define IPF_TRANSPARENT 1
6990 EOF
6991
6992 else
6993 IPF_TRANSPARENT="no"
6994 cat >> confdefs.h <<\EOF
6995 #define IPF_TRANSPARENT 0
6996 EOF
6997
6998 fi
6999 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
7000 fi
7001 if test "$IPF_TRANSPARENT" = "no" ; then
7002 echo "WARNING: Cannot find necessary IP-Filter header files"
7003 echo " Transparent Proxy support WILL NOT be enabled"
7004 sleep 10
7005 fi
7006
7007 if test "$LINUX_NETFILTER" ; then
7008 echo $ac_n "checking if Linux 2.4 kernel header files are installed""... $ac_c" 1>&6
7009 echo "configure:7010: checking if Linux 2.4 kernel header files are installed" >&5
7010 # hold on to your hats...
7011 if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then
7012 LINUX_NETFILTER="yes"
7013 cat >> confdefs.h <<\EOF
7014 #define LINUX_NETFILTER 1
7015 EOF
7016
7017 else
7018 LINUX_NETFILTER="no"
7019 cat >> confdefs.h <<\EOF
7020 #define LINUX_NETFILTER 0
7021 EOF
7022
7023 fi
7024 echo "$ac_t""$LINUX_NETFILTER" 1>&6
7025 fi
7026 if test "$LINUX_NETFILTER" = "no" ; then
7027 echo "WARNING: Cannot find necessary Linux 2.4 kernel header files"
7028 echo " Linux 2.4 Transparent Proxy support WILL NOT be enabled"
7029 sleep 10
7030 fi
7031
7032 if test -z "$USE_GNUREGEX" ; then
7033 case "$host" in
7034 *-sun-solaris2.[0-4])
7035 USE_GNUREGEX="yes"
7036 ;;
7037 *-next-nextstep*)
7038 USE_GNUREGEX="yes"
7039 ;;
7040 esac
7041 fi
7042 echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
7043 echo "configure:7044: checking if GNUregex needs to be compiled" >&5
7044 if test -z "$USE_GNUREGEX"; then
7045 if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
7046 USE_GNUREGEX="yes"
7047 else
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7051 #include <sys/types.h>
7052 #include <regex.h>
7053 int main() {
7054 regex_t t; regcomp(&t,"",0);
7055 ; return 0; }
7056 EOF
7057 if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058 rm -rf conftest*
7059 USE_GNUREGEX="no"
7060 else
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7063 rm -rf conftest*
7064 USE_GNUREGEX="yes"
7065 fi
7066 rm -f conftest*
7067 fi
7068 fi
7069 echo "$ac_t""$USE_GNUREGEX" 1>&6
7070 if test "$USE_GNUREGEX" = "yes"; then
7071 REGEXLIB="-lregex"
7072 LIBREGEX="libregex.a"
7073 cat >> confdefs.h <<\EOF
7074 #define USE_GNUREGEX 1
7075 EOF
7076
7077 fi
7078
7079
7080
7081 for ac_func in \
7082 drand48 \
7083 tempnam \
7084 strerror \
7085
7086 do
7087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_func" >&5
7089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7091 else
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char $ac_func(); below. */
7097 #include <assert.h>
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char $ac_func();
7102
7103 int main() {
7104
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7109 choke me
7110 #else
7111 $ac_func();
7112 #endif
7113
7114 ; return 0; }
7115 EOF
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117 rm -rf conftest*
7118 eval "ac_cv_func_$ac_func=yes"
7119 else
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7122 rm -rf conftest*
7123 eval "ac_cv_func_$ac_func=no"
7124 fi
7125 rm -f conftest*
7126 fi
7127
7128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7131 cat >> confdefs.h <<EOF
7132 #define $ac_tr_func 1
7133 EOF
7134
7135 else
7136 echo "$ac_t""no" 1>&6
7137 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
7138 fi
7139 done
7140
7141
7142
7143 echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
7144 echo "configure:7145: checking Default FD_SETSIZE value" >&5
7145 if test "$cross_compiling" = yes; then
7146 DEFAULT_FD_SETSIZE=256
7147 else
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151
7152 #if HAVE_STDIO_H
7153 #include <stdio.h>
7154 #endif
7155 #if HAVE_UNISTD_H
7156 #include <unistd.h>
7157 #endif
7158 #if HAVE_SYS_TIME_H
7159 #include <sys/time.h>
7160 #endif
7161 #if HAVE_SYS_SELECT_H
7162 #include <sys/select.h>
7163 #endif
7164 #if HAVE_SYS_TYPES_H
7165 #include <sys/types.h>
7166 #endif
7167 main() {
7168 FILE *fp = fopen("conftestval", "w");
7169 fprintf (fp, "%d\n", FD_SETSIZE);
7170 exit(0);
7171 }
7172
7173 EOF
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7175 then
7176 DEFAULT_FD_SETSIZE=`cat conftestval`
7177 else
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 rm -fr conftest*
7181 DEFAULT_FD_SETSIZE=256
7182 fi
7183 rm -fr conftest*
7184 fi
7185
7186 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
7187 cat >> confdefs.h <<EOF
7188 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
7189 EOF
7190
7191
7192 echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
7193 echo "configure:7194: checking Maximum number of filedescriptors we can open" >&5
7194 TLDFLAGS="$LDFLAGS"
7195 case $host in
7196 i386-unknown-freebsd*)
7197 if echo "$LDFLAGS" | grep -q pthread; then
7198 LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"`
7199 fi
7200 esac
7201 if test "$cross_compiling" = yes; then
7202 SQUID_MAXFD=256
7203 else
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207
7208 #include <stdio.h>
7209 #include <unistd.h>
7210 #include <sys/time.h> /* needed on FreeBSD */
7211 #include <sys/param.h>
7212 #include <sys/resource.h>
7213 main() {
7214 FILE *fp;
7215 int i,j;
7216 #if defined(__CYGWIN32__) || defined (__CYGWIN__)
7217 /* getrlimit and sysconf returns bogous values on cygwin32.
7218 * Number of fds is virtually unlimited in cygwin (sys/param.h)
7219 * __CYGWIN32__ is deprecated.
7220 */
7221 i = NOFILE;
7222 #else
7223 #if HAVE_SETRLIMIT
7224 struct rlimit rl;
7225 #if defined(RLIMIT_NOFILE)
7226 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
7227 perror("getrlimit: RLIMIT_NOFILE");
7228 } else {
7229 rl.rlim_cur = rl.rlim_max; /* set it to the max */
7230 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
7231 perror("setrlimit: RLIMIT_NOFILE");
7232 }
7233 }
7234 #elif defined(RLIMIT_OFILE)
7235 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
7236 perror("getrlimit: RLIMIT_OFILE");
7237 } else {
7238 rl.rlim_cur = rl.rlim_max; /* set it to the max */
7239 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
7240 perror("setrlimit: RLIMIT_OFILE");
7241 }
7242 }
7243 #endif /* RLIMIT_NOFILE */
7244 #endif /* HAVE_SETRLIMIT */
7245 /* by starting at 2^14, we will never get higher
7246 than 2^15 for SQUID_MAXFD */
7247 i = j = 1<<14;
7248 while (j) {
7249 j >>= 1;
7250 if (dup2(0, i) < 0) {
7251 i -= j;
7252 } else {
7253 close(i);
7254 i += j;
7255 }
7256 }
7257 i++;
7258 #endif /* IF !DEF CYGWIN */
7259 fp = fopen("conftestval", "w");
7260 fprintf (fp, "%d\n", i);
7261 exit(0);
7262 }
7263
7264 EOF
7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7266 then
7267 SQUID_MAXFD=`cat conftestval`
7268 else
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 rm -fr conftest*
7272 SQUID_MAXFD=256
7273 fi
7274 rm -fr conftest*
7275 fi
7276
7277 echo "$ac_t""$SQUID_MAXFD" 1>&6
7278 cat >> confdefs.h <<EOF
7279 #define SQUID_MAXFD $SQUID_MAXFD
7280 EOF
7281
7282 if test "$SQUID_MAXFD" -lt 512 ; then
7283 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
7284 echo " cache will be very busy. Please see the FAQ page"
7285 echo " http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors"
7286 echo " on how to increase your filedescriptor limit"
7287 sleep 10
7288 fi
7289 LDFLAGS="$TLDFLAGS"
7290
7291 echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
7292 echo "configure:7293: checking Default UDP send buffer size" >&5
7293 if test "$cross_compiling" = yes; then
7294 SQUID_UDP_SO_SNDBUF=16384
7295 else
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299
7300 #include <stdlib.h>
7301 #include <stdio.h>
7302 #include <sys/types.h>
7303 #include <sys/socket.h>
7304 #include <netinet/in.h>
7305 main ()
7306 {
7307 FILE *fp;
7308 int fd,val=0,len=sizeof(int);
7309 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
7310 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
7311 if (val<=0) exit(1);
7312 fp = fopen("conftestval", "w");
7313 fprintf (fp, "%d\n", val);
7314 exit(0);
7315 }
7316
7317 EOF
7318 if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7319 then
7320 SQUID_UDP_SO_SNDBUF=`cat conftestval`
7321 else
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7324 rm -fr conftest*
7325 SQUID_UDP_SO_SNDBUF=16384
7326 fi
7327 rm -fr conftest*
7328 fi
7329
7330 echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
7331 cat >> confdefs.h <<EOF
7332 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
7333 EOF
7334
7335
7336 echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
7337 echo "configure:7338: checking Default UDP receive buffer size" >&5
7338 if test "$cross_compiling" = yes; then
7339 SQUID_UDP_SO_RCVBUF=16384
7340 else
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344
7345 #include <stdlib.h>
7346 #include <stdio.h>
7347 #include <sys/types.h>
7348 #include <sys/socket.h>
7349 #include <netinet/in.h>
7350 main ()
7351 {
7352 FILE *fp;
7353 int fd,val=0,len=sizeof(int);
7354 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
7355 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
7356 if (val <= 0) exit(1);
7357 fp = fopen("conftestval", "w");
7358 fprintf (fp, "%d\n", val);
7359 exit(0);
7360 }
7361
7362 EOF
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7364 then
7365 SQUID_UDP_SO_RCVBUF=`cat conftestval`
7366 else
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 rm -fr conftest*
7370 SQUID_UDP_SO_RCVBUF=16384
7371 fi
7372 rm -fr conftest*
7373 fi
7374
7375 echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
7376 cat >> confdefs.h <<EOF
7377 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
7378 EOF
7379
7380
7381 echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
7382 echo "configure:7383: checking Default TCP send buffer size" >&5
7383 if test "$cross_compiling" = yes; then
7384 SQUID_TCP_SO_SNDBUF=16384
7385 else
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389
7390 #include <stdlib.h>
7391 #include <stdio.h>
7392 #include <sys/types.h>
7393 #include <sys/socket.h>
7394 #include <netinet/in.h>
7395 main ()
7396 {
7397 FILE *fp;
7398 int fd,val=0,len=sizeof(int);
7399 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
7400 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
7401 if (val <= 0) exit(1);
7402 fp = fopen("conftestval", "w");
7403 fprintf (fp, "%d\n", val);
7404 exit(0);
7405 }
7406
7407 EOF
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7409 then
7410 SQUID_TCP_SO_SNDBUF=`cat conftestval`
7411 else
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7414 rm -fr conftest*
7415 SQUID_TCP_SO_SNDBUF=16384
7416 fi
7417 rm -fr conftest*
7418 fi
7419
7420 echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
7421 cat >> confdefs.h <<EOF
7422 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
7423 EOF
7424
7425
7426 echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
7427 echo "configure:7428: checking Default TCP receive buffer size" >&5
7428 if test "$cross_compiling" = yes; then
7429 SQUID_TCP_SO_RCVBUF=16384
7430 else
7431 cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7434
7435 #include <stdlib.h>
7436 #include <stdio.h>
7437 #include <sys/types.h>
7438 #include <sys/socket.h>
7439 #include <netinet/in.h>
7440 main ()
7441 {
7442 FILE *fp;
7443 int fd,val=0,len=sizeof(int);
7444 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
7445 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
7446 if (val <= 0) exit(1);
7447 fp = fopen("conftestval", "w");
7448 fprintf (fp, "%d\n", val);
7449 exit(0);
7450 }
7451
7452 EOF
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7454 then
7455 SQUID_TCP_SO_RCVBUF=`cat conftestval`
7456 else
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 rm -fr conftest*
7460 SQUID_TCP_SO_RCVBUF=16384
7461 fi
7462 rm -fr conftest*
7463 fi
7464
7465 echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
7466 cat >> confdefs.h <<EOF
7467 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
7468 EOF
7469
7470
7471 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
7472 echo "configure:7473: checking if sys_errlist is already defined" >&5
7473 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7475 else
7476 cat > conftest.$ac_ext <<EOF
7477 #line 7478 "configure"
7478 #include "confdefs.h"
7479 #include <stdio.h>
7480 int main() {
7481 char *s = sys_errlist;
7482 ; return 0; }
7483 EOF
7484 if { (eval echo configure:7485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7485 rm -rf conftest*
7486 ac_cv_needs_sys_errlist="no"
7487 else
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 rm -rf conftest*
7491 ac_cv_needs_sys_errlist="yes"
7492 fi
7493 rm -f conftest*
7494
7495 fi
7496
7497 echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
7498 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
7499 cat >> confdefs.h <<\EOF
7500 #define NEED_SYS_ERRLIST 1
7501 EOF
7502
7503 fi
7504
7505 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
7506 echo "configure:7507: checking for libresolv _dns_ttl_ hack" >&5
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 extern int _dns_ttl_;
7511 int main() {
7512 return _dns_ttl_;
7513 ; return 0; }
7514 EOF
7515 if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7516 rm -rf conftest*
7517 echo "$ac_t""yes" 1>&6
7518 cat >> confdefs.h <<\EOF
7519 #define LIBRESOLV_DNS_TTL_HACK 1
7520 EOF
7521
7522 else
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 rm -rf conftest*
7526 echo "$ac_t""no" 1>&6
7527 fi
7528 rm -f conftest*
7529
7530 echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
7531 echo "configure:7532: checking if inet_ntoa() actually works" >&5
7532 if test "$cross_compiling" = yes; then
7533 INET_NTOA_RESULT="broken"
7534 else
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538
7539 #include <stdlib.h>
7540 #include <stdio.h>
7541 #include <sys/types.h>
7542 #include <netinet/in.h>
7543 #include <arpa/inet.h>
7544 main ()
7545 {
7546 FILE *fp;
7547 struct in_addr in;
7548 in.s_addr = inet_addr("1.2.3.4");
7549 fp = fopen("conftestval", "w");
7550 fprintf (fp, "%s\n", inet_ntoa(in));
7551 exit(0);
7552 }
7553
7554 EOF
7555 if { (eval echo configure:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7556 then
7557 INET_NTOA_RESULT=`cat conftestval`
7558 else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -fr conftest*
7562 INET_NTOA_RESULT="broken"
7563 fi
7564 rm -fr conftest*
7565 fi
7566
7567 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
7568 echo "$ac_t"""yes"" 1>&6
7569 else
7570 echo "$ac_t"""no"" 1>&6
7571 echo "Will use our own inet_ntoa()."
7572 LIBOBJS="$LIBOBJS inet_ntoa.o"
7573 # echo "WARNING: This looks bad, and probably prevents Squid from working."
7574 # echo " If you're on IRIX and using GCC 2.8, you probably need"
7575 # echo " to use the IRIX C compiler instead."
7576 # sleep 10
7577 fi
7578
7579 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
7580 echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
7581 echo "configure:7582: checking for working statvfs() interface" >&5
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585
7586 #include <stdlib.h>
7587 #include <stdio.h>
7588 #include <sys/types.h>
7589 #include <sys/statvfs.h>
7590
7591 int main() {
7592
7593 struct statvfs sfs;
7594 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
7595 sfs.f_files = sfs.f_ffree = 0;
7596 statvfs("/tmp", &sfs);
7597
7598 ; return 0; }
7599 EOF
7600 if { (eval echo configure:7601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7601 rm -rf conftest*
7602 ac_cv_func_statvfs=yes
7603 else
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 rm -rf conftest*
7607 ac_cv_func_statvfs=no
7608 fi
7609 rm -f conftest*
7610 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
7611 if test "$ac_cv_func_statvfs" = "yes" ; then
7612 cat >> confdefs.h <<\EOF
7613 #define HAVE_STATVFS 1
7614 EOF
7615
7616 fi
7617 fi
7618
7619 echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
7620 echo "configure:7621: checking for _res.nsaddr_list" >&5
7621 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then
7622 echo $ac_n "(cached) $ac_c" 1>&6
7623 else
7624 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7627
7628 #if HAVE_SYS_TYPES_H
7629 #include <sys/types.h>
7630 #endif
7631 #if HAVE_NETINET_IN_H
7632 #include <netinet/in.h>
7633 #endif
7634 #if HAVE_ARPA_INET_H
7635 #include <arpa/inet.h>
7636 #endif
7637 #if HAVE_ARPA_NAMESER_H
7638 #include <arpa/nameser.h>
7639 #endif
7640 #if HAVE_RESOLV_H
7641 #include <resolv.h>
7642 #endif
7643
7644 int main() {
7645 _res.nsaddr_list[0];
7646 ; return 0; }
7647 EOF
7648 if { (eval echo configure:7649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7649 rm -rf conftest*
7650 ac_cv_have_res_nsaddr_list="yes"
7651 else
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7654 rm -rf conftest*
7655 ac_cv_have_res_nsaddr_list="no"
7656 fi
7657 rm -f conftest*
7658 fi
7659
7660 echo "$ac_t""$ac_cv_have_res_nsaddr_list" 1>&6
7661 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
7662 cat >> confdefs.h <<\EOF
7663 #define HAVE_RES_NSADDR_LIST 1
7664 EOF
7665
7666 fi
7667
7668 if test $ac_cv_have_res_nsaddr_list = "no" ; then
7669 echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
7670 echo "configure:7671: checking for _res.ns_list" >&5
7671 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7673 else
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677
7678 #if HAVE_SYS_TYPES_H
7679 #include <sys/types.h>
7680 #endif
7681 #if HAVE_NETINET_IN_H
7682 #include <netinet/in.h>
7683 #endif
7684 #if HAVE_ARPA_INET_H
7685 #include <arpa/inet.h>
7686 #endif
7687 #if HAVE_ARPA_NAMESER_H
7688 #include <arpa/nameser.h>
7689 #endif
7690 #if HAVE_RESOLV_H
7691 #include <resolv.h>
7692 #endif
7693
7694 int main() {
7695 _res.ns_list[0].addr;
7696 ; return 0; }
7697 EOF
7698 if { (eval echo configure:7699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7699 rm -rf conftest*
7700 ac_cv_have_res_ns_list="yes"
7701 else
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 rm -rf conftest*
7705 ac_cv_have_res_ns_list="no"
7706 fi
7707 rm -f conftest*
7708 fi
7709
7710 echo "$ac_t""$ac_cv_have_res_ns_list" 1>&6
7711 if test $ac_cv_have_res_ns_list = "yes" ; then
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_RES_NS_LIST 1
7714 EOF
7715
7716 fi
7717 fi
7718
7719 XTRA_OBJS=''
7720 if test "$ac_cv_lib_malloc_main" = "yes" ; then
7721 if test -r /usr/lib/debug/malloc.o ; then
7722 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
7723 fi
7724 if test -r /usr/lib/debug/mallocmap.o ; then
7725 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
7726 fi
7727 fi
7728
7729
7730
7731 if test -z "$XTRA_LIBS"; then
7732 XTRA_LIBS="$LIBS"
7733 XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
7734 LIBS=''
7735 fi
7736
7737
7738 rm -f core
7739
7740
7741
7742
7743 trap '' 1 2 15
7744 cat > confcache <<\EOF
7745 # This file is a shell script that caches the results of configure
7746 # tests run on this system so they can be shared between configure
7747 # scripts and configure runs. It is not useful on other systems.
7748 # If it contains results you don't want to keep, you may remove or edit it.
7749 #
7750 # By default, configure uses ./config.cache as the cache file,
7751 # creating it if it does not exist already. You can give configure
7752 # the --cache-file=FILE option to use a different cache file; that is
7753 # what configure does when it calls configure scripts in
7754 # subdirectories, so they share the cache.
7755 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7756 # config.status only pays attention to the cache file if you give it the
7757 # --recheck option to rerun configure.
7758 #
7759 EOF
7760 # The following way of writing the cache mishandles newlines in values,
7761 # but we know of no workaround that is simple, portable, and efficient.
7762 # So, don't put newlines in cache variables' values.
7763 # Ultrix sh set writes to stderr and can't be redirected directly,
7764 # and sets the high bit in the cache file unless we assign to the vars.
7765 (set) 2>&1 |
7766 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7767 *ac_space=\ *)
7768 # `set' does not quote correctly, so add quotes (double-quote substitution
7769 # turns \\\\ into \\, and sed turns \\ into \).
7770 sed -n \
7771 -e "s/'/'\\\\''/g" \
7772 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7773 ;;
7774 *)
7775 # `set' quotes correctly as required by POSIX, so do not add quotes.
7776 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7777 ;;
7778 esac >> confcache
7779 if cmp -s $cache_file confcache; then
7780 :
7781 else
7782 if test -w $cache_file; then
7783 echo "updating cache $cache_file"
7784 cat confcache > $cache_file
7785 else
7786 echo "not updating unwritable cache $cache_file"
7787 fi
7788 fi
7789 rm -f confcache
7790
7791 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7792
7793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7794 # Let make expand exec_prefix.
7795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7796
7797 # Any assignment to VPATH causes Sun make to only execute
7798 # the first set of double-colon rules, so remove it if not needed.
7799 # If there is a colon in the path, we need to keep it.
7800 if test "x$srcdir" = x.; then
7801 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7802 fi
7803
7804 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7805
7806 DEFS=-DHAVE_CONFIG_H
7807
7808 # Without the "./", some shells look in PATH for config.status.
7809 : ${CONFIG_STATUS=./config.status}
7810
7811 echo creating $CONFIG_STATUS
7812 rm -f $CONFIG_STATUS
7813 cat > $CONFIG_STATUS <<EOF
7814 #! /bin/sh
7815 # Generated automatically by configure.
7816 # Run this file to recreate the current configuration.
7817 # This directory was configured as follows,
7818 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7819 #
7820 # $0 $ac_configure_args
7821 #
7822 # Compiler output produced by configure, useful for debugging
7823 # configure, is in ./config.log if it exists.
7824
7825 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7826 for ac_option
7827 do
7828 case "\$ac_option" in
7829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7830 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7831 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7832 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7833 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7834 exit 0 ;;
7835 -help | --help | --hel | --he | --h)
7836 echo "\$ac_cs_usage"; exit 0 ;;
7837 *) echo "\$ac_cs_usage"; exit 1 ;;
7838 esac
7839 done
7840
7841 ac_given_srcdir=$srcdir
7842 ac_given_INSTALL="$INSTALL"
7843
7844 trap 'rm -fr `echo "\
7845 Makefile \
7846 lib/Makefile \
7847 scripts/Makefile \
7848 scripts/RunCache \
7849 scripts/RunAccel \
7850 src/Makefile \
7851 src/fs/Makefile \
7852 src/repl/Makefile \
7853 src/auth/Makefile \
7854 src/auth/basic/Makefile \
7855 src/auth/basic/helpers/Makefile \
7856 src/auth/basic/helpers/LDAP/Makefile \
7857 src/auth/basic/helpers/MSNT/Makefile \
7858 src/auth/basic/helpers/NCSA/Makefile \
7859 src/auth/basic/helpers/PAM/Makefile \
7860 src/auth/basic/helpers/SMB/Makefile \
7861 src/auth/basic/helpers/YP/Makefile \
7862 src/auth/basic/helpers/getpwnam/Makefile \
7863 src/auth/basic/helpers/multi-domain-NTLM/Makefile \
7864 src/auth/digest/Makefile \
7865 src/auth/digest/helpers/Makefile \
7866 src/auth/digest/helpers/password/Makefile \
7867 src/auth/ntlm/Makefile \
7868 src/auth/ntlm/helpers/Makefile \
7869 src/auth/ntlm/helpers/fakeauth/Makefile \
7870 src/auth/ntlm/helpers/no_check/Makefile \
7871 src/auth/ntlm/helpers/NTLMSSP/Makefile \
7872 src/auth/ntlm/helpers/NTLMSSP/smbval/Makefile \
7873 contrib/Makefile \
7874 snmplib/Makefile \
7875 icons/Makefile \
7876 errors/Makefile \
7877 src/fs/aufs/Makefile \
7878 src/fs/coss/Makefile \
7879 src/fs/diskd/Makefile \
7880 src/fs/null/Makefile \
7881 src/fs/ufs/Makefile \
7882 src/repl/heap/Makefile \
7883 src/repl/lru/Makefile \
7884 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7885 EOF
7886 cat >> $CONFIG_STATUS <<EOF
7887
7888 # Protect against being on the right side of a sed subst in config.status.
7889 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7891 $ac_vpsub
7892 $extrasub
7893 s%@SHELL@%$SHELL%g
7894 s%@CFLAGS@%$CFLAGS%g
7895 s%@CPPFLAGS@%$CPPFLAGS%g
7896 s%@CXXFLAGS@%$CXXFLAGS%g
7897 s%@FFLAGS@%$FFLAGS%g
7898 s%@DEFS@%$DEFS%g
7899 s%@LDFLAGS@%$LDFLAGS%g
7900 s%@LIBS@%$LIBS%g
7901 s%@exec_prefix@%$exec_prefix%g
7902 s%@prefix@%$prefix%g
7903 s%@program_transform_name@%$program_transform_name%g
7904 s%@bindir@%$bindir%g
7905 s%@sbindir@%$sbindir%g
7906 s%@libexecdir@%$libexecdir%g
7907 s%@datadir@%$datadir%g
7908 s%@sysconfdir@%$sysconfdir%g
7909 s%@sharedstatedir@%$sharedstatedir%g
7910 s%@localstatedir@%$localstatedir%g
7911 s%@libdir@%$libdir%g
7912 s%@includedir@%$includedir%g
7913 s%@oldincludedir@%$oldincludedir%g
7914 s%@infodir@%$infodir%g
7915 s%@mandir@%$mandir%g
7916 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7917 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7918 s%@INSTALL_DATA@%$INSTALL_DATA%g
7919 s%@PACKAGE@%$PACKAGE%g
7920 s%@VERSION@%$VERSION%g
7921 s%@EXEEXT@%$EXEEXT%g
7922 s%@OBJEXT@%$OBJEXT%g
7923 s%@ACLOCAL@%$ACLOCAL%g
7924 s%@AUTOCONF@%$AUTOCONF%g
7925 s%@AUTOMAKE@%$AUTOMAKE%g
7926 s%@AUTOHEADER@%$AUTOHEADER%g
7927 s%@MAKEINFO@%$MAKEINFO%g
7928 s%@AMTAR@%$AMTAR%g
7929 s%@install_sh@%$install_sh%g
7930 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7931 s%@AWK@%$AWK%g
7932 s%@SET_MAKE@%$SET_MAKE%g
7933 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7934 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7935 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7936 s%@DEPDIR@%$DEPDIR%g
7937 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7938 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7939 s%@MAINT@%$MAINT%g
7940 s%@CC@%$CC%g
7941 s%@am__include@%$am__include%g
7942 s%@am__quote@%$am__quote%g
7943 s%@CCDEPMODE@%$CCDEPMODE%g
7944 s%@host@%$host%g
7945 s%@host_alias@%$host_alias%g
7946 s%@host_cpu@%$host_cpu%g
7947 s%@host_vendor@%$host_vendor%g
7948 s%@host_os@%$host_os%g
7949 s%@ENABLE_WIN32SPECIFIC_TRUE@%$ENABLE_WIN32SPECIFIC_TRUE%g
7950 s%@ENABLE_WIN32SPECIFIC_FALSE@%$ENABLE_WIN32SPECIFIC_FALSE%g
7951 s%@LIBDLMALLOC@%$LIBDLMALLOC%g
7952 s%@LIB_MALLOC@%$LIB_MALLOC%g
7953 s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
7954 s%@SQUID_AIO_LIB@%$SQUID_AIO_LIB%g
7955 s%@STORE_OBJS@%$STORE_OBJS%g
7956 s%@STORE_LIBS@%$STORE_LIBS%g
7957 s%@STORE_MODULES@%$STORE_MODULES%g
7958 s%@STORE_MODULE_SUBDIRS@%$STORE_MODULE_SUBDIRS%g
7959 s%@OPT_DISKD_EXE@%$OPT_DISKD_EXE%g
7960 s%@REPL_POLICIES@%$REPL_POLICIES%g
7961 s%@REPL_OBJS@%$REPL_OBJS%g
7962 s%@REPL_LIBS@%$REPL_LIBS%g
7963 s%@OPT_PINGER@%$OPT_PINGER%g
7964 s%@OPT_PINGER_EXE@%$OPT_PINGER_EXE%g
7965 s%@USE_DELAY_POOLS_TRUE@%$USE_DELAY_POOLS_TRUE%g
7966 s%@USE_DELAY_POOLS_FALSE@%$USE_DELAY_POOLS_FALSE%g
7967 s%@USE_SNMP_TRUE@%$USE_SNMP_TRUE%g
7968 s%@USE_SNMP_FALSE@%$USE_SNMP_FALSE%g
7969 s%@SNMPLIB@%$SNMPLIB%g
7970 s%@makesnmplib@%$makesnmplib%g
7971 s%@ENABLE_HTCP_TRUE@%$ENABLE_HTCP_TRUE%g
7972 s%@ENABLE_HTCP_FALSE@%$ENABLE_HTCP_FALSE%g
7973 s%@ENABLE_SSL_TRUE@%$ENABLE_SSL_TRUE%g
7974 s%@ENABLE_SSL_FALSE@%$ENABLE_SSL_FALSE%g
7975 s%@NEED_OWN_MD5_TRUE@%$NEED_OWN_MD5_TRUE%g
7976 s%@NEED_OWN_MD5_FALSE@%$NEED_OWN_MD5_FALSE%g
7977 s%@SSLLIB@%$SSLLIB%g
7978 s%@ERR_DEFAULT_LANGUAGE@%$ERR_DEFAULT_LANGUAGE%g
7979 s%@ERR_LANGUAGES@%$ERR_LANGUAGES%g
7980 s%@MAKE_LEAKFINDER_TRUE@%$MAKE_LEAKFINDER_TRUE%g
7981 s%@MAKE_LEAKFINDER_FALSE@%$MAKE_LEAKFINDER_FALSE%g
7982 s%@USE_DNSSERVER_TRUE@%$USE_DNSSERVER_TRUE%g
7983 s%@USE_DNSSERVER_FALSE@%$USE_DNSSERVER_FALSE%g
7984 s%@OPT_DNSSERVER_EXE@%$OPT_DNSSERVER_EXE%g
7985 s%@AUTH_MODULES@%$AUTH_MODULES%g
7986 s%@AUTH_OBJS@%$AUTH_OBJS%g
7987 s%@AUTH_LIBS@%$AUTH_LIBS%g
7988 s%@BASIC_AUTH_HELPERS@%$BASIC_AUTH_HELPERS%g
7989 s%@NTLM_AUTH_HELPERS@%$NTLM_AUTH_HELPERS%g
7990 s%@DIGEST_AUTH_HELPERS@%$DIGEST_AUTH_HELPERS%g
7991 s%@ENABLE_UNLINKD_TRUE@%$ENABLE_UNLINKD_TRUE%g
7992 s%@ENABLE_UNLINKD_FALSE@%$ENABLE_UNLINKD_FALSE%g
7993 s%@CPP@%$CPP%g
7994 s%@RANLIB@%$RANLIB%g
7995 s%@LN_S@%$LN_S%g
7996 s%@SH@%$SH%g
7997 s%@FALSE@%$FALSE%g
7998 s%@TRUE@%$TRUE%g
7999 s%@RM@%$RM%g
8000 s%@MV@%$MV%g
8001 s%@MKDIR@%$MKDIR%g
8002 s%@LN@%$LN%g
8003 s%@PERL@%$PERL%g
8004 s%@AR@%$AR%g
8005 s%@AR_R@%$AR_R%g
8006 s%@ALLOCA@%$ALLOCA%g
8007 s%@CRYPTLIB@%$CRYPTLIB%g
8008 s%@DLLIB@%$DLLIB%g
8009 s%@PTHREADLIB@%$PTHREADLIB%g
8010 s%@AIOLIB@%$AIOLIB%g
8011 s%@NEED_OWN_SNPRINTF_TRUE@%$NEED_OWN_SNPRINTF_TRUE%g
8012 s%@NEED_OWN_SNPRINTF_FALSE@%$NEED_OWN_SNPRINTF_FALSE%g
8013 s%@REGEXLIB@%$REGEXLIB%g
8014 s%@LIBREGEX@%$LIBREGEX%g
8015 s%@LIBOBJS@%$LIBOBJS%g
8016 s%@XTRA_OBJS@%$XTRA_OBJS%g
8017 s%@XTRA_LIBS@%$XTRA_LIBS%g
8018
8019 CEOF
8020 EOF
8021
8022 cat >> $CONFIG_STATUS <<\EOF
8023
8024 # Split the substitutions into bite-sized pieces for seds with
8025 # small command number limits, like on Digital OSF/1 and HP-UX.
8026 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8027 ac_file=1 # Number of current file.
8028 ac_beg=1 # First line for current file.
8029 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8030 ac_more_lines=:
8031 ac_sed_cmds=""
8032 while $ac_more_lines; do
8033 if test $ac_beg -gt 1; then
8034 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8035 else
8036 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8037 fi
8038 if test ! -s conftest.s$ac_file; then
8039 ac_more_lines=false
8040 rm -f conftest.s$ac_file
8041 else
8042 if test -z "$ac_sed_cmds"; then
8043 ac_sed_cmds="sed -f conftest.s$ac_file"
8044 else
8045 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8046 fi
8047 ac_file=`expr $ac_file + 1`
8048 ac_beg=$ac_end
8049 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8050 fi
8051 done
8052 if test -z "$ac_sed_cmds"; then
8053 ac_sed_cmds=cat
8054 fi
8055 EOF
8056
8057 cat >> $CONFIG_STATUS <<EOF
8058
8059 CONFIG_FILES=\${CONFIG_FILES-"\
8060 Makefile \
8061 lib/Makefile \
8062 scripts/Makefile \
8063 scripts/RunCache \
8064 scripts/RunAccel \
8065 src/Makefile \
8066 src/fs/Makefile \
8067 src/repl/Makefile \
8068 src/auth/Makefile \
8069 src/auth/basic/Makefile \
8070 src/auth/basic/helpers/Makefile \
8071 src/auth/basic/helpers/LDAP/Makefile \
8072 src/auth/basic/helpers/MSNT/Makefile \
8073 src/auth/basic/helpers/NCSA/Makefile \
8074 src/auth/basic/helpers/PAM/Makefile \
8075 src/auth/basic/helpers/SMB/Makefile \
8076 src/auth/basic/helpers/YP/Makefile \
8077 src/auth/basic/helpers/getpwnam/Makefile \
8078 src/auth/basic/helpers/multi-domain-NTLM/Makefile \
8079 src/auth/digest/Makefile \
8080 src/auth/digest/helpers/Makefile \
8081 src/auth/digest/helpers/password/Makefile \
8082 src/auth/ntlm/Makefile \
8083 src/auth/ntlm/helpers/Makefile \
8084 src/auth/ntlm/helpers/fakeauth/Makefile \
8085 src/auth/ntlm/helpers/no_check/Makefile \
8086 src/auth/ntlm/helpers/NTLMSSP/Makefile \
8087 src/auth/ntlm/helpers/NTLMSSP/smbval/Makefile \
8088 contrib/Makefile \
8089 snmplib/Makefile \
8090 icons/Makefile \
8091 errors/Makefile \
8092 src/fs/aufs/Makefile \
8093 src/fs/coss/Makefile \
8094 src/fs/diskd/Makefile \
8095 src/fs/null/Makefile \
8096 src/fs/ufs/Makefile \
8097 src/repl/heap/Makefile \
8098 src/repl/lru/Makefile \
8099 "}
8100 EOF
8101 cat >> $CONFIG_STATUS <<\EOF
8102 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8104 case "$ac_file" in
8105 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8106 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8107 *) ac_file_in="${ac_file}.in" ;;
8108 esac
8109
8110 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8111
8112 # Remove last slash and all that follows it. Not all systems have dirname.
8113 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8114 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8115 # The file is in a subdirectory.
8116 test ! -d "$ac_dir" && mkdir "$ac_dir"
8117 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8118 # A "../" for each directory in $ac_dir_suffix.
8119 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8120 else
8121 ac_dir_suffix= ac_dots=
8122 fi
8123
8124 case "$ac_given_srcdir" in
8125 .) srcdir=.
8126 if test -z "$ac_dots"; then top_srcdir=.
8127 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8128 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8129 *) # Relative path.
8130 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8131 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8132 esac
8133
8134 case "$ac_given_INSTALL" in
8135 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8136 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8137 esac
8138
8139 echo creating "$ac_file"
8140 rm -f "$ac_file"
8141 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8142 case "$ac_file" in
8143 *Makefile*) ac_comsub="1i\\
8144 # $configure_input" ;;
8145 *) ac_comsub= ;;
8146 esac
8147
8148 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8149 sed -e "$ac_comsub
8150 s%@configure_input@%$configure_input%g
8151 s%@srcdir@%$srcdir%g
8152 s%@top_srcdir@%$top_srcdir%g
8153 s%@INSTALL@%$INSTALL%g
8154 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8155 fi; done
8156 rm -f conftest.s*
8157
8158 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8159 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8160 #
8161 # ac_d sets the value in "#define NAME VALUE" lines.
8162 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8163 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8164 ac_dC='\3'
8165 ac_dD='%g'
8166 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8167 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8168 ac_uB='\([ ]\)%\1#\2define\3'
8169 ac_uC=' '
8170 ac_uD='\4%g'
8171 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8172 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8173 ac_eB='$%\1#\2define\3'
8174 ac_eC=' '
8175 ac_eD='%g'
8176
8177 if test "${CONFIG_HEADERS+set}" != set; then
8178 EOF
8179 cat >> $CONFIG_STATUS <<EOF
8180 CONFIG_HEADERS="include/autoconf.h"
8181 EOF
8182 cat >> $CONFIG_STATUS <<\EOF
8183 fi
8184 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8186 case "$ac_file" in
8187 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8188 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8189 *) ac_file_in="${ac_file}.in" ;;
8190 esac
8191
8192 echo creating $ac_file
8193
8194 rm -f conftest.frag conftest.in conftest.out
8195 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8196 cat $ac_file_inputs > conftest.in
8197
8198 EOF
8199
8200 # Transform confdefs.h into a sed script conftest.vals that substitutes
8201 # the proper values into config.h.in to produce config.h. And first:
8202 # Protect against being on the right side of a sed subst in config.status.
8203 # Protect against being in an unquoted here document in config.status.
8204 rm -f conftest.vals
8205 cat > conftest.hdr <<\EOF
8206 s/[\\&%]/\\&/g
8207 s%[\\$`]%\\&%g
8208 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8209 s%ac_d%ac_u%gp
8210 s%ac_u%ac_e%gp
8211 EOF
8212 sed -n -f conftest.hdr confdefs.h > conftest.vals
8213 rm -f conftest.hdr
8214
8215 # This sed command replaces #undef with comments. This is necessary, for
8216 # example, in the case of _POSIX_SOURCE, which is predefined and required
8217 # on some systems where configure will not decide to define it.
8218 cat >> conftest.vals <<\EOF
8219 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8220 EOF
8221
8222 # Break up conftest.vals because some shells have a limit on
8223 # the size of here documents, and old seds have small limits too.
8224
8225 rm -f conftest.tail
8226 while :
8227 do
8228 ac_lines=`grep -c . conftest.vals`
8229 # grep -c gives empty output for an empty file on some AIX systems.
8230 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8231 # Write a limited-size here document to conftest.frag.
8232 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8233 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8234 echo 'CEOF
8235 sed -f conftest.frag conftest.in > conftest.out
8236 rm -f conftest.in
8237 mv conftest.out conftest.in
8238 ' >> $CONFIG_STATUS
8239 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8240 rm -f conftest.vals
8241 mv conftest.tail conftest.vals
8242 done
8243 rm -f conftest.vals
8244
8245 cat >> $CONFIG_STATUS <<\EOF
8246 rm -f conftest.frag conftest.h
8247 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8248 cat conftest.in >> conftest.h
8249 rm -f conftest.in
8250 if cmp -s $ac_file conftest.h 2>/dev/null; then
8251 echo "$ac_file is unchanged"
8252 rm -f conftest.h
8253 else
8254 # Remove last slash and all that follows it. Not all systems have dirname.
8255 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8256 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8257 # The file is in a subdirectory.
8258 test ! -d "$ac_dir" && mkdir "$ac_dir"
8259 fi
8260 rm -f $ac_file
8261 mv conftest.h $ac_file
8262 fi
8263 fi; done
8264
8265 EOF
8266 cat >> $CONFIG_STATUS <<EOF
8267 am_indx=1
8268 for am_file in include/autoconf.h; do
8269 case " \$CONFIG_HEADERS " in
8270 *" \$am_file "*)
8271 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
8272 if test -n "\$am_dir"; then
8273 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
8274 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
8275 am_tmpdir=\$am_tmpdir\$am_subdir/
8276 if test ! -d \$am_tmpdir; then
8277 mkdir \$am_tmpdir
8278 fi
8279 done
8280 fi
8281 echo timestamp > "\$am_dir"stamp-h\$am_indx
8282 ;;
8283 esac
8284 am_indx=\`expr \$am_indx + 1\`
8285 done
8286 AMDEP_TRUE="$AMDEP_TRUE"
8287 ac_aux_dir="$ac_aux_dir"
8288
8289 EOF
8290 cat >> $CONFIG_STATUS <<\EOF
8291 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
8292
8293 test x"$AMDEP_TRUE" != x"" ||
8294 for mf in $CONFIG_FILES; do
8295 case "$mf" in
8296 Makefile) dirpart=.;;
8297 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
8298 *) continue;;
8299 esac
8300 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8301 # Extract the definition of DEP_FILES from the Makefile without
8302 # running `make'.
8303 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8304 test -z "$DEPDIR" && continue
8305 # When using ansi2knr, U may be empty or an underscore; expand it
8306 U=`sed -n -e '/^U = / s///p' < "$mf"`
8307 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8308 # We invoke sed twice because it is the simplest approach to
8309 # changing $(DEPDIR) to its actual value in the expansion.
8310 for file in `sed -n -e '
8311 /^DEP_FILES = .*\\\\$/ {
8312 s/^DEP_FILES = //
8313 :loop
8314 s/\\\\$//
8315 p
8316 n
8317 /\\\\$/ b loop
8318 p
8319 }
8320 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8322 # Make sure the directory exists.
8323 test -f "$dirpart/$file" && continue
8324 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
8325 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
8326 # echo "creating $dirpart/$file"
8327 echo '# dummy' > "$dirpart/$file"
8328 done
8329 done
8330
8331
8332 exit 0
8333 EOF
8334 chmod +x $CONFIG_STATUS
8335 rm -fr confdefs* $ac_clean_files
8336 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8337