2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
690 ac_precious_vars
='build_alias
701 # Initialize some variables set by options.
703 ac_init_version
=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
713 program_transform_name
=s
,x
,x
,
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir
='${exec_prefix}/bin'
728 sbindir
='${exec_prefix}/sbin'
729 libexecdir
='${exec_prefix}/libexec'
730 datarootdir
='${prefix}/share'
731 datadir
='${datarootdir}'
732 sysconfdir
='${prefix}/etc'
733 sharedstatedir
='${prefix}/com'
734 localstatedir
='${prefix}/var'
735 includedir
='${prefix}/include'
736 oldincludedir
='/usr/include'
737 docdir
='${datarootdir}/doc/${PACKAGE}'
738 infodir
='${datarootdir}/info'
743 libdir
='${exec_prefix}/lib'
744 localedir
='${datarootdir}/locale'
745 mandir
='${datarootdir}/man'
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\
$ac_option
759 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
769 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
771 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
774 -build |
--build |
--buil |
--bui |
--bu)
775 ac_prev
=build_alias
;;
776 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
777 build_alias
=$ac_optarg ;;
779 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
780 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
781 ac_prev
=cache_file
;;
782 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
783 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
784 cache_file
=$ac_optarg ;;
787 cache_file
=config.cache
;;
789 -datadir |
--datadir |
--datadi |
--datad)
791 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
792 datadir
=$ac_optarg ;;
794 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
795 |
--dataroo |
--dataro |
--datar)
796 ac_prev
=datarootdir
;;
797 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
798 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
799 datarootdir
=$ac_optarg ;;
801 -disable-* |
--disable-*)
802 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_
$ac_feature=no
;;
810 -docdir |
--docdir |
--docdi |
--doc |
--do)
812 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
815 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
817 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
820 -enable-* |
--enable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=\
$ac_optarg ;;
829 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
830 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
831 |
--exec |
--exe |
--ex)
832 ac_prev
=exec_prefix
;;
833 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
834 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
835 |
--exec=* |
--exe=* |
--ex=*)
836 exec_prefix
=$ac_optarg ;;
838 -gas |
--gas |
--ga |
--g)
839 # Obsolete; use --with-gas.
842 -help |
--help |
--hel |
--he |
-h)
844 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
845 ac_init_help
=recursive
;;
846 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
847 ac_init_help
=short
;;
849 -host |
--host |
--hos |
--ho)
850 ac_prev
=host_alias
;;
851 -host=* |
--host=* |
--hos=* |
--ho=*)
852 host_alias
=$ac_optarg ;;
854 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
856 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
858 htmldir
=$ac_optarg ;;
860 -includedir |
--includedir |
--includedi |
--included |
--include \
861 |
--includ |
--inclu |
--incl |
--inc)
862 ac_prev
=includedir
;;
863 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
864 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
865 includedir
=$ac_optarg ;;
867 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
869 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
870 infodir
=$ac_optarg ;;
872 -libdir |
--libdir |
--libdi |
--libd)
874 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
877 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
878 |
--libexe |
--libex |
--libe)
879 ac_prev
=libexecdir
;;
880 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
881 |
--libexe=* |
--libex=* |
--libe=*)
882 libexecdir
=$ac_optarg ;;
884 -localedir |
--localedir |
--localedi |
--localed |
--locale)
886 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
887 localedir
=$ac_optarg ;;
889 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
890 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
891 ac_prev
=localstatedir
;;
892 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
893 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
894 localstatedir
=$ac_optarg ;;
896 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
898 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
902 # Obsolete; use --without-fp.
905 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
906 |
--no-cr |
--no-c |
-n)
909 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
910 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
913 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
914 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
915 |
--oldin |
--oldi |
--old |
--ol |
--o)
916 ac_prev
=oldincludedir
;;
917 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
918 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
919 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
920 oldincludedir
=$ac_optarg ;;
922 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
924 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
927 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
928 |
--program-pre |
--program-pr |
--program-p)
929 ac_prev
=program_prefix
;;
930 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
931 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
932 program_prefix
=$ac_optarg ;;
934 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
935 |
--program-suf |
--program-su |
--program-s)
936 ac_prev
=program_suffix
;;
937 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
938 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
939 program_suffix
=$ac_optarg ;;
941 -program-transform-name |
--program-transform-name \
942 |
--program-transform-nam |
--program-transform-na \
943 |
--program-transform-n |
--program-transform- \
944 |
--program-transform |
--program-transfor \
945 |
--program-transfo |
--program-transf \
946 |
--program-trans |
--program-tran \
947 |
--progr-tra |
--program-tr |
--program-t)
948 ac_prev
=program_transform_name
;;
949 -program-transform-name=* |
--program-transform-name=* \
950 |
--program-transform-nam=* |
--program-transform-na=* \
951 |
--program-transform-n=* |
--program-transform-=* \
952 |
--program-transform=* |
--program-transfor=* \
953 |
--program-transfo=* |
--program-transf=* \
954 |
--program-trans=* |
--program-tran=* \
955 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
956 program_transform_name
=$ac_optarg ;;
958 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
960 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
963 -psdir |
--psdir |
--psdi |
--psd |
--ps)
965 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
969 |
-silent |
--silent |
--silen |
--sile |
--sil)
972 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
974 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
976 sbindir
=$ac_optarg ;;
978 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
979 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
980 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
982 ac_prev
=sharedstatedir
;;
983 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
984 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
985 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
987 sharedstatedir
=$ac_optarg ;;
989 -site |
--site |
--sit)
991 -site=* |
--site=* |
--sit=*)
994 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
996 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
999 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1000 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1001 ac_prev
=sysconfdir
;;
1002 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1003 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1004 sysconfdir
=$ac_optarg ;;
1006 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1007 ac_prev
=target_alias
;;
1008 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1009 target_alias
=$ac_optarg ;;
1011 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1014 -version |
--version |
--versio |
--versi |
--vers |
-V)
1015 ac_init_version
=: ;;
1018 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_
$ac_package=\
$ac_optarg ;;
1026 -without-* |
--without-*)
1027 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_
$ac_package=no
;;
1036 # Obsolete; use --with-x.
1039 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1040 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1041 ac_prev
=x_includes
;;
1042 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1043 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1044 x_includes
=$ac_optarg ;;
1046 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1047 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1048 ac_prev
=x_libraries
;;
1049 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1050 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1051 x_libraries
=$ac_optarg ;;
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1059 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\
$ac_optarg
1065 export $ac_envvar ;;
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1078 if test -n "$ac_prev"; then
1079 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1084 # Be sure to have absolute directory names.
1085 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1090 eval ac_val
=\$
$ac_var
1092 [\\/$
]* | ?
:[\\/]* ) continue;;
1093 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1104 target
=$target_alias
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x
; then
1108 if test "x$build_alias" = x
; then
1109 cross_compiling
=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1118 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1120 test "$silent" = yes && exec 6>/dev
/null
1123 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di
=`ls -di .` &&
1125 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted
=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir
=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1165 ac_srcdir_defaulted
=no
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1172 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1185 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 for ac_var
in $ac_precious_vars; do
1188 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1190 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1195 # Report the --help message.
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1201 \`configure' configures this package to adapt to many kinds of systems.
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1208 Defaults for the options are specified in brackets.
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1232 For better control, use the options below.
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1259 --build=BUILD configure
for building on BUILD
[guessed
]
1260 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1264 if test -n "$ac_init_help"; then
1269 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1270 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1271 --enable-smb enable possibly-buggy SMB printer default
=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6
(with ipv4
) support
1274 --disable-ipv6 disable ipv6 support
1277 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1278 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1279 --without-gcc don
't use gcc
1280 --with-arch-flags=FLAGS Use FLAGS to specify the target architecture(s)
1281 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1282 --without-smi don't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges
, chroot to DIRECTORY
1285 --with-crypto[=PATH
] use SSLeay libcrypto
(located
in directory PATH
, if
1286 supplied
).
[default
=yes, if available
]
1288 Some influential environment variables
:
1289 CC C compiler
command
1290 CFLAGS C compiler flags
1291 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1292 nonstandard directory
<lib dir
>
1293 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1294 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1295 you have headers
in a nonstandard directory
<include dir
>
1298 Use these variables to override the choices made by
`configure' or to help
1299 it to find libraries and programs with nonstandard names/locations.
1305 if test "$ac_init_help" = "recursive"; then
1306 # If there are subdirs, report their specific --help.
1307 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308 test -d "$ac_dir" || continue
1312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1315 # A ".." for each directory in $ac_dir_suffix.
1316 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1317 case $ac_top_builddir_sub in
1318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1322 ac_abs_top_builddir=$ac_pwd
1323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1324 # for backward compatibility:
1325 ac_top_builddir=$ac_top_build_prefix
1328 .) # We are building in place.
1330 ac_top_srcdir=$ac_top_builddir_sub
1331 ac_abs_top_srcdir=$ac_pwd ;;
1332 [\\/]* | ?:[\\/]* ) # Absolute name.
1333 ac_srcdir=$srcdir$ac_dir_suffix;
1334 ac_top_srcdir=$srcdir
1335 ac_abs_top_srcdir=$srcdir ;;
1337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1338 ac_top_srcdir=$ac_top_build_prefix$srcdir
1339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1343 cd "$ac_dir" || { ac_status=$?; continue; }
1344 # Check for guested configure.
1345 if test -f "$ac_srcdir/configure.gnu"; then
1347 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1348 elif test -f "$ac_srcdir/configure"; then
1350 $SHELL "$ac_srcdir/configure" --help=recursive
1352 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1354 cd "$ac_pwd" || { ac_status=$?; break; }
1358 test -n "$ac_init_help" && exit $ac_status
1359 if $ac_init_version; then
1362 generated by GNU Autoconf 2.61
1364 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1365 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1366 This configure script is free software; the Free Software Foundation
1367 gives unlimited permission to copy, distribute and modify it.
1371 cat >config.log <<_ACEOF
1372 This file contains any messages produced by compilers while
1373 running configure, to aid debugging if configure makes a mistake.
1375 It was created by $as_me, which was
1376 generated by GNU Autoconf 2.61. Invocation command line was
1388 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1389 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1390 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1391 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1392 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1394 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1395 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1397 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1398 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1399 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1400 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1401 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1402 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1403 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 test -z "$as_dir" && as_dir=.
1412 echo "PATH: $as_dir"
1428 # Keep a trace of the command line.
1429 # Strip out --no-create and --no-recursion so they do not pile up.
1430 # Strip out --silent because we don't want to record it for future runs.
1431 # Also quote any args containing shell meta-characters.
1432 # Make two passes to allow for proper duplicate-argument suppression.
1436 ac_must_keep_next=false
1442 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1444 | -silent | --silent | --silen | --sile | --sil)
1447 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1450 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1452 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1453 if test $ac_must_keep_next = true; then
1454 ac_must_keep_next=false # Got value, back to normal.
1457 *=* | --config-cache | -C | -disable-* | --disable-* \
1458 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1459 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1460 | -with-* | --with-* | -without-* | --without-* | --x)
1461 case "$ac_configure_args0 " in
1462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1465 -* ) ac_must_keep_next=true ;;
1468 ac_configure_args="$ac_configure_args '$ac_arg'"
1473 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1474 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1476 # When interrupted or exit'd, cleanup temporary files, and complete
1477 # config.log. We remove comments because anyway the quotes in there
1478 # would cause problems or look ugly.
1479 # WARNING: Use '\'' to represent an apostrophe within the trap.
1480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1481 trap 'exit_status=$?
1482 # Save into config.log some information that might help in debugging.
1487 ## ---------------- ##
1488 ## Cache variables. ##
1489 ## ---------------- ##
1492 # The following way of writing the cache mishandles newlines in values,
1494 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1495 eval ac_val=\$$ac_var
1499 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1503 _ | IFS | as_nl) ;; #(
1504 *) $as_unset $ac_var ;;
1509 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1510 *${as_nl}ac_space=\ *)
1512 "s/'\''/'\''\\\\'\'''\''/g;
1513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1524 ## ----------------- ##
1525 ## Output variables. ##
1526 ## ----------------- ##
1529 for ac_var in $ac_subst_vars
1531 eval ac_val=\$$ac_var
1533 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1535 echo "$ac_var='\''$ac_val'\''"
1539 if test -n "$ac_subst_files"; then
1541 ## ------------------- ##
1542 ## File substitutions. ##
1543 ## ------------------- ##
1546 for ac_var in $ac_subst_files
1548 eval ac_val=\$$ac_var
1550 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1552 echo "$ac_var='\''$ac_val'\''"
1557 if test -s confdefs.h; then
1567 test "$ac_signal" != 0 &&
1568 echo "$as_me: caught signal $ac_signal"
1569 echo "$as_me: exit $exit_status"
1571 rm -f core *.core core.conftest.* &&
1572 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1575 for ac_signal in 1 2 13 15; do
1576 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1580 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1581 rm -f -r conftest* confdefs.h
1583 # Predefined preprocessor variables.
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_NAME "$PACKAGE_NAME"
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_STRING "$PACKAGE_STRING"
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1610 # Let the site file select an alternate cache file if it wants to.
1611 # Prefer explicitly selected file to automatically selected ones.
1612 if test -n "$CONFIG_SITE"; then
1613 set x "$CONFIG_SITE"
1614 elif test "x$prefix" != xNONE; then
1615 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1617 set x "$ac_default_prefix/share/config.site" \
1618 "$ac_default_prefix/etc/config.site"
1623 if test -r "$ac_site_file"; then
1624 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1625 echo "$as_me: loading site script $ac_site_file" >&6;}
1626 sed 's/^/| /' "$ac_site_file" >&5
1631 if test -r "$cache_file"; then
1632 # Some versions of bash will fail to source /dev/null (special
1633 # files actually), so we avoid doing that.
1634 if test -f "$cache_file"; then
1635 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1636 echo "$as_me: loading cache $cache_file" >&6;}
1638 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1639 *) . "./$cache_file";;
1643 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1644 echo "$as_me: creating cache $cache_file" >&6;}
1648 # Check that the precious variables saved in the cache have kept the same
1650 ac_cache_corrupted=false
1651 for ac_var in $ac_precious_vars; do
1652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1653 eval ac_new_set=\$ac_env_${ac_var}_set
1654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1655 eval ac_new_val=\$ac_env_${ac_var}_value
1656 case $ac_old_set,$ac_new_set in
1658 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1659 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1660 ac_cache_corrupted=: ;;
1662 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1663 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1664 ac_cache_corrupted=: ;;
1667 if test "x$ac_old_val" != "x$ac_new_val"; then
1668 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1669 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1670 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1671 echo "$as_me: former value
: $ac_old_val" >&2;}
1672 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1673 echo "$as_me: current value
: $ac_new_val" >&2;}
1674 ac_cache_corrupted=:
1677 # Pass precious variables to config.status.
1678 if test "$ac_new_set" = set; then
1680 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1681 *) ac_arg=$ac_var=$ac_new_val ;;
1683 case " $ac_configure_args " in
1684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1685 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1689 if $ac_cache_corrupted; then
1690 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1691 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1692 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1693 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1694 { (exit 1); exit 1; }; }
1714 ac_cpp='$CPP $CPPFLAGS'
1715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1723 if test -f "$ac_dir/install-sh"; then
1725 ac_install_sh="$ac_aux_dir/install-sh -c"
1727 elif test -f "$ac_dir/install.sh"; then
1729 ac_install_sh="$ac_aux_dir/install.sh -c"
1731 elif test -f "$ac_dir/shtool"; then
1733 ac_install_sh="$ac_aux_dir/shtool install -c"
1737 if test -z "$ac_aux_dir"; then
1738 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1739 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1740 { (exit 1); exit 1; }; }
1743 # These three variables are undocumented and unsupported,
1744 # and are intended to be withdrawn in a future Autoconf release.
1745 # They can cause serious problems if a builder's source tree is in a directory
1746 # whose full name contains unusual characters.
1747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1752 # Make sure we can run config.sub.
1753 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1754 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1755 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1756 { (exit 1); exit 1; }; }
1758 { echo "$as_me:$LINENO: checking build system type" >&5
1759 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1760 if test "${ac_cv_build+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 ac_build_alias=$build_alias
1764 test "x$ac_build_alias" = x &&
1765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1766 test "x$ac_build_alias" = x &&
1767 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1768 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1769 { (exit 1); exit 1; }; }
1770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1771 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1772 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1773 { (exit 1); exit 1; }; }
1776 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1777 echo "${ECHO_T}$ac_cv_build" >&6; }
1778 case $ac_cv_build in
1780 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1781 echo "$as_me: error: invalid value of canonical build" >&2;}
1782 { (exit 1); exit 1; }; };;
1785 ac_save_IFS=$IFS; IFS='-'
1791 # Remember, the first character of IFS is used to create $*,
1792 # except with old shells:
1795 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1798 { echo "$as_me:$LINENO: checking host system type" >&5
1799 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1800 if test "${ac_cv_host+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test "x$host_alias" = x; then
1804 ac_cv_host=$ac_cv_build
1806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1807 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1808 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1809 { (exit 1); exit 1; }; }
1813 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814 echo "${ECHO_T}$ac_cv_host" >&6; }
1817 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1818 echo "$as_me: error: invalid value of canonical host" >&2;}
1819 { (exit 1); exit 1; }; };;
1822 ac_save_IFS=$IFS; IFS='-'
1828 # Remember, the first character of IFS is used to create $*,
1829 # except with old shells:
1832 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1842 # Check whether --with-gcc was given.
1843 if test "${with_gcc+set}" = set; then
1849 if test "${srcdir}" != "." ; then
1850 V_INCLS="-I\$(srcdir)"
1852 if test "${CFLAGS+set}" = set; then
1853 LBL_CFLAGS="$CFLAGS"
1855 if test -z "$CC" ; then
1859 # Extract the first word of "shlicc2", so it can be a program name with args.
1860 set dummy shlicc2; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$SHLICC2"; then
1867 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_SHLICC2="yes"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1887 SHLICC2=$ac_cv_prog_SHLICC2
1888 if test -n "$SHLICC2"; then
1889 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1890 echo "${ECHO_T}$SHLICC2" >&6; }
1892 { echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6; }
1897 if test $SHLICC2 = yes ; then
1904 if test -z "$CC" -a "$with_gcc" = no ; then
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1919 if test "${ac_cv_prog_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$CC"; then
1923 ac_cv_prog_CC="$CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 if test -n "$CC"; then
1944 { echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6; }
1947 { echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6; }
1953 if test -z "$ac_cv_prog_CC"; then
1955 # Extract the first word of "gcc", so it can be a program name with args.
1956 set dummy gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$ac_ct_CC"; then
1963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_ac_ct_CC="gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983 if test -n "$ac_ct_CC"; then
1984 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985 echo "${ECHO_T}$ac_ct_CC" >&6; }
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1991 if test "x$ac_ct_CC" = x; then
1994 case $cross_compiling:$ac_tool_warned in
1996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1997 whose name does not start with the host triplet. If you think this
1998 configuration is useful to you, please write to autoconf@gnu.org." >&5
1999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2000 whose name does not start with the host triplet. If you think this
2001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2002 ac_tool_warned=yes ;;
2010 if test -z "$CC"; then
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}cc; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 { echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2051 if test -z "$CC"; then
2052 # Extract the first word of "cc", so it can be a program name with args.
2053 set dummy cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2071 ac_prog_rejected=yes
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 if test $ac_prog_rejected = yes; then
2083 # We found a bogon in the path, so make sure we never use it.
2084 set dummy $ac_cv_prog_CC
2086 if test $# != 0; then
2087 # We chose a different compiler from the bogus one.
2088 # However, it has the same basename, so the bogon will be chosen
2089 # first if we set CC to just the basename; use the full file name.
2091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2097 if test -n "$CC"; then
2098 { echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2107 if test -z "$CC"; then
2108 if test -n "$ac_tool_prefix"; then
2109 for ac_prog in cl.exe
2111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$CC" && break
2151 if test -z "$CC"; then
2153 for ac_prog in cl.exe
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$ac_ct_CC"; then
2163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172 ac_cv_prog_ac_ct_CC="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183 if test -n "$ac_ct_CC"; then
2184 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185 echo "${ECHO_T}$ac_ct_CC" >&6; }
2187 { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2192 test -n "$ac_ct_CC" && break
2195 if test "x$ac_ct_CC" = x; then
2198 case $cross_compiling:$ac_tool_warned in
2200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet. If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&5
2203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2204 whose name does not start with the host triplet. If you think this
2205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2206 ac_tool_warned=yes ;;
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2216 See \`config.log
' for more details." >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details.
" >&2;}
2219 { (exit 1); exit 1; }; }
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2223 ac_compiler=`set X $ac_compile; echo $2`
2224 { (ac_try="$ac_compiler --version >&5"
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_compiler --version >&5") 2>&5
2232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2233 (exit $ac_status); }
2234 { (ac_try="$ac_compiler -v >&5"
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2240 (eval "$ac_compiler -v >&5") 2>&5
2242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2243 (exit $ac_status); }
2244 { (ac_try="$ac_compiler -V >&5"
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2250 (eval "$ac_compiler -V >&5") 2>&5
2252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2253 (exit $ac_status); }
2255 cat >conftest.$ac_ext <<_ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2272 # Try to create an executable without -o first, disregard a.out.
2273 # It will help us diagnose broken compilers, and finding out an intuition
2275 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2276 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2279 # List of possible output files, starting from the most likely.
2280 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2281 # only as a last resort. b.out is created by i960 compilers.
2282 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2284 # The IRIX 6 linker writes into existing files which may not be
2285 # executable, retaining their permissions. Remove them first so a
2286 # subsequent execution test works.
2288 for ac_file in $ac_files
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2297 if { (ac_try="$ac_link_default"
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_link_default") 2>&5
2305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2308 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2309 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2310 # so that the user can short-circuit this test for compilers unknown to
2312 for ac_file in $ac_files ''
2314 test -f "$ac_file" || continue
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2319 # We found the default executable, but exeext='' is most
2323 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2325 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # We set ac_cv_exeext here because the later test for it is not
2328 # safe: cross compilers may not add the suffix if given an `-o'
2329 # argument, so we may need to know it at that point already.
2330 # Even if this section looks crufty: it has the advantage of
2337 test "$ac_cv_exeext" = no && ac_cv_exeext=
2343 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2344 echo "${ECHO_T}$ac_file" >&6; }
2345 if test -z "$ac_file"; then
2346 echo "$as_me: failed program was
:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2350 See \
`config.log' for more details." >&5
2351 echo "$as_me: error: C compiler cannot create executables
2352 See \`config.log
' for more details." >&2;}
2353 { (exit 77); exit 77; }; }
2356 ac_exeext=$ac_cv_exeext
2358 # Check that the compiler produces executables we can run. If not, either
2359 # the compiler is broken, or we cross compile.
2360 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2361 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2362 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2363 # If not cross compiling, check that we can run a simple program.
2364 if test "$cross_compiling" != yes; then
2365 if { ac_try='.
/$ac_file'
2366 { (case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_try") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2377 if test "$cross_compiling" = maybe; then
2380 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2381 If you meant to cross compile, use \`--host'.
2382 See \
`config.log' for more details." >&5
2383 echo "$as_me: error: cannot run C compiled programs.
2384 If you meant to cross compile, use \`--host'.
2385 See \`config.log' for more details.
" >&2;}
2386 { (exit 1); exit 1; }; }
2390 { echo "$as_me:$LINENO: result
: yes" >&5
2391 echo "${ECHO_T}yes" >&6; }
2393 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2394 ac_clean_files=$ac_clean_files_save
2395 # Check that the compiler produces executables we can run. If not, either
2396 # the compiler is broken, or we cross compile.
2397 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2398 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2399 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2400 echo "${ECHO_T}$cross_compiling" >&6; }
2402 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2403 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2404 if { (ac_try="$ac_link"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_link") 2>&5
2412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2418 for ac_file in conftest.exe conftest conftest.*; do
2419 test -f "$ac_file" || continue
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2429 See \
`config.log' for more details." >&5
2430 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2431 See \`config.log
' for more details." >&2;}
2432 { (exit 1); exit 1; }; }
2435 rm -f conftest$ac_cv_exeext
2436 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2437 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2439 rm -f conftest.$ac_ext
2440 EXEEXT=$ac_cv_exeext
2442 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2443 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2444 if test "${ac_cv_objext+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 cat >conftest.$ac_ext <<_ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2462 rm -f conftest.o conftest.obj
2463 if { (ac_try="$ac_compile"
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_compile") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in conftest.o conftest.obj conftest.*; do
2474 test -f "$ac_file" || continue;
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2477 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2482 echo "$as_me: failed program was:" >&5
2483 sed 's
/^
/|
/' conftest.$ac_ext >&5
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details.
" >&5
2487 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2488 See \
`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2494 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495 echo "${ECHO_T}$ac_cv_objext" >&6; }
2496 OBJEXT=$ac_cv_objext
2498 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2525 *) ac_try_echo
=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2530 grep -v '^ *+' conftest.er1
>conftest.err
2532 cat conftest.err
>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.
$ac_objext; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.
$ac_ext >&5
2546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2547 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2550 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2552 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CFLAGS
=${CFLAGS+set}
2554 ac_save_CFLAGS
=$CFLAGS
2555 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_cc_g+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 ac_save_c_werror_flag
=$ac_c_werror_flag
2561 ac_c_werror_flag
=yes
2564 cat >conftest.
$ac_ext <<_ACEOF
2567 cat confdefs.h
>>conftest.
$ac_ext
2568 cat >>conftest.
$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 rm -f conftest.
$ac_objext
2580 if { (ac_try
="$ac_compile"
2582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest.$ac_objext; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2621 *) ac_try_echo
=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1
>conftest.err
2628 cat conftest.err
>&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.
$ac_objext; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.
$ac_ext >&5
2639 ac_c_werror_flag
=$ac_save_c_werror_flag
2641 cat >conftest.
$ac_ext <<_ACEOF
2644 cat confdefs.h
>>conftest.
$ac_ext
2645 cat >>conftest.
$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2656 rm -f conftest.
$ac_objext
2657 if { (ac_try
="$ac_compile"
2659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compile") 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } && {
2670 test -z "$ac_c_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest.$ac_objext; then
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_c_werror_flag=$ac_save_c_werror_flag
2690 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2692 if test "$ac_test_CFLAGS" = set; then
2693 CFLAGS=$ac_save_CFLAGS
2694 elif test $ac_cv_prog_cc_g = yes; then
2695 if test "$GCC" = yes; then
2701 if test "$GCC" = yes; then
2707 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2708 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_cc_c89+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 ac_cv_prog_cc_c89=no
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2722 #include <sys/types.h>
2723 #include <sys/stat.h>
2724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2725 struct buf { int x; };
2726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2727 static char *e (p, i)
2733 static char *f (char * (*g) (char **, int), char **p, ...)
2738 s = g (p, va_arg (v,int));
2743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2744 function prototypes and stuff, but not '\xHH' hex character constants.
2745 These don't provoke an error unfortunately, instead are silently treated
2746 as 'x'. The following induces an error, until -std is added to get
2747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2748 array size at least. It's necessary to write '\x00'==0 to get something
2749 that's true only with -std. */
2750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2753 inside strings and character constants. */
2755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2757 int test (int i, double x);
2758 struct s1 {int (*f) (int a);};
2759 struct s2 {int (*f) (double a);};
2760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2774 CC="$ac_save_CC $ac_arg"
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2779 *) ac_try_echo
=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2784 grep -v '^ *+' conftest.er1
>conftest.err
2786 cat conftest.err
>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.
$ac_objext; then
2792 ac_cv_prog_cc_c89
=$ac_arg
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2800 rm -f core conftest.err conftest.
$ac_objext
2801 test "x$ac_cv_prog_cc_c89" != "xno" && break
2803 rm -f conftest.
$ac_ext
2808 case "x$ac_cv_prog_cc_c89" in
2810 { echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6; } ;;
2813 { echo "$as_me:$LINENO: result: unsupported" >&5
2814 echo "${ECHO_T}unsupported" >&6; } ;;
2816 CC
="$CC $ac_cv_prog_cc_c89"
2817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2823 ac_cpp
='$CPP $CPPFLAGS'
2824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2829 # Check whether --with-arch-flags was given.
2830 if test "${with_arch_flags+set}" = set; then
2831 withval
=$with_arch_flags;
2832 if test "$withval" = "yes"
2834 { { echo "$as_me:$LINENO: error: No flags specified for --with-arch-flags" >&5
2835 echo "$as_me: error: No flags specified for --with-arch-flags" >&2;}
2836 { (exit 1); exit 1; }; }
2838 ARCHFLAGS
="$withval"
2847 if test "$GCC" = yes ; then
2848 if test "$SHLICC2" = yes ; then
2849 ac_cv_lbl_gcc_vers
=2
2852 { echo "$as_me:$LINENO: checking gcc version" >&5
2853 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2854 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2858 sed -e '/^gcc version /!d' \
2859 -e 's/^gcc version //' \
2860 -e 's/ .*//' -e 's/^[^0-9]*//' \
2864 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2865 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2866 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2871 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2872 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2873 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.
$ac_ext <<_ACEOF
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <sys/types.h>
2887 int frob(int, char *)
2892 rm -f conftest.
$ac_objext
2893 if { (ac_try
="$ac_compile"
2895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_lbl_cc_ansi_prototypes=yes
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 ac_cv_lbl_cc_ansi_prototypes=no
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2921 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2922 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2926 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2927 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2928 savedcflags="$CFLAGS"
2929 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2930 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <sys/types.h>
2943 int frob(int, char *)
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2952 *) ac_try_echo
=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } && {
2962 test -z "$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2964 } && test -s conftest.
$ac_objext; then
2965 ac_cv_lbl_cc_hpux_cc_aa
=yes
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.
$ac_ext >&5
2970 ac_cv_lbl_cc_hpux_cc_aa
=no
2973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2976 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2977 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2978 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2979 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2980 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2981 { (exit 1); exit 1; }; }
2983 CFLAGS
="$savedcflags"
2984 V_CCOPT
="-Aa $V_CCOPT"
2986 cat >>confdefs.h
<<\_ACEOF
2987 #define _HPUX_SOURCE 1
2993 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2994 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2995 savedcflags
="$CFLAGS"
2997 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 cat >conftest.
$ac_ext <<_ACEOF
3003 cat confdefs.h
>>conftest.
$ac_ext
3004 cat >>conftest.
$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <sys/types.h>
3010 int frob(int, char *)
3015 rm -f conftest.
$ac_objext
3016 if { (ac_try
="$ac_compile"
3018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } && {
3029 test -z "$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 } && test -s conftest.$ac_objext; then
3032 ac_cv_lbl_cc_osf1_cc_std1=yes
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 ac_cv_lbl_cc_osf1_cc_std1=no
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3044 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3045 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3046 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3047 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3048 { (exit 1); exit 1; }; }
3050 CFLAGS="$savedcflags"
3051 V_CCOPT="-std1 $V_CCOPT"
3055 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3056 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3057 { (exit 1); exit 1; }; }
3061 V_INCLS="$V_INCLS -I/usr/local/include"
3062 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3067 V_CCOPT="$V_CCOPT -xansi -signed -O"
3072 # Presumed to be DEC OSF/1, Digital UNIX, or
3075 V_CCOPT="$V_CCOPT -O"
3079 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3080 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3081 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <sys/types.h>
3094 struct a { int b; };
3095 void c(const struct a *)
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3104 *) ac_try_echo
=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1
>conftest.err
3111 cat conftest.err
>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.
$ac_objext; then
3117 ac_cv_lbl_cc_const_proto
=yes
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3122 ac_cv_lbl_cc_const_proto
=no
3125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3128 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3129 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3130 if test $ac_cv_lbl_cc_const_proto = no
; then
3132 cat >>confdefs.h
<<\_ACEOF
3141 { echo "$as_me:$LINENO: checking for inline" >&5
3142 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3143 save_CFLAGS
="$CFLAGS"
3145 if test "${ac_cv_lbl_inline+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 for ac_lbl_inline
in inline __inline__ __inline
3153 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #define inline $ac_lbl_inline
3160 static inline struct iltest *foo(void);
3166 static inline struct iltest *
3169 static struct iltest xxx;
3181 rm -f conftest.
$ac_objext
3182 if { (ac_try
="$ac_compile"
3184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 ac_lbl_cc_inline=yes
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 if test "$ac_lbl_cc_inline" = yes ; then
3211 if test "$ac_lbl_cc_inline" = yes ; then
3212 ac_cv_lbl_inline=$ac_lbl_inline
3216 CFLAGS="$save_CFLAGS"
3217 if test ! -z "$ac_cv_lbl_inline" ; then
3218 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3219 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3225 cat >>confdefs.h <<_ACEOF
3226 #define inline $ac_cv_lbl_inline
3230 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3231 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3232 if test "${ac_cv___attribute__+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3245 static void foo(void) __attribute__ ((noreturn));
3254 main(int argc, char **argv)
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3264 *) ac_try_echo
=$ac_try;;
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3269 grep -v '^ *+' conftest.er1
>conftest.err
3271 cat conftest.err
>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.
$ac_objext; then
3277 ac_cv___attribute__
=yes
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.
$ac_ext >&5
3282 ac_cv___attribute__
=no
3285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3288 if test "$ac_cv___attribute__" = "yes"; then
3290 cat >>confdefs.h
<<\_ACEOF
3291 #define HAVE___ATTRIBUTE__ 1
3294 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3296 V_DEFS
="$V_DEFS -D_U_=\"\""
3298 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3299 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3301 if test "$ac_cv___attribute__" = "yes"; then
3303 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3304 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3305 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >conftest.
$ac_ext <<_ACEOF
3312 cat confdefs.h
>>conftest.
$ac_ext
3313 cat >>conftest.
$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3318 extern int (*foo)(const char *fmt, ...)
3319 __attribute__ ((format (printf, 1, 2)));
3322 main(int argc, char **argv)
3324 (*foo)("%s", "test");
3328 rm -f conftest.
$ac_objext
3329 if { (ac_try
="$ac_compile"
3331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 ac_cv___attribute___format_function_pointer=yes
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_cv___attribute___format_function_pointer=no
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3358 cat >>confdefs.h <<\_ACEOF
3359 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3363 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3364 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3373 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3374 # On Suns, sometimes $CPP names a directory.
3375 if test -n "$CPP" && test -d "$CPP"; then
3378 if test -z "$CPP"; then
3379 if test "${ac_cv_prog_CPP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 # Double quotes because CPP needs to be expanded
3383 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3386 for ac_c_preproc_warn_flag in '' yes
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391 # <limits.h> exists even on freestanding compilers.
3392 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3401 # include <limits.h>
3403 # include <assert.h>
3407 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3410 *) ac_try_echo
=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1
>conftest.err
3417 cat conftest.err
>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev
/null
&& {
3420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.
$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.
$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.
$ac_ext <<_ACEOF
3439 cat confdefs.h
>>conftest.
$ac_ext
3440 cat >>conftest.
$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3471 rm -f conftest.err conftest.$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.
$ac_ext
3476 if $ac_preproc_ok; then
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3491 for ac_c_preproc_warn_flag
in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.
$ac_ext <<_ACEOF
3502 cat confdefs.h
>>conftest.
$ac_ext
3503 cat >>conftest.
$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 # Broken: fails on valid input.
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3552 *) ac_try_echo
=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1
>conftest.err
3559 cat conftest.err
>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev
/null
&& {
3562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3565 # Broken: success on invalid input.
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.
$ac_ext >&5
3571 # Passes both tests.
3576 rm -f conftest.err conftest.
$ac_ext
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.
$ac_ext
3581 if $ac_preproc_ok; then
3584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details." >&5
3586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." >&2;}
3588 { (exit 1); exit 1; }; }
3592 ac_cpp
='$CPP $CPPFLAGS'
3593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3598 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3599 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3600 if test "${ac_cv_path_GREP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 # Extract the first word of "grep ggrep" to use in msg output
3604 if test -z "$GREP"; then
3605 set dummy
grep ggrep
; ac_prog_name
=$2
3606 if test "${ac_cv_path_GREP+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 ac_path_GREP_found
=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3612 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3615 test -z "$as_dir" && as_dir
=.
3616 for ac_prog
in grep ggrep
; do
3617 for ac_exec_ext
in '' $ac_executable_extensions; do
3618 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3620 # Check for GNU ac_path_GREP and select it if it is found.
3621 # Check for GNU $ac_path_GREP
3622 case `"$ac_path_GREP" --version 2>&1` in
3624 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 echo 'GREP' >> "conftest.nl"
3634 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3635 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3636 ac_count
=`expr $ac_count + 1`
3637 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_GREP
="$ac_path_GREP"
3640 ac_path_GREP_max
=$ac_count
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3645 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3649 $ac_path_GREP_found && break 3
3659 GREP
="$ac_cv_path_GREP"
3660 if test -z "$GREP"; then
3661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3663 { (exit 1); exit 1; }; }
3667 ac_cv_path_GREP
=$GREP
3672 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3673 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3674 GREP
="$ac_cv_path_GREP"
3677 { echo "$as_me:$LINENO: checking for egrep" >&5
3678 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3679 if test "${ac_cv_path_EGREP+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3683 then ac_cv_path_EGREP
="$GREP -E"
3685 # Extract the first word of "egrep" to use in msg output
3686 if test -z "$EGREP"; then
3687 set dummy
egrep; ac_prog_name
=$2
3688 if test "${ac_cv_path_EGREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 ac_path_EGREP_found
=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3697 test -z "$as_dir" && as_dir
=.
3698 for ac_prog
in egrep; do
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3702 # Check for GNU ac_path_EGREP and select it if it is found.
3703 # Check for GNU $ac_path_EGREP
3704 case `"$ac_path_EGREP" --version 2>&1` in
3706 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'EGREP' >> "conftest.nl"
3716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3717 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3718 ac_count
=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_EGREP
="$ac_path_EGREP"
3722 ac_path_EGREP_max
=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3731 $ac_path_EGREP_found && break 3
3741 EGREP
="$ac_cv_path_EGREP"
3742 if test -z "$EGREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3749 ac_cv_path_EGREP
=$EGREP
3755 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3756 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3757 EGREP
="$ac_cv_path_EGREP"
3760 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.
$ac_ext <<_ACEOF
3768 cat confdefs.h
>>conftest.
$ac_ext
3769 cat >>conftest.
$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3784 rm -f conftest.
$ac_objext
3785 if { (ac_try
="$ac_compile"
3787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_compile") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } && {
3798 test -z "$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3800 } && test -s conftest.$ac_objext; then
3801 ac_cv_header_stdc=yes
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_cv_header_stdc=no
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test $ac_cv_header_stdc = yes; then
3812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "memchr" >/dev/null 2>&1; then
3826 ac_cv_header_stdc=no
3832 if test $ac_cv_header_stdc = yes; then
3833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 $EGREP "free" >/dev/null 2>&1; then
3847 ac_cv_header_stdc=no
3853 if test $ac_cv_header_stdc = yes; then
3854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3855 if test "$cross_compiling" = yes; then
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3866 #if ((' ' & 0x0FF) == 0x020)
3867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3870 # define ISLOWER(c) \
3871 (('a' <= (c) && (c) <= 'i') \
3872 || ('j' <= (c) && (c) <= 'r') \
3873 || ('s' <= (c) && (c) <= 'z'))
3874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3882 for (i = 0; i < 256; i++)
3883 if (XOR (islower (i), ISLOWER (i))
3884 || toupper (i) != TOUPPER (i))
3889 rm -f conftest$ac_exeext
3890 if { (ac_try="$ac_link"
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_link") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3900 { (case "(($ac_try" in
3901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3911 echo "$as_me: program exited with status $ac_status" >&5
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3916 ac_cv_header_stdc=no
3918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3924 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3925 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3926 if test $ac_cv_header_stdc = yes; then
3928 cat >>confdefs.h <<\_ACEOF
3929 #define STDC_HEADERS 1
3934 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3944 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3945 inttypes.h stdint.h unistd.h
3947 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 $ac_includes_default
3961 #include <$ac_header>
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3967 *) ac_try_echo
=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3972 grep -v '^ *+' conftest.er1
>conftest.err
3974 cat conftest.err
>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.
$ac_objext; then
3980 eval "$as_ac_Header=yes"
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.
$ac_ext >&5
3985 eval "$as_ac_Header=no"
3988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3990 ac_res
=`eval echo '${'$as_ac_Header'}'`
3991 { echo "$as_me:$LINENO: result: $ac_res" >&5
3992 echo "${ECHO_T}$ac_res" >&6; }
3993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3994 cat >>confdefs.h
<<_ACEOF
3995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4006 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
4008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4012 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 ac_res
=`eval echo '${'$as_ac_Header'}'`
4016 { echo "$as_me:$LINENO: result: $ac_res" >&5
4017 echo "${ECHO_T}$ac_res" >&6; }
4019 # Is the header compilable?
4020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4022 cat >conftest.
$ac_ext <<_ACEOF
4025 cat confdefs.h
>>conftest.
$ac_ext
4026 cat >>conftest.
$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4029 #include <$ac_header>
4031 rm -f conftest.
$ac_objext
4032 if { (ac_try
="$ac_compile"
4034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 ac_header_compiler=yes
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_header_compiler=no
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4058 echo "${ECHO_T}$ac_header_compiler" >&6; }
4060 # Is the header present?
4061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <$ac_header>
4071 if { (ac_try="$ac_cpp conftest.$ac_ext"
4073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4074 *) ac_try_echo
=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1
>conftest.err
4081 cat conftest.err
>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev
/null
&& {
4084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4087 ac_header_preproc
=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.
$ac_ext >&5
4092 ac_header_preproc
=no
4095 rm -f conftest.err conftest.
$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4097 echo "${ECHO_T}$ac_header_preproc" >&6; }
4099 # So? What about this header?
4100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4106 ac_header_preproc
=yes
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 eval "$as_ac_Header=\$ac_header_preproc"
4131 ac_res
=`eval echo '${'$as_ac_Header'}'`
4132 { echo "$as_me:$LINENO: result: $ac_res" >&5
4133 echo "${ECHO_T}$ac_res" >&6; }
4136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4137 cat >>confdefs.h
<<_ACEOF
4138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 for ac_header
in net
/pfvar.h
4148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <sys/types.h>
4161 #include <sys/socket.h>
4164 #include <$ac_header>
4166 rm -f conftest.
$ac_objext
4167 if { (ac_try
="$ac_compile"
4169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && {
4180 test -z "$ac_c_werror_flag" ||
4181 test ! -s conftest.err
4182 } && test -s conftest.$ac_objext; then
4183 eval "$as_ac_Header=yes"
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 eval "$as_ac_Header=no"
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_res=`eval echo '${'$as_ac_Header'}'`
4194 { echo "$as_me:$LINENO: result: $ac_res" >&5
4195 echo "${ECHO_T}$ac_res" >&6; }
4196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197 cat >>confdefs.h <<_ACEOF
4198 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4205 if test "$ac_cv_header_net_pfvar_h" = yes; then
4206 LOCALSRC="print-pflog.c $LOCALSRC"
4209 for ac_header in netinet/if_ether.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 #include <sys/socket.h>
4226 #include <$ac_header>
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4232 *) ac_try_echo
=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1
>conftest.err
4239 cat conftest.err
>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.
$ac_objext; then
4245 eval "$as_ac_Header=yes"
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.
$ac_ext >&5
4250 eval "$as_ac_Header=no"
4253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4255 ac_res
=`eval echo '${'$as_ac_Header'}'`
4256 { echo "$as_me:$LINENO: result: $ac_res" >&5
4257 echo "${ECHO_T}$ac_res" >&6; }
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h
<<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4267 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4269 # The simple test didn't work.
4270 # Do we need to include <net/if.h> first?
4271 # Unset ac_cv_header_netinet_if_ether_h so we don't
4272 # treat the previous failure as a cached value and
4273 # suppress the next test.
4275 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4276 echo "$as_me: Rechecking with some additional includes" >&6;}
4277 unset ac_cv_header_netinet_if_ether_h
4279 for ac_header
in netinet
/if_ether.h
4281 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4284 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.
$ac_ext <<_ACEOF
4290 cat confdefs.h
>>conftest.
$ac_ext
4291 cat >>conftest.
$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 #include <sys/socket.h>
4295 #include <netinet/in.h>
4300 #include <$ac_header>
4302 rm -f conftest.
$ac_objext
4303 if { (ac_try
="$ac_compile"
4305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_compile") 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && {
4316 test -z "$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 } && test -s conftest.$ac_objext; then
4319 eval "$as_ac_Header=yes"
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 eval "$as_ac_Header=no"
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_res=`eval echo '${'$as_ac_Header'}'`
4330 { echo "$as_me:$LINENO: result: $ac_res" >&5
4331 echo "${ECHO_T}$ac_res" >&6; }
4332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4343 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4344 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4345 if test "${ac_cv_header_time+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 cat >conftest.$ac_ext <<_ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <sys/types.h>
4355 #include <sys/time.h>
4361 if ((struct tm *) 0)
4367 rm -f conftest.$ac_objext
4368 if { (ac_try="$ac_compile"
4370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4371 *) ac_try_echo
=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_compile") 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && {
4381 test -z "$ac_c_werror_flag" ||
4382 test ! -s conftest.err
4383 } && test -s conftest.
$ac_objext; then
4384 ac_cv_header_time
=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.
$ac_ext >&5
4389 ac_cv_header_time
=no
4392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4394 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4395 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4396 if test $ac_cv_header_time = yes; then
4398 cat >>confdefs.h
<<\_ACEOF
4399 #define TIME_WITH_SYS_TIME 1
4408 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4409 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4410 if test "$cross_compiling" = yes; then
4411 if test "${ac_cv_linux_vers+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 ac_cv_linux_vers
=unknown
4418 if test "${ac_cv_linux_vers+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_cv_linux_vers
=`uname -r 2>&1 | \
4422 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4426 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4427 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4428 if test $ac_cv_linux_vers = unknown
; then
4429 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4430 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4431 { (exit 1); exit 1; }; }
4433 if test $ac_cv_linux_vers -lt 2 ; then
4434 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4435 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4436 { (exit 1); exit 1; }; }
4446 # Check whether --with-smi was given.
4447 if test "${with_smi+set}" = set; then
4454 if test "x$with_smi" != "xno" ; then
4456 for ac_header
in smi.h
4458 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4462 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 ac_res
=`eval echo '${'$as_ac_Header'}'`
4466 { echo "$as_me:$LINENO: result: $ac_res" >&5
4467 echo "${ECHO_T}$ac_res" >&6; }
4469 # Is the header compilable?
4470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4472 cat >conftest.
$ac_ext <<_ACEOF
4475 cat confdefs.h
>>conftest.
$ac_ext
4476 cat >>conftest.
$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 $ac_includes_default
4479 #include <$ac_header>
4481 rm -f conftest.
$ac_objext
4482 if { (ac_try
="$ac_compile"
4484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_compile") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && {
4495 test -z "$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4497 } && test -s conftest.$ac_objext; then
4498 ac_header_compiler=yes
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_header_compiler=no
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508 echo "${ECHO_T}$ac_header_compiler" >&6; }
4510 # Is the header present?
4511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <$ac_header>
4521 if { (ac_try="$ac_cpp conftest.$ac_ext"
4523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4524 *) ac_try_echo
=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1
>conftest.err
4531 cat conftest.err
>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } >/dev
/null
&& {
4534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4537 ac_header_preproc
=yes
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 ac_header_preproc
=no
4545 rm -f conftest.err conftest.
$ac_ext
4546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4547 echo "${ECHO_T}$ac_header_preproc" >&6; }
4549 # So? What about this header?
4550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4556 ac_header_preproc
=yes
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4576 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 eval "$as_ac_Header=\$ac_header_preproc"
4581 ac_res
=`eval echo '${'$as_ac_Header'}'`
4582 { echo "$as_me:$LINENO: result: $ac_res" >&5
4583 echo "${ECHO_T}$ac_res" >&6; }
4586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4587 cat >>confdefs.h
<<_ACEOF
4588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4597 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4598 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_check_lib_save_LIBS
=$LIBS
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 cat confdefs.h
>>conftest.
$ac_ext
4607 cat >>conftest.
$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4610 /* Override any GCC internal prototype to avoid an error.
4611 Use char because int might match the return type of a GCC
4612 builtin and then its argument prototype would still apply. */
4625 rm -f conftest.
$ac_objext conftest
$ac_exeext
4626 if { (ac_try
="$ac_link"
4628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_link") 2>conftest.er1
4634 grep -v '^ *+' conftest.er1 >conftest.err
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && {
4639 test -z "$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 } && test -s conftest$ac_exeext &&
4642 $as_test_x conftest$ac_exeext; then
4643 ac_cv_lib_smi_smiInit=yes
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 ac_cv_lib_smi_smiInit=no
4651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4652 conftest$ac_exeext conftest.$ac_ext
4653 LIBS=$ac_check_lib_save_LIBS
4655 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4656 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4657 if test $ac_cv_lib_smi_smiInit = yes; then
4658 cat >>confdefs.h <<_ACEOF
4659 #define HAVE_LIBSMI 1
4666 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4668 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4669 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4670 if test "$cross_compiling" = yes; then
4671 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4672 echo "${ECHO_T}not when cross-compiling" >&6; }
4676 cat >conftest.$ac_ext <<_ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 /* libsmi available check */
4686 int current, revision, age, n;
4687 const int required = 2;
4690 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4692 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4695 if (required < current - age || required > current)
4701 rm -f conftest$ac_exeext
4702 if { (ac_try="$ac_link"
4704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4705 *) ac_try_echo
=$ac_try;;
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_link") 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4712 { (case "(($ac_try" in
4713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4723 cat >>confdefs.h <<\_ACEOF
4729 echo "$as_me: program exited with status $ac_status" >&5
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4735 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4736 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4737 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4738 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4739 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4740 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4741 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4742 echo "${ECHO_T}no - too old" >&6; } ;;
4743 *) { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; } ;;
4748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4756 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4757 # Check whether --enable-smb was given.
4758 if test "${enable_smb+set}" = set; then
4759 enableval=$enable_smb;
4764 case "$enableval" in
4765 yes) { echo "$as_me:$LINENO: result: yes" >&5
4766 echo "${ECHO_T}yes" >&6; }
4767 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4768 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4769 cat >>confdefs.h <<\_ACEOF
4770 #define TCPDUMP_DO_SMB 1
4773 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4775 *) { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4781 # Check whether --with-user was given.
4782 if test "${with_user+set}" = set; then
4786 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4787 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4788 if test ! -z "$with_user" ; then
4789 cat >>confdefs.h <<_ACEOF
4790 #define WITH_USER "$withval"
4793 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4794 echo "${ECHO_T}to \"$withval\"" >&6; }
4796 { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4801 # Check whether --with-chroot was given.
4802 if test "${with_chroot+set}" = set; then
4803 withval=$with_chroot;
4806 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4807 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4808 if test ! -z "$with_chroot" ; then
4809 cat >>confdefs.h <<_ACEOF
4810 #define WITH_CHROOT "$withval"
4813 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4814 echo "${ECHO_T}to \"$withval\"" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4820 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4821 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4822 # Check whether --enable-ipv6 was given.
4823 if test "${enable_ipv6+set}" = set; then
4824 enableval=$enable_ipv6; case "$enableval" in
4825 yes) { echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6; }
4827 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"
4828 cat >>confdefs.h <<\_ACEOF
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4841 if test "$cross_compiling" = yes; then
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 /* AF_INET6 available check */
4854 #include <sys/types.h>
4855 #include <sys/socket.h>
4858 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4865 rm -f conftest$ac_exeext
4866 if { (ac_try="$ac_link"
4868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4869 *) ac_try_echo
=$ac_try;;
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_link") 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4876 { (case "(($ac_try" in
4877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_try") 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 { echo "$as_me:$LINENO: result: yes" >&5
4886 echo "${ECHO_T}yes" >&6; }
4887 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"
4888 cat >>confdefs.h <<\_ACEOF
4894 echo "$as_me: program exited with status $ac_status" >&5
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 if test "$ipv6" = "yes"; then
4915 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4916 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4917 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <netinet/in.h>
4927 #ifdef IPV6_INRIA_VERSION
4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "yes" >/dev/null 2>&1; then
4934 CFLAGS="-DINET6 $CFLAGS"
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <netinet/in.h>
4951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4952 $EGREP "yes" >/dev/null 2>&1; then
4955 ipv6libdir=/usr/local/v6/lib;
4957 CFLAGS="-DINET6 $CFLAGS"
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <features.h>
4970 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4975 $EGREP "yes" >/dev/null 2>&1; then
4977 CFLAGS="-DINET6 $CFLAGS"
4983 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4986 ipv6libdir=/usr/inet6/lib
4988 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <sys/param.h>
4999 #ifdef _TOSHIBA_INET6
5003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5004 $EGREP "yes" >/dev/null 2>&1; then
5007 ipv6libdir=/usr/local/v6/lib;
5008 CFLAGS="-DINET6 $CFLAGS"
5014 cat >conftest.$ac_ext <<_ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include </usr/local/v6/include/sys/v6config.h>
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "yes" >/dev/null 2>&1; then
5029 ipv6libdir=/usr/local/v6/lib;
5030 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/param.h>
5043 #ifdef _ZETA_MINAMI_INET6
5047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "yes" >/dev/null 2>&1; then
5051 ipv6libdir=/usr/local/v6/lib;
5052 CFLAGS="-DINET6 $CFLAGS"
5058 if test "$ipv6type" != "unknown"; then
5062 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5063 echo "${ECHO_T}$ipv6type" >&6; }
5066 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5067 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5068 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5069 echo "You have $ipv6lib library, using it"
5071 if test "$ipv6trylibc" = "yes"; then
5072 echo "You do not have $ipv6lib library, using libc"
5074 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5075 echo "You need to fetch lib$ipv6lib.a from appropriate"
5076 echo 'ipv6 kit and compile beforehand.'
5083 if test "$ipv6" = "yes"; then
5085 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5086 # function in libc; there are "ngetaddrinfo()" and
5087 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5088 # "getaddrinfo" to be either "ngetaddrinfo" or
5089 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5090 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5092 # So this test doesn't work on Tru64 5.1, and possibly
5093 # on other 5.x releases. This causes the configure
5094 # script to become confused, and results in libpcap
5095 # being unbuildable.
5097 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5098 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5099 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_func_search_save_LIBS=$LIBS
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5110 /* Override any GCC internal prototype to avoid an error.
5111 Use char because int might match the return type of a GCC
5112 builtin and then its argument prototype would still apply. */
5116 char getaddrinfo ();
5120 return getaddrinfo ();
5125 for ac_lib in '' socket; do
5126 if test -z "$ac_lib"; then
5127 ac_res="none required"
5130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (ac_try="$ac_link"
5135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5136 *) ac_try_echo
=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_link") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1
>conftest.err
5143 cat conftest.err
>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest
$ac_exeext &&
5149 $as_test_x conftest
$ac_exeext; then
5150 ac_cv_search_getaddrinfo
=$ac_res
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.
$ac_ext >&5
5158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5160 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5164 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5167 ac_cv_search_getaddrinfo
=no
5170 LIBS
=$ac_func_search_save_LIBS
5172 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5173 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5174 ac_res
=$ac_cv_search_getaddrinfo
5175 if test "$ac_res" != no
; then
5176 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5177 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5178 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5179 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test "$cross_compiling" = yes; then
5183 td_cv_buggygetaddrinfo
=yes
5185 cat >conftest.
$ac_ext <<_ACEOF
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 #include <sys/types.h>
5195 #include <sys/socket.h>
5196 #include <netinet/in.h>
5200 int passive, gaierr, inet4 = 0, inet6 = 0;
5201 struct addrinfo hints, *ai, *aitop;
5202 char straddr[INET6_ADDRSTRLEN], strport[16];
5204 for (passive = 0; passive <= 1; passive++) {
5205 memset(&hints, 0, sizeof(hints));
5206 hints.ai_family = AF_UNSPEC;
5207 hints.ai_flags = passive ? AI_PASSIVE : 0;
5208 hints.ai_socktype = SOCK_STREAM;
5209 hints.ai_protocol = IPPROTO_TCP;
5210 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5211 (void)gai_strerror(gaierr);
5214 for (ai = aitop; ai; ai = ai->ai_next) {
5215 if (ai->ai_addr == NULL ||
5216 ai->ai_addrlen == 0 ||
5217 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5218 straddr, sizeof(straddr), strport, sizeof(strport),
5219 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5222 switch (ai->ai_family) {
5224 if (strcmp(strport, "54321") != 0) {
5228 if (strcmp(straddr, "0.0.0.0") != 0) {
5232 if (strcmp(straddr, "127.0.0.1") != 0) {
5239 if (strcmp(strport, "54321") != 0) {
5243 if (strcmp(straddr, "::") != 0) {
5247 if (strcmp(straddr, "::1") != 0) {
5264 /* another family support? */
5270 /* supported family should be 2, unsupported family should be 0 */
5271 if (!(inet4 == 0 || inet4 == 2))
5273 if (!(inet6 == 0 || inet6 == 2))
5277 freeaddrinfo(aitop);
5282 freeaddrinfo(aitop);
5287 rm -f conftest
$ac_exeext
5288 if { (ac_try
="$ac_link"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5298 { (case "(($ac_try" in
5299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5300 *) ac_try_echo
=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_try") 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 td_cv_buggygetaddrinfo
=no
5309 echo "$as_me: program exited with status $ac_status" >&5
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.
$ac_ext >&5
5314 td_cv_buggygetaddrinfo
=yes
5316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5322 if test "$td_cv_buggygetaddrinfo" = no
; then
5323 { echo "$as_me:$LINENO: result: good" >&5
5324 echo "${ECHO_T}good" >&6; }
5326 { echo "$as_me:$LINENO: result: buggy" >&5
5327 echo "${ECHO_T}buggy" >&6; }
5330 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5332 # XXX - it doesn't appear that "ipv6type" can ever be
5333 # set to "linux". Should this be testing for
5334 # "linux-glibc", or for that *or* "linux-libinet6"?
5335 # If the latter, note that "linux-libinet6" is also
5336 # the type given to some non-Linux OSes.
5338 if test "$ipv6type" != "linux"; then
5339 echo 'Fatal: You must get working getaddrinfo() function.'
5340 echo ' or you can specify "--disable-ipv6"'.
5343 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5344 echo ' Better upgrade your system library to newest version'
5345 echo ' of GNU C library (aka glibc).'
5352 for ac_func
in getnameinfo
5354 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5357 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5368 #define $ac_func innocuous_$ac_func
5370 /* System header to define __stub macros and hopefully few prototypes,
5371 which can conflict with char $ac_func (); below.
5372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 <limits.h> exists even on freestanding compilers. */
5376 # include <limits.h>
5378 # include <assert.h>
5383 /* Override any GCC internal prototype to avoid an error.
5384 Use char because int might match the return type of a GCC
5385 builtin and then its argument prototype would still apply. */
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined __stub_$ac_func || defined __stub___$ac_func
5405 rm -f conftest.
$ac_objext conftest
$ac_exeext
5406 if { (ac_try
="$ac_link"
5408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_link") 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest$ac_exeext &&
5422 $as_test_x conftest$ac_exeext; then
5423 eval "$as_ac_var=yes"
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 eval "$as_ac_var=no"
5431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5432 conftest$ac_exeext conftest.$ac_ext
5434 ac_res=`eval echo '${'$as_ac_var'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_var'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5443 case " $LIBOBJS " in
5444 *" $ac_func.$ac_objext "* ) ;;
5445 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5455 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5456 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5457 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 cat >conftest.$ac_ext <<_ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <netdnet/dnetdb.h>
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5471 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5473 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5478 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5479 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5480 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5481 cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5487 { echo "$as_me:$LINENO: checking for char" >&5
5488 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5489 if test "${ac_cv_type_char+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5499 typedef char ac__type_new_;
5503 if ((ac__type_new_ *) 0)
5505 if (sizeof (ac__type_new_))
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5515 *) ac_try_echo
=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1
>conftest.err
5522 cat conftest.err
>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.
$ac_objext; then
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.
$ac_ext >&5
5536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5538 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5539 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5541 # The cast to long int works around a bug in the HP C Compiler
5542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5544 # This bug is HP SR number 8606223364.
5545 { echo "$as_me:$LINENO: checking size of char" >&5
5546 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5547 if test "${ac_cv_sizeof_char+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 if test "$cross_compiling" = yes; then
5551 # Depending upon the size, compute the lo and hi bounds.
5552 cat >conftest.
$ac_ext <<_ACEOF
5555 cat confdefs.h
>>conftest.
$ac_ext
5556 cat >>conftest.
$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5559 typedef char ac__type_sizeof_;
5563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5570 rm -f conftest.
$ac_objext
5571 if { (ac_try
="$ac_compile"
5573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5596 typedef char ac__type_sizeof_;
5600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5611 *) ac_try_echo
=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.
$ac_objext; then
5624 ac_hi
=$ac_mid; break
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5629 ac_lo
=`expr $ac_mid + 1`
5630 if test $ac_lo -le $ac_mid; then
5634 ac_mid
=`expr 2 '*' $ac_mid + 1`
5637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.
$ac_ext >&5
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
5650 typedef char ac__type_sizeof_;
5654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5661 rm -f conftest.
$ac_objext
5662 if { (ac_try
="$ac_compile"
5664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 typedef char ac__type_sizeof_;
5691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5702 *) ac_try_echo
=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5707 grep -v '^ *+' conftest.er1
>conftest.err
5709 cat conftest.err
>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.
$ac_objext; then
5715 ac_lo
=$ac_mid; break
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.
$ac_ext >&5
5720 ac_hi
=`expr '(' $ac_mid ')' - 1`
5721 if test $ac_mid -le $ac_hi; then
5725 ac_mid
=`expr 2 '*' $ac_mid`
5728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.
$ac_ext >&5
5737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5741 # Binary search between lo and hi bounds.
5742 while test "x$ac_lo" != "x$ac_hi"; do
5743 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5744 cat >conftest.
$ac_ext <<_ACEOF
5747 cat confdefs.h
>>conftest.
$ac_ext
5748 cat >>conftest.
$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 typedef char ac__type_sizeof_;
5755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5762 rm -f conftest.
$ac_objext
5763 if { (ac_try
="$ac_compile"
5765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compile") 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest.$ac_objext; then
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_lo=`expr '(' $ac_mid ')' + 1`
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ?*) ac_cv_sizeof_char=$ac_lo;;
5791 '') if test "$ac_cv_type_char" = yes; then
5792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5793 See \`config.log
' for more details." >&5
5794 echo "$as_me: error: cannot compute sizeof (char)
5795 See \`config.log' for more details.
" >&2;}
5796 { (exit 77); exit 77; }; }
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 $ac_includes_default
5809 typedef char ac__type_sizeof_;
5810 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5811 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5818 FILE *f = fopen ("conftest.val
", "w
");
5821 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5823 long int i = longval ();
5824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5826 fprintf (f, "%ld
\n", i);
5830 unsigned long int i = ulongval ();
5831 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5833 fprintf (f, "%lu
\n", i);
5835 return ferror (f) || fclose (f) != 0;
5841 rm -f conftest$ac_exeext
5842 if { (ac_try="$ac_link"
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>&5
5850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5852 { (case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_try") 2>&5
5859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_sizeof_char=`cat conftest.val`
5863 echo "$as_me: program exited with status
$ac_status" >&5
5864 echo "$as_me: failed program was
:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5868 if test "$ac_cv_type_char" = yes; then
5869 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5870 See \
`config.log' for more details." >&5
5871 echo "$as_me: error: cannot compute sizeof (char)
5872 See \`config.log
' for more details." >&2;}
5873 { (exit 77); exit 77; }; }
5878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5882 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5883 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5887 cat >>confdefs.h <<_ACEOF
5888 #define SIZEOF_CHAR $ac_cv_sizeof_char
5892 { echo "$as_me:$LINENO: checking for short" >&5
5893 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5894 if test "${ac_cv_type_short+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 typedef short ac__type_new_;
5908 if ((ac__type_new_ *) 0)
5910 if (sizeof (ac__type_new_))
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5925 grep -v '^
*+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 ac_cv_type_short=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's
/^
/|
/' conftest.$ac_ext >&5
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5944 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { echo "$as_me:$LINENO: checking size of short" >&5
5951 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5952 if test "${ac_cv_sizeof_short+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 if test "$cross_compiling" = yes; then
5956 # Depending upon the size, compute the lo and hi bounds.
5957 cat >conftest.
$ac_ext <<_ACEOF
5960 cat confdefs.h
>>conftest.
$ac_ext
5961 cat >>conftest.
$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 $ac_includes_default
5964 typedef short ac__type_sizeof_;
5968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5975 rm -f conftest.
$ac_objext
5976 if { (ac_try
="$ac_compile"
5978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6001 typedef short ac__type_sizeof_;
6005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6016 *) ac_try_echo
=$ac_try;;
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1
>conftest.err
6023 cat conftest.err
>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.
$ac_objext; then
6029 ac_hi
=$ac_mid; break
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6034 ac_lo
=`expr $ac_mid + 1`
6035 if test $ac_lo -le $ac_mid; then
6039 ac_mid
=`expr 2 '*' $ac_mid + 1`
6042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.
$ac_ext >&5
6048 cat >conftest.
$ac_ext <<_ACEOF
6051 cat confdefs.h
>>conftest.
$ac_ext
6052 cat >>conftest.
$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 typedef short ac__type_sizeof_;
6059 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6066 rm -f conftest.
$ac_objext
6067 if { (ac_try
="$ac_compile"
6069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 typedef short ac__type_sizeof_;
6096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6107 *) ac_try_echo
=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.
$ac_objext; then
6120 ac_lo
=$ac_mid; break
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 ac_hi
=`expr '(' $ac_mid ')' - 1`
6126 if test $ac_mid -le $ac_hi; then
6130 ac_mid
=`expr 2 '*' $ac_mid`
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6146 # Binary search between lo and hi bounds.
6147 while test "x$ac_lo" != "x$ac_hi"; do
6148 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6149 cat >conftest.
$ac_ext <<_ACEOF
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 $ac_includes_default
6156 typedef short ac__type_sizeof_;
6160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6167 rm -f conftest.
$ac_objext
6168 if { (ac_try
="$ac_compile"
6170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_lo=`expr '(' $ac_mid ')' + 1`
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 ?*) ac_cv_sizeof_short=$ac_lo;;
6196 '') if test "$ac_cv_type_short" = yes; then
6197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6198 See \`config.log
' for more details." >&5
6199 echo "$as_me: error: cannot compute sizeof (short)
6200 See \`config.log' for more details.
" >&2;}
6201 { (exit 77); exit 77; }; }
6203 ac_cv_sizeof_short=0
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 typedef short ac__type_sizeof_;
6215 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6216 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6223 FILE *f = fopen ("conftest.val
", "w
");
6226 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6228 long int i = longval ();
6229 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6231 fprintf (f, "%ld
\n", i);
6235 unsigned long int i = ulongval ();
6236 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6238 fprintf (f, "%lu
\n", i);
6240 return ferror (f) || fclose (f) != 0;
6246 rm -f conftest$ac_exeext
6247 if { (ac_try="$ac_link"
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_link") 2>&5
6255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_sizeof_short=`cat conftest.val`
6268 echo "$as_me: program exited with status
$ac_status" >&5
6269 echo "$as_me: failed program was
:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6273 if test "$ac_cv_type_short" = yes; then
6274 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6275 See \
`config.log' for more details." >&5
6276 echo "$as_me: error: cannot compute sizeof (short)
6277 See \`config.log
' for more details." >&2;}
6278 { (exit 77); exit 77; }; }
6280 ac_cv_sizeof_short=0
6283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6287 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6288 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6292 cat >>confdefs.h <<_ACEOF
6293 #define SIZEOF_SHORT $ac_cv_sizeof_short
6297 { echo "$as_me:$LINENO: checking for int" >&5
6298 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6299 if test "${ac_cv_type_int+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 $ac_includes_default
6309 typedef int ac__type_new_;
6313 if ((ac__type_new_ *) 0)
6315 if (sizeof (ac__type_new_))
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6330 grep -v '^
*+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6340 echo "$as_me: failed program was:" >&5
6341 sed 's
/^
/|
/' conftest.$ac_ext >&5
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6349 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6351 # The cast to long int works around a bug in the HP C Compiler
6352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6354 # This bug is HP SR number 8606223364.
6355 { echo "$as_me:$LINENO: checking size of int" >&5
6356 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6357 if test "${ac_cv_sizeof_int+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test "$cross_compiling" = yes; then
6361 # Depending upon the size, compute the lo and hi bounds.
6362 cat >conftest.
$ac_ext <<_ACEOF
6365 cat confdefs.h
>>conftest.
$ac_ext
6366 cat >>conftest.
$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 $ac_includes_default
6369 typedef int ac__type_sizeof_;
6373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6380 rm -f conftest.
$ac_objext
6381 if { (ac_try
="$ac_compile"
6383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406 typedef int ac__type_sizeof_;
6410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6421 *) ac_try_echo
=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1
>conftest.err
6428 cat conftest.err
>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.
$ac_objext; then
6434 ac_hi
=$ac_mid; break
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 ac_lo
=`expr $ac_mid + 1`
6440 if test $ac_lo -le $ac_mid; then
6444 ac_mid
=`expr 2 '*' $ac_mid + 1`
6447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.
$ac_ext >&5
6453 cat >conftest.
$ac_ext <<_ACEOF
6456 cat confdefs.h
>>conftest.
$ac_ext
6457 cat >>conftest.
$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6460 typedef int ac__type_sizeof_;
6464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6471 rm -f conftest.
$ac_objext
6472 if { (ac_try
="$ac_compile"
6474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1 >conftest.err
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 $ac_includes_default
6497 typedef int ac__type_sizeof_;
6501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6512 *) ac_try_echo
=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1
>conftest.err
6519 cat conftest.err
>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.
$ac_objext; then
6525 ac_lo
=$ac_mid; break
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.
$ac_ext >&5
6530 ac_hi
=`expr '(' $ac_mid ')' - 1`
6531 if test $ac_mid -le $ac_hi; then
6535 ac_mid
=`expr 2 '*' $ac_mid`
6538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.
$ac_ext >&5
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6551 # Binary search between lo and hi bounds.
6552 while test "x$ac_lo" != "x$ac_hi"; do
6553 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6554 cat >conftest.
$ac_ext <<_ACEOF
6557 cat confdefs.h
>>conftest.
$ac_ext
6558 cat >>conftest.
$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 typedef int ac__type_sizeof_;
6565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6572 rm -f conftest.
$ac_objext
6573 if { (ac_try
="$ac_compile"
6575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_lo=`expr '(' $ac_mid ')' + 1`
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 ?*) ac_cv_sizeof_int=$ac_lo;;
6601 '') if test "$ac_cv_type_int" = yes; then
6602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6603 See \`config.log
' for more details." >&5
6604 echo "$as_me: error: cannot compute sizeof (int)
6605 See \`config.log' for more details.
" >&2;}
6606 { (exit 77); exit 77; }; }
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 typedef int ac__type_sizeof_;
6620 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6621 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6628 FILE *f = fopen ("conftest.val
", "w
");
6631 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6633 long int i = longval ();
6634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6636 fprintf (f, "%ld
\n", i);
6640 unsigned long int i = ulongval ();
6641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6643 fprintf (f, "%lu
\n", i);
6645 return ferror (f) || fclose (f) != 0;
6651 rm -f conftest$ac_exeext
6652 if { (ac_try="$ac_link"
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_link") 2>&5
6660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6662 { (case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_try") 2>&5
6669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_sizeof_int=`cat conftest.val`
6673 echo "$as_me: program exited with status
$ac_status" >&5
6674 echo "$as_me: failed program was
:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6678 if test "$ac_cv_type_int" = yes; then
6679 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6680 See \
`config.log' for more details." >&5
6681 echo "$as_me: error: cannot compute sizeof (int)
6682 See \`config.log
' for more details." >&2;}
6683 { (exit 77); exit 77; }; }
6688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6693 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6697 cat >>confdefs.h <<_ACEOF
6698 #define SIZEOF_INT $ac_cv_sizeof_int
6702 { echo "$as_me:$LINENO: checking for long" >&5
6703 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6704 if test "${ac_cv_type_long+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 $ac_includes_default
6714 typedef long ac__type_new_;
6718 if ((ac__type_new_ *) 0)
6720 if (sizeof (ac__type_new_))
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^
*+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6745 echo "$as_me: failed program was:" >&5
6746 sed 's
/^
/|
/' conftest.$ac_ext >&5
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6754 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6756 # The cast to long int works around a bug in the HP C Compiler
6757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6759 # This bug is HP SR number 8606223364.
6760 { echo "$as_me:$LINENO: checking size of long" >&5
6761 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6762 if test "${ac_cv_sizeof_long+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test "$cross_compiling" = yes; then
6766 # Depending upon the size, compute the lo and hi bounds.
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 typedef long ac__type_sizeof_;
6778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6785 rm -f conftest.
$ac_objext
6786 if { (ac_try
="$ac_compile"
6788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6804 cat >conftest.$ac_ext <<_ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 typedef long ac__type_sizeof_;
6815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6826 *) ac_try_echo
=$ac_try;;
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_compile") 2>conftest.er1
6831 grep -v '^ *+' conftest.er1
>conftest.err
6833 cat conftest.err
>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.
$ac_objext; then
6839 ac_hi
=$ac_mid; break
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.
$ac_ext >&5
6844 ac_lo
=`expr $ac_mid + 1`
6845 if test $ac_lo -le $ac_mid; then
6849 ac_mid
=`expr 2 '*' $ac_mid + 1`
6852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 cat >conftest.
$ac_ext <<_ACEOF
6861 cat confdefs.h
>>conftest.
$ac_ext
6862 cat >>conftest.
$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 typedef long ac__type_sizeof_;
6869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6876 rm -f conftest.
$ac_objext
6877 if { (ac_try
="$ac_compile"
6879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6895 cat >conftest.$ac_ext <<_ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6902 typedef long ac__type_sizeof_;
6906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6917 *) ac_try_echo
=$ac_try;;
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1
>conftest.err
6924 cat conftest.err
>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.
$ac_objext; then
6930 ac_lo
=$ac_mid; break
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.
$ac_ext >&5
6935 ac_hi
=`expr '(' $ac_mid ')' - 1`
6936 if test $ac_mid -le $ac_hi; then
6940 ac_mid
=`expr 2 '*' $ac_mid`
6943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.
$ac_ext >&5
6952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 # Binary search between lo and hi bounds.
6957 while test "x$ac_lo" != "x$ac_hi"; do
6958 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 typedef long ac__type_sizeof_;
6970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6977 rm -f conftest.
$ac_objext
6978 if { (ac_try
="$ac_compile"
6980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6986 grep -v '^ *+' conftest.er1 >conftest.err
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_lo=`expr '(' $ac_mid ')' + 1`
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 ?*) ac_cv_sizeof_long=$ac_lo;;
7006 '') if test "$ac_cv_type_long" = yes; then
7007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7008 See \`config.log
' for more details." >&5
7009 echo "$as_me: error: cannot compute sizeof (long)
7010 See \`config.log' for more details.
" >&2;}
7011 { (exit 77); exit 77; }; }
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 typedef long ac__type_sizeof_;
7025 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7026 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7033 FILE *f = fopen ("conftest.val
", "w
");
7036 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7038 long int i = longval ();
7039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7041 fprintf (f, "%ld
\n", i);
7045 unsigned long int i = ulongval ();
7046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7048 fprintf (f, "%lu
\n", i);
7050 return ferror (f) || fclose (f) != 0;
7056 rm -f conftest$ac_exeext
7057 if { (ac_try="$ac_link"
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_link") 2>&5
7065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7067 { (case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_try") 2>&5
7074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_sizeof_long=`cat conftest.val`
7078 echo "$as_me: program exited with status
$ac_status" >&5
7079 echo "$as_me: failed program was
:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7083 if test "$ac_cv_type_long" = yes; then
7084 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7085 See \
`config.log' for more details." >&5
7086 echo "$as_me: error: cannot compute sizeof (long)
7087 See \`config.log
' for more details." >&2;}
7088 { (exit 77); exit 77; }; }
7093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7098 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7102 cat >>confdefs.h <<_ACEOF
7103 #define SIZEOF_LONG $ac_cv_sizeof_long
7107 { echo "$as_me:$LINENO: checking for long long" >&5
7108 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7109 if test "${ac_cv_type_long_long+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 cat >conftest.$ac_ext <<_ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 typedef long long ac__type_new_;
7123 if ((ac__type_new_ *) 0)
7125 if (sizeof (ac__type_new_))
7131 rm -f conftest.$ac_objext
7132 if { (ac_try="$ac_compile"
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_compile") 2>conftest.er1
7140 grep -v '^
*+' conftest.er1 >conftest.err
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest.$ac_objext; then
7148 ac_cv_type_long_long=yes
7150 echo "$as_me: failed program was:" >&5
7151 sed 's
/^
/|
/' conftest.$ac_ext >&5
7153 ac_cv_type_long_long=no
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7159 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7161 # The cast to long int works around a bug in the HP C Compiler
7162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7164 # This bug is HP SR number 8606223364.
7165 { echo "$as_me:$LINENO: checking size of long long" >&5
7166 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7167 if test "${ac_cv_sizeof_long_long+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test "$cross_compiling" = yes; then
7171 # Depending upon the size, compute the lo and hi bounds.
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 typedef long long ac__type_sizeof_;
7183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7190 rm -f conftest.
$ac_objext
7191 if { (ac_try
="$ac_compile"
7193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7209 cat >conftest.$ac_ext <<_ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 typedef long long ac__type_sizeof_;
7220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7231 *) ac_try_echo
=$ac_try;;
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7236 grep -v '^ *+' conftest.er1
>conftest.err
7238 cat conftest.err
>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.
$ac_objext; then
7244 ac_hi
=$ac_mid; break
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.
$ac_ext >&5
7249 ac_lo
=`expr $ac_mid + 1`
7250 if test $ac_lo -le $ac_mid; then
7254 ac_mid
=`expr 2 '*' $ac_mid + 1`
7257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.
$ac_ext >&5
7263 cat >conftest.
$ac_ext <<_ACEOF
7266 cat confdefs.h
>>conftest.
$ac_ext
7267 cat >>conftest.
$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 $ac_includes_default
7270 typedef long long ac__type_sizeof_;
7274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7281 rm -f conftest.
$ac_objext
7282 if { (ac_try
="$ac_compile"
7284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307 typedef long long ac__type_sizeof_;
7311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7322 *) ac_try_echo
=$ac_try;;
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7327 grep -v '^ *+' conftest.er1
>conftest.err
7329 cat conftest.err
>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.
$ac_objext; then
7335 ac_lo
=$ac_mid; break
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.
$ac_ext >&5
7340 ac_hi
=`expr '(' $ac_mid ')' - 1`
7341 if test $ac_mid -le $ac_hi; then
7345 ac_mid
=`expr 2 '*' $ac_mid`
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.
$ac_ext >&5
7357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 # Binary search between lo and hi bounds.
7362 while test "x$ac_lo" != "x$ac_hi"; do
7363 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7364 cat >conftest.
$ac_ext <<_ACEOF
7367 cat confdefs.h
>>conftest.
$ac_ext
7368 cat >>conftest.
$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7371 typedef long long ac__type_sizeof_;
7375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7382 rm -f conftest.
$ac_objext
7383 if { (ac_try
="$ac_compile"
7385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_lo=`expr '(' $ac_mid ')' + 1`
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7411 '') if test "$ac_cv_type_long_long" = yes; then
7412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7413 See \`config.log
' for more details." >&5
7414 echo "$as_me: error: cannot compute sizeof (long long)
7415 See \`config.log' for more details.
" >&2;}
7416 { (exit 77); exit 77; }; }
7418 ac_cv_sizeof_long_long=0
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 typedef long long ac__type_sizeof_;
7430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7438 FILE *f = fopen ("conftest.val
", "w
");
7441 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7443 long int i = longval ();
7444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7446 fprintf (f, "%ld
\n", i);
7450 unsigned long int i = ulongval ();
7451 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7453 fprintf (f, "%lu
\n", i);
7455 return ferror (f) || fclose (f) != 0;
7461 rm -f conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_link") 2>&5
7470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7472 { (case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_try") 2>&5
7479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_sizeof_long_long=`cat conftest.val`
7483 echo "$as_me: program exited with status
$ac_status" >&5
7484 echo "$as_me: failed program was
:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7488 if test "$ac_cv_type_long_long" = yes; then
7489 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7490 See \
`config.log' for more details." >&5
7491 echo "$as_me: error: cannot compute sizeof (long long)
7492 See \`config.log
' for more details." >&2;}
7493 { (exit 77); exit 77; }; }
7495 ac_cv_sizeof_long_long=0
7498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7503 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7507 cat >>confdefs.h <<_ACEOF
7508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7514 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7515 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7516 if test "${ac_cv_addrinfo+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7544 grep -v '^
*+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7554 echo "$as_me: failed program was:" >&5
7555 sed 's
/^
/|
/' conftest.$ac_ext >&5
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7564 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7565 if test $ac_cv_addrinfo = yes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_ADDRINFO 1
7571 cat >>confdefs.h <<\_ACEOF
7572 #define NEED_ADDRINFO_H 1
7577 if test "$ac_cv_addrinfo" = no; then
7578 missing_includes=yes
7582 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7583 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7584 if test "${ac_cv_maxserv+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599 $EGREP "yes" >/dev/null 2>&1; then
7608 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7609 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7610 if test $ac_cv_maxserv != yes; then
7611 cat >>confdefs.h <<\_ACEOF
7612 #define NEED_ADDRINFO_H 1
7617 if test "$ac_cv_maxserv" = no; then
7618 missing_includes=yes
7622 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7623 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7624 if test "${ac_cv_namereqd+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.$ac_ext <<_ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 $EGREP "yes" >/dev/null 2>&1; then
7648 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7649 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7650 if test $ac_cv_namereqd != yes; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define NEED_ADDRINFO_H 1
7657 if test "$ac_cv_namereqd" = no; then
7658 missing_includes=yes
7662 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7663 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7664 if test "${ac_cv_sa_storage+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7674 # include <sys/types.h>
7675 # include <sys/socket.h>
7679 struct sockaddr_storage s
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_compile") 2>conftest.er1
7693 grep -v '^
*+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && {
7698 test -z "$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
7701 ac_cv_sa_storage=yes
7703 echo "$as_me: failed program was:" >&5
7704 sed 's
/^
/|
/' conftest.$ac_ext >&5
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7713 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7714 if test $ac_cv_sa_storage = yes; then
7715 cat >>confdefs.h <<\_ACEOF
7716 #define HAVE_SOCKADDR_STORAGE 1
7721 if test "$ac_cv_sa_storage" = no; then
7722 missing_includes=yes
7727 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7728 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7729 if test "${ac_cv_inaddrsz+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 # include <arpa/nameser.h>
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7757 grep -v '^
*+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7767 echo "$as_me: failed program was:" >&5
7768 sed 's
/^
/|
/' conftest.$ac_ext >&5
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7777 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7778 if test $ac_cv_inaddrsz = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_INADDRSZ 1
7786 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7787 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7788 if test "${ac_cv_in6addrsz+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7798 # include <arpa/nameser.h>
7807 rm -f conftest.$ac_objext
7808 if { (ac_try="$ac_compile"
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7816 grep -v '^
*+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7826 echo "$as_me: failed program was:" >&5
7827 sed 's
/^
/|
/' conftest.$ac_ext >&5
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7836 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7837 if test $ac_cv_in6addrsz = yes; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_IN6ADDRSZ 1
7846 if test "$ac_cv_addrsz" = no; then
7847 missing_includes=yes
7851 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7852 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7853 if test "${ac_cv_res_inet6+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7863 # include <sys/types.h>
7864 # include <netinet/in.h>
7865 # include <resolv.h>
7869 int a = RES_USE_INET6
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^
*+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7893 echo "$as_me: failed program was:" >&5
7894 sed 's
/^
/|
/' conftest.$ac_ext >&5
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7903 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7904 if test $ac_cv_res_inet6 = yes; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_RES_USE_INET6 1
7911 if test "$ac_cv_res_inet6" = no; then
7912 missing_includes=yes
7916 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7917 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7918 if test "${ac_cv_res_state_ext+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 # include <sys/types.h>
7929 # include <netinet/in.h>
7930 # include <netinet6/in6.h>
7931 # include <resolv.h>
7935 struct __res_state_ext e
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^
*+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_res_state_ext=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's
/^
/|
/' conftest.$ac_ext >&5
7962 ac_cv_res_state_ext=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7969 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7970 if test $ac_cv_res_state_ext = yes; then
7971 cat >>confdefs.h <<\_ACEOF
7972 #define HAVE_RES_STATE_EXT 1
7977 if test "$ac_cv_res_state_ext" = no; then
7978 missing_includes=yes
7982 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7983 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7984 if test "${ac_cv_res_state+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7994 # include <sys/types.h>
7995 # include <netinet/in.h>
7996 # include <netinet6/in6.h>
7997 # include <resolv.h>
8001 struct __res_state e; e.nsort = 0
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8015 grep -v '^
*+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
8025 echo "$as_me: failed program was:" >&5
8026 sed 's
/^
/|
/' conftest.$ac_ext >&5
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8035 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8036 if test $ac_cv_res_state = yes; then
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_NEW_RES_STATE 1
8051 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8067 #define $ac_func innocuous_$ac_func
8069 /* System header to define __stub macros and hopefully few prototypes,
8070 which can conflict with char $ac_func (); below.
8071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8072 <limits.h> exists even on freestanding compilers. */
8075 # include <limits.h>
8077 # include <assert.h>
8082 /* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8089 /* The GNU C library defines this for functions which it implements
8090 to always fail with ENOSYS. Some functions are actually named
8091 something starting with __ and the normal name is an alias. */
8092 #if defined __stub_$ac_func || defined __stub___$ac_func
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>conftest.er1
8113 grep -v '^
*+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext &&
8121 $as_test_x conftest$ac_exeext; then
8122 eval "$as_ac_var=yes"
8124 echo "$as_me: failed program was:" >&5
8125 sed 's
/^
/|
/' conftest.$ac_ext >&5
8127 eval "$as_ac_var=no"
8130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8131 conftest$ac_exeext conftest.$ac_ext
8133 ac_res=`eval echo '${'$as_ac_var'}'`
8134 { echo "$as_me:$LINENO: result: $ac_res" >&5
8135 echo "${ECHO_T}$ac_res" >&6; }
8136 if test `eval echo '${'$as_ac_var'}'` = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142 case " $LIBOBJS " in
8143 *" $ac_func.$ac_objext "* ) ;;
8144 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8153 for ac_func in strftime
8155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8169 #define $ac_func innocuous_$ac_func
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char $ac_func (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8177 # include <limits.h>
8179 # include <assert.h>
8184 /* Override any GCC internal prototype to avoid an error.
8185 Use char because int might match the return type of a GCC
8186 builtin and then its argument prototype would still apply. */
8191 /* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194 #if defined __stub_$ac_func || defined __stub___$ac_func
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (ac_try="$ac_link"
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest$ac_exeext &&
8223 $as_test_x conftest$ac_exeext; then
8224 eval "$as_ac_var=yes"
8226 echo "$as_me: failed program was:" >&5
8227 sed 's
/^
/|
/' conftest.$ac_ext >&5
8229 eval "$as_ac_var=no"
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8235 ac_res=`eval echo '${'$as_ac_var'}'`
8236 { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_var'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8248 for ac_func in setlinebuf alarm
8250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define $ac_func innocuous_$ac_func
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char $ac_func (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8272 # include <limits.h>
8274 # include <assert.h>
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined __stub_$ac_func || defined __stub___$ac_func
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>conftest.er1
8310 grep -v '^
*+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest$ac_exeext &&
8318 $as_test_x conftest$ac_exeext; then
8319 eval "$as_ac_var=yes"
8321 echo "$as_me: failed program was:" >&5
8322 sed 's
/^
/|
/' conftest.$ac_ext >&5
8324 eval "$as_ac_var=no"
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328 conftest$ac_exeext conftest.$ac_ext
8330 ac_res=`eval echo '${'$as_ac_var'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_var'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8345 for ac_func in vsnprintf snprintf
8347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8361 #define $ac_func innocuous_$ac_func
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func (); below.
8365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8366 <limits.h> exists even on freestanding compilers. */
8369 # include <limits.h>
8371 # include <assert.h>
8376 /* Override any GCC internal prototype to avoid an error.
8377 Use char because int might match the return type of a GCC
8378 builtin and then its argument prototype would still apply. */
8383 /* The GNU C library defines this for functions which it implements
8384 to always fail with ENOSYS. Some functions are actually named
8385 something starting with __ and the normal name is an alias. */
8386 #if defined __stub_$ac_func || defined __stub___$ac_func
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (ac_try="$ac_link"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
8407 grep -v '^
*+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest$ac_exeext &&
8415 $as_test_x conftest$ac_exeext; then
8416 eval "$as_ac_var=yes"
8418 echo "$as_me: failed program was:" >&5
8419 sed 's
/^
/|
/' conftest.$ac_ext >&5
8421 eval "$as_ac_var=no"
8424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8425 conftest$ac_exeext conftest.$ac_ext
8427 ac_res=`eval echo '${'$as_ac_var'}'`
8428 { echo "$as_me:$LINENO: result: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8430 if test `eval echo '${'$as_ac_var'}'` = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8440 if test $needsnprintf = yes; then
8441 case " $LIBOBJS " in
8442 *" snprintf.$ac_objext "* ) ;;
8443 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8450 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8451 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8452 if test "${ac_cv_type_signal+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <sys/types.h>
8467 return *(signal (0, 0)) (0) == 1;
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8481 grep -v '^
*+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_cv_type_signal=int
8491 echo "$as_me: failed program was:" >&5
8492 sed 's
/^
/|
/' conftest.$ac_ext >&5
8494 ac_cv_type_signal=void
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8500 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8502 cat >>confdefs.h <<_ACEOF
8503 #define RETSIGTYPE $ac_cv_type_signal
8507 if test "$ac_cv_type_signal" = void ; then
8509 cat >>confdefs.h <<\_ACEOF
8515 cat >>confdefs.h <<\_ACEOF
8516 #define RETSIGVAL (0)
8524 cat >>confdefs.h <<\_ACEOF
8525 #define _BSD_SIGNALS 1
8532 for ac_func in sigaction
8534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548 #define $ac_func innocuous_$ac_func
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8556 # include <limits.h>
8558 # include <assert.h>
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8570 /* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573 #if defined __stub_$ac_func || defined __stub___$ac_func
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>conftest.er1
8594 grep -v '^
*+' conftest.er1 >conftest.err
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest$ac_exeext &&
8602 $as_test_x conftest$ac_exeext; then
8603 eval "$as_ac_var=yes"
8605 echo "$as_me: failed program was:" >&5
8606 sed 's
/^
/|
/' conftest.$ac_ext >&5
8608 eval "$as_ac_var=no"
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 conftest$ac_exeext conftest.$ac_ext
8614 ac_res=`eval echo '${'$as_ac_var'}'`
8615 { echo "$as_me:$LINENO: result: $ac_res" >&5
8616 echo "${ECHO_T}$ac_res" >&6; }
8617 if test `eval echo '${'$as_ac_var'}'` = yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8625 if test $ac_cv_func_sigaction = no ; then
8627 for ac_func in sigset
8629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8643 #define $ac_func innocuous_$ac_func
8645 /* System header to define __stub macros and hopefully few prototypes,
8646 which can conflict with char $ac_func (); below.
8647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8648 <limits.h> exists even on freestanding compilers. */
8651 # include <limits.h>
8653 # include <assert.h>
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined __stub_$ac_func || defined __stub___$ac_func
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_link") 2>conftest.er1
8689 grep -v '^
*+' conftest.er1 >conftest.err
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && {
8694 test -z "$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 } && test -s conftest$ac_exeext &&
8697 $as_test_x conftest$ac_exeext; then
8698 eval "$as_ac_var=yes"
8700 echo "$as_me: failed program was:" >&5
8701 sed 's
/^
/|
/' conftest.$ac_ext >&5
8703 eval "$as_ac_var=no"
8706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8707 conftest$ac_exeext conftest.$ac_ext
8709 ac_res=`eval echo '${'$as_ac_var'}'`
8710 { echo "$as_me:$LINENO: result: $ac_res" >&5
8711 echo "${ECHO_T}$ac_res" >&6; }
8712 if test `eval echo '${'$as_ac_var'}'` = yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8724 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8725 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8726 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 ac_func_search_save_LIBS=$LIBS
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8737 /* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
8747 return dnet_htoa ();
8752 for ac_lib in '' dnet; do
8753 if test -z "$ac_lib"; then
8754 ac_res="none required"
8757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^
*+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext &&
8776 $as_test_x conftest$ac_exeext; then
8777 ac_cv_search_dnet_htoa=$ac_res
8779 echo "$as_me: failed program was:" >&5
8780 sed 's
/^
/|
/' conftest.$ac_ext >&5
8785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8791 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8794 ac_cv_search_dnet_htoa=no
8797 LIBS=$ac_func_search_save_LIBS
8799 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8800 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8801 ac_res=$ac_cv_search_dnet_htoa
8802 if test "$ac_res" != no; then
8803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_DNET_HTOA 1
8812 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8813 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8814 if test "${ac_cv_lib_rpc_main+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_check_lib_save_LIBS=$LIBS
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8844 grep -v '^
*+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest$ac_exeext &&
8852 $as_test_x conftest$ac_exeext; then
8853 ac_cv_lib_rpc_main=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's
/^
/|
/' conftest.$ac_ext >&5
8858 ac_cv_lib_rpc_main=no
8861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8865 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8866 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8867 if test $ac_cv_lib_rpc_main = yes; then
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_LIBRPC 1
8876 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8877 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8878 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 ac_func_search_save_LIBS=$LIBS
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8895 char getrpcbynumber ();
8899 return getrpcbynumber ();
8904 for ac_lib in '' nsl; do
8905 if test -z "$ac_lib"; then
8906 ac_res="none required"
8909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8920 grep -v '^
*+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8929 ac_cv_search_getrpcbynumber=$ac_res
8931 echo "$as_me: failed program was:" >&5
8932 sed 's
/^
/|
/' conftest.$ac_ext >&5
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8939 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8943 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8946 ac_cv_search_getrpcbynumber=no
8949 LIBS=$ac_func_search_save_LIBS
8951 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8952 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8953 ac_res=$ac_cv_search_getrpcbynumber
8954 if test "$ac_res" != no; then
8955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_GETRPCBYNUMBER 1
8965 # Most operating systems have gethostbyname() in the default searched
8966 # libraries (i.e. libc):
8967 # Some OSes (eg. Solaris) place it in libnsl
8968 # Some strange OSes (SINIX) have it in libsocket:
8969 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8970 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8971 if test "${ac_cv_search_gethostbyname+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 ac_func_search_save_LIBS=$LIBS
8975 cat >conftest.$ac_ext <<_ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8982 /* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8988 char gethostbyname ();
8992 return gethostbyname ();
8997 for ac_lib in '' nsl socket resolv; do
8998 if test -z "$ac_lib"; then
8999 ac_res="none required"
9002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (ac_try="$ac_link"
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_link") 2>conftest.er1
9013 grep -v '^
*+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest$ac_exeext &&
9021 $as_test_x conftest$ac_exeext; then
9022 ac_cv_search_gethostbyname=$ac_res
9024 echo "$as_me: failed program was:" >&5
9025 sed 's
/^
/|
/' conftest.$ac_ext >&5
9030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9032 if test "${ac_cv_search_gethostbyname+set}" = set; then
9036 if test "${ac_cv_search_gethostbyname+set}" = set; then
9039 ac_cv_search_gethostbyname=no
9042 LIBS=$ac_func_search_save_LIBS
9044 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9045 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9046 ac_res=$ac_cv_search_gethostbyname
9047 if test "$ac_res" != no; then
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9052 # Unfortunately libsocket sometimes depends on libnsl and
9053 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9054 if test "$ac_cv_search_gethostbyname" = "no"
9056 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9057 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9058 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 ac_check_lib_save_LIBS
=$LIBS
9062 LIBS
="-lsocket -lnsl $LIBS"
9063 cat >conftest.
$ac_ext <<_ACEOF
9066 cat confdefs.h
>>conftest.
$ac_ext
9067 cat >>conftest.
$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 /* Override any GCC internal prototype to avoid an error.
9071 Use char because int might match the return type of a GCC
9072 builtin and then its argument prototype would still apply. */
9076 char gethostbyname ();
9080 return gethostbyname ();
9085 rm -f conftest.
$ac_objext conftest
$ac_exeext
9086 if { (ac_try
="$ac_link"
9088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_link") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest$ac_exeext &&
9102 $as_test_x conftest$ac_exeext; then
9103 ac_cv_lib_socket_gethostbyname=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ac_cv_lib_socket_gethostbyname=no
9111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9112 conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9115 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9116 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9117 if test $ac_cv_lib_socket_gethostbyname = yes; then
9118 LIBS="-lsocket -lnsl $LIBS"
9122 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9123 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9124 if test "${ac_cv_search_socket+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 ac_func_search_save_LIBS=$LIBS
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9150 for ac_lib in '' socket; do
9151 if test -z "$ac_lib"; then
9152 ac_res="none required"
9155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9161 *) ac_try_echo
=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_link") 2>conftest.er1
9166 grep -v '^ *+' conftest.er1
>conftest.err
9168 cat conftest.err
>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest
$ac_exeext &&
9174 $as_test_x conftest
$ac_exeext; then
9175 ac_cv_search_socket
=$ac_res
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.
$ac_ext >&5
9183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9185 if test "${ac_cv_search_socket+set}" = set; then
9189 if test "${ac_cv_search_socket+set}" = set; then
9192 ac_cv_search_socket
=no
9195 LIBS
=$ac_func_search_save_LIBS
9197 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9198 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9199 ac_res
=$ac_cv_search_socket
9200 if test "$ac_res" != no
; then
9201 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9204 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9205 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9206 if test "${ac_cv_lib_socket_socket+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 ac_check_lib_save_LIBS
=$LIBS
9210 LIBS
="-lsocket -lnsl $LIBS"
9211 cat >conftest.
$ac_ext <<_ACEOF
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9233 rm -f conftest.
$ac_objext conftest
$ac_exeext
9234 if { (ac_try
="$ac_link"
9236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext &&
9250 $as_test_x conftest$ac_exeext; then
9251 ac_cv_lib_socket_socket=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_cv_lib_socket_socket=no
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9263 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9264 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9265 if test $ac_cv_lib_socket_socket = yes; then
9266 LIBS="-lsocket -lnsl $LIBS"
9271 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9272 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9273 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9274 if test "${ac_cv_search_putmsg+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 ac_func_search_save_LIBS=$LIBS
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9300 for ac_lib in '' str; do
9301 if test -z "$ac_lib"; then
9302 ac_res="none required"
9305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9311 *) ac_try_echo
=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1
>conftest.err
9318 cat conftest.err
>&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest
$ac_exeext &&
9324 $as_test_x conftest
$ac_exeext; then
9325 ac_cv_search_putmsg
=$ac_res
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.
$ac_ext >&5
9333 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9335 if test "${ac_cv_search_putmsg+set}" = set; then
9339 if test "${ac_cv_search_putmsg+set}" = set; then
9342 ac_cv_search_putmsg
=no
9345 LIBS
=$ac_func_search_save_LIBS
9347 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9348 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9349 ac_res
=$ac_cv_search_putmsg
9350 if test "$ac_res" != no
; then
9351 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9358 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9359 if test -f $pfopen ; then
9361 for ac_func
in pfopen
9363 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9366 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9377 #define $ac_func innocuous_$ac_func
9379 /* System header to define __stub macros and hopefully few prototypes,
9380 which can conflict with char $ac_func (); below.
9381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9382 <limits.h> exists even on freestanding compilers. */
9385 # include <limits.h>
9387 # include <assert.h>
9392 /* Override any GCC internal prototype to avoid an error.
9393 Use char because int might match the return type of a GCC
9394 builtin and then its argument prototype would still apply. */
9399 /* The GNU C library defines this for functions which it implements
9400 to always fail with ENOSYS. Some functions are actually named
9401 something starting with __ and the normal name is an alias. */
9402 #if defined __stub_$ac_func || defined __stub___$ac_func
9414 rm -f conftest.
$ac_objext conftest
$ac_exeext
9415 if { (ac_try
="$ac_link"
9417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 eval "$as_ac_var=yes"
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 eval "$as_ac_var=no"
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9443 ac_res=`eval echo '${'$as_ac_var'}'`
9444 { echo "$as_me:$LINENO: result: $ac_res" >&5
9445 echo "${ECHO_T}$ac_res" >&6; }
9446 if test `eval echo '${'$as_ac_var'}'` = yes; then
9447 cat >>confdefs.h <<_ACEOF
9448 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9454 if test $ac_cv_func_pfopen = "no" ; then
9455 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9456 echo "${ECHO_T}Using $pfopen" >&6; }
9457 LIBS="$LIBS $pfopen"
9460 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9461 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9464 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9465 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9466 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9467 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
9468 sed -e 's/-PRE-GIT$//' `
9469 if test $lastdir = $basedir ; then
9473 if test -r $dir/libpcap.a ; then
9474 libpcap=$dir/libpcap.a
9478 if test $libpcap = FAIL ; then
9479 { echo "$as_me:$LINENO: result: not found" >&5
9480 echo "${ECHO_T}not found" >&6; }
9483 # Look for pcap-config.
9485 # Extract the first word of "pcap-config", so it can be a program name with args.
9486 set dummy pcap-config; ac_word=$2
9487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9489 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 case $PCAP_CONFIG in
9494 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9516 if test -n "$PCAP_CONFIG"; then
9517 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9518 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9520 { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9525 if test -n "$PCAP_CONFIG" ; then
9527 # Found - use it to get the include flags for
9528 # libpcap and the flags to link with libpcap.
9530 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9531 libpcap="`\"$PCAP_CONFIG\" --libs`"
9534 # Not found; look for pcap.
9536 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9537 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9538 if test "${ac_cv_lib_pcap_main+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 ac_check_lib_save_LIBS=$LIBS
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9563 *) ac_try_echo
=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1
>conftest.err
9570 cat conftest.err
>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest
$ac_exeext &&
9576 $as_test_x conftest
$ac_exeext; then
9577 ac_cv_lib_pcap_main
=yes
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.
$ac_ext >&5
9582 ac_cv_lib_pcap_main
=no
9585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9586 conftest
$ac_exeext conftest.
$ac_ext
9587 LIBS
=$ac_check_lib_save_LIBS
9589 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9590 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9591 if test $ac_cv_lib_pcap_main = yes; then
9595 if test $libpcap = FAIL
; then
9596 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9597 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9598 { (exit 1); exit 1; }; }
9600 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9601 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9602 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9603 \
( ! -r /usr
/include
/pcap.h \
); then
9604 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9605 d
="/usr/local/include/pcap"
9606 elif test -r /usr
/include
/pcap
/pcap.h
; then
9607 d
="/usr/include/pcap"
9610 if test -z "$d" ; then
9611 { echo "$as_me:$LINENO: result: not found" >&5
9612 echo "${ECHO_T}not found" >&6; }
9614 V_INCLS
="-I$d $V_INCLS"
9615 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9616 echo "${ECHO_T}found -- -I$d added" >&6; }
9621 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9622 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9623 if test -r $d/pcap.h
; then
9624 V_INCLS
="-I$d $V_INCLS"
9625 elif test -r $places/pcap.h
; then
9626 V_INCLS
="-I$places $V_INCLS"
9628 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9629 echo "$as_me: error: cannot find pcap.h" >&2;}
9630 { (exit see INSTALL
); exit see INSTALL
; }; }
9632 { echo "$as_me:$LINENO: result: $libpcap" >&5
9633 echo "${ECHO_T}$libpcap" >&6; }
9634 # Extract the first word of "pcap-config", so it can be a program name with args.
9635 set dummy pcap-config
; ac_word
=$2
9636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9638 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 case $PCAP_CONFIG in
9643 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
9646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9650 test -z "$as_dir" && as_dir
=.
9651 for ac_exec_ext
in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
9665 if test -n "$PCAP_CONFIG"; then
9666 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9667 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9669 { echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6; }
9674 if test -n "$PCAP_CONFIG"; then
9676 # The libpcap directory has a pcap-config script.
9677 # Use it to get any additioal libraries needed
9678 # to link with the libpcap archive library in
9681 libpcap
="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9684 LIBS
="$libpcap $LIBS"
9685 if ! test -n "$PCAP_CONFIG" ; then
9687 # We don't have pcap-config; find out any additional link flags
9688 # we need. (If we have pcap-config, we assume it tells us what
9695 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9696 # present, as we use the STREAMS routines.
9698 # (XXX - true only if we're linking with a static libpcap?)
9700 pseexe
="/lib/pse.exp"
9701 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9702 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9703 if test -f $pseexe ; then
9704 { echo "$as_me:$LINENO: result: yes" >&5
9705 echo "${ECHO_T}yes" >&6; }
9706 LIBS
="$LIBS -I:$pseexe"
9710 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9711 # we use them to load the BPF module.
9713 # (XXX - true only if we're linking with a static libpcap?)
9715 LIBS
="$LIBS -lodm -lcfg"
9720 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9721 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.
$ac_ext <<_ACEOF
9728 cat confdefs.h
>>conftest.
$ac_ext
9729 cat >>conftest.
$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char pcap_list_datalinks (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9741 # include <limits.h>
9743 # include <assert.h>
9746 #undef pcap_list_datalinks
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9754 char pcap_list_datalinks ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9765 return pcap_list_datalinks ();
9770 rm -f conftest.
$ac_objext conftest
$ac_exeext
9771 if { (ac_try
="$ac_link"
9773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest$ac_exeext &&
9787 $as_test_x conftest$ac_exeext; then
9788 ac_cv_func_pcap_list_datalinks=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_func_pcap_list_datalinks=no
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9799 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9800 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9801 if test $ac_cv_func_pcap_list_datalinks = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_PCAP_LIST_DATALINKS 1
9808 case " $LIBOBJS " in
9809 *" datalinks.$ac_objext "* ) ;;
9810 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9817 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9818 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9819 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9830 #define pcap_set_datalink innocuous_pcap_set_datalink
9832 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char pcap_set_datalink (); below.
9834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835 <limits.h> exists even on freestanding compilers. */
9838 # include <limits.h>
9840 # include <assert.h>
9843 #undef pcap_set_datalink
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9851 char pcap_set_datalink ();
9852 /* The GNU C library defines this for functions which it implements
9853 to always fail with ENOSYS. Some functions are actually named
9854 something starting with __ and the normal name is an alias. */
9855 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9862 return pcap_set_datalink ();
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9871 *) ac_try_echo
=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1
>conftest.err
9878 cat conftest.err
>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && {
9881 test -z "$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 } && test -s conftest
$ac_exeext &&
9884 $as_test_x conftest
$ac_exeext; then
9885 ac_cv_func_pcap_set_datalink
=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.
$ac_ext >&5
9890 ac_cv_func_pcap_set_datalink
=no
9893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9894 conftest
$ac_exeext conftest.
$ac_ext
9896 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9897 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9898 if test $ac_cv_func_pcap_set_datalink = yes; then
9899 cat >>confdefs.h
<<\_ACEOF
9900 #define HAVE_PCAP_SET_DATALINK 1
9905 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9906 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9907 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char pcap_datalink_name_to_val (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9926 # include <limits.h>
9928 # include <assert.h>
9931 #undef pcap_datalink_name_to_val
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9939 char pcap_datalink_name_to_val ();
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9950 return pcap_datalink_name_to_val ();
9955 rm -f conftest.
$ac_objext conftest
$ac_exeext
9956 if { (ac_try
="$ac_link"
9958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 ac_cv_func_pcap_datalink_name_to_val=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_func_pcap_datalink_name_to_val=no
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9984 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9985 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9986 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9992 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9993 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9994 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char pcap_datalink_val_to_description (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10013 # include <limits.h>
10015 # include <assert.h>
10018 #undef pcap_datalink_val_to_description
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10026 char pcap_datalink_val_to_description ();
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10037 return pcap_datalink_val_to_description ();
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10046 *) ac_try_echo
=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1
>conftest.err
10053 cat conftest.err
>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest
$ac_exeext &&
10059 $as_test_x conftest
$ac_exeext; then
10060 ac_cv_func_pcap_datalink_val_to_description
=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.
$ac_ext >&5
10065 ac_cv_func_pcap_datalink_val_to_description
=no
10068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10069 conftest
$ac_exeext conftest.
$ac_ext
10071 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10072 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10073 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10074 cat >>confdefs.h
<<\_ACEOF
10075 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10080 case " $LIBOBJS " in
10081 *" dlnames.$ac_objext "* ) ;;
10082 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10092 case " $LIBOBJS " in
10093 *" dlnames.$ac_objext "* ) ;;
10094 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10103 for ac_func
in pcap_breakloop
10105 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10108 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 cat >conftest.
$ac_ext <<_ACEOF
10114 cat confdefs.h
>>conftest.
$ac_ext
10115 cat >>conftest.
$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10119 #define $ac_func innocuous_$ac_func
10121 /* System header to define __stub macros and hopefully few prototypes,
10122 which can conflict with char $ac_func (); below.
10123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10124 <limits.h> exists even on freestanding compilers. */
10127 # include <limits.h>
10129 # include <assert.h>
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined __stub_$ac_func || defined __stub___$ac_func
10151 return $ac_func ();
10156 rm -f conftest.
$ac_objext conftest
$ac_exeext
10157 if { (ac_try
="$ac_link"
10158 case "(($ac_try" in
10159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_link") 2>conftest.er1
10165 grep -v '^ *+' conftest.er1 >conftest.err
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest$ac_exeext &&
10173 $as_test_x conftest$ac_exeext; then
10174 eval "$as_ac_var=yes"
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 eval "$as_ac_var=no"
10182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183 conftest$ac_exeext conftest.$ac_ext
10185 ac_res=`eval echo '${'$as_ac_var'}'`
10186 { echo "$as_me:$LINENO: result: $ac_res" >&5
10187 echo "${ECHO_T}$ac_res" >&6; }
10188 if test `eval echo '${'$as_ac_var'}'` = yes; then
10189 cat >>confdefs.h <<_ACEOF
10190 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10197 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10198 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10199 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 cat >conftest.$ac_ext <<_ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10210 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char pcap_dump_ftell (); below.
10214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10215 <limits.h> exists even on freestanding compilers. */
10218 # include <limits.h>
10220 # include <assert.h>
10223 #undef pcap_dump_ftell
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10231 char pcap_dump_ftell ();
10232 /* The GNU C library defines this for functions which it implements
10233 to always fail with ENOSYS. Some functions are actually named
10234 something starting with __ and the normal name is an alias. */
10235 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10242 return pcap_dump_ftell ();
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10251 *) ac_try_echo
=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1
>conftest.err
10258 cat conftest.err
>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest
$ac_exeext &&
10264 $as_test_x conftest
$ac_exeext; then
10265 ac_cv_func_pcap_dump_ftell
=yes
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.
$ac_ext >&5
10270 ac_cv_func_pcap_dump_ftell
=no
10273 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10274 conftest
$ac_exeext conftest.
$ac_ext
10276 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10277 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10278 if test $ac_cv_func_pcap_dump_ftell = yes; then
10279 cat >>confdefs.h
<<\_ACEOF
10280 #define HAVE_PCAP_DUMP_FTELL 1
10285 case " $LIBOBJS " in
10286 *" pcap_dump_ftell.$ac_objext "* ) ;;
10287 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
10297 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10298 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10300 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10301 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10302 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10303 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10304 # it does not ship with a libc symbol "inet_ntop()", it ships with
10305 # "_inet_ntop()", and has a #define macro in one of the system headers
10308 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10309 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10310 cat >conftest.
$ac_ext <<_ACEOF
10313 cat confdefs.h
>>conftest.
$ac_ext
10314 cat >>conftest.
$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 #include <sys/types.h>
10317 #include <sys/socket.h>
10318 #include <netinet/in.h>
10319 #include <arpa/inet.h>
10323 char src[4], dst[128];
10324 inet_ntop(AF_INET, src, dst, sizeof(dst));
10329 rm -f conftest.
$ac_objext conftest
$ac_exeext
10330 if { (ac_try
="$ac_link"
10331 case "(($ac_try" in
10332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
10347 { echo "$as_me:$LINENO: result: yes" >&5
10348 echo "${ECHO_T}yes" >&6; }
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 { echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6; }
10355 case " $LIBOBJS " in
10356 *" inet_ntop.$ac_objext "* ) ;;
10357 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10366 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <sys/types.h>
10374 #include <sys/socket.h>
10375 #include <netinet/in.h>
10376 #include <arpa/inet.h>
10380 char src[128], dst[4];
10381 inet_pton(AF_INET, src, dst);
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest
$ac_exeext &&
10403 $as_test_x conftest
$ac_exeext; then
10404 { echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6; }
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10410 { echo "$as_me:$LINENO: result: no" >&5
10411 echo "${ECHO_T}no" >&6; }
10412 case " $LIBOBJS " in
10413 *" inet_pton.$ac_objext "* ) ;;
10414 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
10420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10421 conftest
$ac_exeext conftest.
$ac_ext
10422 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10423 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10424 cat >conftest.
$ac_ext <<_ACEOF
10427 cat confdefs.h
>>conftest.
$ac_ext
10428 cat >>conftest.
$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <sys/types.h>
10431 #include <netinet/in.h>
10432 #include <arpa/inet.h>
10437 struct in_addr dst;
10438 inet_aton(src, &dst);
10443 rm -f conftest.
$ac_objext conftest
$ac_exeext
10444 if { (ac_try
="$ac_link"
10445 case "(($ac_try" in
10446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_link") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext &&
10460 $as_test_x conftest$ac_exeext; then
10461 { echo "$as_me:$LINENO: result: yes" >&5
10462 echo "${ECHO_T}yes" >&6; }
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 { echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6; }
10469 case " $LIBOBJS " in
10470 *" inet_aton.$ac_objext "* ) ;;
10471 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10481 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10483 # You are in a twisty little maze of UN*Xes, all different.
10484 # Some might not have ether_ntohost().
10485 # Some might have it, but not declare it in any header file.
10486 # Some might have it, but declare it in <netinet/if_ether.h>.
10487 # Some might have it, but declare it in <netinet/ether.h>
10488 # (And some might have it but document it as something declared in
10489 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10491 # Before you is a C compiler.
10494 for ac_func in ether_ntohost
10496 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510 #define $ac_func innocuous_$ac_func
10512 /* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char $ac_func (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10518 # include <limits.h>
10520 # include <assert.h>
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined __stub_$ac_func || defined __stub___$ac_func
10542 return $ac_func ();
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10551 *) ac_try_echo
=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1
>conftest.err
10558 cat conftest.err
>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest
$ac_exeext &&
10564 $as_test_x conftest
$ac_exeext; then
10565 eval "$as_ac_var=yes"
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.
$ac_ext >&5
10570 eval "$as_ac_var=no"
10573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10574 conftest
$ac_exeext conftest.
$ac_ext
10576 ac_res
=`eval echo '${'$as_ac_var'}'`
10577 { echo "$as_me:$LINENO: result: $ac_res" >&5
10578 echo "${ECHO_T}$ac_res" >&6; }
10579 if test `eval echo '${'$as_ac_var'}'` = yes; then
10580 cat >>confdefs.h
<<_ACEOF
10581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10585 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10586 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 if test "$cross_compiling" = yes; then
10591 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10593 cat >conftest.
$ac_ext <<_ACEOF
10596 cat confdefs.h
>>conftest.
$ac_ext
10597 cat >>conftest.
$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10601 #include <sys/types.h>
10602 #include <sys/param.h>
10603 #include <sys/socket.h>
10606 main(int argc, char **argv)
10608 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10609 char name[MAXHOSTNAMELEN];
10611 ether_ntohost(name, (struct ether_addr *)ea);
10616 rm -f conftest
$ac_exeext
10617 if { (ac_try
="$ac_link"
10618 case "(($ac_try" in
10619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_link") 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10629 *) ac_try_echo
=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_buggy_ether_ntohost
=no
10638 echo "$as_me: program exited with status $ac_status" >&5
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.
$ac_ext >&5
10642 ( exit $ac_status )
10643 ac_cv_buggy_ether_ntohost
=yes
10645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10650 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10651 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10652 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10653 cat >>confdefs.h
<<\_ACEOF
10654 #define USE_ETHER_NTOHOST 1
10662 if test "$ac_cv_func_ether_ntohost" = yes -a \
10663 "$ac_cv_buggy_ether_ntohost" = "no"; then
10665 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10667 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10669 # Yes. Does it declare ether_ntohost()?
10671 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10672 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10673 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.
$ac_ext <<_ACEOF
10679 cat confdefs.h
>>conftest.
$ac_ext
10680 cat >>conftest.
$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 #include <sys/types.h>
10684 #include <sys/socket.h>
10685 #include <netinet/in.h>
10686 #include <arpa/inet.h>
10689 #include <net/if.h>
10690 #include <netinet/if_ether.h>
10696 #ifndef ether_ntohost
10697 (void) ether_ntohost;
10704 rm -f conftest.
$ac_objext
10705 if { (ac_try
="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 ac_cv_have_decl_ether_ntohost=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_have_decl_ether_ntohost=no
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10732 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10733 if test $ac_cv_have_decl_ether_ntohost = yes; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10745 # Did that succeed?
10747 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10749 # No, how about <netinet/ether.h>, as on Linux?
10752 for ac_header in netinet/ether.h
10754 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 ac_res=`eval echo '${'$as_ac_Header'}'`
10762 { echo "$as_me:$LINENO: result: $ac_res" >&5
10763 echo "${ECHO_T}$ac_res" >&6; }
10765 # Is the header compilable?
10766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 $ac_includes_default
10775 #include <$ac_header>
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10781 *) ac_try_echo
=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1
>conftest.err
10788 cat conftest.err
>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.
$ac_objext; then
10794 ac_header_compiler
=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.
$ac_ext >&5
10799 ac_header_compiler
=no
10802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10804 echo "${ECHO_T}$ac_header_compiler" >&6; }
10806 # Is the header present?
10807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10809 cat >conftest.
$ac_ext <<_ACEOF
10812 cat confdefs.h
>>conftest.
$ac_ext
10813 cat >>conftest.
$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <$ac_header>
10817 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10818 case "(($ac_try" in
10819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } >/dev/null && {
10830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10833 ac_header_preproc=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_header_preproc=no
10841 rm -f conftest.err conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6; }
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 eval "$as_ac_Header=\$ac_header_preproc"
10877 ac_res=`eval echo '${'$as_ac_Header'}'`
10878 { echo "$as_me:$LINENO: result: $ac_res" >&5
10879 echo "${ECHO_T}$ac_res" >&6; }
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10891 if test "$ac_cv_header_netinet_ether_h" = yes; then
10893 # We have it - does it declare ether_ntohost()?
10894 # Unset ac_cv_have_decl_ether_ntohost so we don't
10895 # treat the previous failure as a cached value and
10896 # suppress the next test.
10898 unset ac_cv_have_decl_ether_ntohost
10899 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10900 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10901 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10911 #include <netinet/ether.h>
10917 #ifndef ether_ntohost
10918 (void) ether_ntohost;
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10929 *) ac_try_echo
=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.
$ac_objext; then
10942 ac_cv_have_decl_ether_ntohost
=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.
$ac_ext >&5
10947 ac_cv_have_decl_ether_ntohost
=no
10950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10953 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10954 if test $ac_cv_have_decl_ether_ntohost = yes; then
10957 cat >>confdefs.h
<<\_ACEOF
10958 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10967 # Is ether_ntohost() declared?
10969 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10971 # No, we'll have to declare it ourselves.
10972 # Do we have "struct ether_addr"?
10974 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10975 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10976 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 cat >conftest.
$ac_ext <<_ACEOF
10982 cat confdefs.h
>>conftest.
$ac_ext
10983 cat >>conftest.
$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10986 #include <sys/types.h>
10987 #include <sys/socket.h>
10988 #include <netinet/in.h>
10989 #include <arpa/inet.h>
10992 #include <net/if.h>
10993 #include <netinet/if_ether.h>
10996 typedef struct ether_addr ac__type_new_;
11000 if ((ac__type_new_ *) 0)
11002 if (sizeof (ac__type_new_))
11008 rm -f conftest.
$ac_objext
11009 if { (ac_try
="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_cv_type_struct_ether_addr=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_type_struct_ether_addr=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11036 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11037 if test $ac_cv_type_struct_ether_addr = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_STRUCT_ETHER_ADDR 1
11047 cat >>confdefs.h <<\_ACEOF
11048 #define HAVE_DECL_ETHER_NTOHOST 0
11053 cat >>confdefs.h <<\_ACEOF
11054 #define HAVE_DECL_ETHER_NTOHOST 1
11060 # libdlpi is needed for Solaris 11 and later.
11061 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11062 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11063 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldlpi -L/lib $LIBS"
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11085 return dlpi_walk ();
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11094 *) ac_try_echo
=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1
>conftest.err
11101 cat conftest.err
>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest
$ac_exeext &&
11107 $as_test_x conftest
$ac_exeext; then
11108 ac_cv_lib_dlpi_dlpi_walk
=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.
$ac_ext >&5
11113 ac_cv_lib_dlpi_dlpi_walk
=no
11116 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11117 conftest
$ac_exeext conftest.
$ac_ext
11118 LIBS
=$ac_check_lib_save_LIBS
11120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11121 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11122 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11123 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
11128 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11129 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11130 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11140 # include <sys/types.h>
11141 # include <sys/socket.h>
11145 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11150 rm -f conftest.
$ac_objext
11151 if { (ac_try
="$ac_compile"
11152 case "(($ac_try" in
11153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_compile") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest.$ac_objext; then
11167 ac_cv_sockaddr_has_sa_len=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_sockaddr_has_sa_len=no
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11179 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11180 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11181 cat >>confdefs.h <<\_ACEOF
11182 #define HAVE_SOCKADDR_SA_LEN 1
11187 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11188 missing_includes=yes
11192 # Do we have the new open API? Check for pcap_create, and assume that,
11193 # if we do, we also have pcap_activate() and the other new routines.
11195 for ac_func in pcap_create
11197 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11211 #define $ac_func innocuous_$ac_func
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func (); below.
11215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11216 <limits.h> exists even on freestanding compilers. */
11219 # include <limits.h>
11221 # include <assert.h>
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11233 /* The GNU C library defines this for functions which it implements
11234 to always fail with ENOSYS. Some functions are actually named
11235 something starting with __ and the normal name is an alias. */
11236 #if defined __stub_$ac_func || defined __stub___$ac_func
11243 return $ac_func ();
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (ac_try="$ac_link"
11250 case "(($ac_try" in
11251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11252 *) ac_try_echo
=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_link") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1
>conftest.err
11259 cat conftest.err
>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest
$ac_exeext &&
11265 $as_test_x conftest
$ac_exeext; then
11266 eval "$as_ac_var=yes"
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 eval "$as_ac_var=no"
11274 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11275 conftest
$ac_exeext conftest.
$ac_ext
11277 ac_res
=`eval echo '${'$as_ac_var'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280 if test `eval echo '${'$as_ac_var'}'` = yes; then
11281 cat >>confdefs.h
<<_ACEOF
11282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11292 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
11294 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11297 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 cat >conftest.
$ac_ext <<_ACEOF
11303 cat confdefs.h
>>conftest.
$ac_ext
11304 cat >>conftest.
$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11308 #define $ac_func innocuous_$ac_func
11310 /* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below.
11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313 <limits.h> exists even on freestanding compilers. */
11316 # include <limits.h>
11318 # include <assert.h>
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11330 /* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
11333 #if defined __stub_$ac_func || defined __stub___$ac_func
11340 return $ac_func ();
11345 rm -f conftest.
$ac_objext conftest
$ac_exeext
11346 if { (ac_try
="$ac_link"
11347 case "(($ac_try" in
11348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 eval "$as_ac_var=yes"
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 eval "$as_ac_var=no"
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11374 ac_res=`eval echo '${'$as_ac_var'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11385 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11386 savedppflags="$CPPLAGS"
11387 CPPFLAGS="$CPPFLAGS $V_INCLS"
11388 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11389 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11390 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11391 echo $ECHO_N "(cached) $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. */
11401 typedef pcap_if_t ac__type_new_;
11405 if ((ac__type_new_ *) 0)
11407 if (sizeof (ac__type_new_))
11413 rm -f conftest.$ac_objext
11414 if { (ac_try="$ac_compile"
11415 case "(($ac_try" in
11416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11417 *) ac_try_echo
=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_compile") 2>conftest.er1
11422 grep -v '^ *+' conftest.er1
>conftest.err
11424 cat conftest.err
>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest.
$ac_objext; then
11430 ac_cv_type_pcap_if_t
=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.
$ac_ext >&5
11435 ac_cv_type_pcap_if_t
=no
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11441 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11442 if test $ac_cv_type_pcap_if_t = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define HAVE_PCAP_IF_T 1
11451 CPPFLAGS
="$savedcppflags"
11454 if test $ac_cv_func_pcap_lib_version = "no" ; then
11455 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11456 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11457 cat >conftest.
$ac_ext <<_ACEOF
11460 cat confdefs.h
>>conftest.
$ac_ext
11461 cat >>conftest.
$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11468 extern char pcap_version[];
11470 return (int)pcap_version;
11476 rm -f conftest.
$ac_objext conftest
$ac_exeext
11477 if { (ac_try
="$ac_link"
11478 case "(($ac_try" in
11479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest$ac_exeext &&
11493 $as_test_x conftest$ac_exeext; then
11494 ac_lbl_cv_pcap_version_defined=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_lbl_cv_pcap_version_defined=no
11502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11503 conftest$ac_exeext conftest.$ac_ext
11504 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11505 { echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6; }
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_PCAP_VERSION 1
11512 { echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6; }
11516 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11517 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11529 extern int pcap_debug;
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11541 *) ac_try_echo
=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1
>conftest.err
11548 cat conftest.err
>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest
$ac_exeext &&
11554 $as_test_x conftest
$ac_exeext; then
11555 ac_lbl_cv_pcap_debug_defined
=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.
$ac_ext >&5
11560 ac_lbl_cv_pcap_debug_defined
=no
11563 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11564 conftest
$ac_exeext conftest.
$ac_ext
11565 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11566 { echo "$as_me:$LINENO: result: yes" >&5
11567 echo "${ECHO_T}yes" >&6; }
11568 cat >>confdefs.h
<<\_ACEOF
11569 #define HAVE_PCAP_DEBUG 1
11573 { echo "$as_me:$LINENO: result: no" >&5
11574 echo "${ECHO_T}no" >&6; }
11576 # OK, what about "yydebug"?
11578 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11579 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11580 cat >conftest.
$ac_ext <<_ACEOF
11583 cat confdefs.h
>>conftest.
$ac_ext
11584 cat >>conftest.
$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11591 extern int yydebug;
11599 rm -f conftest.
$ac_objext conftest
$ac_exeext
11600 if { (ac_try
="$ac_link"
11601 case "(($ac_try" in
11602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_link") 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest$ac_exeext &&
11616 $as_test_x conftest$ac_exeext; then
11617 ac_lbl_cv_yydebug_defined=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ac_lbl_cv_yydebug_defined=no
11625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11626 conftest$ac_exeext conftest.$ac_ext
11627 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11628 { echo "$as_me:$LINENO: result: yes" >&5
11629 echo "${ECHO_T}yes" >&6; }
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_YYDEBUG 1
11635 { echo "$as_me:$LINENO: result: no" >&5
11636 echo "${ECHO_T}no" >&6; }
11640 for ac_func in bpf_dump
11642 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11656 #define $ac_func innocuous_$ac_func
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below.
11660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661 <limits.h> exists even on freestanding compilers. */
11664 # include <limits.h>
11666 # include <assert.h>
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined __stub_$ac_func || defined __stub___$ac_func
11688 return $ac_func ();
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (ac_try="$ac_link"
11695 case "(($ac_try" in
11696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11697 *) ac_try_echo
=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_link") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1
>conftest.err
11704 cat conftest.err
>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest
$ac_exeext &&
11710 $as_test_x conftest
$ac_exeext; then
11711 eval "$as_ac_var=yes"
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.
$ac_ext >&5
11716 eval "$as_ac_var=no"
11719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11720 conftest
$ac_exeext conftest.
$ac_ext
11722 ac_res
=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726 cat >>confdefs.h
<<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 case " $LIBOBJS " in
11732 *" $ac_func.$ac_objext "* ) ;;
11733 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
11742 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11746 # Assume V7/BSD convention for man pages (file formats in section 5,
11747 # miscellaneous info in section 7).
11754 cat >>confdefs.h
<<\_ACEOF
11762 # Use System V conventions for man pages.
11772 # Use System V conventions for man pages.
11782 # Use System V conventions for man pages.
11792 # Use System V conventions for man pages.
11799 if test -f /dev
/bpf0
; then
11804 # Check for some headers introduced in later versions of libpcap
11805 # and used by some printers.
11807 savedcppflags
="$CPPFLAGS"
11808 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11810 for ac_header
in pcap
/bluetooth.h
11812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 ac_res
=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11823 # Is the header compilable?
11824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826 cat >conftest.
$ac_ext <<_ACEOF
11829 cat confdefs.h
>>conftest.
$ac_ext
11830 cat >>conftest.
$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11835 rm -f conftest.
$ac_objext
11836 if { (ac_try
="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_header_compiler=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_header_compiler=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6; }
11864 # Is the header present?
11865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <$ac_header>
11875 if { (ac_try="$ac_cpp conftest.$ac_ext"
11876 case "(($ac_try" in
11877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11878 *) ac_try_echo
=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1
>conftest.err
11885 cat conftest.err
>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev
/null
&& {
11888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11891 ac_header_preproc
=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.
$ac_ext >&5
11896 ac_header_preproc
=no
11899 rm -f conftest.err conftest.
$ac_ext
11900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901 echo "${ECHO_T}$ac_header_preproc" >&6; }
11903 # So? What about this header?
11904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11910 ac_header_preproc
=yes
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 eval "$as_ac_Header=\$ac_header_preproc"
11935 ac_res
=`eval echo '${'$as_ac_Header'}'`
11936 { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11941 cat >>confdefs.h
<<_ACEOF
11942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11950 for ac_header
in pcap
/usb.h
11952 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 ac_res
=`eval echo '${'$as_ac_Header'}'`
11960 { echo "$as_me:$LINENO: result: $ac_res" >&5
11961 echo "${ECHO_T}$ac_res" >&6; }
11963 # Is the header compilable?
11964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11966 cat >conftest.
$ac_ext <<_ACEOF
11969 cat confdefs.h
>>conftest.
$ac_ext
11970 cat >>conftest.
$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 $ac_includes_default
11973 #include <$ac_header>
11975 rm -f conftest.
$ac_objext
11976 if { (ac_try
="$ac_compile"
11977 case "(($ac_try" in
11978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_compile") 2>conftest.er1
11984 grep -v '^ *+' conftest.er1 >conftest.err
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest.$ac_objext; then
11992 ac_header_compiler=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_header_compiler=no
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6; }
12004 # Is the header present?
12005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
12015 if { (ac_try="$ac_cpp conftest.$ac_ext"
12016 case "(($ac_try" in
12017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12018 *) ac_try_echo
=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12023 grep -v '^ *+' conftest.er1
>conftest.err
12025 cat conftest.err
>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev
/null
&& {
12028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12031 ac_header_preproc
=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.
$ac_ext >&5
12036 ac_header_preproc
=no
12039 rm -f conftest.err conftest.
$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12041 echo "${ECHO_T}$ac_header_preproc" >&6; }
12043 # So? What about this header?
12044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12050 ac_header_preproc
=yes
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 eval "$as_ac_Header=\$ac_header_preproc"
12075 ac_res
=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081 cat >>confdefs.h
<<_ACEOF
12082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12089 CPPFLAGS
="$savedcppflags"
12092 for ac_header
in sys
/bitypes.h
12094 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_res
=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12117 rm -f conftest.
$ac_objext
12118 if { (ac_try
="$ac_compile"
12119 case "(($ac_try" in
12120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest.$ac_objext; then
12134 ac_header_compiler=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_header_compiler=no
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12144 echo "${ECHO_T}$ac_header_compiler" >&6; }
12146 # Is the header present?
12147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <$ac_header>
12157 if { (ac_try="$ac_cpp conftest.$ac_ext"
12158 case "(($ac_try" in
12159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12160 *) ac_try_echo
=$ac_try;;
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12165 grep -v '^ *+' conftest.er1
>conftest.err
12167 cat conftest.err
>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } >/dev
/null
&& {
12170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12173 ac_header_preproc
=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.
$ac_ext >&5
12178 ac_header_preproc
=no
12181 rm -f conftest.err conftest.
$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12183 echo "${ECHO_T}$ac_header_preproc" >&6; }
12185 # So? What about this header?
12186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12192 ac_header_preproc
=yes
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 eval "$as_ac_Header=\$ac_header_preproc"
12217 ac_res
=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h
<<_ACEOF
12224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12232 { echo "$as_me:$LINENO: checking for int8_t" >&5
12233 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12234 if test "${ac_cv_type_int8_t+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 cat >conftest.
$ac_ext <<_ACEOF
12240 cat confdefs.h
>>conftest.
$ac_ext
12241 cat >>conftest.
$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 #ifdef HAVE_SYS_BITYPES_H
12245 #include <sys/bitypes.h>
12248 typedef int8_t ac__type_new_;
12252 if ((ac__type_new_ *) 0)
12254 if (sizeof (ac__type_new_))
12260 rm -f conftest.
$ac_objext
12261 if { (ac_try
="$ac_compile"
12262 case "(($ac_try" in
12263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_compile") 2>conftest.er1
12269 grep -v '^ *+' conftest.er1 >conftest.err
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest.$ac_objext; then
12277 ac_cv_type_int8_t=yes
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_type_int8_t=no
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12288 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12289 if test $ac_cv_type_int8_t = yes; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define int8_t signed char
12299 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12300 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12301 if test "${ac_cv_type_u_int8_t+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 #ifdef HAVE_SYS_BITYPES_H
12312 #include <sys/bitypes.h>
12315 typedef u_int8_t ac__type_new_;
12319 if ((ac__type_new_ *) 0)
12321 if (sizeof (ac__type_new_))
12327 rm -f conftest.$ac_objext
12328 if { (ac_try="$ac_compile"
12329 case "(($ac_try" in
12330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12331 *) ac_try_echo
=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_compile") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1
>conftest.err
12338 cat conftest.err
>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest.
$ac_objext; then
12344 ac_cv_type_u_int8_t
=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12349 ac_cv_type_u_int8_t
=no
12352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12354 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12355 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12356 if test $ac_cv_type_u_int8_t = yes; then
12360 cat >>confdefs.h
<<\_ACEOF
12361 #define u_int8_t unsigned char
12366 { echo "$as_me:$LINENO: checking for int16_t" >&5
12367 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12368 if test "${ac_cv_type_int16_t+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 cat >conftest.
$ac_ext <<_ACEOF
12374 cat confdefs.h
>>conftest.
$ac_ext
12375 cat >>conftest.
$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 $ac_includes_default
12378 typedef int16_t ac__type_new_;
12382 if ((ac__type_new_ *) 0)
12384 if (sizeof (ac__type_new_))
12390 rm -f conftest.
$ac_objext
12391 if { (ac_try
="$ac_compile"
12392 case "(($ac_try" in
12393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_compile") 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest.$ac_objext; then
12407 ac_cv_type_int16_t=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 ac_cv_type_int16_t=no
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12418 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12419 if test $ac_cv_type_int16_t = yes; then
12423 cat >>confdefs.h <<\_ACEOF
12424 #define int16_t short
12427 $ac_includes_default
12428 #ifdef HAVE_SYS_BITYPES_H
12429 #include <sys/bitypes.h>
12433 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12434 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12435 if test "${ac_cv_type_u_int16_t+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 $ac_includes_default
12445 #ifdef HAVE_SYS_BITYPES_H
12446 #include <sys/bitypes.h>
12449 typedef u_int16_t ac__type_new_;
12453 if ((ac__type_new_ *) 0)
12455 if (sizeof (ac__type_new_))
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12465 *) ac_try_echo
=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.
$ac_objext; then
12478 ac_cv_type_u_int16_t
=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.
$ac_ext >&5
12483 ac_cv_type_u_int16_t
=no
12486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12488 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12489 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12490 if test $ac_cv_type_u_int16_t = yes; then
12494 cat >>confdefs.h
<<\_ACEOF
12495 #define u_int16_t unsigned short
12500 { echo "$as_me:$LINENO: checking for int32_t" >&5
12501 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12502 if test "${ac_cv_type_int32_t+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 cat >conftest.
$ac_ext <<_ACEOF
12508 cat confdefs.h
>>conftest.
$ac_ext
12509 cat >>conftest.
$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 #ifdef HAVE_SYS_BITYPES_H
12513 #include <sys/bitypes.h>
12516 typedef int32_t ac__type_new_;
12520 if ((ac__type_new_ *) 0)
12522 if (sizeof (ac__type_new_))
12528 rm -f conftest.
$ac_objext
12529 if { (ac_try
="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_compile") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest.$ac_objext; then
12545 ac_cv_type_int32_t=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_type_int32_t=no
12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12556 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12557 if test $ac_cv_type_int32_t = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define int32_t int
12567 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12568 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12569 if test "${ac_cv_type_u_int32_t+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 $ac_includes_default
12579 #ifdef HAVE_SYS_BITYPES_H
12580 #include <sys/bitypes.h>
12583 typedef u_int32_t ac__type_new_;
12587 if ((ac__type_new_ *) 0)
12589 if (sizeof (ac__type_new_))
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12599 *) ac_try_echo
=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1
>conftest.err
12606 cat conftest.err
>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.
$ac_objext; then
12612 ac_cv_type_u_int32_t
=yes
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.
$ac_ext >&5
12617 ac_cv_type_u_int32_t
=no
12620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12622 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12623 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12624 if test $ac_cv_type_u_int32_t = yes; then
12628 cat >>confdefs.h
<<\_ACEOF
12629 #define u_int32_t unsigned int
12634 { echo "$as_me:$LINENO: checking for int64_t" >&5
12635 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12636 if test "${ac_cv_type_int64_t+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 cat >conftest.
$ac_ext <<_ACEOF
12642 cat confdefs.h
>>conftest.
$ac_ext
12643 cat >>conftest.
$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 $ac_includes_default
12646 #ifdef HAVE_SYS_BITYPES_H
12647 #include <sys/bitypes.h>
12650 typedef int64_t ac__type_new_;
12654 if ((ac__type_new_ *) 0)
12656 if (sizeof (ac__type_new_))
12662 rm -f conftest.
$ac_objext
12663 if { (ac_try
="$ac_compile"
12664 case "(($ac_try" in
12665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679 ac_cv_type_int64_t=yes
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_cv_type_int64_t=no
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12691 if test $ac_cv_type_int64_t = yes; then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define int64_t long long
12701 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12702 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12703 if test "${ac_cv_type_u_int64_t+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 #ifdef HAVE_SYS_BITYPES_H
12714 #include <sys/bitypes.h>
12717 typedef u_int64_t ac__type_new_;
12721 if ((ac__type_new_ *) 0)
12723 if (sizeof (ac__type_new_))
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12733 *) ac_try_echo
=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.
$ac_objext; then
12746 ac_cv_type_u_int64_t
=yes
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.
$ac_ext >&5
12751 ac_cv_type_u_int64_t
=no
12754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12756 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12757 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12758 if test $ac_cv_type_u_int64_t = yes; then
12762 cat >>confdefs.h
<<\_ACEOF
12763 #define u_int64_t unsigned long long
12770 # We can't just check for <inttypes.h> - some systems have one that
12771 # doesn't define all the PRI[doxu]64 macros.
12774 for ac_header
in inttypes.h
12776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_res
=`eval echo '${'$as_ac_Header'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12787 # Is the header compilable?
12788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12790 cat >conftest.
$ac_ext <<_ACEOF
12793 cat confdefs.h
>>conftest.
$ac_ext
12794 cat >>conftest.
$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12797 #include <$ac_header>
12799 rm -f conftest.
$ac_objext
12800 if { (ac_try
="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest.$ac_objext; then
12816 ac_header_compiler=yes
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 ac_header_compiler=no
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826 echo "${ECHO_T}$ac_header_compiler" >&6; }
12828 # Is the header present?
12829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 #include <$ac_header>
12839 if { (ac_try="$ac_cpp conftest.$ac_ext"
12840 case "(($ac_try" in
12841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12842 *) ac_try_echo
=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1
>conftest.err
12849 cat conftest.err
>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } >/dev
/null
&& {
12852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12855 ac_header_preproc
=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12860 ac_header_preproc
=no
12863 rm -f conftest.err conftest.
$ac_ext
12864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12865 echo "${ECHO_T}$ac_header_preproc" >&6; }
12867 # So? What about this header?
12868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12874 ac_header_preproc
=yes
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 eval "$as_ac_Header=\$ac_header_preproc"
12899 ac_res
=`eval echo '${'$as_ac_Header'}'`
12900 { echo "$as_me:$LINENO: result: $ac_res" >&5
12901 echo "${ECHO_T}$ac_res" >&6; }
12904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12905 cat >>confdefs.h
<<_ACEOF
12906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12910 # OK, we have inttypes.h, but does it define those macros?
12912 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12913 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12914 cat >conftest.
$ac_ext <<_ACEOF
12918 cat confdefs.h
>>conftest.
$ac_ext
12919 cat >>conftest.
$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12922 #include <inttypes.h>
12924 #include <sys/types.h>
12925 #ifdef HAVE_SYS_BITYPES_H
12926 #include <sys/bitypes.h>
12931 printf("%" PRId64 "\n", (u_int64_t)1);
12932 printf("%" PRIo64 "\n", (u_int64_t)1);
12933 printf("%" PRIx64 "\n", (u_int64_t)1);
12934 printf("%" PRIu64 "\n", (u_int64_t)1);
12939 rm -f conftest.
$ac_objext
12940 if { (ac_try
="$ac_compile"
12941 case "(($ac_try" in
12942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_compile") 2>conftest.er1
12948 grep -v '^ *+' conftest.er1 >conftest.err
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && {
12953 test -z "$ac_c_werror_flag" ||
12954 test ! -s conftest.err
12955 } && test -s conftest.$ac_objext; then
12957 { echo "$as_me:$LINENO: result: yes" >&5
12958 echo "${ECHO_T}yes" >&6; }
12959 ac_lbl_inttypes_h_defines_formats=yes
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12966 { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12968 ac_lbl_inttypes_h_defines_formats=no
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 # We don't have inttypes.h, so it obviously can't define those
12980 ac_lbl_inttypes_h_defines_formats=no
12986 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12988 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12989 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12990 if test "$cross_compiling" = yes; then
12991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12992 See \`config.log
' for more details." >&5
12993 echo "$as_me: error: cannot run test program while cross compiling
12994 See \`config.log' for more details.
" >&2;}
12995 { (exit 1); exit 1; }; }
12997 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13005 # ifdef HAVE_INTTYPES_H
13006 #include <inttypes.h>
13008 # ifdef HAVE_SYS_BITYPES_H
13009 #include <sys/bitypes.h>
13012 #include <sys/types.h>
13018 sprintf(strbuf, "%016lx
", t << 32);
13019 if (strcmp(strbuf, "0000000100000000") == 0)
13027 rm -f conftest$ac_exeext
13028 if { (ac_try="$ac_link"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_link") 2>&5
13036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13046 (exit $ac_status); }; }; then
13048 cat >>confdefs.h <<\_ACEOF
13049 #define PRId64 "ld
"
13052 cat >>confdefs.h <<\_ACEOF
13053 #define PRIo64 "lo
"
13056 cat >>confdefs.h <<\_ACEOF
13057 #define PRIx64 "lx
"
13060 cat >>confdefs.h <<\_ACEOF
13061 #define PRIu64 "lu
"
13064 { echo "$as_me:$LINENO: result
: yes" >&5
13065 echo "${ECHO_T}yes" >&6; }
13068 echo "$as_me: program exited with status
$ac_status" >&5
13069 echo "$as_me: failed program was
:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13072 ( exit $ac_status )
13074 { echo "$as_me:$LINENO: result
: no
" >&5
13075 echo "${ECHO_T}no
" >&6; }
13078 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
13079 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
13080 if test "$cross_compiling" = yes; then
13081 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
13082 See \
`config.log' for more details." >&5
13083 echo "$as_me: error: cannot run test program while cross compiling
13084 See \`config.log
' for more details." >&2;}
13085 { (exit 1); exit 1; }; }
13087 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 # ifdef HAVE_INTTYPES_H
13096 #include <inttypes.h>
13098 # ifdef HAVE_SYS_BITYPES_H
13099 #include <sys/bitypes.h>
13102 #include <sys/types.h>
13108 sprintf(strbuf, "%016llx", t << 32);
13109 if (strcmp(strbuf, "0000000100000000") == 0)
13117 rm -f conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13138 cat >>confdefs.h <<\_ACEOF
13139 #define PRId64 "lld"
13142 cat >>confdefs.h <<\_ACEOF
13143 #define PRIo64 "llo"
13146 cat >>confdefs.h <<\_ACEOF
13147 #define PRIx64 "llx"
13150 cat >>confdefs.h <<\_ACEOF
13151 #define PRIu64 "llu"
13154 { echo "$as_me:$LINENO: result: yes" >&5
13155 echo "${ECHO_T}yes" >&6; }
13158 echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 sed 's
/^
/|
/' conftest.$ac_ext >&5
13162 ( exit $ac_status )
13164 { echo "$as_me:$LINENO: result: no" >&5
13165 echo "${ECHO_T}no" >&6; }
13168 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13169 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13170 if test "$cross_compiling" = yes; then
13171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13172 See \`config.log' for more details.
" >&5
13173 echo "$as_me: error
: cannot run
test program
while cross compiling
13174 See \
`config.log' for more details." >&2;}
13175 { (exit 1); exit 1; }; }
13177 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13185 # ifdef HAVE_INTTYPES_H
13186 #include <inttypes.h>
13188 # ifdef HAVE_SYS_BITYPES_H
13189 #include <sys/bitypes.h>
13192 #include <sys/types.h>
13198 sprintf(strbuf, "%016Lx", t << 32);
13199 if (strcmp(strbuf, "0000000100000000") == 0)
13207 rm -f conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13211 *) ac_try_echo
=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13228 cat >>confdefs.h <<\_ACEOF
13229 #define PRId64 "Ld"
13232 cat >>confdefs.h <<\_ACEOF
13233 #define PRIo64 "Lo"
13236 cat >>confdefs.h <<\_ACEOF
13237 #define PRIx64 "Lx"
13240 cat >>confdefs.h <<\_ACEOF
13241 #define PRIu64 "Lu"
13244 { echo "$as_me:$LINENO: result: yes" >&5
13245 echo "${ECHO_T}yes" >&6; }
13248 echo "$as_me: program exited with status $ac_status" >&5
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 ( exit $ac_status )
13254 { echo "$as_me:$LINENO: result: no" >&5
13255 echo "${ECHO_T}no" >&6; }
13258 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13259 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13260 if test "$cross_compiling" = yes; then
13261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13262 See \`config.log
' for more details." >&5
13263 echo "$as_me: error: cannot run test program while cross compiling
13264 See \`config.log' for more details.
" >&2;}
13265 { (exit 1); exit 1; }; }
13267 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13275 # ifdef HAVE_INTTYPES_H
13276 #include <inttypes.h>
13278 # ifdef HAVE_SYS_BITYPES_H
13279 #include <sys/bitypes.h>
13282 #include <sys/types.h>
13288 sprintf(strbuf, "%016qx
", t << 32);
13289 if (strcmp(strbuf, "0000000100000000") == 0)
13297 rm -f conftest$ac_exeext
13298 if { (ac_try="$ac_link"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_link") 2>&5
13306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13316 (exit $ac_status); }; }; then
13318 cat >>confdefs.h <<\_ACEOF
13319 #define PRId64 "qd
"
13322 cat >>confdefs.h <<\_ACEOF
13323 #define PRIo64 "qo
"
13326 cat >>confdefs.h <<\_ACEOF
13327 #define PRIx64 "qx
"
13330 cat >>confdefs.h <<\_ACEOF
13331 #define PRIu64 "qu
"
13334 { echo "$as_me:$LINENO: result
: yes" >&5
13335 echo "${ECHO_T}yes" >&6; }
13338 echo "$as_me: program exited with status
$ac_status" >&5
13339 echo "$as_me: failed program was
:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ( exit $ac_status )
13344 { echo "$as_me:$LINENO: result
: no
" >&5
13345 echo "${ECHO_T}no
" >&6; }
13347 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
13348 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
13349 { (exit 1); exit 1; }; }
13353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 if test -n "$ac_tool_prefix"; then
13385 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13387 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13388 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13389 if test "${ac_cv_prog_RANLIB+set}" = set; then
13390 echo $ECHO_N "(cached
) $ECHO_C" >&6
13392 if test -n "$RANLIB"; then
13393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13403 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13412 RANLIB=$ac_cv_prog_RANLIB
13413 if test -n "$RANLIB"; then
13414 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13415 echo "${ECHO_T}$RANLIB" >&6; }
13417 { echo "$as_me:$LINENO: result
: no
" >&5
13418 echo "${ECHO_T}no
" >&6; }
13423 if test -z "$ac_cv_prog_RANLIB"; then
13424 ac_ct_RANLIB=$RANLIB
13425 # Extract the first word of "ranlib
", so it can be a program name with args.
13426 set dummy ranlib; ac_word=$2
13427 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13428 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13429 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13430 echo $ECHO_N "(cached
) $ECHO_C" >&6
13432 if test -n "$ac_ct_RANLIB"; then
13433 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13442 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13443 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13452 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13453 if test -n "$ac_ct_RANLIB"; then
13454 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13455 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13457 { echo "$as_me:$LINENO: result
: no
" >&5
13458 echo "${ECHO_T}no
" >&6; }
13461 if test "x
$ac_ct_RANLIB" = x; then
13464 case $cross_compiling:$ac_tool_warned in
13466 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13467 whose name does not start with the
host triplet. If you think this
13468 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13469 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13470 whose name does not start with the
host triplet. If you think this
13471 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13472 ac_tool_warned=yes ;;
13474 RANLIB=$ac_ct_RANLIB
13477 RANLIB="$ac_cv_prog_RANLIB"
13482 if test "${LBL_CFLAGS+set}" = set; then
13483 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13485 if test -f .devel ; then
13486 if test "$GCC" = yes ; then
13487 if test "${LBL_CFLAGS+set}" != set; then
13488 if test "$ac_cv_prog_cc_g" = yes ; then
13489 V_CCOPT="-g $V_CCOPT"
13491 V_CCOPT="$V_CCOPT -Wall"
13492 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13493 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13500 V_CCOPT="$V_CCOPT -n32"
13507 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13508 name="lbl
/os-
$os.h
"
13509 if test -f $name ; then
13510 ln -s $name os-proto.h
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_OS_PROTO_H 1
13517 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
13518 echo "$as_me: WARNING: can't
find $name" >&2;}
13522 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
13523 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
13524 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13525 echo $ECHO_N "(cached
) $ECHO_C" >&6
13527 cat >conftest.$ac_ext <<_ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13534 # include <sys/types.h>
13535 # include <sys/socket.h>
13539 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_cv_lbl_sockaddr_has_sa_len=yes
13563 echo "$as_me: failed program was
:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_lbl_sockaddr_has_sa_len=no
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13573 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13574 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_SOCKADDR_SA_LEN 1
13582 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
13583 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
13584 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13585 echo $ECHO_N "(cached
) $ECHO_C" >&6
13587 case "$host_cpu" in
13590 # These are CPU types where:
13592 # the CPU faults on an unaligned access, but at least some
13593 # OSes that support that CPU catch the fault and simulate
13594 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13595 # the simulation is slow, so we don't want to use it;
13597 # the CPU, I infer (from the old
13599 # XXX: should also check that they don't do weird things (like on arm)
13601 # comment) doesn't fault on unaligned accesses, but doesn't
13602 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13604 # for whatever reason, the test program doesn't work
13605 # (this has been claimed to be the case for several of those
13606 # CPUs - I don't know what the problem is; the problem
13607 # was reported as "the
test program dumps core
" for SuperH,
13608 # but that's what the test program is *supposed* to do -
13609 # it dumps core before it writes anything, so the test
13610 # for an empty output file should find an empty output
13611 # file and conclude that unaligned accesses don't work).
13613 # This run-time test won't work if you're cross-compiling, so
13614 # in order to support cross-compiling for a particular CPU,
13615 # we have to wire in the list of CPU types anyway, as far as
13616 # I know, so perhaps we should just have a set of CPUs on
13617 # which we know it doesn't work, a set of CPUs on which we
13618 # know it does work, and have the script just fail on other
13619 # cpu types and update it when such a failure occurs.
13621 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13622 ac_cv_lbl_unaligned_fail=yes
13626 cat >conftest.c <<EOF
13627 # include <sys/types.h>
13628 # include <sys/wait.h>
13629 # include <stdio.h>
13630 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13635 /* avoid "core dumped
" message */
13641 pid = waitpid(pid, &status, 0);
13644 exit(!WIFEXITED(status));
13647 i = *(unsigned int *)&a[1];
13652 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13653 conftest.c $LIBS >/dev/null 2>&1
13654 if test ! -x conftest ; then
13655 ac_cv_lbl_unaligned_fail=yes
13657 ./conftest >conftest.out
13658 if test ! -s conftest.out ; then
13659 ac_cv_lbl_unaligned_fail=yes
13661 ac_cv_lbl_unaligned_fail=no
13664 rm -f -r conftest* core core.conftest
13669 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
13670 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13671 if test $ac_cv_lbl_unaligned_fail = yes ; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define LBL_ALIGN 1
13680 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
13681 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
13682 if test "${ac_cv_var_h_errno+set}" = set; then
13683 echo $ECHO_N "(cached
) $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13692 # include <sys/types.h>
13693 # include <netdb.h>
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 ac_cv_var_h_errno=yes
13721 echo "$as_me: failed program was
:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_var_h_errno=no
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
13731 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13732 if test "$ac_cv_var_h_errno" = "yes"; then
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_H_ERRNO 1
13741 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto
" >&5
13742 echo $ECHO_N "checking whether to use SSLeay libcrypto...
$ECHO_C" >&6; }
13743 # Specify location for both includes and libraries.
13744 want_libcrypto=youmama
13746 # Check whether --with-crypto was given.
13747 if test "${with_crypto+set}" = set; then
13748 withval=$with_crypto;
13749 if test $withval = no
13752 { echo "$as_me:$LINENO: result
: no
" >&5
13753 echo "${ECHO_T}no
" >&6; }
13754 elif test $withval = yes
13757 { echo "$as_me:$LINENO: result
: yes" >&5
13758 echo "${ECHO_T}yes" >&6; }
13761 { echo "$as_me:$LINENO: result
: yes" >&5
13762 echo "${ECHO_T}yes" >&6; }
13763 crypto_dir=$withval
13769 # Use libcrypto if it's present, otherwise don't.
13771 want_libcrypto=ifavailable
13772 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
13773 echo "${ECHO_T}yes, if available
" >&6; }
13777 if test "$want_libcrypto" != "no
"; then
13778 ac_cv_ssleay_path=no
13780 if test "x
$crypto_dir" = x; then
13782 # Location not specified; check the default locations.
13784 { echo "$as_me:$LINENO: checking where SSLeay is located
" >&5
13785 echo $ECHO_N "checking where SSLeay is located...
$ECHO_C" >&6; }
13786 dirs="/usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
"
13787 if test "x
${host_alias}" != x; then
13788 dirs="/usr
/${host_alias} $dirs"
13790 for dir in $dirs; do
13793 # Find the last component of $libdir; it's not necessarily
13794 # "lib
" - it might be "lib64
" on, for example, x86-64
13797 # We assume the directory in which we're looking for
13798 # libcrypto has a subdirectory with that as its name.
13800 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13803 # XXX - is there a better way to check if a given library is
13804 # in a given directory than checking each of the possible
13805 # shared library suffixes?
13807 # Are there any other suffixes we need to look for? Do we
13808 # have to worry about ".so.
{version
}"?
13810 # Or should we just look for "libcrypto.
*"?
13812 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a
" -o \
13813 -f "$dir/$tmplib/libcrypto.so
" -o \
13814 -f "$dir/$tmplib/libcrypto.sl
" -o \
13815 -f "$dir/$tmplib/libcrypto.dylib
" \); then
13816 ac_cv_ssleay_path="$dir"
13820 # Make sure we have the headers as well.
13822 if test -d "$dir/include
/openssl
" -a -f "$dir/include
/openssl
/des.h
"; then
13823 incdir="-I$dir/include
"
13827 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
13830 ac_cv_ssleay_path=no
13834 if test "$ac_cv_ssleay_path" != no; then
13835 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
13836 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13839 { echo "$as_me:$LINENO: checking
for SSLeay
in $crypto_dir" >&5
13840 echo $ECHO_N "checking
for SSLeay
in $crypto_dir...
$ECHO_C" >&6; }
13843 # Find the last component of $libdir; it's not necessarily
13844 # "lib
" - it might be "lib64
" on, for example, x86-64
13847 # We assume the directory in which we're looking for
13848 # libcrypto has a subdirectory with that as its name.
13850 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13853 # XXX - is there a better way to check if a given library is
13854 # in a given directory than checking each of the possible
13855 # shared library suffixes?
13857 # Are there any other suffixes we need to look for? Do we
13858 # have to worry about ".so.
{version
}"?
13860 # Or should we just look for "libcrypto.
*"?
13862 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a
" -o \
13863 -f "$crypto_dir/$tmplib/libcrypto.so
" -o \
13864 -f "$crypto_dir/$tmplib/libcrypto.sl
" -o \
13865 -f "$crypto_dir/$tmplib/libcrypto.dylib
" \); then
13866 ac_cv_ssleay_path="$crypto_dir"
13870 # Make sure we have the headers as well.
13872 if test -d "$crypto_dir/include
/openssl
" -a -f "$crypto_dir/include
/openssl
/des.h
"; then
13873 incdir="-I$crypto_dir/include
"
13876 if test "$ac_cv_ssleay_path" != no; then
13877 { echo "$as_me:$LINENO: result
: found
" >&5
13878 echo "${ECHO_T}found
" >&6; }
13881 if test "$ac_cv_ssleay_path" != no; then
13882 V_INCLS="$V_INCLS $incdir"
13883 if test "$dir" != "/usr
"; then
13884 LDFLAGS="-L$dir/lib
$LDFLAGS"
13886 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13887 LIBS="$LIBS -lRSAglue"
13889 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13890 LIBS="$LIBS -lrsaref"
13893 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
13894 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
13895 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13896 echo $ECHO_N "(cached
) $ECHO_C" >&6
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-lcrypto $LIBS"
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13913 char DES_cbc_encrypt ();
13917 return DES_cbc_encrypt ();
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest$ac_exeext &&
13939 $as_test_x conftest$ac_exeext; then
13940 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13942 echo "$as_me: failed program was
:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_cv_lib_crypto_DES_cbc_encrypt=no
13948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13953 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13954 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_LIBCRYPTO 1
13959 LIBS="-lcrypto $LIBS"
13964 CPPFLAGS="$CPPFLAGS $V_INCLS"
13966 for ac_header in openssl/evp.h
13968 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13970 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13971 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13973 echo $ECHO_N "(cached
) $ECHO_C" >&6
13975 ac_res=`eval echo '${'$as_ac_Header'}'`
13976 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13977 echo "${ECHO_T}$ac_res" >&6; }
13979 # Is the header compilable?
13980 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13981 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13982 cat >conftest.$ac_ext <<_ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 #include <$ac_header>
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_compile") 2>conftest.er1
14000 grep -v '^ *+' conftest.er1 >conftest.err
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest.$ac_objext; then
14008 ac_header_compiler=yes
14010 echo "$as_me: failed program was
:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14018 echo "${ECHO_T}$ac_header_compiler" >&6; }
14020 # Is the header present?
14021 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14022 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <$ac_header>
14031 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14043 (exit $ac_status); } >/dev/null && {
14044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14047 ac_header_preproc=yes
14049 echo "$as_me: failed program was
:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_header_preproc=no
14055 rm -f conftest.err conftest.$ac_ext
14056 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6; }
14059 # So? What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14062 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14063 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14064 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14066 ac_header_preproc=yes
14069 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14070 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14071 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14072 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14073 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14074 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14075 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14076 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14077 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14079 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14080 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14084 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14085 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14087 echo $ECHO_N "(cached
) $ECHO_C" >&6
14089 eval "$as_ac_Header=\
$ac_header_preproc"
14091 ac_res=`eval echo '${'$as_ac_Header'}'`
14092 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14093 echo "${ECHO_T}$ac_res" >&6; }
14096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14107 # Not found. Did the user explicitly ask for it?
14109 { echo "$as_me:$LINENO: result
: not found
" >&5
14110 echo "${ECHO_T}not found
" >&6; }
14111 if test "$want_libcrypto" = yes; then
14112 { { echo "$as_me:$LINENO: error
: SSLeay not found
" >&5
14113 echo "$as_me: error
: SSLeay not found
" >&2;}
14114 { (exit 1); exit 1; }; }
14119 if test "$missing_includes" = "yes"; then
14120 CPPFLAGS="$CPPFLAGS -I\$
(srcdir
)/missing
"
14121 V_INCLS="$V_INCLS -I\$
(srcdir
)/missing
"
14133 # Find a good install program. We prefer a C program (faster),
14134 # so one script is as good as another. But avoid the broken or
14135 # incompatible versions:
14136 # SysV /etc/install, /usr/sbin/install
14137 # SunOS /usr/etc/install
14138 # IRIX /sbin/install
14140 # AmigaOS /C/install, which installs bootblocks on floppy discs
14141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
14144 # OS/2's system install, which has a completely different semantic
14145 # ./install, which can be erroneously created by make from ./install.sh.
14146 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
14147 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
14148 if test -z "$INSTALL"; then
14149 if test "${ac_cv_path_install+set}" = set; then
14150 echo $ECHO_N "(cached
) $ECHO_C" >&6
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14156 test -z "$as_dir" && as_dir=.
14157 # Account for people who put trailing slashes in PATH elements.
14159 ./ | .// | /cC/* | \
14160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14161 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14164 # OSF1 and SCO ODT 3.0 have their own names for install.
14165 # Don't use installbsd from OSF since it installs stuff as root
14167 for ac_prog in ginstall scoinst install; do
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14170 if test $ac_prog = install &&
14171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14172 # AIX install. It has an incompatible calling convention.
14174 elif test $ac_prog = install &&
14175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14176 # program-specific install script used by HP pwplus--don't use.
14179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14192 if test "${ac_cv_path_install+set}" = set; then
14193 INSTALL=$ac_cv_path_install
14195 # As a last resort, use the slow shell script. Don't cache a
14196 # value for INSTALL within a source directory, because that will
14197 # break other packages using the cache if that directory is
14198 # removed, or if the value is a relative name.
14199 INSTALL=$ac_install_sh
14202 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
14203 echo "${ECHO_T}$INSTALL" >&6; }
14205 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14206 # It thinks the first close brace ends the variable substitution.
14207 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14209 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14211 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14214 ac_config_headers="$ac_config_headers config.h
"
14217 ac_config_commands="$ac_config_commands default-1
"
14219 ac_config_files="$ac_config_files Makefile tcpdump
.1"
14221 cat >confcache <<\_ACEOF
14222 # This file is a shell script that caches the results of configure
14223 # tests run on this system so they can be shared between configure
14224 # scripts and configure runs, see configure's option --config-cache.
14225 # It is not useful on other systems. If it contains results you don't
14226 # want to keep, you may remove or edit it.
14228 # config.status only pays attention to the cache file if you give it
14229 # the --recheck option to rerun configure.
14231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14233 # following values.
14237 # The following way of writing the cache mishandles newlines in values,
14238 # but we know of no workaround that is simple, portable, and efficient.
14239 # So, we kill variables containing newlines.
14240 # Ultrix sh set writes to stderr and can't be redirected directly,
14241 # and sets the high bit in the cache file unless we assign to the vars.
14243 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14244 eval ac_val=\$$ac_var
14248 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
14249 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
14252 _ | IFS | as_nl) ;; #(
14253 *) $as_unset $ac_var ;;
14259 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14260 *${as_nl}ac_space=\ *)
14261 # `set' does not quote correctly, so add quotes (double-quote
14262 # substitution turns \\\\ into \\, and sed turns \\ into \).
14265 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
14268 # `set' quotes correctly as required by POSIX, so do not add quotes.
14269 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
14278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14280 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14282 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14283 if test -w "$cache_file"; then
14284 test "x
$cache_file" != "x
/dev
/null
" &&
14285 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
14286 echo "$as_me: updating cache
$cache_file" >&6;}
14287 cat confcache >$cache_file
14289 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
14290 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
14295 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
14296 # Let make expand exec_prefix.
14297 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
14299 DEFS=-DHAVE_CONFIG_H
14303 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
14304 # 1. Remove the extension, and $U if already installed.
14305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14306 ac_i=`echo "$ac_i" | sed "$ac_script"`
14307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14308 # will be set to the directory where LIBOBJS objects are built.
14309 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
14310 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
14312 LIBOBJS=$ac_libobjs
14314 LTLIBOBJS=$ac_ltlibobjs
14318 : ${CONFIG_STATUS=./config.status}
14319 ac_clean_files_save=$ac_clean_files
14320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14321 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
14322 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
14323 cat >$CONFIG_STATUS <<_ACEOF
14325 # Generated by $as_me.
14326 # Run this file to recreate the current configuration.
14327 # Compiler output produced by configure, useful for debugging
14328 # configure, is in config.log if it exists.
14331 ac_cs_recheck=false
14333 SHELL=\${CONFIG_SHELL-$SHELL}
14336 cat >>$CONFIG_STATUS <<\_ACEOF
14337 ## --------------------- ##
14338 ## M4sh Initialization. ##
14339 ## --------------------- ##
14341 # Be more Bourne compatible
14342 DUALCASE=1; export DUALCASE # for MKS sh
14343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14347 # is contrary to our usage. Disable this feature.
14348 alias -g '${1+"$@"}'='"$@
"'
14349 setopt NO_GLOB_SUBST
14351 case `(set -o) 2>/dev/null` in
14352 *posix*) set -o posix ;;
14361 # Avoid depending upon Character Ranges.
14362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14365 as_cr_digits='0123456789'
14366 as_cr_alnum=$as_cr_Letters$as_cr_digits
14368 # The user is always right.
14369 if test "${PATH_SEPARATOR+set}" != set; then
14370 echo "#! /bin/sh" >conf$$.sh
14371 echo "exit 0" >>conf$$.sh
14373 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14381 # Support unset when possible.
14382 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
14390 # We need space, tab and new line, in precisely that order. Quoting is
14391 # there to prevent editors from complaining about space-tab.
14392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14393 # splitting by setting IFS to empty value.)
14398 # Find who we are. Look in the path if we contain no directory separator.
14400 *[\\/]* ) as_myself
=$0 ;;
14401 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14402 for as_dir
in $PATH
14405 test -z "$as_dir" && as_dir
=.
14406 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14412 # We did not find ourselves, most probably we were run as `sh COMMAND'
14413 # in which case we are not to be found in the path.
14414 if test "x$as_myself" = x
; then
14417 if test ! -f "$as_myself"; then
14418 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14419 { (exit 1); exit 1; }
14422 # Work around bugs in pre-3.0 UWIN ksh.
14423 for as_var
in ENV MAIL MAILPATH
14424 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14434 LC_TELEPHONE LC_TIME
14436 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14437 eval $as_var=C
; export $as_var
14439 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14443 # Required to use basename.
14444 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14445 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14451 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14452 as_basename
=basename
14458 # Name of the executable.
14459 as_me
=`$as_basename -- "$0" ||
14460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14461 X"$0" : 'X\(//\)$' \| \
14462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14464 sed '/^.*\/\([^/][^/]*\)\/*$/{
14483 as_lineno_1
=$LINENO
14484 as_lineno_2
=$LINENO
14485 test "x$as_lineno_1" != "x$as_lineno_2" &&
14486 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
14488 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14489 # uniformly replaced by the line number. The first 'sed' inserts a
14490 # line-number line after each line using $LINENO; the second 'sed'
14491 # does the real work. The second script uses 'N' to pair each
14492 # line-number line with the line containing $LINENO, and appends
14493 # trailing '-' during substitution so that $LINENO is not a special
14494 # case at line end.
14495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14496 # scripts with optimization help from Paolo Bonzini. Blame Lee
14497 # E. McMahon (1931-1989) for sed's syntax. :-)
14509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14512 ' >$as_me.lineno
&&
14513 chmod +x
"$as_me.lineno" ||
14514 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14515 { (exit 1); exit 1; }; }
14517 # Don't try to exec as it changes $[0], causing all sort of problems
14518 # (the dirname of $[0] is not the place where we might find the
14519 # original and so on. Autoconf is especially sensitive to this).
14520 .
"./$as_me.lineno"
14521 # Exit status is that of the last command.
14526 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14532 ECHO_C
= ECHO_N
= ECHO_T
=
14533 case `echo -n x` in
14535 case `echo 'x\c'` in
14536 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14543 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14544 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14550 rm -f conf$$ conf$$.exe conf$$.
file
14551 if test -d conf$$.dir
; then
14552 rm -f conf$$.dir
/conf$$.
file
14558 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14560 # ... but there are two gotchas:
14561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14563 # In both cases, we have to default to `cp -p'.
14564 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14566 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14572 rmdir conf$$.dir
2>/dev
/null
14574 if mkdir
-p .
2>/dev
/null
; then
14577 test -d .
/-p && rmdir .
/-p
14581 if test -x / >/dev
/null
2>&1; then
14582 as_test_x
='test -x'
14584 if ls -dL / >/dev
/null
2>&1; then
14591 if test -d "$1"; then
14597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14598 ???[sx]*):;;*)false;;esac;fi
14602 as_executable_p
=$as_test_x
14604 # Sed expression to map a string onto a valid CPP name.
14605 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14607 # Sed expression to map a string onto a valid variable name.
14608 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14613 # Save the log message, to keep $[0] and so on meaningful, and to
14614 # report actual input values of CONFIG_FILES etc. instead of their
14615 # values after options handling.
14617 This file was extended by $as_me, which was
14618 generated by GNU Autoconf 2.61. Invocation command line was
14620 CONFIG_FILES = $CONFIG_FILES
14621 CONFIG_HEADERS = $CONFIG_HEADERS
14622 CONFIG_LINKS = $CONFIG_LINKS
14623 CONFIG_COMMANDS = $CONFIG_COMMANDS
14626 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14631 cat >>$CONFIG_STATUS <<_ACEOF
14632 # Files that config.status was made for.
14633 config_files="$ac_config_files"
14634 config_headers="$ac_config_headers"
14635 config_commands="$ac_config_commands"
14639 cat >>$CONFIG_STATUS <<\_ACEOF
14641 \`$as_me' instantiates files from templates according to the
14642 current configuration.
14644 Usage: $0 [OPTIONS] [FILE]...
14646 -h, --help print this help, then exit
14647 -V, --version print version number and configuration settings, then exit
14648 -q, --quiet do not print progress messages
14649 -d, --debug don't remove temporary files
14650 --recheck update $as_me by reconfiguring in the same conditions
14651 --file=FILE[:TEMPLATE]
14652 instantiate the configuration file FILE
14653 --header=FILE[:TEMPLATE]
14654 instantiate the configuration header FILE
14656 Configuration files:
14659 Configuration headers:
14662 Configuration commands:
14665 Report bugs to <bug-autoconf@gnu.org>."
14668 cat >>$CONFIG_STATUS <<_ACEOF
14671 configured by $0, generated by GNU Autoconf 2.61,
14672 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14674 Copyright (C) 2006 Free Software Foundation, Inc.
14675 This config.status script is free software; the Free Software Foundation
14676 gives unlimited permission to copy, distribute and modify it."
14683 cat >>$CONFIG_STATUS <<\_ACEOF
14684 # If no file are specified by the user, then we need to provide default
14685 # value. By we need to know if files were specified by the user.
14691 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14692 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14703 # Handling of the options.
14704 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14706 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14707 echo "$ac_cs_version"; exit ;;
14708 --debug |
--debu |
--deb |
--de |
--d |
-d )
14710 --file |
--fil |
--fi |
--f )
14712 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14713 ac_need_defaults
=false
;;
14714 --header |
--heade |
--head |
--hea )
14716 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14717 ac_need_defaults
=false
;;
14719 # Conflict between --help and --header
14720 { echo "$as_me: error: ambiguous option: $1
14721 Try \`$0 --help' for more information." >&2
14722 { (exit 1); exit 1; }; };;
14723 --help |
--hel |
-h )
14724 echo "$ac_cs_usage"; exit ;;
14725 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14726 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14729 # This is an error.
14730 -*) { echo "$as_me: error: unrecognized option: $1
14731 Try \`$0 --help' for more information." >&2
14732 { (exit 1); exit 1; }; } ;;
14734 *) ac_config_targets
="$ac_config_targets $1"
14735 ac_need_defaults
=false
;;
14741 ac_configure_extra_args
=
14743 if $ac_cs_silent; then
14745 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14749 cat >>$CONFIG_STATUS <<_ACEOF
14750 if \$ac_cs_recheck; then
14751 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14752 CONFIG_SHELL=$SHELL
14753 export CONFIG_SHELL
14754 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14758 cat >>$CONFIG_STATUS <<\_ACEOF
14762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14763 ## Running $as_me. ##
14769 cat >>$CONFIG_STATUS <<_ACEOF
14777 cat >>$CONFIG_STATUS <<\_ACEOF
14779 # Handling of arguments.
14780 for ac_config_target
in $ac_config_targets
14782 case $ac_config_target in
14783 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14784 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14785 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14786 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
14788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14790 { (exit 1); exit 1; }; };;
14795 # If the user did not use the arguments to specify the items to instantiate,
14796 # then the envvar interface is used. Set only those that are not.
14797 # We use the long form for the default assignment because of an extremely
14798 # bizarre bug on SunOS 4.1.3.
14799 if $ac_need_defaults; then
14800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14805 # Have a temporary directory for convenience. Make it in the build tree
14806 # simply because there is no reason against having it here, and in addition,
14807 # creating and moving files from /tmp can sometimes cause problems.
14808 # Hook for its removal unless debugging.
14809 # Note that there is a small window in which the directory will not be cleaned:
14810 # after its creation but before its name has been assigned to `$tmp'.
14814 trap 'exit_status=$?
14815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14817 trap '{ (exit 1); exit 1; }' 1 2 13 15
14819 # Create a (secure) tmp directory for tmp files.
14822 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14823 test -n "$tmp" && test -d "$tmp"
14826 tmp
=.
/conf$$
-$RANDOM
14827 (umask 077 && mkdir
"$tmp")
14830 echo "$me: cannot create a temporary directory in ." >&2
14831 { (exit 1); exit 1; }
14835 # Set up the sed scripts for CONFIG_FILES section.
14838 # No need to generate the scripts if there are no CONFIG_FILES.
14839 # This happens for instance when ./config.status config.h
14840 if test -n "$CONFIG_FILES"; then
14847 for ac_last_try
in false false false false false
:; do
14848 cat >conf$
$subs.
sed <<_ACEOF
14849 SHELL!$SHELL$ac_delim
14850 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14851 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14852 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14853 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14854 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14855 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14856 exec_prefix!$exec_prefix$ac_delim
14857 prefix!$prefix$ac_delim
14858 program_transform_name!$program_transform_name$ac_delim
14859 bindir!$bindir$ac_delim
14860 sbindir!$sbindir$ac_delim
14861 libexecdir!$libexecdir$ac_delim
14862 datarootdir!$datarootdir$ac_delim
14863 datadir!$datadir$ac_delim
14864 sysconfdir!$sysconfdir$ac_delim
14865 sharedstatedir!$sharedstatedir$ac_delim
14866 localstatedir!$localstatedir$ac_delim
14867 includedir!$includedir$ac_delim
14868 oldincludedir!$oldincludedir$ac_delim
14869 docdir!$docdir$ac_delim
14870 infodir!$infodir$ac_delim
14871 htmldir!$htmldir$ac_delim
14872 dvidir!$dvidir$ac_delim
14873 pdfdir!$pdfdir$ac_delim
14874 psdir!$psdir$ac_delim
14875 libdir!$libdir$ac_delim
14876 localedir!$localedir$ac_delim
14877 mandir!$mandir$ac_delim
14878 DEFS!$DEFS$ac_delim
14879 ECHO_C!$ECHO_C$ac_delim
14880 ECHO_N!$ECHO_N$ac_delim
14881 ECHO_T!$ECHO_T$ac_delim
14882 LIBS!$LIBS$ac_delim
14883 build_alias!$build_alias$ac_delim
14884 host_alias!$host_alias$ac_delim
14885 target_alias!$target_alias$ac_delim
14886 build!$build$ac_delim
14887 build_cpu!$build_cpu$ac_delim
14888 build_vendor!$build_vendor$ac_delim
14889 build_os!$build_os$ac_delim
14890 host!$host$ac_delim
14891 host_cpu!$host_cpu$ac_delim
14892 host_vendor!$host_vendor$ac_delim
14893 host_os!$host_os$ac_delim
14894 SHLICC2!$SHLICC2$ac_delim
14896 CFLAGS!$CFLAGS$ac_delim
14897 LDFLAGS!$LDFLAGS$ac_delim
14898 CPPFLAGS!$CPPFLAGS$ac_delim
14899 ac_ct_CC!$ac_ct_CC$ac_delim
14900 EXEEXT!$EXEEXT$ac_delim
14901 OBJEXT!$OBJEXT$ac_delim
14902 ARCHFLAGS!$ARCHFLAGS$ac_delim
14904 GREP!$GREP$ac_delim
14905 EGREP!$EGREP$ac_delim
14906 LIBOBJS!$LIBOBJS$ac_delim
14907 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14908 RANLIB!$RANLIB$ac_delim
14909 V_CCOPT!$V_CCOPT$ac_delim
14910 V_DEFS!$V_DEFS$ac_delim
14911 V_GROUP!$V_GROUP$ac_delim
14912 V_INCLS!$V_INCLS$ac_delim
14913 V_PCAPDEP!$V_PCAPDEP$ac_delim
14914 LOCALSRC!$LOCALSRC$ac_delim
14915 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14916 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14917 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14918 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14919 INSTALL_DATA!$INSTALL_DATA$ac_delim
14920 LTLIBOBJS!$LTLIBOBJS$ac_delim
14923 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 72; then
14925 elif $ac_last_try; then
14926 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14927 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14928 { (exit 1); exit 1; }; }
14930 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14934 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14935 if test -n "$ac_eof"; then
14936 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14937 ac_eof
=`expr $ac_eof + 1`
14940 cat >>$CONFIG_STATUS <<_ACEOF
14941 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14945 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14946 s/^/s,@/; s/!/@,|#_!!_#|/
14949 s/'"$ac_delim"'$/,g/; t
14951 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14952 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14953 rm -f conf$
$subs.
sed
14954 cat >>$CONFIG_STATUS <<_ACEOF
14961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14963 # trailing colons and then remove the whole line if VPATH becomes empty
14964 # (actually we leave an empty line to preserve line numbers).
14965 if test "x$srcdir" = x.
; then
14966 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14967 s/:*\$(srcdir):*/:/
14968 s/:*\${srcdir}:*/:/
14970 s/^\([^=]*=[ ]*\):*/\1/
14976 cat >>$CONFIG_STATUS <<\_ACEOF
14977 fi # test -n "$CONFIG_FILES"
14980 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
14983 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14985 case $ac_mode$ac_tag in
14987 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14988 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14989 { (exit 1); exit 1; }; };;
14990 :[FH
]-) ac_tag
=-:-;;
14991 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15008 -) ac_f
="$tmp/stdin";;
15009 *) # Look for the file first in the build tree, then in the source tree
15010 # (if the path is not absolute). The absolute path cannot be DOS-style,
15011 # because $ac_f cannot contain `:'.
15015 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15017 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15018 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15019 { (exit 1); exit 1; }; };;
15021 ac_file_inputs
="$ac_file_inputs $ac_f"
15024 # Let's still pretend it is `configure' which instantiates (i.e., don't
15025 # use $as_me), people would be surprised to read:
15026 # /* config.h. Generated by config.status. */
15027 configure_input
="Generated from "`IFS=:
15028 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15029 if test x
"$ac_file" != x-
; then
15030 configure_input
="$ac_file. $configure_input"
15031 { echo "$as_me:$LINENO: creating $ac_file" >&5
15032 echo "$as_me: creating $ac_file" >&6;}
15036 *:-:* |
*:-) cat >"$tmp/stdin";;
15041 ac_dir
=`$as_dirname -- "$ac_file" ||
15042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15043 X"$ac_file" : 'X\(//\)[^/]' \| \
15044 X"$ac_file" : 'X\(//\)$' \| \
15045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15051 /^X\(\/\/\)[^/].*/{
15066 -*) as_dir
=.
/$as_dir;;
15068 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
15072 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15073 *) as_qdir
=$as_dir;;
15075 as_dirs
="'$as_qdir' $as_dirs"
15076 as_dir
=`$as_dirname -- "$as_dir" ||
15077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15078 X"$as_dir" : 'X\(//\)[^/]' \| \
15079 X"$as_dir" : 'X\(//\)$' \| \
15080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15086 /^X\(\/\/\)[^/].*/{
15099 test -d "$as_dir" && break
15101 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15102 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15103 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15104 { (exit 1); exit 1; }; }; }
15108 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15110 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15111 # A ".." for each directory in $ac_dir_suffix.
15112 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15113 case $ac_top_builddir_sub in
15114 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15115 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15118 ac_abs_top_builddir
=$ac_pwd
15119 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15120 # for backward compatibility:
15121 ac_top_builddir
=$ac_top_build_prefix
15124 .
) # We are building in place.
15126 ac_top_srcdir
=$ac_top_builddir_sub
15127 ac_abs_top_srcdir
=$ac_pwd ;;
15128 [\\/]* | ?
:[\\/]* ) # Absolute name.
15129 ac_srcdir
=$srcdir$ac_dir_suffix;
15130 ac_top_srcdir
=$srcdir
15131 ac_abs_top_srcdir
=$srcdir ;;
15132 *) # Relative name.
15133 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15134 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15135 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15137 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15147 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15148 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15152 cat >>$CONFIG_STATUS <<\_ACEOF
15153 # If the template does not know about datarootdir, expand it.
15154 # FIXME: This hack should be removed a few years after 2.60.
15155 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15157 case `sed -n '/datarootdir/ {
15166 ' $ac_file_inputs` in
15167 *datarootdir
*) ac_datarootdir_seen
=yes;;
15168 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15169 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15170 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15172 cat >>$CONFIG_STATUS <<_ACEOF
15173 ac_datarootdir_hack='
15174 s&@datadir@&$datadir&g
15175 s&@docdir@&$docdir&g
15176 s&@infodir@&$infodir&g
15177 s&@localedir@&$localedir&g
15178 s&@mandir@&$mandir&g
15179 s&\\\${datarootdir}&$datarootdir&g' ;;
15183 # Neutralize VPATH when `$srcdir' = `.'.
15184 # Shell code in configure.ac might set extrasub.
15185 # FIXME: do we really want to maintain this feature?
15186 cat >>$CONFIG_STATUS <<_ACEOF
15190 cat >>$CONFIG_STATUS <<\_ACEOF
15192 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15193 s
&@configure_input@
&$configure_input&;t t
15194 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15195 s
&@srcdir@
&$ac_srcdir&;t t
15196 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15197 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15198 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15199 s
&@builddir@
&$ac_builddir&;t t
15200 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15201 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15202 s
&@INSTALL@
&$ac_INSTALL&;t t
15203 $ac_datarootdir_hack
15204 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
15206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15209 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15210 which seems to be undefined. Please make sure it is defined." >&5
15211 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15212 which seems to be undefined. Please make sure it is defined." >&2;}
15216 -) cat "$tmp/out"; rm -f "$tmp/out";;
15217 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15226 # Transform confdefs.h into a sed script `conftest.defines', that
15227 # substitutes the proper values into config.h.in to produce config.h.
15228 rm -f conftest.defines conftest.
tail
15229 # First, append a space to every undef/define line, to ease matching.
15230 echo 's/$/ /' >conftest.defines
15231 # Then, protect against being on the right side of a sed subst, or in
15232 # an unquoted here document, in config.status. If some macros were
15233 # called several times there might be several #defines for the same
15234 # symbol, which is useless. But do not sort them, since the last
15235 # AC_DEFINE must be honored.
15236 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15237 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15238 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15239 # PARAMS is the parameter list in the macro definition--in most cases, it's
15240 # just an empty string.
15241 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15242 ac_dB
='\\)[ (].*,\\1define\\2'
15250 s/^[ ]*#[ ]*define[ ][ ]*//
15255 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15256 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15257 ' >>conftest.defines
15259 # Remove the space that was appended to ease matching.
15260 # Then replace #undef with comments. This is necessary, for
15261 # example, in the case of _POSIX_SOURCE, which is predefined and required
15262 # on some systems where configure will not decide to define it.
15263 # (The regexp can be short, since the line contains either #define or #undef.)
15265 s,^[ #]*u.*,/* & */,' >>conftest.defines
15267 # Break up conftest.defines:
15268 ac_max_sed_lines
=50
15270 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15271 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15272 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15274 ac_in
='$ac_file_inputs'
15275 ac_out
='"$tmp/out1"'
15276 ac_nxt
='"$tmp/out2"'
15280 # Write a here document:
15281 cat >>$CONFIG_STATUS <<_ACEOF
15282 # First, check the format of the line:
15283 cat >"\$tmp/defines.sed" <<\\CEOF
15284 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15285 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15289 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15291 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15292 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15293 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15294 grep . conftest.
tail >/dev
/null ||
break
15295 rm -f conftest.defines
15296 mv conftest.
tail conftest.defines
15298 rm -f conftest.defines conftest.
tail
15300 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15301 cat >>$CONFIG_STATUS <<\_ACEOF
15302 if test x
"$ac_file" != x-
; then
15303 echo "/* $configure_input */" >"$tmp/config.h"
15304 cat "$ac_result" >>"$tmp/config.h"
15305 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15306 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15307 echo "$as_me: $ac_file is unchanged" >&6;}
15310 mv "$tmp/config.h" $ac_file
15313 echo "/* $configure_input */"
15319 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15320 echo "$as_me: executing $ac_file commands" >&6;}
15325 case $ac_file$ac_mode in
15326 "default-1":C
) if test -f .devel
; then
15327 echo timestamp
> stamp-h
15328 cat Makefile-devel-adds
>> Makefile
15336 { (exit 0); exit 0; }
15338 chmod +x
$CONFIG_STATUS
15339 ac_clean_files
=$ac_clean_files_save
15342 # configure is writing to config.log, and then calls config.status.
15343 # config.status does its own redirection, appending to config.log.
15344 # Unfortunately, on DOS this fails, as config.log is still kept open
15345 # by configure, so config.status won't be able to write to it; its
15346 # output is simply discarded. So we exec the FD to /dev/null,
15347 # effectively closing config.log, so it can be properly (re)opened and
15348 # appended to by config.status. When coming back to configure, we
15349 # need to make the FD available again.
15350 if test "$no_create" != yes; then
15352 ac_config_status_args
=
15353 test "$silent" = yes &&
15354 ac_config_status_args
="$ac_config_status_args --quiet"
15356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15359 # would make configure fail if this is the last instruction.
15360 $ac_cs_success ||
{ (exit 1); exit 1; }