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
689 ac_precious_vars
='build_alias
700 # Initialize some variables set by options.
702 ac_init_version
=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
712 program_transform_name
=s
,x
,x
,
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir
='${exec_prefix}/bin'
727 sbindir
='${exec_prefix}/sbin'
728 libexecdir
='${exec_prefix}/libexec'
729 datarootdir
='${prefix}/share'
730 datadir
='${datarootdir}'
731 sysconfdir
='${prefix}/etc'
732 sharedstatedir
='${prefix}/com'
733 localstatedir
='${prefix}/var'
734 includedir
='${prefix}/include'
735 oldincludedir
='/usr/include'
736 docdir
='${datarootdir}/doc/${PACKAGE}'
737 infodir
='${datarootdir}/info'
742 libdir
='${exec_prefix}/lib'
743 localedir
='${datarootdir}/locale'
744 mandir
='${datarootdir}/man'
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\
$ac_option
758 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762 # Accept the important Cygnus configure options, so we can diagnose typos.
764 case $ac_dashdash$ac_option in
768 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
770 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
773 -build |
--build |
--buil |
--bui |
--bu)
774 ac_prev
=build_alias
;;
775 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
776 build_alias
=$ac_optarg ;;
778 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
779 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
780 ac_prev
=cache_file
;;
781 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
782 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
783 cache_file
=$ac_optarg ;;
786 cache_file
=config.cache
;;
788 -datadir |
--datadir |
--datadi |
--datad)
790 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
791 datadir
=$ac_optarg ;;
793 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
794 |
--dataroo |
--dataro |
--datar)
795 ac_prev
=datarootdir
;;
796 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
797 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
798 datarootdir
=$ac_optarg ;;
800 -disable-* |
--disable-*)
801 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_
$ac_feature=no
;;
809 -docdir |
--docdir |
--docdi |
--doc |
--do)
811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
819 -enable-* |
--enable-*)
820 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_
$ac_feature=\
$ac_optarg ;;
828 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
829 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
830 |
--exec |
--exe |
--ex)
831 ac_prev
=exec_prefix
;;
832 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
833 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
834 |
--exec=* |
--exe=* |
--ex=*)
835 exec_prefix
=$ac_optarg ;;
837 -gas |
--gas |
--ga |
--g)
838 # Obsolete; use --with-gas.
841 -help |
--help |
--hel |
--he |
-h)
843 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
844 ac_init_help
=recursive
;;
845 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
846 ac_init_help
=short
;;
848 -host |
--host |
--hos |
--ho)
849 ac_prev
=host_alias
;;
850 -host=* |
--host=* |
--hos=* |
--ho=*)
851 host_alias
=$ac_optarg ;;
853 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
855 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
857 htmldir
=$ac_optarg ;;
859 -includedir |
--includedir |
--includedi |
--included |
--include \
860 |
--includ |
--inclu |
--incl |
--inc)
861 ac_prev
=includedir
;;
862 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
863 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
864 includedir
=$ac_optarg ;;
866 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
868 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
869 infodir
=$ac_optarg ;;
871 -libdir |
--libdir |
--libdi |
--libd)
873 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
876 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
877 |
--libexe |
--libex |
--libe)
878 ac_prev
=libexecdir
;;
879 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
880 |
--libexe=* |
--libex=* |
--libe=*)
881 libexecdir
=$ac_optarg ;;
883 -localedir |
--localedir |
--localedi |
--localed |
--locale)
885 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
886 localedir
=$ac_optarg ;;
888 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
889 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
890 ac_prev
=localstatedir
;;
891 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
892 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
893 localstatedir
=$ac_optarg ;;
895 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
897 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
901 # Obsolete; use --without-fp.
904 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
905 |
--no-cr |
--no-c |
-n)
908 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
909 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
912 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
913 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
914 |
--oldin |
--oldi |
--old |
--ol |
--o)
915 ac_prev
=oldincludedir
;;
916 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
917 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
918 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
919 oldincludedir
=$ac_optarg ;;
921 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
923 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
926 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
927 |
--program-pre |
--program-pr |
--program-p)
928 ac_prev
=program_prefix
;;
929 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
930 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
931 program_prefix
=$ac_optarg ;;
933 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
934 |
--program-suf |
--program-su |
--program-s)
935 ac_prev
=program_suffix
;;
936 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
937 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
938 program_suffix
=$ac_optarg ;;
940 -program-transform-name |
--program-transform-name \
941 |
--program-transform-nam |
--program-transform-na \
942 |
--program-transform-n |
--program-transform- \
943 |
--program-transform |
--program-transfor \
944 |
--program-transfo |
--program-transf \
945 |
--program-trans |
--program-tran \
946 |
--progr-tra |
--program-tr |
--program-t)
947 ac_prev
=program_transform_name
;;
948 -program-transform-name=* |
--program-transform-name=* \
949 |
--program-transform-nam=* |
--program-transform-na=* \
950 |
--program-transform-n=* |
--program-transform-=* \
951 |
--program-transform=* |
--program-transfor=* \
952 |
--program-transfo=* |
--program-transf=* \
953 |
--program-trans=* |
--program-tran=* \
954 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
955 program_transform_name
=$ac_optarg ;;
957 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
959 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
962 -psdir |
--psdir |
--psdi |
--psd |
--ps)
964 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
967 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
968 |
-silent |
--silent |
--silen |
--sile |
--sil)
971 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
973 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
975 sbindir
=$ac_optarg ;;
977 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
978 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
979 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
981 ac_prev
=sharedstatedir
;;
982 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
983 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
984 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
986 sharedstatedir
=$ac_optarg ;;
988 -site |
--site |
--sit)
990 -site=* |
--site=* |
--sit=*)
993 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
995 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
998 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
999 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1000 ac_prev
=sysconfdir
;;
1001 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1002 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1003 sysconfdir
=$ac_optarg ;;
1005 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1006 ac_prev
=target_alias
;;
1007 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1008 target_alias
=$ac_optarg ;;
1010 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1013 -version |
--version |
--versio |
--versi |
--vers |
-V)
1014 ac_init_version
=: ;;
1017 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_
$ac_package=\
$ac_optarg ;;
1025 -without-* |
--without-*)
1026 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_
$ac_package=no
;;
1035 # Obsolete; use --with-x.
1038 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1039 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1040 ac_prev
=x_includes
;;
1041 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1042 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1043 x_includes
=$ac_optarg ;;
1045 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1046 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1047 ac_prev
=x_libraries
;;
1048 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1049 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1050 x_libraries
=$ac_optarg ;;
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1058 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\
$ac_optarg
1064 export $ac_envvar ;;
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1077 if test -n "$ac_prev"; then
1078 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1083 # Be sure to have absolute directory names.
1084 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1089 eval ac_val
=\$
$ac_var
1091 [\\/$
]* | ?
:[\\/]* ) continue;;
1092 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1103 target
=$target_alias
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x
; then
1107 if test "x$build_alias" = x
; then
1108 cross_compiling
=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1117 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1119 test "$silent" = yes && exec 6>/dev
/null
1122 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di
=`ls -di .` &&
1124 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted
=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir
=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1164 ac_srcdir_defaulted
=no
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1171 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1184 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 for ac_var
in $ac_precious_vars; do
1187 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1189 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1194 # Report the --help message.
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1200 \`configure' configures this package to adapt to many kinds of systems.
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1207 Defaults for the options are specified in brackets.
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1231 For better control, use the options below.
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1258 --build=BUILD configure
for building on BUILD
[guessed
]
1259 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1263 if test -n "$ac_init_help"; then
1268 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1269 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1270 --disable-universal don
't build universal on OS X
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-smi link with libsmi
(allows to load MIBs on the fly to decode SNMP packets. default
=yes
1281 --without-smi don
't link with libsmi
1282 --with-user=USERNAME drop privileges by default to USERNAME
1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1286 Some influential environment variables:
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1296 Use these variables to override the choices made by `configure' or to
help
1297 it to
find libraries and programs with nonstandard names
/locations.
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1306 test -d "$ac_dir" ||
continue
1310 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1312 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1317 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1320 ac_abs_top_builddir
=$ac_pwd
1321 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir
=$ac_top_build_prefix
1326 .
) # We are building in place.
1328 ac_top_srcdir
=$ac_top_builddir_sub
1329 ac_abs_top_srcdir
=$ac_pwd ;;
1330 [\\/]* | ?
:[\\/]* ) # Absolute name.
1331 ac_srcdir
=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir
=$srcdir
1333 ac_abs_top_srcdir
=$srcdir ;;
1335 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1339 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1341 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1360 generated by GNU Autoconf
2.61
1362 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1364 This configure
script is free software
; the Free Software Foundation
1365 gives unlimited permission to copy
, distribute and modify it.
1369 cat >config.log
<<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir
=.
1410 echo "PATH: $as_dir"
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1434 ac_must_keep_next
=false
1440 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1441 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1442 |
-silent |
--silent |
--silen |
--sile |
--sil)
1445 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1450 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true
; then
1452 ac_must_keep_next
=false
# Got value, back to normal.
1455 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1456 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1457 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1458 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1463 -* ) ac_must_keep_next
=true
;;
1466 ac_configure_args
="$ac_configure_args '$ac_arg'"
1471 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1472 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1490 # The following way of writing the cache mishandles newlines in values,
1492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 eval ac_val=\$$ac_var
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1527 for ac_var in $ac_subst_vars
1529 eval ac_val=\$$ac_var
1531 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 echo "$ac_var='\''$ac_val'\''"
1537 if test -n "$ac_subst_files"; then
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1544 for ac_var
in $ac_subst_files
1546 eval ac_val
=\$
$ac_var
1548 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 echo "$ac_var='\''$ac_val'\''"
1555 if test -s confdefs.h; then
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1573 for ac_signal
in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest
* confdefs.h
1581 # Predefined preprocessor variables.
1583 cat >>confdefs.h
<<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1588 cat >>confdefs.h
<<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1593 cat >>confdefs.h
<<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1598 cat >>confdefs.h
<<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1603 cat >>confdefs.h
<<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x
"$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE
; then
1613 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1615 set x
"$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1636 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1637 *) .
"./$cache_file";;
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1646 # Check that the precious variables saved in the cache have kept the same
1648 ac_cache_corrupted
=false
1649 for ac_var
in $ac_precious_vars; do
1650 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1651 eval ac_new_set
=\
$ac_env_${ac_var}_set
1652 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1653 eval ac_new_val
=\
$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted
=: ;;
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted
=: ;;
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 echo "$as_me: former value: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 echo "$as_me: current value: $ac_new_val" >&2;}
1672 ac_cache_corrupted
=:
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1678 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 *) ac_arg
=$ac_var=$ac_new_val ;;
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1712 ac_cpp
='$CPP $CPPFLAGS'
1713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1720 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1723 ac_install_sh
="$ac_aux_dir/install-sh -c"
1725 elif test -f "$ac_dir/install.sh"; then
1727 ac_install_sh
="$ac_aux_dir/install.sh -c"
1729 elif test -f "$ac_dir/shtool"; then
1731 ac_install_sh
="$ac_aux_dir/shtool install -c"
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_build_alias
=$build_alias
1762 test "x$ac_build_alias" = x
&&
1763 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x
&&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1783 ac_save_IFS
=$IFS; IFS
='-'
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1793 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test "x$host_alias" = x
; then
1802 ac_cv_host
=$ac_cv_build
1804 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1820 ac_save_IFS
=$IFS; IFS
='-'
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1830 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1847 if test "${srcdir}" != "." ; then
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS
="$CFLAGS"
1853 if test -z "$CC" ; then
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2
; ac_word
=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 for ac_exec_ext
in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2
="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1885 SHLICC2
=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1895 if test $SHLICC2 = yes ; then
1902 if test -z "$CC" -a "$with_gcc" = no
; then
1908 ac_cpp
='$CPP $CPPFLAGS'
1909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC
="$CC" # Let the user override the test.
1923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir
=.
1928 for ac_exec_ext
in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1951 if test -z "$ac_cv_prog_CC"; then
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc
; ac_word
=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir
=.
1968 for ac_exec_ext
in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC
="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1989 if test "x$ac_ct_CC" = x
; then
1992 case $cross_compiling:$ac_tool_warned in
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned
=yes ;;
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC
="$CC" # Let the user override the test.
2020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir
=.
2025 for ac_exec_ext
in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc
; ac_word
=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC
="$CC" # Let the user override the test.
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 for ac_exec_ext
in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected
=yes
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy
$ac_cv_prog_CC
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2089 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog
in cl.exe
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC
="$CC" # Let the user override the test.
2119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir
=.
2124 for ac_exec_ext
in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$CC" && break
2149 if test -z "$CC"; then
2151 for ac_prog
in cl.exe
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy
$ac_prog; ac_word
=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir
=.
2168 for ac_exec_ext
in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC
="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2190 test -n "$ac_ct_CC" && break
2193 if test "x$ac_ct_CC" = x
; then
2196 case $cross_compiling:$ac_tool_warned in
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned
=yes ;;
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 ac_compiler
=`set X $ac_compile; echo $2`
2222 { (ac_try
="$ac_compiler --version >&5"
2224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2235 *) ac_try_echo
=$ac_try;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try
="$ac_compiler -V >&5"
2244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2273 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2286 for ac_file in $ac_files
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2295 if { (ac_try="$ac_link_default"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2310 for ac_file
in $ac_files ''
2312 test -f "$ac_file" ||
continue
2314 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2317 # We found the default executable, but exeext='' is most
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2323 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2335 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.
$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2354 ac_exeext
=$ac_cv_exeext
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try
='./$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 if test "$cross_compiling" = maybe; then
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details.
" >&5
2381 echo "$as_me: error
: cannot run C compiled programs.
2382 If you meant to cross compile
, use \
`--host'.
2383 See \`config.log
' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2400 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2416 for ac_file
in conftest.exe conftest conftest.
*; do
2417 test -f "$ac_file" ||
continue
2419 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2420 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest
$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437 rm -f conftest.
$ac_ext
2438 EXEEXT
=$ac_cv_exeext
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.
$ac_ext <<_ACEOF
2448 cat confdefs.h
>>conftest.
$ac_ext
2449 cat >>conftest.
$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try
="$ac_compile"
2463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log
' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details.
" >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached
) $ECHO_C" >&6
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2538 echo "$as_me: failed program was
:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2554 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached
) $ECHO_C" >&6
2558 ac_save_c_werror_flag=$ac_c_werror_flag
2559 ac_c_werror_flag=yes
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was
:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2634 echo "$as_me: failed program was
:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2673 echo "$as_me: failed program was
:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2688 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2699 if test "$GCC" = yes; then
2705 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2706 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached
) $ECHO_C" >&6
2710 ac_cv_prog_cc_c89=no
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_c89=$ac_arg
2792 echo "$as_me: failed program was
:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext
2799 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2801 rm -f conftest.$ac_ext
2806 case "x
$ac_cv_prog_cc_c89" in
2808 { echo "$as_me:$LINENO: result
: none needed
" >&5
2809 echo "${ECHO_T}none needed
" >&6; } ;;
2811 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2812 echo "${ECHO_T}unsupported
" >&6; } ;;
2814 CC="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers=2
2835 { echo "$as_me:$LINENO: checking gcc version
" >&5
2836 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached
) $ECHO_C" >&6
2840 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2847 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2854 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2855 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached
) $ECHO_C" >&6
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2870 int frob(int, char *)
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2894 echo "$as_me: failed program was
:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_lbl_cc_ansi_prototypes=no
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2909 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached
) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2926 int frob(int, char *)
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa=yes
2950 echo "$as_me: failed program was
:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 ac_cv_lbl_cc_hpux_cc_aa=no
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
2963 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
2964 { (exit 1); exit 1; }; }
2966 CFLAGS="$savedcflags"
2967 V_CCOPT="-Aa $V_CCOPT"
2969 cat >>confdefs.h <<\_ACEOF
2970 #define _HPUX_SOURCE 1
2976 { echo "$as_me:$LINENO: checking
for ansi mode
in DEC compiler
($CC -std1)" >&5
2977 echo $ECHO_N "checking
for ansi mode
in DEC compiler
($CC -std1)...
$ECHO_C" >&6; }
2978 savedcflags="$CFLAGS"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached
) $ECHO_C" >&6
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2993 int frob(int, char *)
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3017 echo "$as_me: failed program was
:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3030 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3031 { (exit 1); exit 1; }; }
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3038 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3039 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3040 { (exit 1); exit 1; }; }
3044 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3045 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3058 V_CCOPT="$V_CCOPT -O"
3062 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3063 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached
) $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3077 struct a { int b; };
3078 void c(const struct a *)
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_const_proto=yes
3102 echo "$as_me: failed program was
:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cv_lbl_cc_const_proto=no
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no ; then
3115 cat >>confdefs.h <<\_ACEOF
3124 { echo "$as_me:$LINENO: checking
for inline
" >&5
3125 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3126 save_CFLAGS="$CFLAGS"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached
) $ECHO_C" >&6
3134 for ac_lbl_inline in inline __inline__ __inline
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3149 static inline struct iltest *
3152 static struct iltest xxx;
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3183 echo "$as_me: failed program was
:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204 { echo "$as_me:$LINENO: result
: no
" >&5
3205 echo "${ECHO_T}no
" >&6; }
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3213 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3214 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached
) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3229 static void foo(void) __attribute__ ((noreturn));
3238 main(int argc, char **argv)
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv___attribute__=yes
3263 echo "$as_me: failed program was
:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_cv___attribute__=no
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 if test "$ac_cv___attribute__" = "yes"; then
3274 cat >>confdefs.h <<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3278 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3280 V_DEFS="$V_DEFS -D_U_=\"\""
3282 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3285 if test "$ac_cv___attribute__" = "yes"; then
3287 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3288 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached
) $ECHO_C" >&6
3293 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3303 extern int (*foo)(const char *fmt, ...)
3304 __attribute__ ((format (printf, 1, 2)));
3307 main(int argc, char **argv)
3309 (*foo)("%s
", "test");
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3330 ac_cv___attribute___format_function_pointer=yes
3332 echo "$as_me: failed program was
:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 ac_cv___attribute___format_function_pointer=no
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3343 cat >>confdefs.h <<\_ACEOF
3344 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3348 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3349 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3358 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3359 # On Suns, sometimes $CPP names a directory.
3360 if test -n "$CPP" && test -d "$CPP"; then
3363 if test -z "$CPP"; then
3364 if test "${ac_cv_prog_CPP+set}" = set; then
3365 echo $ECHO_N "(cached
) $ECHO_C" >&6
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3371 for ac_c_preproc_warn_flag in '' yes
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error
" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3386 # include <limits.h>
3388 # include <assert.h>
3392 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3410 echo "$as_me: failed program was
:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3417 rm -f conftest.err conftest.$ac_ext
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3429 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3441 (exit $ac_status); } >/dev/null && {
3442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3445 # Broken: success on invalid input.
3448 echo "$as_me: failed program was
:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Passes both tests.
3456 rm -f conftest.err conftest.$ac_ext
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3473 { echo "$as_me:$LINENO: result
: $CPP" >&5
3474 echo "${ECHO_T}$CPP" >&6; }
3476 for ac_c_preproc_warn_flag in '' yes
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error
" is here to catch this case.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3491 # include <limits.h>
3493 # include <assert.h>
3497 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3509 (exit $ac_status); } >/dev/null && {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3515 echo "$as_me: failed program was
:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Broken: fails on valid input.
3522 rm -f conftest.err conftest.$ac_ext
3524 # OK, works on sane cases. Now check whether nonexistent headers
3525 # can be detected and how.
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <ac_nonexistent.h>
3534 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3546 (exit $ac_status); } >/dev/null && {
3547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3550 # Broken: success on invalid input.
3553 echo "$as_me: failed program was
:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 # Passes both tests.
3561 rm -f conftest.err conftest.$ac_ext
3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565 rm -f conftest.err conftest.$ac_ext
3566 if $ac_preproc_ok; then
3569 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3570 See \
`config.log' for more details." >&5
3571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3572 See \`config.log
' for more details." >&2;}
3573 { (exit 1); exit 1; }; }
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3579 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3584 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3585 if test "${ac_cv_path_GREP+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 # Extract the first word of "grep ggrep" to use in msg output
3589 if test -z "$GREP"; then
3590 set dummy grep ggrep; ac_prog_name=$2
3591 if test "${ac_cv_path_GREP+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 ac_path_GREP_found=false
3595 # Loop through the user's path and
test for each of PROGNAME-LIST
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3597 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_prog
in grep ggrep
; do
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3605 # Check for GNU ac_path_GREP and select it if it is found.
3606 # Check for GNU $ac_path_GREP
3607 case `"$ac_path_GREP" --version 2>&1` in
3609 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3612 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3615 cat "conftest.in" "conftest.in" >"conftest.tmp"
3616 mv "conftest.tmp" "conftest.in"
3617 cp "conftest.in" "conftest.nl"
3618 echo 'GREP' >> "conftest.nl"
3619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3620 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3621 ac_count
=`expr $ac_count + 1`
3622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3623 # Best one so far, save it but keep looking for a better one
3624 ac_cv_path_GREP
="$ac_path_GREP"
3625 ac_path_GREP_max
=$ac_count
3627 # 10*(2^10) chars as input seems more than enough
3628 test $ac_count -gt 10 && break
3630 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3634 $ac_path_GREP_found && break 3
3644 GREP
="$ac_cv_path_GREP"
3645 if test -z "$GREP"; then
3646 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3647 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3648 { (exit 1); exit 1; }; }
3652 ac_cv_path_GREP
=$GREP
3657 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3658 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3659 GREP
="$ac_cv_path_GREP"
3662 { echo "$as_me:$LINENO: checking for egrep" >&5
3663 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3668 then ac_cv_path_EGREP
="$GREP -E"
3670 # Extract the first word of "egrep" to use in msg output
3671 if test -z "$EGREP"; then
3672 set dummy
egrep; ac_prog_name
=$2
3673 if test "${ac_cv_path_EGREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 ac_path_EGREP_found
=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3682 test -z "$as_dir" && as_dir
=.
3683 for ac_prog
in egrep; do
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3686 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3691 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3703 ac_count
=`expr $ac_count + 1`
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP
="$ac_path_EGREP"
3707 ac_path_EGREP_max
=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3716 $ac_path_EGREP_found && break 3
3726 EGREP
="$ac_cv_path_EGREP"
3727 if test -z "$EGREP"; then
3728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730 { (exit 1); exit 1; }; }
3734 ac_cv_path_EGREP
=$EGREP
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3742 EGREP
="$ac_cv_path_EGREP"
3745 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3746 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3747 if test "${ac_cv_header_stdc+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 cat >conftest.
$ac_ext <<_ACEOF
3753 cat confdefs.h
>>conftest.
$ac_ext
3754 cat >>conftest.
$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3769 rm -f conftest.
$ac_objext
3770 if { (ac_try
="$ac_compile"
3772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3786 ac_cv_header_stdc=yes
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 ac_cv_header_stdc=no
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 if test $ac_cv_header_stdc = yes; then
3797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "memchr" >/dev/null 2>&1; then
3811 ac_cv_header_stdc=no
3817 if test $ac_cv_header_stdc = yes; then
3818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "free" >/dev/null 2>&1; then
3832 ac_cv_header_stdc=no
3838 if test $ac_cv_header_stdc = yes; then
3839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3840 if test "$cross_compiling" = yes; then
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3851 #if ((' ' & 0x0FF) == 0x020)
3852 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3853 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3855 # define ISLOWER(c) \
3856 (('a' <= (c) && (c) <= 'i') \
3857 || ('j' <= (c) && (c) <= 'r') \
3858 || ('s' <= (c) && (c) <= 'z'))
3859 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3867 for (i = 0; i < 256; i++)
3868 if (XOR (islower (i), ISLOWER (i))
3869 || toupper (i) != TOUPPER (i))
3874 rm -f conftest$ac_exeext
3875 if { (ac_try="$ac_link"
3877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3878 *) ac_try_echo
=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_link") 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3885 { (case "(($ac_try" in
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_try") 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3896 echo "$as_me: program exited with status $ac_status" >&5
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cv_header_stdc=no
3903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3910 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3911 if test $ac_cv_header_stdc = yes; then
3913 cat >>confdefs.h <<\_ACEOF
3914 #define STDC_HEADERS 1
3919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3929 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3930 inttypes.h stdint.h unistd.h
3932 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 $ac_includes_default
3946 #include <$ac_header>
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3952 *) ac_try_echo
=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1
>conftest.err
3959 cat conftest.err
>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.
$ac_objext; then
3965 eval "$as_ac_Header=yes"
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.
$ac_ext >&5
3970 eval "$as_ac_Header=no"
3973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3975 ac_res
=`eval echo '${'$as_ac_Header'}'`
3976 { echo "$as_me:$LINENO: result: $ac_res" >&5
3977 echo "${ECHO_T}$ac_res" >&6; }
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h
<<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3992 for ac_header
in fcntl.h rpc
/rpc.h rpc
/rpcent.h netdnet
/dnetdb.h
3994 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3998 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_res
=`eval echo '${'$as_ac_Header'}'`
4002 { echo "$as_me:$LINENO: result: $ac_res" >&5
4003 echo "${ECHO_T}$ac_res" >&6; }
4005 # Is the header compilable?
4006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4008 cat >conftest.
$ac_ext <<_ACEOF
4011 cat confdefs.h
>>conftest.
$ac_ext
4012 cat >>conftest.
$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4015 #include <$ac_header>
4017 rm -f conftest.
$ac_objext
4018 if { (ac_try
="$ac_compile"
4020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 ac_header_compiler=yes
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 ac_header_compiler=no
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4044 echo "${ECHO_T}$ac_header_compiler" >&6; }
4046 # Is the header present?
4047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <$ac_header>
4057 if { (ac_try="$ac_cpp conftest.$ac_ext"
4059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4060 *) ac_try_echo
=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1
>conftest.err
4067 cat conftest.err
>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev
/null
&& {
4070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4073 ac_header_preproc
=yes
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.
$ac_ext >&5
4078 ac_header_preproc
=no
4081 rm -f conftest.err conftest.
$ac_ext
4082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4083 echo "${ECHO_T}$ac_header_preproc" >&6; }
4085 # So? What about this header?
4086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4092 ac_header_preproc
=yes
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 eval "$as_ac_Header=\$ac_header_preproc"
4117 ac_res
=`eval echo '${'$as_ac_Header'}'`
4118 { echo "$as_me:$LINENO: result: $ac_res" >&5
4119 echo "${ECHO_T}$ac_res" >&6; }
4122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123 cat >>confdefs.h
<<_ACEOF
4124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4132 for ac_header
in net
/pfvar.h
4134 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4137 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4150 #include <$ac_header>
4152 rm -f conftest.
$ac_objext
4153 if { (ac_try
="$ac_compile"
4155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 eval "$as_ac_Header=yes"
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 eval "$as_ac_Header=no"
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_res=`eval echo '${'$as_ac_Header'}'`
4180 { echo "$as_me:$LINENO: result: $ac_res" >&5
4181 echo "${ECHO_T}$ac_res" >&6; }
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4191 if test "$ac_cv_header_net_pfvar_h" = yes; then
4192 LOCALSRC="print-pflog.c $LOCALSRC"
4195 for ac_header in netinet/if_ether.h
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 #include <sys/socket.h>
4212 #include <$ac_header>
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4218 *) ac_try_echo
=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1
>conftest.err
4225 cat conftest.err
>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.
$ac_objext; then
4231 eval "$as_ac_Header=yes"
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 eval "$as_ac_Header=no"
4239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4241 ac_res
=`eval echo '${'$as_ac_Header'}'`
4242 { echo "$as_me:$LINENO: result: $ac_res" >&5
4243 echo "${ECHO_T}$ac_res" >&6; }
4244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4245 cat >>confdefs.h
<<_ACEOF
4246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4253 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4255 # The simple test didn't work.
4256 # Do we need to include <net/if.h> first?
4257 # Unset ac_cv_header_netinet_if_ether_h so we don't
4258 # treat the previous failure as a cached value and
4259 # suppress the next test.
4261 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4262 echo "$as_me: Rechecking with some additional includes" >&6;}
4263 unset ac_cv_header_netinet_if_ether_h
4265 for ac_header
in netinet
/if_ether.h
4267 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 cat >conftest.
$ac_ext <<_ACEOF
4276 cat confdefs.h
>>conftest.
$ac_ext
4277 cat >>conftest.
$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <sys/types.h>
4280 #include <sys/socket.h>
4281 #include <netinet/in.h>
4286 #include <$ac_header>
4288 rm -f conftest.
$ac_objext
4289 if { (ac_try
="$ac_compile"
4291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest.$ac_objext; then
4305 eval "$as_ac_Header=yes"
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 eval "$as_ac_Header=no"
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_res=`eval echo '${'$as_ac_Header'}'`
4316 { echo "$as_me:$LINENO: result: $ac_res" >&5
4317 echo "${ECHO_T}$ac_res" >&6; }
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4331 if test "${ac_cv_header_time+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 #include <sys/time.h>
4347 if ((struct tm *) 0)
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4357 *) ac_try_echo
=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1
>conftest.err
4364 cat conftest.err
>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.
$ac_objext; then
4370 ac_cv_header_time
=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 ac_cv_header_time
=no
4378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4380 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4381 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4382 if test $ac_cv_header_time = yes; then
4384 cat >>confdefs.h
<<\_ACEOF
4385 #define TIME_WITH_SYS_TIME 1
4394 # Check whether --enable-universal was given.
4395 if test "${enable_universal+set}" = set; then
4396 enableval
=$enable_universal;
4399 if test "$enable_universal" != "no"; then
4404 # Leopard. Build for x86 and 32-bit PowerPC, with
4405 # x86 first. (That's what Apple does.)
4407 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4408 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4413 # Snow Leopard. Build for x86-64 and x86, with
4414 # x86-64 first. (That's what Apple does.)
4416 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4417 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4424 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4425 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4426 if test "$cross_compiling" = yes; then
4427 if test "${ac_cv_linux_vers+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 ac_cv_linux_vers
=unknown
4434 if test "${ac_cv_linux_vers+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_linux_vers
=`uname -r 2>&1 | \
4438 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4442 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4443 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4444 if test $ac_cv_linux_vers = unknown
; then
4445 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4446 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4447 { (exit 1); exit 1; }; }
4449 if test $ac_cv_linux_vers -lt 2 ; then
4450 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4451 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4452 { (exit 1); exit 1; }; }
4462 # Check whether --with-smi was given.
4463 if test "${with_smi+set}" = set; then
4470 if test "x$with_smi" != "xno" ; then
4472 for ac_header
in smi.h
4474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 ac_res
=`eval echo '${'$as_ac_Header'}'`
4482 { echo "$as_me:$LINENO: result: $ac_res" >&5
4483 echo "${ECHO_T}$ac_res" >&6; }
4485 # Is the header compilable?
4486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4488 cat >conftest.
$ac_ext <<_ACEOF
4491 cat confdefs.h
>>conftest.
$ac_ext
4492 cat >>conftest.
$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4495 #include <$ac_header>
4497 rm -f conftest.
$ac_objext
4498 if { (ac_try
="$ac_compile"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest.$ac_objext; then
4514 ac_header_compiler=yes
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 ac_header_compiler=no
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6; }
4526 # Is the header present?
4527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <$ac_header>
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4540 *) ac_try_echo
=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev
/null
&& {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4553 ac_header_preproc
=yes
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_header_preproc
=no
4561 rm -f conftest.err conftest.
$ac_ext
4562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563 echo "${ECHO_T}$ac_header_preproc" >&6; }
4565 # So? What about this header?
4566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4572 ac_header_preproc
=yes
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 eval "$as_ac_Header=\$ac_header_preproc"
4597 ac_res
=`eval echo '${'$as_ac_Header'}'`
4598 { echo "$as_me:$LINENO: result: $ac_res" >&5
4599 echo "${ECHO_T}$ac_res" >&6; }
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h
<<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4612 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4613 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_check_lib_save_LIBS
=$LIBS
4619 cat >conftest.
$ac_ext <<_ACEOF
4622 cat confdefs.h
>>conftest.
$ac_ext
4623 cat >>conftest.
$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4641 rm -f conftest.
$ac_objext conftest
$ac_exeext
4642 if { (ac_try
="$ac_link"
4644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext &&
4658 $as_test_x conftest$ac_exeext; then
4659 ac_cv_lib_smi_smiInit=yes
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 ac_cv_lib_smi_smiInit=no
4667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4668 conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4671 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4672 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4673 if test $ac_cv_lib_smi_smiInit = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define HAVE_LIBSMI 1
4682 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4684 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4685 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4686 if test "$cross_compiling" = yes; then
4687 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4688 echo "${ECHO_T}not when cross-compiling" >&6; }
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 /* libsmi available check */
4702 int current, revision, age, n;
4703 const int required = 2;
4706 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4708 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4711 if (required < current - age || required > current)
4717 rm -f conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4721 *) ac_try_echo
=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4728 { (case "(($ac_try" in
4729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_try") 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 { echo "$as_me:$LINENO: result: yes" >&5
4738 echo "${ECHO_T}yes" >&6; }
4739 cat >>confdefs.h <<\_ACEOF
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4751 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4752 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4753 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4754 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4755 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4756 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4757 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4758 echo "${ECHO_T}no - too old" >&6; } ;;
4759 *) { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; } ;;
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4771 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4773 # Check whether --enable-smb was given.
4774 if test "${enable_smb+set}" = set; then
4775 enableval=$enable_smb;
4780 case "$enableval" in
4781 yes) { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4785 cat >>confdefs.h <<\_ACEOF
4786 #define TCPDUMP_DO_SMB 1
4789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4791 *) { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4797 # Check whether --with-user was given.
4798 if test "${with_user+set}" = set; then
4802 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4804 if test ! -z "$with_user" ; then
4805 cat >>confdefs.h <<_ACEOF
4806 #define WITH_USER "$withval"
4809 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4810 echo "${ECHO_T}to \"$withval\"" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 # Check whether --with-chroot was given.
4818 if test "${with_chroot+set}" = set; then
4819 withval=$with_chroot;
4822 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4824 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define WITH_CHROOT "$withval"
4829 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4830 echo "${ECHO_T}to \"$withval\"" >&6; }
4832 { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4837 # We must check this before checking whether to enable IPv6, because,
4838 # on some platforms (such as SunOS 5.x), the test program requires
4839 # the extra networking libraries.
4842 # Most operating systems have gethostbyname() in the default searched
4843 # libraries (i.e. libc):
4844 # Some OSes (eg. Solaris) place it in libnsl
4845 # Some strange OSes (SINIX) have it in libsocket:
4846 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4847 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4848 if test "${ac_cv_search_gethostbyname+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_func_search_save_LIBS=$LIBS
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4859 /* Override any GCC internal prototype to avoid an error.
4860 Use char because int might match the return type of a GCC
4861 builtin and then its argument prototype would still apply. */
4865 char gethostbyname ();
4869 return gethostbyname ();
4874 for ac_lib in '' nsl socket resolv; do
4875 if test -z "$ac_lib"; then
4876 ac_res="none required"
4879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest
$ac_exeext &&
4898 $as_test_x conftest
$ac_exeext; then
4899 ac_cv_search_gethostbyname
=$ac_res
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4907 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4909 if test "${ac_cv_search_gethostbyname+set}" = set; then
4913 if test "${ac_cv_search_gethostbyname+set}" = set; then
4916 ac_cv_search_gethostbyname
=no
4919 LIBS
=$ac_func_search_save_LIBS
4921 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4922 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4923 ac_res
=$ac_cv_search_gethostbyname
4924 if test "$ac_res" != no
; then
4925 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4929 # Unfortunately libsocket sometimes depends on libnsl and
4930 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4931 if test "$ac_cv_search_gethostbyname" = "no"
4933 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4934 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4935 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_check_lib_save_LIBS
=$LIBS
4939 LIBS
="-lsocket -lnsl $LIBS"
4940 cat >conftest.
$ac_ext <<_ACEOF
4943 cat confdefs.h
>>conftest.
$ac_ext
4944 cat >>conftest.
$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 /* Override any GCC internal prototype to avoid an error.
4948 Use char because int might match the return type of a GCC
4949 builtin and then its argument prototype would still apply. */
4953 char gethostbyname ();
4957 return gethostbyname ();
4962 rm -f conftest.
$ac_objext conftest
$ac_exeext
4963 if { (ac_try
="$ac_link"
4965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest$ac_exeext &&
4979 $as_test_x conftest$ac_exeext; then
4980 ac_cv_lib_socket_gethostbyname=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ac_cv_lib_socket_gethostbyname=no
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989 conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4992 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4993 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4994 if test $ac_cv_lib_socket_gethostbyname = yes; then
4995 LIBS="-lsocket -lnsl $LIBS"
4999 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5000 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5001 if test "${ac_cv_search_socket+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 ac_func_search_save_LIBS=$LIBS
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5027 for ac_lib in '' socket; do
5028 if test -z "$ac_lib"; then
5029 ac_res="none required"
5032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (ac_try="$ac_link"
5037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5038 *) ac_try_echo
=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_link") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1
>conftest.err
5045 cat conftest.err
>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest
$ac_exeext &&
5051 $as_test_x conftest
$ac_exeext; then
5052 ac_cv_search_socket
=$ac_res
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.
$ac_ext >&5
5060 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5062 if test "${ac_cv_search_socket+set}" = set; then
5066 if test "${ac_cv_search_socket+set}" = set; then
5069 ac_cv_search_socket
=no
5072 LIBS
=$ac_func_search_save_LIBS
5074 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5075 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5076 ac_res
=$ac_cv_search_socket
5077 if test "$ac_res" != no
; then
5078 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5081 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5082 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5083 if test "${ac_cv_lib_socket_socket+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_check_lib_save_LIBS
=$LIBS
5087 LIBS
="-lsocket -lnsl $LIBS"
5088 cat >conftest.
$ac_ext <<_ACEOF
5091 cat confdefs.h
>>conftest.
$ac_ext
5092 cat >>conftest.
$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5095 /* Override any GCC internal prototype to avoid an error.
5096 Use char because int might match the return type of a GCC
5097 builtin and then its argument prototype would still apply. */
5110 rm -f conftest.
$ac_objext conftest
$ac_exeext
5111 if { (ac_try
="$ac_link"
5113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest$ac_exeext &&
5127 $as_test_x conftest$ac_exeext; then
5128 ac_cv_lib_socket_socket=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_cv_lib_socket_socket=no
5136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5141 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5142 if test $ac_cv_lib_socket_socket = yes; then
5143 LIBS="-lsocket -lnsl $LIBS"
5148 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5149 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5150 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5151 if test "${ac_cv_search_putmsg+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_func_search_save_LIBS=$LIBS
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5162 /* Override any GCC internal prototype to avoid an error.
5163 Use char because int might match the return type of a GCC
5164 builtin and then its argument prototype would still apply. */
5177 for ac_lib in '' str; do
5178 if test -z "$ac_lib"; then
5179 ac_res="none required"
5182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5188 *) ac_try_echo
=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1
>conftest.err
5195 cat conftest.err
>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest
$ac_exeext &&
5201 $as_test_x conftest
$ac_exeext; then
5202 ac_cv_search_putmsg
=$ac_res
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.
$ac_ext >&5
5210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5212 if test "${ac_cv_search_putmsg+set}" = set; then
5216 if test "${ac_cv_search_putmsg+set}" = set; then
5219 ac_cv_search_putmsg
=no
5222 LIBS
=$ac_func_search_save_LIBS
5224 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5225 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5226 ac_res
=$ac_cv_search_putmsg
5227 if test "$ac_res" != no
; then
5228 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5234 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5235 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5236 # Check whether --enable-ipv6 was given.
5237 if test "${enable_ipv6+set}" = set; then
5238 enableval
=$enable_ipv6; case "$enableval" in
5239 yes) { echo "$as_me:$LINENO: result: yes" >&5
5240 echo "${ECHO_T}yes" >&6; }
5241 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 print-babel.c $LOCALSRC"
5242 cat >>confdefs.h
<<\_ACEOF
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5255 if test "$cross_compiling" = yes; then
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5261 cat >conftest.
$ac_ext <<_ACEOF
5264 cat confdefs.h
>>conftest.
$ac_ext
5265 cat >>conftest.
$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 /* AF_INET6 available check */
5268 #include <sys/types.h>
5269 #include <sys/socket.h>
5272 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5279 rm -f conftest
$ac_exeext
5280 if { (ac_try
="$ac_link"
5282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5290 { (case "(($ac_try" in
5291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5292 *) ac_try_echo
=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_try") 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 { echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6; }
5301 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 print-babel.c $LOCALSRC"
5302 cat >>confdefs.h
<<\_ACEOF
5308 echo "$as_me: program exited with status $ac_status" >&5
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.
$ac_ext >&5
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5328 if test "$ipv6" = "yes"; then
5329 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5330 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5331 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
5334 cat >conftest.
$ac_ext <<_ACEOF
5337 cat confdefs.h
>>conftest.
$ac_ext
5338 cat >>conftest.
$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <netinet/in.h>
5341 #ifdef IPV6_INRIA_VERSION
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 $EGREP "yes" >/dev
/null
2>&1; then
5348 CFLAGS
="-DINET6 $CFLAGS"
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <netinet/in.h>
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "yes" >/dev
/null
2>&1; then
5369 ipv6libdir
=/usr
/local
/v
6/lib
;
5371 CFLAGS
="-DINET6 $CFLAGS"
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <features.h>
5384 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "yes" >/dev
/null
2>&1; then
5391 CFLAGS
="-DINET6 $CFLAGS"
5397 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
5400 ipv6libdir
=/usr
/inet
6/lib
5402 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
5406 cat >conftest.
$ac_ext <<_ACEOF
5409 cat confdefs.h
>>conftest.
$ac_ext
5410 cat >>conftest.
$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <sys/param.h>
5413 #ifdef _TOSHIBA_INET6
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "yes" >/dev
/null
2>&1; then
5421 ipv6libdir
=/usr
/local
/v
6/lib
;
5422 CFLAGS
="-DINET6 $CFLAGS"
5428 cat >conftest.
$ac_ext <<_ACEOF
5431 cat confdefs.h
>>conftest.
$ac_ext
5432 cat >>conftest.
$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include </usr/local/v6/include/sys/v6config.h>
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "yes" >/dev
/null
2>&1; then
5443 ipv6libdir
=/usr
/local
/v
6/lib
;
5444 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/param.h>
5457 #ifdef _ZETA_MINAMI_INET6
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "yes" >/dev
/null
2>&1; then
5465 ipv6libdir
=/usr
/local
/v
6/lib
;
5466 CFLAGS
="-DINET6 $CFLAGS"
5472 if test "$ipv6type" != "unknown"; then
5476 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5477 echo "${ECHO_T}$ipv6type" >&6; }
5480 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5481 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
5482 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
5483 echo "You have $ipv6lib library, using it"
5485 if test "$ipv6trylibc" = "yes"; then
5486 echo "You do not have $ipv6lib library, using libc"
5488 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5489 echo "You need to fetch lib$ipv6lib.a from appropriate"
5490 echo 'ipv6 kit and compile beforehand.'
5497 if test "$ipv6" = "yes"; then
5499 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5500 # function in libc; there are "ngetaddrinfo()" and
5501 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5502 # "getaddrinfo" to be either "ngetaddrinfo" or
5503 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5504 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5506 # So this test doesn't work on Tru64 5.1, and possibly
5507 # on other 5.x releases. This causes the configure
5508 # script to become confused, and results in libpcap
5509 # being unbuildable.
5511 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5512 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5513 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_func_search_save_LIBS
=$LIBS
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5524 /* Override any GCC internal prototype to avoid an error.
5525 Use char because int might match the return type of a GCC
5526 builtin and then its argument prototype would still apply. */
5530 char getaddrinfo ();
5534 return getaddrinfo ();
5539 for ac_lib
in '' socket
; do
5540 if test -z "$ac_lib"; then
5541 ac_res
="none required"
5544 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5546 rm -f conftest.
$ac_objext conftest
$ac_exeext
5547 if { (ac_try
="$ac_link"
5549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_link") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest$ac_exeext &&
5563 $as_test_x conftest$ac_exeext; then
5564 ac_cv_search_getaddrinfo=$ac_res
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5574 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5578 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5581 ac_cv_search_getaddrinfo=no
5584 LIBS=$ac_func_search_save_LIBS
5586 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5587 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5588 ac_res=$ac_cv_search_getaddrinfo
5589 if test "$ac_res" != no; then
5590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5591 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5592 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5593 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 if test "$cross_compiling" = yes; then
5597 td_cv_buggygetaddrinfo=yes
5599 cat >conftest.$ac_ext <<_ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5606 #include <sys/types.h>
5609 #include <sys/socket.h>
5610 #include <netinet/in.h>
5614 int passive, gaierr, inet4 = 0, inet6 = 0;
5615 struct addrinfo hints, *ai, *aitop;
5616 char straddr[INET6_ADDRSTRLEN], strport[16];
5618 for (passive = 0; passive <= 1; passive++) {
5619 memset(&hints, 0, sizeof(hints));
5620 hints.ai_family = AF_UNSPEC;
5621 hints.ai_flags = passive ? AI_PASSIVE : 0;
5622 hints.ai_socktype = SOCK_STREAM;
5623 hints.ai_protocol = IPPROTO_TCP;
5624 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5625 (void)gai_strerror(gaierr);
5628 for (ai = aitop; ai; ai = ai->ai_next) {
5629 if (ai->ai_addr == NULL ||
5630 ai->ai_addrlen == 0 ||
5631 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5632 straddr, sizeof(straddr), strport, sizeof(strport),
5633 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5636 switch (ai->ai_family) {
5638 if (strcmp(strport, "54321") != 0) {
5642 if (strcmp(straddr, "0.0.0.0") != 0) {
5646 if (strcmp(straddr, "127.0.0.1") != 0) {
5653 if (strcmp(strport, "54321") != 0) {
5657 if (strcmp(straddr, "::") != 0) {
5661 if (strcmp(straddr, "::1") != 0) {
5678 /* another family support? */
5684 /* supported family should be 2, unsupported family should be 0 */
5685 if (!(inet4 == 0 || inet4 == 2))
5687 if (!(inet6 == 0 || inet6 == 2))
5691 freeaddrinfo(aitop);
5696 freeaddrinfo(aitop);
5701 rm -f conftest$ac_exeext
5702 if { (ac_try="$ac_link"
5704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5705 *) ac_try_echo
=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_link") 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5712 { (case "(($ac_try" in
5713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_try") 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 td_cv_buggygetaddrinfo=no
5723 echo "$as_me: program exited with status $ac_status" >&5
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5728 td_cv_buggygetaddrinfo=yes
5730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5736 if test "$td_cv_buggygetaddrinfo" = no; then
5737 { echo "$as_me:$LINENO: result: good" >&5
5738 echo "${ECHO_T}good" >&6; }
5740 { echo "$as_me:$LINENO: result: buggy" >&5
5741 echo "${ECHO_T}buggy" >&6; }
5744 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5746 # XXX - it doesn't appear that "ipv6type" can ever be
5747 # set to "linux". Should this be testing for
5748 # "linux-glibc", or for that *or* "linux-libinet6"?
5749 # If the latter, note that "linux-libinet6" is also
5750 # the type given to some non-Linux OSes.
5752 if test "$ipv6type" != "linux"; then
5753 echo 'Fatal: You must get working getaddrinfo() function.'
5754 echo ' or you can specify "--disable-ipv6"'.
5757 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5758 echo ' Better upgrade your system library to newest version'
5759 echo ' of GNU C library (aka glibc).'
5766 for ac_func in getnameinfo
5768 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5782 #define $ac_func innocuous_$ac_func
5784 /* System header to define __stub macros and hopefully few prototypes,
5785 which can conflict with char $ac_func (); below.
5786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5787 <limits.h> exists even on freestanding compilers. */
5790 # include <limits.h>
5792 # include <assert.h>
5797 /* Override any GCC internal prototype to avoid an error.
5798 Use char because int might match the return type of a GCC
5799 builtin and then its argument prototype would still apply. */
5804 /* The GNU C library defines this for functions which it implements
5805 to always fail with ENOSYS. Some functions are actually named
5806 something starting with __ and the normal name is an alias. */
5807 #if defined __stub_$ac_func || defined __stub___$ac_func
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (ac_try="$ac_link"
5822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5823 *) ac_try_echo
=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_link") 2>conftest.er1
5828 grep -v '^ *+' conftest.er1
>conftest.err
5830 cat conftest.err
>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest
$ac_exeext &&
5836 $as_test_x conftest
$ac_exeext; then
5837 eval "$as_ac_var=yes"
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 eval "$as_ac_var=no"
5845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5846 conftest
$ac_exeext conftest.
$ac_ext
5848 ac_res
=`eval echo '${'$as_ac_var'}'`
5849 { echo "$as_me:$LINENO: result: $ac_res" >&5
5850 echo "${ECHO_T}$ac_res" >&6; }
5851 if test `eval echo '${'$as_ac_var'}'` = yes; then
5852 cat >>confdefs.h
<<_ACEOF
5853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5857 case " $LIBOBJS " in
5858 *" $ac_func.$ac_objext "* ) ;;
5859 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5869 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5870 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5871 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.
$ac_ext <<_ACEOF
5877 cat confdefs.h
>>conftest.
$ac_ext
5878 cat >>conftest.
$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <netdnet/dnetdb.h>
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
5885 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
5887 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
5892 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5893 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5894 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5895 cat >>confdefs.h
<<\_ACEOF
5896 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5902 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5903 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5904 if test "${ac_cv_addrinfo+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5923 rm -f conftest.
$ac_objext
5924 if { (ac_try
="$ac_compile"
5926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5952 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5953 if test $ac_cv_addrinfo = yes; then
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_ADDRINFO 1
5959 cat >>confdefs.h <<\_ACEOF
5960 #define NEED_ADDRINFO_H 1
5965 if test "$ac_cv_addrinfo" = no; then
5966 missing_includes=yes
5970 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5971 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5972 if test "${ac_cv_maxserv+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5987 $EGREP "yes" >/dev/null 2>&1; then
5996 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5997 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5998 if test $ac_cv_maxserv != yes; then
5999 cat >>confdefs.h <<\_ACEOF
6000 #define NEED_ADDRINFO_H 1
6005 if test "$ac_cv_maxserv" = no; then
6006 missing_includes=yes
6010 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6011 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6012 if test "${ac_cv_namereqd+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "yes" >/dev/null 2>&1; then
6036 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6037 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6038 if test $ac_cv_namereqd != yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define NEED_ADDRINFO_H 1
6045 if test "$ac_cv_namereqd" = no; then
6046 missing_includes=yes
6050 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6051 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6052 if test "${ac_cv_sa_storage+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 # include <sys/types.h>
6063 # include <sys/socket.h>
6067 struct sockaddr_storage s
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6076 *) ac_try_echo
=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.
$ac_objext; then
6089 ac_cv_sa_storage
=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.
$ac_ext >&5
6097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6101 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6102 if test $ac_cv_sa_storage = yes; then
6103 cat >>confdefs.h
<<\_ACEOF
6104 #define HAVE_SOCKADDR_STORAGE 1
6109 if test "$ac_cv_sa_storage" = no
; then
6110 missing_includes
=yes
6119 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6121 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6124 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6135 #define $ac_func innocuous_$ac_func
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func (); below.
6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 <limits.h> exists even on freestanding compilers. */
6143 # include <limits.h>
6145 # include <assert.h>
6150 /* Override any GCC internal prototype to avoid an error.
6151 Use char because int might match the return type of a GCC
6152 builtin and then its argument prototype would still apply. */
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined __stub_$ac_func || defined __stub___$ac_func
6172 rm -f conftest.
$ac_objext conftest
$ac_exeext
6173 if { (ac_try
="$ac_link"
6175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_link") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest$ac_exeext &&
6189 $as_test_x conftest$ac_exeext; then
6190 eval "$as_ac_var=yes"
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 eval "$as_ac_var=no"
6198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6199 conftest$ac_exeext conftest.$ac_ext
6201 ac_res=`eval echo '${'$as_ac_var'}'`
6202 { echo "$as_me:$LINENO: result: $ac_res" >&5
6203 echo "${ECHO_T}$ac_res" >&6; }
6204 if test `eval echo '${'$as_ac_var'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6210 case " $LIBOBJS " in
6211 *" $ac_func.$ac_objext "* ) ;;
6212 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6223 for ac_func in fork vfork strftime
6225 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6239 #define $ac_func innocuous_$ac_func
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char $ac_func (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6247 # include <limits.h>
6249 # include <assert.h>
6254 /* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined __stub_$ac_func || defined __stub___$ac_func
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest
$ac_exeext &&
6293 $as_test_x conftest
$ac_exeext; then
6294 eval "$as_ac_var=yes"
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 eval "$as_ac_var=no"
6302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6303 conftest
$ac_exeext conftest.
$ac_ext
6305 ac_res
=`eval echo '${'$as_ac_var'}'`
6306 { echo "$as_me:$LINENO: result: $ac_res" >&5
6307 echo "${ECHO_T}$ac_res" >&6; }
6308 if test `eval echo '${'$as_ac_var'}'` = yes; then
6309 cat >>confdefs.h
<<_ACEOF
6310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6318 for ac_func
in setlinebuf alarm
6320 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6323 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 cat >conftest.
$ac_ext <<_ACEOF
6329 cat confdefs.h
>>conftest.
$ac_ext
6330 cat >>conftest.
$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6334 #define $ac_func innocuous_$ac_func
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func (); below.
6338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339 <limits.h> exists even on freestanding compilers. */
6342 # include <limits.h>
6344 # include <assert.h>
6349 /* Override any GCC internal prototype to avoid an error.
6350 Use char because int might match the return type of a GCC
6351 builtin and then its argument prototype would still apply. */
6356 /* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359 #if defined __stub_$ac_func || defined __stub___$ac_func
6371 rm -f conftest.
$ac_objext conftest
$ac_exeext
6372 if { (ac_try
="$ac_link"
6374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_link") 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && {
6385 test -z "$ac_c_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest$ac_exeext &&
6388 $as_test_x conftest$ac_exeext; then
6389 eval "$as_ac_var=yes"
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 eval "$as_ac_var=no"
6397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6398 conftest$ac_exeext conftest.$ac_ext
6400 ac_res=`eval echo '${'$as_ac_var'}'`
6401 { echo "$as_me:$LINENO: result: $ac_res" >&5
6402 echo "${ECHO_T}$ac_res" >&6; }
6403 if test `eval echo '${'$as_ac_var'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6415 for ac_func in vsnprintf snprintf
6417 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6431 #define $ac_func innocuous_$ac_func
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char $ac_func (); below.
6435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6436 <limits.h> exists even on freestanding compilers. */
6439 # include <limits.h>
6441 # include <assert.h>
6446 /* Override any GCC internal prototype to avoid an error.
6447 Use char because int might match the return type of a GCC
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined __stub_$ac_func || defined __stub___$ac_func
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (ac_try="$ac_link"
6471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6472 *) ac_try_echo
=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_link") 2>conftest.er1
6477 grep -v '^ *+' conftest.er1
>conftest.err
6479 cat conftest.err
>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && {
6482 test -z "$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 } && test -s conftest
$ac_exeext &&
6485 $as_test_x conftest
$ac_exeext; then
6486 eval "$as_ac_var=yes"
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 eval "$as_ac_var=no"
6494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6495 conftest
$ac_exeext conftest.
$ac_ext
6497 ac_res
=`eval echo '${'$as_ac_var'}'`
6498 { echo "$as_me:$LINENO: result: $ac_res" >&5
6499 echo "${ECHO_T}$ac_res" >&6; }
6500 if test `eval echo '${'$as_ac_var'}'` = yes; then
6501 cat >>confdefs.h
<<_ACEOF
6502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6510 if test $needsnprintf = yes; then
6511 case " $LIBOBJS " in
6512 *" snprintf.$ac_objext "* ) ;;
6513 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6520 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6521 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6522 if test "${ac_cv_type_signal+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6537 return *(signal (0, 0)) (0) == 1;
6542 rm -f conftest.
$ac_objext
6543 if { (ac_try
="$ac_compile"
6545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6551 grep -v '^ *+' conftest.er1 >conftest.err
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_type_signal=int
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_cv_type_signal=void
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6570 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6572 cat >>confdefs.h <<_ACEOF
6573 #define RETSIGTYPE $ac_cv_type_signal
6577 if test "$ac_cv_type_signal" = void ; then
6579 cat >>confdefs.h <<\_ACEOF
6585 cat >>confdefs.h <<\_ACEOF
6586 #define RETSIGVAL (0)
6594 cat >>confdefs.h <<\_ACEOF
6595 #define _BSD_SIGNALS 1
6602 for ac_func in sigaction
6604 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 cat >conftest.$ac_ext <<_ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6618 #define $ac_func innocuous_$ac_func
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char $ac_func (); below.
6622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6623 <limits.h> exists even on freestanding compilers. */
6626 # include <limits.h>
6628 # include <assert.h>
6633 /* Override any GCC internal prototype to avoid an error.
6634 Use char because int might match the return type of a GCC
6635 builtin and then its argument prototype would still apply. */
6640 /* The GNU C library defines this for functions which it implements
6641 to always fail with ENOSYS. Some functions are actually named
6642 something starting with __ and the normal name is an alias. */
6643 #if defined __stub_$ac_func || defined __stub___$ac_func
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (ac_try="$ac_link"
6658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6659 *) ac_try_echo
=$ac_try;;
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_link") 2>conftest.er1
6664 grep -v '^ *+' conftest.er1
>conftest.err
6666 cat conftest.err
>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest
$ac_exeext &&
6672 $as_test_x conftest
$ac_exeext; then
6673 eval "$as_ac_var=yes"
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6678 eval "$as_ac_var=no"
6681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6682 conftest
$ac_exeext conftest.
$ac_ext
6684 ac_res
=`eval echo '${'$as_ac_var'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687 if test `eval echo '${'$as_ac_var'}'` = yes; then
6688 cat >>confdefs.h
<<_ACEOF
6689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6695 if test $ac_cv_func_sigaction = no
; then
6697 for ac_func
in sigset
6699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6702 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.
$ac_ext <<_ACEOF
6708 cat confdefs.h
>>conftest.
$ac_ext
6709 cat >>conftest.
$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6713 #define $ac_func innocuous_$ac_func
6715 /* System header to define __stub macros and hopefully few prototypes,
6716 which can conflict with char $ac_func (); below.
6717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 <limits.h> exists even on freestanding compilers. */
6721 # include <limits.h>
6723 # include <assert.h>
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6735 /* The GNU C library defines this for functions which it implements
6736 to always fail with ENOSYS. Some functions are actually named
6737 something starting with __ and the normal name is an alias. */
6738 #if defined __stub_$ac_func || defined __stub___$ac_func
6750 rm -f conftest.
$ac_objext conftest
$ac_exeext
6751 if { (ac_try
="$ac_link"
6753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext &&
6767 $as_test_x conftest$ac_exeext; then
6768 eval "$as_ac_var=yes"
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 eval "$as_ac_var=no"
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777 conftest$ac_exeext conftest.$ac_ext
6779 ac_res=`eval echo '${'$as_ac_var'}'`
6780 { echo "$as_me:$LINENO: result: $ac_res" >&5
6781 echo "${ECHO_T}$ac_res" >&6; }
6782 if test `eval echo '${'$as_ac_var'}'` = yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6794 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6795 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6796 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_func_search_save_LIBS=$LIBS
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6807 /* Override any GCC internal prototype to avoid an error.
6808 Use char because int might match the return type of a GCC
6809 builtin and then its argument prototype would still apply. */
6817 return dnet_htoa ();
6822 for ac_lib in '' dnet; do
6823 if test -z "$ac_lib"; then
6824 ac_res="none required"
6827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (ac_try="$ac_link"
6832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6833 *) ac_try_echo
=$ac_try;;
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_link") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1
>conftest.err
6840 cat conftest.err
>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest
$ac_exeext &&
6846 $as_test_x conftest
$ac_exeext; then
6847 ac_cv_search_dnet_htoa
=$ac_res
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.
$ac_ext >&5
6855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6857 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6861 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6864 ac_cv_search_dnet_htoa
=no
6867 LIBS
=$ac_func_search_save_LIBS
6869 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6870 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6871 ac_res
=$ac_cv_search_dnet_htoa
6872 if test "$ac_res" != no
; then
6873 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6874 cat >>confdefs.h
<<\_ACEOF
6875 #define HAVE_DNET_HTOA 1
6882 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6883 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6884 if test "${ac_cv_lib_rpc_main+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_check_lib_save_LIBS
=$LIBS
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6905 rm -f conftest.
$ac_objext conftest
$ac_exeext
6906 if { (ac_try
="$ac_link"
6908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 ac_cv_lib_rpc_main=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_lib_rpc_main=no
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6936 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6937 if test $ac_cv_lib_rpc_main = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_LIBRPC 1
6946 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6947 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6948 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_func_search_save_LIBS=$LIBS
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6959 /* Override any GCC internal prototype to avoid an error.
6960 Use char because int might match the return type of a GCC
6961 builtin and then its argument prototype would still apply. */
6965 char getrpcbynumber ();
6969 return getrpcbynumber ();
6974 for ac_lib in '' nsl; do
6975 if test -z "$ac_lib"; then
6976 ac_res="none required"
6979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6985 *) ac_try_echo
=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest
$ac_exeext &&
6998 $as_test_x conftest
$ac_exeext; then
6999 ac_cv_search_getrpcbynumber
=$ac_res
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.
$ac_ext >&5
7007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7009 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7013 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7016 ac_cv_search_getrpcbynumber
=no
7019 LIBS
=$ac_func_search_save_LIBS
7021 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7022 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7023 ac_res
=$ac_cv_search_getrpcbynumber
7024 if test "$ac_res" != no
; then
7025 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7026 cat >>confdefs.h
<<\_ACEOF
7027 #define HAVE_GETRPCBYNUMBER 1
7036 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
7037 if test -f $pfopen ; then
7039 for ac_func
in pfopen
7041 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7044 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.
$ac_ext <<_ACEOF
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7055 #define $ac_func innocuous_$ac_func
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char $ac_func (); below.
7059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060 <limits.h> exists even on freestanding compilers. */
7063 # include <limits.h>
7065 # include <assert.h>
7070 /* Override any GCC internal prototype to avoid an error.
7071 Use char because int might match the return type of a GCC
7072 builtin and then its argument prototype would still apply. */
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined __stub_$ac_func || defined __stub___$ac_func
7092 rm -f conftest.
$ac_objext conftest
$ac_exeext
7093 if { (ac_try
="$ac_link"
7095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_link") 2>conftest.er1
7101 grep -v '^ *+' conftest.er1 >conftest.err
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest$ac_exeext &&
7109 $as_test_x conftest$ac_exeext; then
7110 eval "$as_ac_var=yes"
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7115 eval "$as_ac_var=no"
7118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7119 conftest$ac_exeext conftest.$ac_ext
7121 ac_res=`eval echo '${'$as_ac_var'}'`
7122 { echo "$as_me:$LINENO: result: $ac_res" >&5
7123 echo "${ECHO_T}$ac_res" >&6; }
7124 if test `eval echo '${'$as_ac_var'}'` = yes; then
7125 cat >>confdefs.h <<_ACEOF
7126 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7132 if test $ac_cv_func_pfopen = "no" ; then
7133 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7134 echo "${ECHO_T}Using $pfopen" >&6; }
7135 LIBS="$LIBS $pfopen"
7138 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7139 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7142 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7143 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7144 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7145 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
7146 sed -e 's/-PRE-GIT$//' `
7147 if test $lastdir = $basedir ; then
7151 if test -r $dir/libpcap.a ; then
7152 libpcap=$dir/libpcap.a
7156 if test $libpcap = FAIL ; then
7157 { echo "$as_me:$LINENO: result: not found" >&5
7158 echo "${ECHO_T}not found" >&6; }
7161 # Look for pcap-config.
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 case $PCAP_CONFIG in
7173 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7195 if test -n "$PCAP_CONFIG"; then
7196 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7197 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7205 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7206 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7207 # Extract the first word of "pcap-config", so it can be a program name with args.
7208 set dummy pcap-config; ac_word=$2
7209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 case $ac_pt_PCAP_CONFIG in
7216 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7238 if test -n "$ac_pt_PCAP_CONFIG"; then
7239 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7240 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7246 if test "x$ac_pt_PCAP_CONFIG" = x; then
7249 case $cross_compiling:$ac_tool_warned in
7251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7252 whose name does not start with the host triplet. If you think this
7253 configuration is useful to you, please write to autoconf@gnu.org." >&5
7254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7255 whose name does not start with the host triplet. If you think this
7256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7257 ac_tool_warned=yes ;;
7259 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7262 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7265 if test -n "$PCAP_CONFIG" ; then
7267 # Found - use it to get the include flags for
7268 # libpcap and the flags to link with libpcap.
7270 # Please read section 11.6 "Shell Substitutions"
7271 # in the autoconf manual before doing anything
7272 # to this that involves quoting. Especially note
7273 # the statement "There is just no portable way to use
7274 # double-quoted strings inside double-quoted back-quoted
7275 # expressions (pfew!)."
7277 cflags=`"$PCAP_CONFIG" --cflags`
7278 V_INCLS="$cflags $V_INCLS"
7279 libpcap=`"$PCAP_CONFIG" --libs`
7282 # Not found; look for pcap.
7284 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7285 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7286 if test "${ac_cv_lib_pcap_main+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_check_lib_save_LIBS=$LIBS
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7311 *) ac_try_echo
=$ac_try;;
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_link") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1
>conftest.err
7318 cat conftest.err
>&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_c_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest
$ac_exeext &&
7324 $as_test_x conftest
$ac_exeext; then
7325 ac_cv_lib_pcap_main
=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.
$ac_ext >&5
7330 ac_cv_lib_pcap_main
=no
7333 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7334 conftest
$ac_exeext conftest.
$ac_ext
7335 LIBS
=$ac_check_lib_save_LIBS
7337 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7338 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7339 if test $ac_cv_lib_pcap_main = yes; then
7343 if test $libpcap = FAIL
; then
7344 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7345 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7346 { (exit 1); exit 1; }; }
7348 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7349 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7350 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7351 \
( ! -r /usr
/include
/pcap.h \
); then
7352 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7353 d
="/usr/local/include/pcap"
7354 elif test -r /usr
/include
/pcap
/pcap.h
; then
7355 d
="/usr/include/pcap"
7358 if test -z "$d" ; then
7359 { echo "$as_me:$LINENO: result: not found" >&5
7360 echo "${ECHO_T}not found" >&6; }
7362 V_INCLS
="-I$d $V_INCLS"
7363 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7364 echo "${ECHO_T}found -- -I$d added" >&6; }
7369 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7370 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7371 if test -r $d/pcap.h
; then
7372 V_INCLS
="-I$d $V_INCLS"
7373 elif test -r $places/pcap.h
; then
7374 V_INCLS
="-I$places $V_INCLS"
7376 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7377 echo "$as_me: error: cannot find pcap.h" >&2;}
7378 { (exit see INSTALL
); exit see INSTALL
; }; }
7380 { echo "$as_me:$LINENO: result: $libpcap" >&5
7381 echo "${ECHO_T}$libpcap" >&6; }
7382 # Extract the first word of "pcap-config", so it can be a program name with args.
7383 set dummy pcap-config
; ac_word
=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 case $PCAP_CONFIG in
7391 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir
=.
7399 for ac_exec_ext
in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7413 if test -n "$PCAP_CONFIG"; then
7414 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7415 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 if test -n "$PCAP_CONFIG"; then
7424 # The libpcap directory has a pcap-config script.
7425 # Use it to get any additioal libraries needed
7426 # to link with the libpcap archive library in
7429 # Please read section 11.6 "Shell Substitutions"
7430 # in the autoconf manual before doing anything
7431 # to this that involves quoting. Especially note
7432 # the statement "There is just no portable way to use
7433 # double-quoted strings inside double-quoted back-quoted
7434 # expressions (pfew!)."
7436 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
7437 libpcap
="$libpcap $additional_libs"
7440 LIBS
="$libpcap $LIBS"
7441 if ! test -n "$PCAP_CONFIG" ; then
7443 # We don't have pcap-config; find out any additional link flags
7444 # we need. (If we have pcap-config, we assume it tells us what
7451 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7452 # present, as we use the STREAMS routines.
7454 # (XXX - true only if we're linking with a static libpcap?)
7456 pseexe
="/lib/pse.exp"
7457 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7458 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7459 if test -f $pseexe ; then
7460 { echo "$as_me:$LINENO: result: yes" >&5
7461 echo "${ECHO_T}yes" >&6; }
7462 LIBS
="$LIBS -I:$pseexe"
7466 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7467 # we use them to load the BPF module.
7469 # (XXX - true only if we're linking with a static libpcap?)
7471 LIBS
="$LIBS -lodm -lcfg"
7476 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7477 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7478 if test "${ac_cv_func_pcap_loop+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 cat >conftest.
$ac_ext <<_ACEOF
7484 cat confdefs.h
>>conftest.
$ac_ext
7485 cat >>conftest.
$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7489 #define pcap_loop innocuous_pcap_loop
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char pcap_loop (); below.
7493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494 <limits.h> exists even on freestanding compilers. */
7497 # include <limits.h>
7499 # include <assert.h>
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7511 /* The GNU C library defines this for functions which it implements
7512 to always fail with ENOSYS. Some functions are actually named
7513 something starting with __ and the normal name is an alias. */
7514 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7521 return pcap_loop ();
7526 rm -f conftest.
$ac_objext conftest
$ac_exeext
7527 if { (ac_try
="$ac_link"
7529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_link") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext &&
7543 $as_test_x conftest$ac_exeext; then
7544 ac_cv_func_pcap_loop=yes
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_cv_func_pcap_loop=no
7552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7553 conftest$ac_exeext conftest.$ac_ext
7555 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7556 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7557 if test $ac_cv_func_pcap_loop = yes; then
7561 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7562 config.log file in your report. If you have downloaded libpcap from
7563 tcpdump.org, and built it yourself, please also include the config.log
7564 file from the libpcap source directory, the Makefile from the libpcap
7565 source directory, and the output of the make process for libpcap, as
7566 this could be a problem with the libpcap that was built, and we will
7567 not be able to determine why this is happening, and thus will not be
7568 able to fix it, without that information, as we have not been able to
7569 reproduce this problem ourselves." >&5
7570 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7571 config.log file in your report. If you have downloaded libpcap from
7572 tcpdump.org, and built it yourself, please also include the config.log
7573 file from the libpcap source directory, the Makefile from the libpcap
7574 source directory, and the output of the make process for libpcap, as
7575 this could be a problem with the libpcap that was built, and we will
7576 not be able to determine why this is happening, and thus will not be
7577 able to fix it, without that information, as we have not been able to
7578 reproduce this problem ourselves." >&2;}
7579 { (exit 1); exit 1; }; }
7584 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7585 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7586 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7597 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char pcap_list_datalinks (); below.
7601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7602 <limits.h> exists even on freestanding compilers. */
7605 # include <limits.h>
7607 # include <assert.h>
7610 #undef pcap_list_datalinks
7612 /* Override any GCC internal prototype to avoid an error.
7613 Use char because int might match the return type of a GCC
7614 builtin and then its argument prototype would still apply. */
7618 char pcap_list_datalinks ();
7619 /* The GNU C library defines this for functions which it implements
7620 to always fail with ENOSYS. Some functions are actually named
7621 something starting with __ and the normal name is an alias. */
7622 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7629 return pcap_list_datalinks ();
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7638 *) ac_try_echo
=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1
>conftest.err
7645 cat conftest.err
>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest
$ac_exeext &&
7651 $as_test_x conftest
$ac_exeext; then
7652 ac_cv_func_pcap_list_datalinks
=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.
$ac_ext >&5
7657 ac_cv_func_pcap_list_datalinks
=no
7660 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7661 conftest
$ac_exeext conftest.
$ac_ext
7663 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7664 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7665 if test $ac_cv_func_pcap_list_datalinks = yes; then
7666 cat >>confdefs.h
<<\_ACEOF
7667 #define HAVE_PCAP_LIST_DATALINKS 1
7672 case " $LIBOBJS " in
7673 *" datalinks.$ac_objext "* ) ;;
7674 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
7681 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7682 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7683 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 cat >conftest.
$ac_ext <<_ACEOF
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7694 #define pcap_set_datalink innocuous_pcap_set_datalink
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char pcap_set_datalink (); below.
7698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699 <limits.h> exists even on freestanding compilers. */
7702 # include <limits.h>
7704 # include <assert.h>
7707 #undef pcap_set_datalink
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7715 char pcap_set_datalink ();
7716 /* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7726 return pcap_set_datalink ();
7731 rm -f conftest.
$ac_objext conftest
$ac_exeext
7732 if { (ac_try
="$ac_link"
7734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest$ac_exeext &&
7748 $as_test_x conftest$ac_exeext; then
7749 ac_cv_func_pcap_set_datalink=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_func_pcap_set_datalink=no
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7760 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7761 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7762 if test $ac_cv_func_pcap_set_datalink = yes; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_PCAP_SET_DATALINK 1
7769 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7770 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7771 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7782 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char pcap_datalink_name_to_val (); below.
7786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787 <limits.h> exists even on freestanding compilers. */
7790 # include <limits.h>
7792 # include <assert.h>
7795 #undef pcap_datalink_name_to_val
7797 /* Override any GCC internal prototype to avoid an error.
7798 Use char because int might match the return type of a GCC
7799 builtin and then its argument prototype would still apply. */
7803 char pcap_datalink_name_to_val ();
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7814 return pcap_datalink_name_to_val ();
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7823 *) ac_try_echo
=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1
>conftest.err
7830 cat conftest.err
>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest
$ac_exeext &&
7836 $as_test_x conftest
$ac_exeext; then
7837 ac_cv_func_pcap_datalink_name_to_val
=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.
$ac_ext >&5
7842 ac_cv_func_pcap_datalink_name_to_val
=no
7845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7846 conftest
$ac_exeext conftest.
$ac_ext
7848 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7849 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7850 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7856 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7857 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7858 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.
$ac_ext <<_ACEOF
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char pcap_datalink_val_to_description (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7877 # include <limits.h>
7879 # include <assert.h>
7882 #undef pcap_datalink_val_to_description
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7890 char pcap_datalink_val_to_description ();
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7901 return pcap_datalink_val_to_description ();
7906 rm -f conftest.
$ac_objext conftest
$ac_exeext
7907 if { (ac_try
="$ac_link"
7909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest$ac_exeext &&
7923 $as_test_x conftest$ac_exeext; then
7924 ac_cv_func_pcap_datalink_val_to_description=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_func_pcap_datalink_val_to_description=no
7932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7933 conftest$ac_exeext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7936 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7937 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7938 cat >>confdefs.h <<\_ACEOF
7939 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7944 case " $LIBOBJS " in
7945 *" dlnames.$ac_objext "* ) ;;
7946 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7956 case " $LIBOBJS " in
7957 *" dlnames.$ac_objext "* ) ;;
7958 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7967 for ac_func in pcap_breakloop
7969 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7983 #define $ac_func innocuous_$ac_func
7985 /* System header to define __stub macros and hopefully few prototypes,
7986 which can conflict with char $ac_func (); below.
7987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988 <limits.h> exists even on freestanding compilers. */
7991 # include <limits.h>
7993 # include <assert.h>
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8005 /* The GNU C library defines this for functions which it implements
8006 to always fail with ENOSYS. Some functions are actually named
8007 something starting with __ and the normal name is an alias. */
8008 #if defined __stub_$ac_func || defined __stub___$ac_func
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8024 *) ac_try_echo
=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1
>conftest.err
8031 cat conftest.err
>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest
$ac_exeext &&
8037 $as_test_x conftest
$ac_exeext; then
8038 eval "$as_ac_var=yes"
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.
$ac_ext >&5
8043 eval "$as_ac_var=no"
8046 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8047 conftest
$ac_exeext conftest.
$ac_ext
8049 ac_res
=`eval echo '${'$as_ac_var'}'`
8050 { echo "$as_me:$LINENO: result: $ac_res" >&5
8051 echo "${ECHO_T}$ac_res" >&6; }
8052 if test `eval echo '${'$as_ac_var'}'` = yes; then
8053 cat >>confdefs.h
<<_ACEOF
8054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8061 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8062 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8063 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.
$ac_ext <<_ACEOF
8069 cat confdefs.h
>>conftest.
$ac_ext
8070 cat >>conftest.
$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char pcap_dump_ftell (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8082 # include <limits.h>
8084 # include <assert.h>
8087 #undef pcap_dump_ftell
8089 /* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8095 char pcap_dump_ftell ();
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8106 return pcap_dump_ftell ();
8111 rm -f conftest.
$ac_objext conftest
$ac_exeext
8112 if { (ac_try
="$ac_link"
8114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest$ac_exeext &&
8128 $as_test_x conftest$ac_exeext; then
8129 ac_cv_func_pcap_dump_ftell=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_func_pcap_dump_ftell=no
8137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8138 conftest$ac_exeext conftest.$ac_ext
8140 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8141 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8142 if test $ac_cv_func_pcap_dump_ftell = yes; then
8143 cat >>confdefs.h <<\_ACEOF
8144 #define HAVE_PCAP_DUMP_FTELL 1
8149 case " $LIBOBJS " in
8150 *" pcap_dump_ftell.$ac_objext "* ) ;;
8151 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8161 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8162 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8164 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8165 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8166 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8167 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8168 # it does not ship with a libc symbol "inet_ntop()", it ships with
8169 # "_inet_ntop()", and has a #define macro in one of the system headers
8172 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8173 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8174 cat >conftest.$ac_ext <<_ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include <sys/socket.h>
8182 #include <netinet/in.h>
8183 #include <arpa/inet.h>
8187 char src[4], dst[128];
8188 inet_ntop(AF_INET, src, dst, sizeof(dst));
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8197 *) ac_try_echo
=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1
>conftest.err
8204 cat conftest.err
>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest
$ac_exeext &&
8210 $as_test_x conftest
$ac_exeext; then
8211 { echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6; }
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.
$ac_ext >&5
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 case " $LIBOBJS " in
8220 *" inet_ntop.$ac_objext "* ) ;;
8221 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8228 conftest
$ac_exeext conftest.
$ac_ext
8229 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8230 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8231 cat >conftest.
$ac_ext <<_ACEOF
8234 cat confdefs.h
>>conftest.
$ac_ext
8235 cat >>conftest.
$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/socket.h>
8239 #include <netinet/in.h>
8240 #include <arpa/inet.h>
8244 char src[128], dst[4];
8245 inet_pton(AF_INET, src, dst);
8250 rm -f conftest.
$ac_objext conftest
$ac_exeext
8251 if { (ac_try
="$ac_link"
8253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_link") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext &&
8267 $as_test_x conftest$ac_exeext; then
8268 { echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6; }
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 { echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; }
8276 case " $LIBOBJS " in
8277 *" inet_pton.$ac_objext "* ) ;;
8278 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8285 conftest$ac_exeext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8287 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 #include <sys/types.h>
8295 #include <netinet/in.h>
8296 #include <arpa/inet.h>
8302 inet_aton(src, &dst);
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8311 *) ac_try_echo
=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest
$ac_exeext &&
8324 $as_test_x conftest
$ac_exeext; then
8325 { echo "$as_me:$LINENO: result: yes" >&5
8326 echo "${ECHO_T}yes" >&6; }
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.
$ac_ext >&5
8331 { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8333 case " $LIBOBJS " in
8334 *" inet_aton.$ac_objext "* ) ;;
8335 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8341 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8342 conftest
$ac_exeext conftest.
$ac_ext
8345 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8347 # You are in a twisty little maze of UN*Xes, all different.
8348 # Some might not have ether_ntohost().
8349 # Some might have it, but not declare it in any header file.
8350 # Some might have it, but declare it in <netinet/if_ether.h>.
8351 # Some might have it, but declare it in <netinet/ether.h>
8352 # (And some might have it but document it as something declared in
8353 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8355 # Before you is a C compiler.
8358 for ac_func
in ether_ntohost
8360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8363 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 cat >conftest.
$ac_ext <<_ACEOF
8369 cat confdefs.h
>>conftest.
$ac_ext
8370 cat >>conftest.
$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8374 #define $ac_func innocuous_$ac_func
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func (); below.
8378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8379 <limits.h> exists even on freestanding compilers. */
8382 # include <limits.h>
8384 # include <assert.h>
8389 /* Override any GCC internal prototype to avoid an error.
8390 Use char because int might match the return type of a GCC
8391 builtin and then its argument prototype would still apply. */
8396 /* The GNU C library defines this for functions which it implements
8397 to always fail with ENOSYS. Some functions are actually named
8398 something starting with __ and the normal name is an alias. */
8399 #if defined __stub_$ac_func || defined __stub___$ac_func
8411 rm -f conftest.
$ac_objext conftest
$ac_exeext
8412 if { (ac_try
="$ac_link"
8414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_link") 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest$ac_exeext &&
8428 $as_test_x conftest$ac_exeext; then
8429 eval "$as_ac_var=yes"
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8434 eval "$as_ac_var=no"
8437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8438 conftest$ac_exeext conftest.$ac_ext
8440 ac_res=`eval echo '${'$as_ac_var'}'`
8441 { echo "$as_me:$LINENO: result: $ac_res" >&5
8442 echo "${ECHO_T}$ac_res" >&6; }
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8448 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8449 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8450 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 if test "$cross_compiling" = yes; then
8455 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8465 #include <sys/types.h>
8466 #include <sys/param.h>
8467 #include <sys/socket.h>
8470 main(int argc, char **argv)
8472 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8473 char name[MAXHOSTNAMELEN];
8475 ether_ntohost(name, (struct ether_addr *)ea);
8480 rm -f conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8484 *) ac_try_echo
=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_buggy_ether_ntohost=no
8502 echo "$as_me: program exited with status $ac_status" >&5
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_cv_buggy_ether_ntohost=yes
8509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8514 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8515 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8516 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8517 cat >>confdefs.h <<\_ACEOF
8518 #define USE_ETHER_NTOHOST 1
8526 if test "$ac_cv_func_ether_ntohost" = yes -a \
8527 "$ac_cv_buggy_ether_ntohost" = "no"; then
8529 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8531 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8533 # Yes. Does it declare ether_ntohost()?
8535 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8536 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8537 if test "${ac_cv_have_decl_ether_ntohost+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. */
8547 #include <sys/types.h>
8548 #include <sys/socket.h>
8549 #include <netinet/in.h>
8550 #include <arpa/inet.h>
8554 #include <netinet/if_ether.h>
8560 #ifndef ether_ntohost
8561 (void) ether_ntohost;
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8572 *) ac_try_echo
=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.
$ac_objext; then
8585 ac_cv_have_decl_ether_ntohost
=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_cv_have_decl_ether_ntohost
=no
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8596 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8597 if test $ac_cv_have_decl_ether_ntohost = yes; then
8600 cat >>confdefs.h
<<\_ACEOF
8601 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8611 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8613 # No, how about <netinet/ether.h>, as on Linux?
8616 for ac_header
in netinet
/ether.h
8618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 ac_res
=`eval echo '${'$as_ac_Header'}'`
8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8629 # Is the header compilable?
8630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8632 cat >conftest.
$ac_ext <<_ACEOF
8635 cat confdefs.h
>>conftest.
$ac_ext
8636 cat >>conftest.
$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 #include <$ac_header>
8641 rm -f conftest.
$ac_objext
8642 if { (ac_try
="$ac_compile"
8644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_header_compiler=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 ac_header_compiler=no
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6; }
8670 # Is the header present?
8671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <$ac_header>
8681 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
8694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8697 ac_header_preproc
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_header_preproc
=no
8705 rm -f conftest.err conftest.
$ac_ext
8706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6; }
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc
=yes
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 eval "$as_ac_Header=\$ac_header_preproc"
8741 ac_res
=`eval echo '${'$as_ac_Header'}'`
8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h
<<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 if test "$ac_cv_header_netinet_ether_h" = yes; then
8757 # We have it - does it declare ether_ntohost()?
8758 # Unset ac_cv_have_decl_ether_ntohost so we don't
8759 # treat the previous failure as a cached value and
8760 # suppress the next test.
8762 unset ac_cv_have_decl_ether_ntohost
8763 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8764 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8765 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 cat >conftest.
$ac_ext <<_ACEOF
8771 cat confdefs.h
>>conftest.
$ac_ext
8772 cat >>conftest.
$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8775 #include <netinet/ether.h>
8781 #ifndef ether_ntohost
8782 (void) ether_ntohost;
8789 rm -f conftest.
$ac_objext
8790 if { (ac_try
="$ac_compile"
8792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_compile") 2>conftest.er1
8798 grep -v '^ *+' conftest.er1 >conftest.err
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest.$ac_objext; then
8806 ac_cv_have_decl_ether_ntohost=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_have_decl_ether_ntohost=no
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8817 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8818 if test $ac_cv_have_decl_ether_ntohost = yes; then
8821 cat >>confdefs.h <<\_ACEOF
8822 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8831 # Is ether_ntohost() declared?
8833 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8835 # No, we'll have to declare it ourselves.
8836 # Do we have "struct ether_addr"?
8838 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8839 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8840 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8850 #include <sys/types.h>
8851 #include <sys/socket.h>
8852 #include <netinet/in.h>
8853 #include <arpa/inet.h>
8857 #include <netinet/if_ether.h>
8860 typedef struct ether_addr ac__type_new_;
8864 if ((ac__type_new_ *) 0)
8866 if (sizeof (ac__type_new_))
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8876 *) ac_try_echo
=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1
>conftest.err
8883 cat conftest.err
>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.
$ac_objext; then
8889 ac_cv_type_struct_ether_addr
=yes
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.
$ac_ext >&5
8894 ac_cv_type_struct_ether_addr
=no
8897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8900 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8901 if test $ac_cv_type_struct_ether_addr = yes; then
8903 cat >>confdefs.h
<<_ACEOF
8904 #define HAVE_STRUCT_ETHER_ADDR 1
8911 cat >>confdefs.h
<<\_ACEOF
8912 #define HAVE_DECL_ETHER_NTOHOST 0
8917 cat >>confdefs.h
<<\_ACEOF
8918 #define HAVE_DECL_ETHER_NTOHOST 1
8924 # libdlpi is needed for Solaris 11 and later.
8925 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8926 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8927 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 ac_check_lib_save_LIBS
=$LIBS
8931 LIBS
="-ldlpi -L/lib $LIBS"
8932 cat >conftest.
$ac_ext <<_ACEOF
8935 cat confdefs.h
>>conftest.
$ac_ext
8936 cat >>conftest.
$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8939 /* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
8949 return dlpi_walk ();
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (ac_try
="$ac_link"
8957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest$ac_exeext &&
8971 $as_test_x conftest$ac_exeext; then
8972 ac_cv_lib_dlpi_dlpi_walk=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_lib_dlpi_dlpi_walk=no
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8985 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8986 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8987 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8992 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8993 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8994 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 # include <sys/types.h>
9005 # include <sys/socket.h>
9009 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9018 *) ac_try_echo
=$ac_try;;
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1
>conftest.err
9025 cat conftest.err
>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.
$ac_objext; then
9031 ac_cv_sockaddr_has_sa_len
=yes
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.
$ac_ext >&5
9036 ac_cv_sockaddr_has_sa_len
=no
9039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9042 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9043 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9044 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9045 cat >>confdefs.h
<<\_ACEOF
9046 #define HAVE_SOCKADDR_SA_LEN 1
9051 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9052 missing_includes
=yes
9056 # Do we have the new open API? Check for pcap_create, and assume that,
9057 # if we do, we also have pcap_activate() and the other new routines
9058 # introduced in libpcap 1.0.0.
9061 for ac_func
in pcap_create
9063 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9066 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 cat >conftest.
$ac_ext <<_ACEOF
9072 cat confdefs.h
>>conftest.
$ac_ext
9073 cat >>conftest.
$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9077 #define $ac_func innocuous_$ac_func
9079 /* System header to define __stub macros and hopefully few prototypes,
9080 which can conflict with char $ac_func (); below.
9081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9082 <limits.h> exists even on freestanding compilers. */
9085 # include <limits.h>
9087 # include <assert.h>
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9099 /* The GNU C library defines this for functions which it implements
9100 to always fail with ENOSYS. Some functions are actually named
9101 something starting with __ and the normal name is an alias. */
9102 #if defined __stub_$ac_func || defined __stub___$ac_func
9114 rm -f conftest.
$ac_objext conftest
$ac_exeext
9115 if { (ac_try
="$ac_link"
9117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_link") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext &&
9131 $as_test_x conftest$ac_exeext; then
9132 eval "$as_ac_var=yes"
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 eval "$as_ac_var=no"
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext conftest.$ac_ext
9143 ac_res=`eval echo '${'$as_ac_var'}'`
9144 { echo "$as_me:$LINENO: result: $ac_res" >&5
9145 echo "${ECHO_T}$ac_res" >&6; }
9146 if test `eval echo '${'$as_ac_var'}'` = yes; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9154 if test $ac_cv_func_pcap_create = "yes" ; then
9156 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9157 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9160 for ac_func in pcap_set_tstamp_type
9162 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9176 #define $ac_func innocuous_$ac_func
9178 /* System header to define __stub macros and hopefully few prototypes,
9179 which can conflict with char $ac_func (); below.
9180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181 <limits.h> exists even on freestanding compilers. */
9184 # include <limits.h>
9186 # include <assert.h>
9191 /* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9198 /* The GNU C library defines this for functions which it implements
9199 to always fail with ENOSYS. Some functions are actually named
9200 something starting with __ and the normal name is an alias. */
9201 #if defined __stub_$ac_func || defined __stub___$ac_func
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9217 *) ac_try_echo
=$ac_try;;
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_link") 2>conftest.er1
9222 grep -v '^ *+' conftest.er1
>conftest.err
9224 cat conftest.err
>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest
$ac_exeext &&
9230 $as_test_x conftest
$ac_exeext; then
9231 eval "$as_ac_var=yes"
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.
$ac_ext >&5
9236 eval "$as_ac_var=no"
9239 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9240 conftest
$ac_exeext conftest.
$ac_ext
9242 ac_res
=`eval echo '${'$as_ac_var'}'`
9243 { echo "$as_me:$LINENO: result: $ac_res" >&5
9244 echo "${ECHO_T}$ac_res" >&6; }
9245 if test `eval echo '${'$as_ac_var'}'` = yes; then
9246 cat >>confdefs.h
<<_ACEOF
9247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9258 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9260 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9263 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 cat >conftest.
$ac_ext <<_ACEOF
9269 cat confdefs.h
>>conftest.
$ac_ext
9270 cat >>conftest.
$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9274 #define $ac_func innocuous_$ac_func
9276 /* System header to define __stub macros and hopefully few prototypes,
9277 which can conflict with char $ac_func (); below.
9278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9279 <limits.h> exists even on freestanding compilers. */
9282 # include <limits.h>
9284 # include <assert.h>
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9296 /* The GNU C library defines this for functions which it implements
9297 to always fail with ENOSYS. Some functions are actually named
9298 something starting with __ and the normal name is an alias. */
9299 #if defined __stub_$ac_func || defined __stub___$ac_func
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext
9312 if { (ac_try
="$ac_link"
9314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_link") 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest$ac_exeext &&
9328 $as_test_x conftest$ac_exeext; then
9329 eval "$as_ac_var=yes"
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 eval "$as_ac_var=no"
9337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9338 conftest$ac_exeext conftest.$ac_ext
9340 ac_res=`eval echo '${'$as_ac_var'}'`
9341 { echo "$as_me:$LINENO: result: $ac_res" >&5
9342 echo "${ECHO_T}$ac_res" >&6; }
9343 if test `eval echo '${'$as_ac_var'}'` = yes; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9351 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9352 savedcppflags="$CPPFLAGS"
9353 CPPFLAGS="$CPPFLAGS $V_INCLS"
9354 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9355 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9356 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9367 typedef pcap_if_t ac__type_new_;
9371 if ((ac__type_new_ *) 0)
9373 if (sizeof (ac__type_new_))
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9383 *) ac_try_echo
=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.
$ac_objext; then
9396 ac_cv_type_pcap_if_t
=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.
$ac_ext >&5
9401 ac_cv_type_pcap_if_t
=no
9404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9407 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9408 if test $ac_cv_type_pcap_if_t = yes; then
9410 cat >>confdefs.h
<<_ACEOF
9411 #define HAVE_PCAP_IF_T 1
9417 CPPFLAGS
="$savedcppflags"
9420 if test $ac_cv_func_pcap_lib_version = "no" ; then
9421 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9422 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9423 cat >conftest.
$ac_ext <<_ACEOF
9426 cat confdefs.h
>>conftest.
$ac_ext
9427 cat >>conftest.
$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9434 extern char pcap_version[];
9436 return (int)pcap_version;
9442 rm -f conftest.
$ac_objext conftest
$ac_exeext
9443 if { (ac_try
="$ac_link"
9445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_link") 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest$ac_exeext &&
9459 $as_test_x conftest$ac_exeext; then
9460 ac_lbl_cv_pcap_version_defined=yes
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_lbl_cv_pcap_version_defined=no
9468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9469 conftest$ac_exeext conftest.$ac_ext
9470 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9471 { echo "$as_me:$LINENO: result: yes" >&5
9472 echo "${ECHO_T}yes" >&6; }
9473 cat >>confdefs.h <<\_ACEOF
9474 #define HAVE_PCAP_VERSION 1
9478 { echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6; }
9482 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9483 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9495 extern int pcap_debug;
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9507 *) ac_try_echo
=$ac_try;;
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9512 grep -v '^ *+' conftest.er1
>conftest.err
9514 cat conftest.err
>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest
$ac_exeext &&
9520 $as_test_x conftest
$ac_exeext; then
9521 ac_lbl_cv_pcap_debug_defined
=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.
$ac_ext >&5
9526 ac_lbl_cv_pcap_debug_defined
=no
9529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9530 conftest
$ac_exeext conftest.
$ac_ext
9531 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9532 { echo "$as_me:$LINENO: result: yes" >&5
9533 echo "${ECHO_T}yes" >&6; }
9534 cat >>confdefs.h
<<\_ACEOF
9535 #define HAVE_PCAP_DEBUG 1
9539 { echo "$as_me:$LINENO: result: no" >&5
9540 echo "${ECHO_T}no" >&6; }
9542 # OK, what about "yydebug"?
9544 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9545 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9546 cat >conftest.
$ac_ext <<_ACEOF
9549 cat confdefs.h
>>conftest.
$ac_ext
9550 cat >>conftest.
$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9565 rm -f conftest.
$ac_objext conftest
$ac_exeext
9566 if { (ac_try
="$ac_link"
9568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_link") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1 >conftest.err
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest$ac_exeext &&
9582 $as_test_x conftest$ac_exeext; then
9583 ac_lbl_cv_yydebug_defined=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_lbl_cv_yydebug_defined=no
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9594 { echo "$as_me:$LINENO: result: yes" >&5
9595 echo "${ECHO_T}yes" >&6; }
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_YYDEBUG 1
9601 { echo "$as_me:$LINENO: result: no" >&5
9602 echo "${ECHO_T}no" >&6; }
9606 for ac_func in bpf_dump
9608 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9630 # include <limits.h>
9632 # include <assert.h>
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined __stub_$ac_func || defined __stub___$ac_func
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9663 *) ac_try_echo
=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>conftest.er1
9668 grep -v '^ *+' conftest.er1
>conftest.err
9670 cat conftest.err
>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest
$ac_exeext &&
9676 $as_test_x conftest
$ac_exeext; then
9677 eval "$as_ac_var=yes"
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.
$ac_ext >&5
9682 eval "$as_ac_var=no"
9685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9686 conftest
$ac_exeext conftest.
$ac_ext
9688 ac_res
=`eval echo '${'$as_ac_var'}'`
9689 { echo "$as_me:$LINENO: result: $ac_res" >&5
9690 echo "${ECHO_T}$ac_res" >&6; }
9691 if test `eval echo '${'$as_ac_var'}'` = yes; then
9692 cat >>confdefs.h
<<_ACEOF
9693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697 case " $LIBOBJS " in
9698 *" $ac_func.$ac_objext "* ) ;;
9699 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9708 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9712 # Assume V7/BSD convention for man pages (file formats in section 5,
9713 # miscellaneous info in section 7).
9721 cat >>confdefs.h
<<\_ACEOF
9729 # Use System V conventions for man pages.
9739 # Use System V conventions for man pages.
9749 # Use System V conventions for man pages.
9759 # Use System V conventions for man pages.
9766 if test -f /dev
/bpf0
; then
9771 for ac_header
in sys
/bitypes.h
9773 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_res
=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9784 # Is the header compilable?
9785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9787 cat >conftest.
$ac_ext <<_ACEOF
9790 cat confdefs.h
>>conftest.
$ac_ext
9791 cat >>conftest.
$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9796 rm -f conftest.
$ac_objext
9797 if { (ac_try
="$ac_compile"
9799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_header_compiler=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_header_compiler=no
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823 echo "${ECHO_T}$ac_header_compiler" >&6; }
9825 # Is the header present?
9826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9828 cat >conftest.$ac_ext <<_ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <$ac_header>
9836 if { (ac_try="$ac_cpp conftest.$ac_ext"
9838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9839 *) ac_try_echo
=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1
>conftest.err
9846 cat conftest.err
>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } >/dev
/null
&& {
9849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9852 ac_header_preproc
=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.
$ac_ext >&5
9857 ac_header_preproc
=no
9860 rm -f conftest.err conftest.
$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9862 echo "${ECHO_T}$ac_header_preproc" >&6; }
9864 # So? What about this header?
9865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9871 ac_header_preproc
=yes
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9891 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 eval "$as_ac_Header=\$ac_header_preproc"
9896 ac_res
=`eval echo '${'$as_ac_Header'}'`
9897 { echo "$as_me:$LINENO: result: $ac_res" >&5
9898 echo "${ECHO_T}$ac_res" >&6; }
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h
<<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9911 { echo "$as_me:$LINENO: checking for int8_t" >&5
9912 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9913 if test "${ac_cv_type_int8_t+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.
$ac_ext <<_ACEOF
9919 cat confdefs.h
>>conftest.
$ac_ext
9920 cat >>conftest.
$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9923 #ifdef HAVE_SYS_BITYPES_H
9924 #include <sys/bitypes.h>
9927 typedef int8_t ac__type_new_;
9931 if ((ac__type_new_ *) 0)
9933 if (sizeof (ac__type_new_))
9939 rm -f conftest.
$ac_objext
9940 if { (ac_try
="$ac_compile"
9942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_compile") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest.$ac_objext; then
9956 ac_cv_type_int8_t=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_cv_type_int8_t=no
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9967 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9968 if test $ac_cv_type_int8_t = yes; then
9972 cat >>confdefs.h <<\_ACEOF
9973 #define int8_t signed char
9978 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9979 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9980 if test "${ac_cv_type_u_int8_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #ifdef HAVE_SYS_BITYPES_H
9991 #include <sys/bitypes.h>
9994 typedef u_int8_t ac__type_new_;
9998 if ((ac__type_new_ *) 0)
10000 if (sizeof (ac__type_new_))
10006 rm -f conftest.$ac_objext
10007 if { (ac_try="$ac_compile"
10008 case "(($ac_try" in
10009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10010 *) ac_try_echo
=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_compile") 2>conftest.er1
10015 grep -v '^ *+' conftest.er1
>conftest.err
10017 cat conftest.err
>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && {
10020 test -z "$ac_c_werror_flag" ||
10021 test ! -s conftest.err
10022 } && test -s conftest.
$ac_objext; then
10023 ac_cv_type_u_int8_t
=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.
$ac_ext >&5
10028 ac_cv_type_u_int8_t
=no
10031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10033 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10034 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10035 if test $ac_cv_type_u_int8_t = yes; then
10039 cat >>confdefs.h
<<\_ACEOF
10040 #define u_int8_t unsigned char
10045 { echo "$as_me:$LINENO: checking for int16_t" >&5
10046 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10047 if test "${ac_cv_type_int16_t+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 cat >conftest.
$ac_ext <<_ACEOF
10053 cat confdefs.h
>>conftest.
$ac_ext
10054 cat >>conftest.
$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 typedef int16_t ac__type_new_;
10061 if ((ac__type_new_ *) 0)
10063 if (sizeof (ac__type_new_))
10069 rm -f conftest.
$ac_objext
10070 if { (ac_try
="$ac_compile"
10071 case "(($ac_try" in
10072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_compile") 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && {
10083 test -z "$ac_c_werror_flag" ||
10084 test ! -s conftest.err
10085 } && test -s conftest.$ac_objext; then
10086 ac_cv_type_int16_t=yes
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_type_int16_t=no
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10097 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10098 if test $ac_cv_type_int16_t = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define int16_t short
10106 $ac_includes_default
10107 #ifdef HAVE_SYS_BITYPES_H
10108 #include <sys/bitypes.h>
10112 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10113 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10114 if test "${ac_cv_type_u_int16_t+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 $ac_includes_default
10124 #ifdef HAVE_SYS_BITYPES_H
10125 #include <sys/bitypes.h>
10128 typedef u_int16_t ac__type_new_;
10132 if ((ac__type_new_ *) 0)
10134 if (sizeof (ac__type_new_))
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10144 *) ac_try_echo
=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.
$ac_objext; then
10157 ac_cv_type_u_int16_t
=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.
$ac_ext >&5
10162 ac_cv_type_u_int16_t
=no
10165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10168 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10169 if test $ac_cv_type_u_int16_t = yes; then
10173 cat >>confdefs.h
<<\_ACEOF
10174 #define u_int16_t unsigned short
10179 { echo "$as_me:$LINENO: checking for int32_t" >&5
10180 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10181 if test "${ac_cv_type_int32_t+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.
$ac_ext <<_ACEOF
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10191 #ifdef HAVE_SYS_BITYPES_H
10192 #include <sys/bitypes.h>
10195 typedef int32_t ac__type_new_;
10199 if ((ac__type_new_ *) 0)
10201 if (sizeof (ac__type_new_))
10207 rm -f conftest.
$ac_objext
10208 if { (ac_try
="$ac_compile"
10209 case "(($ac_try" in
10210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_compile") 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest.$ac_objext; then
10224 ac_cv_type_int32_t=yes
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_type_int32_t=no
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10235 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10236 if test $ac_cv_type_int32_t = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define int32_t int
10246 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10247 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10248 if test "${ac_cv_type_u_int32_t+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 #ifdef HAVE_SYS_BITYPES_H
10259 #include <sys/bitypes.h>
10262 typedef u_int32_t ac__type_new_;
10266 if ((ac__type_new_ *) 0)
10268 if (sizeof (ac__type_new_))
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10278 *) ac_try_echo
=$ac_try;;
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_compile") 2>conftest.er1
10283 grep -v '^ *+' conftest.er1
>conftest.err
10285 cat conftest.err
>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.
$ac_objext; then
10291 ac_cv_type_u_int32_t
=yes
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.
$ac_ext >&5
10296 ac_cv_type_u_int32_t
=no
10299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10301 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10302 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10303 if test $ac_cv_type_u_int32_t = yes; then
10307 cat >>confdefs.h
<<\_ACEOF
10308 #define u_int32_t unsigned int
10313 { echo "$as_me:$LINENO: checking for int64_t" >&5
10314 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_type_int64_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.
$ac_ext <<_ACEOF
10321 cat confdefs.h
>>conftest.
$ac_ext
10322 cat >>conftest.
$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 #ifdef HAVE_SYS_BITYPES_H
10326 #include <sys/bitypes.h>
10329 typedef int64_t ac__type_new_;
10333 if ((ac__type_new_ *) 0)
10335 if (sizeof (ac__type_new_))
10341 rm -f conftest.
$ac_objext
10342 if { (ac_try
="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_cv_type_int64_t=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_type_int64_t=no
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10369 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10370 if test $ac_cv_type_int64_t = yes; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define int64_t long long
10380 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10381 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10382 if test "${ac_cv_type_u_int64_t+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 cat >conftest.$ac_ext <<_ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 $ac_includes_default
10392 #ifdef HAVE_SYS_BITYPES_H
10393 #include <sys/bitypes.h>
10396 typedef u_int64_t ac__type_new_;
10400 if ((ac__type_new_ *) 0)
10402 if (sizeof (ac__type_new_))
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10412 *) ac_try_echo
=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1
>conftest.err
10419 cat conftest.err
>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.
$ac_objext; then
10425 ac_cv_type_u_int64_t
=yes
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.
$ac_ext >&5
10430 ac_cv_type_u_int64_t
=no
10433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10435 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10436 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10437 if test $ac_cv_type_u_int64_t = yes; then
10441 cat >>confdefs.h
<<\_ACEOF
10442 #define u_int64_t unsigned long long
10449 # We can't just check for <inttypes.h> - some systems have one that
10450 # doesn't define all the PRI[doxu]64 macros.
10453 for ac_header
in inttypes.h
10455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 ac_res
=`eval echo '${'$as_ac_Header'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464 echo "${ECHO_T}$ac_res" >&6; }
10466 # Is the header compilable?
10467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 #include <$ac_header>
10478 rm -f conftest.
$ac_objext
10479 if { (ac_try
="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10495 ac_header_compiler=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_header_compiler=no
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10505 echo "${ECHO_T}$ac_header_compiler" >&6; }
10507 # Is the header present?
10508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <$ac_header>
10518 if { (ac_try="$ac_cpp conftest.$ac_ext"
10519 case "(($ac_try" in
10520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10521 *) ac_try_echo
=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1
>conftest.err
10528 cat conftest.err
>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev
/null
&& {
10531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10534 ac_header_preproc
=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.
$ac_ext >&5
10539 ac_header_preproc
=no
10542 rm -f conftest.err conftest.
$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10544 echo "${ECHO_T}$ac_header_preproc" >&6; }
10546 # So? What about this header?
10547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10553 ac_header_preproc
=yes
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 eval "$as_ac_Header=\$ac_header_preproc"
10578 ac_res
=`eval echo '${'$as_ac_Header'}'`
10579 { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10584 cat >>confdefs.h
<<_ACEOF
10585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10589 # OK, we have inttypes.h, but does it define those macros?
10591 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10592 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10593 cat >conftest.
$ac_ext <<_ACEOF
10597 cat confdefs.h
>>conftest.
$ac_ext
10598 cat >>conftest.
$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10601 #include <inttypes.h>
10603 #include <sys/types.h>
10604 #ifdef HAVE_SYS_BITYPES_H
10605 #include <sys/bitypes.h>
10610 printf("%" PRId64 "\n", (u_int64_t)1);
10611 printf("%" PRIo64 "\n", (u_int64_t)1);
10612 printf("%" PRIx64 "\n", (u_int64_t)1);
10613 printf("%" PRIu64 "\n", (u_int64_t)1);
10618 rm -f conftest.
$ac_objext
10619 if { (ac_try
="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10636 { echo "$as_me:$LINENO: result: yes" >&5
10637 echo "${ECHO_T}yes" >&6; }
10638 ac_lbl_inttypes_h_defines_formats=yes
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10645 { echo "$as_me:$LINENO: result: no" >&5
10646 echo "${ECHO_T}no" >&6; }
10647 ac_lbl_inttypes_h_defines_formats=no
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 # We don't have inttypes.h, so it obviously can't define those
10659 ac_lbl_inttypes_h_defines_formats=no
10665 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10667 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10668 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10669 if test "$cross_compiling" = yes; then
10670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10671 See \`config.log
' for more details." >&5
10672 echo "$as_me: error: cannot run test program while cross compiling
10673 See \`config.log' for more details.
" >&2;}
10674 { (exit 1); exit 1; }; }
10676 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 # ifdef HAVE_INTTYPES_H
10685 #include <inttypes.h>
10687 # ifdef HAVE_SYS_BITYPES_H
10688 #include <sys/bitypes.h>
10691 #include <sys/types.h>
10697 sprintf(strbuf, "%016lx
", t << 32);
10698 if (strcmp(strbuf, "0000000100000000") == 0)
10706 rm -f conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>&5
10715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10725 (exit $ac_status); }; }; then
10727 cat >>confdefs.h <<\_ACEOF
10728 #define PRId64 "ld
"
10731 cat >>confdefs.h <<\_ACEOF
10732 #define PRIo64 "lo
"
10735 cat >>confdefs.h <<\_ACEOF
10736 #define PRIx64 "lx
"
10739 cat >>confdefs.h <<\_ACEOF
10740 #define PRIu64 "lu
"
10743 { echo "$as_me:$LINENO: result
: yes" >&5
10744 echo "${ECHO_T}yes" >&6; }
10747 echo "$as_me: program exited with status
$ac_status" >&5
10748 echo "$as_me: failed program was
:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ( exit $ac_status )
10753 { echo "$as_me:$LINENO: result
: no
" >&5
10754 echo "${ECHO_T}no
" >&6; }
10757 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
10758 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
10759 if test "$cross_compiling" = yes; then
10760 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
10761 See \
`config.log' for more details." >&5
10762 echo "$as_me: error: cannot run test program while cross compiling
10763 See \`config.log
' for more details." >&2;}
10764 { (exit 1); exit 1; }; }
10766 cat >conftest.$ac_ext <<_ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10774 # ifdef HAVE_INTTYPES_H
10775 #include <inttypes.h>
10777 # ifdef HAVE_SYS_BITYPES_H
10778 #include <sys/bitypes.h>
10781 #include <sys/types.h>
10787 sprintf(strbuf, "%016llx", t << 32);
10788 if (strcmp(strbuf, "0000000100000000") == 0)
10796 rm -f conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define PRId64 "lld"
10821 cat >>confdefs.h <<\_ACEOF
10822 #define PRIo64 "llo"
10825 cat >>confdefs.h <<\_ACEOF
10826 #define PRIx64 "llx"
10829 cat >>confdefs.h <<\_ACEOF
10830 #define PRIu64 "llu"
10833 { echo "$as_me:$LINENO: result: yes" >&5
10834 echo "${ECHO_T}yes" >&6; }
10837 echo "$as_me: program exited with status $ac_status" >&5
10838 echo "$as_me: failed program was:" >&5
10839 sed 's
/^
/|
/' conftest.$ac_ext >&5
10841 ( exit $ac_status )
10843 { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10847 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10848 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10849 if test "$cross_compiling" = yes; then
10850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10851 See \`config.log' for more details.
" >&5
10852 echo "$as_me: error
: cannot run
test program
while cross compiling
10853 See \
`config.log' for more details." >&2;}
10854 { (exit 1); exit 1; }; }
10856 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 # ifdef HAVE_INTTYPES_H
10865 #include <inttypes.h>
10867 # ifdef HAVE_SYS_BITYPES_H
10868 #include <sys/bitypes.h>
10871 #include <sys/types.h>
10877 sprintf(strbuf, "%016Lx", t << 32);
10878 if (strcmp(strbuf, "0000000100000000") == 0)
10886 rm -f conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10890 *) ac_try_echo
=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_link") 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define PRId64 "Ld"
10911 cat >>confdefs.h <<\_ACEOF
10912 #define PRIo64 "Lo"
10915 cat >>confdefs.h <<\_ACEOF
10916 #define PRIx64 "Lx"
10919 cat >>confdefs.h <<\_ACEOF
10920 #define PRIu64 "Lu"
10923 { echo "$as_me:$LINENO: result: yes" >&5
10924 echo "${ECHO_T}yes" >&6; }
10927 echo "$as_me: program exited with status $ac_status" >&5
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ( exit $ac_status )
10933 { echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6; }
10937 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10938 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10939 if test "$cross_compiling" = yes; then
10940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10941 See \`config.log
' for more details." >&5
10942 echo "$as_me: error: cannot run test program while cross compiling
10943 See \`config.log' for more details.
" >&2;}
10944 { (exit 1); exit 1; }; }
10946 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10954 # ifdef HAVE_INTTYPES_H
10955 #include <inttypes.h>
10957 # ifdef HAVE_SYS_BITYPES_H
10958 #include <sys/bitypes.h>
10961 #include <sys/types.h>
10967 sprintf(strbuf, "%016qx
", t << 32);
10968 if (strcmp(strbuf, "0000000100000000") == 0)
10976 rm -f conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>&5
10985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10995 (exit $ac_status); }; }; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define PRId64 "qd
"
11001 cat >>confdefs.h <<\_ACEOF
11002 #define PRIo64 "qo
"
11005 cat >>confdefs.h <<\_ACEOF
11006 #define PRIx64 "qx
"
11009 cat >>confdefs.h <<\_ACEOF
11010 #define PRIu64 "qu
"
11013 { echo "$as_me:$LINENO: result
: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11017 echo "$as_me: program exited with status
$ac_status" >&5
11018 echo "$as_me: failed program was
:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ( exit $ac_status )
11023 { echo "$as_me:$LINENO: result
: no
" >&5
11024 echo "${ECHO_T}no
" >&6; }
11026 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
11027 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
11028 { (exit 1); exit 1; }; }
11032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11064 # Check for some headers introduced in later versions of libpcap
11065 # and used by some printers.
11067 # Those headers use the {u_}intN_t types, so we must do this after
11068 # we check for what's needed to get them defined.
11070 savedcppflags="$CPPFLAGS"
11071 CPPFLAGS="$CPPFLAGS $V_INCLS"
11073 for ac_header in pcap/bluetooth.h
11075 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11076 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11077 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11079 echo $ECHO_N "(cached
) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <tcpdump-stdinc.h>
11089 #include <$ac_header>
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 eval "$as_ac_Header=yes"
11110 echo "$as_me: failed program was
:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 eval "$as_ac_Header=no
"
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11131 for ac_header in pcap/usb.h
11133 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11135 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached
) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <tcpdump-stdinc.h>
11147 #include <$ac_header>
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_compile") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest.$ac_objext; then
11166 eval "$as_ac_Header=yes"
11168 echo "$as_me: failed program was
:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 eval "$as_ac_Header=no
"
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11188 CPPFLAGS="$savedcppflags"
11190 if test -n "$ac_tool_prefix"; then
11191 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11193 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11194 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11195 if test "${ac_cv_prog_RANLIB+set}" = set; then
11196 echo $ECHO_N "(cached
) $ECHO_C" >&6
11198 if test -n "$RANLIB"; then
11199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11209 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11218 RANLIB=$ac_cv_prog_RANLIB
11219 if test -n "$RANLIB"; then
11220 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
11221 echo "${ECHO_T}$RANLIB" >&6; }
11223 { echo "$as_me:$LINENO: result
: no
" >&5
11224 echo "${ECHO_T}no
" >&6; }
11229 if test -z "$ac_cv_prog_RANLIB"; then
11230 ac_ct_RANLIB=$RANLIB
11231 # Extract the first word of "ranlib
", so it can be a program name with args.
11232 set dummy ranlib; ac_word=$2
11233 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11234 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11236 echo $ECHO_N "(cached
) $ECHO_C" >&6
11238 if test -n "$ac_ct_RANLIB"; then
11239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11249 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11259 if test -n "$ac_ct_RANLIB"; then
11260 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
11261 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11263 { echo "$as_me:$LINENO: result
: no
" >&5
11264 echo "${ECHO_T}no
" >&6; }
11267 if test "x
$ac_ct_RANLIB" = x; then
11270 case $cross_compiling:$ac_tool_warned in
11272 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
11273 whose name does not start with the
host triplet. If you think this
11274 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
11275 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
11276 whose name does not start with the
host triplet. If you think this
11277 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
11278 ac_tool_warned=yes ;;
11280 RANLIB=$ac_ct_RANLIB
11283 RANLIB="$ac_cv_prog_RANLIB"
11288 if test "${LBL_CFLAGS+set}" = set; then
11289 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11291 if test -f .devel ; then
11292 if test "$GCC" = yes ; then
11293 if test "${LBL_CFLAGS+set}" != set; then
11294 if test "$ac_cv_prog_cc_g" = yes ; then
11295 V_CCOPT="-g $V_CCOPT"
11297 V_CCOPT="$V_CCOPT -Wall"
11298 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11299 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11306 V_CCOPT="$V_CCOPT -n32"
11313 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11314 name="lbl
/os-
$os.h
"
11315 if test -f $name ; then
11316 ln -s $name os-proto.h
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_OS_PROTO_H 1
11323 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
11324 echo "$as_me: WARNING: can't
find $name" >&2;}
11328 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
11329 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
11330 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11331 echo $ECHO_N "(cached
) $ECHO_C" >&6
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11340 # include <sys/types.h>
11341 # include <sys/socket.h>
11345 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11359 grep -v '^ *+' conftest.er1 >conftest.err
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.$ac_objext; then
11367 ac_cv_lbl_sockaddr_has_sa_len=yes
11369 echo "$as_me: failed program was
:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_cv_lbl_sockaddr_has_sa_len=no
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11379 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11380 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_SOCKADDR_SA_LEN 1
11388 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
11389 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
11390 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11391 echo $ECHO_N "(cached
) $ECHO_C" >&6
11393 case "$host_cpu" in
11396 # These are CPU types where:
11398 # the CPU faults on an unaligned access, but at least some
11399 # OSes that support that CPU catch the fault and simulate
11400 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11401 # the simulation is slow, so we don't want to use it;
11403 # the CPU, I infer (from the old
11405 # XXX: should also check that they don't do weird things (like on arm)
11407 # comment) doesn't fault on unaligned accesses, but doesn't
11408 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11410 # for whatever reason, the test program doesn't work
11411 # (this has been claimed to be the case for several of those
11412 # CPUs - I don't know what the problem is; the problem
11413 # was reported as "the
test program dumps core
" for SuperH,
11414 # but that's what the test program is *supposed* to do -
11415 # it dumps core before it writes anything, so the test
11416 # for an empty output file should find an empty output
11417 # file and conclude that unaligned accesses don't work).
11419 # This run-time test won't work if you're cross-compiling, so
11420 # in order to support cross-compiling for a particular CPU,
11421 # we have to wire in the list of CPU types anyway, as far as
11422 # I know, so perhaps we should just have a set of CPUs on
11423 # which we know it doesn't work, a set of CPUs on which we
11424 # know it does work, and have the script just fail on other
11425 # cpu types and update it when such a failure occurs.
11427 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11428 ac_cv_lbl_unaligned_fail=yes
11432 cat >conftest.c <<EOF
11433 # include <sys/types.h>
11434 # include <sys/wait.h>
11435 # include <stdio.h>
11436 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11441 /* avoid "core dumped
" message */
11447 pid = waitpid(pid, &status, 0);
11450 exit(!WIFEXITED(status));
11453 i = *(unsigned int *)&a[1];
11458 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11459 conftest.c $LIBS >/dev/null 2>&1
11460 if test ! -x conftest ; then
11461 ac_cv_lbl_unaligned_fail=yes
11463 ./conftest >conftest.out
11464 if test ! -s conftest.out ; then
11465 ac_cv_lbl_unaligned_fail=yes
11467 ac_cv_lbl_unaligned_fail=no
11470 rm -f -r conftest* core core.conftest
11475 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
11476 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11477 if test $ac_cv_lbl_unaligned_fail = yes ; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define LBL_ALIGN 1
11486 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
11487 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
11488 if test "${ac_cv_var_h_errno+set}" = set; then
11489 echo $ECHO_N "(cached
) $ECHO_C" >&6
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11498 # include <sys/types.h>
11499 # include <netdb.h>
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_cv_var_h_errno=yes
11527 echo "$as_me: failed program was
:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_cv_var_h_errno=no
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
11537 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11538 if test "$ac_cv_var_h_errno" = "yes"; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_H_ERRNO 1
11546 # Check for OpenSSL libcrypto
11547 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto
" >&5
11548 echo $ECHO_N "checking whether to use OpenSSL libcrypto...
$ECHO_C" >&6; }
11549 # Specify location for both includes and libraries.
11550 want_libcrypto=ifavailable
11552 # Check whether --with-crypto was given.
11553 if test "${with_crypto+set}" = set; then
11554 withval=$with_crypto;
11555 if test $withval = no
11558 { echo "$as_me:$LINENO: result
: no
" >&5
11559 echo "${ECHO_T}no
" >&6; }
11560 elif test $withval = yes
11563 { echo "$as_me:$LINENO: result
: yes" >&5
11564 echo "${ECHO_T}yes" >&6; }
11570 # Use libcrypto if it's present, otherwise don't.
11572 want_libcrypto=ifavailable
11573 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
11574 echo "${ECHO_T}yes, if available
" >&6; }
11578 if test "$want_libcrypto" != "no
"; then
11580 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
11581 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
11582 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11583 echo $ECHO_N "(cached
) $ECHO_C" >&6
11585 ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lcrypto $LIBS"
11587 cat >conftest.$ac_ext <<_ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11600 char DES_cbc_encrypt ();
11604 return DES_cbc_encrypt ();
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (ac_try="$ac_link"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_link") 2>conftest.er1
11618 grep -v '^ *+' conftest.er1 >conftest.err
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext &&
11626 $as_test_x conftest$ac_exeext; then
11627 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11629 echo "$as_me: failed program was
:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 ac_cv_lib_crypto_DES_cbc_encrypt=no
11635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11639 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11640 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11641 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define HAVE_LIBCRYPTO 1
11646 LIBS="-lcrypto $LIBS"
11651 for ac_header in openssl/evp.h
11653 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11656 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached
) $ECHO_C" >&6
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11664 # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11666 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 $ac_includes_default
11674 #include <$ac_header>
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
11693 ac_header_compiler=yes
11695 echo "$as_me: failed program was
:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_compiler=no
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6; }
11705 # Is the header present?
11706 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11707 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <$ac_header>
11716 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11728 (exit $ac_status); } >/dev/null && {
11729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11732 ac_header_preproc=yes
11734 echo "$as_me: failed program was
:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_preproc=no
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744 # So? What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11748 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11751 ac_header_preproc=yes
11754 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11755 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11756 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11757 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11758 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11759 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11760 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11761 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11764 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11765 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11769 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11770 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached
) $ECHO_C" >&6
11774 eval "$as_ac_Header=\
$ac_header_preproc"
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11792 if test "$missing_includes" = "yes"; then
11793 CPPFLAGS="$CPPFLAGS -I$srcdir/missing
"
11794 V_INCLS="$V_INCLS -I$srcdir/missing
"
11806 # Find a good install program. We prefer a C program (faster),
11807 # so one script is as good as another. But avoid the broken or
11808 # incompatible versions:
11809 # SysV /etc/install, /usr/sbin/install
11810 # SunOS /usr/etc/install
11811 # IRIX /sbin/install
11813 # AmigaOS /C/install, which installs bootblocks on floppy discs
11814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
11817 # OS/2's system install, which has a completely different semantic
11818 # ./install, which can be erroneously created by make from ./install.sh.
11819 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
11820 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
11821 if test -z "$INSTALL"; then
11822 if test "${ac_cv_path_install+set}" = set; then
11823 echo $ECHO_N "(cached
) $ECHO_C" >&6
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11829 test -z "$as_dir" && as_dir=.
11830 # Account for people who put trailing slashes in PATH elements.
11832 ./ | .// | /cC/* | \
11833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11834 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11837 # OSF1 and SCO ODT 3.0 have their own names for install.
11838 # Don't use installbsd from OSF since it installs stuff as root
11840 for ac_prog in ginstall scoinst install; do
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11843 if test $ac_prog = install &&
11844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11845 # AIX install. It has an incompatible calling convention.
11847 elif test $ac_prog = install &&
11848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11849 # program-specific install script used by HP pwplus--don't use.
11852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11865 if test "${ac_cv_path_install+set}" = set; then
11866 INSTALL=$ac_cv_path_install
11868 # As a last resort, use the slow shell script. Don't cache a
11869 # value for INSTALL within a source directory, because that will
11870 # break other packages using the cache if that directory is
11871 # removed, or if the value is a relative name.
11872 INSTALL=$ac_install_sh
11875 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
11876 echo "${ECHO_T}$INSTALL" >&6; }
11878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11879 # It thinks the first close brace ends the variable substitution.
11880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11887 ac_config_headers="$ac_config_headers config.h
"
11890 ac_config_commands="$ac_config_commands default-1
"
11892 ac_config_files="$ac_config_files Makefile tcpdump
.1"
11894 cat >confcache <<\_ACEOF
11895 # This file is a shell script that caches the results of configure
11896 # tests run on this system so they can be shared between configure
11897 # scripts and configure runs, see configure's option --config-cache.
11898 # It is not useful on other systems. If it contains results you don't
11899 # want to keep, you may remove or edit it.
11901 # config.status only pays attention to the cache file if you give it
11902 # the --recheck option to rerun configure.
11904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11906 # following values.
11910 # The following way of writing the cache mishandles newlines in values,
11911 # but we know of no workaround that is simple, portable, and efficient.
11912 # So, we kill variables containing newlines.
11913 # Ultrix sh set writes to stderr and can't be redirected directly,
11914 # and sets the high bit in the cache file unless we assign to the vars.
11916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11917 eval ac_val=\$$ac_var
11921 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
11922 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
11925 _ | IFS | as_nl) ;; #(
11926 *) $as_unset $ac_var ;;
11932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11933 *${as_nl}ac_space=\ *)
11934 # `set' does not quote correctly, so add quotes (double-quote
11935 # substitution turns \\\\ into \\, and sed turns \\ into \).
11938 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
11941 # `set' quotes correctly as required by POSIX, so do not add quotes.
11942 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
11951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11956 if test -w "$cache_file"; then
11957 test "x
$cache_file" != "x
/dev
/null
" &&
11958 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
11959 echo "$as_me: updating cache
$cache_file" >&6;}
11960 cat confcache >$cache_file
11962 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
11963 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
11968 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
11969 # Let make expand exec_prefix.
11970 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
11972 DEFS=-DHAVE_CONFIG_H
11976 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
11977 # 1. Remove the extension, and $U if already installed.
11978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11979 ac_i=`echo "$ac_i" | sed "$ac_script"`
11980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11981 # will be set to the directory where LIBOBJS objects are built.
11982 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
11983 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
11985 LIBOBJS=$ac_libobjs
11987 LTLIBOBJS=$ac_ltlibobjs
11991 : ${CONFIG_STATUS=./config.status}
11992 ac_clean_files_save=$ac_clean_files
11993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11994 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
11995 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
11996 cat >$CONFIG_STATUS <<_ACEOF
11998 # Generated by $as_me.
11999 # Run this file to recreate the current configuration.
12000 # Compiler output produced by configure, useful for debugging
12001 # configure, is in config.log if it exists.
12004 ac_cs_recheck=false
12006 SHELL=\${CONFIG_SHELL-$SHELL}
12009 cat >>$CONFIG_STATUS <<\_ACEOF
12010 ## --------------------- ##
12011 ## M4sh Initialization. ##
12012 ## --------------------- ##
12014 # Be more Bourne compatible
12015 DUALCASE=1; export DUALCASE # for MKS sh
12016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12020 # is contrary to our usage. Disable this feature.
12021 alias -g '${1+"$@"}'='"$@
"'
12022 setopt NO_GLOB_SUBST
12024 case `(set -o) 2>/dev/null` in
12025 *posix*) set -o posix ;;
12034 # Avoid depending upon Character Ranges.
12035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038 as_cr_digits='0123456789'
12039 as_cr_alnum=$as_cr_Letters$as_cr_digits
12041 # The user is always right.
12042 if test "${PATH_SEPARATOR+set}" != set; then
12043 echo "#! /bin/sh" >conf$$.sh
12044 echo "exit 0" >>conf$$.sh
12046 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12054 # Support unset when possible.
12055 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12063 # We need space, tab and new line, in precisely that order. Quoting is
12064 # there to prevent editors from complaining about space-tab.
12065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12066 # splitting by setting IFS to empty value.)
12071 # Find who we are. Look in the path if we contain no directory separator.
12073 *[\\/]* ) as_myself
=$0 ;;
12074 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12075 for as_dir
in $PATH
12078 test -z "$as_dir" && as_dir
=.
12079 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12085 # We did not find ourselves, most probably we were run as `sh COMMAND'
12086 # in which case we are not to be found in the path.
12087 if test "x$as_myself" = x
; then
12090 if test ! -f "$as_myself"; then
12091 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12092 { (exit 1); exit 1; }
12095 # Work around bugs in pre-3.0 UWIN ksh.
12096 for as_var
in ENV MAIL MAILPATH
12097 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12107 LC_TELEPHONE LC_TIME
12109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12110 eval $as_var=C
; export $as_var
12112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12116 # Required to use basename.
12117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12125 as_basename
=basename
12131 # Name of the executable.
12132 as_me
=`$as_basename -- "$0" ||
12133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12134 X"$0" : 'X\(//\)$' \| \
12135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12137 sed '/^.*\/\([^/][^/]*\)\/*$/{
12156 as_lineno_1
=$LINENO
12157 as_lineno_2
=$LINENO
12158 test "x$as_lineno_1" != "x$as_lineno_2" &&
12159 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12161 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12162 # uniformly replaced by the line number. The first 'sed' inserts a
12163 # line-number line after each line using $LINENO; the second 'sed'
12164 # does the real work. The second script uses 'N' to pair each
12165 # line-number line with the line containing $LINENO, and appends
12166 # trailing '-' during substitution so that $LINENO is not a special
12167 # case at line end.
12168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12169 # scripts with optimization help from Paolo Bonzini. Blame Lee
12170 # E. McMahon (1931-1989) for sed's syntax. :-)
12182 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12185 ' >$as_me.lineno
&&
12186 chmod +x
"$as_me.lineno" ||
12187 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12188 { (exit 1); exit 1; }; }
12190 # Don't try to exec as it changes $[0], causing all sort of problems
12191 # (the dirname of $[0] is not the place where we might find the
12192 # original and so on. Autoconf is especially sensitive to this).
12193 .
"./$as_me.lineno"
12194 # Exit status is that of the last command.
12199 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12205 ECHO_C
= ECHO_N
= ECHO_T
=
12206 case `echo -n x` in
12208 case `echo 'x\c'` in
12209 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12216 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12217 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12223 rm -f conf$$ conf$$.exe conf$$.
file
12224 if test -d conf$$.dir
; then
12225 rm -f conf$$.dir
/conf$$.
file
12231 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12233 # ... but there are two gotchas:
12234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236 # In both cases, we have to default to `cp -p'.
12237 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12239 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12244 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12245 rmdir conf$$.dir
2>/dev
/null
12247 if mkdir
-p .
2>/dev
/null
; then
12250 test -d .
/-p && rmdir .
/-p
12254 if test -x / >/dev
/null
2>&1; then
12255 as_test_x
='test -x'
12257 if ls -dL / >/dev
/null
2>&1; then
12264 if test -d "$1"; then
12270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12271 ???[sx]*):;;*)false;;esac;fi
12275 as_executable_p
=$as_test_x
12277 # Sed expression to map a string onto a valid CPP name.
12278 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12280 # Sed expression to map a string onto a valid variable name.
12281 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12286 # Save the log message, to keep $[0] and so on meaningful, and to
12287 # report actual input values of CONFIG_FILES etc. instead of their
12288 # values after options handling.
12290 This file was extended by $as_me, which was
12291 generated by GNU Autoconf 2.61. Invocation command line was
12293 CONFIG_FILES = $CONFIG_FILES
12294 CONFIG_HEADERS = $CONFIG_HEADERS
12295 CONFIG_LINKS = $CONFIG_LINKS
12296 CONFIG_COMMANDS = $CONFIG_COMMANDS
12299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12304 cat >>$CONFIG_STATUS <<_ACEOF
12305 # Files that config.status was made for.
12306 config_files="$ac_config_files"
12307 config_headers="$ac_config_headers"
12308 config_commands="$ac_config_commands"
12312 cat >>$CONFIG_STATUS <<\_ACEOF
12314 \`$as_me' instantiates files from templates according to the
12315 current configuration.
12317 Usage: $0 [OPTIONS] [FILE]...
12319 -h, --help print this help, then exit
12320 -V, --version print version number and configuration settings, then exit
12321 -q, --quiet do not print progress messages
12322 -d, --debug don't remove temporary files
12323 --recheck update $as_me by reconfiguring in the same conditions
12324 --file=FILE[:TEMPLATE]
12325 instantiate the configuration file FILE
12326 --header=FILE[:TEMPLATE]
12327 instantiate the configuration header FILE
12329 Configuration files:
12332 Configuration headers:
12335 Configuration commands:
12338 Report bugs to <bug-autoconf@gnu.org>."
12341 cat >>$CONFIG_STATUS <<_ACEOF
12344 configured by $0, generated by GNU Autoconf 2.61,
12345 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12347 Copyright (C) 2006 Free Software Foundation, Inc.
12348 This config.status script is free software; the Free Software Foundation
12349 gives unlimited permission to copy, distribute and modify it."
12356 cat >>$CONFIG_STATUS <<\_ACEOF
12357 # If no file are specified by the user, then we need to provide default
12358 # value. By we need to know if files were specified by the user.
12364 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12365 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12376 # Handling of the options.
12377 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12379 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12380 echo "$ac_cs_version"; exit ;;
12381 --debug |
--debu |
--deb |
--de |
--d |
-d )
12383 --file |
--fil |
--fi |
--f )
12385 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12386 ac_need_defaults
=false
;;
12387 --header |
--heade |
--head |
--hea )
12389 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12390 ac_need_defaults
=false
;;
12392 # Conflict between --help and --header
12393 { echo "$as_me: error: ambiguous option: $1
12394 Try \`$0 --help' for more information." >&2
12395 { (exit 1); exit 1; }; };;
12396 --help |
--hel |
-h )
12397 echo "$ac_cs_usage"; exit ;;
12398 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12399 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12402 # This is an error.
12403 -*) { echo "$as_me: error: unrecognized option: $1
12404 Try \`$0 --help' for more information." >&2
12405 { (exit 1); exit 1; }; } ;;
12407 *) ac_config_targets
="$ac_config_targets $1"
12408 ac_need_defaults
=false
;;
12414 ac_configure_extra_args
=
12416 if $ac_cs_silent; then
12418 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12422 cat >>$CONFIG_STATUS <<_ACEOF
12423 if \$ac_cs_recheck; then
12424 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12425 CONFIG_SHELL=$SHELL
12426 export CONFIG_SHELL
12427 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12431 cat >>$CONFIG_STATUS <<\_ACEOF
12435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12436 ## Running $as_me. ##
12442 cat >>$CONFIG_STATUS <<_ACEOF
12450 cat >>$CONFIG_STATUS <<\_ACEOF
12452 # Handling of arguments.
12453 for ac_config_target
in $ac_config_targets
12455 case $ac_config_target in
12456 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12457 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12458 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12459 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
12461 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12462 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12463 { (exit 1); exit 1; }; };;
12468 # If the user did not use the arguments to specify the items to instantiate,
12469 # then the envvar interface is used. Set only those that are not.
12470 # We use the long form for the default assignment because of an extremely
12471 # bizarre bug on SunOS 4.1.3.
12472 if $ac_need_defaults; then
12473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12478 # Have a temporary directory for convenience. Make it in the build tree
12479 # simply because there is no reason against having it here, and in addition,
12480 # creating and moving files from /tmp can sometimes cause problems.
12481 # Hook for its removal unless debugging.
12482 # Note that there is a small window in which the directory will not be cleaned:
12483 # after its creation but before its name has been assigned to `$tmp'.
12487 trap 'exit_status=$?
12488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12490 trap '{ (exit 1); exit 1; }' 1 2 13 15
12492 # Create a (secure) tmp directory for tmp files.
12495 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12496 test -n "$tmp" && test -d "$tmp"
12499 tmp
=.
/conf$$
-$RANDOM
12500 (umask 077 && mkdir
"$tmp")
12503 echo "$me: cannot create a temporary directory in ." >&2
12504 { (exit 1); exit 1; }
12508 # Set up the sed scripts for CONFIG_FILES section.
12511 # No need to generate the scripts if there are no CONFIG_FILES.
12512 # This happens for instance when ./config.status config.h
12513 if test -n "$CONFIG_FILES"; then
12520 for ac_last_try
in false false false false false
:; do
12521 cat >conf$
$subs.
sed <<_ACEOF
12522 SHELL!$SHELL$ac_delim
12523 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12524 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12525 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12526 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12527 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12528 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12529 exec_prefix!$exec_prefix$ac_delim
12530 prefix!$prefix$ac_delim
12531 program_transform_name!$program_transform_name$ac_delim
12532 bindir!$bindir$ac_delim
12533 sbindir!$sbindir$ac_delim
12534 libexecdir!$libexecdir$ac_delim
12535 datarootdir!$datarootdir$ac_delim
12536 datadir!$datadir$ac_delim
12537 sysconfdir!$sysconfdir$ac_delim
12538 sharedstatedir!$sharedstatedir$ac_delim
12539 localstatedir!$localstatedir$ac_delim
12540 includedir!$includedir$ac_delim
12541 oldincludedir!$oldincludedir$ac_delim
12542 docdir!$docdir$ac_delim
12543 infodir!$infodir$ac_delim
12544 htmldir!$htmldir$ac_delim
12545 dvidir!$dvidir$ac_delim
12546 pdfdir!$pdfdir$ac_delim
12547 psdir!$psdir$ac_delim
12548 libdir!$libdir$ac_delim
12549 localedir!$localedir$ac_delim
12550 mandir!$mandir$ac_delim
12551 DEFS!$DEFS$ac_delim
12552 ECHO_C!$ECHO_C$ac_delim
12553 ECHO_N!$ECHO_N$ac_delim
12554 ECHO_T!$ECHO_T$ac_delim
12555 LIBS!$LIBS$ac_delim
12556 build_alias!$build_alias$ac_delim
12557 host_alias!$host_alias$ac_delim
12558 target_alias!$target_alias$ac_delim
12559 build!$build$ac_delim
12560 build_cpu!$build_cpu$ac_delim
12561 build_vendor!$build_vendor$ac_delim
12562 build_os!$build_os$ac_delim
12563 host!$host$ac_delim
12564 host_cpu!$host_cpu$ac_delim
12565 host_vendor!$host_vendor$ac_delim
12566 host_os!$host_os$ac_delim
12567 SHLICC2!$SHLICC2$ac_delim
12569 CFLAGS!$CFLAGS$ac_delim
12570 LDFLAGS!$LDFLAGS$ac_delim
12571 CPPFLAGS!$CPPFLAGS$ac_delim
12572 ac_ct_CC!$ac_ct_CC$ac_delim
12573 EXEEXT!$EXEEXT$ac_delim
12574 OBJEXT!$OBJEXT$ac_delim
12576 GREP!$GREP$ac_delim
12577 EGREP!$EGREP$ac_delim
12578 LIBOBJS!$LIBOBJS$ac_delim
12579 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12580 RANLIB!$RANLIB$ac_delim
12581 V_CCOPT!$V_CCOPT$ac_delim
12582 V_DEFS!$V_DEFS$ac_delim
12583 V_GROUP!$V_GROUP$ac_delim
12584 V_INCLS!$V_INCLS$ac_delim
12585 V_PCAPDEP!$V_PCAPDEP$ac_delim
12586 LOCALSRC!$LOCALSRC$ac_delim
12587 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12588 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12591 INSTALL_DATA!$INSTALL_DATA$ac_delim
12592 LTLIBOBJS!$LTLIBOBJS$ac_delim
12595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12597 elif $ac_last_try; then
12598 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12599 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12600 { (exit 1); exit 1; }; }
12602 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12606 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12607 if test -n "$ac_eof"; then
12608 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12609 ac_eof
=`expr $ac_eof + 1`
12612 cat >>$CONFIG_STATUS <<_ACEOF
12613 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12618 s/^/s,@/; s/!/@,|#_!!_#|/
12621 s/'"$ac_delim"'$/,g/; t
12623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12624 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12625 rm -f conf$
$subs.
sed
12626 cat >>$CONFIG_STATUS <<_ACEOF
12633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12635 # trailing colons and then remove the whole line if VPATH becomes empty
12636 # (actually we leave an empty line to preserve line numbers).
12637 if test "x$srcdir" = x.
; then
12638 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12639 s/:*\$(srcdir):*/:/
12640 s/:*\${srcdir}:*/:/
12642 s/^\([^=]*=[ ]*\):*/\1/
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649 fi # test -n "$CONFIG_FILES"
12652 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
12655 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12657 case $ac_mode$ac_tag in
12659 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12660 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12661 { (exit 1); exit 1; }; };;
12662 :[FH
]-) ac_tag
=-:-;;
12663 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12680 -) ac_f
="$tmp/stdin";;
12681 *) # Look for the file first in the build tree, then in the source tree
12682 # (if the path is not absolute). The absolute path cannot be DOS-style,
12683 # because $ac_f cannot contain `:'.
12687 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12689 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12690 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12691 { (exit 1); exit 1; }; };;
12693 ac_file_inputs
="$ac_file_inputs $ac_f"
12696 # Let's still pretend it is `configure' which instantiates (i.e., don't
12697 # use $as_me), people would be surprised to read:
12698 # /* config.h. Generated by config.status. */
12699 configure_input
="Generated from "`IFS=:
12700 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12701 if test x
"$ac_file" != x-
; then
12702 configure_input
="$ac_file. $configure_input"
12703 { echo "$as_me:$LINENO: creating $ac_file" >&5
12704 echo "$as_me: creating $ac_file" >&6;}
12708 *:-:* |
*:-) cat >"$tmp/stdin";;
12713 ac_dir
=`$as_dirname -- "$ac_file" ||
12714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12715 X"$ac_file" : 'X\(//\)[^/]' \| \
12716 X"$ac_file" : 'X\(//\)$' \| \
12717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12723 /^X\(\/\/\)[^/].*/{
12738 -*) as_dir
=.
/$as_dir;;
12740 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12744 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12745 *) as_qdir
=$as_dir;;
12747 as_dirs
="'$as_qdir' $as_dirs"
12748 as_dir
=`$as_dirname -- "$as_dir" ||
12749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750 X"$as_dir" : 'X\(//\)[^/]' \| \
12751 X"$as_dir" : 'X\(//\)$' \| \
12752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12758 /^X\(\/\/\)[^/].*/{
12771 test -d "$as_dir" && break
12773 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12774 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12775 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12776 { (exit 1); exit 1; }; }; }
12780 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12782 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12783 # A ".." for each directory in $ac_dir_suffix.
12784 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12785 case $ac_top_builddir_sub in
12786 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12787 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12790 ac_abs_top_builddir
=$ac_pwd
12791 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12792 # for backward compatibility:
12793 ac_top_builddir
=$ac_top_build_prefix
12796 .
) # We are building in place.
12798 ac_top_srcdir
=$ac_top_builddir_sub
12799 ac_abs_top_srcdir
=$ac_pwd ;;
12800 [\\/]* | ?
:[\\/]* ) # Absolute name.
12801 ac_srcdir
=$srcdir$ac_dir_suffix;
12802 ac_top_srcdir
=$srcdir
12803 ac_abs_top_srcdir
=$srcdir ;;
12804 *) # Relative name.
12805 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12806 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12807 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12809 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12819 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12820 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12824 cat >>$CONFIG_STATUS <<\_ACEOF
12825 # If the template does not know about datarootdir, expand it.
12826 # FIXME: This hack should be removed a few years after 2.60.
12827 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12829 case `sed -n '/datarootdir/ {
12838 ' $ac_file_inputs` in
12839 *datarootdir
*) ac_datarootdir_seen
=yes;;
12840 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12841 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12842 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12844 cat >>$CONFIG_STATUS <<_ACEOF
12845 ac_datarootdir_hack='
12846 s&@datadir@&$datadir&g
12847 s&@docdir@&$docdir&g
12848 s&@infodir@&$infodir&g
12849 s&@localedir@&$localedir&g
12850 s&@mandir@&$mandir&g
12851 s&\\\${datarootdir}&$datarootdir&g' ;;
12855 # Neutralize VPATH when `$srcdir' = `.'.
12856 # Shell code in configure.ac might set extrasub.
12857 # FIXME: do we really want to maintain this feature?
12858 cat >>$CONFIG_STATUS <<_ACEOF
12862 cat >>$CONFIG_STATUS <<\_ACEOF
12864 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12865 s
&@configure_input@
&$configure_input&;t t
12866 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12867 s
&@srcdir@
&$ac_srcdir&;t t
12868 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12869 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12870 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12871 s
&@builddir@
&$ac_builddir&;t t
12872 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12873 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12874 s
&@INSTALL@
&$ac_INSTALL&;t t
12875 $ac_datarootdir_hack
12876 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
12878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12879 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12881 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12882 which seems to be undefined. Please make sure it is defined." >&5
12883 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12884 which seems to be undefined. Please make sure it is defined." >&2;}
12888 -) cat "$tmp/out"; rm -f "$tmp/out";;
12889 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12898 # Transform confdefs.h into a sed script `conftest.defines', that
12899 # substitutes the proper values into config.h.in to produce config.h.
12900 rm -f conftest.defines conftest.
tail
12901 # First, append a space to every undef/define line, to ease matching.
12902 echo 's/$/ /' >conftest.defines
12903 # Then, protect against being on the right side of a sed subst, or in
12904 # an unquoted here document, in config.status. If some macros were
12905 # called several times there might be several #defines for the same
12906 # symbol, which is useless. But do not sort them, since the last
12907 # AC_DEFINE must be honored.
12908 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12909 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12910 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12911 # PARAMS is the parameter list in the macro definition--in most cases, it's
12912 # just an empty string.
12913 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12914 ac_dB
='\\)[ (].*,\\1define\\2'
12922 s/^[ ]*#[ ]*define[ ][ ]*//
12927 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12928 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12929 ' >>conftest.defines
12931 # Remove the space that was appended to ease matching.
12932 # Then replace #undef with comments. This is necessary, for
12933 # example, in the case of _POSIX_SOURCE, which is predefined and required
12934 # on some systems where configure will not decide to define it.
12935 # (The regexp can be short, since the line contains either #define or #undef.)
12937 s,^[ #]*u.*,/* & */,' >>conftest.defines
12939 # Break up conftest.defines:
12940 ac_max_sed_lines
=50
12942 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12943 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12944 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12946 ac_in
='$ac_file_inputs'
12947 ac_out
='"$tmp/out1"'
12948 ac_nxt
='"$tmp/out2"'
12952 # Write a here document:
12953 cat >>$CONFIG_STATUS <<_ACEOF
12954 # First, check the format of the line:
12955 cat >"\$tmp/defines.sed" <<\\CEOF
12956 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12957 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12961 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12963 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12964 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12965 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12966 grep . conftest.
tail >/dev
/null ||
break
12967 rm -f conftest.defines
12968 mv conftest.
tail conftest.defines
12970 rm -f conftest.defines conftest.
tail
12972 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12973 cat >>$CONFIG_STATUS <<\_ACEOF
12974 if test x
"$ac_file" != x-
; then
12975 echo "/* $configure_input */" >"$tmp/config.h"
12976 cat "$ac_result" >>"$tmp/config.h"
12977 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12978 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12979 echo "$as_me: $ac_file is unchanged" >&6;}
12982 mv "$tmp/config.h" $ac_file
12985 echo "/* $configure_input */"
12991 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12992 echo "$as_me: executing $ac_file commands" >&6;}
12997 case $ac_file$ac_mode in
12998 "default-1":C
) if test -f .devel
; then
12999 echo timestamp
> stamp-h
13000 cat Makefile-devel-adds
>> Makefile
13008 { (exit 0); exit 0; }
13010 chmod +x
$CONFIG_STATUS
13011 ac_clean_files
=$ac_clean_files_save
13014 # configure is writing to config.log, and then calls config.status.
13015 # config.status does its own redirection, appending to config.log.
13016 # Unfortunately, on DOS this fails, as config.log is still kept open
13017 # by configure, so config.status won't be able to write to it; its
13018 # output is simply discarded. So we exec the FD to /dev/null,
13019 # effectively closing config.log, so it can be properly (re)opened and
13020 # appended to by config.status. When coming back to configure, we
13021 # need to make the FD available again.
13022 if test "$no_create" != yes; then
13024 ac_config_status_args
=
13025 test "$silent" = yes &&
13026 ac_config_status_args
="$ac_config_status_args --quiet"
13028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13031 # would make configure fail if this is the last instruction.
13032 $ac_cs_success ||
{ (exit 1); exit 1; }