2 # From configure.in Revision: 1.200 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23 DUALCASE
=1; export DUALCASE
# for MKS sh
25 # Support unset when possible.
26 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C
; export $as_var
52 # Required to use basename.
53 if expr a
: '\(a\)' >/dev
/null
2>&1; then
59 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me
=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits
='0123456789'
85 as_cr_alnum
=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
103 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself
=$0 ;;
110 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir
=.
115 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x
; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
132 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir
=.
136 for as_base
in sh bash ksh sh5
; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
145 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
146 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
147 CONFIG_SHELL
=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x
$as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c
*,-n*) ECHO_N
= ECHO_C
='
191 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
192 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
195 if expr a
: '\(a\)' >/dev
/null
2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.
file
203 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe
; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.
file conf$$
2>/dev
/null
; then
217 rm -f conf$$ conf$$.exe conf$$.
file
219 if mkdir
-p .
2>/dev
/null
; then
222 test -d .
/-p && rmdir .
/-p
226 as_executable_p
="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix
=/usr
/local
256 ac_config_libobj_dir
=.
261 SHELL
=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file
="tcpdump.c"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure
for building on BUILD
[guessed
]
837 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-smb enable possibly-buggy SMB printer default
=yes
849 --disable-smb disable possibly-buggy SMB printer
850 --enable-ipv6 enable ipv6
(with ipv4
) support
851 --disable-ipv6 disable ipv6 support
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --without-gcc don
't use gcc
857 --with-user=USERNAME drop privileges by default to USERNAME
858 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
860 use SSLeay libcrypto (located in directory PATH, if
861 supplied). [default=yes, if available]
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
872 Use these variables to override the choices made by `configure' or to
help
873 it to
find libraries and programs with nonstandard names
/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
882 test -d $ac_dir ||
continue
885 if test "$ac_dir" != .
; then
886 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix
= ac_top_builddir
=
894 .
) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
901 [\\/]* | ?
:[\\/]* ) # Absolute path.
902 ac_srcdir
=$srcdir$ac_dir_suffix;
903 ac_top_srcdir
=$srcdir ;;
905 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .
) ac_abs_builddir
="$ac_dir";;
915 .
) ac_abs_builddir
=`pwd`;;
916 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
917 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
923 case ${ac_top_builddir}.
in
924 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
925 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
926 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
929 case $ac_abs_builddir in
930 .
) ac_abs_srcdir
=$ac_srcdir;;
933 .
) ac_abs_srcdir
=$ac_abs_builddir;;
934 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
935 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
943 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu
; then
952 $SHELL $ac_srcdir/configure.gnu
--help=recursive
953 elif test -f $ac_srcdir/configure
; then
955 $SHELL $ac_srcdir/configure
--help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.
in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright
(C
) 2003 Free Software Foundation
, Inc.
972 This configure
script is free software
; the Free Software Foundation
973 gives unlimited permission to copy
, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir
=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next
=false
1048 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1049 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1050 |
-silent |
--silent |
--silen |
--sile |
--sil)
1052 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true
; then
1060 ac_must_keep_next
=false
# Got value, back to normal.
1063 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1064 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1065 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1066 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next
=true
;;
1074 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1082 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal
in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest
* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h
<<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h
<<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h
<<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h
<<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h
<<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE
; then
1204 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file
in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1226 *) . .
/$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted
=false
1238 for ac_var
in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1241 eval ac_new_set
=\
$ac_env_${ac_var}_set
1242 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val
="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted
=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted
=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted
=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg
=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp
='$CPP $CPPFLAGS'
1288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1312 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1313 if test -f $ac_dir/install-sh
; then
1315 ac_install_sh
="$ac_aux_dir/install-sh -c"
1317 elif test -f $ac_dir/install.sh
; then
1319 ac_install_sh
="$ac_aux_dir/install.sh -c"
1321 elif test -f $ac_dir/shtool
; then
1323 ac_install_sh
="$ac_aux_dir/shtool install -c"
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1332 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1336 # Make sure we can run config.sub.
1337 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340 { (exit 1); exit 1; }; }
1342 echo "$as_me:$LINENO: checking build system type" >&5
1343 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344 if test "${ac_cv_build+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 ac_cv_build_alias
=$build_alias
1348 test -z "$ac_cv_build_alias" &&
1349 ac_cv_build_alias
=`$ac_config_guess`
1350 test -z "$ac_cv_build_alias" &&
1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353 { (exit 1); exit 1; }; }
1354 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361 echo "${ECHO_T}$ac_cv_build" >&6
1363 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$as_me:$LINENO: checking host system type" >&5
1369 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370 if test "${ac_cv_host+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 ac_cv_host_alias
=$host_alias
1374 test -z "$ac_cv_host_alias" &&
1375 ac_cv_host_alias
=$ac_cv_build_alias
1376 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383 echo "${ECHO_T}$ac_cv_host" >&6
1385 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396 # Check whether --with-gcc or --without-gcc was given.
1397 if test "${with_gcc+set}" = set; then
1403 if test "${srcdir}" != "." ; then
1404 V_INCLS
="-I\$(srcdir)"
1406 if test "${CFLAGS+set}" = set; then
1407 LBL_CFLAGS
="$CFLAGS"
1409 if test -z "$CC" ; then
1413 # Extract the first word of "shlicc2", so it can be a program name with args.
1414 set dummy shlicc2
; ac_word
=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$SHLICC2"; then
1421 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir
=.
1428 for ac_exec_ext
in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_SHLICC2
="yes"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1440 SHLICC2
=$ac_cv_prog_SHLICC2
1441 if test -n "$SHLICC2"; then
1442 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1443 echo "${ECHO_T}$SHLICC2" >&6
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1449 if test $SHLICC2 = yes ; then
1456 if test -z "$CC" -a "$with_gcc" = no
; then
1461 ac_cpp
='$CPP $CPPFLAGS'
1462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC
="$CC" # Let the user override the test.
1476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1480 test -z "$as_dir" && as_dir
=.
1481 for ac_exec_ext
in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1502 if test -z "$ac_cv_prog_CC"; then
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505 set dummy gcc
; ac_word
=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir
=.
1519 for ac_exec_ext
in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC
="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1544 if test -z "$CC"; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC
="$CC" # Let the user override the test.
1556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir
=.
1561 for ac_exec_ext
in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1582 if test -z "$ac_cv_prog_CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc
; ac_word
=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir
=.
1599 for ac_exec_ext
in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC
="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc
; ac_word
=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC
="$CC" # Let the user override the test.
1637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir
=.
1642 for ac_exec_ext
in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected
=yes
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy
$ac_cv_prog_CC
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1664 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC
="$CC" # Let the user override the test.
1693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir
=.
1698 for ac_exec_ext
in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1718 test -n "$CC" && break
1721 if test -z "$CC"; then
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy
$ac_prog; ac_word
=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1739 test -z "$as_dir" && as_dir
=.
1740 for ac_exec_ext
in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC
="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 test -n "$ac_ct_CC" && break
1769 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: no acceptable C compiler found in \$PATH
1772 See \`config.log' for more details." >&2;}
1773 { (exit 1); exit 1; }; }
1775 # Provide some information about the compiler.
1776 echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
1778 ac_compiler
=`set X $ac_compile; echo $2`
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1795 cat >conftest.
$ac_ext <<_ACEOF
1798 cat confdefs.h
>>conftest.
$ac_ext
1799 cat >>conftest.
$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1810 ac_clean_files_save
=$ac_clean_files
1811 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1812 # Try to create an executable without -o first, disregard a.out.
1813 # It will help us diagnose broken compilers, and finding out an intuition
1815 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1817 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # Find the output, starting from the most likely. This scheme is
1824 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1827 # Be careful to initialize this variable, since it used to be cached.
1828 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1830 # b.out is created by i960 compilers.
1831 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1833 test -f "$ac_file" ||
continue
1835 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1838 # This is the source file.
1841 # We found the default executable, but exeext='' is most
1845 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1856 echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.
$ac_ext >&5
1859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: C compiler cannot create executables
1862 See \`config.log' for more details." >&2;}
1863 { (exit 77); exit 77; }; }
1866 ac_exeext
=$ac_cv_exeext
1867 echo "$as_me:$LINENO: result: $ac_file" >&5
1868 echo "${ECHO_T}$ac_file" >&6
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875 # If not cross compiling, check that we can run a simple program.
1876 if test "$cross_compiling" != yes; then
1877 if { ac_try
='./$ac_file'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1885 if test "$cross_compiling" = maybe
; then
1888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot run C compiled programs.
1892 If you meant to cross compile, use \`--host'.
1893 See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1898 echo "$as_me:$LINENO: result: yes" >&5
1899 echo "${ECHO_T}yes" >&6
1901 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1902 ac_clean_files
=$ac_clean_files_save
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908 echo "${ECHO_T}$cross_compiling" >&6
1910 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919 # work properly (i.e., refer to `conftest.exe'), while it won't with
1921 for ac_file
in conftest.exe conftest conftest.
*; do
1922 test -f "$ac_file" ||
continue
1924 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1925 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1939 rm -f conftest
$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941 echo "${ECHO_T}$ac_cv_exeext" >&6
1943 rm -f conftest.
$ac_ext
1944 EXEEXT
=$ac_cv_exeext
1946 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1948 if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 cat >conftest.
$ac_ext <<_ACEOF
1954 cat confdefs.h
>>conftest.
$ac_ext
1955 cat >>conftest.
$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1966 rm -f conftest.o conftest.obj
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1975 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.
$ac_ext >&5
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1990 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1992 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993 echo "${ECHO_T}$ac_cv_objext" >&6
1994 OBJEXT
=$ac_cv_objext
1996 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 cat >conftest.
$ac_ext <<_ACEOF
2004 cat confdefs.h
>>conftest.
$ac_ext
2005 cat >>conftest.
$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2019 rm -f conftest.
$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
2023 grep -v '^ *+' conftest.er1
>conftest.err
2025 cat conftest.err
>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try
='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; } &&
2035 { ac_try
='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.
$ac_ext >&5
2048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS
=${CFLAGS+set}
2056 ac_save_CFLAGS
=$CFLAGS
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.
$ac_ext <<_ACEOF
2066 cat confdefs.h
>>conftest.
$ac_ext
2067 cat >>conftest.
$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2078 rm -f conftest.
$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1
>conftest.err
2084 cat conftest.err
>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try
='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try
='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.
$ac_ext >&5
2107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2111 if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS
=$ac_save_CFLAGS
2113 elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2120 if test "$GCC" = yes; then
2126 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 ac_cv_prog_cc_stdc
=no
2133 cat >conftest.
$ac_ext <<_ACEOF
2136 cat confdefs.h
>>conftest.
$ac_ext
2137 cat >>conftest.
$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2157 s = g (p, va_arg (v,int));
2162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
2165 as 'x'. The following induces an error, until -std1 is added to get
2166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
2168 that's true only with -std1. */
2169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX -qlanglvl=ansi
2188 # Ultrix and OSF/1 -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions -Aa -D_HPUX_SOURCE
2191 # SVR4 -Xc -D__EXTENSIONS__
2192 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2194 CC
="$ac_save_CC $ac_arg"
2195 rm -f conftest.
$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2199 grep -v '^ *+' conftest.er1
>conftest.err
2201 cat conftest.err
>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try
='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try
='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc
=$ac_arg
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2224 rm -f conftest.err conftest.
$ac_objext
2226 rm -f conftest.
$ac_ext conftest.
$ac_objext
2231 case "x$ac_cv_prog_cc_stdc" in
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234 echo "${ECHO_T}none needed" >&6 ;;
2236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2241 # Some people use a C++ compiler to compile C. Since we use `exit',
2242 # in C++ we need to declare it. In case someone uses the same compiler
2243 # for both compiling C and C++ we need to have the C++ compiler decide
2244 # the declaration of exit, since it's the most demanding environment.
2245 cat >conftest.
$ac_ext <<_ACEOF
2250 rm -f conftest.
$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2254 grep -v '^ *+' conftest.er1
>conftest.err
2256 cat conftest.err
>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try
='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try
='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration
in \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2280 cat >conftest.
$ac_ext <<_ACEOF
2283 cat confdefs.h
>>conftest.
$ac_ext
2284 cat >>conftest.
$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2296 rm -f conftest.
$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1
>conftest.err
2302 cat conftest.err
>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try
='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try
='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.
$ac_ext >&5
2325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2326 cat >conftest.
$ac_ext <<_ACEOF
2329 cat confdefs.h
>>conftest.
$ac_ext
2330 cat >>conftest.
$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.
$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1
>conftest.err
2347 cat conftest.err
>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try
='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try
='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.
$ac_ext >&5
2369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cpp
='$CPP $CPPFLAGS'
2386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2390 if test "$GCC" = yes ; then
2391 if test "$SHLICC2" = yes ; then
2392 ac_cv_lbl_gcc_vers
=2
2395 echo "$as_me:$LINENO: checking gcc version" >&5
2396 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2397 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2401 sed -e '/^gcc version /!d' \
2402 -e 's/^gcc version //' \
2403 -e 's/ .*//' -e 's/^[^0-9]*//' \
2407 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2408 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2409 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2414 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2415 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2416 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.
$ac_ext <<_ACEOF
2423 cat confdefs.h
>>conftest.
$ac_ext
2424 cat >>conftest.
$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2426 #include <sys/types.h>
2430 int frob(int, char *)
2435 rm -f conftest.
$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1
>conftest.err
2441 cat conftest.err
>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try
='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try
='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_cv_lbl_cc_ansi_prototypes
=yes
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.
$ac_ext >&5
2462 ac_cv_lbl_cc_ansi_prototypes
=no
2464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2467 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2468 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2469 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2473 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2474 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2475 savedcflags
="$CFLAGS"
2476 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2477 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <sys/types.h>
2490 int frob(int, char *)
2495 rm -f conftest.
$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1
>conftest.err
2501 cat conftest.err
>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try
='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try
='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_lbl_cc_hpux_cc_aa
=yes
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.
$ac_ext >&5
2522 ac_cv_lbl_cc_hpux_cc_aa
=no
2524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2527 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2528 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2529 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2530 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2531 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2532 { (exit 1); exit 1; }; }
2534 CFLAGS
="$savedcflags"
2535 V_CCOPT
="-Aa $V_CCOPT"
2536 cat >>confdefs.h
<<\_ACEOF
2537 #define _HPUX_SOURCE 1
2543 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2544 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2545 { (exit 1); exit 1; }; }
2549 V_INCLS
="$V_INCLS -I/usr/local/include"
2550 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2555 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2559 V_CCOPT
="$V_CCOPT -std1 -O"
2563 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2564 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2565 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.
$ac_ext <<_ACEOF
2571 cat confdefs.h
>>conftest.
$ac_ext
2572 cat >>conftest.
$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574 #include <sys/types.h>
2578 struct a { int b; };
2579 void c(const struct a *)
2584 rm -f conftest.
$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try
='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try
='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_lbl_cc_const_proto
=yes
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.
$ac_ext >&5
2611 ac_cv_lbl_cc_const_proto
=no
2613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2616 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2617 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2618 if test $ac_cv_lbl_cc_const_proto = no
; then
2619 cat >>confdefs.h
<<\_ACEOF
2628 echo "$as_me:$LINENO: checking for inline" >&5
2629 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2630 if test "${ac_cv_lbl_inline+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 for ac_lbl_inline
in inline __inline__ __inline
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #define inline $ac_lbl_inline
2645 static inline struct iltest *foo(void);
2651 static inline struct iltest *
2654 static struct iltest xxx;
2666 rm -f conftest.
$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1
>conftest.err
2672 cat conftest.err
>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try
='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try
='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_lbl_cc_inline
=yes
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2695 if test "$ac_lbl_cc_inline" = yes ; then
2699 if test "$ac_lbl_cc_inline" = yes ; then
2700 ac_cv_lbl_inline
=$ac_lbl_inline
2704 if test ! -z "$ac_cv_lbl_inline" ; then
2705 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2706 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 cat >>confdefs.h
<<_ACEOF
2713 #define inline $ac_cv_lbl_inline
2717 echo "$as_me:$LINENO: checking for __attribute__" >&5
2718 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2719 if test "${ac_cv___attribute__+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.
$ac_ext <<_ACEOF
2726 cat confdefs.h
>>conftest.
$ac_ext
2727 cat >>conftest.
$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2732 static void foo(void) __attribute__ ((noreturn));
2741 main(int argc, char **argv)
2747 rm -f conftest.
$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1
>conftest.err
2753 cat conftest.err
>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try
='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try
='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv___attribute__
=yes
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.
$ac_ext >&5
2774 ac_cv___attribute__
=no
2776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2779 if test "$ac_cv___attribute__" = "yes"; then
2781 cat >>confdefs.h
<<\_ACEOF
2782 #define HAVE___ATTRIBUTE__ 1
2785 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2787 V_DEFS
="$V_DEFS -D_U_=\"\""
2789 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2790 echo "${ECHO_T}$ac_cv___attribute__" >&6
2793 ac_cpp
='$CPP $CPPFLAGS'
2794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2799 # On Suns, sometimes $CPP names a directory.
2800 if test -n "$CPP" && test -d "$CPP"; then
2803 if test -z "$CPP"; then
2804 if test "${ac_cv_prog_CPP+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 # Double quotes because CPP needs to be expanded
2808 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2811 for ac_c_preproc_warn_flag
in '' yes
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.
$ac_ext <<_ACEOF
2822 cat confdefs.h
>>conftest.
$ac_ext
2823 cat >>conftest.
$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev
/null
; then
2840 if test -s conftest.err
; then
2841 ac_cpp_err
=$ac_c_preproc_warn_flag
2842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2849 if test -z "$ac_cpp_err"; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.
$ac_ext >&5
2855 # Broken: fails on valid input.
2858 rm -f conftest.err conftest.
$ac_ext
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >conftest.
$ac_ext <<_ACEOF
2865 cat confdefs.h
>>conftest.
$ac_ext
2866 cat >>conftest.
$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1
>conftest.err
2875 cat conftest.err
>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev
/null
; then
2878 if test -s conftest.err
; then
2879 ac_cpp_err
=$ac_c_preproc_warn_flag
2880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.
$ac_ext >&5
2894 # Passes both tests.
2898 rm -f conftest.err conftest.
$ac_ext
2901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902 rm -f conftest.err conftest.
$ac_ext
2903 if $ac_preproc_ok; then
2915 echo "$as_me:$LINENO: result: $CPP" >&5
2916 echo "${ECHO_T}$CPP" >&6
2918 for ac_c_preproc_warn_flag
in '' yes
2920 # Use a header file that comes with gcc, so configuring glibc
2921 # with a fresh cross-compiler works.
2922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2923 # <limits.h> exists even on freestanding compilers.
2924 # On the NeXT, cc -E runs the code through the compiler's parser,
2925 # not just through cpp. "Syntax error" is here to catch this case.
2926 cat >conftest.
$ac_ext <<_ACEOF
2929 cat confdefs.h
>>conftest.
$ac_ext
2930 cat >>conftest.
$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 # include <limits.h>
2935 # include <assert.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1
>conftest.err
2944 cat conftest.err
>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev
/null
; then
2947 if test -s conftest.err
; then
2948 ac_cpp_err
=$ac_c_preproc_warn_flag
2949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2956 if test -z "$ac_cpp_err"; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.
$ac_ext >&5
2962 # Broken: fails on valid input.
2965 rm -f conftest.err conftest.
$ac_ext
2967 # OK, works on sane cases. Now check whether non-existent headers
2968 # can be detected and how.
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1
>conftest.err
2982 cat conftest.err
>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev
/null
; then
2985 if test -s conftest.err
; then
2986 ac_cpp_err
=$ac_c_preproc_warn_flag
2987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2994 if test -z "$ac_cpp_err"; then
2995 # Broken: success on invalid input.
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.
$ac_ext >&5
3001 # Passes both tests.
3005 rm -f conftest.err conftest.
$ac_ext
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.
$ac_ext
3010 if $ac_preproc_ok; then
3013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3021 ac_cpp
='$CPP $CPPFLAGS'
3022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking for egrep" >&5
3028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3029 if test "${ac_cv_prog_egrep+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3033 then ac_cv_prog_egrep
='grep -E'
3034 else ac_cv_prog_egrep
='egrep'
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3039 EGREP
=$ac_cv_prog_egrep
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3066 rm -f conftest.
$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1
>conftest.err
3072 cat conftest.err
>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try
='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try
='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc
=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 ac_cv_header_stdc
=no
3095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3097 if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.
$ac_ext <<_ACEOF
3102 cat confdefs.h
>>conftest.
$ac_ext
3103 cat >>conftest.
$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev
/null
2>&1; then
3112 ac_cv_header_stdc
=no
3118 if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev
/null
2>&1; then
3133 ac_cv_header_stdc
=no
3139 if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141 if test "$cross_compiling" = yes; then
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3155 # define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3174 rm -f conftest
$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: program exited with status $ac_status" >&5
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.
$ac_ext >&5
3192 ac_cv_header_stdc
=no
3194 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200 if test $ac_cv_header_stdc = yes; then
3202 cat >>confdefs.h
<<\_ACEOF
3203 #define STDC_HEADERS 1
3208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3218 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3219 inttypes.h stdint.h unistd.h
3221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222 echo "$as_me:$LINENO: checking for $ac_header" >&5
3223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 $ac_includes_default
3235 #include <$ac_header>
3237 rm -f conftest.
$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3241 grep -v '^ *+' conftest.er1
>conftest.err
3243 cat conftest.err
>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try
='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try
='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 eval "$as_ac_Header=yes"
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 eval "$as_ac_Header=no"
3266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3271 cat >>confdefs.h
<<_ACEOF
3272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3283 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3295 # Is the header compilable?
3296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3298 cat >conftest.
$ac_ext <<_ACEOF
3301 cat confdefs.h
>>conftest.
$ac_ext
3302 cat >>conftest.
$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_header_compiler
=yes
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.
$ac_ext >&5
3334 ac_header_compiler
=no
3336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.
$ac_ext <<_ACEOF
3346 cat confdefs.h
>>conftest.
$ac_ext
3347 cat >>conftest.
$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <$ac_header>
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1
>conftest.err
3356 cat conftest.err
>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev
/null
; then
3359 if test -s conftest.err
; then
3360 ac_cpp_err
=$ac_c_preproc_warn_flag
3361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc
=yes
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.
$ac_ext >&5
3374 ac_header_preproc
=no
3376 rm -f conftest.err conftest.
$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3380 # So? What about this header?
3381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3387 ac_header_preproc
=yes
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3404 ## ------------------------------------------ ##
3405 ## Report this to the AC_PACKAGE_NAME lists. ##
3406 ## ------------------------------------------ ##
3409 sed "s/^/$as_me: WARNING: /" >&2
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 eval "$as_ac_Header=\$ac_header_preproc"
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h
<<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 for ac_header
in net
/pfvar.h
3435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.
$ac_ext <<_ACEOF
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/socket.h>
3451 #include <$ac_header>
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 eval "$as_ac_Header=yes"
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 eval "$as_ac_Header=no"
3482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3487 cat >>confdefs.h
<<_ACEOF
3488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3495 if test "$ac_cv_header_net_pfvar_h" = yes; then
3496 LOCALSRC
="print-pflog.c $LOCALSRC"
3499 for ac_header
in netinet
/if_ether.h
3501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 cat >conftest.
$ac_ext <<_ACEOF
3510 cat confdefs.h
>>conftest.
$ac_ext
3511 cat >>conftest.
$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <sys/types.h>
3514 #include <sys/socket.h>
3516 #include <$ac_header>
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try
='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try
='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 eval "$as_ac_Header=yes"
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 eval "$as_ac_Header=no"
3547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552 cat >>confdefs.h
<<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3562 # The simple test didn't work.
3563 # Do we need to include <net/if.h> first?
3564 # Unset ac_cv_header_netinet_if_ether_h so we don't
3565 # treat the previous failure as a cached value and
3566 # suppress the next test.
3568 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3569 echo "$as_me: Rechecking with some additional includes" >&6;}
3570 unset ac_cv_header_netinet_if_ether_h
3572 for ac_header
in netinet
/if_ether.h
3574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.
$ac_ext <<_ACEOF
3583 cat confdefs.h
>>conftest.
$ac_ext
3584 cat >>conftest.
$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/socket.h>
3588 #include <netinet/in.h>
3593 #include <$ac_header>
3595 rm -f conftest.
$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1
>conftest.err
3601 cat conftest.err
>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try
='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try
='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 eval "$as_ac_Header=yes"
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.
$ac_ext >&5
3622 eval "$as_ac_Header=no"
3624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3629 cat >>confdefs.h
<<_ACEOF
3630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3639 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3641 if test "${ac_cv_header_time+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <sys/types.h>
3651 #include <sys/time.h>
3657 if ((struct tm *) 0)
3663 rm -f conftest.
$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1
>conftest.err
3669 cat conftest.err
>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try
='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try
='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_header_time
=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 ac_cv_header_time
=no
3692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3695 echo "${ECHO_T}$ac_cv_header_time" >&6
3696 if test $ac_cv_header_time = yes; then
3698 cat >>confdefs.h
<<\_ACEOF
3699 #define TIME_WITH_SYS_TIME 1
3708 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3709 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3710 if test "$cross_compiling" = yes; then
3711 if test "${ac_cv_linux_vers+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_cv_linux_vers
=unknown
3718 if test "${ac_cv_linux_vers+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cv_linux_vers
=`uname -r 2>&1 | \
3722 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3726 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3727 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3728 if test $ac_cv_linux_vers = unknown
; then
3729 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3730 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3731 { (exit 1); exit 1; }; }
3733 if test $ac_cv_linux_vers -lt 2 ; then
3734 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3735 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3736 { (exit 1); exit 1; }; }
3746 for ac_header
in smi.h
3748 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3758 # Is the header compilable?
3759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761 cat >conftest.
$ac_ext <<_ACEOF
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 #include <$ac_header>
3770 rm -f conftest.
$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1
>conftest.err
3776 cat conftest.err
>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try
='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try
='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_header_compiler
=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.
$ac_ext >&5
3797 ac_header_compiler
=no
3799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <$ac_header>
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1
>conftest.err
3819 cat conftest.err
>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev
/null
; then
3822 if test -s conftest.err
; then
3823 ac_cpp_err
=$ac_c_preproc_warn_flag
3824 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3831 if test -z "$ac_cpp_err"; then
3832 ac_header_preproc
=yes
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.
$ac_ext >&5
3837 ac_header_preproc
=no
3839 rm -f conftest.err conftest.
$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 echo "${ECHO_T}$ac_header_preproc" >&6
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc
=yes
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3867 ## ------------------------------------------ ##
3868 ## Report this to the AC_PACKAGE_NAME lists. ##
3869 ## ------------------------------------------ ##
3872 sed "s/^/$as_me: WARNING: /" >&2
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 eval "$as_ac_Header=\$ac_header_preproc"
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h
<<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3896 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3897 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3898 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_check_lib_save_LIBS
=$LIBS
3903 cat >conftest.
$ac_ext <<_ACEOF
3906 cat confdefs.h
>>conftest.
$ac_ext
3907 cat >>conftest.
$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3910 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3925 rm -f conftest.
$ac_objext conftest
$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1
>conftest.err
3931 cat conftest.err
>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try
='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try
='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_lib_smi_smiInit
=yes
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 ac_cv_lib_smi_smiInit
=no
3954 rm -f conftest.err conftest.
$ac_objext \
3955 conftest
$ac_exeext conftest.
$ac_ext
3956 LIBS
=$ac_check_lib_save_LIBS
3958 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3959 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3960 if test $ac_cv_lib_smi_smiInit = yes; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define HAVE_LIBSMI 1
3969 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3971 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3972 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3973 if test "$cross_compiling" = yes; then
3974 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3975 echo "${ECHO_T}not when cross-compiling" >&6
3979 cat >conftest.
$ac_ext <<_ACEOF
3982 cat confdefs.h
>>conftest.
$ac_ext
3983 cat >>conftest.
$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 /* libsmi available check */
3989 int current, revision, age, n;
3990 const int required = 2;
3993 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3995 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3998 if (required < current - age || required > current)
4004 rm -f conftest
$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6
4017 cat >>confdefs.h
<<\_ACEOF
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.
$ac_ext >&5
4029 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4030 echo "${ECHO_T}no - smiInit failed" >&6 ;;
4031 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4032 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
4033 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4034 echo "${ECHO_T}no - can't determine library version" >&6 ;;
4035 4) echo "$as_me:$LINENO: result: no - too old" >&5
4036 echo "${ECHO_T}no - too old" >&6 ;;
4037 *) echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6 ;;
4042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4046 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4047 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
4048 # Check whether --enable-smb or --disable-smb was given.
4049 if test "${enable_smb+set}" = set; then
4050 enableval
="$enable_smb"
4055 case "$enableval" in
4056 yes) echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4059 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4060 cat >>confdefs.h
<<\_ACEOF
4061 #define TCPDUMP_DO_SMB 1
4064 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
4066 *) echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4072 # Check whether --with-user or --without-user was given.
4073 if test "${with_user+set}" = set; then
4074 withval
="$with_user"
4077 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4078 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4079 if test ! -z "$with_user" ; then
4080 cat >>confdefs.h
<<_ACEOF
4081 #define WITH_USER "$withval"
4084 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4085 echo "${ECHO_T}to \"$withval\"" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4092 # Check whether --with-chroot or --without-chroot was given.
4093 if test "${with_chroot+set}" = set; then
4094 withval
="$with_chroot"
4097 echo "$as_me:$LINENO: checking whether to chroot" >&5
4098 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4099 if test ! -z "$with_chroot" ; then
4100 cat >>confdefs.h
<<_ACEOF
4101 #define WITH_CHROOT "$withval"
4104 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4105 echo "${ECHO_T}to \"$withval\"" >&6
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4112 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4113 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4114 if test "${enable_ipv6+set}" = set; then
4115 enableval
="$enable_ipv6"
4116 case "$enableval" in
4117 yes) echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119 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"
4120 cat >>confdefs.h
<<\_ACEOF
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4133 if test "$cross_compiling" = yes; then
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* AF_INET6 available check */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4150 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4157 rm -f conftest
$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4170 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"
4171 cat >>confdefs.h
<<\_ACEOF
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.
$ac_ext >&5
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4186 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4194 if test "$ipv6" = "yes"; then
4195 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4196 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4197 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <netinet/in.h>
4207 #ifdef IPV6_INRIA_VERSION
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "yes" >/dev
/null
2>&1; then
4214 CFLAGS
="-DINET6 $CFLAGS"
4220 cat >conftest.
$ac_ext <<_ACEOF
4223 cat confdefs.h
>>conftest.
$ac_ext
4224 cat >>conftest.
$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <netinet/in.h>
4231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232 $EGREP "yes" >/dev
/null
2>&1; then
4235 ipv6libdir
=/usr
/local
/v
6/lib
;
4237 CFLAGS
="-DINET6 $CFLAGS"
4243 cat >conftest.
$ac_ext <<_ACEOF
4246 cat confdefs.h
>>conftest.
$ac_ext
4247 cat >>conftest.
$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <features.h>
4250 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "yes" >/dev
/null
2>&1; then
4257 CFLAGS
="-DINET6 $CFLAGS"
4263 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
4266 ipv6libdir
=/usr
/inet
6/lib
4268 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4272 cat >conftest.
$ac_ext <<_ACEOF
4275 cat confdefs.h
>>conftest.
$ac_ext
4276 cat >>conftest.
$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <sys/param.h>
4279 #ifdef _TOSHIBA_INET6
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev
/null
2>&1; then
4287 ipv6libdir
=/usr
/local
/v
6/lib
;
4288 CFLAGS
="-DINET6 $CFLAGS"
4294 cat >conftest.
$ac_ext <<_ACEOF
4297 cat confdefs.h
>>conftest.
$ac_ext
4298 cat >>conftest.
$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 #include </usr/local/v6/include/sys/v6config.h>
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "yes" >/dev
/null
2>&1; then
4309 ipv6libdir
=/usr
/local
/v
6/lib
;
4310 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <sys/param.h>
4323 #ifdef _ZETA_MINAMI_INET6
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "yes" >/dev
/null
2>&1; then
4331 ipv6libdir
=/usr
/local
/v
6/lib
;
4332 CFLAGS
="-DINET6 $CFLAGS"
4338 if test "$ipv6type" != "unknown"; then
4342 echo "$as_me:$LINENO: result: $ipv6type" >&5
4343 echo "${ECHO_T}$ipv6type" >&6
4346 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4347 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4348 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4349 echo "You have $ipv6lib library, using it"
4351 if test "$ipv6trylibc" = "yes"; then
4352 echo "You do not have $ipv6lib library, using libc"
4354 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4355 echo "You need to fetch lib$ipv6lib.a from appropriate"
4356 echo 'ipv6 kit and compile beforehand.'
4363 if test "$ipv6" = "yes"; then
4365 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4366 # function in libc; there are "ngetaddrinfo()" and
4367 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4368 # "getaddrinfo" to be either "ngetaddrinfo" or
4369 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4370 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4372 # So this test doesn't work on Tru64 5.1, and possibly
4373 # on other 5.x releases. This causes the configure
4374 # script to become confused, and results in libpcap
4375 # being unbuildable.
4377 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4378 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4379 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_func_search_save_LIBS
=$LIBS
4383 ac_cv_search_getaddrinfo
=no
4384 cat >conftest.
$ac_ext <<_ACEOF
4387 cat confdefs.h
>>conftest.
$ac_ext
4388 cat >>conftest.
$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char getaddrinfo ();
4406 rm -f conftest.
$ac_objext conftest
$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1
>conftest.err
4412 cat conftest.err
>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try
='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try
='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_search_getaddrinfo
="none required"
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.
$ac_ext >&5
4434 rm -f conftest.err conftest.
$ac_objext \
4435 conftest
$ac_exeext conftest.
$ac_ext
4436 if test "$ac_cv_search_getaddrinfo" = no
; then
4437 for ac_lib
in socket
; do
4438 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4439 cat >conftest.
$ac_ext <<_ACEOF
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char getaddrinfo ();
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_search_getaddrinfo
="-l$ac_lib"
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4490 rm -f conftest.err conftest.
$ac_objext \
4491 conftest
$ac_exeext conftest.
$ac_ext
4494 LIBS
=$ac_func_search_save_LIBS
4496 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4497 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4498 if test "$ac_cv_search_getaddrinfo" != no
; then
4499 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4500 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4501 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4502 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if test "$cross_compiling" = yes; then
4506 td_cv_buggygetaddrinfo
=yes
4508 cat >conftest.
$ac_ext <<_ACEOF
4511 cat confdefs.h
>>conftest.
$ac_ext
4512 cat >>conftest.
$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 #include <sys/types.h>
4518 #include <sys/socket.h>
4519 #include <netinet/in.h>
4523 int passive, gaierr, inet4 = 0, inet6 = 0;
4524 struct addrinfo hints, *ai, *aitop;
4525 char straddr[INET6_ADDRSTRLEN], strport[16];
4527 for (passive = 0; passive <= 1; passive++) {
4528 memset(&hints, 0, sizeof(hints));
4529 hints.ai_family = AF_UNSPEC;
4530 hints.ai_flags = passive ? AI_PASSIVE : 0;
4531 hints.ai_socktype = SOCK_STREAM;
4532 hints.ai_protocol = IPPROTO_TCP;
4533 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4534 (void)gai_strerror(gaierr);
4537 for (ai = aitop; ai; ai = ai->ai_next) {
4538 if (ai->ai_addr == NULL ||
4539 ai->ai_addrlen == 0 ||
4540 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4541 straddr, sizeof(straddr), strport, sizeof(strport),
4542 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4545 switch (ai->ai_family) {
4547 if (strcmp(strport, "54321") != 0) {
4551 if (strcmp(straddr, "0.0.0.0") != 0) {
4555 if (strcmp(straddr, "127.0.0.1") != 0) {
4562 if (strcmp(strport, "54321") != 0) {
4566 if (strcmp(straddr, "::") != 0) {
4570 if (strcmp(straddr, "::1") != 0) {
4587 /* another family support? */
4593 /* supported family should be 2, unsupported family should be 0 */
4594 if (!(inet4 == 0 || inet4 == 2))
4596 if (!(inet6 == 0 || inet6 == 2))
4600 freeaddrinfo(aitop);
4605 freeaddrinfo(aitop);
4610 rm -f conftest
$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 td_cv_buggygetaddrinfo
=no
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4628 td_cv_buggygetaddrinfo
=yes
4630 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4634 if test "$td_cv_buggygetaddrinfo" = no
; then
4635 echo "$as_me:$LINENO: result: good" >&5
4636 echo "${ECHO_T}good" >&6
4638 echo "$as_me:$LINENO: result: buggy" >&5
4639 echo "${ECHO_T}buggy" >&6
4642 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4644 # XXX - it doesn't appear that "ipv6type" can ever be
4645 # set to "linux". Should this be testing for
4646 # "linux-glibc", or for that *or* "linux-libinet6"?
4647 # If the latter, note that "linux-libinet6" is also
4648 # the type given to some non-Linux OSes.
4650 if test "$ipv6type" != "linux"; then
4651 echo 'Fatal: You must get working getaddrinfo() function.'
4652 echo ' or you can specify "--disable-ipv6"'.
4655 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4656 echo ' Better upgrade your system library to newest version'
4657 echo ' of GNU C library (aka glibc).'
4665 for ac_func
in getaddrinfo getnameinfo
4667 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 echo "$as_me:$LINENO: checking for $ac_func" >&5
4669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4670 if eval "test \"\${$as_ac_var+set}\" = set"; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 cat >conftest.
$ac_ext <<_ACEOF
4676 cat confdefs.h
>>conftest.
$ac_ext
4677 cat >>conftest.
$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4681 #define $ac_func innocuous_$ac_func
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below.
4685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 <limits.h> exists even on freestanding compilers. */
4689 # include <limits.h>
4691 # include <assert.h>
4696 /* Override any gcc2 internal prototype to avoid an error. */
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4710 char (*f) () = $ac_func;
4719 return f != $ac_func;
4724 rm -f conftest.
$ac_objext conftest
$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>conftest.er1
4728 grep -v '^ *+' conftest.er1
>conftest.err
4730 cat conftest.err
>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try
='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try
='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 eval "$as_ac_var=yes"
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4751 eval "$as_ac_var=no"
4753 rm -f conftest.err conftest.
$ac_objext \
4754 conftest
$ac_exeext conftest.
$ac_ext
4756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4758 if test `eval echo '${'$as_ac_var'}'` = yes; then
4759 cat >>confdefs.h
<<_ACEOF
4760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4765 "$ac_func.$ac_objext" | \
4766 *" $ac_func.$ac_objext" | \
4767 "$ac_func.$ac_objext "* | \
4768 *" $ac_func.$ac_objext "* ) ;;
4769 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
4778 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4779 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4780 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 cat >conftest.
$ac_ext <<_ACEOF
4786 cat confdefs.h
>>conftest.
$ac_ext
4787 cat >>conftest.
$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <netdnet/dnetdb.h>
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4794 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4796 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4801 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4802 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4803 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4804 cat >>confdefs.h
<<\_ACEOF
4805 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4810 echo "$as_me:$LINENO: checking for char" >&5
4811 echo $ECHO_N "checking for char... $ECHO_C" >&6
4812 if test "${ac_cv_type_char+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try
='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try
='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.
$ac_ext >&5
4862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4865 echo "${ECHO_T}$ac_cv_type_char" >&6
4867 echo "$as_me:$LINENO: checking size of char" >&5
4868 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4869 if test "${ac_cv_sizeof_char+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test "$ac_cv_type_char" = yes; then
4873 # The cast to unsigned long works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 if test "$cross_compiling" = yes; then
4878 # Depending upon the size, compute the lo and hi bounds.
4879 cat >conftest.
$ac_ext <<_ACEOF
4882 cat confdefs.h
>>conftest.
$ac_ext
4883 cat >>conftest.
$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4889 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try
='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try
='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4920 cat >conftest.
$ac_ext <<_ACEOF
4923 cat confdefs.h
>>conftest.
$ac_ext
4924 cat >>conftest.
$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 $ac_includes_default
4930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4937 rm -f conftest.
$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4941 grep -v '^ *+' conftest.er1
>conftest.err
4943 cat conftest.err
>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try
='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try
='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_hi
=$ac_mid; break
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4964 ac_lo
=`expr $ac_mid + 1`
4965 if test $ac_lo -le $ac_mid; then
4969 ac_mid
=`expr 2 '*' $ac_mid + 1`
4971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4977 cat >conftest.
$ac_ext <<_ACEOF
4980 cat confdefs.h
>>conftest.
$ac_ext
4981 cat >>conftest.
$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4994 rm -f conftest.
$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4998 grep -v '^ *+' conftest.er1
>conftest.err
5000 cat conftest.err
>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try
='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try
='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5018 cat >conftest.
$ac_ext <<_ACEOF
5021 cat confdefs.h
>>conftest.
$ac_ext
5022 cat >>conftest.
$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5028 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5035 rm -f conftest.
$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5039 grep -v '^ *+' conftest.er1
>conftest.err
5041 cat conftest.err
>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try
='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try
='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_lo
=$ac_mid; break
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.
$ac_ext >&5
5062 ac_hi
=`expr '(' $ac_mid ')' - 1`
5063 if test $ac_mid -le $ac_hi; then
5067 ac_mid
=`expr 2 '*' $ac_mid`
5069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.
$ac_ext >&5
5077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 # Binary search between lo and hi bounds.
5081 while test "x$ac_lo" != "x$ac_hi"; do
5082 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5083 cat >conftest.
$ac_ext <<_ACEOF
5086 cat confdefs.h
>>conftest.
$ac_ext
5087 cat >>conftest.
$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5093 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5100 rm -f conftest.
$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1
>conftest.err
5106 cat conftest.err
>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try
='test -z "$ac_c_werror_flag"
5110 || test ! -s conftest.err'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; } &&
5116 { ac_try
='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 ac_lo
=`expr '(' $ac_mid ')' + 1`
5129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5132 ?
*) ac_cv_sizeof_char
=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (char), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 if test "$cross_compiling" = yes; then
5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot run test program while cross compiling
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5147 cat >conftest.
$ac_ext <<_ACEOF
5150 cat confdefs.h
>>conftest.
$ac_ext
5151 cat >>conftest.
$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 long longval () { return (long) (sizeof (char)); }
5155 unsigned long ulongval () { return (long) (sizeof (char)); }
5162 FILE *f = fopen ("conftest.val", "w");
5165 if (((long) (sizeof (char))) < 0)
5167 long i = longval ();
5168 if (i != ((long) (sizeof (char))))
5170 fprintf (f, "%ld\n", i);
5174 unsigned long i = ulongval ();
5175 if (i != ((long) (sizeof (char))))
5177 fprintf (f, "%lu\n", i);
5179 exit (ferror (f) || fclose (f) != 0);
5185 rm -f conftest
$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_sizeof_char
=`cat conftest.val`
5198 echo "$as_me: program exited with status $ac_status" >&5
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.
$ac_ext >&5
5203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot compute sizeof (char), 77
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5209 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5218 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5219 cat >>confdefs.h
<<_ACEOF
5220 #define SIZEOF_CHAR $ac_cv_sizeof_char
5224 echo "$as_me:$LINENO: checking for short" >&5
5225 echo $ECHO_N "checking for short... $ECHO_C" >&6
5226 if test "${ac_cv_type_short+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5247 rm -f conftest.
$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5251 grep -v '^ *+' conftest.er1
>conftest.err
5253 cat conftest.err
>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -z "$ac_c_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try
='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_type_short
=yes
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.
$ac_ext >&5
5276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5279 echo "${ECHO_T}$ac_cv_type_short" >&6
5281 echo "$as_me:$LINENO: checking size of short" >&5
5282 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5283 if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if test "$ac_cv_type_short" = yes; then
5287 # The cast to unsigned long works around a bug in the HP C Compiler
5288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5290 # This bug is HP SR number 8606223364.
5291 if test "$cross_compiling" = yes; then
5292 # Depending upon the size, compute the lo and hi bounds.
5293 cat >conftest.
$ac_ext <<_ACEOF
5296 cat confdefs.h
>>conftest.
$ac_ext
5297 cat >>conftest.
$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5303 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5310 rm -f conftest.
$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5314 grep -v '^ *+' conftest.er1
>conftest.err
5316 cat conftest.err
>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try
='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try
='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5334 cat >conftest.
$ac_ext <<_ACEOF
5337 cat confdefs.h
>>conftest.
$ac_ext
5338 cat >>conftest.
$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5344 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5351 rm -f conftest.
$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try
='test -z "$ac_c_werror_flag"
5361 || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try
='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_hi
=$ac_mid; break
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 ac_lo
=`expr $ac_mid + 1`
5379 if test $ac_lo -le $ac_mid; then
5383 ac_mid
=`expr 2 '*' $ac_mid + 1`
5385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 cat >conftest.
$ac_ext <<_ACEOF
5394 cat confdefs.h
>>conftest.
$ac_ext
5395 cat >>conftest.
$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5401 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5408 rm -f conftest.
$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5412 grep -v '^ *+' conftest.er1
>conftest.err
5414 cat conftest.err
>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try
='test -z "$ac_c_werror_flag"
5418 || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try
='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5432 cat >conftest.
$ac_ext <<_ACEOF
5435 cat confdefs.h
>>conftest.
$ac_ext
5436 cat >>conftest.
$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5449 rm -f conftest.
$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5453 grep -v '^ *+' conftest.er1
>conftest.err
5455 cat conftest.err
>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try
='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try
='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_lo
=$ac_mid; break
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.
$ac_ext >&5
5476 ac_hi
=`expr '(' $ac_mid ')' - 1`
5477 if test $ac_mid -le $ac_hi; then
5481 ac_mid
=`expr 2 '*' $ac_mid`
5483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5494 # Binary search between lo and hi bounds.
5495 while test "x$ac_lo" != "x$ac_hi"; do
5496 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5507 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5514 rm -f conftest.
$ac_objext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516 (eval $ac_compile) 2>conftest.er1
5518 grep -v '^ *+' conftest.er1
>conftest.err
5520 cat conftest.err
>&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try
='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try
='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.
$ac_ext >&5
5541 ac_lo
=`expr '(' $ac_mid ')' + 1`
5543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5546 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: cannot compute sizeof (short), 77
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; } ;;
5554 if test "$cross_compiling" = yes; then
5555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 long longval () { return (long) (sizeof (short)); }
5569 unsigned long ulongval () { return (long) (sizeof (short)); }
5576 FILE *f = fopen ("conftest.val", "w");
5579 if (((long) (sizeof (short))) < 0)
5581 long i = longval ();
5582 if (i != ((long) (sizeof (short))))
5584 fprintf (f, "%ld\n", i);
5588 unsigned long i = ulongval ();
5589 if (i != ((long) (sizeof (short))))
5591 fprintf (f, "%lu\n", i);
5593 exit (ferror (f) || fclose (f) != 0);
5599 rm -f conftest
$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_sizeof_short
=`cat conftest.val`
5612 echo "$as_me: program exited with status $ac_status" >&5
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.
$ac_ext >&5
5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (short), 77
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5623 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5628 ac_cv_sizeof_short
=0
5631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5632 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5633 cat >>confdefs.h
<<_ACEOF
5634 #define SIZEOF_SHORT $ac_cv_sizeof_short
5638 echo "$as_me:$LINENO: checking for int" >&5
5639 echo $ECHO_N "checking for int... $ECHO_C" >&6
5640 if test "${ac_cv_type_int+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 cat >conftest.
$ac_ext <<_ACEOF
5646 cat confdefs.h
>>conftest.
$ac_ext
5647 cat >>conftest.
$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5661 rm -f conftest.
$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try
='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.
$ac_ext >&5
5690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5693 echo "${ECHO_T}$ac_cv_type_int" >&6
5695 echo "$as_me:$LINENO: checking size of int" >&5
5696 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5697 if test "${ac_cv_sizeof_int+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test "$ac_cv_type_int" = yes; then
5701 # The cast to unsigned long works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5717 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5724 rm -f conftest.
$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try
='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try
='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5758 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5765 rm -f conftest.
$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5769 grep -v '^ *+' conftest.er1
>conftest.err
5771 cat conftest.err
>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try
='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try
='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_hi
=$ac_mid; break
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.
$ac_ext >&5
5792 ac_lo
=`expr $ac_mid + 1`
5793 if test $ac_lo -le $ac_mid; then
5797 ac_mid
=`expr 2 '*' $ac_mid + 1`
5799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.
$ac_ext >&5
5805 cat >conftest.
$ac_ext <<_ACEOF
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5815 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5822 rm -f conftest.
$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1
>conftest.err
5828 cat conftest.err
>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try
='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try
='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 cat >conftest.
$ac_ext <<_ACEOF
5849 cat confdefs.h
>>conftest.
$ac_ext
5850 cat >>conftest.
$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5856 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5863 rm -f conftest.
$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try
='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try
='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_lo
=$ac_mid; break
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 ac_hi
=`expr '(' $ac_mid ')' - 1`
5891 if test $ac_mid -le $ac_hi; then
5895 ac_mid
=`expr 2 '*' $ac_mid`
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 # Binary search between lo and hi bounds.
5909 while test "x$ac_lo" != "x$ac_hi"; do
5910 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5921 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5928 rm -f conftest.
$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try
='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5955 ac_lo
=`expr '(' $ac_mid ')' + 1`
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (int), 77
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; } ;;
5968 if test "$cross_compiling" = yes; then
5969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (int)); }
5983 unsigned long ulongval () { return (long) (sizeof (int)); }
5990 FILE *f = fopen ("conftest.val", "w");
5993 if (((long) (sizeof (int))) < 0)
5995 long i = longval ();
5996 if (i != ((long) (sizeof (int))))
5998 fprintf (f, "%ld\n", i);
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (int))))
6005 fprintf (f, "%lu\n", i);
6007 exit (ferror (f) || fclose (f) != 0);
6013 rm -f conftest
$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof_int
=`cat conftest.val`
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (int), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6047 cat >>confdefs.h
<<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6052 echo "$as_me:$LINENO: checking for long" >&5
6053 echo $ECHO_N "checking for long... $ECHO_C" >&6
6054 if test "${ac_cv_type_long+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6075 rm -f conftest.
$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1
>conftest.err
6081 cat conftest.err
>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try
='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try
='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.
$ac_ext >&5
6104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6107 echo "${ECHO_T}$ac_cv_type_long" >&6
6109 echo "$as_me:$LINENO: checking size of long" >&5
6110 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6111 if test "${ac_cv_sizeof_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if test "$ac_cv_type_long" = yes; then
6115 # The cast to unsigned long works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 if test "$cross_compiling" = yes; then
6120 # Depending upon the size, compute the lo and hi bounds.
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6138 rm -f conftest.
$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6142 grep -v '^ *+' conftest.er1
>conftest.err
6144 cat conftest.err
>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try
='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try
='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi
=$ac_mid; break
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_lo
=`expr $ac_mid + 1`
6207 if test $ac_lo -le $ac_mid; then
6211 ac_mid
=`expr 2 '*' $ac_mid + 1`
6213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6229 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6236 rm -f conftest.
$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
6242 cat conftest.err
>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try
='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try
='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 cat >conftest.
$ac_ext <<_ACEOF
6263 cat confdefs.h
>>conftest.
$ac_ext
6264 cat >>conftest.
$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6277 rm -f conftest.
$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_lo
=$ac_mid; break
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 ac_hi
=`expr '(' $ac_mid ')' - 1`
6305 if test $ac_mid -le $ac_hi; then
6309 ac_mid
=`expr 2 '*' $ac_mid`
6311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 ac_lo
=`expr '(' $ac_mid ')' + 1`
6371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; } ;;
6382 if test "$cross_compiling" = yes; then
6383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot run test program while cross compiling
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6389 cat >conftest.
$ac_ext <<_ACEOF
6392 cat confdefs.h
>>conftest.
$ac_ext
6393 cat >>conftest.
$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 long longval () { return (long) (sizeof (long)); }
6397 unsigned long ulongval () { return (long) (sizeof (long)); }
6404 FILE *f = fopen ("conftest.val", "w");
6407 if (((long) (sizeof (long))) < 0)
6409 long i = longval ();
6410 if (i != ((long) (sizeof (long))))
6412 fprintf (f, "%ld\n", i);
6416 unsigned long i = ulongval ();
6417 if (i != ((long) (sizeof (long))))
6419 fprintf (f, "%lu\n", i);
6421 exit (ferror (f) || fclose (f) != 0);
6427 rm -f conftest
$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_sizeof_long
=`cat conftest.val`
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: cannot compute sizeof (long), 77
6448 See \`config.log' for more details." >&2;}
6449 { (exit 1); exit 1; }; }
6451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6460 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6461 cat >>confdefs.h
<<_ACEOF
6462 #define SIZEOF_LONG $ac_cv_sizeof_long
6466 echo "$as_me:$LINENO: checking for long long" >&5
6467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6468 if test "${ac_cv_type_long_long+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6481 if ((long long *) 0)
6483 if (sizeof (long long))
6489 rm -f conftest.
$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6493 grep -v '^ *+' conftest.er1
>conftest.err
6495 cat conftest.err
>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try
='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try
='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_type_long_long
=yes
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6516 ac_cv_type_long_long
=no
6518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6521 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6523 echo "$as_me:$LINENO: checking size of long long" >&5
6524 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6525 if test "${ac_cv_sizeof_long_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test "$ac_cv_type_long_long" = yes; then
6529 # The cast to unsigned long works around a bug in the HP C Compiler
6530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6532 # This bug is HP SR number 8606223364.
6533 if test "$cross_compiling" = yes; then
6534 # Depending upon the size, compute the lo and hi bounds.
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6552 rm -f conftest.
$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try
='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try
='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6593 rm -f conftest.
$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1
>conftest.err
6599 cat conftest.err
>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try
='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try
='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_hi
=$ac_mid; break
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.
$ac_ext >&5
6620 ac_lo
=`expr $ac_mid + 1`
6621 if test $ac_lo -le $ac_mid; then
6625 ac_mid
=`expr 2 '*' $ac_mid + 1`
6627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6650 rm -f conftest.
$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1
>conftest.err
6656 cat conftest.err
>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try
='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try
='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6674 cat >conftest.
$ac_ext <<_ACEOF
6677 cat confdefs.h
>>conftest.
$ac_ext
6678 cat >>conftest.
$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try
='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try
='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_lo
=$ac_mid; break
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.
$ac_ext >&5
6718 ac_hi
=`expr '(' $ac_mid ')' - 1`
6719 if test $ac_mid -le $ac_hi; then
6723 ac_mid
=`expr 2 '*' $ac_mid`
6725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.
$ac_ext >&5
6733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6736 # Binary search between lo and hi bounds.
6737 while test "x$ac_lo" != "x$ac_hi"; do
6738 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 ac_lo
=`expr '(' $ac_mid ')' + 1`
6785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6790 See \`config.log' for more details." >&5
6791 echo "$as_me: error: cannot compute sizeof (long long), 77
6792 See \`config.log' for more details." >&2;}
6793 { (exit 1); exit 1; }; } ;;
6796 if test "$cross_compiling" = yes; then
6797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot run test program while cross compiling
6800 See \`config.log' for more details." >&2;}
6801 { (exit 1); exit 1; }; }
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 long longval () { return (long) (sizeof (long long)); }
6811 unsigned long ulongval () { return (long) (sizeof (long long)); }
6818 FILE *f = fopen ("conftest.val", "w");
6821 if (((long) (sizeof (long long))) < 0)
6823 long i = longval ();
6824 if (i != ((long) (sizeof (long long))))
6826 fprintf (f, "%ld\n", i);
6830 unsigned long i = ulongval ();
6831 if (i != ((long) (sizeof (long long))))
6833 fprintf (f, "%lu\n", i);
6835 exit (ferror (f) || fclose (f) != 0);
6841 rm -f conftest
$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_sizeof_long_long
=`cat conftest.val`
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: cannot compute sizeof (long long), 77
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6865 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6870 ac_cv_sizeof_long_long
=0
6873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6874 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6875 cat >>confdefs.h
<<_ACEOF
6876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6883 echo "$as_me:$LINENO: checking for addrinfo" >&5
6884 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6885 if test "${ac_cv_addrinfo+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 cat >conftest.
$ac_ext <<_ACEOF
6891 cat confdefs.h
>>conftest.
$ac_ext
6892 cat >>conftest.
$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6904 rm -f conftest.
$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6908 grep -v '^ *+' conftest.er1
>conftest.err
6910 cat conftest.err
>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try
='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6936 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6937 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6938 if test $ac_cv_addrinfo = yes; then
6939 cat >>confdefs.h
<<\_ACEOF
6940 #define HAVE_ADDRINFO 1
6944 cat >>confdefs.h
<<\_ACEOF
6945 #define NEED_ADDRINFO_H 1
6950 if test "$ac_cv_addrinfo" = no
; then
6951 missing_includes
=yes
6955 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6956 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6957 if test "${ac_cv_maxserv+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "yes" >/dev
/null
2>&1; then
6981 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6982 echo "${ECHO_T}$ac_cv_maxserv" >&6
6983 if test $ac_cv_maxserv != yes; then
6984 cat >>confdefs.h
<<\_ACEOF
6985 #define NEED_ADDRINFO_H 1
6990 if test "$ac_cv_maxserv" = no
; then
6991 missing_includes
=yes
6995 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6996 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6997 if test "${ac_cv_namereqd+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.
$ac_ext <<_ACEOF
7003 cat confdefs.h
>>conftest.
$ac_ext
7004 cat >>conftest.
$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7012 $EGREP "yes" >/dev
/null
2>&1; then
7021 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7022 echo "${ECHO_T}$ac_cv_namereqd" >&6
7023 if test $ac_cv_namereqd != yes; then
7024 cat >>confdefs.h
<<\_ACEOF
7025 #define NEED_ADDRINFO_H 1
7030 if test "$ac_cv_namereqd" = no
; then
7031 missing_includes
=yes
7035 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7036 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
7037 if test "${ac_cv_sa_storage+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.
$ac_ext <<_ACEOF
7043 cat confdefs.h
>>conftest.
$ac_ext
7044 cat >>conftest.
$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7047 # include <sys/types.h>
7048 # include <sys/socket.h>
7052 struct sockaddr_storage s
7057 rm -f conftest.
$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1
>conftest.err
7063 cat conftest.err
>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try
='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try
='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_sa_storage
=yes
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.
$ac_ext >&5
7086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7089 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7090 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7091 if test $ac_cv_sa_storage = yes; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define HAVE_SOCKADDR_STORAGE 1
7098 if test "$ac_cv_sa_storage" = no
; then
7099 missing_includes
=yes
7104 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7105 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7106 if test "${ac_cv_inaddrsz+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.
$ac_ext <<_ACEOF
7112 cat confdefs.h
>>conftest.
$ac_ext
7113 cat >>conftest.
$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7116 # include <arpa/nameser.h>
7125 rm -f conftest.
$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1
>conftest.err
7131 cat conftest.err
>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try
='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try
='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7157 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7158 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7159 if test $ac_cv_inaddrsz = yes; then
7160 cat >>confdefs.h
<<\_ACEOF
7161 #define HAVE_INADDRSZ 1
7167 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7168 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7169 if test "${ac_cv_in6addrsz+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7179 # include <arpa/nameser.h>
7188 rm -f conftest.
$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try
='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7221 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7222 if test $ac_cv_in6addrsz = yes; then
7223 cat >>confdefs.h
<<\_ACEOF
7224 #define HAVE_IN6ADDRSZ 1
7231 if test "$ac_cv_addrsz" = no
; then
7232 missing_includes
=yes
7236 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7237 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7238 if test "${ac_cv_res_inet6+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 # include <sys/types.h>
7249 # include <netinet/in.h>
7250 # include <resolv.h>
7254 int a = RES_USE_INET6
7259 rm -f conftest.
$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1
>conftest.err
7265 cat conftest.err
>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try
='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try
='test -s conftest.$ac_objext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.
$ac_ext >&5
7288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7291 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7292 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7293 if test $ac_cv_res_inet6 = yes; then
7294 cat >>confdefs.h
<<\_ACEOF
7295 #define HAVE_RES_USE_INET6 1
7300 if test "$ac_cv_res_inet6" = no
; then
7301 missing_includes
=yes
7305 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7306 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7307 if test "${ac_cv_res_state_ext+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 cat >conftest.
$ac_ext <<_ACEOF
7313 cat confdefs.h
>>conftest.
$ac_ext
7314 cat >>conftest.
$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7317 # include <sys/types.h>
7318 # include <netinet/in.h>
7319 # include <netinet6/in6.h>
7320 # include <resolv.h>
7324 struct __res_state_ext e
7329 rm -f conftest.
$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>conftest.er1
7333 grep -v '^ *+' conftest.er1
>conftest.err
7335 cat conftest.err
>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try
='test -z "$ac_c_werror_flag"
7339 || test ! -s conftest.err'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try
='test -s conftest.$ac_objext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_res_state_ext
=yes
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.
$ac_ext >&5
7356 ac_cv_res_state_ext
=no
7358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7362 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7363 if test $ac_cv_res_state_ext = yes; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define HAVE_RES_STATE_EXT 1
7370 if test "$ac_cv_res_state_ext" = no
; then
7371 missing_includes
=yes
7375 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7376 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7377 if test "${ac_cv_res_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 # include <sys/types.h>
7388 # include <netinet/in.h>
7389 # include <netinet6/in6.h>
7390 # include <resolv.h>
7394 struct __res_state e; e.nsort = 0
7399 rm -f conftest.
$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7403 grep -v '^ *+' conftest.er1
>conftest.err
7405 cat conftest.err
>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try
='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try
='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.
$ac_ext >&5
7428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7432 echo "${ECHO_T}$ac_cv_res_state" >&6
7433 if test $ac_cv_res_state = yes; then
7434 cat >>confdefs.h
<<\_ACEOF
7435 #define HAVE_NEW_RES_STATE 1
7448 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
7450 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7451 echo "$as_me:$LINENO: checking for $ac_func" >&5
7452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_var+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 cat >conftest.
$ac_ext <<_ACEOF
7459 cat confdefs.h
>>conftest.
$ac_ext
7460 cat >>conftest.
$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7464 #define $ac_func innocuous_$ac_func
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func (); below.
7468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 <limits.h> exists even on freestanding compilers. */
7472 # include <limits.h>
7474 # include <assert.h>
7479 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7487 /* The GNU C library defines this for functions which it implements
7488 to always fail with ENOSYS. Some functions are actually named
7489 something starting with __ and the normal name is an alias. */
7490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 char (*f) () = $ac_func;
7502 return f != $ac_func;
7507 rm -f conftest.
$ac_objext conftest
$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1
>conftest.err
7513 cat conftest.err
>&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try
='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try
='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 eval "$as_ac_var=yes"
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.
$ac_ext >&5
7534 eval "$as_ac_var=no"
7536 rm -f conftest.err conftest.
$ac_objext \
7537 conftest
$ac_exeext conftest.
$ac_ext
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h
<<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7548 "$ac_func.$ac_objext" | \
7549 *" $ac_func.$ac_objext" | \
7550 "$ac_func.$ac_objext "* | \
7551 *" $ac_func.$ac_objext "* ) ;;
7552 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7560 for ac_func
in strftime
7562 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 echo "$as_me:$LINENO: checking for $ac_func" >&5
7564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_var+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.
$ac_ext <<_ACEOF
7571 cat confdefs.h
>>conftest.
$ac_ext
7572 cat >>conftest.
$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7576 #define $ac_func innocuous_$ac_func
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func (); below.
7580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 <limits.h> exists even on freestanding compilers. */
7584 # include <limits.h>
7586 # include <assert.h>
7591 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7605 char (*f) () = $ac_func;
7614 return f != $ac_func;
7619 rm -f conftest.
$ac_objext conftest
$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>conftest.er1
7623 grep -v '^ *+' conftest.er1
>conftest.err
7625 cat conftest.err
>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try
='test -z "$ac_c_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try
='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 eval "$as_ac_var=yes"
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.
$ac_ext >&5
7646 eval "$as_ac_var=no"
7648 rm -f conftest.err conftest.
$ac_objext \
7649 conftest
$ac_exeext conftest.
$ac_ext
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7653 if test `eval echo '${'$as_ac_var'}'` = yes; then
7654 cat >>confdefs.h
<<_ACEOF
7655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7663 for ac_func
in setlinebuf alarm
7665 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7666 echo "$as_me:$LINENO: checking for $ac_func" >&5
7667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7668 if eval "test \"\${$as_ac_var+set}\" = set"; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 cat >conftest.
$ac_ext <<_ACEOF
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7679 #define $ac_func innocuous_$ac_func
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char $ac_func (); below.
7683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684 <limits.h> exists even on freestanding compilers. */
7687 # include <limits.h>
7689 # include <assert.h>
7694 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708 char (*f) () = $ac_func;
7717 return f != $ac_func;
7722 rm -f conftest.
$ac_objext conftest
$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 eval "$as_ac_var=yes"
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7749 eval "$as_ac_var=no"
7751 rm -f conftest.err conftest.
$ac_objext \
7752 conftest
$ac_exeext conftest.
$ac_ext
7754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7756 if test `eval echo '${'$as_ac_var'}'` = yes; then
7757 cat >>confdefs.h
<<_ACEOF
7758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7768 for ac_func
in vsnprintf snprintf
7770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 cat >conftest.
$ac_ext <<_ACEOF
7779 cat confdefs.h
>>conftest.
$ac_ext
7780 cat >>conftest.
$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7784 #define $ac_func innocuous_$ac_func
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char $ac_func (); below.
7788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7789 <limits.h> exists even on freestanding compilers. */
7792 # include <limits.h>
7794 # include <assert.h>
7799 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7813 char (*f) () = $ac_func;
7822 return f != $ac_func;
7827 rm -f conftest.
$ac_objext conftest
$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1
>conftest.err
7833 cat conftest.err
>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try
='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try
='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 eval "$as_ac_var=yes"
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.
$ac_ext >&5
7854 eval "$as_ac_var=no"
7856 rm -f conftest.err conftest.
$ac_objext \
7857 conftest
$ac_exeext conftest.
$ac_ext
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7861 if test `eval echo '${'$as_ac_var'}'` = yes; then
7862 cat >>confdefs.h
<<_ACEOF
7863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7871 if test $needsnprintf = yes; then
7873 "snprintf.$ac_objext" | \
7874 *" snprintf.$ac_objext" | \
7875 "snprintf.$ac_objext "* | \
7876 *" snprintf.$ac_objext "* ) ;;
7877 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
7883 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7884 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7885 if test "${ac_cv_type_signal+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 cat >conftest.
$ac_ext <<_ACEOF
7891 cat confdefs.h
>>conftest.
$ac_ext
7892 cat >>conftest.
$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <sys/types.h>
7900 extern "C" void (*signal (int, void (*)(int)))(int);
7902 void (*signal ()) ();
7913 rm -f conftest.
$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7917 grep -v '^ *+' conftest.er1
>conftest.err
7919 cat conftest.err
>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try
='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try
='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_type_signal
=void
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.
$ac_ext >&5
7940 ac_cv_type_signal
=int
7942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7945 echo "${ECHO_T}$ac_cv_type_signal" >&6
7947 cat >>confdefs.h
<<_ACEOF
7948 #define RETSIGTYPE $ac_cv_type_signal
7952 if test "$ac_cv_type_signal" = void
; then
7953 cat >>confdefs.h
<<\_ACEOF
7958 cat >>confdefs.h
<<\_ACEOF
7959 #define RETSIGVAL (0)
7966 cat >>confdefs.h
<<\_ACEOF
7967 #define _BSD_SIGNALS 1
7974 for ac_func
in sigaction
7976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7979 if eval "test \"\${$as_ac_var+set}\" = set"; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7990 #define $ac_func innocuous_$ac_func
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func (); below.
7994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995 <limits.h> exists even on freestanding compilers. */
7998 # include <limits.h>
8000 # include <assert.h>
8005 /* Override any gcc2 internal prototype to avoid an error. */
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019 char (*f) () = $ac_func;
8028 return f != $ac_func;
8033 rm -f conftest.
$ac_objext conftest
$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1
>conftest.err
8039 cat conftest.err
>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try
='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try
='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8060 eval "$as_ac_var=no"
8062 rm -f conftest.err conftest.
$ac_objext \
8063 conftest
$ac_exeext conftest.
$ac_ext
8065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8067 if test `eval echo '${'$as_ac_var'}'` = yes; then
8068 cat >>confdefs.h
<<_ACEOF
8069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8075 if test $ac_cv_func_sigaction = no
; then
8077 for ac_func
in sigset
8079 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8093 #define $ac_func innocuous_$ac_func
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char $ac_func (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8101 # include <limits.h>
8103 # include <assert.h>
8108 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8122 char (*f) () = $ac_func;
8131 return f != $ac_func;
8136 rm -f conftest.
$ac_objext conftest
$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try
='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try
='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 eval "$as_ac_var=yes"
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.
$ac_ext >&5
8163 eval "$as_ac_var=no"
8165 rm -f conftest.err conftest.
$ac_objext \
8166 conftest
$ac_exeext conftest.
$ac_ext
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8170 if test `eval echo '${'$as_ac_var'}'` = yes; then
8171 cat >>confdefs.h
<<_ACEOF
8172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8182 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8183 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8184 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_func_search_save_LIBS
=$LIBS
8188 ac_cv_search_dnet_htoa
=no
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8196 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8211 rm -f conftest.
$ac_objext conftest
$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8215 grep -v '^ *+' conftest.er1
>conftest.err
8217 cat conftest.err
>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try
='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try
='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_search_dnet_htoa
="none required"
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.
$ac_ext >&5
8239 rm -f conftest.err conftest.
$ac_objext \
8240 conftest
$ac_exeext conftest.
$ac_ext
8241 if test "$ac_cv_search_dnet_htoa" = no
; then
8242 for ac_lib
in dnet
; do
8243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8244 cat >conftest.
$ac_ext <<_ACEOF
8247 cat confdefs.h
>>conftest.
$ac_ext
8248 cat >>conftest.
$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8266 rm -f conftest.
$ac_objext conftest
$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try
='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try
='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_search_dnet_htoa
="-l$ac_lib"
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8295 rm -f conftest.err conftest.
$ac_objext \
8296 conftest
$ac_exeext conftest.
$ac_ext
8299 LIBS
=$ac_func_search_save_LIBS
8301 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8302 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8303 if test "$ac_cv_search_dnet_htoa" != no
; then
8304 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
8305 cat >>confdefs.h
<<\_ACEOF
8306 #define HAVE_DNET_HTOA 1
8313 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8314 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8315 if test "${ac_cv_lib_rpc_main+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_check_lib_save_LIBS
=$LIBS
8320 cat >conftest.
$ac_ext <<_ACEOF
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8336 rm -f conftest.
$ac_objext conftest
$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8340 grep -v '^ *+' conftest.er1
>conftest.err
8342 cat conftest.err
>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try
='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try
='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_rpc_main
=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.
$ac_ext >&5
8363 ac_cv_lib_rpc_main
=no
8365 rm -f conftest.err conftest.
$ac_objext \
8366 conftest
$ac_exeext conftest.
$ac_ext
8367 LIBS
=$ac_check_lib_save_LIBS
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8370 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8371 if test $ac_cv_lib_rpc_main = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define HAVE_LIBRPC 1
8380 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8381 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8382 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_func_search_save_LIBS
=$LIBS
8386 ac_cv_search_getrpcbynumber
=no
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8394 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char getrpcbynumber ();
8409 rm -f conftest.
$ac_objext conftest
$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try
='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try
='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_search_getrpcbynumber
="none required"
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8437 rm -f conftest.err conftest.
$ac_objext \
8438 conftest
$ac_exeext conftest.
$ac_ext
8439 if test "$ac_cv_search_getrpcbynumber" = no
; then
8440 for ac_lib
in nsl
; do
8441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8442 cat >conftest.
$ac_ext <<_ACEOF
8445 cat confdefs.h
>>conftest.
$ac_ext
8446 cat >>conftest.
$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char getrpcbynumber ();
8464 rm -f conftest.
$ac_objext conftest
$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try
='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try
='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_search_getrpcbynumber
="-l$ac_lib"
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.
$ac_ext >&5
8493 rm -f conftest.err conftest.
$ac_objext \
8494 conftest
$ac_exeext conftest.
$ac_ext
8497 LIBS
=$ac_func_search_save_LIBS
8499 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8500 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8501 if test "$ac_cv_search_getrpcbynumber" != no
; then
8502 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
8503 cat >>confdefs.h
<<\_ACEOF
8504 #define HAVE_GETRPCBYNUMBER 1
8512 # Most operating systems have gethostbyname() in the default searched
8513 # libraries (i.e. libc):
8514 # Some OSes (eg. Solaris) place it in libnsl
8515 # Some strange OSes (SINIX) have it in libsocket:
8516 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8517 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8518 if test "${ac_cv_search_gethostbyname+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_func_search_save_LIBS
=$LIBS
8522 ac_cv_search_gethostbyname
=no
8523 cat >conftest.
$ac_ext <<_ACEOF
8526 cat confdefs.h
>>conftest.
$ac_ext
8527 cat >>conftest.
$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char gethostbyname ();
8545 rm -f conftest.
$ac_objext conftest
$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try
='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try
='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_search_gethostbyname
="none required"
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8573 rm -f conftest.err conftest.
$ac_objext \
8574 conftest
$ac_exeext conftest.
$ac_ext
8575 if test "$ac_cv_search_gethostbyname" = no
; then
8576 for ac_lib
in nsl socket resolv
; do
8577 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8578 cat >conftest.
$ac_ext <<_ACEOF
8581 cat confdefs.h
>>conftest.
$ac_ext
8582 cat >>conftest.
$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8591 char gethostbyname ();
8600 rm -f conftest.
$ac_objext conftest
$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1
>conftest.err
8606 cat conftest.err
>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try
='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try
='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_gethostbyname
="-l$ac_lib"
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8629 rm -f conftest.err conftest.
$ac_objext \
8630 conftest
$ac_exeext conftest.
$ac_ext
8633 LIBS
=$ac_func_search_save_LIBS
8635 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8637 if test "$ac_cv_search_gethostbyname" != no
; then
8638 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
8642 # Unfortunately libsocket sometimes depends on libnsl and
8643 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8644 if test "$ac_cv_search_gethostbyname" = "no"
8646 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8647 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8648 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_check_lib_save_LIBS
=$LIBS
8652 LIBS
="-lsocket -lnsl $LIBS"
8653 cat >conftest.
$ac_ext <<_ACEOF
8656 cat confdefs.h
>>conftest.
$ac_ext
8657 cat >>conftest.
$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8660 /* Override any gcc2 internal prototype to avoid an error. */
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char gethostbyname ();
8675 rm -f conftest.
$ac_objext conftest
$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try
='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try
='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_socket_gethostbyname
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_cv_lib_socket_gethostbyname
=no
8704 rm -f conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8706 LIBS
=$ac_check_lib_save_LIBS
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8709 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8710 if test $ac_cv_lib_socket_gethostbyname = yes; then
8711 LIBS
="-lsocket -lnsl $LIBS"
8715 echo "$as_me:$LINENO: checking for library containing socket" >&5
8716 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8717 if test "${ac_cv_search_socket+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_func_search_save_LIBS
=$LIBS
8721 ac_cv_search_socket
=no
8722 cat >conftest.
$ac_ext <<_ACEOF
8725 cat confdefs.h
>>conftest.
$ac_ext
8726 cat >>conftest.
$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8729 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8744 rm -f conftest.
$ac_objext conftest
$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1
>conftest.err
8750 cat conftest.err
>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try
='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try
='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_search_socket
="none required"
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8772 rm -f conftest.err conftest.
$ac_objext \
8773 conftest
$ac_exeext conftest.
$ac_ext
8774 if test "$ac_cv_search_socket" = no
; then
8775 for ac_lib
in socket
; do
8776 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8799 rm -f conftest.
$ac_objext conftest
$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1
>conftest.err
8805 cat conftest.err
>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try
='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try
='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_search_socket
="-l$ac_lib"
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8828 rm -f conftest.err conftest.
$ac_objext \
8829 conftest
$ac_exeext conftest.
$ac_ext
8832 LIBS
=$ac_func_search_save_LIBS
8834 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8835 echo "${ECHO_T}$ac_cv_search_socket" >&6
8836 if test "$ac_cv_search_socket" != no
; then
8837 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
8840 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8841 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8842 if test "${ac_cv_lib_socket_socket+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_check_lib_save_LIBS
=$LIBS
8846 LIBS
="-lsocket -lnsl $LIBS"
8847 cat >conftest.
$ac_ext <<_ACEOF
8850 cat confdefs.h
>>conftest.
$ac_ext
8851 cat >>conftest.
$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 /* Override any gcc2 internal prototype to avoid an error. */
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8869 rm -f conftest.
$ac_objext conftest
$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1
>conftest.err
8875 cat conftest.err
>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try
='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try
='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_socket_socket
=yes
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.
$ac_ext >&5
8896 ac_cv_lib_socket_socket
=no
8898 rm -f conftest.err conftest.
$ac_objext \
8899 conftest
$ac_exeext conftest.
$ac_ext
8900 LIBS
=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8904 if test $ac_cv_lib_socket_socket = yes; then
8905 LIBS
="-lsocket -lnsl $LIBS"
8910 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8911 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8912 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8913 if test "${ac_cv_search_putmsg+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 ac_func_search_save_LIBS
=$LIBS
8917 ac_cv_search_putmsg
=no
8918 cat >conftest.
$ac_ext <<_ACEOF
8921 cat confdefs.h
>>conftest.
$ac_ext
8922 cat >>conftest.
$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8925 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8940 rm -f conftest.
$ac_objext conftest
$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8944 grep -v '^ *+' conftest.er1
>conftest.err
8946 cat conftest.err
>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try
='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try
='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_search_putmsg
="none required"
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.
$ac_ext >&5
8968 rm -f conftest.err conftest.
$ac_objext \
8969 conftest
$ac_exeext conftest.
$ac_ext
8970 if test "$ac_cv_search_putmsg" = no
; then
8971 for ac_lib
in str
; do
8972 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8973 cat >conftest.
$ac_ext <<_ACEOF
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8995 rm -f conftest.
$ac_objext conftest
$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1
>conftest.err
9001 cat conftest.err
>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try
='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try
='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_search_putmsg
="-l$ac_lib"
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f conftest.err conftest.
$ac_objext \
9025 conftest
$ac_exeext conftest.
$ac_ext
9028 LIBS
=$ac_func_search_save_LIBS
9030 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9031 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
9032 if test "$ac_cv_search_putmsg" != no
; then
9033 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
9040 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9041 if test -f $pfopen ; then
9043 for ac_func
in pfopen
9045 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 cat >conftest.
$ac_ext <<_ACEOF
9054 cat confdefs.h
>>conftest.
$ac_ext
9055 cat >>conftest.
$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9067 # include <limits.h>
9069 # include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 char (*f) () = $ac_func;
9097 return f != $ac_func;
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try
='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 eval "$as_ac_var=yes"
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.
$ac_ext >&5
9129 eval "$as_ac_var=no"
9131 rm -f conftest.err conftest.
$ac_objext \
9132 conftest
$ac_exeext conftest.
$ac_ext
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9136 if test `eval echo '${'$as_ac_var'}'` = yes; then
9137 cat >>confdefs.h
<<_ACEOF
9138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9144 if test $ac_cv_func_pfopen = "no" ; then
9145 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9146 echo "${ECHO_T}Using $pfopen" >&6
9147 LIBS
="$LIBS $pfopen"
9150 echo "$as_me:$LINENO: checking for local pcap library" >&5
9151 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9154 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9155 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9156 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
9157 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9158 if test $lastdir = $basedir ; then
9162 if test -r $dir/libpcap.a
; then
9163 libpcap
=$dir/libpcap.a
9167 if test $libpcap = FAIL
; then
9168 echo "$as_me:$LINENO: result: not found" >&5
9169 echo "${ECHO_T}not found" >&6
9170 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9171 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9172 if test "${ac_cv_lib_pcap_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 ac_check_lib_save_LIBS
=$LIBS
9177 cat >conftest.
$ac_ext <<_ACEOF
9180 cat confdefs.h
>>conftest.
$ac_ext
9181 cat >>conftest.
$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9193 rm -f conftest.
$ac_objext conftest
$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1
>conftest.err
9199 cat conftest.err
>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try
='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try
='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_pcap_main
=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.
$ac_ext >&5
9220 ac_cv_lib_pcap_main
=no
9222 rm -f conftest.err conftest.
$ac_objext \
9223 conftest
$ac_exeext conftest.
$ac_ext
9224 LIBS
=$ac_check_lib_save_LIBS
9226 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9227 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9228 if test $ac_cv_lib_pcap_main = yes; then
9232 if test $libpcap = FAIL
; then
9233 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9234 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9235 { (exit 1); exit 1; }; }
9237 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9238 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9239 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9240 \
( ! -r /usr
/include
/pcap.h \
); then
9241 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9242 d
="/usr/local/include/pcap"
9243 elif test -r /usr
/include
/pcap
/pcap.h
; then
9244 d
="/usr/include/pcap"
9247 if test -z "$d" ; then
9248 echo "$as_me:$LINENO: result: not found" >&5
9249 echo "${ECHO_T}not found" >&6
9251 V_INCLS
="-I$d $V_INCLS"
9252 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9253 echo "${ECHO_T}found -- -I$d added" >&6
9257 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9258 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9259 if test -r $d/pcap.h
; then
9260 V_INCLS
="-I$d $V_INCLS"
9261 elif test -r $places/pcap.h
; then
9262 V_INCLS
="-I$places $V_INCLS"
9264 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9265 echo "$as_me: error: cannot find pcap.h" >&2;}
9266 { (exit see INSTALL
); exit see INSTALL
; }; }
9268 echo "$as_me:$LINENO: result: $libpcap" >&5
9269 echo "${ECHO_T}$libpcap" >&6
9271 LIBS
="$libpcap $LIBS"
9275 pseexe
="/lib/pse.exp"
9276 echo "$as_me:$LINENO: checking for $pseexe" >&5
9277 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9278 if test -f $pseexe ; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6
9281 LIBS
="$LIBS -I:$pseexe"
9284 # We need "-lodm" and "-lcfg", as libpcap requires them on
9285 # AIX, and we just build a static libpcap.a and thus can't
9286 # arrange that when you link with libpcap you automatically
9287 # link with those libraries.
9289 LIBS
="$LIBS -lodm -lcfg"
9293 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9294 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9295 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char pcap_list_datalinks (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9314 # include <limits.h>
9316 # include <assert.h>
9319 #undef pcap_list_datalinks
9321 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char pcap_list_datalinks ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9335 char (*f) () = pcap_list_datalinks;
9344 return f != pcap_list_datalinks;
9349 rm -f conftest.
$ac_objext conftest
$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try
='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_func_pcap_list_datalinks
=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.
$ac_ext >&5
9376 ac_cv_func_pcap_list_datalinks
=no
9378 rm -f conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9381 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9382 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9383 if test $ac_cv_func_pcap_list_datalinks = yes; then
9384 cat >>confdefs.h
<<\_ACEOF
9385 #define HAVE_PCAP_LIST_DATALINKS 1
9391 "datalinks.$ac_objext" | \
9392 *" datalinks.$ac_objext" | \
9393 "datalinks.$ac_objext "* | \
9394 *" datalinks.$ac_objext "* ) ;;
9395 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext" ;;
9401 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9402 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9403 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define pcap_set_datalink innocuous_pcap_set_datalink
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char pcap_set_datalink (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9422 # include <limits.h>
9424 # include <assert.h>
9427 #undef pcap_set_datalink
9429 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char pcap_set_datalink ();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9443 char (*f) () = pcap_set_datalink;
9452 return f != pcap_set_datalink;
9457 rm -f conftest.
$ac_objext conftest
$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try
='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try
='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_pcap_set_datalink
=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.
$ac_ext >&5
9484 ac_cv_func_pcap_set_datalink
=no
9486 rm -f conftest.err conftest.
$ac_objext \
9487 conftest
$ac_exeext conftest.
$ac_ext
9489 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9490 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9491 if test $ac_cv_func_pcap_set_datalink = yes; then
9492 cat >>confdefs.h
<<\_ACEOF
9493 #define HAVE_PCAP_SET_DATALINK 1
9498 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9499 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9500 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char pcap_datalink_name_to_val (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9524 #undef pcap_datalink_name_to_val
9526 /* Override any gcc2 internal prototype to avoid an error. */
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char pcap_datalink_name_to_val ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9540 char (*f) () = pcap_datalink_name_to_val;
9549 return f != pcap_datalink_name_to_val;
9554 rm -f conftest.
$ac_objext conftest
$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9558 grep -v '^ *+' conftest.er1
>conftest.err
9560 cat conftest.err
>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try
='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try
='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_pcap_datalink_name_to_val
=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.
$ac_ext >&5
9581 ac_cv_func_pcap_datalink_name_to_val
=no
9583 rm -f conftest.err conftest.
$ac_objext \
9584 conftest
$ac_exeext conftest.
$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9587 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9588 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9590 cat >>confdefs.h
<<\_ACEOF
9591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9594 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9595 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9596 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.
$ac_ext <<_ACEOF
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char pcap_datalink_val_to_description (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9620 #undef pcap_datalink_val_to_description
9622 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629 char pcap_datalink_val_to_description ();
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9636 char (*f) () = pcap_datalink_val_to_description;
9645 return f != pcap_datalink_val_to_description;
9650 rm -f conftest.
$ac_objext conftest
$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9654 grep -v '^ *+' conftest.er1
>conftest.err
9656 cat conftest.err
>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try
='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try
='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_func_pcap_datalink_val_to_description
=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.
$ac_ext >&5
9677 ac_cv_func_pcap_datalink_val_to_description
=no
9679 rm -f conftest.err conftest.
$ac_objext \
9680 conftest
$ac_exeext conftest.
$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9683 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9684 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9685 cat >>confdefs.h
<<\_ACEOF
9686 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9692 "dlnames.$ac_objext" | \
9693 *" dlnames.$ac_objext" | \
9694 "dlnames.$ac_objext "* | \
9695 *" dlnames.$ac_objext "* ) ;;
9696 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9706 "dlnames.$ac_objext" | \
9707 *" dlnames.$ac_objext" | \
9708 "dlnames.$ac_objext "* | \
9709 *" dlnames.$ac_objext "* ) ;;
9710 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9718 for ac_func
in pcap_breakloop
9720 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.
$ac_ext <<_ACEOF
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define $ac_func innocuous_$ac_func
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9763 char (*f) () = $ac_func;
9772 return f != $ac_func;
9777 rm -f conftest.
$ac_objext conftest
$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try
='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try
='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 eval "$as_ac_var=yes"
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9804 eval "$as_ac_var=no"
9806 rm -f conftest.err conftest.
$ac_objext \
9807 conftest
$ac_exeext conftest.
$ac_ext
9809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9811 if test `eval echo '${'$as_ac_var'}'` = yes; then
9812 cat >>confdefs.h
<<_ACEOF
9813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9820 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9821 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9822 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char pcap_dump_ftell (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9841 # include <limits.h>
9843 # include <assert.h>
9846 #undef pcap_dump_ftell
9848 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char pcap_dump_ftell ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9862 char (*f) () = pcap_dump_ftell;
9871 return f != pcap_dump_ftell;
9876 rm -f conftest.
$ac_objext conftest
$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1
>conftest.err
9882 cat conftest.err
>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try
='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try
='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_pcap_dump_ftell
=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.
$ac_ext >&5
9903 ac_cv_func_pcap_dump_ftell
=no
9905 rm -f conftest.err conftest.
$ac_objext \
9906 conftest
$ac_exeext conftest.
$ac_ext
9908 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9909 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9910 if test $ac_cv_func_pcap_dump_ftell = yes; then
9911 cat >>confdefs.h
<<\_ACEOF
9912 #define HAVE_PCAP_DUMP_FTELL 1
9918 "pcap_dump_ftell.$ac_objext" | \
9919 *" pcap_dump_ftell.$ac_objext" | \
9920 "pcap_dump_ftell.$ac_objext "* | \
9921 *" pcap_dump_ftell.$ac_objext "* ) ;;
9922 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9931 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9932 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9934 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9935 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9936 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9937 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9938 # it does not ship with a libc symbol "inet_ntop()", it ships with
9939 # "_inet_ntop()", and has a #define macro in one of the system headers
9942 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9943 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9944 cat >conftest.
$ac_ext <<_ACEOF
9947 cat confdefs.h
>>conftest.
$ac_ext
9948 cat >>conftest.
$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <sys/types.h>
9951 #include <sys/socket.h>
9952 #include <netinet/in.h>
9953 #include <arpa/inet.h>
9957 char src[4], dst[128];
9958 inet_ntop(AF_INET, src, dst, sizeof(dst));
9963 rm -f conftest.
$ac_objext conftest
$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>conftest.er1
9967 grep -v '^ *+' conftest.er1
>conftest.err
9969 cat conftest.err
>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try
='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try
='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 echo "$as_me:$LINENO: result: yes" >&5
9986 echo "${ECHO_T}yes" >&6
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 echo "$as_me:$LINENO: result: no" >&5
9992 echo "${ECHO_T}no" >&6
9994 "inet_ntop.$ac_objext" | \
9995 *" inet_ntop.$ac_objext" | \
9996 "inet_ntop.$ac_objext "* | \
9997 *" inet_ntop.$ac_objext "* ) ;;
9998 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext" ;;
10002 rm -f conftest.err conftest.
$ac_objext \
10003 conftest
$ac_exeext conftest.
$ac_ext
10004 echo "$as_me:$LINENO: checking for inet_pton" >&5
10005 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10006 cat >conftest.
$ac_ext <<_ACEOF
10009 cat confdefs.h
>>conftest.
$ac_ext
10010 cat >>conftest.
$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 #include <sys/types.h>
10013 #include <sys/socket.h>
10014 #include <netinet/in.h>
10015 #include <arpa/inet.h>
10019 char src[128], dst[4];
10020 inet_pton(AF_INET, src, dst);
10025 rm -f conftest.
$ac_objext conftest
$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>conftest.er1
10029 grep -v '^ *+' conftest.er1
>conftest.err
10031 cat conftest.err
>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try
='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try
='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 echo "$as_me:$LINENO: result: yes" >&5
10048 echo "${ECHO_T}yes" >&6
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.
$ac_ext >&5
10053 echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6
10056 "inet_pton.$ac_objext" | \
10057 *" inet_pton.$ac_objext" | \
10058 "inet_pton.$ac_objext "* | \
10059 *" inet_pton.$ac_objext "* ) ;;
10060 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext" ;;
10064 rm -f conftest.err conftest.
$ac_objext \
10065 conftest
$ac_exeext conftest.
$ac_ext
10066 echo "$as_me:$LINENO: checking for inet_aton" >&5
10067 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <sys/types.h>
10075 #include <netinet/in.h>
10076 #include <arpa/inet.h>
10081 struct in_addr dst;
10082 inet_aton(src, &dst);
10087 rm -f conftest.
$ac_objext conftest
$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10091 grep -v '^ *+' conftest.er1
>conftest.err
10093 cat conftest.err
>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try
='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try
='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10115 echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10118 "inet_aton.$ac_objext" | \
10119 *" inet_aton.$ac_objext" | \
10120 "inet_aton.$ac_objext "* | \
10121 *" inet_aton.$ac_objext "* ) ;;
10122 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext" ;;
10126 rm -f conftest.err conftest.
$ac_objext \
10127 conftest
$ac_exeext conftest.
$ac_ext
10130 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10132 # You are in a twisty little maze of UN*Xes, all different.
10133 # Some might not have ether_ntohost().
10134 # Some might have it, but not declare it in any header file.
10135 # Some might have it, but declare it in <netinet/if_ether.h>.
10136 # Some might have it, but declare it in <netinet/ether.h>
10137 # (And some might have it but document it as something declared in
10138 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10140 # Before you is a C compiler.
10143 for ac_func
in ether_ntohost
10145 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10167 # include <limits.h>
10169 # include <assert.h>
10174 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 char (*f) () = $ac_func;
10197 return f != $ac_func;
10202 rm -f conftest.
$ac_objext conftest
$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try
='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try
='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.
$ac_ext >&5
10229 eval "$as_ac_var=no"
10231 rm -f conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237 cat >>confdefs.h
<<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10242 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10243 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10250 cat >conftest.
$ac_ext <<_ACEOF
10253 cat confdefs.h
>>conftest.
$ac_ext
10254 cat >>conftest.
$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10258 #include <sys/types.h>
10259 #include <sys/param.h>
10260 #include <sys/socket.h>
10263 main(int argc, char **argv)
10265 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10266 char name[MAXHOSTNAMELEN];
10268 ether_ntohost(name, (struct ether_addr *)ea);
10273 rm -f conftest
$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_buggy_ether_ntohost
=no
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.
$ac_ext >&5
10290 ( exit $ac_status )
10291 ac_cv_buggy_ether_ntohost
=yes
10293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10297 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10298 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10299 cat >>confdefs.h
<<\_ACEOF
10300 #define USE_ETHER_NTOHOST 1
10308 if test "$ac_cv_func_ether_ntohost" = yes -a \
10309 "$ac_cv_buggy_ether_ntohost" = "no"; then
10311 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10313 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10315 # Yes. Does it declare ether_ntohost()?
10317 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10318 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10319 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.
$ac_ext <<_ACEOF
10325 cat confdefs.h
>>conftest.
$ac_ext
10326 cat >>conftest.
$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <netinet/in.h>
10332 #include <arpa/inet.h>
10335 #include <net/if.h>
10336 #include <netinet/if_ether.h>
10342 #ifndef ether_ntohost
10343 char *p = (char *) ether_ntohost;
10350 rm -f conftest.
$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>conftest.er1
10354 grep -v '^ *+' conftest.er1
>conftest.err
10356 cat conftest.err
>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try
='test -z "$ac_c_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try
='test -s conftest.$ac_objext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 ac_cv_have_decl_ether_ntohost
=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.
$ac_ext >&5
10377 ac_cv_have_decl_ether_ntohost
=no
10379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10382 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10383 if test $ac_cv_have_decl_ether_ntohost = yes; then
10386 cat >>confdefs.h
<<\_ACEOF
10387 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10395 # Did that succeed?
10397 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10399 # No, how about <netinet/ether.h>, as on Linux?
10402 for ac_header
in netinet
/ether.h
10404 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406 echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10417 cat >conftest.
$ac_ext <<_ACEOF
10420 cat confdefs.h
>>conftest.
$ac_ext
10421 cat >>conftest.
$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10426 rm -f conftest.
$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10430 grep -v '^ *+' conftest.er1
>conftest.err
10432 cat conftest.err
>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try
='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try
='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_header_compiler
=yes
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.
$ac_ext >&5
10453 ac_header_compiler
=no
10455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457 echo "${ECHO_T}$ac_header_compiler" >&6
10459 # Is the header present?
10460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10462 cat >conftest.
$ac_ext <<_ACEOF
10465 cat confdefs.h
>>conftest.
$ac_ext
10466 cat >>conftest.
$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <$ac_header>
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1
>conftest.err
10475 cat conftest.err
>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev
/null
; then
10478 if test -s conftest.err
; then
10479 ac_cpp_err
=$ac_c_preproc_warn_flag
10480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10487 if test -z "$ac_cpp_err"; then
10488 ac_header_preproc
=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.
$ac_ext >&5
10493 ac_header_preproc
=no
10495 rm -f conftest.err conftest.
$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10497 echo "${ECHO_T}$ac_header_preproc" >&6
10499 # So? What about this header?
10500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10506 ac_header_preproc
=yes
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523 ## ------------------------------------------ ##
10524 ## Report this to the AC_PACKAGE_NAME lists. ##
10525 ## ------------------------------------------ ##
10528 sed "s/^/$as_me: WARNING: /" >&2
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 eval "$as_ac_Header=\$ac_header_preproc"
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543 cat >>confdefs.h
<<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551 if test "$ac_cv_header_netinet_ether_h" = yes; then
10553 # We have it - does it declare ether_ntohost()?
10554 # Unset ac_cv_have_decl_ether_ntohost so we don't
10555 # treat the previous failure as a cached value and
10556 # suppress the next test.
10558 unset ac_cv_have_decl_ether_ntohost
10559 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10560 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10561 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 cat >conftest.
$ac_ext <<_ACEOF
10567 cat confdefs.h
>>conftest.
$ac_ext
10568 cat >>conftest.
$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10571 #include <netinet/ether.h>
10577 #ifndef ether_ntohost
10578 char *p = (char *) ether_ntohost;
10585 rm -f conftest.
$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>conftest.er1
10589 grep -v '^ *+' conftest.er1
>conftest.err
10591 cat conftest.err
>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try
='test -z "$ac_c_werror_flag"
10595 || test ! -s conftest.err'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try
='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_have_decl_ether_ntohost
=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.
$ac_ext >&5
10612 ac_cv_have_decl_ether_ntohost
=no
10614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10617 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10618 if test $ac_cv_have_decl_ether_ntohost = yes; then
10621 cat >>confdefs.h
<<\_ACEOF
10622 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10631 # Is ether_ntohost() declared?
10633 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10635 # No, we'll have to declare it ourselves.
10636 # Do we have "struct ether_addr"?
10638 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10639 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10640 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.
$ac_ext <<_ACEOF
10646 cat confdefs.h
>>conftest.
$ac_ext
10647 cat >>conftest.
$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 #include <sys/types.h>
10651 #include <sys/socket.h>
10652 #include <netinet/in.h>
10653 #include <arpa/inet.h>
10656 #include <net/if.h>
10657 #include <netinet/if_ether.h>
10663 if ((struct ether_addr *) 0)
10665 if (sizeof (struct ether_addr))
10671 rm -f conftest.
$ac_objext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10673 (eval $ac_compile) 2>conftest.er1
10675 grep -v '^ *+' conftest.er1
>conftest.err
10677 cat conftest.err
>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try
='test -z "$ac_c_werror_flag"
10681 || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try
='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_struct_ether_addr
=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.
$ac_ext >&5
10698 ac_cv_type_struct_ether_addr
=no
10700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10703 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10704 if test $ac_cv_type_struct_ether_addr = yes; then
10706 cat >>confdefs.h
<<_ACEOF
10707 #define HAVE_STRUCT_ETHER_ADDR 1
10714 cat >>confdefs.h
<<\_ACEOF
10715 #define HAVE_DECL_ETHER_NTOHOST 0
10720 cat >>confdefs.h
<<\_ACEOF
10721 #define HAVE_DECL_ETHER_NTOHOST 1
10727 # libdlpi is needed for Solaris 11 and later.
10728 echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10729 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6
10730 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 ac_check_lib_save_LIBS
=$LIBS
10734 LIBS
="-ldlpi -L/lib $LIBS"
10735 cat >conftest.
$ac_ext <<_ACEOF
10738 cat confdefs.h
>>conftest.
$ac_ext
10739 cat >>conftest.
$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10757 rm -f conftest.
$ac_objext conftest
$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>conftest.er1
10761 grep -v '^ *+' conftest.er1
>conftest.err
10763 cat conftest.err
>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try
='test -z "$ac_c_werror_flag"
10767 || test ! -s conftest.err'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; } &&
10773 { ac_try
='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_lib_dlpi_dlpi_walk
=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10784 ac_cv_lib_dlpi_dlpi_walk
=no
10786 rm -f conftest.err conftest.
$ac_objext \
10787 conftest
$ac_exeext conftest.
$ac_ext
10788 LIBS
=$ac_check_lib_save_LIBS
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10791 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6
10792 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10793 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
10798 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10799 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10800 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 cat >conftest.
$ac_ext <<_ACEOF
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 # include <sys/types.h>
10811 # include <sys/socket.h>
10815 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10820 rm -f conftest.
$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try
='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try
='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_sockaddr_has_sa_len
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_sockaddr_has_sa_len
=no
10849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10853 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10854 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10855 cat >>confdefs.h
<<\_ACEOF
10856 #define HAVE_SOCKADDR_SA_LEN 1
10861 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
10862 missing_includes
=yes
10868 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
10870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 echo "$as_me:$LINENO: checking for $ac_func" >&5
10872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10873 if eval "test \"\${$as_ac_var+set}\" = set"; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10884 #define $ac_func innocuous_$ac_func
10886 /* System header to define __stub macros and hopefully few prototypes,
10887 which can conflict with char $ac_func (); below.
10888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10889 <limits.h> exists even on freestanding compilers. */
10892 # include <limits.h>
10894 # include <assert.h>
10899 /* Override any gcc2 internal prototype to avoid an error. */
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10907 /* The GNU C library defines this for functions which it implements
10908 to always fail with ENOSYS. Some functions are actually named
10909 something starting with __ and the normal name is an alias. */
10910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10913 char (*f) () = $ac_func;
10922 return f != $ac_func;
10927 rm -f conftest.
$ac_objext conftest
$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>conftest.er1
10931 grep -v '^ *+' conftest.er1
>conftest.err
10933 cat conftest.err
>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try
='test -z "$ac_c_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try
='test -s conftest$ac_exeext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 eval "$as_ac_var=yes"
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.
$ac_ext >&5
10954 eval "$as_ac_var=no"
10956 rm -f conftest.err conftest.
$ac_objext \
10957 conftest
$ac_exeext conftest.
$ac_ext
10959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10961 if test `eval echo '${'$as_ac_var'}'` = yes; then
10962 cat >>confdefs.h
<<_ACEOF
10963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10969 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10970 savedcflags
="$CFLAGS"
10971 CFLAGS
="$CFLAGS $V_INCLS"
10972 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10973 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10974 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 cat >conftest.
$ac_ext <<_ACEOF
10980 cat confdefs.h
>>conftest.
$ac_ext
10981 cat >>conftest.
$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10988 if ((pcap_if_t *) 0)
10990 if (sizeof (pcap_if_t))
10996 rm -f conftest.
$ac_objext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>conftest.er1
11000 grep -v '^ *+' conftest.er1
>conftest.err
11002 cat conftest.err
>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try
='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try
='test -s conftest.$ac_objext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_type_pcap_if_t
=yes
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.
$ac_ext >&5
11023 ac_cv_type_pcap_if_t
=no
11025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11027 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11028 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
11029 if test $ac_cv_type_pcap_if_t = yes; then
11031 cat >>confdefs.h
<<_ACEOF
11032 #define HAVE_PCAP_IF_T 1
11038 CFLAGS
="$savedcflags"
11041 if test $ac_cv_func_pcap_lib_version = "no" ; then
11042 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11043 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
11044 cat >conftest.
$ac_ext <<_ACEOF
11047 cat confdefs.h
>>conftest.
$ac_ext
11048 cat >>conftest.
$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11055 extern char pcap_version[];
11057 return (int)pcap_version;
11063 rm -f conftest.
$ac_objext conftest
$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>conftest.er1
11067 grep -v '^ *+' conftest.er1
>conftest.err
11069 cat conftest.err
>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try
='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try
='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_lbl_cv_pcap_version_defined
=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.
$ac_ext >&5
11090 ac_lbl_cv_pcap_version_defined
=no
11092 rm -f conftest.err conftest.
$ac_objext \
11093 conftest
$ac_exeext conftest.
$ac_ext
11094 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11095 echo "$as_me:$LINENO: result: yes" >&5
11096 echo "${ECHO_T}yes" >&6
11097 cat >>confdefs.h
<<\_ACEOF
11098 #define HAVE_PCAP_VERSION 1
11102 echo "$as_me:$LINENO: result: no" >&5
11103 echo "${ECHO_T}no" >&6
11106 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11107 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
11108 cat >conftest.
$ac_ext <<_ACEOF
11111 cat confdefs.h
>>conftest.
$ac_ext
11112 cat >>conftest.
$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11119 extern int pcap_debug;
11127 rm -f conftest.
$ac_objext conftest
$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>conftest.er1
11131 grep -v '^ *+' conftest.er1
>conftest.err
11133 cat conftest.err
>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try
='test -z "$ac_c_werror_flag"
11137 || test ! -s conftest.err'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try
='test -s conftest$ac_exeext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_lbl_cv_pcap_debug_defined
=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.
$ac_ext >&5
11154 ac_lbl_cv_pcap_debug_defined
=no
11156 rm -f conftest.err conftest.
$ac_objext \
11157 conftest
$ac_exeext conftest.
$ac_ext
11158 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11159 echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6
11161 cat >>confdefs.h
<<\_ACEOF
11162 #define HAVE_PCAP_DEBUG 1
11166 echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11169 # OK, what about "yydebug"?
11171 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11172 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11173 cat >conftest.
$ac_ext <<_ACEOF
11176 cat confdefs.h
>>conftest.
$ac_ext
11177 cat >>conftest.
$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11184 extern int yydebug;
11192 rm -f conftest.
$ac_objext conftest
$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1
>conftest.err
11198 cat conftest.err
>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try
='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try
='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_lbl_cv_yydebug_defined
=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.
$ac_ext >&5
11219 ac_lbl_cv_yydebug_defined
=no
11221 rm -f conftest.err conftest.
$ac_objext \
11222 conftest
$ac_exeext conftest.
$ac_ext
11223 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11224 echo "$as_me:$LINENO: result: yes" >&5
11225 echo "${ECHO_T}yes" >&6
11226 cat >>confdefs.h
<<\_ACEOF
11227 #define HAVE_YYDEBUG 1
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11236 for ac_func
in bpf_dump
11238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 echo "$as_me:$LINENO: checking for $ac_func" >&5
11240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_var+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.
$ac_ext <<_ACEOF
11247 cat confdefs.h
>>conftest.
$ac_ext
11248 cat >>conftest.
$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11252 #define $ac_func innocuous_$ac_func
11254 /* System header to define __stub macros and hopefully few prototypes,
11255 which can conflict with char $ac_func (); below.
11256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11257 <limits.h> exists even on freestanding compilers. */
11260 # include <limits.h>
11262 # include <assert.h>
11267 /* Override any gcc2 internal prototype to avoid an error. */
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11275 /* The GNU C library defines this for functions which it implements
11276 to always fail with ENOSYS. Some functions are actually named
11277 something starting with __ and the normal name is an alias. */
11278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11281 char (*f) () = $ac_func;
11290 return f != $ac_func;
11295 rm -f conftest.
$ac_objext conftest
$ac_exeext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297 (eval $ac_link) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1
>conftest.err
11301 cat conftest.err
>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try
='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try
='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_var=yes"
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.
$ac_ext >&5
11322 eval "$as_ac_var=no"
11324 rm -f conftest.err conftest.
$ac_objext \
11325 conftest
$ac_exeext conftest.
$ac_ext
11327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11329 if test `eval echo '${'$as_ac_var'}'` = yes; then
11330 cat >>confdefs.h
<<_ACEOF
11331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 "$ac_func.$ac_objext" | \
11337 *" $ac_func.$ac_objext" | \
11338 "$ac_func.$ac_objext "* | \
11339 *" $ac_func.$ac_objext "* ) ;;
11340 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
11348 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11354 cat >>confdefs.h
<<\_ACEOF
11373 if test -f /dev
/bpf0
; then
11378 for ac_header
in sys
/bitypes.h
11380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11382 echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11390 # Is the header compilable?
11391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11393 cat >conftest.
$ac_ext <<_ACEOF
11396 cat confdefs.h
>>conftest.
$ac_ext
11397 cat >>conftest.
$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 $ac_includes_default
11400 #include <$ac_header>
11402 rm -f conftest.
$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>conftest.er1
11406 grep -v '^ *+' conftest.er1
>conftest.err
11408 cat conftest.err
>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try
='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try
='test -s conftest.$ac_objext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_header_compiler
=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.
$ac_ext >&5
11429 ac_header_compiler
=no
11431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11433 echo "${ECHO_T}$ac_header_compiler" >&6
11435 # Is the header present?
11436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11438 cat >conftest.
$ac_ext <<_ACEOF
11441 cat confdefs.h
>>conftest.
$ac_ext
11442 cat >>conftest.
$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <$ac_header>
11446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11447 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11449 grep -v '^ *+' conftest.er1
>conftest.err
11451 cat conftest.err
>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev
/null
; then
11454 if test -s conftest.err
; then
11455 ac_cpp_err
=$ac_c_preproc_warn_flag
11456 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11463 if test -z "$ac_cpp_err"; then
11464 ac_header_preproc
=yes
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.
$ac_ext >&5
11469 ac_header_preproc
=no
11471 rm -f conftest.err conftest.
$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11473 echo "${ECHO_T}$ac_header_preproc" >&6
11475 # So? What about this header?
11476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11482 ac_header_preproc
=yes
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11499 ## ------------------------------------------ ##
11500 ## Report this to the AC_PACKAGE_NAME lists. ##
11501 ## ------------------------------------------ ##
11504 sed "s/^/$as_me: WARNING: /" >&2
11507 echo "$as_me:$LINENO: checking for $ac_header" >&5
11508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 eval "$as_ac_Header=\$ac_header_preproc"
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11519 cat >>confdefs.h
<<_ACEOF
11520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11528 echo "$as_me:$LINENO: checking for int8_t" >&5
11529 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11530 if test "${ac_cv_type_int8_t+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.
$ac_ext <<_ACEOF
11536 cat confdefs.h
>>conftest.
$ac_ext
11537 cat >>conftest.
$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11545 if (sizeof (int8_t))
11551 rm -f conftest.
$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1
>conftest.err
11557 cat conftest.err
>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try
='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try
='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_type_int8_t
=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 ac_cv_type_int8_t
=no
11580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11583 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11584 if test $ac_cv_type_int8_t = yes; then
11588 cat >>confdefs.h
<<\_ACEOF
11589 #define int8_t signed char
11594 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11595 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11596 if test "${ac_cv_type_u_int8_t+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 cat >conftest.
$ac_ext <<_ACEOF
11602 cat confdefs.h
>>conftest.
$ac_ext
11603 cat >>conftest.
$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #ifdef HAVE_SYS_BITYPES_H
11607 #include <sys/bitypes.h>
11613 if ((u_int8_t *) 0)
11615 if (sizeof (u_int8_t))
11621 rm -f conftest.
$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1
>conftest.err
11627 cat conftest.err
>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try
='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try
='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_type_u_int8_t
=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.
$ac_ext >&5
11648 ac_cv_type_u_int8_t
=no
11650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11654 if test $ac_cv_type_u_int8_t = yes; then
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define u_int8_t unsigned char
11664 echo "$as_me:$LINENO: checking for int16_t" >&5
11665 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11666 if test "${ac_cv_type_int16_t+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 cat >conftest.
$ac_ext <<_ACEOF
11672 cat confdefs.h
>>conftest.
$ac_ext
11673 cat >>conftest.
$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11681 if (sizeof (int16_t))
11687 rm -f conftest.
$ac_objext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11691 grep -v '^ *+' conftest.er1
>conftest.err
11693 cat conftest.err
>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try
='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try
='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_cv_type_int16_t
=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.
$ac_ext >&5
11714 ac_cv_type_int16_t
=no
11716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11719 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11720 if test $ac_cv_type_int16_t = yes; then
11724 cat >>confdefs.h
<<\_ACEOF
11725 #define int16_t short
11730 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11731 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11732 if test "${ac_cv_type_u_int16_t+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.
$ac_ext <<_ACEOF
11738 cat confdefs.h
>>conftest.
$ac_ext
11739 cat >>conftest.
$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 $ac_includes_default
11742 #ifdef HAVE_SYS_BITYPES_H
11743 #include <sys/bitypes.h>
11749 if ((u_int16_t *) 0)
11751 if (sizeof (u_int16_t))
11757 rm -f conftest.
$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1
>conftest.err
11763 cat conftest.err
>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try
='test -z "$ac_c_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try
='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_type_u_int16_t
=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.
$ac_ext >&5
11784 ac_cv_type_u_int16_t
=no
11786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11789 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11790 if test $ac_cv_type_u_int16_t = yes; then
11794 cat >>confdefs.h
<<\_ACEOF
11795 #define u_int16_t unsigned short
11800 echo "$as_me:$LINENO: checking for int32_t" >&5
11801 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11802 if test "${ac_cv_type_int32_t+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.
$ac_ext <<_ACEOF
11808 cat confdefs.h
>>conftest.
$ac_ext
11809 cat >>conftest.
$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11817 if (sizeof (int32_t))
11823 rm -f conftest.
$ac_objext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>conftest.er1
11827 grep -v '^ *+' conftest.er1
>conftest.err
11829 cat conftest.err
>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try
='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try
='test -s conftest.$ac_objext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_type_int32_t
=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.
$ac_ext >&5
11850 ac_cv_type_int32_t
=no
11852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11855 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11856 if test $ac_cv_type_int32_t = yes; then
11860 cat >>confdefs.h
<<\_ACEOF
11861 #define int32_t int
11866 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11867 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11868 if test "${ac_cv_type_u_int32_t+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 cat >conftest.
$ac_ext <<_ACEOF
11874 cat confdefs.h
>>conftest.
$ac_ext
11875 cat >>conftest.
$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 $ac_includes_default
11878 #ifdef HAVE_SYS_BITYPES_H
11879 #include <sys/bitypes.h>
11885 if ((u_int32_t *) 0)
11887 if (sizeof (u_int32_t))
11893 rm -f conftest.
$ac_objext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11897 grep -v '^ *+' conftest.er1
>conftest.err
11899 cat conftest.err
>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try
='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try
='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_type_u_int32_t
=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.
$ac_ext >&5
11920 ac_cv_type_u_int32_t
=no
11922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11924 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11925 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11926 if test $ac_cv_type_u_int32_t = yes; then
11930 cat >>confdefs.h
<<\_ACEOF
11931 #define u_int32_t unsigned int
11936 echo "$as_me:$LINENO: checking for int64_t" >&5
11937 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11938 if test "${ac_cv_type_int64_t+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 $ac_includes_default
11953 if (sizeof (int64_t))
11959 rm -f conftest.
$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11963 grep -v '^ *+' conftest.er1
>conftest.err
11965 cat conftest.err
>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try
='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try
='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_type_int64_t
=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.
$ac_ext >&5
11986 ac_cv_type_int64_t
=no
11988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11990 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11991 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11992 if test $ac_cv_type_int64_t = yes; then
11996 cat >>confdefs.h
<<\_ACEOF
11997 #define int64_t long long
12002 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12003 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12004 if test "${ac_cv_type_u_int64_t+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 cat >conftest.
$ac_ext <<_ACEOF
12010 cat confdefs.h
>>conftest.
$ac_ext
12011 cat >>conftest.
$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 $ac_includes_default
12014 #ifdef HAVE_SYS_BITYPES_H
12015 #include <sys/bitypes.h>
12021 if ((u_int64_t *) 0)
12023 if (sizeof (u_int64_t))
12029 rm -f conftest.
$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1
>conftest.err
12035 cat conftest.err
>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try
='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try
='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_type_u_int64_t
=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.
$ac_ext >&5
12056 ac_cv_type_u_int64_t
=no
12058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12060 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12061 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12062 if test $ac_cv_type_u_int64_t = yes; then
12066 cat >>confdefs.h
<<\_ACEOF
12067 #define u_int64_t unsigned long long
12074 # We can't just check for <inttypes.h> - some systems have one that
12075 # doesn't define all the PRI[doxu]64 macros.
12078 for ac_header
in inttypes.h
12080 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12082 echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12090 # Is the header compilable?
12091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12093 cat >conftest.
$ac_ext <<_ACEOF
12096 cat confdefs.h
>>conftest.
$ac_ext
12097 cat >>conftest.
$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 $ac_includes_default
12100 #include <$ac_header>
12102 rm -f conftest.
$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1
>conftest.err
12108 cat conftest.err
>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try
='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try
='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_header_compiler
=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.
$ac_ext >&5
12129 ac_header_compiler
=no
12131 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12133 echo "${ECHO_T}$ac_header_compiler" >&6
12135 # Is the header present?
12136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <$ac_header>
12146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1
>conftest.err
12151 cat conftest.err
>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev
/null
; then
12154 if test -s conftest.err
; then
12155 ac_cpp_err
=$ac_c_preproc_warn_flag
12156 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12163 if test -z "$ac_cpp_err"; then
12164 ac_header_preproc
=yes
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.
$ac_ext >&5
12169 ac_header_preproc
=no
12171 rm -f conftest.err conftest.
$ac_ext
12172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12173 echo "${ECHO_T}$ac_header_preproc" >&6
12175 # So? What about this header?
12176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12182 ac_header_preproc
=yes
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12199 ## ------------------------------------------ ##
12200 ## Report this to the AC_PACKAGE_NAME lists. ##
12201 ## ------------------------------------------ ##
12204 sed "s/^/$as_me: WARNING: /" >&2
12207 echo "$as_me:$LINENO: checking for $ac_header" >&5
12208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 eval "$as_ac_Header=\$ac_header_preproc"
12214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12219 cat >>confdefs.h
<<_ACEOF
12220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 # OK, we have inttypes.h, but does it define those macros?
12226 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12227 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12228 cat >conftest.
$ac_ext <<_ACEOF
12232 cat confdefs.h
>>conftest.
$ac_ext
12233 cat >>conftest.
$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 #include <inttypes.h>
12238 #include <sys/types.h>
12239 #ifdef HAVE_SYS_BITYPES_H
12240 #include <sys/bitypes.h>
12245 printf("%" PRId64 "\n", (u_int64_t)1);
12246 printf("%" PRIo64 "\n", (u_int64_t)1);
12247 printf("%" PRIx64 "\n", (u_int64_t)1);
12248 printf("%" PRIu64 "\n", (u_int64_t)1);
12253 rm -f conftest.
$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>conftest.er1
12257 grep -v '^ *+' conftest.er1
>conftest.err
12259 cat conftest.err
>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try
='test -z "$ac_c_werror_flag"
12263 || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try
='test -s conftest.$ac_objext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12276 echo "$as_me:$LINENO: result: yes" >&5
12277 echo "${ECHO_T}yes" >&6
12278 ac_lbl_inttypes_h_defines_formats
=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.
$ac_ext >&5
12285 echo "$as_me:$LINENO: result: no" >&5
12286 echo "${ECHO_T}no" >&6
12287 ac_lbl_inttypes_h_defines_formats
=no
12290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12295 # We don't have inttypes.h, so it obviously can't define those
12298 ac_lbl_inttypes_h_defines_formats
=no
12304 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
12306 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12307 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12308 if test "$cross_compiling" = yes; then
12309 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12310 See \`config.log' for more details." >&5
12311 echo "$as_me: error: cannot run test program while cross compiling
12312 See \`config.log' for more details." >&2;}
12313 { (exit 1); exit 1; }; }
12315 cat >conftest.
$ac_ext <<_ACEOF
12319 cat confdefs.h
>>conftest.
$ac_ext
12320 cat >>conftest.
$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 # ifdef HAVE_INTTYPES_H
12324 #include <inttypes.h>
12326 # ifdef HAVE_SYS_BITYPES_H
12327 #include <sys/bitypes.h>
12330 #include <sys/types.h>
12336 sprintf(strbuf, "%016lx", t << 32);
12337 if (strcmp(strbuf, "0000000100000000") == 0)
12345 rm -f conftest
$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12357 cat >>confdefs.h
<<\_ACEOF
12358 #define PRId64 "ld"
12361 cat >>confdefs.h
<<\_ACEOF
12362 #define PRIo64 "lo"
12365 cat >>confdefs.h
<<\_ACEOF
12366 #define PRIx64 "lx"
12369 cat >>confdefs.h
<<\_ACEOF
12370 #define PRIu64 "lu"
12373 echo "$as_me:$LINENO: result: yes" >&5
12374 echo "${ECHO_T}yes" >&6
12377 echo "$as_me: program exited with status $ac_status" >&5
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.
$ac_ext >&5
12381 ( exit $ac_status )
12383 echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6
12387 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12388 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12389 if test "$cross_compiling" = yes; then
12390 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12391 See \`config.log' for more details." >&5
12392 echo "$as_me: error: cannot run test program while cross compiling
12393 See \`config.log' for more details." >&2;}
12394 { (exit 1); exit 1; }; }
12396 cat >conftest.
$ac_ext <<_ACEOF
12400 cat confdefs.h
>>conftest.
$ac_ext
12401 cat >>conftest.
$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12404 # ifdef HAVE_INTTYPES_H
12405 #include <inttypes.h>
12407 # ifdef HAVE_SYS_BITYPES_H
12408 #include <sys/bitypes.h>
12411 #include <sys/types.h>
12417 sprintf(strbuf, "%016llx", t << 32);
12418 if (strcmp(strbuf, "0000000100000000") == 0)
12426 rm -f conftest
$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12438 cat >>confdefs.h
<<\_ACEOF
12439 #define PRId64 "lld"
12442 cat >>confdefs.h
<<\_ACEOF
12443 #define PRIo64 "llo"
12446 cat >>confdefs.h
<<\_ACEOF
12447 #define PRIx64 "llx"
12450 cat >>confdefs.h
<<\_ACEOF
12451 #define PRIu64 "llu"
12454 echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6
12458 echo "$as_me: program exited with status $ac_status" >&5
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.
$ac_ext >&5
12462 ( exit $ac_status )
12464 echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12468 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12469 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12470 if test "$cross_compiling" = yes; then
12471 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12472 See \`config.log' for more details." >&5
12473 echo "$as_me: error: cannot run test program while cross compiling
12474 See \`config.log' for more details." >&2;}
12475 { (exit 1); exit 1; }; }
12477 cat >conftest.
$ac_ext <<_ACEOF
12481 cat confdefs.h
>>conftest.
$ac_ext
12482 cat >>conftest.
$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 # ifdef HAVE_INTTYPES_H
12486 #include <inttypes.h>
12488 # ifdef HAVE_SYS_BITYPES_H
12489 #include <sys/bitypes.h>
12492 #include <sys/types.h>
12498 sprintf(strbuf, "%016Lx", t << 32);
12499 if (strcmp(strbuf, "0000000100000000") == 0)
12507 rm -f conftest
$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12519 cat >>confdefs.h
<<\_ACEOF
12520 #define PRId64 "Ld"
12523 cat >>confdefs.h
<<\_ACEOF
12524 #define PRIo64 "Lo"
12527 cat >>confdefs.h
<<\_ACEOF
12528 #define PRIx64 "Lx"
12531 cat >>confdefs.h
<<\_ACEOF
12532 #define PRIu64 "Lu"
12535 echo "$as_me:$LINENO: result: yes" >&5
12536 echo "${ECHO_T}yes" >&6
12539 echo "$as_me: program exited with status $ac_status" >&5
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.
$ac_ext >&5
12543 ( exit $ac_status )
12545 echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6
12549 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12550 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12551 if test "$cross_compiling" = yes; then
12552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12553 See \`config.log' for more details." >&5
12554 echo "$as_me: error: cannot run test program while cross compiling
12555 See \`config.log' for more details." >&2;}
12556 { (exit 1); exit 1; }; }
12558 cat >conftest.
$ac_ext <<_ACEOF
12562 cat confdefs.h
>>conftest.
$ac_ext
12563 cat >>conftest.
$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 # ifdef HAVE_INTTYPES_H
12567 #include <inttypes.h>
12569 # ifdef HAVE_SYS_BITYPES_H
12570 #include <sys/bitypes.h>
12573 #include <sys/types.h>
12579 sprintf(strbuf, "%016qx", t << 32);
12580 if (strcmp(strbuf, "0000000100000000") == 0)
12588 rm -f conftest
$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590 (eval $ac_link) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12600 cat >>confdefs.h
<<\_ACEOF
12601 #define PRId64 "qd"
12604 cat >>confdefs.h
<<\_ACEOF
12605 #define PRIo64 "qo"
12608 cat >>confdefs.h
<<\_ACEOF
12609 #define PRIx64 "qx"
12612 cat >>confdefs.h
<<\_ACEOF
12613 #define PRIu64 "qu"
12616 echo "$as_me:$LINENO: result: yes" >&5
12617 echo "${ECHO_T}yes" >&6
12620 echo "$as_me: program exited with status $ac_status" >&5
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.
$ac_ext >&5
12624 ( exit $ac_status )
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12629 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12630 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12631 { (exit 1); exit 1; }; }
12635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12641 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12647 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12653 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12658 if test -n "$ac_tool_prefix"; then
12659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12660 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
12661 echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12663 if test "${ac_cv_prog_RANLIB+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 if test -n "$RANLIB"; then
12667 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
12669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12670 for as_dir
in $PATH
12673 test -z "$as_dir" && as_dir
=.
12674 for ac_exec_ext
in '' $ac_executable_extensions; do
12675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
12677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 RANLIB
=$ac_cv_prog_RANLIB
12686 if test -n "$RANLIB"; then
12687 echo "$as_me:$LINENO: result: $RANLIB" >&5
12688 echo "${ECHO_T}$RANLIB" >&6
12690 echo "$as_me:$LINENO: result: no" >&5
12691 echo "${ECHO_T}no" >&6
12695 if test -z "$ac_cv_prog_RANLIB"; then
12696 ac_ct_RANLIB
=$RANLIB
12697 # Extract the first word of "ranlib", so it can be a program name with args.
12698 set dummy ranlib
; ac_word
=$2
12699 echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 if test -n "$ac_ct_RANLIB"; then
12705 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
12707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12708 for as_dir
in $PATH
12711 test -z "$as_dir" && as_dir
=.
12712 for ac_exec_ext
in '' $ac_executable_extensions; do
12713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714 ac_cv_prog_ac_ct_RANLIB
="ranlib"
12715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
12724 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
12725 if test -n "$ac_ct_RANLIB"; then
12726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12729 echo "$as_me:$LINENO: result: no" >&5
12730 echo "${ECHO_T}no" >&6
12733 RANLIB
=$ac_ct_RANLIB
12735 RANLIB
="$ac_cv_prog_RANLIB"
12740 if test "${LBL_CFLAGS+set}" = set; then
12741 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
12743 if test -f .devel
; then
12744 if test "$GCC" = yes ; then
12745 if test "${LBL_CFLAGS+set}" != set; then
12746 if test "$ac_cv_prog_cc_g" = yes ; then
12747 V_CCOPT
="-g $V_CCOPT"
12749 V_CCOPT
="$V_CCOPT -Wall"
12750 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12751 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12758 V_CCOPT
="$V_CCOPT -n32"
12765 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12766 name
="lbl/os-$os.h"
12767 if test -f $name ; then
12768 ln -s $name os-proto.h
12769 cat >>confdefs.h
<<\_ACEOF
12770 #define HAVE_OS_PROTO_H 1
12774 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12775 echo "$as_me: WARNING: can't find $name" >&2;}
12779 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12780 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12781 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 cat >conftest.
$ac_ext <<_ACEOF
12787 cat confdefs.h
>>conftest.
$ac_ext
12788 cat >>conftest.
$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 # include <sys/types.h>
12792 # include <sys/socket.h>
12796 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12801 rm -f conftest.
$ac_objext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803 (eval $ac_compile) 2>conftest.er1
12805 grep -v '^ *+' conftest.er1
>conftest.err
12807 cat conftest.err
>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try
='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try
='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lbl_sockaddr_has_sa_len
=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.
$ac_ext >&5
12828 ac_cv_lbl_sockaddr_has_sa_len
=no
12830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12833 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12834 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12835 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12836 cat >>confdefs.h
<<\_ACEOF
12837 #define HAVE_SOCKADDR_SA_LEN 1
12842 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12843 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12844 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 case "$host_cpu" in
12850 # These are CPU types where:
12852 # the CPU faults on an unaligned access, but at least some
12853 # OSes that support that CPU catch the fault and simulate
12854 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12855 # the simulation is slow, so we don't want to use it;
12857 # the CPU, I infer (from the old
12859 # XXX: should also check that they don't do weird things (like on arm)
12861 # comment) doesn't fault on unaligned accesses, but doesn't
12862 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12864 # for whatever reason, the test program doesn't work
12865 # (this has been claimed to be the case for several of those
12866 # CPUs - I don't know what the problem is; the problem
12867 # was reported as "the test program dumps core" for SuperH,
12868 # but that's what the test program is *supposed* to do -
12869 # it dumps core before it writes anything, so the test
12870 # for an empty output file should find an empty output
12871 # file and conclude that unaligned accesses don't work).
12873 # This run-time test won't work if you're cross-compiling, so
12874 # in order to support cross-compiling for a particular CPU,
12875 # we have to wire in the list of CPU types anyway, as far as
12876 # I know, so perhaps we should just have a set of CPUs on
12877 # which we know it doesn't work, a set of CPUs on which we
12878 # know it does work, and have the script just fail on other
12879 # cpu types and update it when such a failure occurs.
12881 alpha
*|arm
*|bfin
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
12882 ac_cv_lbl_unaligned_fail
=yes
12886 cat >conftest.c
<<EOF
12887 # include <sys/types.h>
12888 # include <sys/wait.h>
12889 # include <stdio.h>
12890 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12895 /* avoid "core dumped" message */
12901 pid = waitpid(pid, &status, 0);
12904 exit(!WIFEXITED(status));
12907 i = *(unsigned int *)&a[1];
12912 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
12913 conftest.c
$LIBS >/dev
/null
2>&1
12914 if test ! -x conftest
; then
12915 ac_cv_lbl_unaligned_fail
=yes
12917 .
/conftest
>conftest.out
12918 if test ! -s conftest.out
; then
12919 ac_cv_lbl_unaligned_fail
=yes
12921 ac_cv_lbl_unaligned_fail
=no
12924 rm -f conftest
* core core.conftest
12929 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12930 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
12931 if test $ac_cv_lbl_unaligned_fail = yes ; then
12932 cat >>confdefs.h
<<\_ACEOF
12933 #define LBL_ALIGN 1
12939 echo "$as_me:$LINENO: checking for h_errno" >&5
12940 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12941 if test "${ac_cv_var_h_errno+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 cat >conftest.
$ac_ext <<_ACEOF
12947 cat confdefs.h
>>conftest.
$ac_ext
12948 cat >>conftest.
$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 # include <sys/types.h>
12952 # include <netdb.h>
12961 rm -f conftest.
$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12965 grep -v '^ *+' conftest.er1
>conftest.err
12967 cat conftest.err
>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try
='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try
='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_var_h_errno
=yes
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.
$ac_ext >&5
12988 ac_cv_var_h_errno
=no
12990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12993 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12994 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12995 if test "$ac_cv_var_h_errno" = "yes"; then
12996 cat >>confdefs.h
<<\_ACEOF
12997 #define HAVE_H_ERRNO 1
13004 echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13005 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6
13006 # Specify location for both includes and libraries.
13007 want_libcrypto
=youmama
13009 # Check whether --with-crypto or --without-crypto was given.
13010 if test "${with_crypto+set}" = set; then
13011 withval
="$with_crypto"
13013 if test $withval = no
13016 echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6
13018 elif test $withval = yes
13021 echo "$as_me:$LINENO: result: yes" >&5
13022 echo "${ECHO_T}yes" >&6
13025 echo "$as_me:$LINENO: result: yes" >&5
13026 echo "${ECHO_T}yes" >&6
13027 crypto_dir
=$withval
13033 # Use libcrypto if it's present, otherwise don't.
13035 want_libcrypto
=ifavailable
13036 echo "$as_me:$LINENO: result: yes, if available" >&5
13037 echo "${ECHO_T}yes, if available" >&6
13040 if test "$want_libcrypto" != "no"; then
13041 ac_cv_ssleay_path
=no
13043 if test "x$crypto_dir" = x
; then
13045 # Location not specified; check the default locations.
13047 echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13048 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6
13049 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13050 if test "x${host_alias}" != x
; then
13051 dirs="/usr/${host_alias} $dirs"
13053 for dir
in $dirs; do
13056 # XXX - is there a better way to check if a given library is
13057 # in a given directory than checking each of the possible
13058 # shared library suffixes?
13060 # Are there any other suffixes we need to look for? Do we
13061 # have to worry about ".so.{version}"?
13063 # Or should we just look for "libcrypto.*"?
13065 if test -d "$dir/lib" -a \
( -f "$dir/lib/libcrypto.a" -o \
13066 -f "$dir/lib/libcrypto.so" -o \
13067 -f "$dir/lib/libcrypto.sl" -o \
13068 -f "$dir/lib/libcrypto.dylib" \
); then
13069 ac_cv_ssleay_path
="$dir"
13073 # Make sure we have the headers as well.
13075 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13076 incdir
="-I$dir/include"
13080 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13083 ac_cv_ssleay_path
=no
13087 if test "$ac_cv_ssleay_path" != no
; then
13088 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13089 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
13092 echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13093 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6
13096 # XXX - is there a better way to check if a given library is
13097 # in a given directory than checking each of the possible
13098 # shared library suffixes?
13100 # Are there any other suffixes we need to look for? Do we
13101 # have to worry about ".so.{version}"?
13103 # Or should we just look for "libcrypto.*"?
13105 if test -d "$crypto_dir/lib" -a \
( -f "$crypto_dir/lib/libcrypto.a" -o \
13106 -f "$crypto_dir/lib/libcrypto.so" -o \
13107 -f "$crypto_dir/lib/libcrypto.sl" -o \
13108 -f "$crypto_dir/lib/libcrypto.dylib" \
); then
13109 ac_cv_ssleay_path
="$crypto_dir"
13113 # Make sure we have the headers as well.
13115 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13116 incdir
="-I$crypto_dir/include"
13119 if test "$ac_cv_ssleay_path" != no
; then
13120 echo "$as_me:$LINENO: result: found" >&5
13121 echo "${ECHO_T}found" >&6
13124 if test "$ac_cv_ssleay_path" != no
; then
13125 V_INCLS
="$V_INCLS $incdir"
13126 LDFLAGS
="-L$dir/lib $LDFLAGS"
13127 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
13128 LIBS
="$LIBS -lRSAglue"
13130 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
13131 LIBS
="$LIBS -lrsaref"
13134 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13135 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13136 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 ac_check_lib_save_LIBS
=$LIBS
13140 LIBS
="-lcrypto $LIBS"
13141 cat >conftest.
$ac_ext <<_ACEOF
13144 cat confdefs.h
>>conftest.
$ac_ext
13145 cat >>conftest.
$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13148 /* Override any gcc2 internal prototype to avoid an error. */
13152 /* We use char because int might match the return type of a gcc2
13153 builtin and then its argument prototype would still apply. */
13154 char DES_cbc_encrypt ();
13158 DES_cbc_encrypt ();
13163 rm -f conftest.
$ac_objext conftest
$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13167 grep -v '^ *+' conftest.er1
>conftest.err
13169 cat conftest.err
>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try
='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try
='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.
$ac_ext >&5
13190 ac_cv_lib_crypto_DES_cbc_encrypt
=no
13192 rm -f conftest.err conftest.
$ac_objext \
13193 conftest
$ac_exeext conftest.
$ac_ext
13194 LIBS
=$ac_check_lib_save_LIBS
13196 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13197 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
13198 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13199 cat >>confdefs.h
<<_ACEOF
13200 #define HAVE_LIBCRYPTO 1
13203 LIBS
="-lcrypto $LIBS"
13208 CPPFLAGS
="$CPPFLAGS $V_INCLS"
13210 for ac_header
in openssl
/evp.h
13212 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13214 echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13222 # Is the header compilable?
13223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13225 cat >conftest.
$ac_ext <<_ACEOF
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <$ac_header>
13234 rm -f conftest.
$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13238 grep -v '^ *+' conftest.er1
>conftest.err
13240 cat conftest.err
>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try
='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try
='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_header_compiler
=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.
$ac_ext >&5
13261 ac_header_compiler
=no
13263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265 echo "${ECHO_T}$ac_header_compiler" >&6
13267 # Is the header present?
13268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13270 cat >conftest.
$ac_ext <<_ACEOF
13273 cat confdefs.h
>>conftest.
$ac_ext
13274 cat >>conftest.
$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <$ac_header>
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13281 grep -v '^ *+' conftest.er1
>conftest.err
13283 cat conftest.err
>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } >/dev
/null
; then
13286 if test -s conftest.err
; then
13287 ac_cpp_err
=$ac_c_preproc_warn_flag
13288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13295 if test -z "$ac_cpp_err"; then
13296 ac_header_preproc
=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.
$ac_ext >&5
13301 ac_header_preproc
=no
13303 rm -f conftest.err conftest.
$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc
=yes
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13331 ## ------------------------------------------ ##
13332 ## Report this to the AC_PACKAGE_NAME lists. ##
13333 ## ------------------------------------------ ##
13336 sed "s/^/$as_me: WARNING: /" >&2
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 eval "$as_ac_Header=\$ac_header_preproc"
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13351 cat >>confdefs.h
<<_ACEOF
13352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13361 # Not found. Did the user explicitly ask for it?
13363 echo "$as_me:$LINENO: result: not found" >&5
13364 echo "${ECHO_T}not found" >&6
13365 if test "$want_libcrypto" = yes; then
13366 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13367 echo "$as_me: error: SSLeay not found" >&2;}
13368 { (exit 1); exit 1; }; }
13373 if test "$missing_includes" = "yes"; then
13374 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
13375 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
13385 # Find a good install program. We prefer a C program (faster),
13386 # so one script is as good as another. But avoid the broken or
13387 # incompatible versions:
13388 # SysV /etc/install, /usr/sbin/install
13389 # SunOS /usr/etc/install
13390 # IRIX /sbin/install
13392 # AmigaOS /C/install, which installs bootblocks on floppy discs
13393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13396 # OS/2's system install, which has a completely different semantic
13397 # ./install, which can be erroneously created by make from ./install.sh.
13398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13400 if test -z "$INSTALL"; then
13401 if test "${ac_cv_path_install+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13405 for as_dir
in $PATH
13408 test -z "$as_dir" && as_dir
=.
13409 # Account for people who put trailing slashes in PATH elements.
13411 .
/ | .
// |
/cC
/* | \
13412 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13413 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
13416 # OSF1 and SCO ODT 3.0 have their own names for install.
13417 # Don't use installbsd from OSF since it installs stuff as root
13419 for ac_prog
in ginstall scoinst
install; do
13420 for ac_exec_ext
in '' $ac_executable_extensions; do
13421 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13422 if test $ac_prog = install &&
13423 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13424 # AIX install. It has an incompatible calling convention.
13426 elif test $ac_prog = install &&
13427 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13428 # program-specific install script used by HP pwplus--don't use.
13431 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13443 if test "${ac_cv_path_install+set}" = set; then
13444 INSTALL
=$ac_cv_path_install
13446 # As a last resort, use the slow shell script. We don't cache a
13447 # path for INSTALL within a source directory, because that will
13448 # break other packages using the cache if that directory is
13449 # removed, or if the path is relative.
13450 INSTALL
=$ac_install_sh
13453 echo "$as_me:$LINENO: result: $INSTALL" >&5
13454 echo "${ECHO_T}$INSTALL" >&6
13456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13457 # It thinks the first close brace ends the variable substitution.
13458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13462 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13465 ac_config_headers
="$ac_config_headers config.h"
13468 ac_config_commands
="$ac_config_commands default-1"
13470 ac_config_files
="$ac_config_files Makefile"
13471 cat >confcache
<<\_ACEOF
13472 # This file is a shell script that caches the results of configure
13473 # tests run on this system so they can be shared between configure
13474 # scripts and configure runs, see configure's option --config-cache.
13475 # It is not useful on other systems. If it contains results you don't
13476 # want to keep, you may remove or edit it.
13478 # config.status only pays attention to the cache file if you give it
13479 # the --recheck option to rerun configure.
13481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13483 # following values.
13487 # The following way of writing the cache mishandles newlines in values,
13488 # but we know of no workaround that is simple, portable, and efficient.
13489 # So, don't put newlines in cache variables' values.
13490 # Ultrix sh set writes to stderr and can't be redirected directly,
13491 # and sets the high bit in the cache file unless we assign to the vars.
13494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13496 # `set' does not quote correctly, so add quotes (double-quote
13497 # substitution turns \\\\ into \\, and sed turns \\ into \).
13500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13503 # `set' quotes correctly as required by POSIX, so do not add quotes.
13505 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13514 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13516 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
13517 if test -w $cache_file; then
13518 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13519 cat confcache
>$cache_file
13521 echo "not updating unwritable cache $cache_file"
13526 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13527 # Let make expand exec_prefix.
13528 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13532 # trailing colons and then remove the whole line if VPATH becomes empty
13533 # (actually we leave an empty line to preserve line numbers).
13534 if test "x$srcdir" = x.
; then
13535 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13536 s/:*\$(srcdir):*/:/;
13537 s/:*\${srcdir}:*/:/;
13539 s/^\([^=]*=[ ]*\):*/\1/;
13545 DEFS
=-DHAVE_CONFIG_H
13549 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13550 # 1. Remove the extension, and $U if already installed.
13551 ac_i
=`echo "$ac_i" |
13552 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13554 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
13555 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
13557 LIBOBJS
=$ac_libobjs
13559 LTLIBOBJS
=$ac_ltlibobjs
13563 : ${CONFIG_STATUS=./config.status}
13564 ac_clean_files_save
=$ac_clean_files
13565 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13566 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13567 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13568 cat >$CONFIG_STATUS <<_ACEOF
13570 # Generated by $as_me.
13571 # Run this file to recreate the current configuration.
13572 # Compiler output produced by configure, useful for debugging
13573 # configure, is in config.log if it exists.
13576 ac_cs_recheck=false
13578 SHELL=\${CONFIG_SHELL-$SHELL}
13581 cat >>$CONFIG_STATUS <<\_ACEOF
13582 ## --------------------- ##
13583 ## M4sh Initialization. ##
13584 ## --------------------- ##
13586 # Be Bourne compatible
13587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13590 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13591 # is contrary to our usage. Disable this feature.
13592 alias -g '${1+"$@"}'='"$@"'
13593 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13596 DUALCASE
=1; export DUALCASE
# for MKS sh
13598 # Support unset when possible.
13599 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13606 # Work around bugs in pre-3.0 UWIN ksh.
13607 $as_unset ENV MAIL MAILPATH
13614 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13615 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13616 LC_TELEPHONE LC_TIME
13618 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13619 eval $as_var=C
; export $as_var
13625 # Required to use basename.
13626 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13632 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13633 as_basename
=basename
13639 # Name of the executable.
13640 as_me
=`$as_basename "$0" ||
13641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13642 X"$0" : 'X\(//\)$' \| \
13643 X"$0" : 'X\(/\)$' \| \
13644 . : '\(.\)' 2>/dev/null ||
13646 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13647 /^X\/\(\/\/\)$/{ s//\1/; q; }
13648 /^X\/\(\/\).*/{ s//\1/; q; }
13652 # PATH needs CR, and LINENO needs CR and PATH.
13653 # Avoid depending upon Character Ranges.
13654 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13655 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13656 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13657 as_cr_digits
='0123456789'
13658 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13660 # The user is always right.
13661 if test "${PATH_SEPARATOR+set}" != set; then
13662 echo "#! /bin/sh" >conf$$.sh
13663 echo "exit 0" >>conf$$.sh
13665 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13674 as_lineno_1
=$LINENO
13675 as_lineno_2
=$LINENO
13676 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13677 test "x$as_lineno_1" != "x$as_lineno_2" &&
13678 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13679 # Find who we are. Look in the path if we contain no path at all
13682 *[\\/]* ) as_myself
=$0 ;;
13683 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13684 for as_dir
in $PATH
13687 test -z "$as_dir" && as_dir
=.
13688 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13693 # We did not find ourselves, most probably we were run as `sh COMMAND'
13694 # in which case we are not to be found in the path.
13695 if test "x$as_myself" = x
; then
13698 if test ! -f "$as_myself"; then
13699 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13700 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13701 { (exit 1); exit 1; }; }
13703 case $CONFIG_SHELL in
13705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13706 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13709 test -z "$as_dir" && as_dir
=.
13710 for as_base
in sh bash ksh sh5
; do
13713 if ("$as_dir/$as_base" -c '
13714 as_lineno_1=$LINENO
13715 as_lineno_2=$LINENO
13716 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13717 test "x$as_lineno_1" != "x$as_lineno_2" &&
13718 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13719 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13720 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13721 CONFIG_SHELL
=$as_dir/$as_base
13722 export CONFIG_SHELL
13723 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13731 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13732 # uniformly replaced by the line number. The first 'sed' inserts a
13733 # line-number line before each line; the second 'sed' does the real
13734 # work. The second script uses 'N' to pair each line-number line
13735 # with the numbered line, and appends trailing '-' during
13736 # substitution so that $LINENO is not a special case at line end.
13737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13738 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13739 sed '=' <$as_myself |
13744 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13747 s,^['$as_cr_digits']*\n,,
13748 ' >$as_me.lineno
&&
13749 chmod +x
$as_me.lineno ||
13750 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13751 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13752 { (exit 1); exit 1; }; }
13754 # Don't try to exec as it changes $[0], causing all sort of problems
13755 # (the dirname of $[0] is not the place where we might find the
13756 # original and so on. Autoconf is especially sensible to this).
13758 # Exit status is that of the last command.
13763 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13764 *c
*,-n*) ECHO_N
= ECHO_C
='
13766 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13767 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13770 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13776 rm -f conf$$ conf$$.exe conf$$.
file
13778 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13779 # We could just check for DJGPP; but this test a) works b) is more generic
13780 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13781 if test -f conf$$.exe
; then
13782 # Don't use ln at all; we don't have any links
13787 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13792 rm -f conf$$ conf$$.exe conf$$.
file
13794 if mkdir
-p .
2>/dev
/null
; then
13797 test -d .
/-p && rmdir .
/-p
13801 as_executable_p
="test -f"
13803 # Sed expression to map a string onto a valid CPP name.
13804 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13806 # Sed expression to map a string onto a valid variable name.
13807 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13811 # We need space, tab and new line, in precisely that order.
13821 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13822 # report actual input values of CONFIG_FILES etc. instead of their
13823 # values after options handling. Logging --version etc. is OK.
13827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13828 ## Running $as_me. ##
13833 This file was extended by $as_me, which was
13834 generated by GNU Autoconf 2.59. Invocation command line was
13836 CONFIG_FILES = $CONFIG_FILES
13837 CONFIG_HEADERS = $CONFIG_HEADERS
13838 CONFIG_LINKS = $CONFIG_LINKS
13839 CONFIG_COMMANDS = $CONFIG_COMMANDS
13843 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13847 # Files that config.status was made for.
13848 if test -n "$ac_config_files"; then
13849 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13852 if test -n "$ac_config_headers"; then
13853 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13856 if test -n "$ac_config_links"; then
13857 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13860 if test -n "$ac_config_commands"; then
13861 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13864 cat >>$CONFIG_STATUS <<\_ACEOF
13867 \`$as_me' instantiates files from templates according to the
13868 current configuration.
13870 Usage: $0 [OPTIONS] [FILE]...
13872 -h, --help print this help, then exit
13873 -V, --version print version number, then exit
13874 -q, --quiet do not print progress messages
13875 -d, --debug don't remove temporary files
13876 --recheck update $as_me by reconfiguring in the same conditions
13877 --file=FILE[:TEMPLATE]
13878 instantiate the configuration file FILE
13879 --header=FILE[:TEMPLATE]
13880 instantiate the configuration header FILE
13882 Configuration files:
13885 Configuration headers:
13888 Configuration commands:
13891 Report bugs to <bug-autoconf@gnu.org>."
13894 cat >>$CONFIG_STATUS <<_ACEOF
13897 configured by $0, generated by GNU Autoconf 2.59,
13898 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13900 Copyright (C) 2003 Free Software Foundation, Inc.
13901 This config.status script is free software; the Free Software Foundation
13902 gives unlimited permission to copy, distribute and modify it."
13907 cat >>$CONFIG_STATUS <<\_ACEOF
13908 # If no file are specified by the user, then we need to provide default
13909 # value. By we need to know if files were specified by the user.
13915 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13916 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13924 *) # This is not an option, so the user has probably given explicit
13927 ac_need_defaults
=false
;;
13931 # Handling of the options.
13933 cat >>$CONFIG_STATUS <<\_ACEOF
13934 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13936 --version |
--vers* |
-V )
13937 echo "$ac_cs_version"; exit 0 ;;
13939 # Conflict between --help and --header
13940 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13941 Try \`$0 --help' for more information." >&5
13942 echo "$as_me: error: ambiguous option: $1
13943 Try \`$0 --help' for more information." >&2;}
13944 { (exit 1); exit 1; }; };;
13945 --help |
--hel |
-h )
13946 echo "$ac_cs_usage"; exit 0 ;;
13947 --debug |
--d* |
-d )
13949 --file |
--fil |
--fi |
--f )
13951 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13952 ac_need_defaults
=false
;;
13953 --header |
--heade |
--head |
--hea )
13955 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13956 ac_need_defaults
=false
;;
13957 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13958 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13961 # This is an error.
13962 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13963 Try \`$0 --help' for more information." >&5
13964 echo "$as_me: error: unrecognized option: $1
13965 Try \`$0 --help' for more information." >&2;}
13966 { (exit 1); exit 1; }; } ;;
13968 *) ac_config_targets
="$ac_config_targets $1" ;;
13974 ac_configure_extra_args
=
13976 if $ac_cs_silent; then
13978 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13982 cat >>$CONFIG_STATUS <<_ACEOF
13983 if \$ac_cs_recheck; then
13984 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13985 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13990 cat >>$CONFIG_STATUS <<_ACEOF
13992 # INIT-COMMANDS section.
14001 cat >>$CONFIG_STATUS <<\_ACEOF
14002 for ac_config_target
in $ac_config_targets
14004 case "$ac_config_target" in
14005 # Handling of arguments.
14006 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14007 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14008 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14011 { (exit 1); exit 1; }; };;
14015 # If the user did not use the arguments to specify the items to instantiate,
14016 # then the envvar interface is used. Set only those that are not.
14017 # We use the long form for the default assignment because of an extremely
14018 # bizarre bug on SunOS 4.1.3.
14019 if $ac_need_defaults; then
14020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14025 # Have a temporary directory for convenience. Make it in the build tree
14026 # simply because there is no reason to put it here, and in addition,
14027 # creating and moving files from /tmp can sometimes cause problems.
14028 # Create a temporary directory, and hook for its removal unless debugging.
14031 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14032 trap '{ (exit 1); exit 1; }' 1 2 13 15
14035 # Create a (secure) tmp directory for tmp files.
14038 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14039 test -n "$tmp" && test -d "$tmp"
14042 tmp
=.
/confstat$$
-$RANDOM
14043 (umask 077 && mkdir
$tmp)
14046 echo "$me: cannot create a temporary directory in ." >&2
14047 { (exit 1); exit 1; }
14052 cat >>$CONFIG_STATUS <<_ACEOF
14055 # CONFIG_FILES section.
14058 # No need to generate the scripts if there are no CONFIG_FILES.
14059 # This happens for instance when ./config.status config.h
14060 if test -n "\$CONFIG_FILES"; then
14061 # Protect against being on the right side of a sed subst in config.status.
14062 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14063 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14064 s,@SHELL@,$SHELL,;t t
14065 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14066 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14067 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14068 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14069 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14070 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14071 s,@exec_prefix@,$exec_prefix,;t t
14072 s,@prefix@,$prefix,;t t
14073 s,@program_transform_name@,$program_transform_name,;t t
14074 s,@bindir@,$bindir,;t t
14075 s,@sbindir@,$sbindir,;t t
14076 s,@libexecdir@,$libexecdir,;t t
14077 s,@datadir@,$datadir,;t t
14078 s,@sysconfdir@,$sysconfdir,;t t
14079 s,@sharedstatedir@,$sharedstatedir,;t t
14080 s,@localstatedir@,$localstatedir,;t t
14081 s,@libdir@,$libdir,;t t
14082 s,@includedir@,$includedir,;t t
14083 s,@oldincludedir@,$oldincludedir,;t t
14084 s,@infodir@,$infodir,;t t
14085 s,@mandir@,$mandir,;t t
14086 s,@build_alias@,$build_alias,;t t
14087 s,@host_alias@,$host_alias,;t t
14088 s,@target_alias@,$target_alias,;t t
14089 s,@DEFS@,$DEFS,;t t
14090 s,@ECHO_C@,$ECHO_C,;t t
14091 s,@ECHO_N@,$ECHO_N,;t t
14092 s,@ECHO_T@,$ECHO_T,;t t
14093 s,@LIBS@,$LIBS,;t t
14094 s,@build@,$build,;t t
14095 s,@build_cpu@,$build_cpu,;t t
14096 s,@build_vendor@,$build_vendor,;t t
14097 s,@build_os@,$build_os,;t t
14098 s,@host@,$host,;t t
14099 s,@host_cpu@,$host_cpu,;t t
14100 s,@host_vendor@,$host_vendor,;t t
14101 s,@host_os@,$host_os,;t t
14102 s,@SHLICC2@,$SHLICC2,;t t
14104 s,@CFLAGS@,$CFLAGS,;t t
14105 s,@LDFLAGS@,$LDFLAGS,;t t
14106 s,@CPPFLAGS@,$CPPFLAGS,;t t
14107 s,@ac_ct_CC@,$ac_ct_CC,;t t
14108 s,@EXEEXT@,$EXEEXT,;t t
14109 s,@OBJEXT@,$OBJEXT,;t t
14111 s,@EGREP@,$EGREP,;t t
14112 s,@LIBOBJS@,$LIBOBJS,;t t
14113 s,@RANLIB@,$RANLIB,;t t
14114 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14115 s,@V_CCOPT@,$V_CCOPT,;t t
14116 s,@V_DEFS@,$V_DEFS,;t t
14117 s,@V_GROUP@,$V_GROUP,;t t
14118 s,@V_INCLS@,$V_INCLS,;t t
14119 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
14120 s,@LOCALSRC@,$LOCALSRC,;t t
14121 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14122 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14123 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14124 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14129 cat >>$CONFIG_STATUS <<\_ACEOF
14130 # Split the substitutions into bite-sized pieces for seds with
14131 # small command number limits, like on Digital OSF/1 and HP-UX.
14132 ac_max_sed_lines
=48
14133 ac_sed_frag
=1 # Number of current file.
14134 ac_beg
=1 # First line for current file.
14135 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14138 while $ac_more_lines; do
14139 if test $ac_beg -gt 1; then
14140 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14142 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14144 if test ! -s $tmp/subs.frag
; then
14145 ac_more_lines
=false
14147 # The purpose of the label and of the branching condition is to
14148 # speed up the sed processing (if there are no `@' at all, there
14149 # is no need to browse any of the substitutions).
14150 # These are the two extra sed commands mentioned above.
14152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
14153 if test -z "$ac_sed_cmds"; then
14154 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
14156 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14158 ac_sed_frag
=`expr $ac_sed_frag + 1`
14160 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14163 if test -z "$ac_sed_cmds"; then
14166 fi # test -n "$CONFIG_FILES"
14169 cat >>$CONFIG_STATUS <<\_ACEOF
14170 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14173 - |
*:- |
*:-:* ) # input from stdin
14175 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14176 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14177 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14178 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14179 * ) ac_file_in
=$ac_file.
in ;;
14182 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14183 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14185 X"$ac_file" : 'X\(//\)[^/]' \| \
14186 X"$ac_file" : 'X\(//\)$' \| \
14187 X"$ac_file" : 'X\(/\)' \| \
14188 . : '\(.\)' 2>/dev/null ||
14190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14192 /^X\(\/\/\)$/{ s//\1/; q; }
14193 /^X\(\/\).*/{ s//\1/; q; }
14195 { if $as_mkdir_p; then
14200 while test ! -d "$as_dir"; do
14201 as_dirs
="$as_dir $as_dirs"
14202 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14204 X"$as_dir" : 'X\(//\)[^/]' \| \
14205 X"$as_dir" : 'X\(//\)$' \| \
14206 X"$as_dir" : 'X\(/\)' \| \
14207 . : '\(.\)' 2>/dev/null ||
14209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14211 /^X\(\/\/\)$/{ s//\1/; q; }
14212 /^X\(\/\).*/{ s//\1/; q; }
14215 test ! -n "$as_dirs" || mkdir
$as_dirs
14216 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14217 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14218 { (exit 1); exit 1; }; }; }
14222 if test "$ac_dir" != .
; then
14223 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14224 # A "../" for each directory in $ac_dir_suffix.
14225 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14227 ac_dir_suffix
= ac_top_builddir
=
14231 .
) # No --srcdir option. We are building in place.
14233 if test -z "$ac_top_builddir"; then
14236 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14238 [\\/]* | ?
:[\\/]* ) # Absolute path.
14239 ac_srcdir
=$srcdir$ac_dir_suffix;
14240 ac_top_srcdir
=$srcdir ;;
14241 *) # Relative path.
14242 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14243 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14246 # Do not use `cd foo && pwd` to compute absolute paths, because
14247 # the directories may not exist.
14249 .
) ac_abs_builddir
="$ac_dir";;
14252 .
) ac_abs_builddir
=`pwd`;;
14253 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14254 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14257 case $ac_abs_builddir in
14258 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14260 case ${ac_top_builddir}.
in
14261 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14262 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14263 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14266 case $ac_abs_builddir in
14267 .
) ac_abs_srcdir
=$ac_srcdir;;
14270 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14271 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14272 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14275 case $ac_abs_builddir in
14276 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14278 case $ac_top_srcdir in
14279 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14280 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14281 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14287 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14288 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
14291 if test x
"$ac_file" != x-
; then
14292 { echo "$as_me:$LINENO: creating $ac_file" >&5
14293 echo "$as_me: creating $ac_file" >&6;}
14296 # Let's still pretend it is `configure' which instantiates (i.e., don't
14297 # use $as_me), people would be surprised to read:
14298 # /* config.h. Generated by config.status. */
14299 if test x
"$ac_file" = x-
; then
14302 configure_input
="$ac_file. "
14304 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14305 sed 's,.*/,,'` by configure."
14307 # First look for the input files in the build tree, otherwise in the
14309 ac_file_inputs
=`IFS=:
14310 for f in $ac_file_in; do
14312 -) echo $tmp/stdin ;;
14314 # Absolute (can't be DOS-style, as IFS=:)
14315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14316 echo "$as_me: error: cannot find input file: $f" >&2;}
14317 { (exit 1); exit 1; }; }
14320 if test -f "$f"; then
14323 elif test -f "$srcdir/$f"; then
14328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14329 echo "$as_me: error: cannot find input file: $f" >&2;}
14330 { (exit 1); exit 1; }; }
14333 done` ||
{ (exit 1); exit 1; }
14335 cat >>$CONFIG_STATUS <<_ACEOF
14339 cat >>$CONFIG_STATUS <<\_ACEOF
14341 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14342 s
,@configure_input@
,$configure_input,;t t
14343 s
,@srcdir@
,$ac_srcdir,;t t
14344 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14345 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14346 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14347 s
,@builddir@
,$ac_builddir,;t t
14348 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14349 s
,@top_builddir@
,$ac_top_builddir,;t t
14350 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14351 s
,@INSTALL@
,$ac_INSTALL,;t t
14352 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14354 if test x"$ac_file" != x-; then
14355 mv $tmp/out $ac_file
14363 cat >>$CONFIG_STATUS <<\_ACEOF
14366 # CONFIG_HEADER section.
14369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14372 # ac_d sets the value in "#define NAME VALUE" lines.
14373 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14374 ac_dB
='[ ].*$,\1#\2'
14377 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14378 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14379 ac_uB
='$,\1#\2define\3'
14383 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14386 - |
*:- |
*:-:* ) # input from stdin
14388 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14389 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14390 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14391 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14392 * ) ac_file_in
=$ac_file.
in ;;
14395 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14396 echo "$as_me: creating $ac_file" >&6;}
14398 # First look for the input files in the build tree, otherwise in the
14400 ac_file_inputs
=`IFS=:
14401 for f in $ac_file_in; do
14403 -) echo $tmp/stdin ;;
14405 # Absolute (can't be DOS-style, as IFS=:)
14406 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14407 echo "$as_me: error: cannot find input file: $f" >&2;}
14408 { (exit 1); exit 1; }; }
14409 # Do quote $f, to prevent DOS paths from being IFS'd.
14412 if test -f "$f"; then
14415 elif test -f "$srcdir/$f"; then
14420 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14421 echo "$as_me: error: cannot find input file: $f" >&2;}
14422 { (exit 1); exit 1; }; }
14425 done` ||
{ (exit 1); exit 1; }
14426 # Remove the trailing spaces.
14427 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14431 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14432 # `conftest.undefs', that substitutes the proper values into
14433 # config.h.in to produce config.h. The first handles `#define'
14434 # templates, and the second `#undef' templates.
14435 # And first: Protect against being on the right side of a sed subst in
14436 # config.status. Protect against being in an unquoted here document
14437 # in config.status.
14438 rm -f conftest.defines conftest.undefs
14439 # Using a here document instead of a string reduces the quoting nightmare.
14440 # Putting comments in sed scripts is not portable.
14442 # `end' is used to avoid that the second main sed command (meant for
14443 # 0-ary CPP macros) applies to n-ary macro definitions.
14444 # See the Autoconf documentation for `clear'.
14445 cat >confdef2sed.
sed <<\_ACEOF
14450 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14452 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14455 # If some macros were called several times there might be several times
14456 # the same #defines, which is useless. Nevertheless, we may not want to
14457 # sort them, since we want the *last* AC-DEFINE to be honored.
14458 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14459 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14460 rm -f confdef2sed.sed
14462 # This sed command replaces #undef with comments. This is necessary, for
14463 # example, in the case of _POSIX_SOURCE, which is predefined and required
14464 # on some systems where configure will not decide to define it.
14465 cat >>conftest.undefs <<\_ACEOF
14466 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14469 # Break up conftest.defines because some shells have a limit on the size
14470 # of here documents, and old seds have small limits too (100 cmds).
14471 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14472 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14473 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14474 echo ' :' >>$CONFIG_STATUS
14475 rm -f conftest.tail
14476 while grep . conftest.defines >/dev/null
14478 # Write a limited-size here document to $tmp/defines.sed.
14479 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14480 # Speed up: don't consider the non `#define' lines.
14481 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14482 # Work around the forget-to-reset-the-flag bug.
14483 echo 't clr' >>$CONFIG_STATUS
14484 echo ': clr' >>$CONFIG_STATUS
14485 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
14487 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14489 mv $tmp/out $tmp/in
14491 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
14492 rm -f conftest.defines
14493 mv conftest.
tail conftest.defines
14495 rm -f conftest.defines
14496 echo ' fi # grep' >>$CONFIG_STATUS
14497 echo >>$CONFIG_STATUS
14499 # Break up conftest.undefs because some shells have a limit on the size
14500 # of here documents, and old seds have small limits too (100 cmds).
14501 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14502 rm -f conftest.
tail
14503 while grep . conftest.undefs
>/dev
/null
14505 # Write a limited-size here document to $tmp/undefs.sed.
14506 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14507 # Speed up: don't consider the non
`#undef'
14508 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14509 # Work around the forget-to-reset-the-flag bug.
14510 echo 't clr' >>$CONFIG_STATUS
14511 echo ': clr' >>$CONFIG_STATUS
14512 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14514 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14516 mv $tmp/out $tmp/in
14518 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14519 rm -f conftest.undefs
14520 mv conftest.tail conftest.undefs
14522 rm -f conftest.undefs
14524 cat >>$CONFIG_STATUS <<\_ACEOF
14525 # Let's still pretend it is `configure
' which instantiates (i.e., don't
14526 # use $as_me), people would be surprised to read:
14527 # /* config.h. Generated by config.status. */
14528 if test x
"$ac_file" = x-
; then
14529 echo "/* Generated by configure. */" >$tmp/config.h
14531 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14533 cat $tmp/in >>$tmp/config.h
14535 if test x
"$ac_file" != x-
; then
14536 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
14537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14538 echo "$as_me: $ac_file is unchanged" >&6;}
14540 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542 X"$ac_file" : 'X\(//\)[^/]' \| \
14543 X"$ac_file" : 'X\(//\)$' \| \
14544 X"$ac_file" : 'X\(/\)' \| \
14545 . : '\(.\)' 2>/dev/null ||
14547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14549 /^X\(\/\/\)$/{ s//\1/; q; }
14550 /^X\(\/\).*/{ s//\1/; q; }
14552 { if $as_mkdir_p; then
14557 while test ! -d "$as_dir"; do
14558 as_dirs
="$as_dir $as_dirs"
14559 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561 X"$as_dir" : 'X\(//\)[^/]' \| \
14562 X"$as_dir" : 'X\(//\)$' \| \
14563 X"$as_dir" : 'X\(/\)' \| \
14564 . : '\(.\)' 2>/dev/null ||
14566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14568 /^X\(\/\/\)$/{ s//\1/; q; }
14569 /^X\(\/\).*/{ s//\1/; q; }
14572 test ! -n "$as_dirs" || mkdir
$as_dirs
14573 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14575 { (exit 1); exit 1; }; }; }
14578 mv $tmp/config.h
$ac_file
14582 rm -f $tmp/config.h
14586 cat >>$CONFIG_STATUS <<\_ACEOF
14589 # CONFIG_COMMANDS section.
14591 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
14592 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14593 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14594 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14595 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14596 X"$ac_dest" : 'X\(//\)[^/]' \| \
14597 X"$ac_dest" : 'X\(//\)$' \| \
14598 X"$ac_dest" : 'X\(/\)' \| \
14599 . : '\(.\)' 2>/dev/null ||
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14603 /^X\(\/\/\)$/{ s//\1/; q; }
14604 /^X\(\/\).*/{ s//\1/; q; }
14606 { if $as_mkdir_p; then
14611 while test ! -d "$as_dir"; do
14612 as_dirs
="$as_dir $as_dirs"
14613 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14615 X"$as_dir" : 'X\(//\)[^/]' \| \
14616 X"$as_dir" : 'X\(//\)$' \| \
14617 X"$as_dir" : 'X\(/\)' \| \
14618 . : '\(.\)' 2>/dev/null ||
14620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14622 /^X\(\/\/\)$/{ s//\1/; q; }
14623 /^X\(\/\).*/{ s//\1/; q; }
14626 test ! -n "$as_dirs" || mkdir
$as_dirs
14627 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14629 { (exit 1); exit 1; }; }; }
14633 if test "$ac_dir" != .
; then
14634 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14635 # A "../" for each directory in $ac_dir_suffix.
14636 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14638 ac_dir_suffix
= ac_top_builddir
=
14642 .
) # No --srcdir option. We are building in place.
14644 if test -z "$ac_top_builddir"; then
14647 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14649 [\\/]* | ?
:[\\/]* ) # Absolute path.
14650 ac_srcdir
=$srcdir$ac_dir_suffix;
14651 ac_top_srcdir
=$srcdir ;;
14652 *) # Relative path.
14653 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14654 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14657 # Do not use `cd foo && pwd` to compute absolute paths, because
14658 # the directories may not exist.
14660 .
) ac_abs_builddir
="$ac_dir";;
14663 .
) ac_abs_builddir
=`pwd`;;
14664 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14665 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14668 case $ac_abs_builddir in
14669 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14671 case ${ac_top_builddir}.
in
14672 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14673 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14674 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14677 case $ac_abs_builddir in
14678 .
) ac_abs_srcdir
=$ac_srcdir;;
14681 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14682 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14683 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14686 case $ac_abs_builddir in
14687 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14689 case $ac_top_srcdir in
14690 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14691 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14692 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14697 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14698 echo "$as_me: executing $ac_dest commands" >&6;}
14700 default-1
) if test -f .devel
; then
14701 echo timestamp
> stamp-h
14702 cat Makefile-devel-adds
>> Makefile
14709 cat >>$CONFIG_STATUS <<\_ACEOF
14711 { (exit 0); exit 0; }
14713 chmod +x
$CONFIG_STATUS
14714 ac_clean_files
=$ac_clean_files_save
14717 # configure is writing to config.log, and then calls config.status.
14718 # config.status does its own redirection, appending to config.log.
14719 # Unfortunately, on DOS this fails, as config.log is still kept open
14720 # by configure, so config.status won't be able to write to it; its
14721 # output is simply discarded. So we exec the FD to /dev/null,
14722 # effectively closing config.log, so it can be properly (re)opened and
14723 # appended to by config.status. When coming back to configure, we
14724 # need to make the FD available again.
14725 if test "$no_create" != yes; then
14727 ac_config_status_args
=
14728 test "$silent" = yes &&
14729 ac_config_status_args
="$ac_config_status_args --quiet"
14731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14734 # would make configure fail if this is the last instruction.
14735 $ac_cs_success ||
{ (exit 1); exit 1; }