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.
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.
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
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
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"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Name of the executable.
33 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41 rm -f conf$$ conf$$.exe 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
52 elif ln conf$$.
file conf$$
2>/dev
/null
; then
57 rm -f conf$$ conf$$.exe conf$$.
file
59 as_executable_p
="test -f"
61 # Support unset when possible.
62 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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
; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
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`
97 ac_default_prefix
=/usr
/local
101 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
108 ac_unique_file
="tcpdump.c"
109 # Factoring default headers for most tests.
110 ac_includes_default
="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version
=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name
=s
,x
,x
,
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'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
209 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
212 -build |
--build |
--buil |
--bui |
--bu)
213 ac_prev
=build_alias
;;
214 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
215 build_alias
=$ac_optarg ;;
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 ;;
225 cache_file
=config.cache
;;
227 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
229 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
231 datadir
=$ac_optarg ;;
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" ;;
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'`
250 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
264 -gas |
--gas |
--ga |
--g)
265 # Obsolete; use --with-gas.
268 -help |
--help |
--hel |
--he |
-h)
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
;;
275 -host |
--host |
--hos |
--ho)
276 ac_prev
=host_alias
;;
277 -host=* |
--host=* |
--hos=* |
--ho=*)
278 host_alias
=$ac_optarg ;;
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 ;;
287 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
289 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
290 infodir
=$ac_optarg ;;
292 -libdir |
--libdir |
--libdi |
--libd)
294 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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 ;;
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 ;;
313 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
315 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
319 # Obsolete; use --without-fp.
322 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
326 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
327 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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 ;;
339 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
341 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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 ;;
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 ;;
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 ;;
375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
376 |
-silent |
--silent |
--silen |
--sile |
--sil)
379 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
381 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
383 sbindir
=$ac_optarg ;;
385 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
386 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
387 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
391 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
392 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
394 sharedstatedir
=$ac_optarg ;;
396 -site |
--site |
--sit)
398 -site=* |
--site=* |
--sit=*)
401 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
403 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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 ;;
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 ;;
418 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
421 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
432 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
447 # Obsolete; use --with-x.
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 ;;
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 ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
496 # Be sure to have absolute paths.
497 for ac_var
in exec_prefix prefix
499 eval ac_val
=$
`echo $ac_var`
501 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
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
511 eval ac_val
=$
`echo $ac_var`
513 [\\/$
]* | ?
:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
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
537 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
539 test "$silent" = yes && exec 6>/dev
/null
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.
546 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
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; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
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}
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
599 # Report the --help message.
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.
605 \`configure' configures this package to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
612 Defaults for the options are specified in brackets.
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 \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
639 For better control, use the options below.
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]
659 --build=BUILD configure
for building on BUILD
[guessed
]
660 --host=HOST build programs to run on HOST
[BUILD
]
664 if test -n "$ac_init_help"; then
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
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
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>
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.
697 if test "$ac_init_help" = "recursive"; then
698 # If there are subdirs, report their specific --help.
700 for ac_subdir
in : $ac_subdirs_all; do test "x$ac_subdir" = x
: && continue
702 # A "../" for each directory in /$ac_subdir.
703 ac_dots
=`echo $ac_subdir |
704 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
707 .
) # No --srcdir option. We are building in place.
708 ac_sub_srcdir
=$srcdir ;;
709 [\\/]* | ?
:[\\/]* ) # Absolute path.
710 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
712 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
715 # Check for guested configure; otherwise get Cygnus style configure.
716 if test -f $ac_sub_srcdir/configure.gnu
; then
718 $SHELL $ac_sub_srcdir/configure.gnu
--help=recursive
719 elif test -f $ac_sub_srcdir/configure
; then
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
727 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
733 test -n "$ac_init_help" && exit 0
734 if $ac_init_version; then
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.
746 This file contains any messages produced by compilers while
747 running configure, to aid debugging if configure makes a mistake.
749 It was created by $as_me, which was
750 generated by GNU Autoconf 2.52. Invocation command line was
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`
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`
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`
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.
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'"
806 *) ac_configure_args
="$ac_configure_args$ac_sep$ac_arg"
809 # Get rid of the leading space.
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.
816 # Save into config.log some information that might help in debugging.
818 echo "## ----------------- ##" >&5
819 echo "## Cache variables. ##" >&5
820 echo "## ----------------- ##" >&5
822 # The following way of writing the cache mishandles newlines in values,
825 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
828 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
837 sed "/^$/d" confdefs.h >conftest.log
838 if test -s conftest.log; then
840 echo "## ------------ ##" >&5
841 echo "## confdefs.h. ##" >&5
842 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 &&
853 for ac_signal
in 1 2 13 15; do
854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
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"
869 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
888 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
893 { echo "$as_me:893: creating cache $cache_file" >&5
894 echo "$as_me: creating cache $cache_file" >&6;}
898 # Check that the precious variables saved in the cache have kept the same
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
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
=: ;;
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
=: ;;
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;}
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
932 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
933 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
934 ac_configure_args
="$ac_configure_args '$ac_arg'"
936 *) ac_configure_args
="$ac_configure_args $ac_var=$ac_new_val"
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; }; }
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
955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
956 *c
*,-n*) ECHO_N
= ECHO_C
='
958 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
959 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
961 echo "#! $SHELL" >conftest.sh
962 echo "exit 0" >>conftest.sh
964 if { (echo "$as_me:964: PATH=\".;.\"; conftest.sh") >&5
965 (PATH
=".;."; conftest.sh
) 2>&5
967 echo "$as_me:967: \$? = $ac_status" >&5
968 (exit $ac_status); }; then
969 ac_path_separator
=';'
973 PATH_SEPARATOR
="$ac_path_separator"
977 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
978 if test -f $ac_dir/install-sh
; then
980 ac_install_sh
="$ac_aux_dir/install-sh -c"
982 elif test -f $ac_dir/install.sh
; then
984 ac_install_sh
="$ac_aux_dir/install.sh -c"
986 elif test -f $ac_dir/shtool
; then
988 ac_install_sh
="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1025 echo "$as_me:1025: result: $ac_cv_build" >&5
1026 echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1046 echo "$as_me:1046: result: $ac_cv_host" >&5
1047 echo "${ECHO_T}$ac_cv_host" >&6
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/'`
1053 # Check whether --with-gcc or --without-gcc was given.
1054 if test "${with_gcc+set}" = set; then
1060 if test "${srcdir}" != "." ; then
1061 V_INCLS
="-I\$(srcdir)"
1063 if test "${CFLAGS+set}" = set; then
1064 LBL_CFLAGS
="$CFLAGS"
1066 if test -z "$CC" ; then
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
1077 if test -n "$SHLICC2"; then
1078 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1080 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1082 for ac_dir
in $ac_dummy; do
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
1091 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
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
1099 echo "$as_me:1099: result: no" >&5
1100 echo "${ECHO_T}no" >&6
1103 if test $SHLICC2 = yes ; then
1110 if test -z "$CC" -a "$with_gcc" = no
; then
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
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC
="$CC" # Let the user override the test.
1130 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1132 for ac_dir
in $ac_dummy; do
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
1144 if test -n "$CC"; then
1145 echo "$as_me:1145: result: $CC" >&5
1146 echo "${ECHO_T}$CC" >&6
1148 echo "$as_me:1148: result: no" >&5
1149 echo "${ECHO_T}no" >&6
1153 if test -z "$ac_cv_prog_CC"; then
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
1162 if test -n "$ac_ct_CC"; then
1163 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1165 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1167 for ac_dir
in $ac_dummy; do
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
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
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
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
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC
="$CC" # Let the user override the test.
1204 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1206 for ac_dir
in $ac_dummy; do
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
1218 if test -n "$CC"; then
1219 echo "$as_me:1219: result: $CC" >&5
1220 echo "${ECHO_T}$CC" >&6
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1227 if test -z "$ac_cv_prog_CC"; then
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
1236 if test -n "$ac_ct_CC"; then
1237 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1239 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1241 for ac_dir
in $ac_dummy; do
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
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
1257 echo "$as_me:1257: result: no" >&5
1258 echo "${ECHO_T}no" >&6
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
1275 if test -n "$CC"; then
1276 ac_cv_prog_CC
="$CC" # Let the user override the test.
1279 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1281 for ac_dir
in $ac_dummy; do
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
1290 echo "$as_me:1290: found $ac_dir/$ac_word" >&5
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
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.
1303 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1311 if test -n "$CC"; then
1312 echo "$as_me:1312: result: $CC" >&5
1313 echo "${ECHO_T}$CC" >&6
1315 echo "$as_me:1315: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1320 if test -z "$CC"; then
1321 if test -n "$ac_tool_prefix"; then
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
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC
="$CC" # Let the user override the test.
1334 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1336 for ac_dir
in $ac_dummy; do
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
1348 if test -n "$CC"; then
1349 echo "$as_me:1349: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1352 echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1356 test -n "$CC" && break
1359 if test -z "$CC"; then
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
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1373 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1375 for ac_dir
in $ac_dummy; do
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
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
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1427 cat >conftest.
$ac_ext <<_ACEOF
1428 #line 1428 "configure"
1429 #include "confdefs.h"
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
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
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
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
1459 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1460 a.out
) # We found the default executable, but exeext='' is most
1463 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1464 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
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; }; }
1478 ac_exeext
=$ac_cv_exeext
1479 echo "$as_me:1479: result: $ac_file" >&5
1480 echo "${ECHO_T}$ac_file" >&6
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
1493 echo "$as_me:1493: \$? = $ac_status" >&5
1494 (exit $ac_status); }; }; then
1497 if test "$cross_compiling" = maybe
; then
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; }; }
1508 echo "$as_me:1508: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
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
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
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
1531 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1533 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1534 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1550 rm -f conftest.
$ac_ext
1551 EXEEXT
=$ac_cv_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
1558 cat >conftest.
$ac_ext <<_ACEOF
1559 #line 1559 "configure"
1560 #include "confdefs.h"
1570 rm -f conftest.o conftest.obj
1571 if { (eval echo "$as_me:1571: \"$ac_compile\"") >&5
1572 (eval $ac_compile) 2>&5
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
1578 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1579 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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; }; }
1591 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1593 echo "$as_me:1593: result: $ac_cv_objext" >&5
1594 echo "${ECHO_T}$ac_cv_objext" >&6
1595 OBJEXT
=$ac_cv_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
1602 cat >conftest.
$ac_ext <<_ACEOF
1603 #line 1603 "configure"
1604 #include "confdefs.h"
1617 rm -f conftest.
$ac_objext
1618 if { (eval echo "$as_me:1618: \"$ac_compile\"") >&5
1619 (eval $ac_compile) 2>&5
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
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }; }; then
1631 echo "$as_me: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1635 rm -f conftest.
$ac_objext conftest.
$ac_ext
1636 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
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
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
1650 cat >conftest.
$ac_ext <<_ACEOF
1651 #line 1651 "configure"
1652 #include "confdefs.h"
1662 rm -f conftest.
$ac_objext
1663 if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5
1664 (eval $ac_compile) 2>&5
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
1672 echo "$as_me:1672: \$? = $ac_status" >&5
1673 (exit $ac_status); }; }; then
1676 echo "$as_me: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1680 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
1693 if test "$GCC" = yes; then
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
1708 rm -f conftest.
$ac_objext
1709 if { (eval echo "$as_me:1709: \"$ac_compile\"") >&5
1710 (eval $ac_compile) 2>&5
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
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }; }; then
1720 for ac_declaration
in \
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);' \
1729 cat >conftest.
$ac_ext <<_ACEOF
1730 #line 1730 "configure"
1731 #include "confdefs.h"
1742 rm -f conftest.
$ac_objext
1743 if { (eval echo "$as_me:1743: \"$ac_compile\"") >&5
1744 (eval $ac_compile) 2>&5
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
1752 echo "$as_me:1752: \$? = $ac_status" >&5
1753 (exit $ac_status); }; }; then
1756 echo "$as_me: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1760 rm -f conftest.
$ac_objext conftest.
$ac_ext
1761 cat >conftest.
$ac_ext <<_ACEOF
1762 #line 1762 "configure"
1763 #include "confdefs.h"
1773 rm -f conftest.
$ac_objext
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
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
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1787 echo "$as_me: failed program was:" >&5
1788 cat conftest.
$ac_ext >&5
1790 rm -f conftest.
$ac_objext conftest.
$ac_ext
1793 if test -n "$ac_declaration"; then
1794 echo '#ifdef __cplusplus' >>confdefs.h
1795 echo $ac_declaration >>confdefs.h
1796 echo '#endif' >>confdefs.h
1800 echo "$as_me: failed program was:" >&5
1801 cat conftest.
$ac_ext >&5
1803 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
1810 if test "$GCC" = yes ; then
1811 if test "$SHLICC2" = yes ; then
1812 ac_cv_lbl_gcc_vers
=2
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
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]*//' \
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
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
1840 cat >conftest.
$ac_ext <<_ACEOF
1841 #line 1841 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1847 int frob(int, char *)
1852 rm -f conftest.
$ac_objext
1853 if { (eval echo "$as_me:1853: \"$ac_compile\"") >&5
1854 (eval $ac_compile) 2>&5
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
1862 echo "$as_me:1862: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1864 ac_cv_lbl_cc_ansi_prototypes
=yes
1866 echo "$as_me: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1868 ac_cv_lbl_cc_ansi_prototypes
=no
1870 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
1886 cat >conftest.
$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1889 #include <sys/types.h>
1893 int frob(int, char *)
1898 rm -f conftest.
$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
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
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_lbl_cc_hpux_cc_aa
=yes
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1914 ac_cv_lbl_cc_hpux_cc_aa
=no
1916 rm -f conftest.
$ac_objext conftest.
$ac_ext
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; }; }
1926 CFLAGS
="$savedcflags"
1927 V_CCOPT
="-Aa $V_CCOPT"
1928 cat >>confdefs.h
<<\EOF
1929 #define _HPUX_SOURCE 1
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; }; }
1941 V_INCLS
="$V_INCLS -I/usr/local/include"
1942 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1947 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1951 V_CCOPT
="$V_CCOPT -std1 -O"
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
1960 cat >conftest.
$ac_ext <<_ACEOF
1961 #line 1961 "configure"
1962 #include "confdefs.h"
1963 #include <sys/types.h>
1967 struct a { int b; };
1968 void c(const struct a *)
1973 rm -f conftest.
$ac_objext
1974 if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
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
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_cv_lbl_cc_const_proto
=yes
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1989 ac_cv_lbl_cc_const_proto
=no
1991 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2014 for ac_lbl_inline
in inline __inline__ __inline
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);
2026 static inline struct iltest *
2029 static struct iltest xxx;
2041 rm -f conftest.
$ac_objext
2042 if { (eval echo "$as_me:2042: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
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
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2053 ac_lbl_cc_inline
=yes
2055 echo "$as_me: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 rm -f conftest.
$ac_objext conftest.
$ac_ext
2059 if test "$ac_lbl_cc_inline" = yes ; then
2063 if test "$ac_lbl_cc_inline" = yes ; then
2064 ac_cv_lbl_inline
=$ac_lbl_inline
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
2072 echo "$as_me:2072: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2076 cat >>confdefs.h
<<EOF
2077 #define inline $ac_cv_lbl_inline
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
2086 cat >conftest.
$ac_ext <<_ACEOF
2087 #line 2087 "configure"
2088 #include "confdefs.h"
2096 static void foo(void) __attribute__ ((noreturn));
2108 rm -f conftest.
$ac_objext
2109 if { (eval echo "$as_me:2109: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
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
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 ac_cv___attribute__
=yes
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2124 ac_cv___attribute__
=no
2126 rm -f conftest.
$ac_objext conftest.
$ac_ext
2129 if test "$ac_cv___attribute__" = "yes"; then
2131 cat >>confdefs.h
<<\EOF
2132 #define HAVE___ATTRIBUTE__ 1
2135 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2137 V_DEFS
="$V_DEFS -D_U_=\"\""
2139 echo "$as_me:2139: result: $ac_cv___attribute__" >&5
2140 echo "${ECHO_T}$ac_cv___attribute__" >&6
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
2153 if test -z "$CPP"; then
2154 if test "${ac_cv_prog_CPP+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 # Double quotes because CPP needs to be expanded
2158 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2161 for ac_c_preproc_warn_flag
in '' yes
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"
2173 if { (eval echo "$as_me:2173: \"$ac_cpp conftest.$ac_ext\"") >&5
2174 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2176 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2189 if test -z "$ac_cpp_err"; then
2192 echo "$as_me: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2194 # Broken: fails on valid input.
2197 rm -f conftest.err conftest.
$ac_ext
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>
2206 if { (eval echo "$as_me:2206: \"$ac_cpp conftest.$ac_ext\"") >&5
2207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2209 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2222 if test -z "$ac_cpp_err"; then
2223 # Broken: success on invalid input.
2226 echo "$as_me: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2228 # Passes both tests.
2232 rm -f conftest.err conftest.
$ac_ext
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
2249 echo "$as_me:2249: result: $CPP" >&5
2250 echo "${ECHO_T}$CPP" >&6
2252 for ac_c_preproc_warn_flag
in '' yes
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"
2264 if { (eval echo "$as_me:2264: \"$ac_cpp conftest.$ac_ext\"") >&5
2265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2267 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2280 if test -z "$ac_cpp_err"; then
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2285 # Broken: fails on valid input.
2288 rm -f conftest.err conftest.
$ac_ext
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>
2297 if { (eval echo "$as_me:2297: \"$ac_cpp conftest.$ac_ext\"") >&5
2298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2300 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2313 if test -z "$ac_cpp_err"; then
2314 # Broken: success on invalid input.
2317 echo "$as_me: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2319 # Passes both tests.
2323 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
2342 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h netinet
/ether.h
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
2350 cat >conftest.
$ac_ext <<_ACEOF
2351 #line 2351 "configure"
2352 #include "confdefs.h"
2353 #include <$ac_header>
2355 if { (eval echo "$as_me:2355: \"$ac_cpp conftest.$ac_ext\"") >&5
2356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2358 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2371 if test -z "$ac_cpp_err"; then
2372 eval "$as_ac_Header=yes"
2374 echo "$as_me: failed program was:" >&5
2375 cat conftest.
$ac_ext >&5
2376 eval "$as_ac_Header=no"
2378 rm -f conftest.err conftest.
$ac_ext
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
2390 for ac_header
in netinet
/if_ether.h
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
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>
2405 rm -f conftest.
$ac_objext
2406 if { (eval echo "$as_me:2406: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
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
2415 echo "$as_me:2415: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 eval "$as_ac_Header=yes"
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2421 eval "$as_ac_Header=no"
2423 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2440 cat >conftest.
$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2443 #include <sys/types.h>
2444 #include <sys/time.h>
2450 if ((struct tm *) 0)
2456 rm -f conftest.
$ac_objext
2457 if { (eval echo "$as_me:2457: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
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
2466 echo "$as_me:2466: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_header_time
=yes
2470 echo "$as_me: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2472 ac_cv_header_time
=no
2474 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
2480 cat >>confdefs.h
<<\EOF
2481 #define TIME_WITH_SYS_TIME 1
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
2495 ac_cv_linux_vers
=unknown
2499 if test "${ac_cv_linux_vers+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 ac_cv_linux_vers
=`uname -r 2>&1 | \
2503 sed -n -e '$s/.* //' -e '$s/\..*//p'`
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; }; }
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; }; }
2525 for ac_header
in smi.h
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
2533 cat >conftest.
$ac_ext <<_ACEOF
2534 #line 2534 "configure"
2535 #include "confdefs.h"
2536 #include <$ac_header>
2538 if { (eval echo "$as_me:2538: \"$ac_cpp conftest.$ac_ext\"") >&5
2539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2541 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2554 if test -z "$ac_cpp_err"; then
2555 eval "$as_ac_Header=yes"
2557 echo "$as_me: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2559 eval "$as_ac_Header=no"
2561 rm -f conftest.err conftest.
$ac_ext
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
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
2578 ac_check_lib_save_LIBS
=$LIBS
2580 cat >conftest.
$ac_ext <<_ACEOF
2581 #line 2581 "configure"
2582 #include "confdefs.h"
2584 /* Override any gcc2 internal prototype to avoid an error. */
2588 /* We use char because int might match the return type of a gcc2
2589 builtin and then its argument prototype would still apply. */
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
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
2609 echo "$as_me:2609: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_lib_smi_smiInit
=yes
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2615 ac_cv_lib_smi_smiInit
=no
2617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2618 LIBS
=$ac_check_lib_save_LIBS
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
2631 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
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
2641 cat >conftest.
$ac_ext <<_ACEOF
2642 #line 2642 "configure"
2643 #include "confdefs.h"
2644 /* libsmi available check */
2648 int current, revision, age, n;
2649 const int required = 2;
2652 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
2654 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
2657 if (required < current - age || required > current)
2663 rm -f conftest
$ac_exeext
2664 if { (eval echo "$as_me:2664: \"$ac_link\"") >&5
2665 (eval $ac_link) 2>&5
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
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
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
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 ;;
2699 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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"
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
2721 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
2723 *) echo "$as_me:2723: result: no" >&5
2724 echo "${ECHO_T}no" >&6
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
2744 echo "$as_me:2744: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2750 if test "$cross_compiling" = yes; then
2751 echo "$as_me:2751: result: no" >&5
2752 echo "${ECHO_T}no" >&6
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>
2764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
2771 rm -f conftest
$ac_exeext
2772 if { (eval echo "$as_me:2772: \"$ac_link\"") >&5
2773 (eval $ac_link) 2>&5
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
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
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
2798 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
2812 cat >conftest.
$ac_ext <<_ACEOF
2813 #line 2813 "configure"
2814 #include "confdefs.h"
2815 #include <netinet/in.h>
2816 #ifdef IPV6_INRIA_VERSION
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 egrep "yes" >/dev
/null
2>&1; then
2823 CFLAGS
="-DINET6 $CFLAGS"
2829 cat >conftest.
$ac_ext <<_ACEOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2832 #include <netinet/in.h>
2837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2838 egrep "yes" >/dev
/null
2>&1; then
2841 ipv6libdir
=/usr
/local
/v
6/lib
;
2843 CFLAGS
="-DINET6 $CFLAGS"
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
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "yes" >/dev
/null
2>&1; then
2860 CFLAGS
="-DINET6 $CFLAGS"
2866 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
2869 ipv6libdir
=/usr
/inet
6/lib
2871 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
2875 cat >conftest.
$ac_ext <<_ACEOF
2876 #line 2876 "configure"
2877 #include "confdefs.h"
2878 #include <sys/param.h>
2879 #ifdef _TOSHIBA_INET6
2883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884 egrep "yes" >/dev
/null
2>&1; then
2887 ipv6libdir
=/usr
/local
/v
6/lib
;
2888 CFLAGS
="-DINET6 $CFLAGS"
2894 cat >conftest.
$ac_ext <<_ACEOF
2895 #line 2895 "configure"
2896 #include "confdefs.h"
2897 #include </usr/local/v6/include/sys/v6config.h>
2902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2903 egrep "yes" >/dev
/null
2>&1; then
2906 ipv6libdir
=/usr
/local
/v
6/lib
;
2907 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
2913 cat >conftest.
$ac_ext <<_ACEOF
2914 #line 2914 "configure"
2915 #include "confdefs.h"
2916 #include <sys/param.h>
2917 #ifdef _ZETA_MINAMI_INET6
2921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2922 egrep "yes" >/dev
/null
2>&1; then
2925 ipv6libdir
=/usr
/local
/v
6/lib
;
2926 CFLAGS
="-DINET6 $CFLAGS"
2932 if test "$ipv6type" != "unknown"; then
2936 echo "$as_me:2936: result: $ipv6type" >&5
2937 echo "${ECHO_T}$ipv6type" >&6
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"
2945 if test "$ipv6trylibc" = "yes"; then
2946 echo "You do not have $ipv6lib library, using libc"
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.'
2956 if test "$ipv6" = "yes"; then
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.
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.
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
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"
2981 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 ac_cv_search_getaddrinfo
="none required"
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.
$ac_ext >&5
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"
3021 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_search_getaddrinfo
="-l$ac_lib"
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.
$ac_ext >&5
3054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3057 LIBS
=$ac_func_search_save_LIBS
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
3068 if test "$cross_compiling" = yes; then
3069 td_cv_buggygetaddrinfo
=yes
3071 cat >conftest.
$ac_ext <<_ACEOF
3072 #line 3072 "configure"
3073 #include "confdefs.h"
3075 #include <sys/types.h>
3078 #include <sys/socket.h>
3079 #include <netinet/in.h>
3083 int passive, gaierr, inet4 = 0, inet6 = 0;
3084 struct addrinfo hints, *ai, *aitop;
3085 char straddr[INET6_ADDRSTRLEN], strport[16];
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);
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) {
3105 switch (ai->ai_family) {
3107 if (strcmp(strport, "54321") != 0) {
3111 if (strcmp(straddr, "0.0.0.0") != 0) {
3115 if (strcmp(straddr, "127.0.0.1") != 0) {
3122 if (strcmp(strport, "54321") != 0) {
3126 if (strcmp(straddr, "::") != 0) {
3130 if (strcmp(straddr, "::1") != 0) {
3147 /* another family support? */
3153 /* supported family should be 2, unsupported family should be 0 */
3154 if (!(inet4 == 0 || inet4 == 2))
3156 if (!(inet6 == 0 || inet6 == 2))
3160 freeaddrinfo(aitop);
3165 freeaddrinfo(aitop);
3170 rm -f conftest
$ac_exeext
3171 if { (eval echo "$as_me:3171: \"$ac_link\"") >&5
3172 (eval $ac_link) 2>&5
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
3179 echo "$as_me:3179: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 td_cv_buggygetaddrinfo
=no
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
3188 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3192 if test "$td_cv_buggygetaddrinfo" = no
; then
3193 echo "$as_me:3193: result: good" >&5
3194 echo "${ECHO_T}good" >&6
3196 echo "$as_me:3196: result: buggy" >&5
3197 echo "${ECHO_T}buggy" >&6
3200 if test "$td_cv_buggygetaddrinfo" = "yes"; then
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.
3208 if test "$ipv6type" != "linux"; then
3209 echo 'Fatal: You must get working getaddrinfo() function.'
3210 echo ' or you can specify "--disable-ipv6"'.
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).'
3221 for ac_func
in getaddrinfo getnameinfo
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
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. */
3235 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
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)
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
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
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 eval "$as_ac_var=yes"
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3276 eval "$as_ac_var=no"
3278 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
3288 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
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
3299 cat >conftest.
$ac_ext <<_ACEOF
3300 #line 3300 "configure"
3301 #include "confdefs.h"
3302 #include <netdnet/dnetdb.h>
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
3309 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
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
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
3328 cat >conftest.
$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3337 if { (eval echo "$as_me:3337: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3340 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3353 if test -z "$ac_cpp_err"; then
3354 ac_cv_header_stdc
=yes
3356 echo "$as_me: failed program was:" >&5
3357 cat conftest.
$ac_ext >&5
3358 ac_cv_header_stdc
=no
3360 rm -f conftest.err conftest.
$ac_ext
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"
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "memchr" >/dev
/null
2>&1; then
3374 ac_cv_header_stdc
=no
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"
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "free" >/dev
/null
2>&1; then
3392 ac_cv_header_stdc
=no
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
3403 cat >conftest.
$ac_ext <<_ACEOF
3404 #line 3404 "configure"
3405 #include "confdefs.h"
3407 #if ((' ' & 0x0FF) == 0x020)
3408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3422 for (i = 0; i < 256; i++)
3423 if (XOR (islower (i), ISLOWER (i))
3424 || toupper (i) != TOUPPER (i))
3429 rm -f conftest
$ac_exeext
3430 if { (eval echo "$as_me:3430: \"$ac_link\"") >&5
3431 (eval $ac_link) 2>&5
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
3438 echo "$as_me:3438: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
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
3447 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
3455 cat >>confdefs.h
<<\EOF
3456 #define STDC_HEADERS 1
3461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3472 cat >conftest.
$ac_ext <<_ACEOF
3473 #line 3473 "configure"
3474 #include "confdefs.h"
3475 $ac_includes_default
3476 #include <$ac_header>
3478 rm -f conftest.
$ac_objext
3479 if { (eval echo "$as_me:3479: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
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
3488 echo "$as_me:3488: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 eval "$as_ac_Header=yes"
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3494 eval "$as_ac_Header=no"
3496 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
3513 cat >conftest.
$ac_ext <<_ACEOF
3514 #line 3514 "configure"
3515 #include "confdefs.h"
3516 $ac_includes_default
3528 rm -f conftest.
$ac_objext
3529 if { (eval echo "$as_me:3529: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>&5
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
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3542 echo "$as_me: failed program was:" >&5
3543 cat conftest.
$ac_ext >&5
3546 rm -f conftest.
$ac_objext conftest.
$ac_ext
3548 echo "$as_me:3548: result: $ac_cv_type_char" >&5
3549 echo "${ECHO_T}$ac_cv_type_char" >&6
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
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
3566 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
3571 rm -f conftest.
$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
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
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3585 cat >conftest.
$ac_ext <<_ACEOF
3586 #line 3586 "configure"
3587 #include "confdefs.h"
3588 $ac_includes_default
3592 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3597 rm -f conftest.
$ac_objext
3598 if { (eval echo "$as_me:3598: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
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
3607 echo "$as_me:3607: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_hi
=$ac_mid; break
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`
3615 rm -f conftest.
$ac_objext conftest.
$ac_ext
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.
$ac_ext >&5
3622 cat >conftest.
$ac_ext <<_ACEOF
3623 #line 3623 "configure"
3624 #include "confdefs.h"
3625 $ac_includes_default
3629 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
3634 rm -f conftest.
$ac_objext
3635 if { (eval echo "$as_me:3635: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
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
3644 echo "$as_me:3644: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_lo
=$ac_mid; break
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`
3652 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
3666 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3671 rm -f conftest.
$ac_objext
3672 if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
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
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3687 ac_lo
=`expr $ac_mid + 1`
3689 rm -f conftest.
$ac_objext conftest.
$ac_ext
3691 ac_cv_sizeof_char
=$ac_lo
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; }; }
3698 cat >conftest.
$ac_ext <<_ACEOF
3699 #line 3699 "configure"
3700 #include "confdefs.h"
3701 $ac_includes_default
3705 FILE *f = fopen ("conftest.val", "w");
3708 fprintf (f, "%d", (sizeof (char)));
3714 rm -f conftest
$ac_exeext
3715 if { (eval echo "$as_me:3715: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>&5
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
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_sizeof_char
=`cat conftest.val`
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
3731 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
3750 cat >conftest.
$ac_ext <<_ACEOF
3751 #line 3751 "configure"
3752 #include "confdefs.h"
3753 $ac_includes_default
3765 rm -f conftest.
$ac_objext
3766 if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
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
3775 echo "$as_me:3775: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_type_short
=yes
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.
$ac_ext >&5
3783 rm -f conftest.
$ac_objext conftest.
$ac_ext
3785 echo "$as_me:3785: result: $ac_cv_type_short" >&5
3786 echo "${ECHO_T}$ac_cv_type_short" >&6
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
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
3803 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3808 rm -f conftest.
$ac_objext
3809 if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
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
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3822 cat >conftest.
$ac_ext <<_ACEOF
3823 #line 3823 "configure"
3824 #include "confdefs.h"
3825 $ac_includes_default
3829 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3834 rm -f conftest.
$ac_objext
3835 if { (eval echo "$as_me:3835: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
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
3844 echo "$as_me:3844: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_hi
=$ac_mid; break
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`
3852 rm -f conftest.
$ac_objext conftest.
$ac_ext
3855 echo "$as_me: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3859 cat >conftest.
$ac_ext <<_ACEOF
3860 #line 3860 "configure"
3861 #include "confdefs.h"
3862 $ac_includes_default
3866 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3871 rm -f conftest.
$ac_objext
3872 if { (eval echo "$as_me:3872: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
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
3881 echo "$as_me:3881: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_lo
=$ac_mid; break
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`
3889 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
3903 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3908 rm -f conftest.
$ac_objext
3909 if { (eval echo "$as_me:3909: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
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
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3922 echo "$as_me: failed program was:" >&5
3923 cat conftest.
$ac_ext >&5
3924 ac_lo
=`expr $ac_mid + 1`
3926 rm -f conftest.
$ac_objext conftest.
$ac_ext
3928 ac_cv_sizeof_short
=$ac_lo
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; }; }
3935 cat >conftest.
$ac_ext <<_ACEOF
3936 #line 3936 "configure"
3937 #include "confdefs.h"
3938 $ac_includes_default
3942 FILE *f = fopen ("conftest.val", "w");
3945 fprintf (f, "%d", (sizeof (short)));
3951 rm -f conftest
$ac_exeext
3952 if { (eval echo "$as_me:3952: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>&5
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
3960 echo "$as_me:3960: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_sizeof_short
=`cat conftest.val`
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
3968 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3973 ac_cv_sizeof_short
=0
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
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
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3990 $ac_includes_default
4002 rm -f conftest.
$ac_objext
4003 if { (eval echo "$as_me:4003: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>&5
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
4012 echo "$as_me:4012: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4020 rm -f conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:4022: result: $ac_cv_type_int" >&5
4023 echo "${ECHO_T}$ac_cv_type_int" >&6
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
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
4040 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4045 rm -f conftest.
$ac_objext
4046 if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
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
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4059 cat >conftest.
$ac_ext <<_ACEOF
4060 #line 4060 "configure"
4061 #include "confdefs.h"
4062 $ac_includes_default
4066 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4071 rm -f conftest.
$ac_objext
4072 if { (eval echo "$as_me:4072: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
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
4081 echo "$as_me:4081: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_hi
=$ac_mid; break
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`
4089 rm -f conftest.
$ac_objext conftest.
$ac_ext
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.
$ac_ext >&5
4096 cat >conftest.
$ac_ext <<_ACEOF
4097 #line 4097 "configure"
4098 #include "confdefs.h"
4099 $ac_includes_default
4103 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
4108 rm -f conftest.
$ac_objext
4109 if { (eval echo "$as_me:4109: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>&5
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
4118 echo "$as_me:4118: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_lo
=$ac_mid; break
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`
4126 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4140 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4145 rm -f conftest.
$ac_objext
4146 if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
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
4155 echo "$as_me:4155: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.
$ac_ext >&5
4161 ac_lo
=`expr $ac_mid + 1`
4163 rm -f conftest.
$ac_objext conftest.
$ac_ext
4165 ac_cv_sizeof_int
=$ac_lo
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; }; }
4172 cat >conftest.
$ac_ext <<_ACEOF
4173 #line 4173 "configure"
4174 #include "confdefs.h"
4175 $ac_includes_default
4179 FILE *f = fopen ("conftest.val", "w");
4182 fprintf (f, "%d", (sizeof (int)));
4188 rm -f conftest
$ac_exeext
4189 if { (eval echo "$as_me:4189: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
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
4197 echo "$as_me:4197: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_sizeof_int
=`cat conftest.val`
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
4205 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
4224 cat >conftest.
$ac_ext <<_ACEOF
4225 #line 4225 "configure"
4226 #include "confdefs.h"
4227 $ac_includes_default
4239 rm -f conftest.
$ac_objext
4240 if { (eval echo "$as_me:4240: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>&5
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
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4253 echo "$as_me: failed program was:" >&5
4254 cat conftest.
$ac_ext >&5
4257 rm -f conftest.
$ac_objext conftest.
$ac_ext
4259 echo "$as_me:4259: result: $ac_cv_type_long" >&5
4260 echo "${ECHO_T}$ac_cv_type_long" >&6
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
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
4277 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4282 rm -f conftest.
$ac_objext
4283 if { (eval echo "$as_me:4283: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
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
4292 echo "$as_me:4292: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4296 cat >conftest.
$ac_ext <<_ACEOF
4297 #line 4297 "configure"
4298 #include "confdefs.h"
4299 $ac_includes_default
4303 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4308 rm -f conftest.
$ac_objext
4309 if { (eval echo "$as_me:4309: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
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
4318 echo "$as_me:4318: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_hi
=$ac_mid; break
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`
4326 rm -f conftest.
$ac_objext conftest.
$ac_ext
4329 echo "$as_me: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4333 cat >conftest.
$ac_ext <<_ACEOF
4334 #line 4334 "configure"
4335 #include "confdefs.h"
4336 $ac_includes_default
4340 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4345 rm -f conftest.
$ac_objext
4346 if { (eval echo "$as_me:4346: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>&5
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
4355 echo "$as_me:4355: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_lo
=$ac_mid; break
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`
4363 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4377 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4382 rm -f conftest.
$ac_objext
4383 if { (eval echo "$as_me:4383: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>&5
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
4392 echo "$as_me:4392: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4398 ac_lo
=`expr $ac_mid + 1`
4400 rm -f conftest.
$ac_objext conftest.
$ac_ext
4402 ac_cv_sizeof_long
=$ac_lo
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; }; }
4409 cat >conftest.
$ac_ext <<_ACEOF
4410 #line 4410 "configure"
4411 #include "confdefs.h"
4412 $ac_includes_default
4416 FILE *f = fopen ("conftest.val", "w");
4419 fprintf (f, "%d", (sizeof (long)));
4425 rm -f conftest
$ac_exeext
4426 if { (eval echo "$as_me:4426: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
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
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_sizeof_long
=`cat conftest.val`
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
4442 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
4461 cat >conftest.
$ac_ext <<_ACEOF
4462 #line 4462 "configure"
4463 #include "confdefs.h"
4474 rm -f conftest.
$ac_objext
4475 if { (eval echo "$as_me:4475: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
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
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4488 echo "$as_me: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4492 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4503 cat >>confdefs.h
<<\EOF
4504 #define NEED_ADDRINFO_H 1
4509 if test "$ac_cv_addrinfo" = no
; then
4510 missing_includes
=yes
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
4518 cat >conftest.
$ac_ext <<_ACEOF
4519 #line 4519 "configure"
4520 #include "confdefs.h"
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 egrep "yes" >/dev
/null
2>&1; then
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
4545 if test "$ac_cv_maxserv" = no
; then
4546 missing_includes
=yes
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
4554 cat >conftest.
$ac_ext <<_ACEOF
4555 #line 4555 "configure"
4556 #include "confdefs.h"
4562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4563 egrep "yes" >/dev
/null
2>&1; then
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
4581 if test "$ac_cv_namereqd" = no
; then
4582 missing_includes
=yes
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
4590 cat >conftest.
$ac_ext <<_ACEOF
4591 #line 4591 "configure"
4592 #include "confdefs.h"
4594 # include <sys/types.h>
4595 # include <sys/socket.h>
4599 struct sockaddr_storage s
4604 rm -f conftest.
$ac_objext
4605 if { (eval echo "$as_me:4605: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>&5
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
4614 echo "$as_me:4614: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_sa_storage
=yes
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4622 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4634 if test "$ac_cv_sa_storage" = no
; then
4635 missing_includes
=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
4644 cat >conftest.
$ac_ext <<_ACEOF
4645 #line 4645 "configure"
4646 #include "confdefs.h"
4648 # include <arpa/nameser.h>
4657 rm -f conftest.
$ac_objext
4658 if { (eval echo "$as_me:4658: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
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
4667 echo "$as_me:4667: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4671 echo "$as_me: failed program was:" >&5
4672 cat conftest.
$ac_ext >&5
4675 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
4693 cat >conftest.
$ac_ext <<_ACEOF
4694 #line 4694 "configure"
4695 #include "confdefs.h"
4697 # include <arpa/nameser.h>
4706 rm -f conftest.
$ac_objext
4707 if { (eval echo "$as_me:4707: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
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
4716 echo "$as_me:4716: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4724 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4738 if test "$ac_cv_addrsz" = no
; then
4739 missing_includes
=yes
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
4747 cat >conftest.
$ac_ext <<_ACEOF
4748 #line 4748 "configure"
4749 #include "confdefs.h"
4751 # include <sys/types.h>
4752 # include <netinet/in.h>
4753 # include <resolv.h>
4757 int a = RES_USE_INET6
4762 rm -f conftest.
$ac_objext
4763 if { (eval echo "$as_me:4763: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>&5
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
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4776 echo "$as_me: failed program was:" >&5
4777 cat conftest.
$ac_ext >&5
4780 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4792 if test "$ac_cv_res_inet6" = no
; then
4793 missing_includes
=yes
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
4801 cat >conftest.
$ac_ext <<_ACEOF
4802 #line 4802 "configure"
4803 #include "confdefs.h"
4805 # include <sys/types.h>
4806 # include <netinet/in.h>
4807 # include <netinet6/in6.h>
4808 # include <resolv.h>
4812 struct __res_state_ext e
4817 rm -f conftest.
$ac_objext
4818 if { (eval echo "$as_me:4818: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
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
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_res_state_ext
=yes
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4833 ac_cv_res_state_ext
=no
4835 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4847 if test "$ac_cv_res_state_ext" = no
; then
4848 missing_includes
=yes
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
4856 cat >conftest.
$ac_ext <<_ACEOF
4857 #line 4857 "configure"
4858 #include "confdefs.h"
4860 # include <sys/types.h>
4861 # include <netinet/in.h>
4862 # include <netinet6/in6.h>
4863 # include <resolv.h>
4867 struct __res_state e; e.nsort = 0
4872 rm -f conftest.
$ac_objext
4873 if { (eval echo "$as_me:4873: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
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
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4886 echo "$as_me: failed program was:" >&5
4887 cat conftest.
$ac_ext >&5
4890 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4902 if test "$missing_includes" = "yes"; then
4903 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
4904 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
4907 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
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
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. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
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)
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
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
4956 echo "$as_me:4956: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 eval "$as_ac_var=yes"
4960 echo "$as_me: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4962 eval "$as_ac_var=no"
4964 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
4974 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4978 for ac_func
in strftime
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
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. */
4992 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
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)
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
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
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_var=yes"
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.
$ac_ext >&5
5033 eval "$as_ac_var=no"
5035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5047 for ac_func
in ether_ntohost
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
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. */
5061 /* Override any gcc2 internal prototype to avoid an error. */
5065 /* We use char because int might match the return type of a gcc2
5066 builtin and then its argument prototype would still apply. */
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)
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
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
5096 echo "$as_me:5096: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 eval "$as_ac_var=yes"
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.
$ac_ext >&5
5102 eval "$as_ac_var=no"
5104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
5119 if test "$cross_compiling" = yes; then
5120 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
5122 cat >conftest.
$ac_ext <<_ACEOF
5123 #line 5123 "configure"
5124 #include "confdefs.h"
5127 #include <sys/types.h>
5128 #include <sys/param.h>
5129 #include <sys/socket.h>
5132 main(int argc, char **argv)
5134 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
5135 char name[MAXHOSTNAMELEN];
5137 ether_ntohost(name, (struct ether_addr *)ea);
5142 rm -f conftest
$ac_exeext
5143 if { (eval echo "$as_me:5143: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
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
5151 echo "$as_me:5151: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_buggy_ether_ntohost
=no
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
5160 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
5175 for ac_func
in setlinebuf
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
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. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
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)
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
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
5224 echo "$as_me:5224: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 eval "$as_ac_var=yes"
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.
$ac_ext >&5
5230 eval "$as_ac_var=no"
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5246 for ac_func
in vsnprintf snprintf
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
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. */
5260 /* Override any gcc2 internal prototype to avoid an error. */
5264 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */
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)
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
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
5295 echo "$as_me:5295: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 eval "$as_ac_var=yes"
5299 echo "$as_me: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5301 eval "$as_ac_var=no"
5303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5317 if test $needsnprintf = yes; then
5318 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
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
5326 cat >conftest.
$ac_ext <<_ACEOF
5327 #line 5327 "configure"
5328 #include "confdefs.h"
5329 #include <sys/types.h>
5335 extern "C" void (*signal (int, void (*)(int)))(int);
5337 void (*signal ()) ();
5348 rm -f conftest.
$ac_objext
5349 if { (eval echo "$as_me:5349: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>&5
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
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_type_signal
=void
5362 echo "$as_me: failed program was:" >&5
5363 cat conftest.
$ac_ext >&5
5364 ac_cv_type_signal
=int
5366 rm -f conftest.
$ac_objext conftest.
$ac_ext
5368 echo "$as_me:5368: result: $ac_cv_type_signal" >&5
5369 echo "${ECHO_T}$ac_cv_type_signal" >&6
5371 cat >>confdefs.h
<<EOF
5372 #define RETSIGTYPE $ac_cv_type_signal
5375 if test "$ac_cv_type_signal" = void
; then
5376 cat >>confdefs.h
<<\EOF
5381 cat >>confdefs.h
<<\EOF
5382 #define RETSIGVAL (0)
5389 cat >>confdefs.h
<<\EOF
5390 #define _BSD_SIGNALS 1
5397 for ac_func
in sigaction
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
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. */
5411 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
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)
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
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
5446 echo "$as_me:5446: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 eval "$as_ac_var=yes"
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.
$ac_ext >&5
5452 eval "$as_ac_var=no"
5454 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5466 if test $ac_cv_func_sigaction = no
; then
5468 for ac_func
in sigset
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
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. */
5482 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
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)
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
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
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 eval "$as_ac_var=yes"
5521 echo "$as_me: failed program was:" >&5
5522 cat conftest.
$ac_ext >&5
5523 eval "$as_ac_var=no"
5525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
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"
5552 /* Override any gcc2 internal prototype to avoid an error. */
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
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
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
5577 echo "$as_me:5577: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_search_dnet_htoa
="none required"
5581 echo "$as_me: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
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"
5592 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
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
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
5617 echo "$as_me:5617: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_search_dnet_htoa
="-l$ac_lib"
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5628 LIBS
=$ac_func_search_save_LIBS
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
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
5645 ac_check_lib_save_LIBS
=$LIBS
5647 cat >conftest.
$ac_ext <<_ACEOF
5648 #line 5648 "configure"
5649 #include "confdefs.h"
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
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
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_lib_rpc_main
=yes
5673 echo "$as_me: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5675 ac_cv_lib_rpc_main
=no
5677 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5678 LIBS
=$ac_check_lib_save_LIBS
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
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
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"
5702 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5727 echo "$as_me:5727: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_search_getrpcbynumber
="none required"
5731 echo "$as_me: failed program was:" >&5
5732 cat conftest.
$ac_ext >&5
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"
5742 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_search_getrpcbynumber
="-l$ac_lib"
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.
$ac_ext >&5
5775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5778 LIBS
=$ac_func_search_save_LIBS
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"
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
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"
5802 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_search_gethostbyname
="none required"
5831 echo "$as_me: failed program was:" >&5
5832 cat conftest.
$ac_ext >&5
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"
5842 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_search_gethostbyname
="-l$ac_lib"
5872 echo "$as_me: failed program was:" >&5
5873 cat conftest.
$ac_ext >&5
5875 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5878 LIBS
=$ac_func_search_save_LIBS
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"
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"
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
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"
5902 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_lib_socket_gethostbyname
=yes
5931 echo "$as_me: failed program was:" >&5
5932 cat conftest.
$ac_ext >&5
5933 ac_cv_lib_socket_gethostbyname
=no
5935 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5936 LIBS
=$ac_check_lib_save_LIBS
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"
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
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"
5956 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
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
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
5981 echo "$as_me:5981: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_search_socket
="none required"
5985 echo "$as_me: failed program was:" >&5
5986 cat conftest.
$ac_ext >&5
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"
5996 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
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
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
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_search_socket
="-l$ac_lib"
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6032 LIBS
=$ac_func_search_save_LIBS
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"
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
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"
6051 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
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
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
6076 echo "$as_me:6076: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_lib_socket_socket
=yes
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.
$ac_ext >&5
6082 ac_cv_lib_socket_socket
=no
6084 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6085 LIBS
=$ac_check_lib_save_LIBS
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"
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
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"
6107 /* Override any gcc2 internal prototype to avoid an error. */
6111 /* We use char because int might match the return type of a gcc2
6112 builtin and then its argument prototype would still apply. */
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
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
6132 echo "$as_me:6132: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_search_putmsg
="none required"
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
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"
6147 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
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
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
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_search_putmsg
="-l$ac_lib"
6177 echo "$as_me: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6180 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6183 LIBS
=$ac_func_search_save_LIBS
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"
6193 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
6194 if test -f $pfopen ; then
6196 for ac_func
in pfopen
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
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. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
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)
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
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
6245 echo "$as_me:6245: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 eval "$as_ac_var=yes"
6249 echo "$as_me: failed program was:" >&5
6250 cat conftest.
$ac_ext >&5
6251 eval "$as_ac_var=no"
6253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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"
6271 echo "$as_me:6271: checking for local pcap library" >&5
6272 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
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
6283 if test -r $dir/libpcap.a
; then
6284 libpcap
=$dir/libpcap.a
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
6296 ac_check_lib_save_LIBS
=$LIBS
6298 cat >conftest.
$ac_ext <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
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
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
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_lib_pcap_main
=yes
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.
$ac_ext >&5
6326 ac_cv_lib_pcap_main
=no
6328 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6329 LIBS
=$ac_check_lib_save_LIBS
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
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; }; }
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"
6352 if test -z "$d" ; then
6353 echo "$as_me:6353: result: not found" >&5
6354 echo "${ECHO_T}not found" >&6
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
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"
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
; }; }
6373 echo "$as_me:6373: result: $libpcap" >&5
6374 echo "${ECHO_T}$libpcap" >&6
6376 LIBS
="$libpcap $LIBS"
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"
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.
6394 LIBS
="$LIBS -lodm -lcfg"
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
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. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6427 f = pcap_list_datalinks;
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
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
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_func_pcap_list_datalinks
=yes
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.
$ac_ext >&5
6450 ac_cv_func_pcap_list_datalinks
=no
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6462 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
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
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. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6494 f = pcap_set_datalink;
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
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
6511 echo "$as_me:6511: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_func_pcap_set_datalink
=yes
6515 echo "$as_me: failed program was:" >&5
6516 cat conftest.
$ac_ext >&5
6517 ac_cv_func_pcap_set_datalink
=no
6519 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
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. */
6541 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6559 f = pcap_datalink_name_to_val;
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
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
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 ac_cv_func_pcap_datalink_name_to_val
=yes
6580 echo "$as_me: failed program was:" >&5
6581 cat conftest.
$ac_ext >&5
6582 ac_cv_func_pcap_datalink_name_to_val
=no
6584 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6590 cat >>confdefs.h
<<\EOF
6591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
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
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. */
6605 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6623 f = pcap_datalink_val_to_description;
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
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
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_func_pcap_datalink_val_to_description
=yes
6644 echo "$as_me: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6646 ac_cv_func_pcap_datalink_val_to_description
=no
6648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6658 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6662 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6665 for ac_func
in pcap_breakloop
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
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. */
6679 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
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)
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
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
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 eval "$as_ac_var=yes"
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6720 eval "$as_ac_var=no"
6722 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6735 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
6736 # libraries (e.g., "-lsocket -lnsl" on Solaris).
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
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>
6758 char src[4], dst[128];
6759 inet_ntop(AF_INET, src, dst, sizeof(dst));
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
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
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
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"
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>
6798 char src[128], dst[4];
6799 inet_pton(AF_INET, src, dst);
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
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
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
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"
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>
6839 inet_aton(src, &dst);
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
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
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
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"
6865 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6872 cat >conftest.
$ac_ext <<_ACEOF
6873 #line 6873 "configure"
6874 #include "confdefs.h"
6876 # include <sys/types.h>
6877 # include <sys/socket.h>
6881 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6886 rm -f conftest.
$ac_objext
6887 if { (eval echo "$as_me:6887: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
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
6896 echo "$as_me:6896: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_sockaddr_has_sa_len
=yes
6900 echo "$as_me: failed program was:" >&5
6901 cat conftest.
$ac_ext >&5
6902 ac_cv_sockaddr_has_sa_len
=no
6904 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
6916 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
6917 missing_includes
=yes
6920 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
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
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. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
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)
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
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
6969 echo "$as_me:6969: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 eval "$as_ac_var=yes"
6973 echo "$as_me: failed program was:" >&5
6974 cat conftest.
$ac_ext >&5
6975 eval "$as_ac_var=no"
6977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
6995 cat >conftest.
$ac_ext <<_ACEOF
6996 #line 6996 "configure"
6997 #include "confdefs.h"
7003 if ((pcap_if_t *) 0)
7005 if (sizeof (pcap_if_t))
7011 rm -f conftest.
$ac_objext
7012 if { (eval echo "$as_me:7012: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>&5
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
7021 echo "$as_me:7021: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_type_pcap_if_t
=yes
7025 echo "$as_me: failed program was:" >&5
7026 cat conftest.
$ac_ext >&5
7027 ac_cv_type_pcap_if_t
=no
7029 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7035 cat >>confdefs.h
<<EOF
7036 #define HAVE_PCAP_IF_T 1
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"
7054 return_pcap_version(void)
7056 extern char pcap_version[];
7058 return pcap_version;
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
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
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_lbl_cv_pcap_version_defined
=yes
7079 echo "$as_me: failed program was:" >&5
7080 cat conftest.
$ac_ext >&5
7081 ac_lbl_cv_pcap_version_defined
=no
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
7092 echo "$as_me:7092: result: no" >&5
7093 echo "${ECHO_T}no" >&6
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"
7107 return_pcap_debug(void)
7109 extern int pcap_debug;
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
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
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_lbl_cv_pcap_debug_defined
=yes
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7134 ac_lbl_cv_pcap_debug_defined
=no
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
7145 echo "$as_me:7145: result: no" >&5
7146 echo "${ECHO_T}no" >&6
7148 # OK, what about "yydebug"?
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"
7161 return_yydebug(void)
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
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
7182 echo "$as_me:7182: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_lbl_cv_yydebug_defined
=yes
7186 echo "$as_me: failed program was:" >&5
7187 cat conftest.
$ac_ext >&5
7188 ac_lbl_cv_yydebug_defined
=no
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
7199 echo "$as_me:7199: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7204 for ac_func
in bpf_dump
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
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. */
7218 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */
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)
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
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
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 eval "$as_ac_var=yes"
7257 echo "$as_me: failed program was:" >&5
7258 cat conftest.
$ac_ext >&5
7259 eval "$as_ac_var=no"
7261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
7271 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
7276 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
7282 cat >>confdefs.h
<<\EOF
7301 if test -f /dev
/bpf0
; then
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
7310 cat >conftest.
$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7314 # include "confdefs.h"
7315 # include <sys/types.h>
7317 # include <stdlib.h>
7318 # include <stddef.h>
7328 rm -f conftest.
$ac_objext
7329 if { (eval echo "$as_me:7329: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
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
7338 echo "$as_me:7338: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_lbl_have_int8_t
=yes
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.
$ac_ext >&5
7344 ac_cv_lbl_have_int8_t
=no
7346 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7362 cat >conftest.
$ac_ext <<_ACEOF
7363 #line 7363 "configure"
7364 #include "confdefs.h"
7366 # include "confdefs.h"
7367 # include <sys/types.h>
7369 # include <stdlib.h>
7370 # include <stddef.h>
7380 rm -f conftest.
$ac_objext
7381 if { (eval echo "$as_me:7381: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
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
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_lbl_have_u_int8_t
=yes
7394 echo "$as_me: failed program was:" >&5
7395 cat conftest.
$ac_ext >&5
7396 ac_cv_lbl_have_u_int8_t
=no
7398 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7414 cat >conftest.
$ac_ext <<_ACEOF
7415 #line 7415 "configure"
7416 #include "confdefs.h"
7418 # include "confdefs.h"
7419 # include <sys/types.h>
7421 # include <stdlib.h>
7422 # include <stddef.h>
7432 rm -f conftest.
$ac_objext
7433 if { (eval echo "$as_me:7433: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>&5
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
7442 echo "$as_me:7442: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_lbl_have_int16_t
=yes
7446 echo "$as_me: failed program was:" >&5
7447 cat conftest.
$ac_ext >&5
7448 ac_cv_lbl_have_int16_t
=no
7450 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7466 cat >conftest.
$ac_ext <<_ACEOF
7467 #line 7467 "configure"
7468 #include "confdefs.h"
7470 # include "confdefs.h"
7471 # include <sys/types.h>
7473 # include <stdlib.h>
7474 # include <stddef.h>
7484 rm -f conftest.
$ac_objext
7485 if { (eval echo "$as_me:7485: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>&5
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
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_lbl_have_u_int16_t
=yes
7498 echo "$as_me: failed program was:" >&5
7499 cat conftest.
$ac_ext >&5
7500 ac_cv_lbl_have_u_int16_t
=no
7502 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7518 cat >conftest.
$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7522 # include "confdefs.h"
7523 # include <sys/types.h>
7525 # include <stdlib.h>
7526 # include <stddef.h>
7536 rm -f conftest.
$ac_objext
7537 if { (eval echo "$as_me:7537: \"$ac_compile\"") >&5
7538 (eval $ac_compile) 2>&5
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
7546 echo "$as_me:7546: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_lbl_have_int32_t
=yes
7550 echo "$as_me: failed program was:" >&5
7551 cat conftest.
$ac_ext >&5
7552 ac_cv_lbl_have_int32_t
=no
7554 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7570 cat >conftest.
$ac_ext <<_ACEOF
7571 #line 7571 "configure"
7572 #include "confdefs.h"
7574 # include "confdefs.h"
7575 # include <sys/types.h>
7577 # include <stdlib.h>
7578 # include <stddef.h>
7588 rm -f conftest.
$ac_objext
7589 if { (eval echo "$as_me:7589: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
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
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_lbl_have_u_int32_t
=yes
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7604 ac_cv_lbl_have_u_int32_t
=no
7606 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7619 if test "${LBL_CFLAGS+set}" = set; then
7620 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
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"
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"
7637 V_CCOPT
="$V_CCOPT -n32"
7644 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
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
7653 { echo "$as_me:7653: WARNING: can't find $name" >&5
7654 echo "$as_me: WARNING: can't find $name" >&2;}
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
7663 cat >conftest.
$ac_ext <<_ACEOF
7664 #line 7664 "configure"
7665 #include "confdefs.h"
7667 # include <sys/types.h>
7668 # include <sys/socket.h>
7672 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7677 rm -f conftest.
$ac_objext
7678 if { (eval echo "$as_me:7678: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
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
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_lbl_sockaddr_has_sa_len
=yes
7691 echo "$as_me: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7693 ac_cv_lbl_sockaddr_has_sa_len
=no
7695 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7715 # These are CPU types where:
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;
7722 # the CPU, I infer (from the old
7724 # XXX: should also check that they don't do weird things (like on arm)
7726 # comment) doesn't fault on unaligned accesses, but doesn't
7727 # do a normal unaligned fetch, either (e.g., presumably, ARM);
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).
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.
7746 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
7747 ac_cv_lbl_unaligned_fail
=yes
7751 cat >conftest.c
<<EOF
7752 # include <sys/types.h>
7753 # include <sys/wait.h>
7755 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7760 /* avoid "core dumped" message */
7766 pid = waitpid(pid, &status, 0);
7769 exit(!WIFEXITED(status));
7772 i = *(unsigned int *)&a[1];
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
7782 .
/conftest
>conftest.out
7783 if test ! -s conftest.out
; then
7784 ac_cv_lbl_unaligned_fail
=yes
7786 ac_cv_lbl_unaligned_fail
=no
7789 rm -f conftest
* core core.conftest
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
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
7808 cat >conftest.
$ac_ext <<_ACEOF
7809 #line 7809 "configure"
7810 #include "confdefs.h"
7812 # include <sys/types.h>
7822 rm -f conftest.
$ac_objext
7823 if { (eval echo "$as_me:7823: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>&5
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
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_var_h_errno
=yes
7836 echo "$as_me: failed program was:" >&5
7837 cat conftest.
$ac_ext >&5
7838 ac_cv_var_h_errno
=no
7840 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7852 # Check whether --with-crypto or --without-crypto was given.
7853 if test "${with_crypto+set}" = set; then
7854 withval
="$with_crypto"
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
7862 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
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?
7868 # Are there any other suffixes we need to look for? Do we have to
7869 # worry about ".so.{version}"?
7871 # Or should we just look for "libcrypto.*"?
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
7879 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
7880 incdir
="-I$dir/include"
7882 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
7885 ac_cv_ssleay_path
=no
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"
7897 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
7898 LIBS
="$LIBS -lrsaref"
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
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"
7912 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
7937 echo "$as_me:7937: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_lib_crypto_des_cbc_encrypt
=yes
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.
$ac_ext >&5
7943 ac_cv_lib_crypto_des_cbc_encrypt
=no
7945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7946 LIBS
=$ac_check_lib_save_LIBS
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
7955 LIBS
="-lcrypto $LIBS"
7959 CPPFLAGS
="$CPPFLAGS $V_INCLS"
7961 for ac_header
in openssl
/evp.h
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
7969 cat >conftest.
$ac_ext <<_ACEOF
7970 #line 7970 "configure"
7971 #include "confdefs.h"
7972 #include <$ac_header>
7974 if { (eval echo "$as_me:7974: \"$ac_cpp conftest.$ac_ext\"") >&5
7975 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7977 egrep -v '^ *\+' conftest.er1
>conftest.err
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
7990 if test -z "$ac_cpp_err"; then
7991 eval "$as_ac_Header=yes"
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.
$ac_ext >&5
7995 eval "$as_ac_Header=no"
7997 rm -f conftest.err conftest.
$ac_ext
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
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
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
8031 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8032 for ac_dir
in $PATH; do
8034 # Account for people who put trailing slashes in PATH elements.
8036 / | .
/ | .
// |
/cC
/* \
8037 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
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
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.
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.
8054 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8064 if test "${ac_cv_path_install+set}" = set; then
8065 INSTALL
=$ac_cv_path_install
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
8074 echo "$as_me:8074: result: $INSTALL" >&5
8075 echo "${ECHO_T}$INSTALL" >&6
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}'
8081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8083 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8085 ac_config_headers
="$ac_config_headers config.h"
8087 ac_config_commands
="$ac_config_commands default-1"
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.
8097 # config.status only pays attention to the cache file if you give it
8098 # the --recheck option to rerun configure.
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
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.
8113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8115 # `set' does not quote correctly, so add quotes (double-quote
8116 # substitution turns \\\\ into \\, and sed turns \\ into \).
8119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8122 # `set' quotes correctly as required by POSIX, so do not add quotes.
8124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
8140 echo "not updating unwritable cache $cache_file"
8145 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8146 # Let make expand exec_prefix.
8147 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
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}:*/:/;
8158 s/^\([^=]*=[ ]*\):*/\1/;
8164 DEFS
=-DHAVE_CONFIG_H
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
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.
8179 SHELL=\${CONFIG_SHELL-$SHELL}
8180 ac_cs_invocation="\$0 \$@"
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 # Be Bourne compatible
8186 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8189 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8193 # Name of the executable.
8194 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
8196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8202 rm -f conf$$ conf$$.exe 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
8213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8218 rm -f conf$$ conf$$.exe conf$$.
file
8220 as_executable_p
="test -f"
8222 # Support unset when possible.
8223 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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
; }
8240 # We need space, tab and new line, in precisely that order.
8246 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
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
8257 if test -n "$ac_config_headers"; then
8258 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8261 if test -n "$ac_config_links"; then
8262 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8265 if test -n "$ac_config_commands"; then
8266 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8269 cat >>$CONFIG_STATUS <<\EOF
8272 \`$as_me' instantiates files from templates according to the
8273 current configuration.
8275 Usage: $0 [OPTIONS] [FILE]...
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
8286 Configuration files:
8289 Configuration headers:
8292 Configuration commands:
8295 Report bugs to <bug-autoconf@gnu.org>."
8298 cat >>$CONFIG_STATUS <<EOF
8301 configured by $0, generated by GNU Autoconf 2.52,
8302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
8320 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8321 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8323 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8327 *) # This is not an option, so the user has probably given explicit
8329 ac_need_defaults
=false
;;
8333 # Handling of the options.
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 ;;
8340 cat >>$CONFIG_STATUS <<\EOF
8341 --version |
--vers* |
-V )
8342 echo "$ac_cs_version"; exit 0 ;;
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 )
8354 --file |
--fil |
--fi |
--f )
8356 CONFIG_FILES
="$CONFIG_FILES $1"
8357 ac_need_defaults
=false
;;
8358 --header |
--heade |
--head |
--hea )
8360 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8361 ac_need_defaults
=false
;;
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; }; } ;;
8370 *) ac_config_targets
="$ac_config_targets $1" ;;
8379 ## ----------------------- ##
8380 ## Running config.status. ##
8381 ## ----------------------- ##
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
8389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8394 cat >>$CONFIG_STATUS <<EOF
8396 # INIT-COMMANDS section.
8401 cat >>$CONFIG_STATUS <<\EOF
8402 for ac_config_target
in $ac_config_targets
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; }; };;
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
8425 # Create a temporary directory, and hook for its removal unless debugging.
8428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8429 trap '{ (exit 1); exit 1; }' 1 2 13 15
8432 # Create a (secure) tmp directory for tmp files.
8435 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8436 test -n "$tmp" && test -d "$tmp"
8439 tmp
=$TMPDIR/cs$$
-$RANDOM
8440 (umask 077 && mkdir
$tmp)
8443 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8444 { (exit 1); exit 1; }
8449 cat >>$CONFIG_STATUS <<EOF
8452 # CONFIG_FILES section.
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
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
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
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
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
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.
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.
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
8535 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8537 if test ! -s $tmp/subs.frag
; then
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.
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"
8549 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8551 ac_sed_frag
=`expr $ac_sed_frag + 1`
8553 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8556 if test -z "$ac_sed_cmds"; then
8559 fi # test -n "$CONFIG_FILES"
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".
8566 - |
*:- |
*:-:* ) # input from 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 ;;
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 ||
8582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8584 /^X\(\/\/\)$/{ s//\1/; q; }
8585 /^X\(\/\).*/{ s//\1/; q; }
8587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8589 [\\/]* | ?
:[\\/]* ) as_incr_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 ;;
8598 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
8599 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
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'`
8608 ac_dir_suffix
= ac_dots
=
8613 if test -z "$ac_dots"; then
8616 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
8619 ac_srcdir
=$srcdir$ac_dir_suffix;
8620 ac_top_srcdir
=$srcdir ;;
8622 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
8623 ac_top_srcdir
=$ac_dots$srcdir ;;
8627 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8628 *) ac_INSTALL
=$ac_dots$INSTALL ;;
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;}
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."
8642 # First look for the input files in the build tree, otherwise in the
8644 ac_file_inputs
=`IFS=:
8645 for f in $ac_file_in; do
8647 -) echo $tmp/stdin ;;
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; }; }
8655 if test -f "$f"; then
8658 elif test -f "$srcdir/$f"; then
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; }; }
8668 done` ||
{ (exit 1); exit 1; }
8670 cat >>$CONFIG_STATUS <<EOF
8674 cat >>$CONFIG_STATUS <<\EOF
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
8683 if test x"$ac_file" != x-; then
8684 mv $tmp/out $ac_file
8692 cat >>$CONFIG_STATUS <<\EOF
8695 # CONFIG_HEADER section.
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.
8701 # ac_d sets the value in "#define NAME VALUE" lines.
8702 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8703 ac_dB
='[ ].*$,\1#\2'
8706 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8707 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8708 ac_uB
='$,\1#\2define\3'
8712 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8715 - |
*:- |
*:-:* ) # input from 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 ;;
8724 test x
"$ac_file" != x-
&& { echo "$as_me:8724: creating $ac_file" >&5
8725 echo "$as_me: creating $ac_file" >&6;}
8727 # First look for the input files in the build tree, otherwise in the
8729 ac_file_inputs
=`IFS=:
8730 for f in $ac_file_in; do
8732 -) echo $tmp/stdin ;;
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; }; }
8740 if test -f "$f"; then
8743 elif test -f "$srcdir/$f"; then
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; }; }
8753 done` ||
{ (exit 1); exit 1; }
8754 # Remove the trailing spaces.
8755 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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.
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
8778 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8780 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
8804 while grep . conftest.defines >/dev/null
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
8815 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8819 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8820 rm -f conftest.defines
8821 mv conftest.
tail conftest.defines
8823 rm -f conftest.defines
8824 echo ' fi # egrep' >>$CONFIG_STATUS
8825 echo >>$CONFIG_STATUS
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
8831 while grep . conftest.undefs
>/dev
/null
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
8842 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8846 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8847 rm -f conftest.undefs
8848 mv conftest.tail conftest.undefs
8850 rm -f conftest.undefs
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
8859 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8861 cat $tmp/in >>$tmp/config.h
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;}
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 ||
8874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8876 /^X\(\/\/\)$/{ s//\1/; q; }
8877 /^X\(\/\).*/{ s//\1/; q; }
8879 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8881 [\\/]* | ?
:[\\/]* ) as_incr_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 ;;
8890 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
8891 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
8898 mv $tmp/config.h
$ac_file
8906 cat >>$CONFIG_STATUS <<\EOF
8909 # CONFIG_COMMANDS section.
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,[^:]*:,,'`
8916 default-1
) if test -f .devel
; then
8917 echo timestamp
> stamp-h
8918 cat Makefile-devel-adds
>> Makefile
8925 cat >>$CONFIG_STATUS <<\EOF
8927 { (exit 0); exit 0; }
8929 chmod +x
$CONFIG_STATUS
8930 ac_clean_files
=$ac_clean_files_save
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
8943 $SHELL $CONFIG_STATUS || ac_cs_success
=false
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; }