2 # From configure.in Revision: 1.168 .
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="pcap.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
678 HAVE_LINUX_TPACKET_AUXDATA
700 PCAP_SUPPORT_NETFILTER
713 ac_precious_vars='build_alias
724 # Initialize some variables set by options.
726 ac_init_version=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name=s,x,x,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE}'
761 infodir='${datarootdir}/info'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
830 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_$ac_feature=no ;;
833 -docdir | --docdir | --docdi | --doc | --do)
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 -enable-* | --enable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=\$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
865 -help | --help | --hel | --he | -h)
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 htmldir=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 # Obsolete; use --without-fp.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 -psdir | --psdir | --psdi | --psd | --ps)
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1041 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_$ac_package=\$ac_optarg ;;
1049 -without-* | --without-*)
1050 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_$ac_package=no ;;
1059 # Obsolete; use --with-x.
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes=$ac_optarg ;;
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries=$ac_optarg ;;
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1082 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
1087 eval $ac_envvar=\$ac_optarg
1088 export $ac_envvar ;;
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1101 if test -n "$ac_prev"; then
1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1107 # Be sure to have absolute directory names.
1108 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val=\$$ac_var
1115 [\\/$]* | ?:[\\/]* ) continue;;
1116 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1127 target=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x; then
1131 if test "x$build_alias" = x; then
1132 cross_compiling=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143 test "$silent" = yes && exec 6>/dev/null
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1188 ac_srcdir_defaulted=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193 { (exit 1); exit 1; }; }
1195 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198 { (exit 1); exit 1; }; }
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1208 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1224 \`configure' configures this package to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1282 --build=BUILD configure for building on BUILD [guessed]
1283 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1284 --target=TARGET configure for building compilers for TARGET [HOST]
1288 if test -n "$ac_init_help"; then
1293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1295 --disable-largefile omit support for large files
1296 --disable-protochain disable \"protochain\" insn
1297 --enable-ipv6 build IPv6-capable version [default=yes, if
1298 getaddrinfo available]
1299 --enable-optimizer-dbg build optimizer debugging code
1300 --enable-yydebug build parser debugging code
1301 --disable-universal don't build universal on OS X
1302 --enable-shared build shared libraries [default=yes, if support
1304 --enable-bluetooth enable Bluetooth support [default=yes, if support
1306 --enable-canusb enable canusb support [default=yes, if support
1308 --enable-can enable CAN support [default=yes, if support
1312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314 --without-gcc don't use gcc
1315 --with-sita include SITA support
1316 --with-pcap=TYPE use packet capture TYPE
1317 --without-libnl disable libnl support [default=yes, on Linux, if
1319 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1320 default="yes" on BSD and Linux if present]
1321 --with-dag-includes=DIR Endace DAG include directory
1322 --with-dag-libraries=DIR
1323 Endace DAG library directory
1324 --with-septel[=DIR] include Septel support (located in directory DIR, if
1325 supplied). [default=yes, on Linux, if present]
1326 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1327 default="yes" on BSD and Linux if present]
1328 --with-snf-includes=DIR Myricom SNF include directory
1329 --with-snf-libraries=DIR
1330 Myricom SNF library directory
1331 --without-flex don't use flex
1332 --without-bison don't use bison
1334 Some influential environment variables:
1335 CC C compiler command
1336 CFLAGS C compiler flags
1337 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1338 nonstandard directory <lib dir>
1339 LIBS libraries to pass to the linker, e.g. -l<library>
1340 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341 you have headers in a nonstandard directory <include dir>
1344 Use these variables to override the choices made by `configure' or to help
1345 it to find libraries and programs with nonstandard names/locations.
1351 if test "$ac_init_help" = "recursive"; then
1352 # If there are subdirs, report their specific --help.
1353 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354 test -d "$ac_dir" || continue
1358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1361 # A ".." for each directory in $ac_dir_suffix.
1362 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1363 case $ac_top_builddir_sub in
1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1368 ac_abs_top_builddir=$ac_pwd
1369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370 # for backward compatibility:
1371 ac_top_builddir=$ac_top_build_prefix
1374 .) # We are building in place.
1376 ac_top_srcdir=$ac_top_builddir_sub
1377 ac_abs_top_srcdir=$ac_pwd ;;
1378 [\\/]* | ?:[\\/]* ) # Absolute name.
1379 ac_srcdir=$srcdir$ac_dir_suffix;
1380 ac_top_srcdir=$srcdir
1381 ac_abs_top_srcdir=$srcdir ;;
1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384 ac_top_srcdir=$ac_top_build_prefix$srcdir
1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1389 cd "$ac_dir" || { ac_status=$?; continue; }
1390 # Check for guested configure.
1391 if test -f "$ac_srcdir/configure.gnu"; then
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then
1396 $SHELL "$ac_srcdir/configure" --help=recursive
1398 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1400 cd "$ac_pwd" || { ac_status=$?; break; }
1404 test -n "$ac_init_help" && exit $ac_status
1405 if $ac_init_version; then
1408 generated by GNU Autoconf 2.61
1410 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1411 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1412 This configure script is free software; the Free Software Foundation
1413 gives unlimited permission to copy, distribute and modify it.
1417 cat >config.log <<_ACEOF
1418 This file contains any messages produced by compilers while
1419 running configure, to aid debugging if configure makes a mistake.
1421 It was created by $as_me, which was
1422 generated by GNU Autoconf 2.61. Invocation command line was
1434 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1440 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1443 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1444 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1445 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1447 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1448 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1449 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 test -z "$as_dir" && as_dir=.
1458 echo "PATH: $as_dir"
1474 # Keep a trace of the command line.
1475 # Strip out --no-create and --no-recursion so they do not pile up.
1476 # Strip out --silent because we don't want to record it for future runs.
1477 # Also quote any args containing shell meta-characters.
1478 # Make two passes to allow for proper duplicate-argument suppression.
1482 ac_must_keep_next=false
1488 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490 | -silent | --silent | --silen | --sile | --sil)
1493 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1498 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1499 if test $ac_must_keep_next = true; then
1500 ac_must_keep_next=false # Got value, back to normal.
1503 *=* | --config-cache | -C | -disable-* | --disable-* \
1504 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506 | -with-* | --with-* | -without-* | --without-* | --x)
1507 case "$ac_configure_args0 " in
1508 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1511 -* ) ac_must_keep_next=true ;;
1514 ac_configure_args="$ac_configure_args '$ac_arg'"
1519 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1520 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1522 # When interrupted or exit'd, cleanup temporary files, and complete
1523 # config.log. We remove comments because anyway the quotes in there
1524 # would cause problems or look ugly.
1525 # WARNING: Use '\'' to represent an apostrophe within the trap.
1526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527 trap 'exit_status=$?
1528 # Save into config.log some information that might help in debugging.
1533 ## ---------------- ##
1534 ## Cache variables. ##
1535 ## ---------------- ##
1538 # The following way of writing the cache mishandles newlines in values,
1540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541 eval ac_val=\$$ac_var
1545 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1549 _ | IFS | as_nl) ;; #(
1550 *) $as_unset $ac_var ;;
1555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556 *${as_nl}ac_space=\ *)
1558 "s/'\''/'\''\\\\'\'''\''/g;
1559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1570 ## ----------------- ##
1571 ## Output variables. ##
1572 ## ----------------- ##
1575 for ac_var in $ac_subst_vars
1577 eval ac_val=\$$ac_var
1579 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1581 echo "$ac_var='\''$ac_val'\''"
1585 if test -n "$ac_subst_files"; then
1587 ## ------------------- ##
1588 ## File substitutions. ##
1589 ## ------------------- ##
1592 for ac_var in $ac_subst_files
1594 eval ac_val=\$$ac_var
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 echo "$ac_var='\''$ac_val'\''"
1603 if test -s confdefs.h; then
1613 test "$ac_signal" != 0 &&
1614 echo "$as_me: caught signal $ac_signal"
1615 echo "$as_me: exit $exit_status"
1617 rm -f core *.core core.conftest.* &&
1618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1621 for ac_signal in 1 2 13 15; do
1622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1627 rm -f -r conftest* confdefs.h
1629 # Predefined preprocessor variables.
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_NAME "$PACKAGE_NAME"
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_STRING "$PACKAGE_STRING"
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1656 # Let the site file select an alternate cache file if it wants to.
1657 # Prefer explicitly selected file to automatically selected ones.
1658 if test -n "$CONFIG_SITE"; then
1659 set x "$CONFIG_SITE"
1660 elif test "x$prefix" != xNONE; then
1661 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1663 set x "$ac_default_prefix/share/config.site" \
1664 "$ac_default_prefix/etc/config.site"
1669 if test -r "$ac_site_file"; then
1670 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1671 echo "$as_me: loading site script $ac_site_file" >&6;}
1672 sed 's/^/| /' "$ac_site_file" >&5
1677 if test -r "$cache_file"; then
1678 # Some versions of bash will fail to source /dev/null (special
1679 # files actually), so we avoid doing that.
1680 if test -f "$cache_file"; then
1681 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1682 echo "$as_me: loading cache $cache_file" >&6;}
1684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1685 *) . "./$cache_file";;
1689 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1690 echo "$as_me: creating cache $cache_file" >&6;}
1694 # Check that the precious variables saved in the cache have kept the same
1696 ac_cache_corrupted=false
1697 for ac_var in $ac_precious_vars; do
1698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1699 eval ac_new_set=\$ac_env_${ac_var}_set
1700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1701 eval ac_new_val=\$ac_env_${ac_var}_value
1702 case $ac_old_set,$ac_new_set in
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1708 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1709 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1710 ac_cache_corrupted=: ;;
1713 if test "x$ac_old_val" != "x$ac_new_val"; then
1714 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1715 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1716 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1717 echo "$as_me: former value: $ac_old_val" >&2;}
1718 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1719 echo "$as_me: current value: $ac_new_val" >&2;}
1720 ac_cache_corrupted=:
1723 # Pass precious variables to config.status.
1724 if test "$ac_new_set" = set; then
1726 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 *) ac_arg=$ac_var=$ac_new_val ;;
1729 case " $ac_configure_args " in
1730 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1731 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1735 if $ac_cache_corrupted; then
1736 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1737 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1738 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1739 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1740 { (exit 1); exit 1; }; }
1760 ac_cpp='$CPP $CPPFLAGS'
1761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1769 if test -f "$ac_dir/install-sh"; then
1771 ac_install_sh="$ac_aux_dir/install-sh -c"
1773 elif test -f "$ac_dir/install.sh"; then
1775 ac_install_sh="$ac_aux_dir/install.sh -c"
1777 elif test -f "$ac_dir/shtool"; then
1779 ac_install_sh="$ac_aux_dir/shtool install -c"
1783 if test -z "$ac_aux_dir"; then
1784 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1785 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1786 { (exit 1); exit 1; }; }
1789 # These three variables are undocumented and unsupported,
1790 # and are intended to be withdrawn in a future Autoconf release.
1791 # They can cause serious problems if a builder's source tree is in a directory
1792 # whose full name contains unusual characters.
1793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1798 # Make sure we can run config.sub.
1799 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1800 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1801 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1802 { (exit 1); exit 1; }; }
1804 { echo "$as_me:$LINENO: checking build system type" >&5
1805 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1806 if test "${ac_cv_build+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 ac_build_alias=$build_alias
1810 test "x$ac_build_alias" = x &&
1811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1812 test "x$ac_build_alias" = x &&
1813 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1814 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1815 { (exit 1); exit 1; }; }
1816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1817 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1818 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1819 { (exit 1); exit 1; }; }
1822 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1823 echo "${ECHO_T}$ac_cv_build" >&6; }
1824 case $ac_cv_build in
1826 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1827 echo "$as_me: error: invalid value of canonical build" >&2;}
1828 { (exit 1); exit 1; }; };;
1831 ac_save_IFS=$IFS; IFS='-'
1837 # Remember, the first character of IFS is used to create $*,
1838 # except with old shells:
1841 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1844 { echo "$as_me:$LINENO: checking host system type" >&5
1845 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1846 if test "${ac_cv_host+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test "x$host_alias" = x; then
1850 ac_cv_host=$ac_cv_build
1852 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1853 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1855 { (exit 1); exit 1; }; }
1859 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1860 echo "${ECHO_T}$ac_cv_host" >&6; }
1863 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1864 echo "$as_me: error: invalid value of canonical host" >&2;}
1865 { (exit 1); exit 1; }; };;
1868 ac_save_IFS=$IFS; IFS='-'
1874 # Remember, the first character of IFS is used to create $*,
1875 # except with old shells:
1878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1881 { echo "$as_me:$LINENO: checking target system type" >&5
1882 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1883 if test "${ac_cv_target+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test "x$target_alias" = x; then
1887 ac_cv_target=$ac_cv_host
1889 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1890 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1891 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1892 { (exit 1); exit 1; }; }
1896 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1897 echo "${ECHO_T}$ac_cv_target" >&6; }
1898 case $ac_cv_target in
1900 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1901 echo "$as_me: error: invalid value of canonical target" >&2;}
1902 { (exit 1); exit 1; }; };;
1904 target=$ac_cv_target
1905 ac_save_IFS=$IFS; IFS='-'
1911 # Remember, the first character of IFS is used to create $*,
1912 # except with old shells:
1915 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1918 # The aliases save the names the user supplied, while $host etc.
1919 # will get canonicalized.
1920 test -n "$target_alias" &&
1921 test "$program_prefix$program_suffix$program_transform_name" = \
1923 program_prefix=${target_alias}-
1931 # Check whether --with-gcc was given.
1932 if test "${with_gcc+set}" = set; then
1938 if test "${srcdir}" != "." ; then
1939 V_INCLS="-I\$(srcdir)"
1941 if test "${CFLAGS+set}" = set; then
1942 LBL_CFLAGS="$CFLAGS"
1944 if test -z "$CC" ; then
1948 # Extract the first word of "shlicc2", so it can be a program name with args.
1949 set dummy shlicc2; ac_word=$2
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$SHLICC2"; then
1956 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965 ac_cv_prog_SHLICC2="yes"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1976 SHLICC2=$ac_cv_prog_SHLICC2
1977 if test -n "$SHLICC2"; then
1978 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1979 echo "${ECHO_T}$SHLICC2" >&6; }
1981 { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1986 if test $SHLICC2 = yes ; then
1993 if test -z "$CC" -a "$with_gcc" = no ; then
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 if test -n "$CC"; then
2033 { echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6; }
2036 { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2042 if test -z "$ac_cv_prog_CC"; then
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2080 if test "x$ac_ct_CC" = x; then
2083 case $cross_compiling:$ac_tool_warned in
2085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2086 whose name does not start with the host triplet. If you think this
2087 configuration is useful to you, please write to autoconf@gnu.org." >&5
2088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2089 whose name does not start with the host triplet. If you think this
2090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2091 ac_tool_warned=yes ;;
2099 if test -z "$CC"; then
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}cc; ac_word=$2
2103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118 ac_cv_prog_CC="${ac_tool_prefix}cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test -n "$CC"; then
2130 { echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6; }
2133 { echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6; }
2140 if test -z "$CC"; then
2141 # Extract the first word of "cc", so it can be a program name with args.
2142 set dummy cc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2160 ac_prog_rejected=yes
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy $ac_cv_prog_CC
2175 if test $# != 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2186 if test -n "$CC"; then
2187 { echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6; }
2190 { echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6; }
2196 if test -z "$CC"; then
2197 if test -n "$ac_tool_prefix"; then
2198 for ac_prog in cl.exe
2200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$CC"; then
2229 { echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6; }
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$CC" && break
2240 if test -z "$CC"; then
2242 for ac_prog in cl.exe
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$ac_ct_CC"; then
2252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_prog_ac_ct_CC="$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272 if test -n "$ac_ct_CC"; then
2273 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274 echo "${ECHO_T}$ac_ct_CC" >&6; }
2276 { echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6; }
2281 test -n "$ac_ct_CC" && break
2284 if test "x$ac_ct_CC" = x; then
2287 case $cross_compiling:$ac_tool_warned in
2289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2290 whose name does not start with the host triplet. If you think this
2291 configuration is useful to you, please write to autoconf@gnu.org." >&5
2292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet. If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2295 ac_tool_warned=yes ;;
2304 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }
2310 # Provide some information about the compiler.
2311 echo "$as_me:$LINENO: checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (ac_try="$ac_compiler --version >&5"
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_compiler --version >&5") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2323 { (ac_try="$ac_compiler -v >&5"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compiler -v >&5") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333 { (ac_try="$ac_compiler -V >&5"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_compiler -V >&5") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2359 ac_clean_files_save=$ac_clean_files
2360 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2361 # Try to create an executable without -o first, disregard a.out.
2362 # It will help us diagnose broken compilers, and finding out an intuition
2364 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2365 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2366 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2368 # List of possible output files, starting from the most likely.
2369 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2370 # only as a last resort. b.out is created by i960 compilers.
2371 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2373 # The IRIX 6 linker writes into existing files which may not be
2374 # executable, retaining their permissions. Remove them first so a
2375 # subsequent execution test works.
2377 for ac_file in $ac_files
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2381 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2386 if { (ac_try="$ac_link_default"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_link_default") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2397 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2398 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2399 # so that the user can short-circuit this test for compilers unknown to
2401 for ac_file in $ac_files ''
2403 test -f "$ac_file" || continue
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2408 # We found the default executable, but exeext='' is most
2412 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 # We set ac_cv_exeext here because the later test for it is not
2417 # safe: cross compilers may not add the suffix if given an `-o'
2418 # argument, so we may need to know it at that point already.
2419 # Even if this section looks crufty: it has the advantage of
2426 test "$ac_cv_exeext" = no && ac_cv_exeext=
2432 { echo "$as_me:$LINENO: result: $ac_file" >&5
2433 echo "${ECHO_T}$ac_file" >&6; }
2434 if test -z "$ac_file"; then
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2438 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: C compiler cannot create executables
2441 See \`config.log' for more details." >&2;}
2442 { (exit 77); exit 77; }; }
2445 ac_exeext=$ac_cv_exeext
2447 # Check that the compiler produces executables we can run. If not, either
2448 # the compiler is broken, or we cross compile.
2449 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454 if { ac_try='./$ac_file'
2455 { (case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_try") 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 if test "$cross_compiling" = maybe; then
2469 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2470 If you meant to cross compile, use \`--host'.
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2479 { echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6; }
2482 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2483 ac_clean_files=$ac_clean_files_save
2484 # Check that the compiler produces executables we can run. If not, either
2485 # the compiler is broken, or we cross compile.
2486 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2487 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2488 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2489 echo "${ECHO_T}$cross_compiling" >&6; }
2491 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2492 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2493 if { (ac_try="$ac_link"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_link") 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2505 # work properly (i.e., refer to `conftest.exe'), while it won't with
2507 for ac_file in conftest.exe conftest conftest.*; do
2508 test -f "$ac_file" || continue
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2517 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2524 rm -f conftest$ac_cv_exeext
2525 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2528 rm -f conftest.$ac_ext
2529 EXEEXT=$ac_cv_exeext
2531 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2533 if test "${ac_cv_objext+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 cat >conftest.$ac_ext <<_ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2551 rm -f conftest.o conftest.obj
2552 if { (ac_try="$ac_compile"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compile") 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; then
2562 for ac_file in conftest.o conftest.obj conftest.*; do
2563 test -f "$ac_file" || continue;
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2577 See \`config.log' for more details." >&2;}
2578 { (exit 1); exit 1; }; }
2581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2583 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2584 echo "${ECHO_T}$ac_cv_objext" >&6; }
2585 OBJEXT=$ac_cv_objext
2587 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 cat >conftest.$ac_ext <<_ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_compile") 2>conftest.er1
2619 grep -v '^ *+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } && {
2624 test -z "$ac_c_werror_flag" ||
2625 test ! -s conftest.err
2626 } && test -s conftest.$ac_objext; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2639 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2641 GCC=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CFLAGS=${CFLAGS+set}
2643 ac_save_CFLAGS=$CFLAGS
2644 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2645 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_cc_g+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 ac_save_c_werror_flag=$ac_c_werror_flag
2650 ac_c_werror_flag=yes
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compile") 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest.$ac_objext; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } && {
2720 test -z "$ac_c_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest.$ac_objext; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compile") 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 ac_c_werror_flag=$ac_save_c_werror_flag
2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2781 if test "$ac_test_CFLAGS" = set; then
2782 CFLAGS=$ac_save_CFLAGS
2783 elif test $ac_cv_prog_cc_g = yes; then
2784 if test "$GCC" = yes; then
2790 if test "$GCC" = yes; then
2796 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2797 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2798 if test "${ac_cv_prog_cc_c89+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 ac_cv_prog_cc_c89=no
2803 cat >conftest.$ac_ext <<_ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2811 #include <sys/types.h>
2812 #include <sys/stat.h>
2813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2814 struct buf { int x; };
2815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2816 static char *e (p, i)
2822 static char *f (char * (*g) (char **, int), char **p, ...)
2827 s = g (p, va_arg (v,int));
2832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2833 function prototypes and stuff, but not '\xHH' hex character constants.
2834 These don't provoke an error unfortunately, instead are silently treated
2835 as 'x'. The following induces an error, until -std is added to get
2836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2837 array size at least. It's necessary to write '\x00'==0 to get something
2838 that's true only with -std. */
2839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2842 inside strings and character constants. */
2844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2846 int test (int i, double x);
2847 struct s1 {int (*f) (int a);};
2848 struct s2 {int (*f) (double a);};
2849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2863 CC="$ac_save_CC $ac_arg"
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compile") 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } && {
2878 test -z "$ac_c_werror_flag" ||
2879 test ! -s conftest.err
2880 } && test -s conftest.$ac_objext; then
2881 ac_cv_prog_cc_c89=$ac_arg
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2889 rm -f core conftest.err conftest.$ac_objext
2890 test "x$ac_cv_prog_cc_c89" != "xno" && break
2892 rm -f conftest.$ac_ext
2897 case "x$ac_cv_prog_cc_c89" in
2899 { echo "$as_me:$LINENO: result: none needed" >&5
2900 echo "${ECHO_T}none needed" >&6; } ;;
2902 { echo "$as_me:$LINENO: result: unsupported" >&5
2903 echo "${ECHO_T}unsupported" >&6; } ;;
2905 CC="$CC $ac_cv_prog_cc_c89"
2906 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2907 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test "$GCC" = yes ; then
2922 if test "$SHLICC2" = yes ; then
2923 ac_cv_lbl_gcc_vers=2
2926 { echo "$as_me:$LINENO: checking gcc version" >&5
2927 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2928 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2932 sed -e '/^gcc version /!d' \
2933 -e 's/^gcc version //' \
2934 -e 's/ .*//' -e 's/^[^0-9]*//' \
2938 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2939 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2940 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2945 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2946 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2947 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <sys/types.h>
2961 int frob(int, char *)
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && {
2980 test -z "$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 } && test -s conftest.$ac_objext; then
2983 ac_cv_lbl_cc_ansi_prototypes=yes
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 ac_cv_lbl_cc_ansi_prototypes=no
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2995 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2996 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3000 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3001 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
3002 savedcflags="$CFLAGS"
3003 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3004 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <sys/types.h>
3017 int frob(int, char *)
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
3039 ac_cv_lbl_cc_hpux_cc_aa=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 ac_cv_lbl_cc_hpux_cc_aa=no
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3051 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3052 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3053 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3054 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3055 { (exit 1); exit 1; }; }
3057 CFLAGS="$savedcflags"
3058 V_CCOPT="-Aa $V_CCOPT"
3060 cat >>confdefs.h <<\_ACEOF
3061 #define _HPUX_SOURCE 1
3067 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3068 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3069 savedcflags="$CFLAGS"
3071 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 #include <sys/types.h>
3084 int frob(int, char *)
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3106 ac_cv_lbl_cc_osf1_cc_std1=yes
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 ac_cv_lbl_cc_osf1_cc_std1=no
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3118 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3119 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3120 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3121 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3122 { (exit 1); exit 1; }; }
3124 CFLAGS="$savedcflags"
3125 V_CCOPT="-std1 $V_CCOPT"
3129 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3130 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3131 { (exit 1); exit 1; }; }
3135 V_INCLS="$V_INCLS -I/usr/local/include"
3136 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3141 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3146 # Presumed to be DEC OSF/1, Digital UNIX, or
3149 V_CCOPT="$V_CCOPT -g3"
3153 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3154 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3155 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <sys/types.h>
3168 struct a { int b; };
3169 void c(const struct a *)
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_cv_lbl_cc_const_proto=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 ac_cv_lbl_cc_const_proto=no
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3204 if test $ac_cv_lbl_cc_const_proto = no ; then
3206 cat >>confdefs.h <<\_ACEOF
3216 if test "$GCC" = yes ; then
3218 # On platforms where we build a shared library:
3220 # add options to generate position-independent code,
3221 # if necessary (it's the default in AIX and Darwin/OS X);
3223 # define option to set the soname of the shared library,
3224 # if the OS supports that;
3226 # add options to specify, at link time, a directory to
3227 # add to the run-time search path, if that's necessary.
3229 V_SHLIB_CMD="\$(CC)"
3230 V_SHLIB_OPT="-shared"
3236 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3238 # Platforms where the linker is the GNU linker
3239 # or accepts command-line arguments like
3240 # those the GNU linker accepts.
3242 # Some instruction sets require -fPIC on some
3243 # operating systems. Check for them. If you
3244 # have a combination that requires it, add it
3259 V_CCOPT="$V_CCOPT $PIC_OPT"
3260 V_SONAME_OPT="-Wl,-soname,"
3261 V_RPATH_OPT="-Wl,-rpath,"
3265 V_CCOPT="$V_CCOPT -fpic"
3267 # XXX - this assumes GCC is using the HP linker,
3268 # rather than the GNU linker, and that the "+h"
3269 # option is used on all HP-UX platforms, both .sl
3272 V_SONAME_OPT="-Wl,+h,"
3274 # By default, directories specifed with -L
3275 # are added to the run-time search path, so
3276 # we don't add them in pcap-config.
3281 V_CCOPT="$V_CCOPT -fpic"
3283 # XXX - this assumes GCC is using the Sun linker,
3284 # rather than the GNU linker.
3286 V_SONAME_OPT="-Wl,-h,"
3287 V_RPATH_OPT="-Wl,-R,"
3292 # Set the appropriate compiler flags and, on platforms
3293 # where we build a shared library:
3295 # add options to generate position-independent code,
3296 # if necessary (it's the default in Darwin/OS X);
3298 # if we generate ".so" shared libraries, define the
3299 # appropriate options for building the shared library;
3301 # add options to specify, at link time, a directory to
3302 # add to the run-time search path, if that's necessary.
3304 # Note: spaces after V_SONAME_OPT are significant; on
3305 # some platforms the soname is passed with a GCC-like
3306 # "-Wl,-soname,{soname}" option, with the soname part
3307 # of the option, while on other platforms the C compiler
3308 # driver takes it as a regular option with the soname
3309 # following the option. The same applies to V_RPATH_OPT.
3314 V_SHLIB_CMD="\$(CC)"
3315 V_SHLIB_OPT="-G -bnoentry -bexpall"
3318 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3322 V_CCOPT="$V_CCOPT -fpic"
3323 V_SHLIB_CMD="\$(CC)"
3324 V_SHLIB_OPT="-shared"
3325 V_SONAME_OPT="-Wl,-soname,"
3326 V_RPATH_OPT="-Wl,-rpath,"
3330 V_CCOPT="$V_CCOPT +z"
3331 V_SHLIB_CMD="\$(LD)"
3335 # By default, directories specifed with -L
3336 # are added to the run-time search path, so
3337 # we don't add them in pcap-config.
3343 # Presumed to be DEC OSF/1, Digital UNIX, or
3346 V_SHLIB_CMD="\$(CC)"
3347 V_SHLIB_OPT="-shared"
3348 V_SONAME_OPT="-soname "
3349 V_RPATH_OPT="-rpath "
3353 V_CCOPT="$V_CCOPT -Kpic"
3354 V_SHLIB_CMD="\$(CC)"
3362 { echo "$as_me:$LINENO: checking for inline" >&5
3363 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3364 save_CFLAGS="$CFLAGS"
3366 if test "${ac_cv_lbl_inline+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 for ac_lbl_inline in inline __inline__ __inline
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #define inline $ac_lbl_inline
3381 static inline struct iltest *foo(void);
3387 static inline struct iltest *
3390 static struct iltest xxx;
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_lbl_cc_inline=yes
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 if test "$ac_lbl_cc_inline" = yes ; then
3432 if test "$ac_lbl_cc_inline" = yes ; then
3433 ac_cv_lbl_inline=$ac_lbl_inline
3437 CFLAGS="$save_CFLAGS"
3438 if test ! -z "$ac_cv_lbl_inline" ; then
3439 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3440 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3442 { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3446 cat >>confdefs.h <<_ACEOF
3447 #define inline $ac_cv_lbl_inline
3451 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3452 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3453 if test "${ac_cv___attribute__+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3466 static void foo(void) __attribute__ ((noreturn));
3475 main(int argc, char **argv)
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv___attribute__=yes
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 ac_cv___attribute__=no
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 if test "$ac_cv___attribute__" = "yes"; then
3511 cat >>confdefs.h <<\_ACEOF
3512 #define HAVE___ATTRIBUTE__ 1
3515 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3517 V_DEFS="$V_DEFS -D_U_=\"\""
3519 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3520 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3534 if test -z "$CPP"; then
3535 if test "${ac_cv_prog_CPP+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 # Double quotes because CPP needs to be expanded
3539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 # include <limits.h>
3559 # include <assert.h>
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null && {
3576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3588 rm -f conftest.err conftest.$ac_ext
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null && {
3613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3616 # Broken: success on invalid input.
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Passes both tests.
3627 rm -f conftest.err conftest.$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3644 { echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6; }
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3662 # include <limits.h>
3664 # include <assert.h>
3668 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null && {
3681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 # Broken: fails on valid input.
3693 rm -f conftest.err conftest.$ac_ext
3695 # OK, works on sane cases. Now check whether nonexistent headers
3696 # can be detected and how.
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <ac_nonexistent.h>
3705 if { (ac_try="$ac_cpp conftest.$ac_ext"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null && {
3718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719 test ! -s conftest.err
3721 # Broken: success on invalid input.
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 # Passes both tests.
3732 rm -f conftest.err conftest.$ac_ext
3735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736 rm -f conftest.err conftest.$ac_ext
3737 if $ac_preproc_ok; then
3740 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3755 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 # Extract the first word of "grep ggrep" to use in msg output
3760 if test -z "$GREP"; then
3761 set dummy grep ggrep; ac_prog_name=$2
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in grep ggrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3776 # Check for GNU ac_path_GREP and select it if it is found.
3777 # Check for GNU $ac_path_GREP
3778 case `"$ac_path_GREP" --version 2>&1` in
3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 echo 'GREP' >> "conftest.nl"
3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 ac_count=`expr $ac_count + 1`
3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_GREP="$ac_path_GREP"
3796 ac_path_GREP_max=$ac_count
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805 $ac_path_GREP_found && break 3
3815 GREP="$ac_cv_path_GREP"
3816 if test -z "$GREP"; then
3817 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819 { (exit 1); exit 1; }; }
3823 ac_cv_path_GREP=$GREP
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3830 GREP="$ac_cv_path_GREP"
3833 { echo "$as_me:$LINENO: checking for egrep" >&5
3834 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3835 if test "${ac_cv_path_EGREP+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3839 then ac_cv_path_EGREP="$GREP -E"
3841 # Extract the first word of "egrep" to use in msg output
3842 if test -z "$EGREP"; then
3843 set dummy egrep; ac_prog_name=$2
3844 if test "${ac_cv_path_EGREP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_path_EGREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in egrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3857 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3858 # Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 ac_count=`expr $ac_count + 1`
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP="$ac_path_EGREP"
3878 ac_path_EGREP_max=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887 $ac_path_EGREP_found && break 3
3897 EGREP="$ac_cv_path_EGREP"
3898 if test -z "$EGREP"; then
3899 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3900 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3901 { (exit 1); exit 1; }; }
3905 ac_cv_path_EGREP=$EGREP
3911 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3912 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3913 EGREP="$ac_cv_path_EGREP"
3916 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3918 if test "${ac_cv_header_stdc+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3957 ac_cv_header_stdc=yes
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ac_cv_header_stdc=no
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 if test $ac_cv_header_stdc = yes; then
3968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3979 $EGREP "memchr" >/dev/null 2>&1; then
3982 ac_cv_header_stdc=no
3988 if test $ac_cv_header_stdc = yes; then
3989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000 $EGREP "free" >/dev/null 2>&1; then
4003 ac_cv_header_stdc=no
4009 if test $ac_cv_header_stdc = yes; then
4010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4011 if test "$cross_compiling" = yes; then
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4022 #if ((' ' & 0x0FF) == 0x020)
4023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4026 # define ISLOWER(c) \
4027 (('a' <= (c) && (c) <= 'i') \
4028 || ('j' <= (c) && (c) <= 'r') \
4029 || ('s' <= (c) && (c) <= 'z'))
4030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4038 for (i = 0; i < 256; i++)
4039 if (XOR (islower (i), ISLOWER (i))
4040 || toupper (i) != TOUPPER (i))
4045 rm -f conftest$ac_exeext
4046 if { (ac_try="$ac_link"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_link") 2>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 echo "$as_me: program exited with status $ac_status" >&5
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4072 ac_cv_header_stdc=no
4074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4081 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4082 if test $ac_cv_header_stdc = yes; then
4084 cat >>confdefs.h <<\_ACEOF
4085 #define STDC_HEADERS 1
4090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4100 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4101 inttypes.h stdint.h unistd.h
4103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 $ac_includes_default
4117 #include <$ac_header>
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_compile") 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && {
4133 test -z "$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 } && test -s conftest.$ac_objext; then
4136 eval "$as_ac_Header=yes"
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 eval "$as_ac_Header=no"
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_res=`eval echo '${'$as_ac_Header'}'`
4147 { echo "$as_me:$LINENO: result: $ac_res" >&5
4148 echo "${ECHO_T}$ac_res" >&6; }
4149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150 cat >>confdefs.h <<_ACEOF
4151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160 for ac_header in sys/bitypes.h
4162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 ac_res=`eval echo '${'$as_ac_Header'}'`
4170 { echo "$as_me:$LINENO: result: $ac_res" >&5
4171 echo "${ECHO_T}$ac_res" >&6; }
4173 # Is the header compilable?
4174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4183 #include <$ac_header>
4185 rm -f conftest.$ac_objext
4186 if { (ac_try="$ac_compile"
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_compile") 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
4201 } && test -s conftest.$ac_objext; then
4202 ac_header_compiler=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_header_compiler=no
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4212 echo "${ECHO_T}$ac_header_compiler" >&6; }
4214 # Is the header present?
4215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <$ac_header>
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null && {
4238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239 test ! -s conftest.err
4241 ac_header_preproc=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_header_preproc=no
4249 rm -f conftest.err conftest.$ac_ext
4250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4251 echo "${ECHO_T}$ac_header_preproc" >&6; }
4253 # So? What about this header?
4254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4260 ac_header_preproc=yes
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 eval "$as_ac_Header=\$ac_header_preproc"
4285 ac_res=`eval echo '${'$as_ac_Header'}'`
4286 { echo "$as_me:$LINENO: result: $ac_res" >&5
4287 echo "${ECHO_T}$ac_res" >&6; }
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4300 { echo "$as_me:$LINENO: checking for int8_t" >&5
4301 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4302 if test "${ac_cv_type_int8_t+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 #ifdef HAVE_SYS_BITYPES_H
4313 #include <sys/bitypes.h>
4316 typedef int8_t ac__type_new_;
4320 if ((ac__type_new_ *) 0)
4322 if (sizeof (ac__type_new_))
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_compile") 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && {
4342 test -z "$ac_c_werror_flag" ||
4343 test ! -s conftest.err
4344 } && test -s conftest.$ac_objext; then
4345 ac_cv_type_int8_t=yes
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 ac_cv_type_int8_t=no
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4356 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4357 if test $ac_cv_type_int8_t = yes; then
4361 cat >>confdefs.h <<\_ACEOF
4362 #define int8_t signed char
4367 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4368 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4369 if test "${ac_cv_type_u_int8_t+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379 #ifdef HAVE_SYS_BITYPES_H
4380 #include <sys/bitypes.h>
4383 typedef u_int8_t ac__type_new_;
4387 if ((ac__type_new_ *) 0)
4389 if (sizeof (ac__type_new_))
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 ac_cv_type_u_int8_t=yes
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 ac_cv_type_u_int8_t=no
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4423 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4424 if test $ac_cv_type_u_int8_t = yes; then
4428 cat >>confdefs.h <<\_ACEOF
4429 #define u_int8_t unsigned char
4434 { echo "$as_me:$LINENO: checking for int16_t" >&5
4435 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4436 if test "${ac_cv_type_int16_t+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4446 typedef int16_t ac__type_new_;
4450 if ((ac__type_new_ *) 0)
4452 if (sizeof (ac__type_new_))
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_type_int16_t=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_type_int16_t=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4486 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4487 if test $ac_cv_type_int16_t = yes; then
4491 cat >>confdefs.h <<\_ACEOF
4492 #define int16_t short
4495 $ac_includes_default
4496 #ifdef HAVE_SYS_BITYPES_H
4497 #include <sys/bitypes.h>
4501 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4502 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4503 if test "${ac_cv_type_u_int16_t+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #ifdef HAVE_SYS_BITYPES_H
4514 #include <sys/bitypes.h>
4517 typedef u_int16_t ac__type_new_;
4521 if ((ac__type_new_ *) 0)
4523 if (sizeof (ac__type_new_))
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_compile") 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } && {
4543 test -z "$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 } && test -s conftest.$ac_objext; then
4546 ac_cv_type_u_int16_t=yes
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_cv_type_u_int16_t=no
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4557 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4558 if test $ac_cv_type_u_int16_t = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define u_int16_t unsigned short
4568 { echo "$as_me:$LINENO: checking for int32_t" >&5
4569 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4570 if test "${ac_cv_type_int32_t+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4580 #ifdef HAVE_SYS_BITYPES_H
4581 #include <sys/bitypes.h>
4584 typedef int32_t ac__type_new_;
4588 if ((ac__type_new_ *) 0)
4590 if (sizeof (ac__type_new_))
4596 rm -f conftest.$ac_objext
4597 if { (ac_try="$ac_compile"
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_compile") 2>conftest.er1
4605 grep -v '^ *+' conftest.er1 >conftest.err
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest.$ac_objext; then
4613 ac_cv_type_int32_t=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_type_int32_t=no
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4624 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4625 if test $ac_cv_type_int32_t = yes; then
4629 cat >>confdefs.h <<\_ACEOF
4635 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4636 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4637 if test "${ac_cv_type_u_int32_t+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 #ifdef HAVE_SYS_BITYPES_H
4648 #include <sys/bitypes.h>
4651 typedef u_int32_t ac__type_new_;
4655 if ((ac__type_new_ *) 0)
4657 if (sizeof (ac__type_new_))
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_compile") 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && {
4677 test -z "$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 } && test -s conftest.$ac_objext; then
4680 ac_cv_type_u_int32_t=yes
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 ac_cv_type_u_int32_t=no
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4691 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4692 if test $ac_cv_type_u_int32_t = yes; then
4696 cat >>confdefs.h <<\_ACEOF
4697 #define u_int32_t unsigned int
4702 { echo "$as_me:$LINENO: checking for int64_t" >&5
4703 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4704 if test "${ac_cv_type_int64_t+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 #ifdef HAVE_SYS_BITYPES_H
4715 #include <sys/bitypes.h>
4718 typedef int64_t ac__type_new_;
4722 if ((ac__type_new_ *) 0)
4724 if (sizeof (ac__type_new_))
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && {
4744 test -z "$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 } && test -s conftest.$ac_objext; then
4747 ac_cv_type_int64_t=yes
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_cv_type_int64_t=no
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4758 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4759 if test $ac_cv_type_int64_t = yes; then
4763 cat >>confdefs.h <<\_ACEOF
4764 #define int64_t long long
4769 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4770 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4771 if test "${ac_cv_type_u_int64_t+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4781 #ifdef HAVE_SYS_BITYPES_H
4782 #include <sys/bitypes.h>
4785 typedef u_int64_t ac__type_new_;
4789 if ((ac__type_new_ *) 0)
4791 if (sizeof (ac__type_new_))
4797 rm -f conftest.$ac_objext
4798 if { (ac_try="$ac_compile"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_compile") 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } && {
4811 test -z "$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4813 } && test -s conftest.$ac_objext; then
4814 ac_cv_type_u_int64_t=yes
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ac_cv_type_u_int64_t=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4825 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4826 if test $ac_cv_type_u_int64_t = yes; then
4830 cat >>confdefs.h <<\_ACEOF
4831 #define u_int64_t unsigned long long
4838 # Try to arrange for large file support.
4840 # Check whether --enable-largefile was given.
4841 if test "${enable_largefile+set}" = set; then
4842 enableval=$enable_largefile;
4845 if test "$enable_largefile" != no; then
4847 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4848 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4849 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 ac_cv_sys_largefile_CC=no
4853 if test "$GCC" != yes; then
4856 # IRIX 6.2 and later do not support large files by default,
4857 # so use the C compiler's -n32 option if that helps.
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867 since some C++ compilers masquerading as C compilers
4868 incorrectly reject 9223372036854775807. */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871 && LARGE_OFF_T % 2147483647 == 1)
4881 rm -f conftest.$ac_objext
4882 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f core conftest.err conftest.$ac_objext
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_compile") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
4925 ac_cv_sys_largefile_CC=' -n32'; break
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4933 rm -f core conftest.err conftest.$ac_objext
4937 rm -f conftest.$ac_ext
4940 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4941 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4942 if test "$ac_cv_sys_largefile_CC" != no; then
4943 CC=$CC$ac_cv_sys_largefile_CC
4946 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4947 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4948 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <sys/types.h>
4959 /* Check that off_t can represent 2**63 - 1 correctly.
4960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4961 since some C++ compilers masquerading as C compilers
4962 incorrectly reject 9223372036854775807. */
4963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4965 && LARGE_OFF_T % 2147483647 == 1)
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_compile") 2>conftest.er1
4984 grep -v '^ *+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } && {
4989 test -z "$ac_c_werror_flag" ||
4990 test ! -s conftest.err
4991 } && test -s conftest.$ac_objext; then
4992 ac_cv_sys_file_offset_bits=no; break
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #define _FILE_OFFSET_BITS 64
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compile") 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && {
5039 test -z "$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 } && test -s conftest.$ac_objext; then
5042 ac_cv_sys_file_offset_bits=64; break
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_cv_sys_file_offset_bits=unknown
5055 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5056 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5057 case $ac_cv_sys_file_offset_bits in #(
5060 cat >>confdefs.h <<_ACEOF
5061 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5066 if test $ac_cv_sys_file_offset_bits = unknown; then
5067 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5068 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5069 if test "${ac_cv_sys_large_files+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <sys/types.h>
5080 /* Check that off_t can represent 2**63 - 1 correctly.
5081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5082 since some C++ compilers masquerading as C compilers
5083 incorrectly reject 9223372036854775807. */
5084 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5086 && LARGE_OFF_T % 2147483647 == 1)
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_compile") 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest.$ac_objext; then
5113 ac_cv_sys_large_files=no; break
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_sys_large_files=1; break
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 ac_cv_sys_large_files=unknown
5176 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5177 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5178 case $ac_cv_sys_large_files in #(
5181 cat >>confdefs.h <<_ACEOF
5182 #define _LARGE_FILES $ac_cv_sys_large_files
5190 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5191 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5192 if test "${ac_cv_sys_largefile_source+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5206 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (ac_try="$ac_link"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_link") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } && {
5225 test -z "$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 } && test -s conftest$ac_exeext &&
5228 $as_test_x conftest$ac_exeext; then
5229 ac_cv_sys_largefile_source=no; break
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5238 conftest$ac_exeext conftest.$ac_ext
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #define _LARGEFILE_SOURCE 1
5250 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (ac_try="$ac_link"
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest$ac_exeext &&
5272 $as_test_x conftest$ac_exeext; then
5273 ac_cv_sys_largefile_source=1; break
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282 conftest$ac_exeext conftest.$ac_ext
5283 ac_cv_sys_largefile_source=unknown
5287 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5288 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5289 case $ac_cv_sys_largefile_source in #(
5292 cat >>confdefs.h <<_ACEOF
5293 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5299 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5300 # in glibc 2.1.3, but that breaks too many other things.
5301 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5302 if test $ac_cv_sys_largefile_source != unknown; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_FSEEKO 1
5315 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_res=`eval echo '${'$as_ac_Header'}'`
5325 { echo "$as_me:$LINENO: result: $ac_res" >&5
5326 echo "${ECHO_T}$ac_res" >&6; }
5328 # Is the header compilable?
5329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 $ac_includes_default
5338 #include <$ac_header>
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && {
5354 test -z "$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5356 } && test -s conftest.$ac_objext; then
5357 ac_header_compiler=yes
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_header_compiler=no
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5367 echo "${ECHO_T}$ac_header_compiler" >&6; }
5369 # Is the header present?
5370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <$ac_header>
5380 if { (ac_try="$ac_cpp conftest.$ac_ext"
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null && {
5393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5396 ac_header_preproc=yes
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_header_preproc=no
5404 rm -f conftest.err conftest.$ac_ext
5405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5406 echo "${ECHO_T}$ac_header_preproc" >&6; }
5408 # So? What about this header?
5409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5415 ac_header_preproc=yes
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 eval "$as_ac_Header=\$ac_header_preproc"
5440 ac_res=`eval echo '${'$as_ac_Header'}'`
5441 { echo "$as_me:$LINENO: result: $ac_res" >&5
5442 echo "${ECHO_T}$ac_res" >&6; }
5445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5446 cat >>confdefs.h <<_ACEOF
5447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 for ac_header in linux/types.h
5457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465 { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5468 # Is the header compilable?
5469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 $ac_includes_default
5478 #include <$ac_header>
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 ac_header_compiler=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_header_compiler=no
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6; }
5509 # Is the header present?
5510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <$ac_header>
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null && {
5533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5536 ac_header_preproc=yes
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_header_preproc=no
5544 rm -f conftest.err conftest.$ac_ext
5545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5546 echo "${ECHO_T}$ac_header_preproc" >&6; }
5548 # So? What about this header?
5549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5555 ac_header_preproc=yes
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 eval "$as_ac_Header=\$ac_header_preproc"
5580 ac_res=`eval echo '${'$as_ac_Header'}'`
5581 { echo "$as_me:$LINENO: result: $ac_res" >&5
5582 echo "${ECHO_T}$ac_res" >&6; }
5585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586 cat >>confdefs.h <<_ACEOF
5587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 ac_res=`eval echo '${'$as_ac_Header'}'`
5607 { echo "$as_me:$LINENO: result: $ac_res" >&5
5608 echo "${ECHO_T}$ac_res" >&6; }
5610 # Is the header compilable?
5611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 $ac_includes_default
5620 #include <$ac_header>
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
5639 ac_header_compiler=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_header_compiler=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6; }
5651 # Is the header present?
5652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5662 if { (ac_try="$ac_cpp conftest.$ac_ext"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null && {
5675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5678 ac_header_preproc=yes
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_header_preproc=no
5686 rm -f conftest.err conftest.$ac_ext
5687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688 echo "${ECHO_T}$ac_header_preproc" >&6; }
5690 # So? What about this header?
5691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5697 ac_header_preproc=yes
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 eval "$as_ac_Header=\$ac_header_preproc"
5722 ac_res=`eval echo '${'$as_ac_Header'}'`
5723 { echo "$as_me:$LINENO: result: $ac_res" >&5
5724 echo "${ECHO_T}$ac_res" >&6; }
5727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728 cat >>confdefs.h <<_ACEOF
5729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 for ac_header in net/pfvar.h
5739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 #include <sys/socket.h>
5755 #include <$ac_header>
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.$ac_objext; then
5774 eval "$as_ac_Header=yes"
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 eval "$as_ac_Header=no"
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 ac_res=`eval echo '${'$as_ac_Header'}'`
5785 { echo "$as_me:$LINENO: result: $ac_res" >&5
5786 echo "${ECHO_T}$ac_res" >&6; }
5787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5788 cat >>confdefs.h <<_ACEOF
5789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796 if test "$ac_cv_header_net_pfvar_h" = yes; then
5798 # Check for various PF actions.
5800 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5801 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <sys/types.h>
5809 #include <sys/socket.h>
5811 #include <net/pfvar.h>
5815 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.$ac_objext; then
5838 { echo "$as_me:$LINENO: result: yes" >&5
5839 echo "${ECHO_T}yes" >&6; }
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 for ac_header in netinet/if_ether.h
5859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <sys/types.h>
5872 #include <sys/socket.h>
5874 #include <$ac_header>
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compile") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest.$ac_objext; then
5893 eval "$as_ac_Header=yes"
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 eval "$as_ac_Header=no"
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 ac_res=`eval echo '${'$as_ac_Header'}'`
5904 { echo "$as_me:$LINENO: result: $ac_res" >&5
5905 echo "${ECHO_T}$ac_res" >&6; }
5906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5907 cat >>confdefs.h <<_ACEOF
5908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5915 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5917 # The simple test didn't work.
5918 # Do we need to include <net/if.h> first?
5919 # Unset ac_cv_header_netinet_if_ether_h so we don't
5920 # treat the previous failure as a cached value and
5921 # suppress the next test.
5923 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5924 echo "$as_me: Rechecking with some additional includes" >&6;}
5925 unset ac_cv_header_netinet_if_ether_h
5927 for ac_header in netinet/if_ether.h
5929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 cat >conftest.$ac_ext <<_ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5942 #include <sys/socket.h>
5943 #include <netinet/in.h>
5948 #include <$ac_header>
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 eval "$as_ac_Header=yes"
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 eval "$as_ac_Header=no"
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 ac_res=`eval echo '${'$as_ac_Header'}'`
5978 { echo "$as_me:$LINENO: result: $ac_res" >&5
5979 echo "${ECHO_T}$ac_res" >&6; }
5980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5981 cat >>confdefs.h <<_ACEOF
5982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5991 if test "$GCC" = yes ; then
5992 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5993 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5994 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 cat >conftest.$ac_ext <<_ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6004 * This generates a "duplicate case value" when fixincludes
6007 # include <sys/types.h>
6008 # include <sys/time.h>
6009 # include <sys/ioctl.h>
6010 # ifdef HAVE_SYS_IOCCOM_H
6011 # include <sys/ioccom.h>
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compile") 2>conftest.er1
6033 grep -v '^ *+' conftest.er1 >conftest.err
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && {
6038 test -z "$ac_c_werror_flag" ||
6039 test ! -s conftest.err
6040 } && test -s conftest.$ac_objext; then
6041 ac_cv_lbl_gcc_fixincludes=yes
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_cv_lbl_gcc_fixincludes=no
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6053 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6054 if test $ac_cv_lbl_gcc_fixincludes = no ; then
6055 # Don't cache failure
6056 unset ac_cv_lbl_gcc_fixincludes
6057 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6058 echo "$as_me: error: see the INSTALL for more info" >&2;}
6059 { (exit 1); exit 1; }; }
6065 for ac_func in strerror strlcpy
6067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6081 #define $ac_func innocuous_$ac_func
6083 /* System header to define __stub macros and hopefully few prototypes,
6084 which can conflict with char $ac_func (); below.
6085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 <limits.h> exists even on freestanding compilers. */
6089 # include <limits.h>
6091 # include <assert.h>
6096 /* Override any GCC internal prototype to avoid an error.
6097 Use char because int might match the return type of a GCC
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined __stub_$ac_func || defined __stub___$ac_func
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (ac_try="$ac_link"
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_link") 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest$ac_exeext &&
6135 $as_test_x conftest$ac_exeext; then
6136 eval "$as_ac_var=yes"
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 eval "$as_ac_var=no"
6144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6145 conftest$ac_exeext conftest.$ac_ext
6147 ac_res=`eval echo '${'$as_ac_var'}'`
6148 { echo "$as_me:$LINENO: result: $ac_res" >&5
6149 echo "${ECHO_T}$ac_res" >&6; }
6150 if test `eval echo '${'$as_ac_var'}'` = yes; then
6151 cat >>confdefs.h <<_ACEOF
6152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6162 for ac_func in vsnprintf snprintf
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6178 #define $ac_func innocuous_$ac_func
6180 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func (); below.
6182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 <limits.h> exists even on freestanding compilers. */
6186 # include <limits.h>
6188 # include <assert.h>
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6200 /* The GNU C library defines this for functions which it implements
6201 to always fail with ENOSYS. Some functions are actually named
6202 something starting with __ and the normal name is an alias. */
6203 #if defined __stub_$ac_func || defined __stub___$ac_func
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
6233 eval "$as_ac_var=yes"
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 eval "$as_ac_var=no"
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242 conftest$ac_exeext conftest.$ac_ext
6244 ac_res=`eval echo '${'$as_ac_var'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_var'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6257 if test $needsnprintf = yes; then
6258 case " $LIBOBJS " in
6259 *" snprintf.$ac_objext "* ) ;;
6260 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6267 # Do this before checking for ether_hostton(), as it's a
6268 # "gethostbyname() -ish function".
6271 # Most operating systems have gethostbyname() in the default searched
6272 # libraries (i.e. libc):
6273 # Some OSes (eg. Solaris) place it in libnsl
6274 # Some strange OSes (SINIX) have it in libsocket:
6275 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6276 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6277 if test "${ac_cv_search_gethostbyname+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_func_search_save_LIBS=$LIBS
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6288 /* Override any GCC internal prototype to avoid an error.
6289 Use char because int might match the return type of a GCC
6290 builtin and then its argument prototype would still apply. */
6294 char gethostbyname ();
6298 return gethostbyname ();
6303 for ac_lib in '' nsl socket resolv; do
6304 if test -z "$ac_lib"; then
6305 ac_res="none required"
6308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (ac_try="$ac_link"
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_link") 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest$ac_exeext &&
6327 $as_test_x conftest$ac_exeext; then
6328 ac_cv_search_gethostbyname=$ac_res
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6338 if test "${ac_cv_search_gethostbyname+set}" = set; then
6342 if test "${ac_cv_search_gethostbyname+set}" = set; then
6345 ac_cv_search_gethostbyname=no
6348 LIBS=$ac_func_search_save_LIBS
6350 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6351 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6352 ac_res=$ac_cv_search_gethostbyname
6353 if test "$ac_res" != no; then
6354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6358 # Unfortunately libsocket sometimes depends on libnsl and
6359 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6360 if test "$ac_cv_search_gethostbyname" = "no"
6362 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6363 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6364 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_check_lib_save_LIBS=$LIBS
6368 LIBS="-lsocket -lnsl $LIBS"
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6376 /* Override any GCC internal prototype to avoid an error.
6377 Use char because int might match the return type of a GCC
6378 builtin and then its argument prototype would still apply. */
6382 char gethostbyname ();
6386 return gethostbyname ();
6391 rm -f conftest.$ac_objext conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest$ac_exeext &&
6408 $as_test_x conftest$ac_exeext; then
6409 ac_cv_lib_socket_gethostbyname=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_cv_lib_socket_gethostbyname=no
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418 conftest$ac_exeext conftest.$ac_ext
6419 LIBS=$ac_check_lib_save_LIBS
6421 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6422 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6423 if test $ac_cv_lib_socket_gethostbyname = yes; then
6424 LIBS="-lsocket -lnsl $LIBS"
6428 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6429 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6430 if test "${ac_cv_search_socket+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_func_search_save_LIBS=$LIBS
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 /* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6456 for ac_lib in '' socket; do
6457 if test -z "$ac_lib"; then
6458 ac_res="none required"
6461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_link") 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } && {
6477 test -z "$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6479 } && test -s conftest$ac_exeext &&
6480 $as_test_x conftest$ac_exeext; then
6481 ac_cv_search_socket=$ac_res
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491 if test "${ac_cv_search_socket+set}" = set; then
6495 if test "${ac_cv_search_socket+set}" = set; then
6498 ac_cv_search_socket=no
6501 LIBS=$ac_func_search_save_LIBS
6503 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6504 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6505 ac_res=$ac_cv_search_socket
6506 if test "$ac_res" != no; then
6507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6510 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6511 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6512 if test "${ac_cv_lib_socket_socket+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_check_lib_save_LIBS=$LIBS
6516 LIBS="-lsocket -lnsl $LIBS"
6517 cat >conftest.$ac_ext <<_ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6524 /* Override any GCC internal prototype to avoid an error.
6525 Use char because int might match the return type of a GCC
6526 builtin and then its argument prototype would still apply. */
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (ac_try="$ac_link"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_link") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest$ac_exeext &&
6556 $as_test_x conftest$ac_exeext; then
6557 ac_cv_lib_socket_socket=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_lib_socket_socket=no
6565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566 conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6569 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6570 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6571 if test $ac_cv_lib_socket_socket = yes; then
6572 LIBS="-lsocket -lnsl $LIBS"
6577 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6578 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6579 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6580 if test "${ac_cv_search_putmsg+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_func_search_save_LIBS=$LIBS
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6591 /* Override any GCC internal prototype to avoid an error.
6592 Use char because int might match the return type of a GCC
6593 builtin and then its argument prototype would still apply. */
6606 for ac_lib in '' str; do
6607 if test -z "$ac_lib"; then
6608 ac_res="none required"
6611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (ac_try="$ac_link"
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_link") 2>conftest.er1
6622 grep -v '^ *+' conftest.er1 >conftest.err
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest$ac_exeext &&
6630 $as_test_x conftest$ac_exeext; then
6631 ac_cv_search_putmsg=$ac_res
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6641 if test "${ac_cv_search_putmsg+set}" = set; then
6645 if test "${ac_cv_search_putmsg+set}" = set; then
6648 ac_cv_search_putmsg=no
6651 LIBS=$ac_func_search_save_LIBS
6653 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6654 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6655 ac_res=$ac_cv_search_putmsg
6656 if test "$ac_res" != no; then
6657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6664 # You are in a twisty little maze of UN*Xes, all different.
6665 # Some might not have ether_hostton().
6666 # Some might have it, but not declare it in any header file.
6667 # Some might have it, but declare it in <netinet/if_ether.h>.
6668 # Some might have it, but declare it in <netinet/ether.h>
6669 # (And some might have it but document it as something declared in
6670 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6672 # Before you is a C compiler.
6675 for ac_func in ether_hostton
6677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 cat >conftest.$ac_ext <<_ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6691 #define $ac_func innocuous_$ac_func
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func (); below.
6695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6696 <limits.h> exists even on freestanding compilers. */
6699 # include <limits.h>
6701 # include <assert.h>
6706 /* Override any GCC internal prototype to avoid an error.
6707 Use char because int might match the return type of a GCC
6708 builtin and then its argument prototype would still apply. */
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined __stub_$ac_func || defined __stub___$ac_func
6728 rm -f conftest.$ac_objext conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_link") 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest$ac_exeext &&
6745 $as_test_x conftest$ac_exeext; then
6746 eval "$as_ac_var=yes"
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 eval "$as_ac_var=no"
6754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6755 conftest$ac_exeext conftest.$ac_ext
6757 ac_res=`eval echo '${'$as_ac_var'}'`
6758 { echo "$as_me:$LINENO: result: $ac_res" >&5
6759 echo "${ECHO_T}$ac_res" >&6; }
6760 if test `eval echo '${'$as_ac_var'}'` = yes; then
6761 cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6768 if test "$ac_cv_func_ether_hostton" = yes; then
6770 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6772 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6774 # Yes. Does it declare ether_hostton()?
6776 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6777 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6778 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6788 #include <sys/types.h>
6789 #include <sys/socket.h>
6790 #include <netinet/in.h>
6791 #include <arpa/inet.h>
6795 #include <netinet/if_ether.h>
6801 #ifndef ether_hostton
6802 (void) ether_hostton;
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_have_decl_ether_hostton=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_have_decl_ether_hostton=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6837 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6838 if test $ac_cv_have_decl_ether_hostton = yes; then
6841 cat >>confdefs.h <<\_ACEOF
6842 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6852 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6854 # No, how about <netinet/ether.h>, as on Linux?
6857 for ac_header in netinet/ether.h
6859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_res=`eval echo '${'$as_ac_Header'}'`
6867 { echo "$as_me:$LINENO: result: $ac_res" >&5
6868 echo "${ECHO_T}$ac_res" >&6; }
6870 # Is the header compilable?
6871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6880 #include <$ac_header>
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_header_compiler=yes
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_header_compiler=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6; }
6911 # Is the header present?
6912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6914 cat >conftest.$ac_ext <<_ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <$ac_header>
6922 if { (ac_try="$ac_cpp conftest.$ac_ext"
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6930 grep -v '^ *+' conftest.er1 >conftest.err
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6938 ac_header_preproc=yes
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 ac_header_preproc=no
6946 rm -f conftest.err conftest.$ac_ext
6947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948 echo "${ECHO_T}$ac_header_preproc" >&6; }
6950 # So? What about this header?
6951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6957 ac_header_preproc=yes
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 eval "$as_ac_Header=\$ac_header_preproc"
6982 ac_res=`eval echo '${'$as_ac_Header'}'`
6983 { echo "$as_me:$LINENO: result: $ac_res" >&5
6984 echo "${ECHO_T}$ac_res" >&6; }
6987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 if test "$ac_cv_header_netinet_ether_h" = yes; then
6998 # We have it - does it declare ether_hostton()?
6999 # Unset ac_cv_have_decl_ether_hostton so we don't
7000 # treat the previous failure as a cached value and
7001 # suppress the next test.
7003 unset ac_cv_have_decl_ether_hostton
7004 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
7005 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7006 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7016 #include <netinet/ether.h>
7022 #ifndef ether_hostton
7023 (void) ether_hostton;
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7039 grep -v '^ *+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7047 ac_cv_have_decl_ether_hostton=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_cv_have_decl_ether_hostton=no
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7058 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7059 if test $ac_cv_have_decl_ether_hostton = yes; then
7062 cat >>confdefs.h <<\_ACEOF
7063 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7072 # Is ether_hostton() declared?
7074 if test "$ac_cv_have_decl_ether_hostton" != yes; then
7076 # No, we'll have to declare it ourselves.
7077 # Do we have "struct ether_addr"?
7079 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7080 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7081 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7091 #include <sys/types.h>
7092 #include <sys/socket.h>
7093 #include <netinet/in.h>
7094 #include <arpa/inet.h>
7098 #include <netinet/if_ether.h>
7101 typedef struct ether_addr ac__type_new_;
7105 if ((ac__type_new_ *) 0)
7107 if (sizeof (ac__type_new_))
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_type_struct_ether_addr=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_type_struct_ether_addr=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7141 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7142 if test $ac_cv_type_struct_ether_addr = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_STRUCT_ETHER_ADDR 1
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_DECL_ETHER_HOSTTON 0
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_DECL_ETHER_HOSTTON 1
7165 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7166 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7167 # Check whether --enable-protochain was given.
7168 if test "${enable_protochain+set}" = set; then
7169 enableval=$enable_protochain;
7172 case "x$enable_protochain" in
7173 xyes) enable_protochain=enabled ;;
7174 xno) enable_protochain=disabled ;;
7175 x) enable_protochain=enabled ;;
7178 if test "$enable_protochain" = "disabled"; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define NO_PROTOCHAIN 1
7185 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7186 echo "${ECHO_T}${enable_protochain}" >&6; }
7189 # SITA support is mutually exclusive with native capture support;
7190 # "--with-sita" selects SITA support.
7193 # Check whether --with-sita was given.
7194 if test "${with_sita+set}" = set; then
7196 if test ! "x$withval" = "xno" ; then
7198 cat >>confdefs.h <<\_ACEOF
7202 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7203 echo "$as_me: Enabling SITA ACN support" >&6;}
7210 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7211 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7212 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7213 { (exit 1); exit 1; }; }
7216 # Check whether --with-pcap was given.
7217 if test "${with_pcap+set}" = set; then
7221 { echo "$as_me:$LINENO: checking packet capture type" >&5
7222 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7223 if test ! -z "$with_pcap" ; then
7225 elif test -r /dev/bpf -o -h /dev/bpf ; then
7227 # Cloning BPF device.
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_CLONING_BPF 1
7235 elif test -r /dev/bpf0 ; then
7237 elif test -r /usr/include/net/pfilt.h ; then
7239 elif test -r /dev/enet ; then
7241 elif test -r /dev/nit ; then
7243 elif test -r /usr/include/sys/net/nit.h ; then
7245 elif test -r /usr/include/linux/socket.h ; then
7247 elif test -r /usr/include/net/raw.h ; then
7249 elif test -r /usr/include/odmi.h ; then
7251 # On AIX, the BPF devices might not yet be present - they're
7252 # created the first time libpcap runs after booting.
7253 # We check for odmi.h instead.
7256 elif test -c /dev/bpf0 ; then # check again in case not readable
7258 elif test -r /usr/include/sys/dlpi.h ; then
7260 elif test -c /dev/enet ; then # check again in case not readable
7262 elif test -c /dev/nit ; then # check again in case not readable
7267 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
7268 echo "${ECHO_T}$V_PCAP" >&6; }
7271 # Do capture-mechanism-dependent tests.
7276 # Checks to see if Solaris has the public libdlpi(3LIB) library.
7277 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7278 # public libdlpi(3LIB) version. Before libdlpi was made public, a
7279 # private version also existed, which did not have the same APIs.
7280 # Due to a gcc bug, the default search path for 32-bit libraries does
7281 # not include /lib, we add it explicitly here.
7282 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7283 # Also, due to the bug above applications that link to libpcap with
7284 # libdlpi will have to add "-L/lib" option to "configure".
7286 saved_ldflags=$LDFLAGS
7287 LDFLAGS="$LIBS -L/lib"
7288 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7289 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7290 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 ac_check_lib_save_LIBS=$LIBS
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7302 /* Override any GCC internal prototype to avoid an error.
7303 Use char because int might match the return type of a GCC
7304 builtin and then its argument prototype would still apply. */
7312 return dlpi_walk ();
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (ac_try="$ac_link"
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_link") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1 >conftest.err
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest$ac_exeext &&
7334 $as_test_x conftest$ac_exeext; then
7335 ac_cv_lib_dlpi_dlpi_walk=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_lib_dlpi_dlpi_walk=no
7343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7344 conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7347 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7348 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7349 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_LIBDLPI 1
7361 LDFLAGS=$saved_ldflags
7364 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7367 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7368 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7369 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 #include <sys/types.h>
7380 #include <sys/time.h>
7381 #include <sys/dlpi.h>
7386 int i = DL_PROMISC_PHYS;
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 ac_cv_sys_dlpi_usable=yes
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_cv_sys_dlpi_usable=no
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7420 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7421 if test $ac_cv_sys_dlpi_usable = no ; then
7422 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7423 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7424 { (exit 1); exit 1; }; }
7428 # Check whether we have a /dev/dlpi device or have multiple devices.
7430 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7431 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7432 if test -c /dev/dlpi ; then
7433 { echo "$as_me:$LINENO: result: yes" >&5
7434 echo "${ECHO_T}yes" >&6; }
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_DEV_DLPI 1
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7444 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7445 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7446 if test -d $dir ; then
7447 { echo "$as_me:$LINENO: result: yes" >&5
7448 echo "${ECHO_T}yes" >&6; }
7450 cat >>confdefs.h <<_ACEOF
7451 #define PCAP_DEV_PREFIX "$dir"
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7461 # This check is for Solaris with DLPI support for passive modes.
7462 # See dlpi(7P) for more details.
7464 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7465 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7466 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7476 # include <sys/types.h>
7477 # include <sys/dlpi.h>
7481 u_int i = sizeof(dl_passive_req_t)
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_lbl_has_dl_passive_req_t=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_lbl_has_dl_passive_req_t=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7515 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7516 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_DLPI_PASSIVE 1
7527 # Do we have the wireless extensions?
7530 for ac_header in linux/wireless.h
7532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7545 #include <sys/socket.h>
7546 #include <linux/if.h>
7547 #include <linux/types.h>
7550 #include <$ac_header>
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 eval "$as_ac_Header=yes"
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 eval "$as_ac_Header=no"
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 ac_res=`eval echo '${'$as_ac_Header'}'`
7580 { echo "$as_me:$LINENO: result: $ac_res" >&5
7581 echo "${ECHO_T}$ac_res" >&6; }
7582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7583 cat >>confdefs.h <<_ACEOF
7584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7596 # Check whether --with-libnl was given.
7597 if test "${with_libnl+set}" = set; then
7598 withval=$with_libnl; with_libnl=$withval
7602 if test x$with_libnl != xno ; then
7606 # Try libnl 3.x first.
7608 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl-3" >&5
7609 echo $ECHO_N "checking for nl_socket_alloc in -lnl-3... $ECHO_C" >&6; }
7610 if test "${ac_cv_lib_nl_3_nl_socket_alloc+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 ac_check_lib_save_LIBS=$LIBS
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7622 /* Override any GCC internal prototype to avoid an error.
7623 Use char because int might match the return type of a GCC
7624 builtin and then its argument prototype would still apply. */
7628 char nl_socket_alloc ();
7632 return nl_socket_alloc ();
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_link") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest$ac_exeext &&
7654 $as_test_x conftest$ac_exeext; then
7655 ac_cv_lib_nl_3_nl_socket_alloc=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 ac_cv_lib_nl_3_nl_socket_alloc=no
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664 conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7667 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
7668 echo "${ECHO_T}$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
7669 if test $ac_cv_lib_nl_3_nl_socket_alloc = yes; then
7672 # Yes, we have libnl 3.x.
7674 LIBS="-lnl-genl-3 -lnl-3 $LIBS"
7676 cat >>confdefs.h <<\_ACEOF
7677 #define HAVE_LIBNL 1
7681 cat >>confdefs.h <<\_ACEOF
7682 #define HAVE_LIBNL_3_x 1
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_LIBNL_NLE 1
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LIBNL_SOCKETS 1
7695 V_INCLS="$V_INCLS -I/usr/include/libnl3"
7701 if test x$have_any_nl = xno ; then
7705 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7706 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7707 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_check_lib_save_LIBS=$LIBS
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7725 char nl_socket_alloc ();
7729 return nl_socket_alloc ();
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (ac_try="$ac_link"
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_link") 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest$ac_exeext &&
7751 $as_test_x conftest$ac_exeext; then
7752 ac_cv_lib_nl_nl_socket_alloc=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_nl_nl_socket_alloc=no
7760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761 conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7764 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7765 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7766 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7769 # Yes, we have libnl 2.x.
7771 LIBS="-lnl-genl -lnl $LIBS"
7773 cat >>confdefs.h <<\_ACEOF
7774 #define HAVE_LIBNL 1
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_LIBNL_2_x 1
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBNL_NLE 1
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LIBNL_SOCKETS 1
7798 if test x$have_any_nl = xno ; then
7800 # No, we don't; do we have libnl 1.x?
7802 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7803 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7804 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_check_lib_save_LIBS=$LIBS
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7816 /* Override any GCC internal prototype to avoid an error.
7817 Use char because int might match the return type of a GCC
7818 builtin and then its argument prototype would still apply. */
7822 char nl_handle_alloc ();
7826 return nl_handle_alloc ();
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest$ac_exeext &&
7848 $as_test_x conftest$ac_exeext; then
7849 ac_cv_lib_nl_nl_handle_alloc=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 ac_cv_lib_nl_nl_handle_alloc=no
7857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7858 conftest$ac_exeext conftest.$ac_ext
7859 LIBS=$ac_check_lib_save_LIBS
7861 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7862 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7863 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_LIBNL 1
7880 if test x$have_any_nl = xno ; then
7882 # No, we don't have libnl at all.
7884 if test x$with_libnl = xyes ; then
7885 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7886 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7887 { (exit 1); exit 1; }; }
7893 for ac_header in linux/ethtool.h
7895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7908 $ac_includes_default
7909 #include <linux/types.h>
7912 #include <$ac_header>
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 eval "$as_ac_Header=yes"
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 eval "$as_ac_Header=no"
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942 { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945 cat >>confdefs.h <<_ACEOF
7946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7953 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7954 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7955 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7965 # include <linux/if_packet.h>
7969 struct tpacket_stats stats
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_lbl_tpacket_stats=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_lbl_tpacket_stats=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
8003 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
8004 if test $ac_cv_lbl_tpacket_stats = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_TPACKET_STATS 1
8011 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
8012 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
8013 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 # include <sys/types.h>
8024 # include <linux/if_packet.h>
8028 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
8062 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
8063 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
8064 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
8076 # Check whether we have the *BSD-style ioctls.
8079 for ac_header in net/if_media.h
8081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8092 # Is the header compilable?
8093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #include <$ac_header>
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
8121 ac_header_compiler=yes
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_header_compiler=no
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131 echo "${ECHO_T}$ac_header_compiler" >&6; }
8133 # Is the header present?
8134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #include <$ac_header>
8144 if { (ac_try="$ac_cpp conftest.$ac_ext"
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } >/dev/null && {
8157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8160 ac_header_preproc=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_header_preproc=no
8168 rm -f conftest.err conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6; }
8172 # So? What about this header?
8173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179 ac_header_preproc=yes
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=\$ac_header_preproc"
8204 ac_res=`eval echo '${'$as_ac_Header'}'`
8205 { echo "$as_me:$LINENO: result: $ac_res" >&5
8206 echo "${ECHO_T}$ac_res" >&6; }
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8219 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8220 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #include <sys/socket.h>
8228 #include <sys/ioctl.h>
8230 #include <net/bpf.h>
8234 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8257 { echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6; }
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_ZEROCOPY_BPF 1
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 # Check whether we have struct BPF_TIMEVAL.
8278 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8279 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8280 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 #include <sys/types.h>
8291 #include <sys/ioctl.h>
8292 #ifdef HAVE_SYS_IOCCOM_H
8293 #include <sys/ioccom.h>
8295 #include <net/bpf.h>
8298 typedef struct BPF_TIMEVAL ac__type_new_;
8302 if ((ac__type_new_ *) 0)
8304 if (sizeof (ac__type_new_))
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_type_struct_BPF_TIMEVAL=yes
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 ac_cv_type_struct_BPF_TIMEVAL=no
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8338 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8339 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRUCT_BPF_TIMEVAL 1
8351 V_DEFS="$V_DEFS -DDAG_ONLY"
8355 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8359 V_DEFS="$V_DEFS -DSNF_ONLY"
8363 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8364 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8366 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8370 if test "$V_PCAP" = null
8373 # We can't capture, so we can't open any capture
8374 # devices, so we won't return any interfaces.
8378 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8379 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8380 if test "${ac_cv_func_getifaddrs+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8391 #define getifaddrs innocuous_getifaddrs
8393 /* System header to define __stub macros and hopefully few prototypes,
8394 which can conflict with char getifaddrs (); below.
8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8396 <limits.h> exists even on freestanding compilers. */
8399 # include <limits.h>
8401 # include <assert.h>
8406 /* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8423 return getifaddrs ();
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (ac_try="$ac_link"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest$ac_exeext &&
8445 $as_test_x conftest$ac_exeext; then
8446 ac_cv_func_getifaddrs=yes
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 ac_cv_func_getifaddrs=no
8454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 conftest$ac_exeext conftest.$ac_ext
8457 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8458 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8459 if test $ac_cv_func_getifaddrs = yes; then
8462 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8463 # as well, just in case some platform is really weird.
8465 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8466 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8467 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8468 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8472 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8474 # Is the header compilable?
8475 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8476 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 #include <ifaddrs.h>
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_header_compiler=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_header_compiler=no
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6; }
8515 # Is the header present?
8516 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8517 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <ifaddrs.h>
8526 if { (ac_try="$ac_cpp conftest.$ac_ext"
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } >/dev/null && {
8539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8542 ac_header_preproc=yes
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_header_preproc=no
8550 rm -f conftest.err conftest.$ac_ext
8551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 echo "${ECHO_T}$ac_header_preproc" >&6; }
8554 # So? What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8558 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8560 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8564 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8565 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8567 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8569 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8571 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8573 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8575 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8579 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8580 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8581 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 ac_cv_header_ifaddrs_h=$ac_header_preproc
8586 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8587 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8590 if test $ac_cv_header_ifaddrs_h = yes; then
8593 # We have the header, so we use "getifaddrs()" to
8594 # get the list of interfaces.
8601 # We don't have the header - give up.
8602 # XXX - we could also fall back on some other
8603 # mechanism, but, for now, this'll catch this
8604 # problem so that we can at least try to figure
8605 # out something to do on systems with "getifaddrs()"
8606 # but without "ifaddrs.h", if there is something
8607 # we can do on those systems.
8609 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8610 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8611 { (exit 1); exit 1; }; }
8620 # Well, we don't have "getifaddrs()", so we have to use
8621 # some other mechanism; determine what that mechanism is.
8623 # The first thing we use is the type of capture mechanism,
8624 # which is somewhat of a proxy for the OS we're using.
8631 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_res=`eval echo '${'$as_ac_Header'}'`
8641 { echo "$as_me:$LINENO: result: $ac_res" >&5
8642 echo "${ECHO_T}$ac_res" >&6; }
8644 # Is the header compilable?
8645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 #include <$ac_header>
8656 rm -f conftest.$ac_objext
8657 if { (ac_try="$ac_compile"
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_header_compiler=yes
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_header_compiler=no
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6; }
8685 # Is the header present?
8686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <$ac_header>
8696 if { (ac_try="$ac_cpp conftest.$ac_ext"
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } >/dev/null && {
8709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8712 ac_header_preproc=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_header_preproc=no
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8724 # So? What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731 ac_header_preproc=yes
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 eval "$as_ac_Header=\$ac_header_preproc"
8756 ac_res=`eval echo '${'$as_ac_Header'}'`
8757 { echo "$as_me:$LINENO: result: $ac_res" >&5
8758 echo "${ECHO_T}$ac_res" >&6; }
8761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8762 cat >>confdefs.h <<_ACEOF
8763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8771 # This might be Solaris 8 or later, with
8772 # SIOCGLIFCONF, or it might be some other OS
8773 # or some older version of Solaris, with
8776 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8777 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8778 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 #include <sys/param.h>
8788 #include <sys/file.h>
8789 #include <sys/ioctl.h>
8790 #include <sys/socket.h>
8791 #include <sys/sockio.h>
8795 ioctl(0, SIOCGLIFCONF, (char *)0);
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest.$ac_objext; then
8817 ac_cv_lbl_have_siocglifconf=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_cv_lbl_have_siocglifconf=no
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8829 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8830 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8836 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8843 # Assume we just have SIOCGIFCONF.
8844 # (XXX - on at least later Linux kernels, there's
8845 # another mechanism, and we should be using that
8858 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8859 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 #include <sys/types.h>
8868 #include <sys/socket.h>
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 if test "x$have_socklen_t" = "xyes"; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_SOCKLEN_T 1
8911 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8912 echo "${ECHO_T}$have_socklen_t" >&6; }
8914 # Check whether --enable-ipv6 was given.
8915 if test "${enable_ipv6+set}" = set; then
8916 enableval=$enable_ipv6;
8918 enable_ipv6=ifavailable
8921 if test "$enable_ipv6" != "no"; then
8922 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8923 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8924 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8935 #define getaddrinfo innocuous_getaddrinfo
8937 /* System header to define __stub macros and hopefully few prototypes,
8938 which can conflict with char getaddrinfo (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8943 # include <limits.h>
8945 # include <assert.h>
8950 /* Override any GCC internal prototype to avoid an error.
8951 Use char because int might match the return type of a GCC
8952 builtin and then its argument prototype would still apply. */
8956 char getaddrinfo ();
8957 /* The GNU C library defines this for functions which it implements
8958 to always fail with ENOSYS. Some functions are actually named
8959 something starting with __ and the normal name is an alias. */
8960 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8967 return getaddrinfo ();
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_getaddrinfo=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_getaddrinfo=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
9002 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
9003 if test $ac_cv_func_getaddrinfo = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9013 if test "$enable_ipv6" != "ifavailable"; then
9014 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
9015 See \`config.log' for more details." >&5
9016 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
9017 See \`config.log' for more details." >&2;}
9018 { (exit 1); exit 1; }; }
9025 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
9026 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
9027 # Check whether --enable-optimizer-dbg was given.
9028 if test "${enable_optimizer_dbg+set}" = set; then
9029 enableval=$enable_optimizer_dbg;
9032 if test "$enable_optimizer_dbg" = "yes"; then
9034 cat >>confdefs.h <<\_ACEOF
9039 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
9040 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
9042 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
9043 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
9044 # Check whether --enable-yydebug was given.
9045 if test "${enable_yydebug+set}" = set; then
9046 enableval=$enable_yydebug;
9049 if test "$enable_yydebug" = "yes"; then
9051 cat >>confdefs.h <<\_ACEOF
9056 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
9057 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
9059 # Check for Endace DAG card support.
9061 # Check whether --with-dag was given.
9062 if test "${with_dag+set}" = set; then
9064 if test "$withval" = no
9066 # User doesn't want DAG support.
9068 elif test "$withval" = yes
9070 # User wants DAG support but hasn't specified a directory.
9073 # User wants DAG support and has specified a directory, so use the provided value.
9081 # Use DAG API if present, otherwise don't
9089 # Check whether --with-dag-includes was given.
9090 if test "${with_dag_includes+set}" = set; then
9091 withval=$with_dag_includes;
9092 # User wants DAG support and has specified a header directory, so use the provided value.
9094 dag_include_dir=$withval
9100 # Check whether --with-dag-libraries was given.
9101 if test "${with_dag_libraries+set}" = set; then
9102 withval=$with_dag_libraries;
9103 # User wants DAG support and has specified a library directory, so use the provided value.
9105 dag_lib_dir=$withval
9113 # We support the DAG API if we're on Linux or BSD, or if we're
9114 # building a DAG-only libpcap.
9119 # If the user explicitly requested DAG, tell them it's not
9122 # If they expressed no preference, don't include it.
9124 if test $want_dag = yes; then
9125 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9126 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9127 { (exit 1); exit 1; }; }
9128 elif test $want_dag = yes; then
9134 ac_cv_lbl_dag_api=no
9135 if test "$want_dag" != no; then
9137 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9138 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9140 # If necessary, set default paths for DAG API headers and libraries.
9141 if test -z "$dag_root"; then
9145 if test -z "$dag_include_dir"; then
9146 dag_include_dir="$dag_root/include"
9149 if test -z "$dag_lib_dir"; then
9150 dag_lib_dir="$dag_root/lib"
9153 if test -z "$dag_tools_dir"; then
9154 dag_tools_dir="$dag_root/tools"
9157 if test -r $dag_include_dir/dagapi.h; then
9158 ac_cv_lbl_dag_api=yes
9160 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9161 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9164 if test $ac_cv_lbl_dag_api = yes; then
9165 V_INCLS="$V_INCLS -I$dag_include_dir"
9167 if test $V_PCAP != dag ; then
9171 # See if we can find a general version string.
9172 # Don't need to save and restore LIBS to prevent -ldag being
9173 # included if there's a found-action (arg 3).
9174 saved_ldflags=$LDFLAGS
9175 LDFLAGS="-L$dag_lib_dir"
9176 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9177 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9178 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 ac_check_lib_save_LIBS=$LIBS
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9196 char dag_attach_stream ();
9200 return dag_attach_stream ();
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (ac_try="$ac_link"
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest$ac_exeext &&
9222 $as_test_x conftest$ac_exeext; then
9223 ac_cv_lib_dag_dag_attach_stream=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_lib_dag_dag_attach_stream=no
9231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232 conftest$ac_exeext conftest.$ac_ext
9233 LIBS=$ac_check_lib_save_LIBS
9235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9236 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9237 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9243 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9244 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9245 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 ac_check_lib_save_LIBS=$LIBS
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9263 char dag_get_erf_types ();
9267 return dag_get_erf_types ();
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest$ac_exeext &&
9289 $as_test_x conftest$ac_exeext; then
9290 ac_cv_lib_dag_dag_get_erf_types=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_cv_lib_dag_dag_get_erf_types=no
9298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9299 conftest$ac_exeext conftest.$ac_ext
9300 LIBS=$ac_check_lib_save_LIBS
9302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9303 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9304 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_DAG_GET_ERF_TYPES 1
9313 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9314 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9315 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_check_lib_save_LIBS=$LIBS
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9333 char dag_get_stream_erf_types ();
9337 return dag_get_stream_erf_types ();
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_link") 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest$ac_exeext &&
9359 $as_test_x conftest$ac_exeext; then
9360 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_lib_dag_dag_get_stream_erf_types=no
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9374 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9384 LDFLAGS=$saved_ldflags
9386 if test "$dag_streams" = 1; then
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_DAG_STREAMS_API 1
9393 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9395 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9396 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9397 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 ac_check_lib_save_LIBS=$LIBS
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9415 char vdag_set_device_info ();
9419 return vdag_set_device_info ();
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (ac_try="$ac_link"
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_link") 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest$ac_exeext &&
9441 $as_test_x conftest$ac_exeext; then
9442 ac_cv_lib_vdag_vdag_set_device_info=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_lib_vdag_vdag_set_device_info=no
9450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9451 conftest$ac_exeext conftest.$ac_ext
9452 LIBS=$ac_check_lib_save_LIBS
9454 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9455 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9456 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9457 ac_dag_have_vdag="1"
9459 ac_dag_have_vdag="0"
9462 if test "$ac_dag_have_vdag" = 1; then
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_DAG_VDAG 1
9468 LIBS="$LIBS -lpthread"
9473 cat >>confdefs.h <<\_ACEOF
9474 #define HAVE_DAG_API 1
9479 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9480 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9482 if test $ac_cv_lbl_dag_api = no; then
9483 { echo "$as_me:$LINENO: result: no" >&5
9484 echo "${ECHO_T}no" >&6; }
9485 if test "$want_dag" = yes; then
9486 # User wanted DAG support but we couldn't find it.
9487 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9488 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9489 { (exit 1); exit 1; }; }
9492 if test "$V_PCAP" = dag; then
9493 # User requested "dag" capture type but the DAG API wasn't
9495 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
9496 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
9497 { (exit 1); exit 1; }; }
9500 { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9505 # Check whether --with-septel was given.
9506 if test "${with_septel+set}" = set; then
9507 withval=$with_septel;
9508 if test "$withval" = no
9511 elif test "$withval" = yes
9517 septel_root=$withval
9523 # Use Septel API if present, otherwise don't
9525 want_septel=ifpresent
9526 septel_root=./../septel
9530 ac_cv_lbl_septel_api=no
9534 # We support the Septel API if we're on Linux, or if we're building
9535 # a Septel-only libpcap.
9540 # If the user explicitly requested Septel, tell them it's not
9543 # If they expressed no preference, don't include it.
9545 if test $want_septel = yes; then
9546 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9547 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9548 { (exit 1); exit 1; }; }
9549 elif test $want_septel = yes; then
9555 if test "$with_septel" != no; then
9556 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9557 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9559 if test -z "$septel_root"; then
9560 septel_root=$srcdir/../septel
9563 septel_tools_dir="$septel_root"
9564 septel_include_dir="$septel_root/INC"
9566 ac_cv_lbl_septel_api=no
9567 if test -r "$septel_include_dir/msg.h"; then
9568 V_INCLS="$V_INCLS -I$septel_include_dir"
9569 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9570 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9572 if test "$V_PCAP" != septel ; then
9573 SSRC="pcap-septel.c"
9575 ac_cv_lbl_septel_api=yes
9578 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9579 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9580 if test $ac_cv_lbl_septel_api = no; then
9581 if test "$want_septel" = yes; then
9582 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9583 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9584 { (exit 1); exit 1; }; }
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_SEPTEL_API 1
9595 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9596 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9597 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9598 { (exit 1); exit 1; }; }
9601 # Check for Myricom SNF support.
9603 # Check whether --with-snf was given.
9604 if test "${with_snf+set}" = set; then
9606 if test "$withval" = no
9608 # User explicitly doesn't want SNF
9610 elif test "$withval" = yes
9612 # User wants SNF support but hasn't specific a directory.
9615 # User wants SNF support with a specified directory.
9623 # Use Sniffer API if present, otherwise don't
9631 # Check whether --with-snf-includes was given.
9632 if test "${with_snf_includes+set}" = set; then
9633 withval=$with_snf_includes;
9634 # User wants SNF with specific header directory
9636 snf_include_dir=$withval
9642 # Check whether --with-snf-libraries was given.
9643 if test "${with_snf_libraries+set}" = set; then
9644 withval=$with_snf_libraries;
9645 # User wants SNF with specific lib directory
9647 snf_lib_dir=$withval
9655 # We support the Sniffer API if we're on BSD, Linux, or if we're
9656 # building a Sniffer-only libpcap.
9661 # If the user explicitly requested Sniffer, tell them it's not
9664 # If they expressed no preference, don't include it.
9666 if test $want_snf = yes; then
9667 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9668 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9669 { (exit 1); exit 1; }; }
9670 elif test $want_snf = yes; then
9676 ac_cv_lbl_snf_api=no
9677 if test "$with_snf" != no; then
9679 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9680 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9682 if test -z "$snf_root"; then
9686 if test -z "$snf_include_dir"; then
9687 snf_include_dir="$snf_root/include"
9690 if test -z "$snf_lib_dir"; then
9691 snf_lib_dir="$snf_root/lib"
9694 if test -f "$snf_include_dir/snf.h"; then
9695 ac_cv_lbl_snf_api=yes
9697 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9698 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9700 if test $ac_cv_lbl_snf_api = no; then
9701 if test "$want_snf" = yes; then
9702 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9703 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9704 { (exit 1); exit 1; }; }
9707 saved_ldflags=$LDFLAGS
9708 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9709 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9710 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_check_lib_save_LIBS=$LIBS
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 ac_cv_lib_snf_snf_init=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_cv_lib_snf_snf_init=no
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9769 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9770 if test $ac_cv_lib_snf_snf_init = yes; then
9771 ac_cv_lbl_snf_api="yes"
9773 ac_cv_lbl_snf_api="no"
9776 LDFLAGS="$saved_ldflags"
9778 if test $ac_cv_lbl_snf_api = no; then
9779 if test "$want_snf" = yes; then
9780 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9781 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9782 { (exit 1); exit 1; }; }
9785 V_INCLS="$V_INCLS -I$snf_include_dir"
9787 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9788 if test "$V_PCAP" != snf ; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_SNF_API 1
9800 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9801 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9802 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9803 { (exit 1); exit 1; }; }
9807 # Check whether --with-flex was given.
9808 if test "${with_flex+set}" = set; then
9813 # Check whether --with-bison was given.
9814 if test "${with_bison+set}" = set; then
9815 withval=$with_bison;
9818 if test "$with_flex" = no ; then
9823 # Extract the first word of "$ac_prog", so it can be a program name with args.
9824 set dummy $ac_prog; ac_word=$2
9825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9827 if test "${ac_cv_prog_V_LEX+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 if test -n "$V_LEX"; then
9831 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_V_LEX="$ac_prog"
9841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 V_LEX=$ac_cv_prog_V_LEX
9851 if test -n "$V_LEX"; then
9852 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9853 echo "${ECHO_T}$V_LEX" >&6; }
9855 { echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6; }
9860 test -n "$V_LEX" && break
9862 test -n "$V_LEX" || V_LEX="lex"
9865 if test "$V_LEX" = flex ; then
9866 # The -V flag was added in 2.4
9867 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9868 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9869 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 if flex -V >/dev/null 2>&1; then
9873 ac_cv_lbl_flex_v24=yes
9875 ac_cv_lbl_flex_v24=no
9879 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9880 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9881 if test $ac_cv_lbl_flex_v24 = no ; then
9882 s="2.4 or higher required"
9883 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9884 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9888 if test "$with_bison" = no ; then
9891 for ac_prog in bison
9893 # Extract the first word of "$ac_prog", so it can be a program name with args.
9894 set dummy $ac_prog; ac_word=$2
9895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9897 if test "${ac_cv_prog_V_YACC+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 if test -n "$V_YACC"; then
9901 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_V_YACC="$ac_prog"
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 V_YACC=$ac_cv_prog_V_YACC
9921 if test -n "$V_YACC"; then
9922 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9923 echo "${ECHO_T}$V_YACC" >&6; }
9925 { echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6; }
9930 test -n "$V_YACC" && break
9932 test -n "$V_YACC" || V_YACC="yacc"
9935 if test "$V_YACC" = bison ; then
9938 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9939 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9940 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9944 if test "$V_LEX" = flex -a -n "pcap_" ; then
9945 V_LEX="$V_LEX -Ppcap_"
9946 V_YACC="$V_YACC -p pcap_"
9949 cat >>confdefs.h <<\_ACEOF
9950 #define NEED_YYPARSE_WRAPPER 1
9954 if test "$V_LEX" = lex ; then
9955 # Some versions of lex can't handle the definitions section of scanner.l .
9956 # Try lexing it and complain if it can't deal.
9957 { echo "$as_me:$LINENO: checking for capable lex" >&5
9958 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9959 if test "${tcpdump_cv_capable_lex+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 if lex -t scanner.l > /dev/null 2>&1; then
9963 tcpdump_cv_capable_lex=yes
9965 tcpdump_cv_capable_lex=insufficient
9968 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9969 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9970 if test $tcpdump_cv_capable_lex = insufficient ; then
9971 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9972 libpcap. flex is a lex replacement that has many advantages, including
9973 being able to compile libpcap. For more information, see
9974 http://www.gnu.org/software/flex/flex.html ." >&5
9975 echo "$as_me: error: Your operating system's lex is insufficient to compile
9976 libpcap. flex is a lex replacement that has many advantages, including
9977 being able to compile libpcap. For more information, see
9978 http://www.gnu.org/software/flex/flex.html ." >&2;}
9979 { (exit 1); exit 1; }; }
9984 # Assume, by default, no support for shared libraries and V7/BSD convention
9985 # for man pages (file formats in section 5, miscellaneous info in section 7).
9986 # Individual cases can override this.
9995 cat >>confdefs.h <<\_ACEOF
10001 # AIX makes it fun to build shared and static libraries,
10002 # because they're *both* ".a" archive libraries. We
10003 # build the static library for the benefit of the traditional
10004 # scheme of building libpcap and tcpdump in subdirectories of
10005 # the same directory, with tcpdump statically linked with the
10006 # libpcap in question, but we also build a shared library as
10007 # "libpcap.shareda" and install *it*, rather than the static
10008 # library, as "libpcap.a".
10016 # If we're using DLPI, applications will need to
10017 # use /lib/pse.exp if present, as we use the
10018 # STREAMS routines.
10020 pseexe="/lib/pse.exp"
10021 { echo "$as_me:$LINENO: checking for $pseexe" >&5
10022 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
10023 if test -f $pseexe ; then
10024 { echo "$as_me:$LINENO: result: yes" >&5
10025 echo "${ECHO_T}yes" >&6; }
10032 # If we're using BPF, we need "-lodm" and "-lcfg", as
10033 # we use them to load the BPF module.
10042 V_CCOPT="$V_CCOPT -fno-common"
10043 # Check whether --enable-universal was given.
10044 if test "${enable_universal+set}" = set; then
10045 enableval=$enable_universal;
10048 if test "$enable_universal" != "no"; then
10053 # Leopard. Build for 32-bit PowerPC, 64-bit
10054 # PowerPC, x86, and x86-64, with 32-bit PowerPC
10055 # first. (That's what Apple does.)
10057 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10058 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10063 # Snow Leopard. Build for x86-64, x86, and
10064 # 32-bit PowerPC, with x86-64 first. (That's
10065 # what Apple does, even though Snow Leopard
10066 # doesn't run on PPC, so PPC libpcap runs under
10067 # Rosetta, and Rosetta doesn't support BPF
10068 # ioctls, so PPC programs can't do live
10071 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
10072 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
10077 # Lion. Build for x86-64 and x86, with x86-64
10078 # first. (That's probably what Apple does,
10079 # given that Rosetta is gone.)
10081 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
10082 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_HPUX9 1
10096 # Use System V conventions for man pages.
10105 # Use System V conventions for man pages.
10114 # Use System V conventions for man pages.
10122 cat >>confdefs.h <<\_ACEOF
10123 #define HAVE_HPUX10_20_OR_LATER 1
10126 if test "`uname -m`" = "ia64"; then
10133 # "-b" builds a shared library; "+h" sets the soname.
10139 # Use System V conventions for man pages.
10147 # Use System V conventions for man pages.
10153 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10157 # Compiler assumed to be GCC; run-time linker may require a -R
10160 if test "$libdir" != "/usr/lib"; then
10161 V_RFLAGS=-Wl,-R$libdir
10169 # Use System V conventions for man pages.
10176 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10177 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10178 if test "${ac_cv_cc_sinix_defined+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10196 rm -f conftest.$ac_objext
10197 if { (ac_try="$ac_compile"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_compile") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest.$ac_objext; then
10213 ac_cv_cc_sinix_defined=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_cc_sinix_defined=no
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10225 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10226 if test $ac_cv_cc_sinix_defined = no ; then
10228 cat >>confdefs.h <<\_ACEOF
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_SOLARIS 1
10244 # Use System V conventions for man pages.
10251 # Check whether --enable-shared was given.
10252 if test "${enable_shared+set}" = set; then
10253 enableval=$enable_shared;
10256 test "x$enable_shared" = "xno" && DYEXT="none"
10258 if test -n "$ac_tool_prefix"; then
10259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10263 if test "${ac_cv_prog_RANLIB+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 if test -n "$RANLIB"; then
10267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 RANLIB=$ac_cv_prog_RANLIB
10287 if test -n "$RANLIB"; then
10288 { echo "$as_me:$LINENO: result: $RANLIB" >&5
10289 echo "${ECHO_T}$RANLIB" >&6; }
10291 { echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6; }
10297 if test -z "$ac_cv_prog_RANLIB"; then
10298 ac_ct_RANLIB=$RANLIB
10299 # Extract the first word of "ranlib", so it can be a program name with args.
10300 set dummy ranlib; ac_word=$2
10301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10303 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 if test -n "$ac_ct_RANLIB"; then
10307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_ac_ct_RANLIB="ranlib"
10317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10327 if test -n "$ac_ct_RANLIB"; then
10328 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10329 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10331 { echo "$as_me:$LINENO: result: no" >&5
10332 echo "${ECHO_T}no" >&6; }
10335 if test "x$ac_ct_RANLIB" = x; then
10338 case $cross_compiling:$ac_tool_warned in
10340 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10341 whose name does not start with the host triplet. If you think this
10342 configuration is useful to you, please write to autoconf@gnu.org." >&5
10343 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10344 whose name does not start with the host triplet. If you think this
10345 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10346 ac_tool_warned=yes ;;
10348 RANLIB=$ac_ct_RANLIB
10351 RANLIB="$ac_cv_prog_RANLIB"
10354 if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10356 set dummy ${ac_tool_prefix}ar; ac_word=$2
10357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10359 if test "${ac_cv_prog_AR+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test -n "$AR"; then
10363 ac_cv_prog_AR="$AR" # Let the user override the test.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_prog_AR="${ac_tool_prefix}ar"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 if test -n "$AR"; then
10384 { echo "$as_me:$LINENO: result: $AR" >&5
10385 echo "${ECHO_T}$AR" >&6; }
10387 { echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6; }
10393 if test -z "$ac_cv_prog_AR"; then
10395 # Extract the first word of "ar", so it can be a program name with args.
10396 set dummy ar; ac_word=$2
10397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 if test -n "$ac_ct_AR"; then
10403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_ac_ct_AR="ar"
10413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10423 if test -n "$ac_ct_AR"; then
10424 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10425 echo "${ECHO_T}$ac_ct_AR" >&6; }
10427 { echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6; }
10431 if test "x$ac_ct_AR" = x; then
10434 case $cross_compiling:$ac_tool_warned in
10436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10437 whose name does not start with the host triplet. If you think this
10438 configuration is useful to you, please write to autoconf@gnu.org." >&5
10439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10440 whose name does not start with the host triplet. If you think this
10441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10442 ac_tool_warned=yes ;;
10447 AR="$ac_cv_prog_AR"
10452 if test "${LBL_CFLAGS+set}" = set; then
10453 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10455 if test -f .devel ; then
10456 if test "$GCC" = yes ; then
10457 if test "${LBL_CFLAGS+set}" != set; then
10458 if test "$ac_cv_prog_cc_g" = yes ; then
10459 V_CCOPT="-g $V_CCOPT"
10461 V_CCOPT="$V_CCOPT -Wall"
10462 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10463 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10470 V_CCOPT="$V_CCOPT -n32"
10477 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10478 name="lbl/os-$os.h"
10479 if test -f $name ; then
10480 ln -s $name os-proto.h
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_OS_PROTO_H 1
10487 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10488 echo "$as_me: WARNING: can't find $name" >&2;}
10492 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10493 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10494 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10504 # include <sys/types.h>
10505 # include <sys/socket.h>
10509 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10514 rm -f conftest.$ac_objext
10515 if { (ac_try="$ac_compile"
10516 case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_compile") 2>conftest.er1
10523 grep -v '^ *+' conftest.er1 >conftest.err
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && {
10528 test -z "$ac_c_werror_flag" ||
10529 test ! -s conftest.err
10530 } && test -s conftest.$ac_objext; then
10531 ac_cv_lbl_sockaddr_has_sa_len=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_cv_lbl_sockaddr_has_sa_len=no
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10543 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10544 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_SOCKADDR_SA_LEN 1
10552 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10553 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10554 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10564 # include <sys/types.h>
10565 # include <sys/socket.h>
10569 u_int i = sizeof (struct sockaddr_storage)
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_cv_lbl_has_sockaddr_storage=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_lbl_has_sockaddr_storage=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10603 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10604 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10606 cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_SOCKADDR_STORAGE 1
10612 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10613 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10614 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10624 # include <sys/types.h>
10625 # include <sys/dlpi.h>
10626 # include <sys/dlpi_ext.h>
10630 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest.$ac_objext; then
10652 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10664 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10665 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10673 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10674 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10675 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 case "$host_cpu" in
10681 # These are CPU types where:
10683 # the CPU faults on an unaligned access, but at least some
10684 # OSes that support that CPU catch the fault and simulate
10685 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10686 # the simulation is slow, so we don't want to use it;
10688 # the CPU, I infer (from the old
10690 # XXX: should also check that they don't do weird things (like on arm)
10692 # comment) doesn't fault on unaligned accesses, but doesn't
10693 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10695 # for whatever reason, the test program doesn't work
10696 # (this has been claimed to be the case for several of those
10697 # CPUs - I don't know what the problem is; the problem
10698 # was reported as "the test program dumps core" for SuperH,
10699 # but that's what the test program is *supposed* to do -
10700 # it dumps core before it writes anything, so the test
10701 # for an empty output file should find an empty output
10702 # file and conclude that unaligned accesses don't work).
10704 # This run-time test won't work if you're cross-compiling, so
10705 # in order to support cross-compiling for a particular CPU,
10706 # we have to wire in the list of CPU types anyway, as far as
10707 # I know, so perhaps we should just have a set of CPUs on
10708 # which we know it doesn't work, a set of CPUs on which we
10709 # know it does work, and have the script just fail on other
10710 # cpu types and update it when such a failure occurs.
10712 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10713 ac_cv_lbl_unaligned_fail=yes
10717 cat >conftest.c <<EOF
10718 # include <sys/types.h>
10719 # include <sys/wait.h>
10720 # include <stdio.h>
10721 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10726 /* avoid "core dumped" message */
10732 pid = waitpid(pid, &status, 0);
10735 exit(!WIFEXITED(status));
10738 i = *(unsigned int *)&a[1];
10743 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10744 conftest.c $LIBS >/dev/null 2>&1
10745 if test ! -x conftest ; then
10746 ac_cv_lbl_unaligned_fail=yes
10748 ./conftest >conftest.out
10749 if test ! -s conftest.out ; then
10750 ac_cv_lbl_unaligned_fail=yes
10752 ac_cv_lbl_unaligned_fail=no
10755 rm -f -r conftest* core core.conftest
10760 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10761 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10762 if test $ac_cv_lbl_unaligned_fail = yes ; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define LBL_ALIGN 1
10771 # Makefile.in includes rules to generate version.h, so we assume
10772 # that it will be generated if autoconf is used.
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_VERSION_H 1
10781 ln -s ${srcdir}/bpf/net net
10801 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10802 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10806 cat >>confdefs.h <<\_ACEOF
10807 #define PCAP_SUPPORT_USB 1
10810 USB_SRC=pcap-usb-linux.c
10811 { echo "$as_me:$LINENO: result: yes" >&5
10812 echo "${ECHO_T}yes" >&6; }
10813 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10814 if test $? -ne 0 ; then
10815 ac_usb_dev_name="usbmon"
10818 cat >>confdefs.h <<_ACEOF
10819 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10822 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10823 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10825 # Do we have a version of <linux/compiler.h> available?
10826 # If so, we might need it for <linux/usbdevice_fs.h>.
10829 for ac_header in linux/compiler.h
10831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 ac_res=`eval echo '${'$as_ac_Header'}'`
10839 { echo "$as_me:$LINENO: result: $ac_res" >&5
10840 echo "${ECHO_T}$ac_res" >&6; }
10842 # Is the header compilable?
10843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 $ac_includes_default
10852 #include <$ac_header>
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest.$ac_objext; then
10871 ac_header_compiler=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_header_compiler=no
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10881 echo "${ECHO_T}$ac_header_compiler" >&6; }
10883 # Is the header present?
10884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <$ac_header>
10894 if { (ac_try="$ac_cpp conftest.$ac_ext"
10895 case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10902 grep -v '^ *+' conftest.er1 >conftest.err
10904 cat conftest.err >&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } >/dev/null && {
10907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10908 test ! -s conftest.err
10910 ac_header_preproc=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_header_preproc=no
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10922 # So? What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929 ac_header_preproc=yes
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 eval "$as_ac_Header=\$ac_header_preproc"
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960 cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 if test "$ac_cv_header_linux_compiler_h" = yes; then
10970 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10973 for ac_header in linux/usbdevice_fs.h
10975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <linux/compiler.h>
10989 #include <$ac_header>
10991 rm -f conftest.$ac_objext
10992 if { (ac_try="$ac_compile"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11008 eval "$as_ac_Header=yes"
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_Header=no"
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11032 for ac_header in linux/usbdevice_fs.h
11034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 ac_res=`eval echo '${'$as_ac_Header'}'`
11042 { echo "$as_me:$LINENO: result: $ac_res" >&5
11043 echo "${ECHO_T}$ac_res" >&6; }
11045 # Is the header compilable?
11046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 $ac_includes_default
11055 #include <$ac_header>
11057 rm -f conftest.$ac_objext
11058 if { (ac_try="$ac_compile"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_compile") 2>conftest.er1
11066 grep -v '^ *+' conftest.er1 >conftest.err
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest.$ac_objext; then
11074 ac_header_compiler=yes
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_header_compiler=no
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084 echo "${ECHO_T}$ac_header_compiler" >&6; }
11086 # Is the header present?
11087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 #include <$ac_header>
11097 if { (ac_try="$ac_cpp conftest.$ac_ext"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } >/dev/null && {
11110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11113 ac_header_preproc=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_header_preproc=no
11121 rm -f conftest.err conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123 echo "${ECHO_T}$ac_header_preproc" >&6; }
11125 # So? What about this header?
11126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11132 ac_header_preproc=yes
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 eval "$as_ac_Header=\$ac_header_preproc"
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11172 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11174 # OK, does it define bRequestType? Older versions of the kernel
11175 # define fields with names like "requesttype, "request", and
11176 # "value", rather than "bRequestType", "bRequest", and
11179 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11180 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11181 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11191 $ac_includes_default
11192 #ifdef HAVE_SYS_BITYPES_H
11193 #include <sys/bitypes.h>
11195 #ifdef HAVE_LINUX_COMPILER_H
11196 #include <linux/compiler.h>
11198 #include <linux/usbdevice_fs.h>
11202 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11207 rm -f conftest.$ac_objext
11208 if { (ac_try="$ac_compile"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11216 grep -v '^ *+' conftest.er1 >conftest.err
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest.$ac_objext; then
11224 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11236 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11237 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11247 { echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6; }
11254 { echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11255 echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11258 { echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6; }
11261 # Life's too short to deal with trying to get this to compile
11262 # if you don't get the right types defined with
11263 # __KERNEL_STRICT_NAMES getting defined by some other include.
11265 # Check whether the includes Just Work. If not, don't turn on
11266 # netfilter support.
11268 { echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11269 echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11270 if test "${ac_cv_netfilter_can_compile+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 cat >conftest.$ac_ext <<_ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11280 $ac_includes_default
11281 #include <sys/socket.h>
11282 #include <netinet/in.h>
11283 #include <linux/types.h>
11285 #include <linux/netlink.h>
11286 #include <linux/netfilter.h>
11287 #include <linux/netfilter/nfnetlink.h>
11288 #include <linux/netfilter/nfnetlink_log.h>
11289 #include <linux/netfilter/nfnetlink_queue.h>
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest.$ac_objext; then
11315 ac_cv_netfilter_can_compile=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_cv_netfilter_can_compile=no
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 { echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11327 echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11328 if test $ac_cv_netfilter_can_compile = yes ; then
11330 cat >>confdefs.h <<\_ACEOF
11331 #define PCAP_SUPPORT_NETFILTER 1
11334 NETFILTER_SRC=pcap-netfilter-linux.c
11338 { echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6; }
11345 # Check whether --enable-bluetooth was given.
11346 if test "${enable_bluetooth+set}" = set; then
11347 enableval=$enable_bluetooth;
11349 enable_bluetooth=yes
11353 if test "x$enable_bluetooth" != "xno" ; then
11356 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11357 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11358 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11359 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11363 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11365 # Is the header compilable?
11366 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11367 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 $ac_includes_default
11375 #include <bluetooth/bluetooth.h>
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_compile") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest.$ac_objext; then
11394 ac_header_compiler=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_compiler=no
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6; }
11406 # Is the header present?
11407 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11408 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 #include <bluetooth/bluetooth.h>
11417 if { (ac_try="$ac_cpp conftest.$ac_ext"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev/null && {
11430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11433 ac_header_preproc=yes
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_preproc=no
11441 rm -f conftest.err conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6; }
11445 # So? What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11452 ac_header_preproc=yes
11455 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11470 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11471 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11472 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11477 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11478 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11481 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define PCAP_SUPPORT_BT 1
11488 BT_SRC=pcap-bt-linux.c
11489 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11490 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11493 # OK, does struct sockaddr_hci have an hci_channel
11496 { echo "$as_me:$LINENO: checking if struct sockaddr_hci has hci_channel member" >&5
11497 echo $ECHO_N "checking if struct sockaddr_hci has hci_channel member... $ECHO_C" >&6; }
11498 if test "${ac_cv_lbl_sockaddr_hci_has_hci_channel+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11508 #include <bluetooth/bluetooth.h>
11509 #include <bluetooth/hci.h>
11514 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
11519 rm -f conftest.$ac_objext
11520 if { (ac_try="$ac_compile"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_compile") 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest.$ac_objext; then
11536 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
11548 echo "${ECHO_T}$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
11549 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
11551 cat >>confdefs.h <<\_ACEOF
11552 #define SOCKADDR_HCI_HAS_HCI_CHANNEL
11558 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11559 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11566 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11567 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11574 # Check whether --enable-canusb was given.
11575 if test "${enable_canusb+set}" = set; then
11576 enableval=$enable_canusb;
11582 if test "x$enable_canusb" != "xno" ; then
11585 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11586 { echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11587 echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11588 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11592 echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11594 # Is the header compilable?
11595 { echo "$as_me:$LINENO: checking libusb-1.0/libusb.h usability" >&5
11596 echo $ECHO_N "checking libusb-1.0/libusb.h usability... $ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 #include <libusb-1.0/libusb.h>
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11615 grep -v '^ *+' conftest.er1 >conftest.err
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_header_compiler=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_compiler=no
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking libusb-1.0/libusb.h presence" >&5
11637 echo $ECHO_N "checking libusb-1.0/libusb.h presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <libusb-1.0/libusb.h>
11646 if { (ac_try="$ac_cpp conftest.$ac_ext"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev/null && {
11659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11662 ac_header_preproc=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_header_preproc=no
11670 rm -f conftest.err conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 echo "${ECHO_T}$ac_header_preproc" >&6; }
11674 # So? What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
11678 echo "$as_me: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&5
11680 echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&2;}
11681 ac_header_preproc=yes
11684 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: libusb-1.0/libusb.h: check for missing prerequisite headers?" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&5
11689 echo "$as_me: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: section \"Present But Cannot Be Compiled\"" >&5
11691 echo "$as_me: WARNING: libusb-1.0/libusb.h: section \"Present But Cannot Be Compiled\"" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&5
11695 echo "$as_me: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&2;}
11699 { echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11700 echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11701 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 ac_cv_header_libusb_1_0_libusb_h=$ac_header_preproc
11706 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11707 echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11710 if test $ac_cv_header_libusb_1_0_libusb_h = yes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define PCAP_SUPPORT_CANUSB 1
11717 CANUSB_SRC=pcap-canusb-linux.c
11718 LIBS="-lusb-1.0 -lpthread $LIBS"
11719 { echo "$as_me:$LINENO: canusb sniffing is supported" >&5
11720 echo "$as_me: canusb sniffing is supported" >&6;}
11723 { echo "$as_me:$LINENO: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
11724 echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
11731 { echo "$as_me:$LINENO: no canusb support implemented for $host_os" >&5
11732 echo "$as_me: no canusb support implemented for $host_os" >&6;}
11739 # Check whether --enable-can was given.
11740 if test "${enable_can+set}" = set; then
11741 enableval=$enable_can;
11747 if test "x$enable_can" != "xno" ; then
11750 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11751 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_linux_can_h+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 #include <sys/socket.h>
11764 #include <linux/can.h>
11766 rm -f conftest.$ac_objext
11767 if { (ac_try="$ac_compile"
11768 case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_compile") 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest.$ac_objext; then
11783 ac_cv_header_linux_can_h=yes
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 ac_cv_header_linux_can_h=no
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11794 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11795 if test $ac_cv_header_linux_can_h = yes; then
11797 cat >>confdefs.h <<\_ACEOF
11798 #define PCAP_SUPPORT_CAN 1
11801 CAN_SRC=pcap-can-linux.c
11802 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11803 echo "$as_me: CAN sniffing is supported" >&6;}
11805 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11806 echo "$as_me: CAN sniffing is not supported" >&6;}
11812 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11813 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11823 for ac_header in linux/net_tstamp.h
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 ac_res=`eval echo '${'$as_ac_Header'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11836 # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 #include <$ac_header>
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_header_compiler=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_compiler=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <$ac_header>
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null && {
11901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11904 ac_header_preproc=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_header_preproc=no
11912 rm -f conftest.err conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11916 # So? What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc=yes
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 eval "$as_ac_Header=\$ac_header_preproc"
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11964 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11965 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11969 # Find a good install program. We prefer a C program (faster),
11970 # so one script is as good as another. But avoid the broken or
11971 # incompatible versions:
11972 # SysV /etc/install, /usr/sbin/install
11973 # SunOS /usr/etc/install
11974 # IRIX /sbin/install
11976 # AmigaOS /C/install, which installs bootblocks on floppy discs
11977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11980 # OS/2's system install, which has a completely different semantic
11981 # ./install, which can be erroneously created by make from ./install.sh.
11982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11984 if test -z "$INSTALL"; then
11985 if test "${ac_cv_path_install+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11992 test -z "$as_dir" && as_dir=.
11993 # Account for people who put trailing slashes in PATH elements.
11995 ./ | .// | /cC/* | \
11996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12000 # OSF1 and SCO ODT 3.0 have their own names for install.
12001 # Don't use installbsd from OSF since it installs stuff as root
12003 for ac_prog in ginstall scoinst install; do
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12006 if test $ac_prog = install &&
12007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12008 # AIX install. It has an incompatible calling convention.
12010 elif test $ac_prog = install &&
12011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12012 # program-specific install script used by HP pwplus--don't use.
12015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12028 if test "${ac_cv_path_install+set}" = set; then
12029 INSTALL=$ac_cv_path_install
12031 # As a last resort, use the slow shell script. Don't cache a
12032 # value for INSTALL within a source directory, because that will
12033 # break other packages using the cache if that directory is
12034 # removed, or if the value is a relative name.
12035 INSTALL=$ac_install_sh
12038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12039 echo "${ECHO_T}$INSTALL" >&6; }
12041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12042 # It thinks the first close brace ends the variable substitution.
12043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12050 ac_config_headers="$ac_config_headers config.h"
12053 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
12055 cat >confcache <<\_ACEOF
12056 # This file is a shell script that caches the results of configure
12057 # tests run on this system so they can be shared between configure
12058 # scripts and configure runs, see configure's option --config-cache.
12059 # It is not useful on other systems. If it contains results you don't
12060 # want to keep, you may remove or edit it.
12062 # config.status only pays attention to the cache file if you give it
12063 # the --recheck option to rerun configure.
12065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12067 # following values.
12071 # The following way of writing the cache mishandles newlines in values,
12072 # but we know of no workaround that is simple, portable, and efficient.
12073 # So, we kill variables containing newlines.
12074 # Ultrix sh set writes to stderr and can't be redirected directly,
12075 # and sets the high bit in the cache file unless we assign to the vars.
12077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12078 eval ac_val=\$$ac_var
12082 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12083 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12086 _ | IFS | as_nl) ;; #(
12087 *) $as_unset $ac_var ;;
12093 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12094 *${as_nl}ac_space=\ *)
12095 # `set' does not quote correctly, so add quotes (double-quote
12096 # substitution turns \\\\ into \\, and sed turns \\ into \).
12099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12102 # `set' quotes correctly as required by POSIX, so do not add quotes.
12103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12114 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12117 if test -w "$cache_file"; then
12118 test "x$cache_file" != "x/dev/null" &&
12119 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12120 echo "$as_me: updating cache $cache_file" >&6;}
12121 cat confcache >$cache_file
12123 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12124 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12130 # Let make expand exec_prefix.
12131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12133 DEFS=-DHAVE_CONFIG_H
12137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12138 # 1. Remove the extension, and $U if already installed.
12139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12140 ac_i=`echo "$ac_i" | sed "$ac_script"`
12141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12142 # will be set to the directory where LIBOBJS objects are built.
12143 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12144 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12146 LIBOBJS=$ac_libobjs
12148 LTLIBOBJS=$ac_ltlibobjs
12152 : ${CONFIG_STATUS=./config.status}
12153 ac_clean_files_save=$ac_clean_files
12154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157 cat >$CONFIG_STATUS <<_ACEOF
12159 # Generated by $as_me.
12160 # Run this file to recreate the current configuration.
12161 # Compiler output produced by configure, useful for debugging
12162 # configure, is in config.log if it exists.
12165 ac_cs_recheck=false
12167 SHELL=\${CONFIG_SHELL-$SHELL}
12170 cat >>$CONFIG_STATUS <<\_ACEOF
12171 ## --------------------- ##
12172 ## M4sh Initialization. ##
12173 ## --------------------- ##
12175 # Be more Bourne compatible
12176 DUALCASE=1; export DUALCASE # for MKS sh
12177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12181 # is contrary to our usage. Disable this feature.
12182 alias -g '${1+"$@"}'='"$@"'
12183 setopt NO_GLOB_SUBST
12185 case `(set -o) 2>/dev/null` in
12186 *posix*) set -o posix ;;
12195 # Avoid depending upon Character Ranges.
12196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12199 as_cr_digits='0123456789'
12200 as_cr_alnum=$as_cr_Letters$as_cr_digits
12202 # The user is always right.
12203 if test "${PATH_SEPARATOR+set}" != set; then
12204 echo "#! /bin/sh" >conf$$.sh
12205 echo "exit 0" >>conf$$.sh
12207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12215 # Support unset when possible.
12216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12224 # We need space, tab and new line, in precisely that order. Quoting is
12225 # there to prevent editors from complaining about space-tab.
12226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12227 # splitting by setting IFS to empty value.)
12232 # Find who we are. Look in the path if we contain no directory separator.
12234 *[\\/]* ) as_myself=$0 ;;
12235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12246 # We did not find ourselves, most probably we were run as `sh COMMAND'
12247 # in which case we are not to be found in the path.
12248 if test "x$as_myself" = x; then
12251 if test ! -f "$as_myself"; then
12252 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12253 { (exit 1); exit 1; }
12256 # Work around bugs in pre-3.0 UWIN ksh.
12257 for as_var in ENV MAIL MAILPATH
12258 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12268 LC_TELEPHONE LC_TIME
12270 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12271 eval $as_var=C; export $as_var
12273 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12277 # Required to use basename.
12278 if expr a : '\(a\)' >/dev/null 2>&1 &&
12279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12286 as_basename=basename
12292 # Name of the executable.
12293 as_me=`$as_basename -- "$0" ||
12294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12295 X"$0" : 'X\(//\)$' \| \
12296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12298 sed '/^.*\/\([^/][^/]*\)\/*$/{
12317 as_lineno_1=$LINENO
12318 as_lineno_2=$LINENO
12319 test "x$as_lineno_1" != "x$as_lineno_2" &&
12320 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12323 # uniformly replaced by the line number. The first 'sed' inserts a
12324 # line-number line after each line using $LINENO; the second 'sed'
12325 # does the real work. The second script uses 'N' to pair each
12326 # line-number line with the line containing $LINENO, and appends
12327 # trailing '-' during substitution so that $LINENO is not a special
12328 # case at line end.
12329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12330 # scripts with optimization help from Paolo Bonzini. Blame Lee
12331 # E. McMahon (1931-1989) for sed's syntax. :-)
12343 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12346 ' >$as_me.lineno &&
12347 chmod +x "$as_me.lineno" ||
12348 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12349 { (exit 1); exit 1; }; }
12351 # Don't try to exec as it changes $[0], causing all sort of problems
12352 # (the dirname of $[0] is not the place where we might find the
12353 # original and so on. Autoconf is especially sensitive to this).
12354 . "./$as_me.lineno"
12355 # Exit status is that of the last command.
12360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12366 ECHO_C= ECHO_N= ECHO_T=
12367 case `echo -n x` in
12369 case `echo 'x\c'` in
12370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12377 if expr a : '\(a\)' >/dev/null 2>&1 &&
12378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12384 rm -f conf$$ conf$$.exe conf$$.file
12385 if test -d conf$$.dir; then
12386 rm -f conf$$.dir/conf$$.file
12392 if ln -s conf$$.file conf$$ 2>/dev/null; then
12394 # ... but there are two gotchas:
12395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12397 # In both cases, we have to default to `cp -p'.
12398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12400 elif ln conf$$.file conf$$ 2>/dev/null; then
12405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12406 rmdir conf$$.dir 2>/dev/null
12408 if mkdir -p . 2>/dev/null; then
12411 test -d ./-p && rmdir ./-p
12415 if test -x / >/dev/null 2>&1; then
12416 as_test_x='test -x'
12418 if ls -dL / >/dev/null 2>&1; then
12425 if test -d "$1"; then
12431 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12432 ???[sx]*):;;*)false;;esac;fi
12436 as_executable_p=$as_test_x
12438 # Sed expression to map a string onto a valid CPP name.
12439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12441 # Sed expression to map a string onto a valid variable name.
12442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12447 # Save the log message, to keep $[0] and so on meaningful, and to
12448 # report actual input values of CONFIG_FILES etc. instead of their
12449 # values after options handling.
12451 This file was extended by $as_me, which was
12452 generated by GNU Autoconf 2.61. Invocation command line was
12454 CONFIG_FILES = $CONFIG_FILES
12455 CONFIG_HEADERS = $CONFIG_HEADERS
12456 CONFIG_LINKS = $CONFIG_LINKS
12457 CONFIG_COMMANDS = $CONFIG_COMMANDS
12460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12465 cat >>$CONFIG_STATUS <<_ACEOF
12466 # Files that config.status was made for.
12467 config_files="$ac_config_files"
12468 config_headers="$ac_config_headers"
12472 cat >>$CONFIG_STATUS <<\_ACEOF
12474 \`$as_me' instantiates files from templates according to the
12475 current configuration.
12477 Usage: $0 [OPTIONS] [FILE]...
12479 -h, --help print this help, then exit
12480 -V, --version print version number and configuration settings, then exit
12481 -q, --quiet do not print progress messages
12482 -d, --debug don't remove temporary files
12483 --recheck update $as_me by reconfiguring in the same conditions
12484 --file=FILE[:TEMPLATE]
12485 instantiate the configuration file FILE
12486 --header=FILE[:TEMPLATE]
12487 instantiate the configuration header FILE
12489 Configuration files:
12492 Configuration headers:
12495 Report bugs to <bug-autoconf@gnu.org>."
12498 cat >>$CONFIG_STATUS <<_ACEOF
12501 configured by $0, generated by GNU Autoconf 2.61,
12502 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12504 Copyright (C) 2006 Free Software Foundation, Inc.
12505 This config.status script is free software; the Free Software Foundation
12506 gives unlimited permission to copy, distribute and modify it."
12513 cat >>$CONFIG_STATUS <<\_ACEOF
12514 # If no file are specified by the user, then we need to provide default
12515 # value. By we need to know if files were specified by the user.
12521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12533 # Handling of the options.
12534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12537 echo "$ac_cs_version"; exit ;;
12538 --debug | --debu | --deb | --de | --d | -d )
12540 --file | --fil | --fi | --f )
12542 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12543 ac_need_defaults=false;;
12544 --header | --heade | --head | --hea )
12546 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12547 ac_need_defaults=false;;
12549 # Conflict between --help and --header
12550 { echo "$as_me: error: ambiguous option: $1
12551 Try \`$0 --help' for more information." >&2
12552 { (exit 1); exit 1; }; };;
12553 --help | --hel | -h )
12554 echo "$ac_cs_usage"; exit ;;
12555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12556 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12559 # This is an error.
12560 -*) { echo "$as_me: error: unrecognized option: $1
12561 Try \`$0 --help' for more information." >&2
12562 { (exit 1); exit 1; }; } ;;
12564 *) ac_config_targets="$ac_config_targets $1"
12565 ac_need_defaults=false ;;
12571 ac_configure_extra_args=
12573 if $ac_cs_silent; then
12575 ac_configure_extra_args="$ac_configure_extra_args --silent"
12579 cat >>$CONFIG_STATUS <<_ACEOF
12580 if \$ac_cs_recheck; then
12581 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12582 CONFIG_SHELL=$SHELL
12583 export CONFIG_SHELL
12584 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12588 cat >>$CONFIG_STATUS <<\_ACEOF
12592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12593 ## Running $as_me. ##
12599 cat >>$CONFIG_STATUS <<_ACEOF
12602 cat >>$CONFIG_STATUS <<\_ACEOF
12604 # Handling of arguments.
12605 for ac_config_target in $ac_config_targets
12607 case $ac_config_target in
12608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12610 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12611 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12612 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12613 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12614 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12615 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12616 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12617 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12618 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12619 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12620 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12621 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12622 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12624 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12625 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12626 { (exit 1); exit 1; }; };;
12631 # If the user did not use the arguments to specify the items to instantiate,
12632 # then the envvar interface is used. Set only those that are not.
12633 # We use the long form for the default assignment because of an extremely
12634 # bizarre bug on SunOS 4.1.3.
12635 if $ac_need_defaults; then
12636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12640 # Have a temporary directory for convenience. Make it in the build tree
12641 # simply because there is no reason against having it here, and in addition,
12642 # creating and moving files from /tmp can sometimes cause problems.
12643 # Hook for its removal unless debugging.
12644 # Note that there is a small window in which the directory will not be cleaned:
12645 # after its creation but before its name has been assigned to `$tmp'.
12649 trap 'exit_status=$?
12650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12652 trap '{ (exit 1); exit 1; }' 1 2 13 15
12654 # Create a (secure) tmp directory for tmp files.
12657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12658 test -n "$tmp" && test -d "$tmp"
12661 tmp=./conf$$-$RANDOM
12662 (umask 077 && mkdir "$tmp")
12665 echo "$me: cannot create a temporary directory in ." >&2
12666 { (exit 1); exit 1; }
12670 # Set up the sed scripts for CONFIG_FILES section.
12673 # No need to generate the scripts if there are no CONFIG_FILES.
12674 # This happens for instance when ./config.status config.h
12675 if test -n "$CONFIG_FILES"; then
12682 for ac_last_try in false false false false false :; do
12683 cat >conf$$subs.sed <<_ACEOF
12684 SHELL!$SHELL$ac_delim
12685 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12686 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12687 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12688 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12689 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12690 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12691 exec_prefix!$exec_prefix$ac_delim
12692 prefix!$prefix$ac_delim
12693 program_transform_name!$program_transform_name$ac_delim
12694 bindir!$bindir$ac_delim
12695 sbindir!$sbindir$ac_delim
12696 libexecdir!$libexecdir$ac_delim
12697 datarootdir!$datarootdir$ac_delim
12698 datadir!$datadir$ac_delim
12699 sysconfdir!$sysconfdir$ac_delim
12700 sharedstatedir!$sharedstatedir$ac_delim
12701 localstatedir!$localstatedir$ac_delim
12702 includedir!$includedir$ac_delim
12703 oldincludedir!$oldincludedir$ac_delim
12704 docdir!$docdir$ac_delim
12705 infodir!$infodir$ac_delim
12706 htmldir!$htmldir$ac_delim
12707 dvidir!$dvidir$ac_delim
12708 pdfdir!$pdfdir$ac_delim
12709 psdir!$psdir$ac_delim
12710 libdir!$libdir$ac_delim
12711 localedir!$localedir$ac_delim
12712 mandir!$mandir$ac_delim
12713 DEFS!$DEFS$ac_delim
12714 ECHO_C!$ECHO_C$ac_delim
12715 ECHO_N!$ECHO_N$ac_delim
12716 ECHO_T!$ECHO_T$ac_delim
12717 LIBS!$LIBS$ac_delim
12718 build_alias!$build_alias$ac_delim
12719 host_alias!$host_alias$ac_delim
12720 target_alias!$target_alias$ac_delim
12721 build!$build$ac_delim
12722 build_cpu!$build_cpu$ac_delim
12723 build_vendor!$build_vendor$ac_delim
12724 build_os!$build_os$ac_delim
12725 host!$host$ac_delim
12726 host_cpu!$host_cpu$ac_delim
12727 host_vendor!$host_vendor$ac_delim
12728 host_os!$host_os$ac_delim
12729 target!$target$ac_delim
12730 target_cpu!$target_cpu$ac_delim
12731 target_vendor!$target_vendor$ac_delim
12732 target_os!$target_os$ac_delim
12733 SHLICC2!$SHLICC2$ac_delim
12735 CFLAGS!$CFLAGS$ac_delim
12736 LDFLAGS!$LDFLAGS$ac_delim
12737 CPPFLAGS!$CPPFLAGS$ac_delim
12738 ac_ct_CC!$ac_ct_CC$ac_delim
12739 EXEEXT!$EXEEXT$ac_delim
12740 OBJEXT!$OBJEXT$ac_delim
12742 GREP!$GREP$ac_delim
12743 EGREP!$EGREP$ac_delim
12744 LIBOBJS!$LIBOBJS$ac_delim
12745 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12746 V_LEX!$V_LEX$ac_delim
12747 V_YACC!$V_YACC$ac_delim
12748 RANLIB!$RANLIB$ac_delim
12750 V_CCOPT!$V_CCOPT$ac_delim
12751 V_DEFS!$V_DEFS$ac_delim
12752 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12753 V_INCLS!$V_INCLS$ac_delim
12754 V_PCAP!$V_PCAP$ac_delim
12755 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12756 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12757 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12758 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12759 ADDLOBJS!$ADDLOBJS$ac_delim
12760 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12761 SSRC!$SSRC$ac_delim
12762 DYEXT!$DYEXT$ac_delim
12763 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12764 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12765 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12766 USB_SRC!$USB_SRC$ac_delim
12767 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12768 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12769 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12770 BT_SRC!$BT_SRC$ac_delim
12771 PCAP_SUPPORT_CANUSB!$PCAP_SUPPORT_CANUSB$ac_delim
12772 CANUSB_SRC!$CANUSB_SRC$ac_delim
12773 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12774 CAN_SRC!$CAN_SRC$ac_delim
12775 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12776 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12777 INSTALL_DATA!$INSTALL_DATA$ac_delim
12778 LTLIBOBJS!$LTLIBOBJS$ac_delim
12781 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
12783 elif $ac_last_try; then
12784 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12785 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12786 { (exit 1); exit 1; }; }
12788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12792 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12793 if test -n "$ac_eof"; then
12794 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12795 ac_eof=`expr $ac_eof + 1`
12798 cat >>$CONFIG_STATUS <<_ACEOF
12799 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12803 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12804 s/^/s,@/; s/!/@,|#_!!_#|/
12807 s/'"$ac_delim"'$/,g/; t
12809 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12810 ' >>$CONFIG_STATUS <conf$$subs.sed
12811 rm -f conf$$subs.sed
12812 cat >>$CONFIG_STATUS <<_ACEOF
12819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12821 # trailing colons and then remove the whole line if VPATH becomes empty
12822 # (actually we leave an empty line to preserve line numbers).
12823 if test "x$srcdir" = x.; then
12824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12825 s/:*\$(srcdir):*/:/
12826 s/:*\${srcdir}:*/:/
12828 s/^\([^=]*=[ ]*\):*/\1/
12834 cat >>$CONFIG_STATUS <<\_ACEOF
12835 fi # test -n "$CONFIG_FILES"
12838 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12841 :[FHLC]) ac_mode=$ac_tag; continue;;
12843 case $ac_mode$ac_tag in
12845 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12846 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12847 { (exit 1); exit 1; }; };;
12848 :[FH]-) ac_tag=-:-;;
12849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12866 -) ac_f="$tmp/stdin";;
12867 *) # Look for the file first in the build tree, then in the source tree
12868 # (if the path is not absolute). The absolute path cannot be DOS-style,
12869 # because $ac_f cannot contain `:'.
12873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12875 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12876 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12877 { (exit 1); exit 1; }; };;
12879 ac_file_inputs="$ac_file_inputs $ac_f"
12882 # Let's still pretend it is `configure' which instantiates (i.e., don't
12883 # use $as_me), people would be surprised to read:
12884 # /* config.h. Generated by config.status. */
12885 configure_input="Generated from "`IFS=:
12886 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12887 if test x"$ac_file" != x-; then
12888 configure_input="$ac_file. $configure_input"
12889 { echo "$as_me:$LINENO: creating $ac_file" >&5
12890 echo "$as_me: creating $ac_file" >&6;}
12894 *:-:* | *:-) cat >"$tmp/stdin";;
12899 ac_dir=`$as_dirname -- "$ac_file" ||
12900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12901 X"$ac_file" : 'X\(//\)[^/]' \| \
12902 X"$ac_file" : 'X\(//\)$' \| \
12903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12909 /^X\(\/\/\)[^/].*/{
12924 -*) as_dir=./$as_dir;;
12926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12931 *) as_qdir=$as_dir;;
12933 as_dirs="'$as_qdir' $as_dirs"
12934 as_dir=`$as_dirname -- "$as_dir" ||
12935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936 X"$as_dir" : 'X\(//\)[^/]' \| \
12937 X"$as_dir" : 'X\(//\)$' \| \
12938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12944 /^X\(\/\/\)[^/].*/{
12957 test -d "$as_dir" && break
12959 test -z "$as_dirs" || eval "mkdir $as_dirs"
12960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12961 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12962 { (exit 1); exit 1; }; }; }
12966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12969 # A ".." for each directory in $ac_dir_suffix.
12970 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12971 case $ac_top_builddir_sub in
12972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12976 ac_abs_top_builddir=$ac_pwd
12977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12978 # for backward compatibility:
12979 ac_top_builddir=$ac_top_build_prefix
12982 .) # We are building in place.
12984 ac_top_srcdir=$ac_top_builddir_sub
12985 ac_abs_top_srcdir=$ac_pwd ;;
12986 [\\/]* | ?:[\\/]* ) # Absolute name.
12987 ac_srcdir=$srcdir$ac_dir_suffix;
12988 ac_top_srcdir=$srcdir
12989 ac_abs_top_srcdir=$srcdir ;;
12990 *) # Relative name.
12991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12992 ac_top_srcdir=$ac_top_build_prefix$srcdir
12993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13010 cat >>$CONFIG_STATUS <<\_ACEOF
13011 # If the template does not know about datarootdir, expand it.
13012 # FIXME: This hack should be removed a few years after 2.60.
13013 ac_datarootdir_hack=; ac_datarootdir_seen=
13015 case `sed -n '/datarootdir/ {
13024 ' $ac_file_inputs` in
13025 *datarootdir*) ac_datarootdir_seen=yes;;
13026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13027 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13028 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13030 cat >>$CONFIG_STATUS <<_ACEOF
13031 ac_datarootdir_hack='
13032 s&@datadir@&$datadir&g
13033 s&@docdir@&$docdir&g
13034 s&@infodir@&$infodir&g
13035 s&@localedir@&$localedir&g
13036 s&@mandir@&$mandir&g
13037 s&\\\${datarootdir}&$datarootdir&g' ;;
13041 # Neutralize VPATH when `$srcdir' = `.'.
13042 # Shell code in configure.ac might set extrasub.
13043 # FIXME: do we really want to maintain this feature?
13044 cat >>$CONFIG_STATUS <<_ACEOF
13048 cat >>$CONFIG_STATUS <<\_ACEOF
13050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13051 s&@configure_input@&$configure_input&;t t
13052 s&@top_builddir@&$ac_top_builddir_sub&;t t
13053 s&@srcdir@&$ac_srcdir&;t t
13054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13055 s&@top_srcdir@&$ac_top_srcdir&;t t
13056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13057 s&@builddir@&$ac_builddir&;t t
13058 s&@abs_builddir@&$ac_abs_builddir&;t t
13059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13060 s&@INSTALL@&$ac_INSTALL&;t t
13061 $ac_datarootdir_hack
13062 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13067 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13068 which seems to be undefined. Please make sure it is defined." >&5
13069 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13070 which seems to be undefined. Please make sure it is defined." >&2;}
13074 -) cat "$tmp/out"; rm -f "$tmp/out";;
13075 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13084 # Transform confdefs.h into a sed script `conftest.defines', that
13085 # substitutes the proper values into config.h.in to produce config.h.
13086 rm -f conftest.defines conftest.tail
13087 # First, append a space to every undef/define line, to ease matching.
13088 echo 's/$/ /' >conftest.defines
13089 # Then, protect against being on the right side of a sed subst, or in
13090 # an unquoted here document, in config.status. If some macros were
13091 # called several times there might be several #defines for the same
13092 # symbol, which is useless. But do not sort them, since the last
13093 # AC_DEFINE must be honored.
13094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13095 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13096 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13097 # PARAMS is the parameter list in the macro definition--in most cases, it's
13098 # just an empty string.
13099 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13100 ac_dB='\\)[ (].*,\\1define\\2'
13108 s/^[ ]*#[ ]*define[ ][ ]*//
13113 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13114 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13115 ' >>conftest.defines
13117 # Remove the space that was appended to ease matching.
13118 # Then replace #undef with comments. This is necessary, for
13119 # example, in the case of _POSIX_SOURCE, which is predefined and required
13120 # on some systems where configure will not decide to define it.
13121 # (The regexp can be short, since the line contains either #define or #undef.)
13123 s,^[ #]*u.*,/* & */,' >>conftest.defines
13125 # Break up conftest.defines:
13126 ac_max_sed_lines=50
13128 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13129 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13130 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13132 ac_in='$ac_file_inputs'
13133 ac_out='"$tmp/out1"'
13134 ac_nxt='"$tmp/out2"'
13138 # Write a here document:
13139 cat >>$CONFIG_STATUS <<_ACEOF
13140 # First, check the format of the line:
13141 cat >"\$tmp/defines.sed" <<\\CEOF
13142 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13143 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13147 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13149 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13150 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13151 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13152 grep . conftest.tail >/dev/null || break
13153 rm -f conftest.defines
13154 mv conftest.tail conftest.defines
13156 rm -f conftest.defines conftest.tail
13158 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13159 cat >>$CONFIG_STATUS <<\_ACEOF
13160 if test x"$ac_file" != x-; then
13161 echo "/* $configure_input */" >"$tmp/config.h"
13162 cat "$ac_result" >>"$tmp/config.h"
13163 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13165 echo "$as_me: $ac_file is unchanged" >&6;}
13168 mv "$tmp/config.h" $ac_file
13171 echo "/* $configure_input */"
13183 { (exit 0); exit 0; }
13185 chmod +x $CONFIG_STATUS
13186 ac_clean_files=$ac_clean_files_save
13189 # configure is writing to config.log, and then calls config.status.
13190 # config.status does its own redirection, appending to config.log.
13191 # Unfortunately, on DOS this fails, as config.log is still kept open
13192 # by configure, so config.status won't be able to write to it; its
13193 # output is simply discarded. So we exec the FD to /dev/null,
13194 # effectively closing config.log, so it can be properly (re)opened and
13195 # appended to by config.status. When coming back to configure, we
13196 # need to make the FD available again.
13197 if test "$no_create" != yes; then
13199 ac_config_status_args=
13200 test "$silent" = yes &&
13201 ac_config_status_args="$ac_config_status_args --quiet"
13203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13206 # would make configure fail if this is the last instruction.
13207 $ac_cs_success || { (exit 1); exit 1; }
13211 if test -f .devel ; then