]> The Tcpdump Group git mirrors - tcpdump/blob - configure
From Gisle Vanem: give "tok2str()" 4 static buffers it can fill in, so
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.169.2.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37 else
38 as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54 else
55 as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset=unset
64 else
65 as_unset=false
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS=" $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="tcpdump.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures this package to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657
658 System types:
659 --build=BUILD configure for building on BUILD [guessed]
660 --host=HOST build programs to run on HOST [BUILD]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666 cat <<\EOF
667
668 Optional Features:
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --enable-smb enable possibly-buggy SMB printer default=yes
672 --disable-smb disable possibly-buggy SMB printer
673 --enable-ipv6 enable ipv6 (with ipv4) support
674 --disable-ipv6 disable ipv6 support
675
676 Optional Packages:
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
679 --without-gcc don't use gcc
680 --without-crypto disable crypto support
681
682 Some influential environment variables:
683 CC C compiler command
684 CFLAGS C compiler flags
685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
686 nonstandard directory <lib dir>
687 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
688 headers in a nonstandard directory <include dir>
689 CPP C preprocessor
690
691 Use these variables to override the choices made by `configure' or to help
692 it to find libraries and programs with nonstandard names/locations.
693
694 EOF
695 fi
696
697 if test "$ac_init_help" = "recursive"; then
698 # If there are subdirs, report their specific --help.
699 ac_popdir=`pwd`
700 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
701 cd $ac_subdir
702 # A "../" for each directory in /$ac_subdir.
703 ac_dots=`echo $ac_subdir |
704 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
705
706 case $srcdir in
707 .) # No --srcdir option. We are building in place.
708 ac_sub_srcdir=$srcdir ;;
709 [\\/]* | ?:[\\/]* ) # Absolute path.
710 ac_sub_srcdir=$srcdir/$ac_subdir ;;
711 *) # Relative path.
712 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
713 esac
714
715 # Check for guested configure; otherwise get Cygnus style configure.
716 if test -f $ac_sub_srcdir/configure.gnu; then
717 echo
718 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
719 elif test -f $ac_sub_srcdir/configure; then
720 echo
721 $SHELL $ac_sub_srcdir/configure --help=recursive
722 elif test -f $ac_sub_srcdir/configure.ac ||
723 test -f $ac_sub_srcdir/configure.in; then
724 echo
725 $ac_configure --help
726 else
727 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
728 fi
729 cd $ac_popdir
730 done
731 fi
732
733 test -n "$ac_init_help" && exit 0
734 if $ac_init_version; then
735 cat <<\EOF
736
737 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
738 Free Software Foundation, Inc.
739 This configure script is free software; the Free Software Foundation
740 gives unlimited permission to copy, distribute and modify it.
741 EOF
742 exit 0
743 fi
744 exec 5>config.log
745 cat >&5 <<EOF
746 This file contains any messages produced by compilers while
747 running configure, to aid debugging if configure makes a mistake.
748
749 It was created by $as_me, which was
750 generated by GNU Autoconf 2.52. Invocation command line was
751
752 $ $0 $@
753
754 EOF
755 {
756 cat <<_ASUNAME
757 ## ---------- ##
758 ## Platform. ##
759 ## ---------- ##
760
761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
766
767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
769
770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
773 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
777
778 PATH = $PATH
779
780 _ASUNAME
781 } >&5
782
783 cat >&5 <<EOF
784 ## ------------ ##
785 ## Core tests. ##
786 ## ------------ ##
787
788 EOF
789
790 # Keep a trace of the command line.
791 # Strip out --no-create and --no-recursion so they do not pile up.
792 # Also quote any args containing shell meta-characters.
793 ac_configure_args=
794 ac_sep=
795 for ac_arg
796 do
797 case $ac_arg in
798 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
799 | --no-cr | --no-c) ;;
800 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
801 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
802 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
803 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
804 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
805 ac_sep=" " ;;
806 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
807 ac_sep=" " ;;
808 esac
809 # Get rid of the leading space.
810 done
811
812 # When interrupted or exit'd, cleanup temporary files, and complete
813 # config.log. We remove comments because anyway the quotes in there
814 # would cause problems or look ugly.
815 trap 'exit_status=$?
816 # Save into config.log some information that might help in debugging.
817 echo >&5
818 echo "## ----------------- ##" >&5
819 echo "## Cache variables. ##" >&5
820 echo "## ----------------- ##" >&5
821 echo >&5
822 # The following way of writing the cache mishandles newlines in values,
823 {
824 (set) 2>&1 |
825 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
826 *ac_space=\ *)
827 sed -n \
828 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
830 ;;
831 *)
832 sed -n \
833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
834 ;;
835 esac;
836 } >&5
837 sed "/^$/d" confdefs.h >conftest.log
838 if test -s conftest.log; then
839 echo >&5
840 echo "## ------------ ##" >&5
841 echo "## confdefs.h. ##" >&5
842 echo "## ------------ ##" >&5
843 echo >&5
844 cat conftest.log >&5
845 fi
846 (echo; echo) >&5
847 test "$ac_signal" != 0 &&
848 echo "$as_me: caught signal $ac_signal" >&5
849 echo "$as_me: exit $exit_status" >&5
850 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
851 exit $exit_status
852 ' 0
853 for ac_signal in 1 2 13 15; do
854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
855 done
856 ac_signal=0
857
858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
859 rm -rf conftest* confdefs.h
860 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
861 echo >confdefs.h
862
863 # Let the site file select an alternate cache file if it wants to.
864 # Prefer explicitly selected file to automatically selected ones.
865 if test -z "$CONFIG_SITE"; then
866 if test "x$prefix" != xNONE; then
867 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
868 else
869 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
870 fi
871 fi
872 for ac_site_file in $CONFIG_SITE; do
873 if test -r "$ac_site_file"; then
874 { echo "$as_me:874: loading site script $ac_site_file" >&5
875 echo "$as_me: loading site script $ac_site_file" >&6;}
876 cat "$ac_site_file" >&5
877 . "$ac_site_file"
878 fi
879 done
880
881 if test -r "$cache_file"; then
882 # Some versions of bash will fail to source /dev/null (special
883 # files actually), so we avoid doing that.
884 if test -f "$cache_file"; then
885 { echo "$as_me:885: loading cache $cache_file" >&5
886 echo "$as_me: loading cache $cache_file" >&6;}
887 case $cache_file in
888 [\\/]* | ?:[\\/]* ) . $cache_file;;
889 *) . ./$cache_file;;
890 esac
891 fi
892 else
893 { echo "$as_me:893: creating cache $cache_file" >&5
894 echo "$as_me: creating cache $cache_file" >&6;}
895 >$cache_file
896 fi
897
898 # Check that the precious variables saved in the cache have kept the same
899 # value.
900 ac_cache_corrupted=false
901 for ac_var in `(set) 2>&1 |
902 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
904 eval ac_new_set=\$ac_env_${ac_var}_set
905 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
906 eval ac_new_val="\$ac_env_${ac_var}_value"
907 case $ac_old_set,$ac_new_set in
908 set,)
909 { echo "$as_me:909: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
911 ac_cache_corrupted=: ;;
912 ,set)
913 { echo "$as_me:913: error: \`$ac_var' was not set in the previous run" >&5
914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
915 ac_cache_corrupted=: ;;
916 ,);;
917 *)
918 if test "x$ac_old_val" != "x$ac_new_val"; then
919 { echo "$as_me:919: error: \`$ac_var' has changed since the previous run:" >&5
920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
921 { echo "$as_me:921: former value: $ac_old_val" >&5
922 echo "$as_me: former value: $ac_old_val" >&2;}
923 { echo "$as_me:923: current value: $ac_new_val" >&5
924 echo "$as_me: current value: $ac_new_val" >&2;}
925 ac_cache_corrupted=:
926 fi;;
927 esac
928 # Pass precious variables to config.status. It doesn't matter if
929 # we pass some twice (in addition to the command line arguments).
930 if test "$ac_new_set" = set; then
931 case $ac_new_val in
932 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
933 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
934 ac_configure_args="$ac_configure_args '$ac_arg'"
935 ;;
936 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
937 ;;
938 esac
939 fi
940 done
941 if $ac_cache_corrupted; then
942 { echo "$as_me:942: error: changes in the environment can compromise the build" >&5
943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
944 { { echo "$as_me:944: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
946 { (exit 1); exit 1; }; }
947 fi
948
949 ac_ext=c
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
954
955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
956 *c*,-n*) ECHO_N= ECHO_C='
957 ' ECHO_T=' ' ;;
958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
960 esac
961 echo "#! $SHELL" >conftest.sh
962 echo "exit 0" >>conftest.sh
963 chmod +x conftest.sh
964 if { (echo "$as_me:964: PATH=\".;.\"; conftest.sh") >&5
965 (PATH=".;."; conftest.sh) 2>&5
966 ac_status=$?
967 echo "$as_me:967: \$? = $ac_status" >&5
968 (exit $ac_status); }; then
969 ac_path_separator=';'
970 else
971 ac_path_separator=:
972 fi
973 PATH_SEPARATOR="$ac_path_separator"
974 rm -f conftest.sh
975
976 ac_aux_dir=
977 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
978 if test -f $ac_dir/install-sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install-sh -c"
981 break
982 elif test -f $ac_dir/install.sh; then
983 ac_aux_dir=$ac_dir
984 ac_install_sh="$ac_aux_dir/install.sh -c"
985 break
986 elif test -f $ac_dir/shtool; then
987 ac_aux_dir=$ac_dir
988 ac_install_sh="$ac_aux_dir/shtool install -c"
989 break
990 fi
991 done
992 if test -z "$ac_aux_dir"; then
993 { { echo "$as_me:993: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
994 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
995 { (exit 1); exit 1; }; }
996 fi
997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
999 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1000
1001 # Make sure we can run config.sub.
1002 $ac_config_sub sun4 >/dev/null 2>&1 ||
1003 { { echo "$as_me:1003: error: cannot run $ac_config_sub" >&5
1004 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1005 { (exit 1); exit 1; }; }
1006
1007 echo "$as_me:1007: checking build system type" >&5
1008 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1009 if test "${ac_cv_build+set}" = set; then
1010 echo $ECHO_N "(cached) $ECHO_C" >&6
1011 else
1012 ac_cv_build_alias=$build_alias
1013 test -z "$ac_cv_build_alias" &&
1014 ac_cv_build_alias=`$ac_config_guess`
1015 test -z "$ac_cv_build_alias" &&
1016 { { echo "$as_me:1016: error: cannot guess build type; you must specify one" >&5
1017 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1018 { (exit 1); exit 1; }; }
1019 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1020 { { echo "$as_me:1020: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1021 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1022 { (exit 1); exit 1; }; }
1023
1024 fi
1025 echo "$as_me:1025: result: $ac_cv_build" >&5
1026 echo "${ECHO_T}$ac_cv_build" >&6
1027 build=$ac_cv_build
1028 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031
1032 echo "$as_me:1032: checking host system type" >&5
1033 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1034 if test "${ac_cv_host+set}" = set; then
1035 echo $ECHO_N "(cached) $ECHO_C" >&6
1036 else
1037 ac_cv_host_alias=$host_alias
1038 test -z "$ac_cv_host_alias" &&
1039 ac_cv_host_alias=$ac_cv_build_alias
1040 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1041 { { echo "$as_me:1041: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1042 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1043 { (exit 1); exit 1; }; }
1044
1045 fi
1046 echo "$as_me:1046: result: $ac_cv_host" >&5
1047 echo "${ECHO_T}$ac_cv_host" >&6
1048 host=$ac_cv_host
1049 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1050 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1051 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1052
1053 # Check whether --with-gcc or --without-gcc was given.
1054 if test "${with_gcc+set}" = set; then
1055 withval="$with_gcc"
1056
1057 fi;
1058 V_CCOPT="-O"
1059 V_INCLS=""
1060 if test "${srcdir}" != "." ; then
1061 V_INCLS="-I\$(srcdir)"
1062 fi
1063 if test "${CFLAGS+set}" = set; then
1064 LBL_CFLAGS="$CFLAGS"
1065 fi
1066 if test -z "$CC" ; then
1067 case "$host_os" in
1068
1069 bsdi*)
1070 # Extract the first word of "shlicc2", so it can be a program name with args.
1071 set dummy shlicc2; ac_word=$2
1072 echo "$as_me:1072: checking for $ac_word" >&5
1073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1074 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 else
1077 if test -n "$SHLICC2"; then
1078 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1079 else
1080 ac_save_IFS=$IFS; IFS=$ac_path_separator
1081 ac_dummy="$PATH"
1082 for ac_dir in $ac_dummy; do
1083 IFS=$ac_save_IFS
1084 test -z "$ac_dir" && ac_dir=.
1085 $as_executable_p "$ac_dir/$ac_word" || continue
1086 ac_cv_prog_SHLICC2="yes"
1087 echo "$as_me:1087: found $ac_dir/$ac_word" >&5
1088 break
1089 done
1090
1091 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1092 fi
1093 fi
1094 SHLICC2=$ac_cv_prog_SHLICC2
1095 if test -n "$SHLICC2"; then
1096 echo "$as_me:1096: result: $SHLICC2" >&5
1097 echo "${ECHO_T}$SHLICC2" >&6
1098 else
1099 echo "$as_me:1099: result: no" >&5
1100 echo "${ECHO_T}no" >&6
1101 fi
1102
1103 if test $SHLICC2 = yes ; then
1104 CC=shlicc2
1105 export CC
1106 fi
1107 ;;
1108 esac
1109 fi
1110 if test -z "$CC" -a "$with_gcc" = no ; then
1111 CC=cc
1112 export CC
1113 fi
1114 ac_ext=c
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1119 if test -n "$ac_tool_prefix"; then
1120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1122 echo "$as_me:1122: checking for $ac_word" >&5
1123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1124 if test "${ac_cv_prog_CC+set}" = set; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1126 else
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC="$CC" # Let the user override the test.
1129 else
1130 ac_save_IFS=$IFS; IFS=$ac_path_separator
1131 ac_dummy="$PATH"
1132 for ac_dir in $ac_dummy; do
1133 IFS=$ac_save_IFS
1134 test -z "$ac_dir" && ac_dir=.
1135 $as_executable_p "$ac_dir/$ac_word" || continue
1136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1137 echo "$as_me:1137: found $ac_dir/$ac_word" >&5
1138 break
1139 done
1140
1141 fi
1142 fi
1143 CC=$ac_cv_prog_CC
1144 if test -n "$CC"; then
1145 echo "$as_me:1145: result: $CC" >&5
1146 echo "${ECHO_T}$CC" >&6
1147 else
1148 echo "$as_me:1148: result: no" >&5
1149 echo "${ECHO_T}no" >&6
1150 fi
1151
1152 fi
1153 if test -z "$ac_cv_prog_CC"; then
1154 ac_ct_CC=$CC
1155 # Extract the first word of "gcc", so it can be a program name with args.
1156 set dummy gcc; ac_word=$2
1157 echo "$as_me:1157: checking for $ac_word" >&5
1158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1160 echo $ECHO_N "(cached) $ECHO_C" >&6
1161 else
1162 if test -n "$ac_ct_CC"; then
1163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1164 else
1165 ac_save_IFS=$IFS; IFS=$ac_path_separator
1166 ac_dummy="$PATH"
1167 for ac_dir in $ac_dummy; do
1168 IFS=$ac_save_IFS
1169 test -z "$ac_dir" && ac_dir=.
1170 $as_executable_p "$ac_dir/$ac_word" || continue
1171 ac_cv_prog_ac_ct_CC="gcc"
1172 echo "$as_me:1172: found $ac_dir/$ac_word" >&5
1173 break
1174 done
1175
1176 fi
1177 fi
1178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1179 if test -n "$ac_ct_CC"; then
1180 echo "$as_me:1180: result: $ac_ct_CC" >&5
1181 echo "${ECHO_T}$ac_ct_CC" >&6
1182 else
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1185 fi
1186
1187 CC=$ac_ct_CC
1188 else
1189 CC="$ac_cv_prog_CC"
1190 fi
1191
1192 if test -z "$CC"; then
1193 if test -n "$ac_tool_prefix"; then
1194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1195 set dummy ${ac_tool_prefix}cc; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 else
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC="$CC" # Let the user override the test.
1203 else
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 ac_dummy="$PATH"
1206 for ac_dir in $ac_dummy; do
1207 IFS=$ac_save_IFS
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_CC="${ac_tool_prefix}cc"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1212 break
1213 done
1214
1215 fi
1216 fi
1217 CC=$ac_cv_prog_CC
1218 if test -n "$CC"; then
1219 echo "$as_me:1219: result: $CC" >&5
1220 echo "${ECHO_T}$CC" >&6
1221 else
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1224 fi
1225
1226 fi
1227 if test -z "$ac_cv_prog_CC"; then
1228 ac_ct_CC=$CC
1229 # Extract the first word of "cc", so it can be a program name with args.
1230 set dummy cc; ac_word=$2
1231 echo "$as_me:1231: checking for $ac_word" >&5
1232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1235 else
1236 if test -n "$ac_ct_CC"; then
1237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1238 else
1239 ac_save_IFS=$IFS; IFS=$ac_path_separator
1240 ac_dummy="$PATH"
1241 for ac_dir in $ac_dummy; do
1242 IFS=$ac_save_IFS
1243 test -z "$ac_dir" && ac_dir=.
1244 $as_executable_p "$ac_dir/$ac_word" || continue
1245 ac_cv_prog_ac_ct_CC="cc"
1246 echo "$as_me:1246: found $ac_dir/$ac_word" >&5
1247 break
1248 done
1249
1250 fi
1251 fi
1252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1253 if test -n "$ac_ct_CC"; then
1254 echo "$as_me:1254: result: $ac_ct_CC" >&5
1255 echo "${ECHO_T}$ac_ct_CC" >&6
1256 else
1257 echo "$as_me:1257: result: no" >&5
1258 echo "${ECHO_T}no" >&6
1259 fi
1260
1261 CC=$ac_ct_CC
1262 else
1263 CC="$ac_cv_prog_CC"
1264 fi
1265
1266 fi
1267 if test -z "$CC"; then
1268 # Extract the first word of "cc", so it can be a program name with args.
1269 set dummy cc; ac_word=$2
1270 echo "$as_me:1270: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 else
1275 if test -n "$CC"; then
1276 ac_cv_prog_CC="$CC" # Let the user override the test.
1277 else
1278 ac_prog_rejected=no
1279 ac_save_IFS=$IFS; IFS=$ac_path_separator
1280 ac_dummy="$PATH"
1281 for ac_dir in $ac_dummy; do
1282 IFS=$ac_save_IFS
1283 test -z "$ac_dir" && ac_dir=.
1284 $as_executable_p "$ac_dir/$ac_word" || continue
1285 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1286 ac_prog_rejected=yes
1287 continue
1288 fi
1289 ac_cv_prog_CC="cc"
1290 echo "$as_me:1290: found $ac_dir/$ac_word" >&5
1291 break
1292 done
1293
1294 if test $ac_prog_rejected = yes; then
1295 # We found a bogon in the path, so make sure we never use it.
1296 set dummy $ac_cv_prog_CC
1297 shift
1298 if test $# != 0; then
1299 # We chose a different compiler from the bogus one.
1300 # However, it has the same basename, so the bogon will be chosen
1301 # first if we set CC to just the basename; use the full file name.
1302 shift
1303 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1304 shift
1305 ac_cv_prog_CC="$@"
1306 fi
1307 fi
1308 fi
1309 fi
1310 CC=$ac_cv_prog_CC
1311 if test -n "$CC"; then
1312 echo "$as_me:1312: result: $CC" >&5
1313 echo "${ECHO_T}$CC" >&6
1314 else
1315 echo "$as_me:1315: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1317 fi
1318
1319 fi
1320 if test -z "$CC"; then
1321 if test -n "$ac_tool_prefix"; then
1322 for ac_prog in cl
1323 do
1324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1326 echo "$as_me:1326: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 else
1334 ac_save_IFS=$IFS; IFS=$ac_path_separator
1335 ac_dummy="$PATH"
1336 for ac_dir in $ac_dummy; do
1337 IFS=$ac_save_IFS
1338 test -z "$ac_dir" && ac_dir=.
1339 $as_executable_p "$ac_dir/$ac_word" || continue
1340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1341 echo "$as_me:1341: found $ac_dir/$ac_word" >&5
1342 break
1343 done
1344
1345 fi
1346 fi
1347 CC=$ac_cv_prog_CC
1348 if test -n "$CC"; then
1349 echo "$as_me:1349: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1351 else
1352 echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1354 fi
1355
1356 test -n "$CC" && break
1357 done
1358 fi
1359 if test -z "$CC"; then
1360 ac_ct_CC=$CC
1361 for ac_prog in cl
1362 do
1363 # Extract the first word of "$ac_prog", so it can be a program name with args.
1364 set dummy $ac_prog; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372 else
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1374 ac_dummy="$PATH"
1375 for ac_dir in $ac_dummy; do
1376 IFS=$ac_save_IFS
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_ac_ct_CC="$ac_prog"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1381 break
1382 done
1383
1384 fi
1385 fi
1386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1387 if test -n "$ac_ct_CC"; then
1388 echo "$as_me:1388: result: $ac_ct_CC" >&5
1389 echo "${ECHO_T}$ac_ct_CC" >&6
1390 else
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395 test -n "$ac_ct_CC" && break
1396 done
1397
1398 CC=$ac_ct_CC
1399 fi
1400
1401 fi
1402
1403 test -z "$CC" && { { echo "$as_me:1403: error: no acceptable cc found in \$PATH" >&5
1404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407 # Provide some information about the compiler.
1408 echo "$as_me:1408:" \
1409 "checking for C compiler version" >&5
1410 ac_compiler=`set X $ac_compile; echo $2`
1411 { (eval echo "$as_me:1411: \"$ac_compiler --version </dev/null >&5\"") >&5
1412 (eval $ac_compiler --version </dev/null >&5) 2>&5
1413 ac_status=$?
1414 echo "$as_me:1414: \$? = $ac_status" >&5
1415 (exit $ac_status); }
1416 { (eval echo "$as_me:1416: \"$ac_compiler -v </dev/null >&5\"") >&5
1417 (eval $ac_compiler -v </dev/null >&5) 2>&5
1418 ac_status=$?
1419 echo "$as_me:1419: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:1421: \"$ac_compiler -V </dev/null >&5\"") >&5
1422 (eval $ac_compiler -V </dev/null >&5) 2>&5
1423 ac_status=$?
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1426
1427 cat >conftest.$ac_ext <<_ACEOF
1428 #line 1428 "configure"
1429 #include "confdefs.h"
1430
1431 int
1432 main ()
1433 {
1434
1435 ;
1436 return 0;
1437 }
1438 _ACEOF
1439 ac_clean_files_save=$ac_clean_files
1440 ac_clean_files="$ac_clean_files a.out a.exe"
1441 # Try to create an executable without -o first, disregard a.out.
1442 # It will help us diagnose broken compilers, and finding out an intuition
1443 # of exeext.
1444 echo "$as_me:1444: checking for C compiler default output" >&5
1445 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1446 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1447 if { (eval echo "$as_me:1447: \"$ac_link_default\"") >&5
1448 (eval $ac_link_default) 2>&5
1449 ac_status=$?
1450 echo "$as_me:1450: \$? = $ac_status" >&5
1451 (exit $ac_status); }; then
1452 # Find the output, starting from the most likely. This scheme is
1453 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1454 # resort.
1455 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1456 ls a.out conftest 2>/dev/null;
1457 ls a.* conftest.* 2>/dev/null`; do
1458 case $ac_file in
1459 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1460 a.out ) # We found the default executable, but exeext='' is most
1461 # certainly right.
1462 break;;
1463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1464 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1465 export ac_cv_exeext
1466 break;;
1467 * ) break;;
1468 esac
1469 done
1470 else
1471 echo "$as_me: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1473 { { echo "$as_me:1473: error: C compiler cannot create executables" >&5
1474 echo "$as_me: error: C compiler cannot create executables" >&2;}
1475 { (exit 77); exit 77; }; }
1476 fi
1477
1478 ac_exeext=$ac_cv_exeext
1479 echo "$as_me:1479: result: $ac_file" >&5
1480 echo "${ECHO_T}$ac_file" >&6
1481
1482 # Check the compiler produces executables we can run. If not, either
1483 # the compiler is broken, or we cross compile.
1484 echo "$as_me:1484: checking whether the C compiler works" >&5
1485 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1486 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1487 # If not cross compiling, check that we can run a simple program.
1488 if test "$cross_compiling" != yes; then
1489 if { ac_try='./$ac_file'
1490 { (eval echo "$as_me:1490: \"$ac_try\"") >&5
1491 (eval $ac_try) 2>&5
1492 ac_status=$?
1493 echo "$as_me:1493: \$? = $ac_status" >&5
1494 (exit $ac_status); }; }; then
1495 cross_compiling=no
1496 else
1497 if test "$cross_compiling" = maybe; then
1498 cross_compiling=yes
1499 else
1500 { { echo "$as_me:1500: error: cannot run C compiled programs.
1501 If you meant to cross compile, use \`--host'." >&5
1502 echo "$as_me: error: cannot run C compiled programs.
1503 If you meant to cross compile, use \`--host'." >&2;}
1504 { (exit 1); exit 1; }; }
1505 fi
1506 fi
1507 fi
1508 echo "$as_me:1508: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1510
1511 rm -f a.out a.exe conftest$ac_cv_exeext
1512 ac_clean_files=$ac_clean_files_save
1513 # Check the compiler produces executables we can run. If not, either
1514 # the compiler is broken, or we cross compile.
1515 echo "$as_me:1515: checking whether we are cross compiling" >&5
1516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1517 echo "$as_me:1517: result: $cross_compiling" >&5
1518 echo "${ECHO_T}$cross_compiling" >&6
1519
1520 echo "$as_me:1520: checking for executable suffix" >&5
1521 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1522 if { (eval echo "$as_me:1522: \"$ac_link\"") >&5
1523 (eval $ac_link) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); }; then
1527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1529 # work properly (i.e., refer to `conftest.exe'), while it won't with
1530 # `rm'.
1531 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1532 case $ac_file in
1533 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1535 export ac_cv_exeext
1536 break;;
1537 * ) break;;
1538 esac
1539 done
1540 else
1541 { { echo "$as_me:1541: error: cannot compute EXEEXT: cannot compile and link" >&5
1542 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1543 { (exit 1); exit 1; }; }
1544 fi
1545
1546 rm -f conftest$ac_cv_exeext
1547 echo "$as_me:1547: result: $ac_cv_exeext" >&5
1548 echo "${ECHO_T}$ac_cv_exeext" >&6
1549
1550 rm -f conftest.$ac_ext
1551 EXEEXT=$ac_cv_exeext
1552 ac_exeext=$EXEEXT
1553 echo "$as_me:1553: checking for object suffix" >&5
1554 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1555 if test "${ac_cv_objext+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558 cat >conftest.$ac_ext <<_ACEOF
1559 #line 1559 "configure"
1560 #include "confdefs.h"
1561
1562 int
1563 main ()
1564 {
1565
1566 ;
1567 return 0;
1568 }
1569 _ACEOF
1570 rm -f conftest.o conftest.obj
1571 if { (eval echo "$as_me:1571: \"$ac_compile\"") >&5
1572 (eval $ac_compile) 2>&5
1573 ac_status=$?
1574 echo "$as_me:1574: \$? = $ac_status" >&5
1575 (exit $ac_status); }; then
1576 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1577 case $ac_file in
1578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1580 break;;
1581 esac
1582 done
1583 else
1584 echo "$as_me: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 { { echo "$as_me:1586: error: cannot compute OBJEXT: cannot compile" >&5
1587 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1588 { (exit 1); exit 1; }; }
1589 fi
1590
1591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1592 fi
1593 echo "$as_me:1593: result: $ac_cv_objext" >&5
1594 echo "${ECHO_T}$ac_cv_objext" >&6
1595 OBJEXT=$ac_cv_objext
1596 ac_objext=$OBJEXT
1597 echo "$as_me:1597: checking whether we are using the GNU C compiler" >&5
1598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 cat >conftest.$ac_ext <<_ACEOF
1603 #line 1603 "configure"
1604 #include "confdefs.h"
1605
1606 int
1607 main ()
1608 {
1609 #ifndef __GNUC__
1610 choke me
1611 #endif
1612
1613 ;
1614 return 0;
1615 }
1616 _ACEOF
1617 rm -f conftest.$ac_objext
1618 if { (eval echo "$as_me:1618: \"$ac_compile\"") >&5
1619 (eval $ac_compile) 2>&5
1620 ac_status=$?
1621 echo "$as_me:1621: \$? = $ac_status" >&5
1622 (exit $ac_status); } &&
1623 { ac_try='test -s conftest.$ac_objext'
1624 { (eval echo "$as_me:1624: \"$ac_try\"") >&5
1625 (eval $ac_try) 2>&5
1626 ac_status=$?
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }; }; then
1629 ac_compiler_gnu=yes
1630 else
1631 echo "$as_me: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 ac_compiler_gnu=no
1634 fi
1635 rm -f conftest.$ac_objext conftest.$ac_ext
1636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1637
1638 fi
1639 echo "$as_me:1639: result: $ac_cv_c_compiler_gnu" >&5
1640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1641 GCC=`test $ac_compiler_gnu = yes && echo yes`
1642 ac_test_CFLAGS=${CFLAGS+set}
1643 ac_save_CFLAGS=$CFLAGS
1644 CFLAGS="-g"
1645 echo "$as_me:1645: checking whether $CC accepts -g" >&5
1646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1647 if test "${ac_cv_prog_cc_g+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 cat >conftest.$ac_ext <<_ACEOF
1651 #line 1651 "configure"
1652 #include "confdefs.h"
1653
1654 int
1655 main ()
1656 {
1657
1658 ;
1659 return 0;
1660 }
1661 _ACEOF
1662 rm -f conftest.$ac_objext
1663 if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5
1664 (eval $ac_compile) 2>&5
1665 ac_status=$?
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); } &&
1668 { ac_try='test -s conftest.$ac_objext'
1669 { (eval echo "$as_me:1669: \"$ac_try\"") >&5
1670 (eval $ac_try) 2>&5
1671 ac_status=$?
1672 echo "$as_me:1672: \$? = $ac_status" >&5
1673 (exit $ac_status); }; }; then
1674 ac_cv_prog_cc_g=yes
1675 else
1676 echo "$as_me: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1678 ac_cv_prog_cc_g=no
1679 fi
1680 rm -f conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 echo "$as_me:1682: result: $ac_cv_prog_cc_g" >&5
1683 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1684 if test "$ac_test_CFLAGS" = set; then
1685 CFLAGS=$ac_save_CFLAGS
1686 elif test $ac_cv_prog_cc_g = yes; then
1687 if test "$GCC" = yes; then
1688 CFLAGS="-g -O2"
1689 else
1690 CFLAGS="-g"
1691 fi
1692 else
1693 if test "$GCC" = yes; then
1694 CFLAGS="-O2"
1695 else
1696 CFLAGS=
1697 fi
1698 fi
1699 # Some people use a C++ compiler to compile C. Since we use `exit',
1700 # in C++ we need to declare it. In case someone uses the same compiler
1701 # for both compiling C and C++ we need to have the C++ compiler decide
1702 # the declaration of exit, since it's the most demanding environment.
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #ifndef __cplusplus
1705 choke me
1706 #endif
1707 _ACEOF
1708 rm -f conftest.$ac_objext
1709 if { (eval echo "$as_me:1709: \"$ac_compile\"") >&5
1710 (eval $ac_compile) 2>&5
1711 ac_status=$?
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); } &&
1714 { ac_try='test -s conftest.$ac_objext'
1715 { (eval echo "$as_me:1715: \"$ac_try\"") >&5
1716 (eval $ac_try) 2>&5
1717 ac_status=$?
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }; }; then
1720 for ac_declaration in \
1721 ''\
1722 '#include <stdlib.h>' \
1723 'extern "C" void std::exit (int) throw (); using std::exit;' \
1724 'extern "C" void std::exit (int); using std::exit;' \
1725 'extern "C" void exit (int) throw ();' \
1726 'extern "C" void exit (int);' \
1727 'void exit (int);'
1728 do
1729 cat >conftest.$ac_ext <<_ACEOF
1730 #line 1730 "configure"
1731 #include "confdefs.h"
1732 #include <stdlib.h>
1733 $ac_declaration
1734 int
1735 main ()
1736 {
1737 exit (42);
1738 ;
1739 return 0;
1740 }
1741 _ACEOF
1742 rm -f conftest.$ac_objext
1743 if { (eval echo "$as_me:1743: \"$ac_compile\"") >&5
1744 (eval $ac_compile) 2>&5
1745 ac_status=$?
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); } &&
1748 { ac_try='test -s conftest.$ac_objext'
1749 { (eval echo "$as_me:1749: \"$ac_try\"") >&5
1750 (eval $ac_try) 2>&5
1751 ac_status=$?
1752 echo "$as_me:1752: \$? = $ac_status" >&5
1753 (exit $ac_status); }; }; then
1754 :
1755 else
1756 echo "$as_me: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 continue
1759 fi
1760 rm -f conftest.$ac_objext conftest.$ac_ext
1761 cat >conftest.$ac_ext <<_ACEOF
1762 #line 1762 "configure"
1763 #include "confdefs.h"
1764 $ac_declaration
1765 int
1766 main ()
1767 {
1768 exit (42);
1769 ;
1770 return 0;
1771 }
1772 _ACEOF
1773 rm -f conftest.$ac_objext
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1776 ac_status=$?
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); } &&
1779 { ac_try='test -s conftest.$ac_objext'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1781 (eval $ac_try) 2>&5
1782 ac_status=$?
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1785 break
1786 else
1787 echo "$as_me: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 fi
1790 rm -f conftest.$ac_objext conftest.$ac_ext
1791 done
1792 rm -f conftest*
1793 if test -n "$ac_declaration"; then
1794 echo '#ifdef __cplusplus' >>confdefs.h
1795 echo $ac_declaration >>confdefs.h
1796 echo '#endif' >>confdefs.h
1797 fi
1798
1799 else
1800 echo "$as_me: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 fi
1803 rm -f conftest.$ac_objext conftest.$ac_ext
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809
1810 if test "$GCC" = yes ; then
1811 if test "$SHLICC2" = yes ; then
1812 ac_cv_lbl_gcc_vers=2
1813 V_CCOPT="-O2"
1814 else
1815 echo "$as_me:1815: checking gcc version" >&5
1816 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
1817 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
1821 sed -e '/^gcc version /!d' \
1822 -e 's/^gcc version //' \
1823 -e 's/ .*//' -e 's/^[^0-9]*//' \
1824 -e 's/\..*//'`
1825 fi
1826
1827 echo "$as_me:1827: result: $ac_cv_lbl_gcc_vers" >&5
1828 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
1829 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1830 V_CCOPT="-O2"
1831 fi
1832 fi
1833 else
1834 echo "$as_me:1834: checking that $CC handles ansi prototypes" >&5
1835 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
1836 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line 1841 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 int
1845 main ()
1846 {
1847 int frob(int, char *)
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 rm -f conftest.$ac_objext
1853 if { (eval echo "$as_me:1853: \"$ac_compile\"") >&5
1854 (eval $ac_compile) 2>&5
1855 ac_status=$?
1856 echo "$as_me:1856: \$? = $ac_status" >&5
1857 (exit $ac_status); } &&
1858 { ac_try='test -s conftest.$ac_objext'
1859 { (eval echo "$as_me:1859: \"$ac_try\"") >&5
1860 (eval $ac_try) 2>&5
1861 ac_status=$?
1862 echo "$as_me:1862: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1864 ac_cv_lbl_cc_ansi_prototypes=yes
1865 else
1866 echo "$as_me: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 ac_cv_lbl_cc_ansi_prototypes=no
1869 fi
1870 rm -f conftest.$ac_objext conftest.$ac_ext
1871 fi
1872
1873 echo "$as_me:1873: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
1874 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
1875 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
1876 case "$host_os" in
1877
1878 hpux*)
1879 echo "$as_me:1879: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1880 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
1881 savedcflags="$CFLAGS"
1882 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
1883 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1889 #include <sys/types.h>
1890 int
1891 main ()
1892 {
1893 int frob(int, char *)
1894 ;
1895 return 0;
1896 }
1897 _ACEOF
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1901 ac_status=$?
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1906 (eval $ac_try) 2>&5
1907 ac_status=$?
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_lbl_cc_hpux_cc_aa=yes
1911 else
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1914 ac_cv_lbl_cc_hpux_cc_aa=no
1915 fi
1916 rm -f conftest.$ac_objext conftest.$ac_ext
1917 fi
1918
1919 echo "$as_me:1919: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
1920 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
1921 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
1922 { { echo "$as_me:1922: error: see the INSTALL doc for more info" >&5
1923 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
1924 { (exit 1); exit 1; }; }
1925 fi
1926 CFLAGS="$savedcflags"
1927 V_CCOPT="-Aa $V_CCOPT"
1928 cat >>confdefs.h <<\EOF
1929 #define _HPUX_SOURCE 1
1930 EOF
1931
1932 ;;
1933
1934 *)
1935 { { echo "$as_me:1935: error: see the INSTALL doc for more info" >&5
1936 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
1937 { (exit 1); exit 1; }; }
1938 ;;
1939 esac
1940 fi
1941 V_INCLS="$V_INCLS -I/usr/local/include"
1942 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1943
1944 case "$host_os" in
1945
1946 irix*)
1947 V_CCOPT="$V_CCOPT -xansi -signed -O"
1948 ;;
1949
1950 osf*)
1951 V_CCOPT="$V_CCOPT -std1 -O"
1952 ;;
1953
1954 ultrix*)
1955 echo "$as_me:1955: checking that Ultrix $CC hacks const in prototypes" >&5
1956 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
1957 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line 1961 "configure"
1962 #include "confdefs.h"
1963 #include <sys/types.h>
1964 int
1965 main ()
1966 {
1967 struct a { int b; };
1968 void c(const struct a *)
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1976 ac_status=$?
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_cv_lbl_cc_const_proto=yes
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 ac_cv_lbl_cc_const_proto=no
1990 fi
1991 rm -f conftest.$ac_objext conftest.$ac_ext
1992 fi
1993
1994 echo "$as_me:1994: result: $ac_cv_lbl_cc_const_proto" >&5
1995 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
1996 if test $ac_cv_lbl_cc_const_proto = no ; then
1997 cat >>confdefs.h <<\EOF
1998 #define const
1999 EOF
2000
2001 fi
2002 ;;
2003 esac
2004 fi
2005
2006 echo "$as_me:2006: checking for inline" >&5
2007 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2008 if test "${ac_cv_lbl_inline+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011
2012 ac_cv_lbl_inline=""
2013 ac_lbl_cc_inline=no
2014 for ac_lbl_inline in inline __inline__ __inline
2015 do
2016 cat >conftest.$ac_ext <<_ACEOF
2017 #line 2017 "configure"
2018 #include "confdefs.h"
2019 #define inline $ac_lbl_inline
2020 static inline struct iltest *foo(void);
2021 struct iltest {
2022 int iltest1;
2023 int iltest2;
2024 };
2025
2026 static inline struct iltest *
2027 foo()
2028 {
2029 static struct iltest xxx;
2030
2031 return &xxx;
2032 }
2033 int
2034 main ()
2035 {
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:2042: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2044 ac_status=$?
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:2048: \"$ac_try\"") >&5
2049 (eval $ac_try) 2>&5
2050 ac_status=$?
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2053 ac_lbl_cc_inline=yes
2054 else
2055 echo "$as_me: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2057 fi
2058 rm -f conftest.$ac_objext conftest.$ac_ext
2059 if test "$ac_lbl_cc_inline" = yes ; then
2060 break;
2061 fi
2062 done
2063 if test "$ac_lbl_cc_inline" = yes ; then
2064 ac_cv_lbl_inline=$ac_lbl_inline
2065 fi
2066 fi
2067
2068 if test ! -z "$ac_cv_lbl_inline" ; then
2069 echo "$as_me:2069: result: $ac_cv_lbl_inline" >&5
2070 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2071 else
2072 echo "$as_me:2072: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 cat >>confdefs.h <<EOF
2077 #define inline $ac_cv_lbl_inline
2078 EOF
2079
2080 echo "$as_me:2080: checking for __attribute__" >&5
2081 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2082 if test "${ac_cv___attribute__+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085
2086 cat >conftest.$ac_ext <<_ACEOF
2087 #line 2087 "configure"
2088 #include "confdefs.h"
2089
2090 #include <stdlib.h>
2091
2092 int
2093 main ()
2094 {
2095
2096 static void foo(void) __attribute__ ((noreturn));
2097
2098 static void
2099 foo(void)
2100 {
2101 exit(1);
2102 }
2103
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:2109: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:2112: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:2115: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 ac_cv___attribute__=yes
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2124 ac_cv___attribute__=no
2125 fi
2126 rm -f conftest.$ac_objext conftest.$ac_ext
2127 fi
2128
2129 if test "$ac_cv___attribute__" = "yes"; then
2130
2131 cat >>confdefs.h <<\EOF
2132 #define HAVE___ATTRIBUTE__ 1
2133 EOF
2134
2135 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2136 else
2137 V_DEFS="$V_DEFS -D_U_=\"\""
2138 fi
2139 echo "$as_me:2139: result: $ac_cv___attribute__" >&5
2140 echo "${ECHO_T}$ac_cv___attribute__" >&6
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 echo "$as_me:2147: checking how to run the C preprocessor" >&5
2148 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2149 # On Suns, sometimes $CPP names a directory.
2150 if test -n "$CPP" && test -d "$CPP"; then
2151 CPP=
2152 fi
2153 if test -z "$CPP"; then
2154 if test "${ac_cv_prog_CPP+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 # Double quotes because CPP needs to be expanded
2158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2159 do
2160 ac_preproc_ok=false
2161 for ac_c_preproc_warn_flag in '' yes
2162 do
2163 # Use a header file that comes with gcc, so configuring glibc
2164 # with a fresh cross-compiler works.
2165 # On the NeXT, cc -E runs the code through the compiler's parser,
2166 # not just through cpp. "Syntax error" is here to catch this case.
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line 2168 "configure"
2169 #include "confdefs.h"
2170 #include <assert.h>
2171 Syntax error
2172 _ACEOF
2173 if { (eval echo "$as_me:2173: \"$ac_cpp conftest.$ac_ext\"") >&5
2174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2175 ac_status=$?
2176 egrep -v '^ *\+' conftest.er1 >conftest.err
2177 rm -f conftest.er1
2178 cat conftest.err >&5
2179 echo "$as_me:2179: \$? = $ac_status" >&5
2180 (exit $ac_status); } >/dev/null; then
2181 if test -s conftest.err; then
2182 ac_cpp_err=$ac_c_preproc_warn_flag
2183 else
2184 ac_cpp_err=
2185 fi
2186 else
2187 ac_cpp_err=yes
2188 fi
2189 if test -z "$ac_cpp_err"; then
2190 :
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 # Broken: fails on valid input.
2195 continue
2196 fi
2197 rm -f conftest.err conftest.$ac_ext
2198
2199 # OK, works on sane cases. Now check whether non-existent headers
2200 # can be detected and how.
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line 2202 "configure"
2203 #include "confdefs.h"
2204 #include <ac_nonexistent.h>
2205 _ACEOF
2206 if { (eval echo "$as_me:2206: \"$ac_cpp conftest.$ac_ext\"") >&5
2207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2208 ac_status=$?
2209 egrep -v '^ *\+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:2212: \$? = $ac_status" >&5
2213 (exit $ac_status); } >/dev/null; then
2214 if test -s conftest.err; then
2215 ac_cpp_err=$ac_c_preproc_warn_flag
2216 else
2217 ac_cpp_err=
2218 fi
2219 else
2220 ac_cpp_err=yes
2221 fi
2222 if test -z "$ac_cpp_err"; then
2223 # Broken: success on invalid input.
2224 continue
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2228 # Passes both tests.
2229 ac_preproc_ok=:
2230 break
2231 fi
2232 rm -f conftest.err conftest.$ac_ext
2233
2234 done
2235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2236 rm -f conftest.err conftest.$ac_ext
2237 if $ac_preproc_ok; then
2238 break
2239 fi
2240
2241 done
2242 ac_cv_prog_CPP=$CPP
2243
2244 fi
2245 CPP=$ac_cv_prog_CPP
2246 else
2247 ac_cv_prog_CPP=$CPP
2248 fi
2249 echo "$as_me:2249: result: $CPP" >&5
2250 echo "${ECHO_T}$CPP" >&6
2251 ac_preproc_ok=false
2252 for ac_c_preproc_warn_flag in '' yes
2253 do
2254 # Use a header file that comes with gcc, so configuring glibc
2255 # with a fresh cross-compiler works.
2256 # On the NeXT, cc -E runs the code through the compiler's parser,
2257 # not just through cpp. "Syntax error" is here to catch this case.
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line 2259 "configure"
2260 #include "confdefs.h"
2261 #include <assert.h>
2262 Syntax error
2263 _ACEOF
2264 if { (eval echo "$as_me:2264: \"$ac_cpp conftest.$ac_ext\"") >&5
2265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266 ac_status=$?
2267 egrep -v '^ *\+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:2270: \$? = $ac_status" >&5
2271 (exit $ac_status); } >/dev/null; then
2272 if test -s conftest.err; then
2273 ac_cpp_err=$ac_c_preproc_warn_flag
2274 else
2275 ac_cpp_err=
2276 fi
2277 else
2278 ac_cpp_err=yes
2279 fi
2280 if test -z "$ac_cpp_err"; then
2281 :
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 # Broken: fails on valid input.
2286 continue
2287 fi
2288 rm -f conftest.err conftest.$ac_ext
2289
2290 # OK, works on sane cases. Now check whether non-existent headers
2291 # can be detected and how.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #line 2293 "configure"
2294 #include "confdefs.h"
2295 #include <ac_nonexistent.h>
2296 _ACEOF
2297 if { (eval echo "$as_me:2297: \"$ac_cpp conftest.$ac_ext\"") >&5
2298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2299 ac_status=$?
2300 egrep -v '^ *\+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:2303: \$? = $ac_status" >&5
2304 (exit $ac_status); } >/dev/null; then
2305 if test -s conftest.err; then
2306 ac_cpp_err=$ac_c_preproc_warn_flag
2307 else
2308 ac_cpp_err=
2309 fi
2310 else
2311 ac_cpp_err=yes
2312 fi
2313 if test -z "$ac_cpp_err"; then
2314 # Broken: success on invalid input.
2315 continue
2316 else
2317 echo "$as_me: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 # Passes both tests.
2320 ac_preproc_ok=:
2321 break
2322 fi
2323 rm -f conftest.err conftest.$ac_ext
2324
2325 done
2326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2327 rm -f conftest.err conftest.$ac_ext
2328 if $ac_preproc_ok; then
2329 :
2330 else
2331 { { echo "$as_me:2331: error: C preprocessor \"$CPP\" fails sanity check" >&5
2332 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2333 { (exit 1); exit 1; }; }
2334 fi
2335
2336 ac_ext=c
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
2343 do
2344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2345 echo "$as_me:2345: checking for $ac_header" >&5
2346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 cat >conftest.$ac_ext <<_ACEOF
2351 #line 2351 "configure"
2352 #include "confdefs.h"
2353 #include <$ac_header>
2354 _ACEOF
2355 if { (eval echo "$as_me:2355: \"$ac_cpp conftest.$ac_ext\"") >&5
2356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2357 ac_status=$?
2358 egrep -v '^ *\+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:2361: \$? = $ac_status" >&5
2362 (exit $ac_status); } >/dev/null; then
2363 if test -s conftest.err; then
2364 ac_cpp_err=$ac_c_preproc_warn_flag
2365 else
2366 ac_cpp_err=
2367 fi
2368 else
2369 ac_cpp_err=yes
2370 fi
2371 if test -z "$ac_cpp_err"; then
2372 eval "$as_ac_Header=yes"
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 eval "$as_ac_Header=no"
2377 fi
2378 rm -f conftest.err conftest.$ac_ext
2379 fi
2380 echo "$as_me:2380: result: `eval echo '${'$as_ac_Header'}'`" >&5
2381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2383 cat >>confdefs.h <<EOF
2384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2385 EOF
2386
2387 fi
2388 done
2389
2390 for ac_header in netinet/if_ether.h
2391 do
2392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2393 echo "$as_me:2393: checking for $ac_header" >&5
2394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398 cat >conftest.$ac_ext <<_ACEOF
2399 #line 2399 "configure"
2400 #include "confdefs.h"
2401 #include <sys/types.h>
2402 #include <sys/socket.h>
2403 #include <$ac_header>
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (eval echo "$as_me:2406: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2408 ac_status=$?
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:2412: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:2415: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 eval "$as_ac_Header=yes"
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2421 eval "$as_ac_Header=no"
2422 fi
2423 rm -f conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 echo "$as_me:2425: result: `eval echo '${'$as_ac_Header'}'`" >&5
2426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2428 cat >>confdefs.h <<EOF
2429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2430 EOF
2431
2432 fi
2433 done
2434
2435 echo "$as_me:2435: checking whether time.h and sys/time.h may both be included" >&5
2436 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2437 if test "${ac_cv_header_time+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2443 #include <sys/types.h>
2444 #include <sys/time.h>
2445 #include <time.h>
2446
2447 int
2448 main ()
2449 {
2450 if ((struct tm *) 0)
2451 return 0;
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (eval echo "$as_me:2457: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
2459 ac_status=$?
2460 echo "$as_me:2460: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:2463: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:2466: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_header_time=yes
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 ac_cv_header_time=no
2473 fi
2474 rm -f conftest.$ac_objext conftest.$ac_ext
2475 fi
2476 echo "$as_me:2476: result: $ac_cv_header_time" >&5
2477 echo "${ECHO_T}$ac_cv_header_time" >&6
2478 if test $ac_cv_header_time = yes; then
2479
2480 cat >>confdefs.h <<\EOF
2481 #define TIME_WITH_SYS_TIME 1
2482 EOF
2483
2484 fi
2485
2486 case "$host_os" in
2487
2488 linux*)
2489 echo "$as_me:2489: checking Linux kernel version" >&5
2490 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
2491 if test "$cross_compiling" = yes; then
2492 if test "${ac_cv_linux_vers+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 ac_cv_linux_vers=unknown
2496 fi
2497
2498 else
2499 if test "${ac_cv_linux_vers+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 ac_cv_linux_vers=`uname -r 2>&1 | \
2503 sed -n -e '$s/.* //' -e '$s/\..*//p'`
2504 fi
2505
2506 fi
2507 echo "$as_me:2507: result: $ac_cv_linux_vers" >&5
2508 echo "${ECHO_T}$ac_cv_linux_vers" >&6
2509 if test $ac_cv_linux_vers = unknown ; then
2510 { { echo "$as_me:2510: error: cannot determine linux version when cross-compiling" >&5
2511 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
2512 { (exit 1); exit 1; }; }
2513 fi
2514 if test $ac_cv_linux_vers -lt 2 ; then
2515 { { echo "$as_me:2515: error: version 2 or higher required; see the INSTALL doc for more info" >&5
2516 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
2517 { (exit 1); exit 1; }; }
2518 fi
2519 ;;
2520
2521 *)
2522 ;;
2523 esac
2524
2525 for ac_header in smi.h
2526 do
2527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2528 echo "$as_me:2528: checking for $ac_header" >&5
2529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line 2534 "configure"
2535 #include "confdefs.h"
2536 #include <$ac_header>
2537 _ACEOF
2538 if { (eval echo "$as_me:2538: \"$ac_cpp conftest.$ac_ext\"") >&5
2539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2540 ac_status=$?
2541 egrep -v '^ *\+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:2544: \$? = $ac_status" >&5
2545 (exit $ac_status); } >/dev/null; then
2546 if test -s conftest.err; then
2547 ac_cpp_err=$ac_c_preproc_warn_flag
2548 else
2549 ac_cpp_err=
2550 fi
2551 else
2552 ac_cpp_err=yes
2553 fi
2554 if test -z "$ac_cpp_err"; then
2555 eval "$as_ac_Header=yes"
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 eval "$as_ac_Header=no"
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562 fi
2563 echo "$as_me:2563: result: `eval echo '${'$as_ac_Header'}'`" >&5
2564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2566 cat >>confdefs.h <<EOF
2567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2568 EOF
2569
2570 fi
2571 done
2572
2573 echo "$as_me:2573: checking for smiInit in -lsmi" >&5
2574 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
2575 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 ac_check_lib_save_LIBS=$LIBS
2579 LIBS="-lsmi $LIBS"
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line 2581 "configure"
2582 #include "confdefs.h"
2583
2584 /* Override any gcc2 internal prototype to avoid an error. */
2585 #ifdef __cplusplus
2586 extern "C"
2587 #endif
2588 /* We use char because int might match the return type of a gcc2
2589 builtin and then its argument prototype would still apply. */
2590 char smiInit ();
2591 int
2592 main ()
2593 {
2594 smiInit ();
2595 ;
2596 return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext conftest$ac_exeext
2600 if { (eval echo "$as_me:2600: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>&5
2602 ac_status=$?
2603 echo "$as_me:2603: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest$ac_exeext'
2606 { (eval echo "$as_me:2606: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:2609: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_lib_smi_smiInit=yes
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 ac_cv_lib_smi_smiInit=no
2616 fi
2617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2618 LIBS=$ac_check_lib_save_LIBS
2619 fi
2620 echo "$as_me:2620: result: $ac_cv_lib_smi_smiInit" >&5
2621 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
2622 if test $ac_cv_lib_smi_smiInit = yes; then
2623 cat >>confdefs.h <<EOF
2624 #define HAVE_LIBSMI 1
2625 EOF
2626
2627 LIBS="-lsmi $LIBS"
2628
2629 fi
2630
2631 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
2632 then
2633 echo "$as_me:2633: checking whether to enable libsmi" >&5
2634 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
2635 if test "$cross_compiling" = yes; then
2636 echo "$as_me:2636: result: not when cross-compiling" >&5
2637 echo "${ECHO_T}not when cross-compiling" >&6
2638 libsmi=no
2639
2640 else
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line 2642 "configure"
2643 #include "confdefs.h"
2644 /* libsmi available check */
2645 #include <smi.h>
2646 main()
2647 {
2648 int current, revision, age, n;
2649 const int required = 2;
2650 if (smiInit(""))
2651 exit(1);
2652 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
2653 exit(2);
2654 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
2655 if (n != 3)
2656 exit(3);
2657 if (required < current - age || required > current)
2658 exit(4);
2659 exit(0);
2660 }
2661
2662 _ACEOF
2663 rm -f conftest$ac_exeext
2664 if { (eval echo "$as_me:2664: \"$ac_link\"") >&5
2665 (eval $ac_link) 2>&5
2666 ac_status=$?
2667 echo "$as_me:2667: \$? = $ac_status" >&5
2668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2669 { (eval echo "$as_me:2669: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:2672: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 echo "$as_me:2674: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6
2676 cat >>confdefs.h <<\EOF
2677 #define LIBSMI 1
2678 EOF
2679
2680 libsmi=yes
2681 else
2682 echo "$as_me: program exited with status $ac_status" >&5
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 case $? in
2686 1) echo "$as_me:2686: result: no - smiInit failed" >&5
2687 echo "${ECHO_T}no - smiInit failed" >&6 ;;
2688 2) echo "$as_me:2688: result: no - header/library version mismatch" >&5
2689 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
2690 3) echo "$as_me:2690: result: no - can't determine library version" >&5
2691 echo "${ECHO_T}no - can't determine library version" >&6 ;;
2692 4) echo "$as_me:2692: result: no - too old" >&5
2693 echo "${ECHO_T}no - too old" >&6 ;;
2694 *) echo "$as_me:2694: result: no" >&5
2695 echo "${ECHO_T}no" >&6 ;;
2696 esac
2697 libsmi=no
2698 fi
2699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 fi
2702
2703 echo "$as_me:2703: checking whether to enable the possibly-buggy SMB printer" >&5
2704 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
2705 # Check whether --enable-smb or --disable-smb was given.
2706 if test "${enable_smb+set}" = set; then
2707 enableval="$enable_smb"
2708
2709 else
2710 enableval=yes
2711 fi;
2712 case "$enableval" in
2713 yes) echo "$as_me:2713: result: yes" >&5
2714 echo "${ECHO_T}yes" >&6
2715 { echo "$as_me:2715: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
2716 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
2717 cat >>confdefs.h <<\EOF
2718 #define TCPDUMP_DO_SMB 1
2719 EOF
2720
2721 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
2722 ;;
2723 *) echo "$as_me:2723: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725 ;;
2726 esac
2727
2728 echo "$as_me:2728: checking whether to enable ipv6" >&5
2729 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
2730 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2731 if test "${enable_ipv6+set}" = set; then
2732 enableval="$enable_ipv6"
2733 case "$enableval" in
2734 yes) echo "$as_me:2734: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
2737 cat >>confdefs.h <<\EOF
2738 #define INET6 1
2739 EOF
2740
2741 ipv6=yes
2742 ;;
2743 *)
2744 echo "$as_me:2744: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746 ipv6=no
2747 ;;
2748 esac
2749 else
2750 if test "$cross_compiling" = yes; then
2751 echo "$as_me:2751: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2753 ipv6=no
2754
2755 else
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #line 2757 "configure"
2758 #include "confdefs.h"
2759 /* AF_INET6 available check */
2760 #include <sys/types.h>
2761 #include <sys/socket.h>
2762 main()
2763 {
2764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
2765 exit(1);
2766 else
2767 exit(0);
2768 }
2769
2770 _ACEOF
2771 rm -f conftest$ac_exeext
2772 if { (eval echo "$as_me:2772: \"$ac_link\"") >&5
2773 (eval $ac_link) 2>&5
2774 ac_status=$?
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2777 { (eval echo "$as_me:2777: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:2780: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 echo "$as_me:2782: result: yes" >&5
2783 echo "${ECHO_T}yes" >&6
2784 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
2785 cat >>confdefs.h <<\EOF
2786 #define INET6 1
2787 EOF
2788
2789 ipv6=yes
2790 else
2791 echo "$as_me: program exited with status $ac_status" >&5
2792 echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 echo "$as_me:2794: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 ipv6=no
2797 fi
2798 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2799 fi
2800 fi;
2801
2802 ipv6type=unknown
2803 ipv6lib=none
2804 ipv6trylibc=no
2805
2806 if test "$ipv6" = "yes"; then
2807 echo "$as_me:2807: checking ipv6 stack type" >&5
2808 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
2809 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
2810 case $i in
2811 inria)
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line 2813 "configure"
2814 #include "confdefs.h"
2815 #include <netinet/in.h>
2816 #ifdef IPV6_INRIA_VERSION
2817 yes
2818 #endif
2819 _ACEOF
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 egrep "yes" >/dev/null 2>&1; then
2822 ipv6type=$i;
2823 CFLAGS="-DINET6 $CFLAGS"
2824 fi
2825 rm -f conftest*
2826
2827 ;;
2828 kame)
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2832 #include <netinet/in.h>
2833 #ifdef __KAME__
2834 yes
2835 #endif
2836 _ACEOF
2837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2838 egrep "yes" >/dev/null 2>&1; then
2839 ipv6type=$i;
2840 ipv6lib=inet6;
2841 ipv6libdir=/usr/local/v6/lib;
2842 ipv6trylibc=yes;
2843 CFLAGS="-DINET6 $CFLAGS"
2844 fi
2845 rm -f conftest*
2846
2847 ;;
2848 linux-glibc)
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line 2850 "configure"
2851 #include "confdefs.h"
2852 #include <features.h>
2853 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
2854 yes
2855 #endif
2856 _ACEOF
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "yes" >/dev/null 2>&1; then
2859 ipv6type=$i;
2860 CFLAGS="-DINET6 $CFLAGS"
2861 fi
2862 rm -f conftest*
2863
2864 ;;
2865 linux-libinet6)
2866 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
2867 ipv6type=$i
2868 ipv6lib=inet6
2869 ipv6libdir=/usr/inet6/lib
2870 ipv6trylibc=yes;
2871 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
2872 fi
2873 ;;
2874 toshiba)
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #line 2876 "configure"
2877 #include "confdefs.h"
2878 #include <sys/param.h>
2879 #ifdef _TOSHIBA_INET6
2880 yes
2881 #endif
2882 _ACEOF
2883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884 egrep "yes" >/dev/null 2>&1; then
2885 ipv6type=$i;
2886 ipv6lib=inet6;
2887 ipv6libdir=/usr/local/v6/lib;
2888 CFLAGS="-DINET6 $CFLAGS"
2889 fi
2890 rm -f conftest*
2891
2892 ;;
2893 v6d)
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line 2895 "configure"
2896 #include "confdefs.h"
2897 #include </usr/local/v6/include/sys/v6config.h>
2898 #ifdef __V6D__
2899 yes
2900 #endif
2901 _ACEOF
2902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2903 egrep "yes" >/dev/null 2>&1; then
2904 ipv6type=$i;
2905 ipv6lib=v6;
2906 ipv6libdir=/usr/local/v6/lib;
2907 CFLAGS="-I/usr/local/v6/include $CFLAGS"
2908 fi
2909 rm -f conftest*
2910
2911 ;;
2912 zeta)
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line 2914 "configure"
2915 #include "confdefs.h"
2916 #include <sys/param.h>
2917 #ifdef _ZETA_MINAMI_INET6
2918 yes
2919 #endif
2920 _ACEOF
2921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2922 egrep "yes" >/dev/null 2>&1; then
2923 ipv6type=$i;
2924 ipv6lib=inet6;
2925 ipv6libdir=/usr/local/v6/lib;
2926 CFLAGS="-DINET6 $CFLAGS"
2927 fi
2928 rm -f conftest*
2929
2930 ;;
2931 esac
2932 if test "$ipv6type" != "unknown"; then
2933 break
2934 fi
2935 done
2936 echo "$as_me:2936: result: $ipv6type" >&5
2937 echo "${ECHO_T}$ipv6type" >&6
2938 fi
2939
2940 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
2941 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
2942 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
2943 echo "You have $ipv6lib library, using it"
2944 else
2945 if test "$ipv6trylibc" = "yes"; then
2946 echo "You do not have $ipv6lib library, using libc"
2947 else
2948 echo 'Fatal: no $ipv6lib library found. cannot continue.'
2949 echo "You need to fetch lib$ipv6lib.a from appropriate"
2950 echo 'ipv6 kit and compile beforehand.'
2951 exit 1
2952 fi
2953 fi
2954 fi
2955
2956 if test "$ipv6" = "yes"; then
2957 #
2958 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
2959 # function in libc; there are "ngetaddrinfo()" and
2960 # "ogetaddrinfo()" functions, and <netdb.h> #defines
2961 # "getaddrinfo" to be either "ngetaddrinfo" or
2962 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
2963 # or _XOPEN_SOURCE_EXTENDED are defined or not.
2964 #
2965 # So this test doesn't work on Tru64 5.1, and possibly
2966 # on other 5.x releases. This causes the configure
2967 # script to become confused, and results in libpcap
2968 # being unbuildable.
2969 #
2970 echo "$as_me:2970: checking for library containing getaddrinfo" >&5
2971 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
2972 if test "${ac_cv_search_getaddrinfo+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 ac_func_search_save_LIBS=$LIBS
2976 ac_cv_search_getaddrinfo=no
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2980
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 #ifdef __cplusplus
2983 extern "C"
2984 #endif
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2987 char getaddrinfo ();
2988 int
2989 main ()
2990 {
2991 getaddrinfo ();
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.$ac_objext conftest$ac_exeext
2997 if { (eval echo "$as_me:2997: \"$ac_link\"") >&5
2998 (eval $ac_link) 2>&5
2999 ac_status=$?
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest$ac_exeext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 ac_cv_search_getaddrinfo="none required"
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 fi
3013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3014 if test "$ac_cv_search_getaddrinfo" = no; then
3015 for ac_lib in socket; do
3016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3017 cat >conftest.$ac_ext <<_ACEOF
3018 #line 3018 "configure"
3019 #include "confdefs.h"
3020
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 #ifdef __cplusplus
3023 extern "C"
3024 #endif
3025 /* We use char because int might match the return type of a gcc2
3026 builtin and then its argument prototype would still apply. */
3027 char getaddrinfo ();
3028 int
3029 main ()
3030 {
3031 getaddrinfo ();
3032 ;
3033 return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext conftest$ac_exeext
3037 if { (eval echo "$as_me:3037: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3039 ac_status=$?
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest$ac_exeext'
3043 { (eval echo "$as_me:3043: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_search_getaddrinfo="-l$ac_lib"
3049 break
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 fi
3054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3055 done
3056 fi
3057 LIBS=$ac_func_search_save_LIBS
3058 fi
3059 echo "$as_me:3059: result: $ac_cv_search_getaddrinfo" >&5
3060 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
3061 if test "$ac_cv_search_getaddrinfo" != no; then
3062 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
3063 echo "$as_me:3063: checking getaddrinfo bug" >&5
3064 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
3065 if test "${td_cv_buggygetaddrinfo+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test "$cross_compiling" = yes; then
3069 td_cv_buggygetaddrinfo=yes
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line 3072 "configure"
3073 #include "confdefs.h"
3074
3075 #include <sys/types.h>
3076 #include <netdb.h>
3077 #include <string.h>
3078 #include <sys/socket.h>
3079 #include <netinet/in.h>
3080
3081 main()
3082 {
3083 int passive, gaierr, inet4 = 0, inet6 = 0;
3084 struct addrinfo hints, *ai, *aitop;
3085 char straddr[INET6_ADDRSTRLEN], strport[16];
3086
3087 for (passive = 0; passive <= 1; passive++) {
3088 memset(&hints, 0, sizeof(hints));
3089 hints.ai_family = AF_UNSPEC;
3090 hints.ai_flags = passive ? AI_PASSIVE : 0;
3091 hints.ai_socktype = SOCK_STREAM;
3092 hints.ai_protocol = IPPROTO_TCP;
3093 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
3094 (void)gai_strerror(gaierr);
3095 goto bad;
3096 }
3097 for (ai = aitop; ai; ai = ai->ai_next) {
3098 if (ai->ai_addr == NULL ||
3099 ai->ai_addrlen == 0 ||
3100 getnameinfo(ai->ai_addr, ai->ai_addrlen,
3101 straddr, sizeof(straddr), strport, sizeof(strport),
3102 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
3103 goto bad;
3104 }
3105 switch (ai->ai_family) {
3106 case AF_INET:
3107 if (strcmp(strport, "54321") != 0) {
3108 goto bad;
3109 }
3110 if (passive) {
3111 if (strcmp(straddr, "0.0.0.0") != 0) {
3112 goto bad;
3113 }
3114 } else {
3115 if (strcmp(straddr, "127.0.0.1") != 0) {
3116 goto bad;
3117 }
3118 }
3119 inet4++;
3120 break;
3121 case AF_INET6:
3122 if (strcmp(strport, "54321") != 0) {
3123 goto bad;
3124 }
3125 if (passive) {
3126 if (strcmp(straddr, "::") != 0) {
3127 goto bad;
3128 }
3129 } else {
3130 if (strcmp(straddr, "::1") != 0) {
3131 goto bad;
3132 }
3133 }
3134 inet6++;
3135 break;
3136 case AF_UNSPEC:
3137 goto bad;
3138 break;
3139 #ifdef AF_UNIX
3140 case AF_UNIX:
3141 #else
3142 #ifdef AF_LOCAL
3143 case AF_LOCAL:
3144 #endif
3145 #endif
3146 default:
3147 /* another family support? */
3148 break;
3149 }
3150 }
3151 }
3152
3153 /* supported family should be 2, unsupported family should be 0 */
3154 if (!(inet4 == 0 || inet4 == 2))
3155 goto bad;
3156 if (!(inet6 == 0 || inet6 == 2))
3157 goto bad;
3158
3159 if (aitop)
3160 freeaddrinfo(aitop);
3161 exit(0);
3162
3163 bad:
3164 if (aitop)
3165 freeaddrinfo(aitop);
3166 exit(1);
3167 }
3168
3169 _ACEOF
3170 rm -f conftest$ac_exeext
3171 if { (eval echo "$as_me:3171: \"$ac_link\"") >&5
3172 (eval $ac_link) 2>&5
3173 ac_status=$?
3174 echo "$as_me:3174: \$? = $ac_status" >&5
3175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3176 { (eval echo "$as_me:3176: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:3179: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 td_cv_buggygetaddrinfo=no
3182 else
3183 echo "$as_me: program exited with status $ac_status" >&5
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 td_cv_buggygetaddrinfo=yes
3187 fi
3188 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3189 fi
3190 fi
3191
3192 if test "$td_cv_buggygetaddrinfo" = no; then
3193 echo "$as_me:3193: result: good" >&5
3194 echo "${ECHO_T}good" >&6
3195 else
3196 echo "$as_me:3196: result: buggy" >&5
3197 echo "${ECHO_T}buggy" >&6
3198 fi
3199
3200 if test "$td_cv_buggygetaddrinfo" = "yes"; then
3201 #
3202 # XXX - it doesn't appear that "ipv6type" can ever be
3203 # set to "linux". Should this be testing for
3204 # "linux-glibc", or for that *or* "linux-libinet6"?
3205 # If the latter, note that "linux-libinet6" is also
3206 # the type given to some non-Linux OSes.
3207 #
3208 if test "$ipv6type" != "linux"; then
3209 echo 'Fatal: You must get working getaddrinfo() function.'
3210 echo ' or you can specify "--disable-ipv6"'.
3211 exit 1
3212 else
3213 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
3214 echo ' Better upgrade your system library to newest version'
3215 echo ' of GNU C library (aka glibc).'
3216 fi
3217 fi
3218
3219 fi
3220
3221 for ac_func in getaddrinfo getnameinfo
3222 do
3223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3224 echo "$as_me:3224: checking for $ac_func" >&5
3225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3226 if eval "test \"\${$as_ac_var+set}\" = set"; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 #line 3230 "configure"
3231 #include "confdefs.h"
3232 /* System header to define __stub macros and hopefully few prototypes,
3233 which can conflict with char $ac_func (); below. */
3234 #include <assert.h>
3235 /* Override any gcc2 internal prototype to avoid an error. */
3236 #ifdef __cplusplus
3237 extern "C"
3238 #endif
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241 char $ac_func ();
3242 char (*f) ();
3243
3244 int
3245 main ()
3246 {
3247 /* The GNU C library defines this for functions which it implements
3248 to always fail with ENOSYS. Some functions are actually named
3249 something starting with __ and the normal name is an alias. */
3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3251 choke me
3252 #else
3253 f = $ac_func;
3254 #endif
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.$ac_objext conftest$ac_exeext
3261 if { (eval echo "$as_me:3261: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>&5
3263 ac_status=$?
3264 echo "$as_me:3264: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest$ac_exeext'
3267 { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 eval "$as_ac_var=yes"
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 eval "$as_ac_var=no"
3277 fi
3278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3279 fi
3280 echo "$as_me:3280: result: `eval echo '${'$as_ac_var'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3282 if test `eval echo '${'$as_ac_var'}'` = yes; then
3283 cat >>confdefs.h <<EOF
3284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3285 EOF
3286
3287 else
3288 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3289 fi
3290 done
3291
3292 fi
3293
3294 echo "$as_me:3294: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
3295 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
3296 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 cat >conftest.$ac_ext <<_ACEOF
3300 #line 3300 "configure"
3301 #include "confdefs.h"
3302 #include <netdnet/dnetdb.h>
3303
3304 _ACEOF
3305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3306 egrep "dnet_htoa" >/dev/null 2>&1; then
3307 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
3308 else
3309 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
3310 fi
3311 rm -f conftest*
3312
3313 fi
3314 echo "$as_me:3314: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
3315 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
3316 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
3317 cat >>confdefs.h <<\EOF
3318 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
3319 EOF
3320
3321 fi
3322
3323 echo "$as_me:3323: checking for ANSI C header files" >&5
3324 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3325 if test "${ac_cv_header_stdc+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3331 #include <stdlib.h>
3332 #include <stdarg.h>
3333 #include <string.h>
3334 #include <float.h>
3335
3336 _ACEOF
3337 if { (eval echo "$as_me:3337: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3339 ac_status=$?
3340 egrep -v '^ *\+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev/null; then
3345 if test -s conftest.err; then
3346 ac_cpp_err=$ac_c_preproc_warn_flag
3347 else
3348 ac_cpp_err=
3349 fi
3350 else
3351 ac_cpp_err=yes
3352 fi
3353 if test -z "$ac_cpp_err"; then
3354 ac_cv_header_stdc=yes
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3358 ac_cv_header_stdc=no
3359 fi
3360 rm -f conftest.err conftest.$ac_ext
3361
3362 if test $ac_cv_header_stdc = yes; then
3363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364 cat >conftest.$ac_ext <<_ACEOF
3365 #line 3365 "configure"
3366 #include "confdefs.h"
3367 #include <string.h>
3368
3369 _ACEOF
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "memchr" >/dev/null 2>&1; then
3372 :
3373 else
3374 ac_cv_header_stdc=no
3375 fi
3376 rm -f conftest*
3377
3378 fi
3379
3380 if test $ac_cv_header_stdc = yes; then
3381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line 3383 "configure"
3384 #include "confdefs.h"
3385 #include <stdlib.h>
3386
3387 _ACEOF
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "free" >/dev/null 2>&1; then
3390 :
3391 else
3392 ac_cv_header_stdc=no
3393 fi
3394 rm -f conftest*
3395
3396 fi
3397
3398 if test $ac_cv_header_stdc = yes; then
3399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3400 if test "$cross_compiling" = yes; then
3401 :
3402 else
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line 3404 "configure"
3405 #include "confdefs.h"
3406 #include <ctype.h>
3407 #if ((' ' & 0x0FF) == 0x020)
3408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3410 #else
3411 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3412 || ('j' <= (c) && (c) <= 'r') \
3413 || ('s' <= (c) && (c) <= 'z'))
3414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3415 #endif
3416
3417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3418 int
3419 main ()
3420 {
3421 int i;
3422 for (i = 0; i < 256; i++)
3423 if (XOR (islower (i), ISLOWER (i))
3424 || toupper (i) != TOUPPER (i))
3425 exit(2);
3426 exit (0);
3427 }
3428 _ACEOF
3429 rm -f conftest$ac_exeext
3430 if { (eval echo "$as_me:3430: \"$ac_link\"") >&5
3431 (eval $ac_link) 2>&5
3432 ac_status=$?
3433 echo "$as_me:3433: \$? = $ac_status" >&5
3434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3435 { (eval echo "$as_me:3435: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:3438: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 :
3441 else
3442 echo "$as_me: program exited with status $ac_status" >&5
3443 echo "$as_me: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 ac_cv_header_stdc=no
3446 fi
3447 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 fi
3450 fi
3451 echo "$as_me:3451: result: $ac_cv_header_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3453 if test $ac_cv_header_stdc = yes; then
3454
3455 cat >>confdefs.h <<\EOF
3456 #define STDC_HEADERS 1
3457 EOF
3458
3459 fi
3460
3461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3462
3463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3464 inttypes.h stdint.h unistd.h
3465 do
3466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467 echo "$as_me:3467: checking for $ac_header" >&5
3468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line 3473 "configure"
3474 #include "confdefs.h"
3475 $ac_includes_default
3476 #include <$ac_header>
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:3479: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
3481 ac_status=$?
3482 echo "$as_me:3482: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:3485: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:3488: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 eval "$as_ac_Header=yes"
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 eval "$as_ac_Header=no"
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 echo "$as_me:3498: result: `eval echo '${'$as_ac_Header'}'`" >&5
3499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3501 cat >>confdefs.h <<EOF
3502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3503 EOF
3504
3505 fi
3506 done
3507
3508 echo "$as_me:3508: checking for char" >&5
3509 echo $ECHO_N "checking for char... $ECHO_C" >&6
3510 if test "${ac_cv_type_char+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 cat >conftest.$ac_ext <<_ACEOF
3514 #line 3514 "configure"
3515 #include "confdefs.h"
3516 $ac_includes_default
3517 int
3518 main ()
3519 {
3520 if ((char *) 0)
3521 return 0;
3522 if (sizeof (char))
3523 return 0;
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (eval echo "$as_me:3529: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>&5
3531 ac_status=$?
3532 echo "$as_me:3532: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:3535: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_type_char=yes
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 ac_cv_type_char=no
3545 fi
3546 rm -f conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 echo "$as_me:3548: result: $ac_cv_type_char" >&5
3549 echo "${ECHO_T}$ac_cv_type_char" >&6
3550
3551 echo "$as_me:3551: checking size of char" >&5
3552 echo $ECHO_N "checking size of char... $ECHO_C" >&6
3553 if test "${ac_cv_sizeof_char+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test "$ac_cv_type_char" = yes; then
3557 if test "$cross_compiling" = yes; then
3558 # Depending upon the size, compute the lo and hi bounds.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line 3560 "configure"
3561 #include "confdefs.h"
3562 $ac_includes_default
3563 int
3564 main ()
3565 {
3566 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
3574 ac_status=$?
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_lo=0 ac_mid=0
3584 while :; do
3585 cat >conftest.$ac_ext <<_ACEOF
3586 #line 3586 "configure"
3587 #include "confdefs.h"
3588 $ac_includes_default
3589 int
3590 main ()
3591 {
3592 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:3598: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3600 ac_status=$?
3601 echo "$as_me:3601: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:3604: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:3607: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_hi=$ac_mid; break
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3614 fi
3615 rm -f conftest.$ac_objext conftest.$ac_ext
3616 done
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 ac_hi=-1 ac_mid=-1
3621 while :; do
3622 cat >conftest.$ac_ext <<_ACEOF
3623 #line 3623 "configure"
3624 #include "confdefs.h"
3625 $ac_includes_default
3626 int
3627 main ()
3628 {
3629 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:3635: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3637 ac_status=$?
3638 echo "$as_me:3638: \$? = $ac_status" >&5
3639 (exit $ac_status); } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:3641: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:3644: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_lo=$ac_mid; break
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3651 fi
3652 rm -f conftest.$ac_objext conftest.$ac_ext
3653 done
3654 fi
3655 rm -f conftest.$ac_objext conftest.$ac_ext
3656 # Binary search between lo and hi bounds.
3657 while test "x$ac_lo" != "x$ac_hi"; do
3658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line 3660 "configure"
3661 #include "confdefs.h"
3662 $ac_includes_default
3663 int
3664 main ()
3665 {
3666 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
3674 ac_status=$?
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_hi=$ac_mid
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3687 ac_lo=`expr $ac_mid + 1`
3688 fi
3689 rm -f conftest.$ac_objext conftest.$ac_ext
3690 done
3691 ac_cv_sizeof_char=$ac_lo
3692 else
3693 if test "$cross_compiling" = yes; then
3694 { { echo "$as_me:3694: error: cannot run test program while cross compiling" >&5
3695 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3696 { (exit 1); exit 1; }; }
3697 else
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line 3699 "configure"
3700 #include "confdefs.h"
3701 $ac_includes_default
3702 int
3703 main ()
3704 {
3705 FILE *f = fopen ("conftest.val", "w");
3706 if (!f)
3707 exit (1);
3708 fprintf (f, "%d", (sizeof (char)));
3709 fclose (f);
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest$ac_exeext
3715 if { (eval echo "$as_me:3715: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3720 { (eval echo "$as_me:3720: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_sizeof_char=`cat conftest.val`
3726 else
3727 echo "$as_me: program exited with status $ac_status" >&5
3728 echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 fi
3731 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3732 fi
3733 fi
3734 rm -f conftest.val
3735 else
3736 ac_cv_sizeof_char=0
3737 fi
3738 fi
3739 echo "$as_me:3739: result: $ac_cv_sizeof_char" >&5
3740 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
3741 cat >>confdefs.h <<EOF
3742 #define SIZEOF_CHAR $ac_cv_sizeof_char
3743 EOF
3744
3745 echo "$as_me:3745: checking for short" >&5
3746 echo $ECHO_N "checking for short... $ECHO_C" >&6
3747 if test "${ac_cv_type_short+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 #line 3751 "configure"
3752 #include "confdefs.h"
3753 $ac_includes_default
3754 int
3755 main ()
3756 {
3757 if ((short *) 0)
3758 return 0;
3759 if (sizeof (short))
3760 return 0;
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3768 ac_status=$?
3769 echo "$as_me:3769: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:3772: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:3775: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_type_short=yes
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 ac_cv_type_short=no
3782 fi
3783 rm -f conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 echo "$as_me:3785: result: $ac_cv_type_short" >&5
3786 echo "${ECHO_T}$ac_cv_type_short" >&6
3787
3788 echo "$as_me:3788: checking size of short" >&5
3789 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3790 if test "${ac_cv_sizeof_short+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if test "$ac_cv_type_short" = yes; then
3794 if test "$cross_compiling" = yes; then
3795 # Depending upon the size, compute the lo and hi bounds.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3799 $ac_includes_default
3800 int
3801 main ()
3802 {
3803 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3811 ac_status=$?
3812 echo "$as_me:3812: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:3815: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_lo=0 ac_mid=0
3821 while :; do
3822 cat >conftest.$ac_ext <<_ACEOF
3823 #line 3823 "configure"
3824 #include "confdefs.h"
3825 $ac_includes_default
3826 int
3827 main ()
3828 {
3829 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:3835: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3837 ac_status=$?
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:3841: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:3844: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_hi=$ac_mid; break
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3851 fi
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3853 done
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 ac_hi=-1 ac_mid=-1
3858 while :; do
3859 cat >conftest.$ac_ext <<_ACEOF
3860 #line 3860 "configure"
3861 #include "confdefs.h"
3862 $ac_includes_default
3863 int
3864 main ()
3865 {
3866 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:3872: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:3875: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:3878: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:3881: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_lo=$ac_mid; break
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3888 fi
3889 rm -f conftest.$ac_objext conftest.$ac_ext
3890 done
3891 fi
3892 rm -f conftest.$ac_objext conftest.$ac_ext
3893 # Binary search between lo and hi bounds.
3894 while test "x$ac_lo" != "x$ac_hi"; do
3895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3896 cat >conftest.$ac_ext <<_ACEOF
3897 #line 3897 "configure"
3898 #include "confdefs.h"
3899 $ac_includes_default
3900 int
3901 main ()
3902 {
3903 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:3909: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3911 ac_status=$?
3912 echo "$as_me:3912: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -s conftest.$ac_objext'
3915 { (eval echo "$as_me:3915: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_hi=$ac_mid
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3924 ac_lo=`expr $ac_mid + 1`
3925 fi
3926 rm -f conftest.$ac_objext conftest.$ac_ext
3927 done
3928 ac_cv_sizeof_short=$ac_lo
3929 else
3930 if test "$cross_compiling" = yes; then
3931 { { echo "$as_me:3931: error: cannot run test program while cross compiling" >&5
3932 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3933 { (exit 1); exit 1; }; }
3934 else
3935 cat >conftest.$ac_ext <<_ACEOF
3936 #line 3936 "configure"
3937 #include "confdefs.h"
3938 $ac_includes_default
3939 int
3940 main ()
3941 {
3942 FILE *f = fopen ("conftest.val", "w");
3943 if (!f)
3944 exit (1);
3945 fprintf (f, "%d", (sizeof (short)));
3946 fclose (f);
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest$ac_exeext
3952 if { (eval echo "$as_me:3952: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>&5
3954 ac_status=$?
3955 echo "$as_me:3955: \$? = $ac_status" >&5
3956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3957 { (eval echo "$as_me:3957: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:3960: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_sizeof_short=`cat conftest.val`
3963 else
3964 echo "$as_me: program exited with status $ac_status" >&5
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 fi
3968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 fi
3971 rm -f conftest.val
3972 else
3973 ac_cv_sizeof_short=0
3974 fi
3975 fi
3976 echo "$as_me:3976: result: $ac_cv_sizeof_short" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3978 cat >>confdefs.h <<EOF
3979 #define SIZEOF_SHORT $ac_cv_sizeof_short
3980 EOF
3981
3982 echo "$as_me:3982: checking for int" >&5
3983 echo $ECHO_N "checking for int... $ECHO_C" >&6
3984 if test "${ac_cv_type_int+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3990 $ac_includes_default
3991 int
3992 main ()
3993 {
3994 if ((int *) 0)
3995 return 0;
3996 if (sizeof (int))
3997 return 0;
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (eval echo "$as_me:4003: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>&5
4005 ac_status=$?
4006 echo "$as_me:4006: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:4009: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:4012: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_type_int=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 ac_cv_type_int=no
4019 fi
4020 rm -f conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 echo "$as_me:4022: result: $ac_cv_type_int" >&5
4023 echo "${ECHO_T}$ac_cv_type_int" >&6
4024
4025 echo "$as_me:4025: checking size of int" >&5
4026 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_int+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test "$ac_cv_type_int" = yes; then
4031 if test "$cross_compiling" = yes; then
4032 # Depending upon the size, compute the lo and hi bounds.
4033 cat >conftest.$ac_ext <<_ACEOF
4034 #line 4034 "configure"
4035 #include "confdefs.h"
4036 $ac_includes_default
4037 int
4038 main ()
4039 {
4040 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4048 ac_status=$?
4049 echo "$as_me:4049: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:4052: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_lo=0 ac_mid=0
4058 while :; do
4059 cat >conftest.$ac_ext <<_ACEOF
4060 #line 4060 "configure"
4061 #include "confdefs.h"
4062 $ac_includes_default
4063 int
4064 main ()
4065 {
4066 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:4072: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:4075: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:4078: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:4081: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_hi=$ac_mid; break
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4087 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4088 fi
4089 rm -f conftest.$ac_objext conftest.$ac_ext
4090 done
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 ac_hi=-1 ac_mid=-1
4095 while :; do
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line 4097 "configure"
4098 #include "confdefs.h"
4099 $ac_includes_default
4100 int
4101 main ()
4102 {
4103 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:4109: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>&5
4111 ac_status=$?
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:4115: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:4118: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_lo=$ac_mid; break
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4124 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4125 fi
4126 rm -f conftest.$ac_objext conftest.$ac_ext
4127 done
4128 fi
4129 rm -f conftest.$ac_objext conftest.$ac_ext
4130 # Binary search between lo and hi bounds.
4131 while test "x$ac_lo" != "x$ac_hi"; do
4132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line 4134 "configure"
4135 #include "confdefs.h"
4136 $ac_includes_default
4137 int
4138 main ()
4139 {
4140 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4148 ac_status=$?
4149 echo "$as_me:4149: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:4152: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:4155: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_hi=$ac_mid
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 ac_lo=`expr $ac_mid + 1`
4162 fi
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4164 done
4165 ac_cv_sizeof_int=$ac_lo
4166 else
4167 if test "$cross_compiling" = yes; then
4168 { { echo "$as_me:4168: error: cannot run test program while cross compiling" >&5
4169 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4170 { (exit 1); exit 1; }; }
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 #line 4173 "configure"
4174 #include "confdefs.h"
4175 $ac_includes_default
4176 int
4177 main ()
4178 {
4179 FILE *f = fopen ("conftest.val", "w");
4180 if (!f)
4181 exit (1);
4182 fprintf (f, "%d", (sizeof (int)));
4183 fclose (f);
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest$ac_exeext
4189 if { (eval echo "$as_me:4189: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4191 ac_status=$?
4192 echo "$as_me:4192: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (eval echo "$as_me:4194: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:4197: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_sizeof_int=`cat conftest.val`
4200 else
4201 echo "$as_me: program exited with status $ac_status" >&5
4202 echo "$as_me: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4204 fi
4205 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 fi
4208 rm -f conftest.val
4209 else
4210 ac_cv_sizeof_int=0
4211 fi
4212 fi
4213 echo "$as_me:4213: result: $ac_cv_sizeof_int" >&5
4214 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4215 cat >>confdefs.h <<EOF
4216 #define SIZEOF_INT $ac_cv_sizeof_int
4217 EOF
4218
4219 echo "$as_me:4219: checking for long" >&5
4220 echo $ECHO_N "checking for long... $ECHO_C" >&6
4221 if test "${ac_cv_type_long+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line 4225 "configure"
4226 #include "confdefs.h"
4227 $ac_includes_default
4228 int
4229 main ()
4230 {
4231 if ((long *) 0)
4232 return 0;
4233 if (sizeof (long))
4234 return 0;
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 rm -f conftest.$ac_objext
4240 if { (eval echo "$as_me:4240: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>&5
4242 ac_status=$?
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:4246: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_type_long=yes
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 ac_cv_type_long=no
4256 fi
4257 rm -f conftest.$ac_objext conftest.$ac_ext
4258 fi
4259 echo "$as_me:4259: result: $ac_cv_type_long" >&5
4260 echo "${ECHO_T}$ac_cv_type_long" >&6
4261
4262 echo "$as_me:4262: checking size of long" >&5
4263 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4264 if test "${ac_cv_sizeof_long+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test "$ac_cv_type_long" = yes; then
4268 if test "$cross_compiling" = yes; then
4269 # Depending upon the size, compute the lo and hi bounds.
4270 cat >conftest.$ac_ext <<_ACEOF
4271 #line 4271 "configure"
4272 #include "confdefs.h"
4273 $ac_includes_default
4274 int
4275 main ()
4276 {
4277 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:4283: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4285 ac_status=$?
4286 echo "$as_me:4286: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:4289: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:4292: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_lo=0 ac_mid=0
4295 while :; do
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line 4297 "configure"
4298 #include "confdefs.h"
4299 $ac_includes_default
4300 int
4301 main ()
4302 {
4303 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (eval echo "$as_me:4309: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4311 ac_status=$?
4312 echo "$as_me:4312: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:4315: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:4318: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_hi=$ac_mid; break
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4324 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4325 fi
4326 rm -f conftest.$ac_objext conftest.$ac_ext
4327 done
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 ac_hi=-1 ac_mid=-1
4332 while :; do
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line 4334 "configure"
4335 #include "confdefs.h"
4336 $ac_includes_default
4337 int
4338 main ()
4339 {
4340 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest.$ac_objext
4346 if { (eval echo "$as_me:4346: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>&5
4348 ac_status=$?
4349 echo "$as_me:4349: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:4352: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:4355: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_lo=$ac_mid; break
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4362 fi
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4364 done
4365 fi
4366 rm -f conftest.$ac_objext conftest.$ac_ext
4367 # Binary search between lo and hi bounds.
4368 while test "x$ac_lo" != "x$ac_hi"; do
4369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line 4371 "configure"
4372 #include "confdefs.h"
4373 $ac_includes_default
4374 int
4375 main ()
4376 {
4377 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:4383: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>&5
4385 ac_status=$?
4386 echo "$as_me:4386: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:4389: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:4392: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_hi=$ac_mid
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 ac_lo=`expr $ac_mid + 1`
4399 fi
4400 rm -f conftest.$ac_objext conftest.$ac_ext
4401 done
4402 ac_cv_sizeof_long=$ac_lo
4403 else
4404 if test "$cross_compiling" = yes; then
4405 { { echo "$as_me:4405: error: cannot run test program while cross compiling" >&5
4406 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4407 { (exit 1); exit 1; }; }
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line 4410 "configure"
4411 #include "confdefs.h"
4412 $ac_includes_default
4413 int
4414 main ()
4415 {
4416 FILE *f = fopen ("conftest.val", "w");
4417 if (!f)
4418 exit (1);
4419 fprintf (f, "%d", (sizeof (long)));
4420 fclose (f);
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest$ac_exeext
4426 if { (eval echo "$as_me:4426: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
4428 ac_status=$?
4429 echo "$as_me:4429: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_sizeof_long=`cat conftest.val`
4437 else
4438 echo "$as_me: program exited with status $ac_status" >&5
4439 echo "$as_me: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 fi
4442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 fi
4445 rm -f conftest.val
4446 else
4447 ac_cv_sizeof_long=0
4448 fi
4449 fi
4450 echo "$as_me:4450: result: $ac_cv_sizeof_long" >&5
4451 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4452 cat >>confdefs.h <<EOF
4453 #define SIZEOF_LONG $ac_cv_sizeof_long
4454 EOF
4455
4456 echo "$as_me:4456: checking for addrinfo" >&5
4457 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
4458 if test "${ac_cv_addrinfo+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line 4462 "configure"
4463 #include "confdefs.h"
4464
4465 # include <netdb.h>
4466 int
4467 main ()
4468 {
4469 struct addrinfo a
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (eval echo "$as_me:4475: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
4477 ac_status=$?
4478 echo "$as_me:4478: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:4481: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_addrinfo=yes
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 ac_cv_addrinfo=no
4491 fi
4492 rm -f conftest.$ac_objext conftest.$ac_ext
4493 fi
4494
4495 echo "$as_me:4495: result: $ac_cv_addrinfo" >&5
4496 echo "${ECHO_T}$ac_cv_addrinfo" >&6
4497 if test $ac_cv_addrinfo = yes; then
4498 cat >>confdefs.h <<\EOF
4499 #define HAVE_ADDRINFO 1
4500 EOF
4501
4502 else
4503 cat >>confdefs.h <<\EOF
4504 #define NEED_ADDRINFO_H 1
4505 EOF
4506
4507 fi
4508
4509 if test "$ac_cv_addrinfo" = no; then
4510 missing_includes=yes
4511 fi
4512
4513 echo "$as_me:4513: checking for NI_MAXSERV" >&5
4514 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
4515 if test "${ac_cv_maxserv+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 #line 4519 "configure"
4520 #include "confdefs.h"
4521 #include <netdb.h>
4522 #ifdef NI_MAXSERV
4523 yes
4524 #endif
4525 _ACEOF
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 egrep "yes" >/dev/null 2>&1; then
4528 ac_cv_maxserv=yes
4529 else
4530 ac_cv_maxserv=no
4531 fi
4532 rm -f conftest*
4533
4534 fi
4535
4536 echo "$as_me:4536: result: $ac_cv_maxserv" >&5
4537 echo "${ECHO_T}$ac_cv_maxserv" >&6
4538 if test $ac_cv_maxserv != yes; then
4539 cat >>confdefs.h <<\EOF
4540 #define NEED_ADDRINFO_H 1
4541 EOF
4542
4543 fi
4544
4545 if test "$ac_cv_maxserv" = no; then
4546 missing_includes=yes
4547 fi
4548
4549 echo "$as_me:4549: checking for NI_NAMEREQD" >&5
4550 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
4551 if test "${ac_cv_namereqd+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line 4555 "configure"
4556 #include "confdefs.h"
4557 #include <netdb.h>
4558 #ifdef NI_NOFQDN
4559 yes
4560 #endif
4561 _ACEOF
4562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4563 egrep "yes" >/dev/null 2>&1; then
4564 ac_cv_namereqd=yes
4565 else
4566 ac_cv_namereqd=no
4567 fi
4568 rm -f conftest*
4569
4570 fi
4571
4572 echo "$as_me:4572: result: $ac_cv_namereqd" >&5
4573 echo "${ECHO_T}$ac_cv_namereqd" >&6
4574 if test $ac_cv_namereqd != yes; then
4575 cat >>confdefs.h <<\EOF
4576 #define NEED_ADDRINFO_H 1
4577 EOF
4578
4579 fi
4580
4581 if test "$ac_cv_namereqd" = no; then
4582 missing_includes=yes
4583 fi
4584
4585 echo "$as_me:4585: checking for sockaddr_storage" >&5
4586 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
4587 if test "${ac_cv_sa_storage+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 cat >conftest.$ac_ext <<_ACEOF
4591 #line 4591 "configure"
4592 #include "confdefs.h"
4593
4594 # include <sys/types.h>
4595 # include <sys/socket.h>
4596 int
4597 main ()
4598 {
4599 struct sockaddr_storage s
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:4605: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>&5
4607 ac_status=$?
4608 echo "$as_me:4608: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:4611: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:4614: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_sa_storage=yes
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 ac_cv_sa_storage=no
4621 fi
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4623 fi
4624
4625 echo "$as_me:4625: result: $ac_cv_sa_storage" >&5
4626 echo "${ECHO_T}$ac_cv_sa_storage" >&6
4627 if test $ac_cv_sa_storage = yes; then
4628 cat >>confdefs.h <<\EOF
4629 #define HAVE_SOCKADDR_STORAGE 1
4630 EOF
4631
4632 fi
4633
4634 if test "$ac_cv_sa_storage" = no; then
4635 missing_includes=yes
4636 fi
4637
4638 ac_cv_addrsz=yes
4639 echo "$as_me:4639: checking for INADDRSZ" >&5
4640 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
4641 if test "${ac_cv_inaddrsz+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line 4645 "configure"
4646 #include "confdefs.h"
4647
4648 # include <arpa/nameser.h>
4649 int
4650 main ()
4651 {
4652 int a = INADDRSZ
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:4658: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
4660 ac_status=$?
4661 echo "$as_me:4661: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:4664: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:4667: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_cv_inaddrsz=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 ac_cv_inaddrsz=no
4674 fi
4675 rm -f conftest.$ac_objext conftest.$ac_ext
4676 fi
4677
4678 echo "$as_me:4678: result: $ac_cv_inaddrsz" >&5
4679 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
4680 if test $ac_cv_inaddrsz = yes; then
4681 cat >>confdefs.h <<\EOF
4682 #define HAVE_INADDRSZ 1
4683 EOF
4684
4685 else
4686 ac_cv_addrsz=no
4687 fi
4688 echo "$as_me:4688: checking for IN6ADDRSZ" >&5
4689 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
4690 if test "${ac_cv_in6addrsz+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 cat >conftest.$ac_ext <<_ACEOF
4694 #line 4694 "configure"
4695 #include "confdefs.h"
4696
4697 # include <arpa/nameser.h>
4698 int
4699 main ()
4700 {
4701 int a = IN6ADDRSZ
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:4707: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4709 ac_status=$?
4710 echo "$as_me:4710: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:4713: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:4716: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_cv_in6addrsz=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_cv_in6addrsz=no
4723 fi
4724 rm -f conftest.$ac_objext conftest.$ac_ext
4725 fi
4726
4727 echo "$as_me:4727: result: $ac_cv_in6addrsz" >&5
4728 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
4729 if test $ac_cv_in6addrsz = yes; then
4730 cat >>confdefs.h <<\EOF
4731 #define HAVE_IN6ADDRSZ 1
4732 EOF
4733
4734 else
4735 ac_cv_addrsz=no
4736 fi
4737
4738 if test "$ac_cv_addrsz" = no; then
4739 missing_includes=yes
4740 fi
4741
4742 echo "$as_me:4742: checking for RES_USE_INET6" >&5
4743 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
4744 if test "${ac_cv_res_inet6+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line 4748 "configure"
4749 #include "confdefs.h"
4750
4751 # include <sys/types.h>
4752 # include <netinet/in.h>
4753 # include <resolv.h>
4754 int
4755 main ()
4756 {
4757 int a = RES_USE_INET6
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:4763: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>&5
4765 ac_status=$?
4766 echo "$as_me:4766: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:4769: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 ac_cv_res_inet6=yes
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778 ac_cv_res_inet6=no
4779 fi
4780 rm -f conftest.$ac_objext conftest.$ac_ext
4781 fi
4782
4783 echo "$as_me:4783: result: $ac_cv_res_inet6" >&5
4784 echo "${ECHO_T}$ac_cv_res_inet6" >&6
4785 if test $ac_cv_res_inet6 = yes; then
4786 cat >>confdefs.h <<\EOF
4787 #define HAVE_RES_USE_INET6 1
4788 EOF
4789
4790 fi
4791
4792 if test "$ac_cv_res_inet6" = no; then
4793 missing_includes=yes
4794 fi
4795
4796 echo "$as_me:4796: checking for res_state_ext" >&5
4797 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
4798 if test "${ac_cv_res_state_ext+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 #line 4802 "configure"
4803 #include "confdefs.h"
4804
4805 # include <sys/types.h>
4806 # include <netinet/in.h>
4807 # include <netinet6/in6.h>
4808 # include <resolv.h>
4809 int
4810 main ()
4811 {
4812 struct __res_state_ext e
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:4818: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:4821: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:4824: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_res_state_ext=yes
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 ac_cv_res_state_ext=no
4834 fi
4835 rm -f conftest.$ac_objext conftest.$ac_ext
4836 fi
4837
4838 echo "$as_me:4838: result: $ac_cv_res_state_ext" >&5
4839 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
4840 if test $ac_cv_res_state_ext = yes; then
4841 cat >>confdefs.h <<\EOF
4842 #define HAVE_RES_STATE_EXT 1
4843 EOF
4844
4845 fi
4846
4847 if test "$ac_cv_res_state_ext" = no; then
4848 missing_includes=yes
4849 fi
4850
4851 echo "$as_me:4851: checking for nsort in res_state" >&5
4852 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
4853 if test "${ac_cv_res_state+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line 4857 "configure"
4858 #include "confdefs.h"
4859
4860 # include <sys/types.h>
4861 # include <netinet/in.h>
4862 # include <netinet6/in6.h>
4863 # include <resolv.h>
4864 int
4865 main ()
4866 {
4867 struct __res_state e; e.nsort = 0
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:4873: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4875 ac_status=$?
4876 echo "$as_me:4876: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:4879: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_res_state=yes
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 ac_cv_res_state=no
4889 fi
4890 rm -f conftest.$ac_objext conftest.$ac_ext
4891 fi
4892
4893 echo "$as_me:4893: result: $ac_cv_res_state" >&5
4894 echo "${ECHO_T}$ac_cv_res_state" >&6
4895 if test $ac_cv_res_state = yes; then
4896 cat >>confdefs.h <<\EOF
4897 #define HAVE_NEW_RES_STATE 1
4898 EOF
4899
4900 fi
4901
4902 if test "$missing_includes" = "yes"; then
4903 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
4904 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
4905 fi
4906
4907 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
4908 do
4909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4910 echo "$as_me:4910: checking for $ac_func" >&5
4911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_var+set}\" = set"; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 cat >conftest.$ac_ext <<_ACEOF
4916 #line 4916 "configure"
4917 #include "confdefs.h"
4918 /* System header to define __stub macros and hopefully few prototypes,
4919 which can conflict with char $ac_func (); below. */
4920 #include <assert.h>
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 #ifdef __cplusplus
4923 extern "C"
4924 #endif
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char $ac_func ();
4928 char (*f) ();
4929
4930 int
4931 main ()
4932 {
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 choke me
4938 #else
4939 f = $ac_func;
4940 #endif
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext conftest$ac_exeext
4947 if { (eval echo "$as_me:4947: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>&5
4949 ac_status=$?
4950 echo "$as_me:4950: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:4953: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:4956: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 eval "$as_ac_var=yes"
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4962 eval "$as_ac_var=no"
4963 fi
4964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4965 fi
4966 echo "$as_me:4966: result: `eval echo '${'$as_ac_var'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4968 if test `eval echo '${'$as_ac_var'}'` = yes; then
4969 cat >>confdefs.h <<EOF
4970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4971 EOF
4972
4973 else
4974 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4975 fi
4976 done
4977
4978 for ac_func in strftime
4979 do
4980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4981 echo "$as_me:4981: checking for $ac_func" >&5
4982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4983 if eval "test \"\${$as_ac_var+set}\" = set"; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line 4987 "configure"
4988 #include "confdefs.h"
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func (); below. */
4991 #include <assert.h>
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 #ifdef __cplusplus
4994 extern "C"
4995 #endif
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
4998 char $ac_func ();
4999 char (*f) ();
5000
5001 int
5002 main ()
5003 {
5004 /* The GNU C library defines this for functions which it implements
5005 to always fail with ENOSYS. Some functions are actually named
5006 something starting with __ and the normal name is an alias. */
5007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5008 choke me
5009 #else
5010 f = $ac_func;
5011 #endif
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (eval echo "$as_me:5018: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>&5
5020 ac_status=$?
5021 echo "$as_me:5021: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest$ac_exeext'
5024 { (eval echo "$as_me:5024: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_var=yes"
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 eval "$as_ac_var=no"
5034 fi
5035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5036 fi
5037 echo "$as_me:5037: result: `eval echo '${'$as_ac_var'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5039 if test `eval echo '${'$as_ac_var'}'` = yes; then
5040 cat >>confdefs.h <<EOF
5041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5042 EOF
5043
5044 fi
5045 done
5046
5047 for ac_func in ether_ntohost
5048 do
5049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5050 echo "$as_me:5050: checking for $ac_func" >&5
5051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_var+set}\" = set"; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line 5056 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func (); below. */
5060 #include <assert.h>
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 #ifdef __cplusplus
5063 extern "C"
5064 #endif
5065 /* We use char because int might match the return type of a gcc2
5066 builtin and then its argument prototype would still apply. */
5067 char $ac_func ();
5068 char (*f) ();
5069
5070 int
5071 main ()
5072 {
5073 /* The GNU C library defines this for functions which it implements
5074 to always fail with ENOSYS. Some functions are actually named
5075 something starting with __ and the normal name is an alias. */
5076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5077 choke me
5078 #else
5079 f = $ac_func;
5080 #endif
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:5087: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>&5
5089 ac_status=$?
5090 echo "$as_me:5090: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -s conftest$ac_exeext'
5093 { (eval echo "$as_me:5093: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:5096: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 eval "$as_ac_var=yes"
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 eval "$as_ac_var=no"
5103 fi
5104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5105 fi
5106 echo "$as_me:5106: result: `eval echo '${'$as_ac_var'}'`" >&5
5107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5108 if test `eval echo '${'$as_ac_var'}'` = yes; then
5109 cat >>confdefs.h <<EOF
5110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5111 EOF
5112
5113 echo "$as_me:5113: checking for buggy ether_ntohost" >&5
5114 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
5115 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118
5119 if test "$cross_compiling" = yes; then
5120 ac_cv_buggy_ether_ntohost="not while cross-compiling"
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 #line 5123 "configure"
5124 #include "confdefs.h"
5125
5126 #include <netdb.h>
5127 #include <sys/types.h>
5128 #include <sys/param.h>
5129 #include <sys/socket.h>
5130
5131 int
5132 main(int argc, char **argv)
5133 {
5134 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
5135 char name[MAXHOSTNAMELEN];
5136
5137 ether_ntohost(name, (struct ether_addr *)ea);
5138 exit(0);
5139 }
5140
5141 _ACEOF
5142 rm -f conftest$ac_exeext
5143 if { (eval echo "$as_me:5143: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
5145 ac_status=$?
5146 echo "$as_me:5146: \$? = $ac_status" >&5
5147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148 { (eval echo "$as_me:5148: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:5151: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_buggy_ether_ntohost=no
5154 else
5155 echo "$as_me: program exited with status $ac_status" >&5
5156 echo "$as_me: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 ac_cv_buggy_ether_ntohost=yes
5159 fi
5160 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 fi
5163 echo "$as_me:5163: result: $ac_cv_buggy_ether_ntohost" >&5
5164 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
5165 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
5166 cat >>confdefs.h <<\EOF
5167 #define USE_ETHER_NTOHOST 1
5168 EOF
5169
5170 fi
5171
5172 fi
5173 done
5174
5175 for ac_func in setlinebuf
5176 do
5177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5178 echo "$as_me:5178: checking for $ac_func" >&5
5179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5180 if eval "test \"\${$as_ac_var+set}\" = set"; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 cat >conftest.$ac_ext <<_ACEOF
5184 #line 5184 "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char $ac_func (); below. */
5188 #include <assert.h>
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 #ifdef __cplusplus
5191 extern "C"
5192 #endif
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5195 char $ac_func ();
5196 char (*f) ();
5197
5198 int
5199 main ()
5200 {
5201 /* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205 choke me
5206 #else
5207 f = $ac_func;
5208 #endif
5209
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:5215: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 echo "$as_me:5218: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:5221: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:5224: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 eval "$as_ac_var=yes"
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 eval "$as_ac_var=no"
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 fi
5234 echo "$as_me:5234: result: `eval echo '${'$as_ac_var'}'`" >&5
5235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5236 if test `eval echo '${'$as_ac_var'}'` = yes; then
5237 cat >>confdefs.h <<EOF
5238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5239 EOF
5240
5241 fi
5242 done
5243
5244 needsnprintf=no
5245
5246 for ac_func in vsnprintf snprintf
5247 do
5248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5249 echo "$as_me:5249: checking for $ac_func" >&5
5250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5251 if eval "test \"\${$as_ac_var+set}\" = set"; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line 5255 "configure"
5256 #include "confdefs.h"
5257 /* System header to define __stub macros and hopefully few prototypes,
5258 which can conflict with char $ac_func (); below. */
5259 #include <assert.h>
5260 /* Override any gcc2 internal prototype to avoid an error. */
5261 #ifdef __cplusplus
5262 extern "C"
5263 #endif
5264 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */
5266 char $ac_func ();
5267 char (*f) ();
5268
5269 int
5270 main ()
5271 {
5272 /* The GNU C library defines this for functions which it implements
5273 to always fail with ENOSYS. Some functions are actually named
5274 something starting with __ and the normal name is an alias. */
5275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5276 choke me
5277 #else
5278 f = $ac_func;
5279 #endif
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext conftest$ac_exeext
5286 if { (eval echo "$as_me:5286: \"$ac_link\"") >&5
5287 (eval $ac_link) 2>&5
5288 ac_status=$?
5289 echo "$as_me:5289: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try='test -s conftest$ac_exeext'
5292 { (eval echo "$as_me:5292: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:5295: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 eval "$as_ac_var=yes"
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 eval "$as_ac_var=no"
5302 fi
5303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5304 fi
5305 echo "$as_me:5305: result: `eval echo '${'$as_ac_var'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5307 if test `eval echo '${'$as_ac_var'}'` = yes; then
5308 cat >>confdefs.h <<EOF
5309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5310 EOF
5311
5312 else
5313 needsnprintf=yes
5314 fi
5315 done
5316
5317 if test $needsnprintf = yes; then
5318 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5319 fi
5320
5321 echo "$as_me:5321: checking return type of signal handlers" >&5
5322 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5323 if test "${ac_cv_type_signal+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line 5327 "configure"
5328 #include "confdefs.h"
5329 #include <sys/types.h>
5330 #include <signal.h>
5331 #ifdef signal
5332 # undef signal
5333 #endif
5334 #ifdef __cplusplus
5335 extern "C" void (*signal (int, void (*)(int)))(int);
5336 #else
5337 void (*signal ()) ();
5338 #endif
5339
5340 int
5341 main ()
5342 {
5343 int i;
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:5349: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>&5
5351 ac_status=$?
5352 echo "$as_me:5352: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:5355: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_type_signal=void
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364 ac_cv_type_signal=int
5365 fi
5366 rm -f conftest.$ac_objext conftest.$ac_ext
5367 fi
5368 echo "$as_me:5368: result: $ac_cv_type_signal" >&5
5369 echo "${ECHO_T}$ac_cv_type_signal" >&6
5370
5371 cat >>confdefs.h <<EOF
5372 #define RETSIGTYPE $ac_cv_type_signal
5373 EOF
5374
5375 if test "$ac_cv_type_signal" = void ; then
5376 cat >>confdefs.h <<\EOF
5377 #define RETSIGVAL
5378 EOF
5379
5380 else
5381 cat >>confdefs.h <<\EOF
5382 #define RETSIGVAL (0)
5383 EOF
5384
5385 fi
5386 case "$host_os" in
5387
5388 irix*)
5389 cat >>confdefs.h <<\EOF
5390 #define _BSD_SIGNALS 1
5391 EOF
5392
5393 ;;
5394
5395 *)
5396
5397 for ac_func in sigaction
5398 do
5399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5400 echo "$as_me:5400: checking for $ac_func" >&5
5401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_var+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 #line 5406 "configure"
5407 #include "confdefs.h"
5408 /* System header to define __stub macros and hopefully few prototypes,
5409 which can conflict with char $ac_func (); below. */
5410 #include <assert.h>
5411 /* Override any gcc2 internal prototype to avoid an error. */
5412 #ifdef __cplusplus
5413 extern "C"
5414 #endif
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417 char $ac_func ();
5418 char (*f) ();
5419
5420 int
5421 main ()
5422 {
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5427 choke me
5428 #else
5429 f = $ac_func;
5430 #endif
5431
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:5437: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:5443: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:5446: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 eval "$as_ac_var=yes"
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5452 eval "$as_ac_var=no"
5453 fi
5454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5455 fi
5456 echo "$as_me:5456: result: `eval echo '${'$as_ac_var'}'`" >&5
5457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5458 if test `eval echo '${'$as_ac_var'}'` = yes; then
5459 cat >>confdefs.h <<EOF
5460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5461 EOF
5462
5463 fi
5464 done
5465
5466 if test $ac_cv_func_sigaction = no ; then
5467
5468 for ac_func in sigset
5469 do
5470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5471 echo "$as_me:5471: checking for $ac_func" >&5
5472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_var+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5479 /* System header to define __stub macros and hopefully few prototypes,
5480 which can conflict with char $ac_func (); below. */
5481 #include <assert.h>
5482 /* Override any gcc2 internal prototype to avoid an error. */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5488 char $ac_func ();
5489 char (*f) ();
5490
5491 int
5492 main ()
5493 {
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5498 choke me
5499 #else
5500 f = $ac_func;
5501 #endif
5502
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext conftest$ac_exeext
5508 if { (eval echo "$as_me:5508: \"$ac_link\"") >&5
5509 (eval $ac_link) 2>&5
5510 ac_status=$?
5511 echo "$as_me:5511: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -s conftest$ac_exeext'
5514 { (eval echo "$as_me:5514: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 eval "$as_ac_var=yes"
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5523 eval "$as_ac_var=no"
5524 fi
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 fi
5527 echo "$as_me:5527: result: `eval echo '${'$as_ac_var'}'`" >&5
5528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5529 if test `eval echo '${'$as_ac_var'}'` = yes; then
5530 cat >>confdefs.h <<EOF
5531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5532 EOF
5533
5534 fi
5535 done
5536
5537 fi
5538 ;;
5539 esac
5540
5541 echo "$as_me:5541: checking for library containing dnet_htoa" >&5
5542 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
5543 if test "${ac_cv_search_dnet_htoa+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 ac_func_search_save_LIBS=$LIBS
5547 ac_cv_search_dnet_htoa=no
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line 5549 "configure"
5550 #include "confdefs.h"
5551
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 #ifdef __cplusplus
5554 extern "C"
5555 #endif
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
5558 char dnet_htoa ();
5559 int
5560 main ()
5561 {
5562 dnet_htoa ();
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:5568: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>&5
5570 ac_status=$?
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -s conftest$ac_exeext'
5574 { (eval echo "$as_me:5574: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:5577: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_search_dnet_htoa="none required"
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 fi
5584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5585 if test "$ac_cv_search_dnet_htoa" = no; then
5586 for ac_lib in dnet; do
5587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5588 cat >conftest.$ac_ext <<_ACEOF
5589 #line 5589 "configure"
5590 #include "confdefs.h"
5591
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 #ifdef __cplusplus
5594 extern "C"
5595 #endif
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5598 char dnet_htoa ();
5599 int
5600 main ()
5601 {
5602 dnet_htoa ();
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:5608: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>&5
5610 ac_status=$?
5611 echo "$as_me:5611: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest$ac_exeext'
5614 { (eval echo "$as_me:5614: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:5617: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_search_dnet_htoa="-l$ac_lib"
5620 break
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 fi
5625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 done
5627 fi
5628 LIBS=$ac_func_search_save_LIBS
5629 fi
5630 echo "$as_me:5630: result: $ac_cv_search_dnet_htoa" >&5
5631 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
5632 if test "$ac_cv_search_dnet_htoa" != no; then
5633 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
5634 cat >>confdefs.h <<\EOF
5635 #define HAVE_DNET_HTOA 1
5636 EOF
5637
5638 fi
5639
5640 echo "$as_me:5640: checking for main in -lrpc" >&5
5641 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
5642 if test "${ac_cv_lib_rpc_main+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 ac_check_lib_save_LIBS=$LIBS
5646 LIBS="-lrpc $LIBS"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line 5648 "configure"
5649 #include "confdefs.h"
5650
5651 int
5652 main ()
5653 {
5654 main ();
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (eval echo "$as_me:5660: \"$ac_link\"") >&5
5661 (eval $ac_link) 2>&5
5662 ac_status=$?
5663 echo "$as_me:5663: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:5666: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_lib_rpc_main=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 ac_cv_lib_rpc_main=no
5676 fi
5677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5678 LIBS=$ac_check_lib_save_LIBS
5679 fi
5680 echo "$as_me:5680: result: $ac_cv_lib_rpc_main" >&5
5681 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
5682 if test $ac_cv_lib_rpc_main = yes; then
5683 cat >>confdefs.h <<EOF
5684 #define HAVE_LIBRPC 1
5685 EOF
5686
5687 LIBS="-lrpc $LIBS"
5688
5689 fi
5690
5691 echo "$as_me:5691: checking for library containing getrpcbynumber" >&5
5692 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
5693 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 ac_func_search_save_LIBS=$LIBS
5697 ac_cv_search_getrpcbynumber=no
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line 5699 "configure"
5700 #include "confdefs.h"
5701
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5708 char getrpcbynumber ();
5709 int
5710 main ()
5711 {
5712 getrpcbynumber ();
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:5718: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5720 ac_status=$?
5721 echo "$as_me:5721: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (eval echo "$as_me:5724: \"$ac_try\"") >&5
5725 (eval $ac_try) 2>&5
5726 ac_status=$?
5727 echo "$as_me:5727: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_search_getrpcbynumber="none required"
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 fi
5734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735 if test "$ac_cv_search_getrpcbynumber" = no; then
5736 for ac_lib in nsl; do
5737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line 5739 "configure"
5740 #include "confdefs.h"
5741
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5748 char getrpcbynumber ();
5749 int
5750 main ()
5751 {
5752 getrpcbynumber ();
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:5758: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5760 ac_status=$?
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:5764: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_search_getrpcbynumber="-l$ac_lib"
5770 break
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5774 fi
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 done
5777 fi
5778 LIBS=$ac_func_search_save_LIBS
5779 fi
5780 echo "$as_me:5780: result: $ac_cv_search_getrpcbynumber" >&5
5781 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
5782 if test "$ac_cv_search_getrpcbynumber" != no; then
5783 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
5784
5785 fi
5786
5787 # Most operating systems have gethostbyname() in the default searched
5788 # libraries (i.e. libc):
5789 # Some OSes (eg. Solaris) place it in libnsl
5790 # Some strange OSes (SINIX) have it in libsocket:
5791 echo "$as_me:5791: checking for library containing gethostbyname" >&5
5792 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5793 if test "${ac_cv_search_gethostbyname+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 ac_func_search_save_LIBS=$LIBS
5797 ac_cv_search_gethostbyname=no
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line 5799 "configure"
5800 #include "confdefs.h"
5801
5802 /* Override any gcc2 internal prototype to avoid an error. */
5803 #ifdef __cplusplus
5804 extern "C"
5805 #endif
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5808 char gethostbyname ();
5809 int
5810 main ()
5811 {
5812 gethostbyname ();
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:5818: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>&5
5820 ac_status=$?
5821 echo "$as_me:5821: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:5824: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_search_gethostbyname="none required"
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5833 fi
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 if test "$ac_cv_search_gethostbyname" = no; then
5836 for ac_lib in nsl socket resolv; do
5837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5838 cat >conftest.$ac_ext <<_ACEOF
5839 #line 5839 "configure"
5840 #include "confdefs.h"
5841
5842 /* Override any gcc2 internal prototype to avoid an error. */
5843 #ifdef __cplusplus
5844 extern "C"
5845 #endif
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char gethostbyname ();
5849 int
5850 main ()
5851 {
5852 gethostbyname ();
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:5858: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>&5
5860 ac_status=$?
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:5864: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_search_gethostbyname="-l$ac_lib"
5870 break
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5874 fi
5875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5876 done
5877 fi
5878 LIBS=$ac_func_search_save_LIBS
5879 fi
5880 echo "$as_me:5880: result: $ac_cv_search_gethostbyname" >&5
5881 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5882 if test "$ac_cv_search_gethostbyname" != no; then
5883 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5884
5885 fi
5886
5887 # Unfortunately libsocket sometimes depends on libnsl and
5888 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5889 if test "$ac_cv_search_gethostbyname" = "no"
5890 then
5891 echo "$as_me:5891: checking for gethostbyname in -lsocket" >&5
5892 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
5893 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896 ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lsocket -lnsl $LIBS"
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line 5899 "configure"
5900 #include "confdefs.h"
5901
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 #ifdef __cplusplus
5904 extern "C"
5905 #endif
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5908 char gethostbyname ();
5909 int
5910 main ()
5911 {
5912 gethostbyname ();
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:5918: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5920 ac_status=$?
5921 echo "$as_me:5921: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:5924: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_lib_socket_gethostbyname=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 ac_cv_lib_socket_gethostbyname=no
5934 fi
5935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 LIBS=$ac_check_lib_save_LIBS
5937 fi
5938 echo "$as_me:5938: result: $ac_cv_lib_socket_gethostbyname" >&5
5939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
5940 if test $ac_cv_lib_socket_gethostbyname = yes; then
5941 LIBS="-lsocket -lnsl $LIBS"
5942 fi
5943
5944 fi
5945 echo "$as_me:5945: checking for library containing socket" >&5
5946 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5947 if test "${ac_cv_search_socket+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 ac_func_search_save_LIBS=$LIBS
5951 ac_cv_search_socket=no
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line 5953 "configure"
5954 #include "confdefs.h"
5955
5956 /* Override any gcc2 internal prototype to avoid an error. */
5957 #ifdef __cplusplus
5958 extern "C"
5959 #endif
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962 char socket ();
5963 int
5964 main ()
5965 {
5966 socket ();
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (eval echo "$as_me:5972: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>&5
5974 ac_status=$?
5975 echo "$as_me:5975: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -s conftest$ac_exeext'
5978 { (eval echo "$as_me:5978: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:5981: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_search_socket="none required"
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5987 fi
5988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989 if test "$ac_cv_search_socket" = no; then
5990 for ac_lib in socket; do
5991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line 5993 "configure"
5994 #include "confdefs.h"
5995
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 #ifdef __cplusplus
5998 extern "C"
5999 #endif
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6002 char socket ();
6003 int
6004 main ()
6005 {
6006 socket ();
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (eval echo "$as_me:6012: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest$ac_exeext'
6018 { (eval echo "$as_me:6018: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_search_socket="-l$ac_lib"
6024 break
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 fi
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 done
6031 fi
6032 LIBS=$ac_func_search_save_LIBS
6033 fi
6034 echo "$as_me:6034: result: $ac_cv_search_socket" >&5
6035 echo "${ECHO_T}$ac_cv_search_socket" >&6
6036 if test "$ac_cv_search_socket" != no; then
6037 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
6038
6039 else
6040 echo "$as_me:6040: checking for socket in -lsocket" >&5
6041 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6042 if test "${ac_cv_lib_socket_socket+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 ac_check_lib_save_LIBS=$LIBS
6046 LIBS="-lsocket -lnsl $LIBS"
6047 cat >conftest.$ac_ext <<_ACEOF
6048 #line 6048 "configure"
6049 #include "confdefs.h"
6050
6051 /* Override any gcc2 internal prototype to avoid an error. */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6057 char socket ();
6058 int
6059 main ()
6060 {
6061 socket ();
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:6067: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6069 ac_status=$?
6070 echo "$as_me:6070: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:6073: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:6076: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_lib_socket_socket=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 ac_cv_lib_socket_socket=no
6083 fi
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 echo "$as_me:6087: result: $ac_cv_lib_socket_socket" >&5
6088 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6089 if test $ac_cv_lib_socket_socket = yes; then
6090 LIBS="-lsocket -lnsl $LIBS"
6091 fi
6092
6093 fi
6094
6095 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6096 echo "$as_me:6096: checking for library containing putmsg" >&5
6097 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
6098 if test "${ac_cv_search_putmsg+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 ac_func_search_save_LIBS=$LIBS
6102 ac_cv_search_putmsg=no
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line 6104 "configure"
6105 #include "confdefs.h"
6106
6107 /* Override any gcc2 internal prototype to avoid an error. */
6108 #ifdef __cplusplus
6109 extern "C"
6110 #endif
6111 /* We use char because int might match the return type of a gcc2
6112 builtin and then its argument prototype would still apply. */
6113 char putmsg ();
6114 int
6115 main ()
6116 {
6117 putmsg ();
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:6123: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6125 ac_status=$?
6126 echo "$as_me:6126: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -s conftest$ac_exeext'
6129 { (eval echo "$as_me:6129: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:6132: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_search_putmsg="none required"
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 fi
6139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6140 if test "$ac_cv_search_putmsg" = no; then
6141 for ac_lib in str; do
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6143 cat >conftest.$ac_ext <<_ACEOF
6144 #line 6144 "configure"
6145 #include "confdefs.h"
6146
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 #ifdef __cplusplus
6149 extern "C"
6150 #endif
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6153 char putmsg ();
6154 int
6155 main ()
6156 {
6157 putmsg ();
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:6163: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>&5
6165 ac_status=$?
6166 echo "$as_me:6166: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -s conftest$ac_exeext'
6169 { (eval echo "$as_me:6169: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_search_putmsg="-l$ac_lib"
6175 break
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 fi
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 done
6182 fi
6183 LIBS=$ac_func_search_save_LIBS
6184 fi
6185 echo "$as_me:6185: result: $ac_cv_search_putmsg" >&5
6186 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
6187 if test "$ac_cv_search_putmsg" != no; then
6188 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
6189
6190 fi
6191
6192 LBL_LIBS="$LIBS"
6193 pfopen=/usr/examples/packetfilter/pfopen.c
6194 if test -f $pfopen ; then
6195
6196 for ac_func in pfopen
6197 do
6198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6199 echo "$as_me:6199: checking for $ac_func" >&5
6200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_var+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line 6205 "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char $ac_func (); below. */
6209 #include <assert.h>
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 #ifdef __cplusplus
6212 extern "C"
6213 #endif
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216 char $ac_func ();
6217 char (*f) ();
6218
6219 int
6220 main ()
6221 {
6222 /* The GNU C library defines this for functions which it implements
6223 to always fail with ENOSYS. Some functions are actually named
6224 something starting with __ and the normal name is an alias. */
6225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6226 choke me
6227 #else
6228 f = $ac_func;
6229 #endif
6230
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext conftest$ac_exeext
6236 if { (eval echo "$as_me:6236: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>&5
6238 ac_status=$?
6239 echo "$as_me:6239: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -s conftest$ac_exeext'
6242 { (eval echo "$as_me:6242: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:6245: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 eval "$as_ac_var=yes"
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 eval "$as_ac_var=no"
6252 fi
6253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6254 fi
6255 echo "$as_me:6255: result: `eval echo '${'$as_ac_var'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6257 if test `eval echo '${'$as_ac_var'}'` = yes; then
6258 cat >>confdefs.h <<EOF
6259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6260 EOF
6261
6262 fi
6263 done
6264
6265 if test $ac_cv_func_pfopen = "no" ; then
6266 echo "$as_me:6266: result: Using $pfopen" >&5
6267 echo "${ECHO_T}Using $pfopen" >&6
6268 LIBS="$LIBS $pfopen"
6269 fi
6270 fi
6271 echo "$as_me:6271: checking for local pcap library" >&5
6272 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
6273 libpcap=FAIL
6274 lastdir=FAIL
6275 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6276 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6277 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
6278 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
6279 if test $lastdir = $basedir ; then
6280 continue;
6281 fi
6282 lastdir=$dir
6283 if test -r $dir/libpcap.a ; then
6284 libpcap=$dir/libpcap.a
6285 d=$dir
6286 fi
6287 done
6288 if test $libpcap = FAIL ; then
6289 echo "$as_me:6289: result: not found" >&5
6290 echo "${ECHO_T}not found" >&6
6291 echo "$as_me:6291: checking for main in -lpcap" >&5
6292 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
6293 if test "${ac_cv_lib_pcap_main+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 ac_check_lib_save_LIBS=$LIBS
6297 LIBS="-lpcap $LIBS"
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6301
6302 int
6303 main ()
6304 {
6305 main ();
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:6311: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6313 ac_status=$?
6314 echo "$as_me:6314: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:6317: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_lib_pcap_main=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 ac_cv_lib_pcap_main=no
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_check_lib_save_LIBS
6330 fi
6331 echo "$as_me:6331: result: $ac_cv_lib_pcap_main" >&5
6332 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
6333 if test $ac_cv_lib_pcap_main = yes; then
6334 libpcap="-lpcap"
6335 fi
6336
6337 if test $libpcap = FAIL ; then
6338 { { echo "$as_me:6338: error: see the INSTALL doc for more info" >&5
6339 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
6340 { (exit 1); exit 1; }; }
6341 fi
6342 echo "$as_me:6342: checking for extraneous pcap header directories" >&5
6343 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
6344 if test \( ! -r /usr/local/include/pcap.h \) -a \
6345 \( ! -r /usr/include/pcap.h \); then
6346 if test -r /usr/local/include/pcap/pcap.h; then
6347 d="/usr/local/include/pcap"
6348 elif test -r /usr/include/pcap/pcap.h; then
6349 d="/usr/include/pcap"
6350 fi
6351 fi
6352 if test -z "$d" ; then
6353 echo "$as_me:6353: result: not found" >&5
6354 echo "${ECHO_T}not found" >&6
6355 else
6356 V_INCLS="-I$d $V_INCLS"
6357 echo "$as_me:6357: result: found -- -I$d added" >&5
6358 echo "${ECHO_T}found -- -I$d added" >&6
6359 fi
6360 else
6361 V_PCAPDEP=$libpcap
6362 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6363 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6364 if test -r $d/pcap.h; then
6365 V_INCLS="-I$d $V_INCLS"
6366 elif test -r $places/pcap.h; then
6367 V_INCLS="-I$places $V_INCLS"
6368 else
6369 { { echo "$as_me:6369: error: cannot find pcap.h" >&5
6370 echo "$as_me: error: cannot find pcap.h" >&2;}
6371 { (exit see INSTALL); exit see INSTALL; }; }
6372 fi
6373 echo "$as_me:6373: result: $libpcap" >&5
6374 echo "${ECHO_T}$libpcap" >&6
6375 fi
6376 LIBS="$libpcap $LIBS"
6377 case "$host_os" in
6378
6379 aix*)
6380 pseexe="/lib/pse.exp"
6381 echo "$as_me:6381: checking for $pseexe" >&5
6382 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
6383 if test -f $pseexe ; then
6384 echo "$as_me:6384: result: yes" >&5
6385 echo "${ECHO_T}yes" >&6
6386 LIBS="$LIBS -I:$pseexe"
6387 fi
6388 #
6389 # We need "-lodm" and "-lcfg", as libpcap requires them on
6390 # AIX, and we just build a static libpcap.a and thus can't
6391 # arrange that when you link with libpcap you automatically
6392 # link with those libraries.
6393 #
6394 LIBS="$LIBS -lodm -lcfg"
6395 ;;
6396 esac
6397
6398 echo "$as_me:6398: checking for pcap_list_datalinks" >&5
6399 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
6400 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 cat >conftest.$ac_ext <<_ACEOF
6404 #line 6404 "configure"
6405 #include "confdefs.h"
6406 /* System header to define __stub macros and hopefully few prototypes,
6407 which can conflict with char pcap_list_datalinks (); below. */
6408 #include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char pcap_list_datalinks ();
6416 char (*f) ();
6417
6418 int
6419 main ()
6420 {
6421 /* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
6425 choke me
6426 #else
6427 f = pcap_list_datalinks;
6428 #endif
6429
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:6435: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6437 ac_status=$?
6438 echo "$as_me:6438: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:6441: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_func_pcap_list_datalinks=yes
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 ac_cv_func_pcap_list_datalinks=no
6451 fi
6452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6453 fi
6454 echo "$as_me:6454: result: $ac_cv_func_pcap_list_datalinks" >&5
6455 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
6456 if test $ac_cv_func_pcap_list_datalinks = yes; then
6457 cat >>confdefs.h <<\EOF
6458 #define HAVE_PCAP_LIST_DATALINKS 1
6459 EOF
6460
6461 else
6462 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
6463 fi
6464
6465 echo "$as_me:6465: checking for pcap_set_datalink" >&5
6466 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
6467 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line 6471 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char pcap_set_datalink (); below. */
6475 #include <assert.h>
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 #ifdef __cplusplus
6478 extern "C"
6479 #endif
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6482 char pcap_set_datalink ();
6483 char (*f) ();
6484
6485 int
6486 main ()
6487 {
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
6492 choke me
6493 #else
6494 f = pcap_set_datalink;
6495 #endif
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:6502: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6504 ac_status=$?
6505 echo "$as_me:6505: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -s conftest$ac_exeext'
6508 { (eval echo "$as_me:6508: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:6511: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_func_pcap_set_datalink=yes
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 ac_cv_func_pcap_set_datalink=no
6518 fi
6519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6520 fi
6521 echo "$as_me:6521: result: $ac_cv_func_pcap_set_datalink" >&5
6522 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
6523 if test $ac_cv_func_pcap_set_datalink = yes; then
6524 cat >>confdefs.h <<\EOF
6525 #define HAVE_PCAP_SET_DATALINK 1
6526 EOF
6527
6528 fi
6529
6530 echo "$as_me:6530: checking for pcap_datalink_name_to_val" >&5
6531 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
6532 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line 6536 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char pcap_datalink_name_to_val (); below. */
6540 #include <assert.h>
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6547 char pcap_datalink_name_to_val ();
6548 char (*f) ();
6549
6550 int
6551 main ()
6552 {
6553 /* The GNU C library defines this for functions which it implements
6554 to always fail with ENOSYS. Some functions are actually named
6555 something starting with __ and the normal name is an alias. */
6556 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
6557 choke me
6558 #else
6559 f = pcap_datalink_name_to_val;
6560 #endif
6561
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (eval echo "$as_me:6567: \"$ac_link\"") >&5
6568 (eval $ac_link) 2>&5
6569 ac_status=$?
6570 echo "$as_me:6570: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -s conftest$ac_exeext'
6573 { (eval echo "$as_me:6573: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 ac_cv_func_pcap_datalink_name_to_val=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6582 ac_cv_func_pcap_datalink_name_to_val=no
6583 fi
6584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6585 fi
6586 echo "$as_me:6586: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
6587 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
6588 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
6589
6590 cat >>confdefs.h <<\EOF
6591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
6592 EOF
6593
6594 echo "$as_me:6594: checking for pcap_datalink_val_to_description" >&5
6595 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
6596 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 cat >conftest.$ac_ext <<_ACEOF
6600 #line 6600 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char pcap_datalink_val_to_description (); below. */
6604 #include <assert.h>
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 #ifdef __cplusplus
6607 extern "C"
6608 #endif
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6611 char pcap_datalink_val_to_description ();
6612 char (*f) ();
6613
6614 int
6615 main ()
6616 {
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
6621 choke me
6622 #else
6623 f = pcap_datalink_val_to_description;
6624 #endif
6625
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (eval echo "$as_me:6631: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>&5
6633 ac_status=$?
6634 echo "$as_me:6634: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:6637: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_func_pcap_datalink_val_to_description=yes
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 ac_cv_func_pcap_datalink_val_to_description=no
6647 fi
6648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6649 fi
6650 echo "$as_me:6650: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
6651 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
6652 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
6653 cat >>confdefs.h <<\EOF
6654 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
6655 EOF
6656
6657 else
6658 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6659 fi
6660
6661 else
6662 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6663 fi
6664
6665 for ac_func in pcap_breakloop
6666 do
6667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6668 echo "$as_me:6668: checking for $ac_func" >&5
6669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6670 if eval "test \"\${$as_ac_var+set}\" = set"; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 #line 6674 "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char $ac_func (); below. */
6678 #include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char $ac_func ();
6686 char (*f) ();
6687
6688 int
6689 main ()
6690 {
6691 /* The GNU C library defines this for functions which it implements
6692 to always fail with ENOSYS. Some functions are actually named
6693 something starting with __ and the normal name is an alias. */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6695 choke me
6696 #else
6697 f = $ac_func;
6698 #endif
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (eval echo "$as_me:6705: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6707 ac_status=$?
6708 echo "$as_me:6708: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:6711: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 eval "$as_ac_var=yes"
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 eval "$as_ac_var=no"
6721 fi
6722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6723 fi
6724 echo "$as_me:6724: result: `eval echo '${'$as_ac_var'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6726 if test `eval echo '${'$as_ac_var'}'` = yes; then
6727 cat >>confdefs.h <<EOF
6728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6729 EOF
6730
6731 fi
6732 done
6733
6734 #
6735 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
6736 # libraries (e.g., "-lsocket -lnsl" on Solaris).
6737 #
6738 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
6739 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
6740 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
6741 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
6742 # it does not ship with a libc symbol "inet_ntop()", it ships with
6743 # "_inet_ntop()", and has a #define macro in one of the system headers
6744 # to rename it.
6745 #
6746 echo "$as_me:6746: checking for inet_ntop" >&5
6747 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line 6749 "configure"
6750 #include "confdefs.h"
6751 #include <sys/types.h>
6752 #include <sys/socket.h>
6753 #include <netinet/in.h>
6754 #include <arpa/inet.h>
6755 int
6756 main ()
6757 {
6758 char src[4], dst[128];
6759 inet_ntop(AF_INET, src, dst, sizeof(dst));
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:6765: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>&5
6767 ac_status=$?
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:6771: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 echo "$as_me:6776: result: yes" >&5
6777 echo "${ECHO_T}yes" >&6
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6781 echo "$as_me:6781: result: no" >&5
6782 echo "${ECHO_T}no" >&6
6783 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
6784 fi
6785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 echo "$as_me:6786: checking for inet_pton" >&5
6787 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
6788 cat >conftest.$ac_ext <<_ACEOF
6789 #line 6789 "configure"
6790 #include "confdefs.h"
6791 #include <sys/types.h>
6792 #include <sys/socket.h>
6793 #include <netinet/in.h>
6794 #include <arpa/inet.h>
6795 int
6796 main ()
6797 {
6798 char src[128], dst[4];
6799 inet_pton(AF_INET, src, dst);
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:6805: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>&5
6807 ac_status=$?
6808 echo "$as_me:6808: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:6811: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:6814: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 echo "$as_me:6816: result: yes" >&5
6817 echo "${ECHO_T}yes" >&6
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6821 echo "$as_me:6821: result: no" >&5
6822 echo "${ECHO_T}no" >&6
6823 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
6824 fi
6825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6826 echo "$as_me:6826: checking for inet_aton" >&5
6827 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6828 cat >conftest.$ac_ext <<_ACEOF
6829 #line 6829 "configure"
6830 #include "confdefs.h"
6831 #include <sys/types.h>
6832 #include <netinet/in.h>
6833 #include <arpa/inet.h>
6834 int
6835 main ()
6836 {
6837 char src[128];
6838 struct in_addr dst;
6839 inet_aton(src, &dst);
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:6845: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>&5
6847 ac_status=$?
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest$ac_exeext'
6851 { (eval echo "$as_me:6851: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 echo "$as_me:6856: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 echo "$as_me:6861: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6863 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
6864 fi
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6866
6867 echo "$as_me:6867: checking if sockaddr struct has sa_len member" >&5
6868 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6869 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 #line 6873 "configure"
6874 #include "confdefs.h"
6875
6876 # include <sys/types.h>
6877 # include <sys/socket.h>
6878 int
6879 main ()
6880 {
6881 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (eval echo "$as_me:6887: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 echo "$as_me:6890: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -s conftest.$ac_objext'
6893 { (eval echo "$as_me:6893: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:6896: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_sockaddr_has_sa_len=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6902 ac_cv_sockaddr_has_sa_len=no
6903 fi
6904 rm -f conftest.$ac_objext conftest.$ac_ext
6905 fi
6906
6907 echo "$as_me:6907: result: $ac_cv_sockaddr_has_sa_len" >&5
6908 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
6909 if test $ac_cv_sockaddr_has_sa_len = yes ; then
6910 cat >>confdefs.h <<\EOF
6911 #define HAVE_SOCKADDR_SA_LEN 1
6912 EOF
6913
6914 fi
6915
6916 if test "$ac_cv_sockaddr_has_sa_len" = no; then
6917 missing_includes=yes
6918 fi
6919
6920 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
6921 do
6922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6923 echo "$as_me:6923: checking for $ac_func" >&5
6924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6925 if eval "test \"\${$as_ac_var+set}\" = set"; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line 6929 "configure"
6930 #include "confdefs.h"
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char $ac_func (); below. */
6933 #include <assert.h>
6934 /* Override any gcc2 internal prototype to avoid an error. */
6935 #ifdef __cplusplus
6936 extern "C"
6937 #endif
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char $ac_func ();
6941 char (*f) ();
6942
6943 int
6944 main ()
6945 {
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 choke me
6951 #else
6952 f = $ac_func;
6953 #endif
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:6960: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
6962 ac_status=$?
6963 echo "$as_me:6963: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:6966: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:6969: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 eval "$as_ac_var=yes"
6972 else
6973 echo "$as_me: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6975 eval "$as_ac_var=no"
6976 fi
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 fi
6979 echo "$as_me:6979: result: `eval echo '${'$as_ac_var'}'`" >&5
6980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6981 if test `eval echo '${'$as_ac_var'}'` = yes; then
6982 cat >>confdefs.h <<EOF
6983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6984 EOF
6985
6986 fi
6987 done
6988
6989 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
6990 echo "$as_me:6990: checking for pcap_if_t" >&5
6991 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
6992 if test "${ac_cv_type_pcap_if_t+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line 6996 "configure"
6997 #include "confdefs.h"
6998 #include <pcap.h>
6999
7000 int
7001 main ()
7002 {
7003 if ((pcap_if_t *) 0)
7004 return 0;
7005 if (sizeof (pcap_if_t))
7006 return 0;
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:7012: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>&5
7014 ac_status=$?
7015 echo "$as_me:7015: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -s conftest.$ac_objext'
7018 { (eval echo "$as_me:7018: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:7021: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_type_pcap_if_t=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7027 ac_cv_type_pcap_if_t=no
7028 fi
7029 rm -f conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 echo "$as_me:7031: result: $ac_cv_type_pcap_if_t" >&5
7032 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
7033 if test $ac_cv_type_pcap_if_t = yes; then
7034
7035 cat >>confdefs.h <<EOF
7036 #define HAVE_PCAP_IF_T 1
7037 EOF
7038
7039 fi
7040
7041 fi
7042 if test $ac_cv_func_pcap_lib_version = "no" ; then
7043 echo "$as_me:7043: checking whether pcap_version is defined by libpcap" >&5
7044 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line 7046 "configure"
7047 #include "confdefs.h"
7048
7049 int
7050 main ()
7051 {
7052
7053 char *
7054 return_pcap_version(void)
7055 {
7056 extern char pcap_version[];
7057
7058 return pcap_version;
7059 }
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext conftest$ac_exeext
7066 if { (eval echo "$as_me:7066: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7068 ac_status=$?
7069 echo "$as_me:7069: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:7072: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_lbl_cv_pcap_version_defined=yes
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 ac_lbl_cv_pcap_version_defined=no
7082 fi
7083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7084 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
7085 echo "$as_me:7085: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6
7087 cat >>confdefs.h <<\EOF
7088 #define HAVE_PCAP_VERSION 1
7089 EOF
7090
7091 else
7092 echo "$as_me:7092: result: no" >&5
7093 echo "${ECHO_T}no" >&6
7094 fi
7095 fi
7096 echo "$as_me:7096: checking whether pcap_debug is defined by libpcap" >&5
7097 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
7098 cat >conftest.$ac_ext <<_ACEOF
7099 #line 7099 "configure"
7100 #include "confdefs.h"
7101
7102 int
7103 main ()
7104 {
7105
7106 int
7107 return_pcap_debug(void)
7108 {
7109 extern int pcap_debug;
7110
7111 return pcap_debug;
7112 }
7113
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (eval echo "$as_me:7119: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7121 ac_status=$?
7122 echo "$as_me:7122: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:7125: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_lbl_cv_pcap_debug_defined=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 ac_lbl_cv_pcap_debug_defined=no
7135 fi
7136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7137 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
7138 echo "$as_me:7138: result: yes" >&5
7139 echo "${ECHO_T}yes" >&6
7140 cat >>confdefs.h <<\EOF
7141 #define HAVE_PCAP_DEBUG 1
7142 EOF
7143
7144 else
7145 echo "$as_me:7145: result: no" >&5
7146 echo "${ECHO_T}no" >&6
7147 #
7148 # OK, what about "yydebug"?
7149 #
7150 echo "$as_me:7150: checking whether yydebug is defined by libpcap" >&5
7151 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7155
7156 int
7157 main ()
7158 {
7159
7160 int
7161 return_yydebug(void)
7162 {
7163 extern int yydebug;
7164
7165 return yydebug;
7166 }
7167
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:7173: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>&5
7175 ac_status=$?
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (eval echo "$as_me:7179: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:7182: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_lbl_cv_yydebug_defined=yes
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7188 ac_lbl_cv_yydebug_defined=no
7189 fi
7190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7191 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
7192 echo "$as_me:7192: result: yes" >&5
7193 echo "${ECHO_T}yes" >&6
7194 cat >>confdefs.h <<\EOF
7195 #define HAVE_YYDEBUG 1
7196 EOF
7197
7198 else
7199 echo "$as_me:7199: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7201 fi
7202 fi
7203
7204 for ac_func in bpf_dump
7205 do
7206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7207 echo "$as_me:7207: checking for $ac_func" >&5
7208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7209 if eval "test \"\${$as_ac_var+set}\" = set"; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212 cat >conftest.$ac_ext <<_ACEOF
7213 #line 7213 "configure"
7214 #include "confdefs.h"
7215 /* System header to define __stub macros and hopefully few prototypes,
7216 which can conflict with char $ac_func (); below. */
7217 #include <assert.h>
7218 /* Override any gcc2 internal prototype to avoid an error. */
7219 #ifdef __cplusplus
7220 extern "C"
7221 #endif
7222 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */
7224 char $ac_func ();
7225 char (*f) ();
7226
7227 int
7228 main ()
7229 {
7230 /* The GNU C library defines this for functions which it implements
7231 to always fail with ENOSYS. Some functions are actually named
7232 something starting with __ and the normal name is an alias. */
7233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7234 choke me
7235 #else
7236 f = $ac_func;
7237 #endif
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:7244: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>&5
7246 ac_status=$?
7247 echo "$as_me:7247: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -s conftest$ac_exeext'
7250 { (eval echo "$as_me:7250: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 eval "$as_ac_var=yes"
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7259 eval "$as_ac_var=no"
7260 fi
7261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7262 fi
7263 echo "$as_me:7263: result: `eval echo '${'$as_ac_var'}'`" >&5
7264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7265 if test `eval echo '${'$as_ac_var'}'` = yes; then
7266 cat >>confdefs.h <<EOF
7267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7268 EOF
7269
7270 else
7271 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7272 fi
7273 done
7274
7275 V_GROUP=0
7276 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
7277 V_GROUP=wheel
7278 fi
7279 case "$host_os" in
7280
7281 aix*)
7282 cat >>confdefs.h <<\EOF
7283 #define _SUN 1
7284 EOF
7285
7286 ;;
7287
7288 irix*)
7289 V_GROUP=sys
7290 ;;
7291
7292 osf*)
7293 V_GROUP=system
7294 ;;
7295
7296 solaris*)
7297 V_GROUP=sys
7298 ;;
7299 esac
7300
7301 if test -f /dev/bpf0 ; then
7302 V_GROUP=bpf
7303 fi
7304
7305 echo "$as_me:7305: checking for int8_t using $CC" >&5
7306 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
7307 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7313
7314 # include "confdefs.h"
7315 # include <sys/types.h>
7316 # if STDC_HEADERS
7317 # include <stdlib.h>
7318 # include <stddef.h>
7319 # endif
7320 int
7321 main ()
7322 {
7323 int8_t i
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (eval echo "$as_me:7329: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7331 ac_status=$?
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:7335: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:7338: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_lbl_have_int8_t=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 ac_cv_lbl_have_int8_t=no
7345 fi
7346 rm -f conftest.$ac_objext conftest.$ac_ext
7347 fi
7348
7349 echo "$as_me:7349: result: $ac_cv_lbl_have_int8_t" >&5
7350 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
7351 if test $ac_cv_lbl_have_int8_t = no ; then
7352 cat >>confdefs.h <<\EOF
7353 #define int8_t signed char
7354 EOF
7355
7356 fi
7357 echo "$as_me:7357: checking for u_int8_t using $CC" >&5
7358 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
7359 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362 cat >conftest.$ac_ext <<_ACEOF
7363 #line 7363 "configure"
7364 #include "confdefs.h"
7365
7366 # include "confdefs.h"
7367 # include <sys/types.h>
7368 # if STDC_HEADERS
7369 # include <stdlib.h>
7370 # include <stddef.h>
7371 # endif
7372 int
7373 main ()
7374 {
7375 u_int8_t i
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (eval echo "$as_me:7381: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
7383 ac_status=$?
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest.$ac_objext'
7387 { (eval echo "$as_me:7387: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_lbl_have_u_int8_t=yes
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 ac_cv_lbl_have_u_int8_t=no
7397 fi
7398 rm -f conftest.$ac_objext conftest.$ac_ext
7399 fi
7400
7401 echo "$as_me:7401: result: $ac_cv_lbl_have_u_int8_t" >&5
7402 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
7403 if test $ac_cv_lbl_have_u_int8_t = no ; then
7404 cat >>confdefs.h <<\EOF
7405 #define u_int8_t u_char
7406 EOF
7407
7408 fi
7409 echo "$as_me:7409: checking for int16_t using $CC" >&5
7410 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
7411 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line 7415 "configure"
7416 #include "confdefs.h"
7417
7418 # include "confdefs.h"
7419 # include <sys/types.h>
7420 # if STDC_HEADERS
7421 # include <stdlib.h>
7422 # include <stddef.h>
7423 # endif
7424 int
7425 main ()
7426 {
7427 int16_t i
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:7433: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>&5
7435 ac_status=$?
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:7439: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:7442: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_lbl_have_int16_t=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 ac_cv_lbl_have_int16_t=no
7449 fi
7450 rm -f conftest.$ac_objext conftest.$ac_ext
7451 fi
7452
7453 echo "$as_me:7453: result: $ac_cv_lbl_have_int16_t" >&5
7454 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
7455 if test $ac_cv_lbl_have_int16_t = no ; then
7456 cat >>confdefs.h <<\EOF
7457 #define int16_t short
7458 EOF
7459
7460 fi
7461 echo "$as_me:7461: checking for u_int16_t using $CC" >&5
7462 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
7463 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 cat >conftest.$ac_ext <<_ACEOF
7467 #line 7467 "configure"
7468 #include "confdefs.h"
7469
7470 # include "confdefs.h"
7471 # include <sys/types.h>
7472 # if STDC_HEADERS
7473 # include <stdlib.h>
7474 # include <stddef.h>
7475 # endif
7476 int
7477 main ()
7478 {
7479 u_int16_t i
7480 ;
7481 return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:7485: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>&5
7487 ac_status=$?
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:7491: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_lbl_have_u_int16_t=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 ac_cv_lbl_have_u_int16_t=no
7501 fi
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7503 fi
7504
7505 echo "$as_me:7505: result: $ac_cv_lbl_have_u_int16_t" >&5
7506 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
7507 if test $ac_cv_lbl_have_u_int16_t = no ; then
7508 cat >>confdefs.h <<\EOF
7509 #define u_int16_t u_short
7510 EOF
7511
7512 fi
7513 echo "$as_me:7513: checking for int32_t using $CC" >&5
7514 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
7515 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7521
7522 # include "confdefs.h"
7523 # include <sys/types.h>
7524 # if STDC_HEADERS
7525 # include <stdlib.h>
7526 # include <stddef.h>
7527 # endif
7528 int
7529 main ()
7530 {
7531 int32_t i
7532 ;
7533 return 0;
7534 }
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (eval echo "$as_me:7537: \"$ac_compile\"") >&5
7538 (eval $ac_compile) 2>&5
7539 ac_status=$?
7540 echo "$as_me:7540: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:7543: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:7546: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_lbl_have_int32_t=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7552 ac_cv_lbl_have_int32_t=no
7553 fi
7554 rm -f conftest.$ac_objext conftest.$ac_ext
7555 fi
7556
7557 echo "$as_me:7557: result: $ac_cv_lbl_have_int32_t" >&5
7558 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
7559 if test $ac_cv_lbl_have_int32_t = no ; then
7560 cat >>confdefs.h <<\EOF
7561 #define int32_t int
7562 EOF
7563
7564 fi
7565 echo "$as_me:7565: checking for u_int32_t using $CC" >&5
7566 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
7567 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line 7571 "configure"
7572 #include "confdefs.h"
7573
7574 # include "confdefs.h"
7575 # include <sys/types.h>
7576 # if STDC_HEADERS
7577 # include <stdlib.h>
7578 # include <stddef.h>
7579 # endif
7580 int
7581 main ()
7582 {
7583 u_int32_t i
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:7589: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 echo "$as_me:7592: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:7595: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_lbl_have_u_int32_t=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_cv_lbl_have_u_int32_t=no
7605 fi
7606 rm -f conftest.$ac_objext conftest.$ac_ext
7607 fi
7608
7609 echo "$as_me:7609: result: $ac_cv_lbl_have_u_int32_t" >&5
7610 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
7611 if test $ac_cv_lbl_have_u_int32_t = no ; then
7612 cat >>confdefs.h <<\EOF
7613 #define u_int32_t u_int
7614 EOF
7615
7616 fi
7617
7618 rm -f os-proto.h
7619 if test "${LBL_CFLAGS+set}" = set; then
7620 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7621 fi
7622 if test -f .devel ; then
7623 if test "$GCC" = yes ; then
7624 if test "${LBL_CFLAGS+set}" != set; then
7625 if test "$ac_cv_prog_cc_g" = yes ; then
7626 V_CCOPT="-g $V_CCOPT"
7627 fi
7628 V_CCOPT="$V_CCOPT -Wall"
7629 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7630 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
7631 fi
7632 fi
7633 else
7634 case "$host_os" in
7635
7636 irix6*)
7637 V_CCOPT="$V_CCOPT -n32"
7638 ;;
7639
7640 *)
7641 ;;
7642 esac
7643 fi
7644 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7645 name="lbl/os-$os.h"
7646 if test -f $name ; then
7647 ln -s $name os-proto.h
7648 cat >>confdefs.h <<\EOF
7649 #define HAVE_OS_PROTO_H 1
7650 EOF
7651
7652 else
7653 { echo "$as_me:7653: WARNING: can't find $name" >&5
7654 echo "$as_me: WARNING: can't find $name" >&2;}
7655 fi
7656 fi
7657
7658 echo "$as_me:7658: checking if sockaddr struct has sa_len member" >&5
7659 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
7660 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line 7664 "configure"
7665 #include "confdefs.h"
7666
7667 # include <sys/types.h>
7668 # include <sys/socket.h>
7669 int
7670 main ()
7671 {
7672 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:7678: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 echo "$as_me:7681: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:7684: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_lbl_sockaddr_has_sa_len=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 ac_cv_lbl_sockaddr_has_sa_len=no
7694 fi
7695 rm -f conftest.$ac_objext conftest.$ac_ext
7696 fi
7697
7698 echo "$as_me:7698: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7699 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
7700 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7701 cat >>confdefs.h <<\EOF
7702 #define HAVE_SOCKADDR_SA_LEN 1
7703 EOF
7704
7705 fi
7706
7707 echo "$as_me:7707: checking if unaligned accesses fail" >&5
7708 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
7709 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 case "$host_cpu" in
7713
7714 #
7715 # These are CPU types where:
7716 #
7717 # the CPU faults on an unaligned access, but at least some
7718 # OSes that support that CPU catch the fault and simulate
7719 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7720 # the simulation is slow, so we don't want to use it;
7721 #
7722 # the CPU, I infer (from the old
7723 #
7724 # XXX: should also check that they don't do weird things (like on arm)
7725 #
7726 # comment) doesn't fault on unaligned accesses, but doesn't
7727 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7728 #
7729 # for whatever reason, the test program doesn't work
7730 # (this has been claimed to be the case for several of those
7731 # CPUs - I don't know what the problem is; the problem
7732 # was reported as "the test program dumps core" for SuperH,
7733 # but that's what the test program is *supposed* to do -
7734 # it dumps core before it writes anything, so the test
7735 # for an empty output file should find an empty output
7736 # file and conclude that unaligned accesses don't work).
7737 #
7738 # This run-time test won't work if you're cross-compiling, so
7739 # in order to support cross-compiling for a particular CPU,
7740 # we have to wire in the list of CPU types anyway, as far as
7741 # I know, so perhaps we should just have a set of CPUs on
7742 # which we know it doesn't work, a set of CPUs on which we
7743 # know it does work, and have the script just fail on other
7744 # cpu types and update it when such a failure occurs.
7745 #
7746 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
7747 ac_cv_lbl_unaligned_fail=yes
7748 ;;
7749
7750 *)
7751 cat >conftest.c <<EOF
7752 # include <sys/types.h>
7753 # include <sys/wait.h>
7754 # include <stdio.h>
7755 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7756 main() {
7757 unsigned int i;
7758 pid_t pid;
7759 int status;
7760 /* avoid "core dumped" message */
7761 pid = fork();
7762 if (pid < 0)
7763 exit(2);
7764 if (pid > 0) {
7765 /* parent */
7766 pid = waitpid(pid, &status, 0);
7767 if (pid < 0)
7768 exit(3);
7769 exit(!WIFEXITED(status));
7770 }
7771 /* child */
7772 i = *(unsigned int *)&a[1];
7773 printf("%d\n", i);
7774 exit(0);
7775 }
7776 EOF
7777 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7778 conftest.c $LIBS >/dev/null 2>&1
7779 if test ! -x conftest ; then
7780 ac_cv_lbl_unaligned_fail=yes
7781 else
7782 ./conftest >conftest.out
7783 if test ! -s conftest.out ; then
7784 ac_cv_lbl_unaligned_fail=yes
7785 else
7786 ac_cv_lbl_unaligned_fail=no
7787 fi
7788 fi
7789 rm -f conftest* core core.conftest
7790 ;;
7791 esac
7792 fi
7793
7794 echo "$as_me:7794: result: $ac_cv_lbl_unaligned_fail" >&5
7795 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
7796 if test $ac_cv_lbl_unaligned_fail = yes ; then
7797 cat >>confdefs.h <<\EOF
7798 #define LBL_ALIGN 1
7799 EOF
7800
7801 fi
7802
7803 echo "$as_me:7803: checking for h_errno" >&5
7804 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
7805 if test "${ac_cv_var_h_errno+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line 7809 "configure"
7810 #include "confdefs.h"
7811
7812 # include <sys/types.h>
7813 # include <netdb.h>
7814 int
7815 main ()
7816 {
7817 int foo = h_errno;
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:7823: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>&5
7825 ac_status=$?
7826 echo "$as_me:7826: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:7829: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_var_h_errno=yes
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 ac_cv_var_h_errno=no
7839 fi
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7841 fi
7842
7843 echo "$as_me:7843: result: $ac_cv_var_h_errno" >&5
7844 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
7845 if test "$ac_cv_var_h_errno" = "yes"; then
7846 cat >>confdefs.h <<\EOF
7847 #define HAVE_H_ERRNO 1
7848 EOF
7849
7850 fi
7851
7852 # Check whether --with-crypto or --without-crypto was given.
7853 if test "${with_crypto+set}" = set; then
7854 withval="$with_crypto"
7855
7856 else
7857
7858 echo "$as_me:7858: checking for SSLeay" >&5
7859 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
7860 ac_cv_ssleay_path=no
7861 incdir=no
7862 for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
7863 #
7864 # XXX - is there a better way to check if a given library is
7865 # in a given directory than checking each of the possible
7866 # shared library suffixes?
7867 #
7868 # Are there any other suffixes we need to look for? Do we have to
7869 # worry about ".so.{version}"?
7870 #
7871 # Or should we just look for "libcrypto.*"?
7872 #
7873 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
7874 -f $dir/lib/libcrypto.so -o \
7875 -f $dir/lib/libcrypto.sl -o \
7876 -f $dir/lib/libcrypto.dylib \); then
7877 ac_cv_ssleay_path=$dir
7878 fi
7879 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
7880 incdir="-I$dir/include"
7881 fi
7882 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
7883 break;
7884 else
7885 ac_cv_ssleay_path=no
7886 incdir=no
7887 fi
7888 done
7889 echo "$as_me:7889: result: $ac_cv_ssleay_path" >&5
7890 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
7891 if test "$ac_cv_ssleay_path" != no; then
7892 V_INCLS="$V_INCLS $incdir"
7893 LDFLAGS="-L$dir/lib $LDFLAGS"
7894 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
7895 LIBS="$LIBS -lRSAglue"
7896 fi
7897 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
7898 LIBS="$LIBS -lrsaref"
7899 fi
7900
7901 echo "$as_me:7901: checking for des_cbc_encrypt in -lcrypto" >&5
7902 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
7903 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 ac_check_lib_save_LIBS=$LIBS
7907 LIBS="-lcrypto $LIBS"
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line 7909 "configure"
7910 #include "confdefs.h"
7911
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 #ifdef __cplusplus
7914 extern "C"
7915 #endif
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7918 char des_cbc_encrypt ();
7919 int
7920 main ()
7921 {
7922 des_cbc_encrypt ();
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:7928: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>&5
7930 ac_status=$?
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:7934: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:7937: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_lib_crypto_des_cbc_encrypt=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7943 ac_cv_lib_crypto_des_cbc_encrypt=no
7944 fi
7945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7946 LIBS=$ac_check_lib_save_LIBS
7947 fi
7948 echo "$as_me:7948: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
7949 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
7950 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
7951 cat >>confdefs.h <<EOF
7952 #define HAVE_LIBCRYPTO 1
7953 EOF
7954
7955 LIBS="-lcrypto $LIBS"
7956
7957 fi
7958
7959 CPPFLAGS="$CPPFLAGS $V_INCLS"
7960
7961 for ac_header in openssl/evp.h
7962 do
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 echo "$as_me:7964: checking for $ac_header" >&5
7965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line 7970 "configure"
7971 #include "confdefs.h"
7972 #include <$ac_header>
7973 _ACEOF
7974 if { (eval echo "$as_me:7974: \"$ac_cpp conftest.$ac_ext\"") >&5
7975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7976 ac_status=$?
7977 egrep -v '^ *\+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 (exit $ac_status); } >/dev/null; then
7982 if test -s conftest.err; then
7983 ac_cpp_err=$ac_c_preproc_warn_flag
7984 else
7985 ac_cpp_err=
7986 fi
7987 else
7988 ac_cpp_err=yes
7989 fi
7990 if test -z "$ac_cpp_err"; then
7991 eval "$as_ac_Header=yes"
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 eval "$as_ac_Header=no"
7996 fi
7997 rm -f conftest.err conftest.$ac_ext
7998 fi
7999 echo "$as_me:7999: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8002 cat >>confdefs.h <<EOF
8003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8004 EOF
8005
8006 fi
8007 done
8008
8009 fi
8010
8011 fi;
8012
8013 # Find a good install program. We prefer a C program (faster),
8014 # so one script is as good as another. But avoid the broken or
8015 # incompatible versions:
8016 # SysV /etc/install, /usr/sbin/install
8017 # SunOS /usr/etc/install
8018 # IRIX /sbin/install
8019 # AIX /bin/install
8020 # AmigaOS /C/install, which installs bootblocks on floppy discs
8021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8024 # ./install, which can be erroneously created by make from ./install.sh.
8025 echo "$as_me:8025: checking for a BSD compatible install" >&5
8026 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8027 if test -z "$INSTALL"; then
8028 if test "${ac_cv_path_install+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031 ac_save_IFS=$IFS; IFS=$ac_path_separator
8032 for ac_dir in $PATH; do
8033 IFS=$ac_save_IFS
8034 # Account for people who put trailing slashes in PATH elements.
8035 case $ac_dir/ in
8036 / | ./ | .// | /cC/* \
8037 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
8038 | /usr/ucb/* ) ;;
8039 *)
8040 # OSF1 and SCO ODT 3.0 have their own names for install.
8041 # Don't use installbsd from OSF since it installs stuff as root
8042 # by default.
8043 for ac_prog in ginstall scoinst install; do
8044 if $as_executable_p "$ac_dir/$ac_prog"; then
8045 if test $ac_prog = install &&
8046 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
8047 # AIX install. It has an incompatible calling convention.
8048 :
8049 elif test $ac_prog = install &&
8050 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
8051 # program-specific install script used by HP pwplus--don't use.
8052 :
8053 else
8054 ac_cv_path_install="$ac_dir/$ac_prog -c"
8055 break 2
8056 fi
8057 fi
8058 done
8059 ;;
8060 esac
8061 done
8062
8063 fi
8064 if test "${ac_cv_path_install+set}" = set; then
8065 INSTALL=$ac_cv_path_install
8066 else
8067 # As a last resort, use the slow shell script. We don't cache a
8068 # path for INSTALL within a source directory, because that will
8069 # break other packages using the cache if that directory is
8070 # removed, or if the path is relative.
8071 INSTALL=$ac_install_sh
8072 fi
8073 fi
8074 echo "$as_me:8074: result: $INSTALL" >&5
8075 echo "${ECHO_T}$INSTALL" >&6
8076
8077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8078 # It thinks the first close brace ends the variable substitution.
8079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8080
8081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8082
8083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8084
8085 ac_config_headers="$ac_config_headers config.h"
8086
8087 ac_config_commands="$ac_config_commands default-1"
8088
8089 ac_config_files="$ac_config_files Makefile"
8090 cat >confcache <<\_ACEOF
8091 # This file is a shell script that caches the results of configure
8092 # tests run on this system so they can be shared between configure
8093 # scripts and configure runs, see configure's option --config-cache.
8094 # It is not useful on other systems. If it contains results you don't
8095 # want to keep, you may remove or edit it.
8096 #
8097 # config.status only pays attention to the cache file if you give it
8098 # the --recheck option to rerun configure.
8099 #
8100 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8102 # following values.
8103
8104 _ACEOF
8105
8106 # The following way of writing the cache mishandles newlines in values,
8107 # but we know of no workaround that is simple, portable, and efficient.
8108 # So, don't put newlines in cache variables' values.
8109 # Ultrix sh set writes to stderr and can't be redirected directly,
8110 # and sets the high bit in the cache file unless we assign to the vars.
8111 {
8112 (set) 2>&1 |
8113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8114 *ac_space=\ *)
8115 # `set' does not quote correctly, so add quotes (double-quote
8116 # substitution turns \\\\ into \\, and sed turns \\ into \).
8117 sed -n \
8118 "s/'/'\\\\''/g;
8119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8120 ;;
8121 *)
8122 # `set' quotes correctly as required by POSIX, so do not add quotes.
8123 sed -n \
8124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8125 ;;
8126 esac;
8127 } |
8128 sed '
8129 t clear
8130 : clear
8131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8132 t end
8133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8134 : end' >>confcache
8135 if cmp -s $cache_file confcache; then :; else
8136 if test -w $cache_file; then
8137 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8138 cat confcache >$cache_file
8139 else
8140 echo "not updating unwritable cache $cache_file"
8141 fi
8142 fi
8143 rm -f confcache
8144
8145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8146 # Let make expand exec_prefix.
8147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8148
8149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8151 # trailing colons and then remove the whole line if VPATH becomes empty
8152 # (actually we leave an empty line to preserve line numbers).
8153 if test "x$srcdir" = x.; then
8154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8155 s/:*\$(srcdir):*/:/;
8156 s/:*\${srcdir}:*/:/;
8157 s/:*@srcdir@:*/:/;
8158 s/^\([^=]*=[ ]*\):*/\1/;
8159 s/:*$//;
8160 s/^[^=]*=[ ]*$//;
8161 }'
8162 fi
8163
8164 DEFS=-DHAVE_CONFIG_H
8165
8166 : ${CONFIG_STATUS=./config.status}
8167 ac_clean_files_save=$ac_clean_files
8168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8169 { echo "$as_me:8169: creating $CONFIG_STATUS" >&5
8170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8171 cat >$CONFIG_STATUS <<_ACEOF
8172 #! $SHELL
8173 # Generated automatically by configure.
8174 # Run this file to recreate the current configuration.
8175 # Compiler output produced by configure, useful for debugging
8176 # configure, is in config.log if it exists.
8177
8178 debug=false
8179 SHELL=\${CONFIG_SHELL-$SHELL}
8180 ac_cs_invocation="\$0 \$@"
8181
8182 _ACEOF
8183
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 # Be Bourne compatible
8186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8187 emulate sh
8188 NULLCMD=:
8189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8190 set -o posix
8191 fi
8192
8193 # Name of the executable.
8194 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8195
8196 if expr a : '\(a\)' >/dev/null 2>&1; then
8197 as_expr=expr
8198 else
8199 as_expr=false
8200 fi
8201
8202 rm -f conf$$ conf$$.exe conf$$.file
8203 echo >conf$$.file
8204 if ln -s conf$$.file conf$$ 2>/dev/null; then
8205 # We could just check for DJGPP; but this test a) works b) is more generic
8206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8207 if test -f conf$$.exe; then
8208 # Don't use ln at all; we don't have any links
8209 as_ln_s='cp -p'
8210 else
8211 as_ln_s='ln -s'
8212 fi
8213 elif ln conf$$.file conf$$ 2>/dev/null; then
8214 as_ln_s=ln
8215 else
8216 as_ln_s='cp -p'
8217 fi
8218 rm -f conf$$ conf$$.exe conf$$.file
8219
8220 as_executable_p="test -f"
8221
8222 # Support unset when possible.
8223 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8224 as_unset=unset
8225 else
8226 as_unset=false
8227 fi
8228
8229 # NLS nuisances.
8230 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8231 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8232 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8233 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8234 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8235 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8236 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8237 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8238
8239 # IFS
8240 # We need space, tab and new line, in precisely that order.
8241 as_nl='
8242 '
8243 IFS=" $as_nl"
8244
8245 # CDPATH.
8246 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8247
8248 exec 6>&1
8249
8250 _ACEOF
8251
8252 # Files that config.status was made for.
8253 if test -n "$ac_config_files"; then
8254 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8255 fi
8256
8257 if test -n "$ac_config_headers"; then
8258 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8259 fi
8260
8261 if test -n "$ac_config_links"; then
8262 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8263 fi
8264
8265 if test -n "$ac_config_commands"; then
8266 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8267 fi
8268
8269 cat >>$CONFIG_STATUS <<\EOF
8270
8271 ac_cs_usage="\
8272 \`$as_me' instantiates files from templates according to the
8273 current configuration.
8274
8275 Usage: $0 [OPTIONS] [FILE]...
8276
8277 -h, --help print this help, then exit
8278 -V, --version print version number, then exit
8279 -d, --debug don't remove temporary files
8280 --recheck update $as_me by reconfiguring in the same conditions
8281 --file=FILE[:TEMPLATE]
8282 instantiate the configuration file FILE
8283 --header=FILE[:TEMPLATE]
8284 instantiate the configuration header FILE
8285
8286 Configuration files:
8287 $config_files
8288
8289 Configuration headers:
8290 $config_headers
8291
8292 Configuration commands:
8293 $config_commands
8294
8295 Report bugs to <bug-autoconf@gnu.org>."
8296 EOF
8297
8298 cat >>$CONFIG_STATUS <<EOF
8299 ac_cs_version="\\
8300 config.status
8301 configured by $0, generated by GNU Autoconf 2.52,
8302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8303
8304 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8305 Free Software Foundation, Inc.
8306 This config.status script is free software; the Free Software Foundation
8307 gives unlimited permission to copy, distribute and modify it."
8308 srcdir=$srcdir
8309 INSTALL="$INSTALL"
8310 EOF
8311
8312 cat >>$CONFIG_STATUS <<\EOF
8313 # If no file are specified by the user, then we need to provide default
8314 # value. By we need to know if files were specified by the user.
8315 ac_need_defaults=:
8316 while test $# != 0
8317 do
8318 case $1 in
8319 --*=*)
8320 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8321 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8322 shift
8323 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8324 shift
8325 ;;
8326 -*);;
8327 *) # This is not an option, so the user has probably given explicit
8328 # arguments.
8329 ac_need_defaults=false;;
8330 esac
8331
8332 case $1 in
8333 # Handling of the options.
8334 EOF
8335 cat >>$CONFIG_STATUS <<EOF
8336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8337 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8338 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8339 EOF
8340 cat >>$CONFIG_STATUS <<\EOF
8341 --version | --vers* | -V )
8342 echo "$ac_cs_version"; exit 0 ;;
8343 --he | --h)
8344 # Conflict between --help and --header
8345 { { echo "$as_me:8345: error: ambiguous option: $1
8346 Try \`$0 --help' for more information." >&5
8347 echo "$as_me: error: ambiguous option: $1
8348 Try \`$0 --help' for more information." >&2;}
8349 { (exit 1); exit 1; }; };;
8350 --help | --hel | -h )
8351 echo "$ac_cs_usage"; exit 0 ;;
8352 --debug | --d* | -d )
8353 debug=: ;;
8354 --file | --fil | --fi | --f )
8355 shift
8356 CONFIG_FILES="$CONFIG_FILES $1"
8357 ac_need_defaults=false;;
8358 --header | --heade | --head | --hea )
8359 shift
8360 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8361 ac_need_defaults=false;;
8362
8363 # This is an error.
8364 -*) { { echo "$as_me:8364: error: unrecognized option: $1
8365 Try \`$0 --help' for more information." >&5
8366 echo "$as_me: error: unrecognized option: $1
8367 Try \`$0 --help' for more information." >&2;}
8368 { (exit 1); exit 1; }; } ;;
8369
8370 *) ac_config_targets="$ac_config_targets $1" ;;
8371
8372 esac
8373 shift
8374 done
8375
8376 exec 5>>config.log
8377 cat >&5 << _ACEOF
8378
8379 ## ----------------------- ##
8380 ## Running config.status. ##
8381 ## ----------------------- ##
8382
8383 This file was extended by $as_me 2.52, executed with
8384 CONFIG_FILES = $CONFIG_FILES
8385 CONFIG_HEADERS = $CONFIG_HEADERS
8386 CONFIG_LINKS = $CONFIG_LINKS
8387 CONFIG_COMMANDS = $CONFIG_COMMANDS
8388 > $ac_cs_invocation
8389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8390
8391 _ACEOF
8392 EOF
8393
8394 cat >>$CONFIG_STATUS <<EOF
8395 #
8396 # INIT-COMMANDS section.
8397 #
8398
8399 EOF
8400
8401 cat >>$CONFIG_STATUS <<\EOF
8402 for ac_config_target in $ac_config_targets
8403 do
8404 case "$ac_config_target" in
8405 # Handling of arguments.
8406 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8407 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8408 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8409 *) { { echo "$as_me:8409: error: invalid argument: $ac_config_target" >&5
8410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8411 { (exit 1); exit 1; }; };;
8412 esac
8413 done
8414
8415 # If the user did not use the arguments to specify the items to instantiate,
8416 # then the envvar interface is used. Set only those that are not.
8417 # We use the long form for the default assignment because of an extremely
8418 # bizarre bug on SunOS 4.1.3.
8419 if $ac_need_defaults; then
8420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8423 fi
8424
8425 # Create a temporary directory, and hook for its removal unless debugging.
8426 $debug ||
8427 {
8428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8429 trap '{ (exit 1); exit 1; }' 1 2 13 15
8430 }
8431
8432 # Create a (secure) tmp directory for tmp files.
8433 : ${TMPDIR=/tmp}
8434 {
8435 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8436 test -n "$tmp" && test -d "$tmp"
8437 } ||
8438 {
8439 tmp=$TMPDIR/cs$$-$RANDOM
8440 (umask 077 && mkdir $tmp)
8441 } ||
8442 {
8443 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8444 { (exit 1); exit 1; }
8445 }
8446
8447 EOF
8448
8449 cat >>$CONFIG_STATUS <<EOF
8450
8451 #
8452 # CONFIG_FILES section.
8453 #
8454
8455 # No need to generate the scripts if there are no CONFIG_FILES.
8456 # This happens for instance when ./config.status config.h
8457 if test -n "\$CONFIG_FILES"; then
8458 # Protect against being on the right side of a sed subst in config.status.
8459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8461 s,@SHELL@,$SHELL,;t t
8462 s,@exec_prefix@,$exec_prefix,;t t
8463 s,@prefix@,$prefix,;t t
8464 s,@program_transform_name@,$program_transform_name,;t t
8465 s,@bindir@,$bindir,;t t
8466 s,@sbindir@,$sbindir,;t t
8467 s,@libexecdir@,$libexecdir,;t t
8468 s,@datadir@,$datadir,;t t
8469 s,@sysconfdir@,$sysconfdir,;t t
8470 s,@sharedstatedir@,$sharedstatedir,;t t
8471 s,@localstatedir@,$localstatedir,;t t
8472 s,@libdir@,$libdir,;t t
8473 s,@includedir@,$includedir,;t t
8474 s,@oldincludedir@,$oldincludedir,;t t
8475 s,@infodir@,$infodir,;t t
8476 s,@mandir@,$mandir,;t t
8477 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8478 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8479 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8480 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8481 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8482 s,@build_alias@,$build_alias,;t t
8483 s,@host_alias@,$host_alias,;t t
8484 s,@target_alias@,$target_alias,;t t
8485 s,@ECHO_C@,$ECHO_C,;t t
8486 s,@ECHO_N@,$ECHO_N,;t t
8487 s,@ECHO_T@,$ECHO_T,;t t
8488 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8489 s,@DEFS@,$DEFS,;t t
8490 s,@LIBS@,$LIBS,;t t
8491 s,@build@,$build,;t t
8492 s,@build_cpu@,$build_cpu,;t t
8493 s,@build_vendor@,$build_vendor,;t t
8494 s,@build_os@,$build_os,;t t
8495 s,@host@,$host,;t t
8496 s,@host_cpu@,$host_cpu,;t t
8497 s,@host_vendor@,$host_vendor,;t t
8498 s,@host_os@,$host_os,;t t
8499 s,@SHLICC2@,$SHLICC2,;t t
8500 s,@CC@,$CC,;t t
8501 s,@CFLAGS@,$CFLAGS,;t t
8502 s,@LDFLAGS@,$LDFLAGS,;t t
8503 s,@CPPFLAGS@,$CPPFLAGS,;t t
8504 s,@ac_ct_CC@,$ac_ct_CC,;t t
8505 s,@EXEEXT@,$EXEEXT,;t t
8506 s,@OBJEXT@,$OBJEXT,;t t
8507 s,@CPP@,$CPP,;t t
8508 s,@LIBOBJS@,$LIBOBJS,;t t
8509 s,@V_CCOPT@,$V_CCOPT,;t t
8510 s,@V_DEFS@,$V_DEFS,;t t
8511 s,@V_GROUP@,$V_GROUP,;t t
8512 s,@V_INCLS@,$V_INCLS,;t t
8513 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
8514 s,@LOCALSRC@,$LOCALSRC,;t t
8515 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8516 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8517 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8518 CEOF
8519
8520 EOF
8521
8522 cat >>$CONFIG_STATUS <<\EOF
8523 # Split the substitutions into bite-sized pieces for seds with
8524 # small command number limits, like on Digital OSF/1 and HP-UX.
8525 ac_max_sed_lines=48
8526 ac_sed_frag=1 # Number of current file.
8527 ac_beg=1 # First line for current file.
8528 ac_end=$ac_max_sed_lines # Line after last line for current file.
8529 ac_more_lines=:
8530 ac_sed_cmds=
8531 while $ac_more_lines; do
8532 if test $ac_beg -gt 1; then
8533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8534 else
8535 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8536 fi
8537 if test ! -s $tmp/subs.frag; then
8538 ac_more_lines=false
8539 else
8540 # The purpose of the label and of the branching condition is to
8541 # speed up the sed processing (if there are no `@' at all, there
8542 # is no need to browse any of the substitutions).
8543 # These are the two extra sed commands mentioned above.
8544 (echo ':t
8545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8546 if test -z "$ac_sed_cmds"; then
8547 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8548 else
8549 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8550 fi
8551 ac_sed_frag=`expr $ac_sed_frag + 1`
8552 ac_beg=$ac_end
8553 ac_end=`expr $ac_end + $ac_max_sed_lines`
8554 fi
8555 done
8556 if test -z "$ac_sed_cmds"; then
8557 ac_sed_cmds=cat
8558 fi
8559 fi # test -n "$CONFIG_FILES"
8560
8561 EOF
8562 cat >>$CONFIG_STATUS <<\EOF
8563 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8565 case $ac_file in
8566 - | *:- | *:-:* ) # input from stdin
8567 cat >$tmp/stdin
8568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8572 * ) ac_file_in=$ac_file.in ;;
8573 esac
8574
8575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8576 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8577 X"$ac_file" : 'X\(//\)[^/]' \| \
8578 X"$ac_file" : 'X\(//\)$' \| \
8579 X"$ac_file" : 'X\(/\)' \| \
8580 . : '\(.\)' 2>/dev/null ||
8581 echo X"$ac_file" |
8582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8584 /^X\(\/\/\)$/{ s//\1/; q; }
8585 /^X\(\/\).*/{ s//\1/; q; }
8586 s/.*/./; q'`
8587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8588 { case "$ac_dir" in
8589 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8590 *) as_incr_dir=.;;
8591 esac
8592 as_dummy="$ac_dir"
8593 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8594 case $as_mkdir_dir in
8595 # Skip DOS drivespec
8596 ?:) as_incr_dir=$as_mkdir_dir ;;
8597 *)
8598 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8599 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8600 ;;
8601 esac
8602 done; }
8603
8604 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8605 # A "../" for each directory in $ac_dir_suffix.
8606 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8607 else
8608 ac_dir_suffix= ac_dots=
8609 fi
8610
8611 case $srcdir in
8612 .) ac_srcdir=.
8613 if test -z "$ac_dots"; then
8614 ac_top_srcdir=.
8615 else
8616 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8617 fi ;;
8618 [\\/]* | ?:[\\/]* )
8619 ac_srcdir=$srcdir$ac_dir_suffix;
8620 ac_top_srcdir=$srcdir ;;
8621 *) # Relative path.
8622 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8623 ac_top_srcdir=$ac_dots$srcdir ;;
8624 esac
8625
8626 case $INSTALL in
8627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8628 *) ac_INSTALL=$ac_dots$INSTALL ;;
8629 esac
8630
8631 if test x"$ac_file" != x-; then
8632 { echo "$as_me:8632: creating $ac_file" >&5
8633 echo "$as_me: creating $ac_file" >&6;}
8634 rm -f "$ac_file"
8635 fi
8636 # Let's still pretend it is `configure' which instantiates (i.e., don't
8637 # use $as_me), people would be surprised to read:
8638 # /* config.h. Generated automatically by config.status. */
8639 configure_input="Generated automatically from `echo $ac_file_in |
8640 sed 's,.*/,,'` by configure."
8641
8642 # First look for the input files in the build tree, otherwise in the
8643 # src tree.
8644 ac_file_inputs=`IFS=:
8645 for f in $ac_file_in; do
8646 case $f in
8647 -) echo $tmp/stdin ;;
8648 [\\/$]*)
8649 # Absolute (can't be DOS-style, as IFS=:)
8650 test -f "$f" || { { echo "$as_me:8650: error: cannot find input file: $f" >&5
8651 echo "$as_me: error: cannot find input file: $f" >&2;}
8652 { (exit 1); exit 1; }; }
8653 echo $f;;
8654 *) # Relative
8655 if test -f "$f"; then
8656 # Build tree
8657 echo $f
8658 elif test -f "$srcdir/$f"; then
8659 # Source tree
8660 echo $srcdir/$f
8661 else
8662 # /dev/null tree
8663 { { echo "$as_me:8663: error: cannot find input file: $f" >&5
8664 echo "$as_me: error: cannot find input file: $f" >&2;}
8665 { (exit 1); exit 1; }; }
8666 fi;;
8667 esac
8668 done` || { (exit 1); exit 1; }
8669 EOF
8670 cat >>$CONFIG_STATUS <<EOF
8671 sed "$ac_vpsub
8672 $extrasub
8673 EOF
8674 cat >>$CONFIG_STATUS <<\EOF
8675 :t
8676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8677 s,@configure_input@,$configure_input,;t t
8678 s,@srcdir@,$ac_srcdir,;t t
8679 s,@top_srcdir@,$ac_top_srcdir,;t t
8680 s,@INSTALL@,$ac_INSTALL,;t t
8681 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8682 rm -f $tmp/stdin
8683 if test x"$ac_file" != x-; then
8684 mv $tmp/out $ac_file
8685 else
8686 cat $tmp/out
8687 rm -f $tmp/out
8688 fi
8689
8690 done
8691 EOF
8692 cat >>$CONFIG_STATUS <<\EOF
8693
8694 #
8695 # CONFIG_HEADER section.
8696 #
8697
8698 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8699 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8700 #
8701 # ac_d sets the value in "#define NAME VALUE" lines.
8702 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8703 ac_dB='[ ].*$,\1#\2'
8704 ac_dC=' '
8705 ac_dD=',;t'
8706 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8707 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8708 ac_uB='$,\1#\2define\3'
8709 ac_uC=' '
8710 ac_uD=',;t'
8711
8712 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8714 case $ac_file in
8715 - | *:- | *:-:* ) # input from stdin
8716 cat >$tmp/stdin
8717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8721 * ) ac_file_in=$ac_file.in ;;
8722 esac
8723
8724 test x"$ac_file" != x- && { echo "$as_me:8724: creating $ac_file" >&5
8725 echo "$as_me: creating $ac_file" >&6;}
8726
8727 # First look for the input files in the build tree, otherwise in the
8728 # src tree.
8729 ac_file_inputs=`IFS=:
8730 for f in $ac_file_in; do
8731 case $f in
8732 -) echo $tmp/stdin ;;
8733 [\\/$]*)
8734 # Absolute (can't be DOS-style, as IFS=:)
8735 test -f "$f" || { { echo "$as_me:8735: error: cannot find input file: $f" >&5
8736 echo "$as_me: error: cannot find input file: $f" >&2;}
8737 { (exit 1); exit 1; }; }
8738 echo $f;;
8739 *) # Relative
8740 if test -f "$f"; then
8741 # Build tree
8742 echo $f
8743 elif test -f "$srcdir/$f"; then
8744 # Source tree
8745 echo $srcdir/$f
8746 else
8747 # /dev/null tree
8748 { { echo "$as_me:8748: error: cannot find input file: $f" >&5
8749 echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8751 fi;;
8752 esac
8753 done` || { (exit 1); exit 1; }
8754 # Remove the trailing spaces.
8755 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8756
8757 EOF
8758
8759 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8760 # `conftest.undefs', that substitutes the proper values into
8761 # config.h.in to produce config.h. The first handles `#define'
8762 # templates, and the second `#undef' templates.
8763 # And first: Protect against being on the right side of a sed subst in
8764 # config.status. Protect against being in an unquoted here document
8765 # in config.status.
8766 rm -f conftest.defines conftest.undefs
8767 # Using a here document instead of a string reduces the quoting nightmare.
8768 # Putting comments in sed scripts is not portable.
8769 #
8770 # `end' is used to avoid that the second main sed command (meant for
8771 # 0-ary CPP macros) applies to n-ary macro definitions.
8772 # See the Autoconf documentation for `clear'.
8773 cat >confdef2sed.sed <<\EOF
8774 s/[\\&,]/\\&/g
8775 s,[\\$`],\\&,g
8776 t clear
8777 : clear
8778 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8779 t end
8780 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8781 : end
8782 EOF
8783 # If some macros were called several times there might be several times
8784 # the same #defines, which is useless. Nevertheless, we may not want to
8785 # sort them, since we want the *last* AC-DEFINE to be honored.
8786 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8787 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8788 rm -f confdef2sed.sed
8789
8790 # This sed command replaces #undef with comments. This is necessary, for
8791 # example, in the case of _POSIX_SOURCE, which is predefined and required
8792 # on some systems where configure will not decide to define it.
8793 cat >>conftest.undefs <<\EOF
8794 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8795 EOF
8796
8797 # Break up conftest.defines because some shells have a limit on the size
8798 # of here documents, and old seds have small limits too (100 cmds).
8799 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8800 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8801 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8802 echo ' :' >>$CONFIG_STATUS
8803 rm -f conftest.tail
8804 while grep . conftest.defines >/dev/null
8805 do
8806 # Write a limited-size here document to $tmp/defines.sed.
8807 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8808 # Speed up: don't consider the non `#define' lines.
8809 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8810 # Work around the forget-to-reset-the-flag bug.
8811 echo 't clr' >>$CONFIG_STATUS
8812 echo ': clr' >>$CONFIG_STATUS
8813 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8814 echo 'CEOF
8815 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8816 rm -f $tmp/in
8817 mv $tmp/out $tmp/in
8818 ' >>$CONFIG_STATUS
8819 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8820 rm -f conftest.defines
8821 mv conftest.tail conftest.defines
8822 done
8823 rm -f conftest.defines
8824 echo ' fi # egrep' >>$CONFIG_STATUS
8825 echo >>$CONFIG_STATUS
8826
8827 # Break up conftest.undefs because some shells have a limit on the size
8828 # of here documents, and old seds have small limits too (100 cmds).
8829 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8830 rm -f conftest.tail
8831 while grep . conftest.undefs >/dev/null
8832 do
8833 # Write a limited-size here document to $tmp/undefs.sed.
8834 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8835 # Speed up: don't consider the non `#undef'
8836 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8837 # Work around the forget-to-reset-the-flag bug.
8838 echo 't clr' >>$CONFIG_STATUS
8839 echo ': clr' >>$CONFIG_STATUS
8840 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8841 echo 'CEOF
8842 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8843 rm -f $tmp/in
8844 mv $tmp/out $tmp/in
8845 ' >>$CONFIG_STATUS
8846 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8847 rm -f conftest.undefs
8848 mv conftest.tail conftest.undefs
8849 done
8850 rm -f conftest.undefs
8851
8852 cat >>$CONFIG_STATUS <<\EOF
8853 # Let's still pretend it is `configure' which instantiates (i.e., don't
8854 # use $as_me), people would be surprised to read:
8855 # /* config.h. Generated automatically by config.status. */
8856 if test x"$ac_file" = x-; then
8857 echo "/* Generated automatically by configure. */" >$tmp/config.h
8858 else
8859 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8860 fi
8861 cat $tmp/in >>$tmp/config.h
8862 rm -f $tmp/in
8863 if test x"$ac_file" != x-; then
8864 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8865 { echo "$as_me:8865: $ac_file is unchanged" >&5
8866 echo "$as_me: $ac_file is unchanged" >&6;}
8867 else
8868 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8869 X"$ac_file" : 'X\(//\)[^/]' \| \
8870 X"$ac_file" : 'X\(//\)$' \| \
8871 X"$ac_file" : 'X\(/\)' \| \
8872 . : '\(.\)' 2>/dev/null ||
8873 echo X"$ac_file" |
8874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8876 /^X\(\/\/\)$/{ s//\1/; q; }
8877 /^X\(\/\).*/{ s//\1/; q; }
8878 s/.*/./; q'`
8879 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8880 { case "$ac_dir" in
8881 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8882 *) as_incr_dir=.;;
8883 esac
8884 as_dummy="$ac_dir"
8885 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8886 case $as_mkdir_dir in
8887 # Skip DOS drivespec
8888 ?:) as_incr_dir=$as_mkdir_dir ;;
8889 *)
8890 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8891 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8892 ;;
8893 esac
8894 done; }
8895
8896 fi
8897 rm -f $ac_file
8898 mv $tmp/config.h $ac_file
8899 fi
8900 else
8901 cat $tmp/config.h
8902 rm -f $tmp/config.h
8903 fi
8904 done
8905 EOF
8906 cat >>$CONFIG_STATUS <<\EOF
8907
8908 #
8909 # CONFIG_COMMANDS section.
8910 #
8911 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8912 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8913 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8914
8915 case $ac_dest in
8916 default-1 ) if test -f .devel; then
8917 echo timestamp > stamp-h
8918 cat Makefile-devel-adds >> Makefile
8919 make depend
8920 fi ;;
8921 esac
8922 done
8923 EOF
8924
8925 cat >>$CONFIG_STATUS <<\EOF
8926
8927 { (exit 0); exit 0; }
8928 EOF
8929 chmod +x $CONFIG_STATUS
8930 ac_clean_files=$ac_clean_files_save
8931
8932 # configure is writing to config.log, and then calls config.status.
8933 # config.status does its own redirection, appending to config.log.
8934 # Unfortunately, on DOS this fails, as config.log is still kept open
8935 # by configure, so config.status won't be able to write to it; its
8936 # output is simply discarded. So we exec the FD to /dev/null,
8937 # effectively closing config.log, so it can be properly (re)opened and
8938 # appended to by config.status. When coming back to configure, we
8939 # need to make the FD available again.
8940 if test "$no_create" != yes; then
8941 ac_cs_success=:
8942 exec 5>/dev/null
8943 $SHELL $CONFIG_STATUS || ac_cs_success=false
8944 exec 5>>config.log
8945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8946 # would make configure fail if this is the last instruction.
8947 $ac_cs_success || { (exit 1); exit 1; }
8948 fi
8949
8950 exit 0