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
708 ac_precious_vars='build_alias
719 # Initialize some variables set by options.
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
731 program_transform_name=s,x,x,
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
828 -docdir | --docdir | --docdi | --doc | --do)
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
860 -help | --help | --hel | --he | -h)
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 # Obsolete; use --without-fp.
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 -psdir | --psdir | --psdi | --psd | --ps)
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1009 -site=* | --site=* | --sit=*)
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1054 # Obsolete; use --with-x.
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1122 target=$target_alias
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138 test "$silent" = yes && exec 6>/dev/null
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1183 ac_srcdir_defaulted=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 # Report the --help message.
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1219 \`configure' configures this package to adapt to many kinds of systems.
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1226 Defaults for the options are specified in brackets.
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1250 For better control, use the options below.
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1277 --build=BUILD configure for building on BUILD [guessed]
1278 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1279 --target=TARGET configure for building compilers for TARGET [HOST]
1283 if test -n "$ac_init_help"; then
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-largefile omit support for large files
1291 --disable-protochain disable \"protochain\" insn
1292 --enable-ipv6 build IPv6-capable version [default=yes, if
1293 getaddrinfo available]
1294 --enable-optimizer-dbg build optimizer debugging code
1295 --enable-yydebug build parser debugging code
1296 --enable-bluetooth enable Bluetooth support [default=yes, if support
1298 --enable-can enable CAN support [default=yes, if support
1302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1304 --without-gcc don't use gcc
1305 --with-sita include SITA support
1306 --with-pcap=TYPE use packet capture TYPE
1307 --without-libnl disable libnl support [default=yes, on Linux, if
1309 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1310 default="yes" on BSD and Linux if present]
1311 --with-dag-includes=DIR Endace DAG include directory
1312 --with-dag-libraries=DIR
1313 Endace DAG library directory
1314 --with-septel[=DIR] include Septel support (located in directory DIR, if
1315 supplied). [default=yes, on Linux, if present]
1316 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1317 default="yes" on BSD and Linux if present]
1318 --with-snf-includes=DIR Myricom SNF include directory
1319 --with-snf-libraries=DIR
1320 Myricom SNF library directory
1321 --without-flex don't use flex
1322 --without-bison don't use bison
1324 Some influential environment variables:
1325 CC C compiler command
1326 CFLAGS C compiler flags
1327 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1328 nonstandard directory <lib dir>
1329 LIBS libraries to pass to the linker, e.g. -l<library>
1330 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1331 you have headers in a nonstandard directory <include dir>
1334 Use these variables to override the choices made by `configure' or to help
1335 it to find libraries and programs with nonstandard names/locations.
1341 if test "$ac_init_help" = "recursive"; then
1342 # If there are subdirs, report their specific --help.
1343 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344 test -d "$ac_dir" || continue
1348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1351 # A ".." for each directory in $ac_dir_suffix.
1352 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1353 case $ac_top_builddir_sub in
1354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 ac_abs_top_builddir=$ac_pwd
1359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360 # for backward compatibility:
1361 ac_top_builddir=$ac_top_build_prefix
1364 .) # We are building in place.
1366 ac_top_srcdir=$ac_top_builddir_sub
1367 ac_abs_top_srcdir=$ac_pwd ;;
1368 [\\/]* | ?:[\\/]* ) # Absolute name.
1369 ac_srcdir=$srcdir$ac_dir_suffix;
1370 ac_top_srcdir=$srcdir
1371 ac_abs_top_srcdir=$srcdir ;;
1373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374 ac_top_srcdir=$ac_top_build_prefix$srcdir
1375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1379 cd "$ac_dir" || { ac_status=$?; continue; }
1380 # Check for guested configure.
1381 if test -f "$ac_srcdir/configure.gnu"; then
1383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384 elif test -f "$ac_srcdir/configure"; then
1386 $SHELL "$ac_srcdir/configure" --help=recursive
1388 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1390 cd "$ac_pwd" || { ac_status=$?; break; }
1394 test -n "$ac_init_help" && exit $ac_status
1395 if $ac_init_version; then
1398 generated by GNU Autoconf 2.61
1400 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1401 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1402 This configure script is free software; the Free Software Foundation
1403 gives unlimited permission to copy, distribute and modify it.
1407 cat >config.log <<_ACEOF
1408 This file contains any messages produced by compilers while
1409 running configure, to aid debugging if configure makes a mistake.
1411 It was created by $as_me, which was
1412 generated by GNU Autoconf 2.61. Invocation command line was
1424 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1425 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1426 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1427 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1428 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1430 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1431 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1433 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1434 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1435 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1436 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1437 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1438 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1439 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 test -z "$as_dir" && as_dir=.
1448 echo "PATH: $as_dir"
1464 # Keep a trace of the command line.
1465 # Strip out --no-create and --no-recursion so they do not pile up.
1466 # Strip out --silent because we don't want to record it for future runs.
1467 # Also quote any args containing shell meta-characters.
1468 # Make two passes to allow for proper duplicate-argument suppression.
1472 ac_must_keep_next=false
1478 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1480 | -silent | --silent | --silen | --sile | --sil)
1483 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1488 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1489 if test $ac_must_keep_next = true; then
1490 ac_must_keep_next=false # Got value, back to normal.
1493 *=* | --config-cache | -C | -disable-* | --disable-* \
1494 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1495 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1496 | -with-* | --with-* | -without-* | --without-* | --x)
1497 case "$ac_configure_args0 " in
1498 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501 -* ) ac_must_keep_next=true ;;
1504 ac_configure_args="$ac_configure_args '$ac_arg'"
1509 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1510 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1512 # When interrupted or exit'd, cleanup temporary files, and complete
1513 # config.log. We remove comments because anyway the quotes in there
1514 # would cause problems or look ugly.
1515 # WARNING: Use '\'' to represent an apostrophe within the trap.
1516 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1517 trap 'exit_status=$?
1518 # Save into config.log some information that might help in debugging.
1523 ## ---------------- ##
1524 ## Cache variables. ##
1525 ## ---------------- ##
1528 # The following way of writing the cache mishandles newlines in values,
1530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1531 eval ac_val=\$$ac_var
1535 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1536 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539 _ | IFS | as_nl) ;; #(
1540 *) $as_unset $ac_var ;;
1545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1546 *${as_nl}ac_space=\ *)
1548 "s/'\''/'\''\\\\'\'''\''/g;
1549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1560 ## ----------------- ##
1561 ## Output variables. ##
1562 ## ----------------- ##
1565 for ac_var in $ac_subst_vars
1567 eval ac_val=\$$ac_var
1569 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1571 echo "$ac_var='\''$ac_val'\''"
1575 if test -n "$ac_subst_files"; then
1577 ## ------------------- ##
1578 ## File substitutions. ##
1579 ## ------------------- ##
1582 for ac_var in $ac_subst_files
1584 eval ac_val=\$$ac_var
1586 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 echo "$ac_var='\''$ac_val'\''"
1593 if test -s confdefs.h; then
1603 test "$ac_signal" != 0 &&
1604 echo "$as_me: caught signal $ac_signal"
1605 echo "$as_me: exit $exit_status"
1607 rm -f core *.core core.conftest.* &&
1608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611 for ac_signal in 1 2 13 15; do
1612 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1617 rm -f -r conftest* confdefs.h
1619 # Predefined preprocessor variables.
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_NAME "$PACKAGE_NAME"
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_STRING "$PACKAGE_STRING"
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1646 # Let the site file select an alternate cache file if it wants to.
1647 # Prefer explicitly selected file to automatically selected ones.
1648 if test -n "$CONFIG_SITE"; then
1649 set x "$CONFIG_SITE"
1650 elif test "x$prefix" != xNONE; then
1651 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1653 set x "$ac_default_prefix/share/config.site" \
1654 "$ac_default_prefix/etc/config.site"
1659 if test -r "$ac_site_file"; then
1660 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1661 echo "$as_me: loading site script $ac_site_file" >&6;}
1662 sed 's/^/| /' "$ac_site_file" >&5
1667 if test -r "$cache_file"; then
1668 # Some versions of bash will fail to source /dev/null (special
1669 # files actually), so we avoid doing that.
1670 if test -f "$cache_file"; then
1671 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1672 echo "$as_me: loading cache $cache_file" >&6;}
1674 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1675 *) . "./$cache_file";;
1679 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1680 echo "$as_me: creating cache $cache_file" >&6;}
1684 # Check that the precious variables saved in the cache have kept the same
1686 ac_cache_corrupted=false
1687 for ac_var in $ac_precious_vars; do
1688 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1689 eval ac_new_set=\$ac_env_${ac_var}_set
1690 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1691 eval ac_new_val=\$ac_env_${ac_var}_value
1692 case $ac_old_set,$ac_new_set in
1694 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1695 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1696 ac_cache_corrupted=: ;;
1698 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1700 ac_cache_corrupted=: ;;
1703 if test "x$ac_old_val" != "x$ac_new_val"; then
1704 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1705 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1706 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1707 echo "$as_me: former value: $ac_old_val" >&2;}
1708 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1709 echo "$as_me: current value: $ac_new_val" >&2;}
1710 ac_cache_corrupted=:
1713 # Pass precious variables to config.status.
1714 if test "$ac_new_set" = set; then
1716 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 *) ac_arg=$ac_var=$ac_new_val ;;
1719 case " $ac_configure_args " in
1720 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1721 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1725 if $ac_cache_corrupted; then
1726 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1727 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1728 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1729 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1730 { (exit 1); exit 1; }; }
1750 ac_cpp='$CPP $CPPFLAGS'
1751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1759 if test -f "$ac_dir/install-sh"; then
1761 ac_install_sh="$ac_aux_dir/install-sh -c"
1763 elif test -f "$ac_dir/install.sh"; then
1765 ac_install_sh="$ac_aux_dir/install.sh -c"
1767 elif test -f "$ac_dir/shtool"; then
1769 ac_install_sh="$ac_aux_dir/shtool install -c"
1773 if test -z "$ac_aux_dir"; then
1774 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1775 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1776 { (exit 1); exit 1; }; }
1779 # These three variables are undocumented and unsupported,
1780 # and are intended to be withdrawn in a future Autoconf release.
1781 # They can cause serious problems if a builder's source tree is in a directory
1782 # whose full name contains unusual characters.
1783 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1784 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1785 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1788 # Make sure we can run config.sub.
1789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1790 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1791 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1792 { (exit 1); exit 1; }; }
1794 { echo "$as_me:$LINENO: checking build system type" >&5
1795 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1796 if test "${ac_cv_build+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 ac_build_alias=$build_alias
1800 test "x$ac_build_alias" = x &&
1801 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1802 test "x$ac_build_alias" = x &&
1803 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1804 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1805 { (exit 1); exit 1; }; }
1806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1807 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1808 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1809 { (exit 1); exit 1; }; }
1812 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1813 echo "${ECHO_T}$ac_cv_build" >&6; }
1814 case $ac_cv_build in
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1817 echo "$as_me: error: invalid value of canonical build" >&2;}
1818 { (exit 1); exit 1; }; };;
1821 ac_save_IFS=$IFS; IFS='-'
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1834 { echo "$as_me:$LINENO: checking host system type" >&5
1835 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1836 if test "${ac_cv_host+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test "x$host_alias" = x; then
1840 ac_cv_host=$ac_cv_build
1842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1843 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1844 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1845 { (exit 1); exit 1; }; }
1849 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1850 echo "${ECHO_T}$ac_cv_host" >&6; }
1853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1854 echo "$as_me: error: invalid value of canonical host" >&2;}
1855 { (exit 1); exit 1; }; };;
1858 ac_save_IFS=$IFS; IFS='-'
1864 # Remember, the first character of IFS is used to create $*,
1865 # except with old shells:
1868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1871 { echo "$as_me:$LINENO: checking target system type" >&5
1872 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1873 if test "${ac_cv_target+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test "x$target_alias" = x; then
1877 ac_cv_target=$ac_cv_host
1879 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1880 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1882 { (exit 1); exit 1; }; }
1886 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1887 echo "${ECHO_T}$ac_cv_target" >&6; }
1888 case $ac_cv_target in
1890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1891 echo "$as_me: error: invalid value of canonical target" >&2;}
1892 { (exit 1); exit 1; }; };;
1894 target=$ac_cv_target
1895 ac_save_IFS=$IFS; IFS='-'
1901 # Remember, the first character of IFS is used to create $*,
1902 # except with old shells:
1905 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1908 # The aliases save the names the user supplied, while $host etc.
1909 # will get canonicalized.
1910 test -n "$target_alias" &&
1911 test "$program_prefix$program_suffix$program_transform_name" = \
1913 program_prefix=${target_alias}-
1921 # Check whether --with-gcc was given.
1922 if test "${with_gcc+set}" = set; then
1928 if test "${srcdir}" != "." ; then
1929 V_INCLS="-I\$(srcdir)"
1931 if test "${CFLAGS+set}" = set; then
1932 LBL_CFLAGS="$CFLAGS"
1934 if test -z "$CC" ; then
1938 # Extract the first word of "shlicc2", so it can be a program name with args.
1939 set dummy shlicc2; ac_word=$2
1940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$SHLICC2"; then
1946 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1955 ac_cv_prog_SHLICC2="yes"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1966 SHLICC2=$ac_cv_prog_SHLICC2
1967 if test -n "$SHLICC2"; then
1968 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1969 echo "${ECHO_T}$SHLICC2" >&6; }
1971 { echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6; }
1976 if test $SHLICC2 = yes ; then
1983 if test -z "$CC" -a "$with_gcc" = no ; then
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2032 if test -z "$ac_cv_prog_CC"; then
2034 # Extract the first word of "gcc", so it can be a program name with args.
2035 set dummy gcc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062 if test -n "$ac_ct_CC"; then
2063 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064 echo "${ECHO_T}$ac_ct_CC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2070 if test "x$ac_ct_CC" = x; then
2073 case $cross_compiling:$ac_tool_warned in
2075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2076 whose name does not start with the host triplet. If you think this
2077 configuration is useful to you, please write to autoconf@gnu.org." >&5
2078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2079 whose name does not start with the host triplet. If you think this
2080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2081 ac_tool_warned=yes ;;
2089 if test -z "$CC"; then
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_prog_CC="${ac_tool_prefix}cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 if test -n "$CC"; then
2120 { echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6; }
2123 { echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6; }
2130 if test -z "$CC"; then
2131 # Extract the first word of "cc", so it can be a program name with args.
2132 set dummy cc; ac_word=$2
2133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2150 ac_prog_rejected=yes
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test $ac_prog_rejected = yes; then
2162 # We found a bogon in the path, so make sure we never use it.
2163 set dummy $ac_cv_prog_CC
2165 if test $# != 0; then
2166 # We chose a different compiler from the bogus one.
2167 # However, it has the same basename, so the bogon will be chosen
2168 # first if we set CC to just the basename; use the full file name.
2170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2176 if test -n "$CC"; then
2177 { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2186 if test -z "$CC"; then
2187 if test -n "$ac_tool_prefix"; then
2188 for ac_prog in cl.exe
2190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2227 test -n "$CC" && break
2230 if test -z "$CC"; then
2232 for ac_prog in cl.exe
2234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2235 set dummy $ac_prog; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$ac_ct_CC"; then
2242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_ac_ct_CC="$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6; }
2266 { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2271 test -n "$ac_ct_CC" && break
2274 if test "x$ac_ct_CC" = x; then
2277 case $cross_compiling:$ac_tool_warned in
2279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2280 whose name does not start with the host triplet. If you think this
2281 configuration is useful to you, please write to autoconf@gnu.org." >&5
2282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2285 ac_tool_warned=yes ;;
2294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: no acceptable C compiler found in \$PATH
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2300 # Provide some information about the compiler.
2301 echo "$as_me:$LINENO: checking for C compiler version" >&5
2302 ac_compiler=`set X $ac_compile; echo $2`
2303 { (ac_try="$ac_compiler --version >&5"
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2309 (eval "$ac_compiler --version >&5") 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2313 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 ac_clean_files_save=$ac_clean_files
2350 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2351 # Try to create an executable without -o first, disregard a.out.
2352 # It will help us diagnose broken compilers, and finding out an intuition
2354 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2355 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2356 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2358 # List of possible output files, starting from the most likely.
2359 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2360 # only as a last resort. b.out is created by i960 compilers.
2361 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2363 # The IRIX 6 linker writes into existing files which may not be
2364 # executable, retaining their permissions. Remove them first so a
2365 # subsequent execution test works.
2367 for ac_file in $ac_files
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2371 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2376 if { (ac_try="$ac_link_default"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_link_default") 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; then
2386 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2387 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2388 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2389 # so that the user can short-circuit this test for compilers unknown to
2391 for ac_file in $ac_files ''
2393 test -f "$ac_file" || continue
2395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2398 # We found the default executable, but exeext='' is most
2402 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 # We set ac_cv_exeext here because the later test for it is not
2407 # safe: cross compilers may not add the suffix if given an `-o'
2408 # argument, so we may need to know it at that point already.
2409 # Even if this section looks crufty: it has the advantage of
2416 test "$ac_cv_exeext" = no && ac_cv_exeext=
2422 { echo "$as_me:$LINENO: result: $ac_file" >&5
2423 echo "${ECHO_T}$ac_file" >&6; }
2424 if test -z "$ac_file"; then
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: C compiler cannot create executables
2431 See \`config.log' for more details." >&2;}
2432 { (exit 77); exit 77; }; }
2435 ac_exeext=$ac_cv_exeext
2437 # Check that the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2440 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2441 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2442 # If not cross compiling, check that we can run a simple program.
2443 if test "$cross_compiling" != yes; then
2444 if { ac_try='./$ac_file'
2445 { (case "(($ac_try" in
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_try") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 if test "$cross_compiling" = maybe; then
2459 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot run C compiled programs.
2463 If you meant to cross compile, use \`--host'.
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2469 { echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6; }
2472 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2473 ac_clean_files=$ac_clean_files_save
2474 # Check that the compiler produces executables we can run. If not, either
2475 # the compiler is broken, or we cross compile.
2476 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2478 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479 echo "${ECHO_T}$cross_compiling" >&6; }
2481 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2483 if { (ac_try="$ac_link"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_link") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 for ac_file in conftest.exe conftest conftest.*; do
2498 test -f "$ac_file" || continue
2500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2514 rm -f conftest$ac_cv_exeext
2515 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2521 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2523 if test "${ac_cv_objext+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 rm -f conftest.o conftest.obj
2542 if { (ac_try="$ac_compile"
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_compile") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; then
2552 for ac_file in conftest.o conftest.obj conftest.*; do
2553 test -f "$ac_file" || continue;
2555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2571 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2573 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2574 echo "${ECHO_T}$ac_cv_objext" >&6; }
2575 OBJEXT=$ac_cv_objext
2577 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2579 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (ac_try="$ac_compile"
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_compile") 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } && {
2614 test -z "$ac_c_werror_flag" ||
2615 test ! -s conftest.err
2616 } && test -s conftest.$ac_objext; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 ac_save_c_werror_flag=$ac_c_werror_flag
2640 ac_c_werror_flag=yes
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } && {
2672 test -z "$ac_c_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest.$ac_objext; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_c_werror_flag=$ac_save_c_werror_flag
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_c_werror_flag=$ac_save_c_werror_flag
2769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2771 if test "$ac_test_CFLAGS" = set; then
2772 CFLAGS=$ac_save_CFLAGS
2773 elif test $ac_cv_prog_cc_g = yes; then
2774 if test "$GCC" = yes; then
2780 if test "$GCC" = yes; then
2786 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2787 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_c89+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_cv_prog_cc_c89=no
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2801 #include <sys/types.h>
2802 #include <sys/stat.h>
2803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2804 struct buf { int x; };
2805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2806 static char *e (p, i)
2812 static char *f (char * (*g) (char **, int), char **p, ...)
2817 s = g (p, va_arg (v,int));
2822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2823 function prototypes and stuff, but not '\xHH' hex character constants.
2824 These don't provoke an error unfortunately, instead are silently treated
2825 as 'x'. The following induces an error, until -std is added to get
2826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2827 array size at least. It's necessary to write '\x00'==0 to get something
2828 that's true only with -std. */
2829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2832 inside strings and character constants. */
2834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2836 int test (int i, double x);
2837 struct s1 {int (*f) (int a);};
2838 struct s2 {int (*f) (double a);};
2839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2853 CC="$ac_save_CC $ac_arg"
2854 rm -f conftest.$ac_objext
2855 if { (ac_try="$ac_compile"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_compile") 2>conftest.er1
2863 grep -v '^ *+' conftest.er1 >conftest.err
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } && {
2868 test -z "$ac_c_werror_flag" ||
2869 test ! -s conftest.err
2870 } && test -s conftest.$ac_objext; then
2871 ac_cv_prog_cc_c89=$ac_arg
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2879 rm -f core conftest.err conftest.$ac_objext
2880 test "x$ac_cv_prog_cc_c89" != "xno" && break
2882 rm -f conftest.$ac_ext
2887 case "x$ac_cv_prog_cc_c89" in
2889 { echo "$as_me:$LINENO: result: none needed" >&5
2890 echo "${ECHO_T}none needed" >&6; } ;;
2892 { echo "$as_me:$LINENO: result: unsupported" >&5
2893 echo "${ECHO_T}unsupported" >&6; } ;;
2895 CC="$CC $ac_cv_prog_cc_c89"
2896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2897 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 if test "$GCC" = yes ; then
2912 if test "$SHLICC2" = yes ; then
2913 ac_cv_lbl_gcc_vers=2
2916 { echo "$as_me:$LINENO: checking gcc version" >&5
2917 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2918 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2922 sed -e '/^gcc version /!d' \
2923 -e 's/^gcc version //' \
2924 -e 's/ .*//' -e 's/^[^0-9]*//' \
2928 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2929 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2930 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2935 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2936 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2937 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <sys/types.h>
2951 int frob(int, char *)
2956 rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>conftest.er1
2965 grep -v '^ *+' conftest.er1 >conftest.err
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } && {
2970 test -z "$ac_c_werror_flag" ||
2971 test ! -s conftest.err
2972 } && test -s conftest.$ac_objext; then
2973 ac_cv_lbl_cc_ansi_prototypes=yes
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 ac_cv_lbl_cc_ansi_prototypes=no
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2985 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2986 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2990 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2991 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2992 savedcflags="$CFLAGS"
2993 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2994 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <sys/types.h>
3007 int frob(int, char *)
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } && {
3026 test -z "$ac_c_werror_flag" ||
3027 test ! -s conftest.err
3028 } && test -s conftest.$ac_objext; then
3029 ac_cv_lbl_cc_hpux_cc_aa=yes
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_cv_lbl_cc_hpux_cc_aa=no
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3041 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3042 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3043 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3044 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3045 { (exit 1); exit 1; }; }
3047 CFLAGS="$savedcflags"
3048 V_CCOPT="-Aa $V_CCOPT"
3050 cat >>confdefs.h <<\_ACEOF
3051 #define _HPUX_SOURCE 1
3057 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3058 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3059 savedcflags="$CFLAGS"
3061 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #include <sys/types.h>
3074 int frob(int, char *)
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3096 ac_cv_lbl_cc_osf1_cc_std1=yes
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 ac_cv_lbl_cc_osf1_cc_std1=no
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3108 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3109 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3110 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3111 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3112 { (exit 1); exit 1; }; }
3114 CFLAGS="$savedcflags"
3115 V_CCOPT="-std1 $V_CCOPT"
3119 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3120 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3121 { (exit 1); exit 1; }; }
3125 V_INCLS="$V_INCLS -I/usr/local/include"
3126 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3131 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3136 # Presumed to be DEC OSF/1, Digital UNIX, or
3139 V_CCOPT="$V_CCOPT -g3"
3143 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3144 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3145 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154 #include <sys/types.h>
3158 struct a { int b; };
3159 void c(const struct a *)
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_lbl_cc_const_proto=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_cv_lbl_cc_const_proto=no
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3193 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3194 if test $ac_cv_lbl_cc_const_proto = no ; then
3196 cat >>confdefs.h <<\_ACEOF
3206 if test "$GCC" = yes ; then
3208 # On platforms where we build a shared library:
3210 # add options to generate position-independent code,
3211 # if necessary (it's the default in AIX and Darwin/OS X);
3213 # define option to set the soname of the shared library,
3214 # if the OS supports that;
3216 # add options to specify, at link time, a directory to
3217 # add to the run-time search path, if that's necessary.
3219 V_SHLIB_CMD="\$(CC)"
3220 V_SHLIB_OPT="-shared"
3226 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3228 # Platforms where the linker is the GNU linker
3229 # or accepts command-line arguments like
3230 # those the GNU linker accepts.
3232 V_CCOPT="$V_CCOPT -fpic"
3233 V_SONAME_OPT="-Wl,-soname,"
3234 V_RPATH_OPT="-Wl,-rpath,"
3238 V_CCOPT="$V_CCOPT -fpic"
3240 # XXX - this assumes GCC is using the HP linker,
3241 # rather than the GNU linker, and that the "+h"
3242 # option is used on all HP-UX platforms, both .sl
3245 V_SONAME_OPT="-Wl,+h,"
3247 # By default, directories specifed with -L
3248 # are added to the run-time search path, so
3249 # we don't add them in pcap-config.
3254 V_CCOPT="$V_CCOPT -fpic"
3256 # XXX - this assumes GCC is using the Sun linker,
3257 # rather than the GNU linker.
3259 V_SONAME_OPT="-Wl,-h,"
3260 V_RPATH_OPT="-Wl,-R,"
3265 # Set the appropriate compiler flags and, on platforms
3266 # where we build a shared library:
3268 # add options to generate position-independent code,
3269 # if necessary (it's the default in Darwin/OS X);
3271 # if we generate ".so" shared libraries, define the
3272 # appropriate options for building the shared library;
3274 # add options to specify, at link time, a directory to
3275 # add to the run-time search path, if that's necessary.
3277 # Note: spaces after V_SONAME_OPT are significant; on
3278 # some platforms the soname is passed with a GCC-like
3279 # "-Wl,-soname,{soname}" option, with the soname part
3280 # of the option, while on other platforms the C compiler
3281 # driver takes it as a regular option with the soname
3282 # following the option. The same applies to V_RPATH_OPT.
3287 V_SHLIB_CMD="\$(CC)"
3288 V_SHLIB_OPT="-G -bnoentry -bexpall"
3291 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3295 V_CCOPT="$V_CCOPT -fpic"
3296 V_SHLIB_CMD="\$(CC)"
3297 V_SHLIB_OPT="-shared"
3298 V_SONAME_OPT="-Wl,-soname,"
3299 V_RPATH_OPT="-Wl,-rpath,"
3303 V_CCOPT="$V_CCOPT +z"
3304 V_SHLIB_CMD="\$(LD)"
3308 # By default, directories specifed with -L
3309 # are added to the run-time search path, so
3310 # we don't add them in pcap-config.
3316 # Presumed to be DEC OSF/1, Digital UNIX, or
3319 V_SHLIB_CMD="\$(CC)"
3320 V_SHLIB_OPT="-shared"
3321 V_SONAME_OPT="-soname "
3322 V_RPATH_OPT="-rpath "
3326 V_CCOPT="$V_CCOPT -Kpic"
3327 V_SHLIB_CMD="\$(CC)"
3335 { echo "$as_me:$LINENO: checking for inline" >&5
3336 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3337 save_CFLAGS="$CFLAGS"
3339 if test "${ac_cv_lbl_inline+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 for ac_lbl_inline in inline __inline__ __inline
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #define inline $ac_lbl_inline
3354 static inline struct iltest *foo(void);
3360 static inline struct iltest *
3363 static struct iltest xxx;
3375 rm -f conftest.$ac_objext
3376 if { (ac_try="$ac_compile"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
3392 ac_lbl_cc_inline=yes
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 if test "$ac_lbl_cc_inline" = yes ; then
3405 if test "$ac_lbl_cc_inline" = yes ; then
3406 ac_cv_lbl_inline=$ac_lbl_inline
3410 CFLAGS="$save_CFLAGS"
3411 if test ! -z "$ac_cv_lbl_inline" ; then
3412 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3413 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3415 { echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6; }
3419 cat >>confdefs.h <<_ACEOF
3420 #define inline $ac_cv_lbl_inline
3424 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3425 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3426 if test "${ac_cv___attribute__+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3439 static void foo(void) __attribute__ ((noreturn));
3448 main(int argc, char **argv)
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3471 ac_cv___attribute__=yes
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 ac_cv___attribute__=no
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 if test "$ac_cv___attribute__" = "yes"; then
3484 cat >>confdefs.h <<\_ACEOF
3485 #define HAVE___ATTRIBUTE__ 1
3488 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3490 V_DEFS="$V_DEFS -D_U_=\"\""
3492 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3493 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3502 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3503 # On Suns, sometimes $CPP names a directory.
3504 if test -n "$CPP" && test -d "$CPP"; then
3507 if test -z "$CPP"; then
3508 if test "${ac_cv_prog_CPP+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 # Double quotes because CPP needs to be expanded
3512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3515 for ac_c_preproc_warn_flag in '' yes
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
3521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3530 # include <limits.h>
3532 # include <assert.h>
3536 if { (ac_try="$ac_cpp conftest.$ac_ext"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 # Broken: fails on valid input.
3561 rm -f conftest.err conftest.$ac_ext
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <ac_nonexistent.h>
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3589 # Broken: success on invalid input.
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # Passes both tests.
3600 rm -f conftest.err conftest.$ac_ext
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.err conftest.$ac_ext
3605 if $ac_preproc_ok; then
3617 { echo "$as_me:$LINENO: result: $CPP" >&5
3618 echo "${ECHO_T}$CPP" >&6; }
3620 for ac_c_preproc_warn_flag in '' yes
3622 # Use a header file that comes with gcc, so configuring glibc
3623 # with a fresh cross-compiler works.
3624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625 # <limits.h> exists even on freestanding compilers.
3626 # On the NeXT, cc -E runs the code through the compiler's parser,
3627 # not just through cpp. "Syntax error" is here to catch this case.
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3635 # include <limits.h>
3637 # include <assert.h>
3641 if { (ac_try="$ac_cpp conftest.$ac_ext"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev/null && {
3654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 # Broken: fails on valid input.
3666 rm -f conftest.err conftest.$ac_ext
3668 # OK, works on sane cases. Now check whether nonexistent headers
3669 # can be detected and how.
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <ac_nonexistent.h>
3678 if { (ac_try="$ac_cpp conftest.$ac_ext"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1 >conftest.err
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } >/dev/null && {
3691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3694 # Broken: success on invalid input.
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 # Passes both tests.
3705 rm -f conftest.err conftest.$ac_ext
3708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709 rm -f conftest.err conftest.$ac_ext
3710 if $ac_preproc_ok; then
3713 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3714 See \`config.log' for more details." >&5
3715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3716 See \`config.log' for more details." >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3728 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3729 if test "${ac_cv_path_GREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 # Extract the first word of "grep ggrep" to use in msg output
3733 if test -z "$GREP"; then
3734 set dummy grep ggrep; ac_prog_name=$2
3735 if test "${ac_cv_path_GREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_path_GREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in grep ggrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3749 # Check for GNU ac_path_GREP and select it if it is found.
3750 # Check for GNU $ac_path_GREP
3751 case `"$ac_path_GREP" --version 2>&1` in
3753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'GREP' >> "conftest.nl"
3763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765 ac_count=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_GREP="$ac_path_GREP"
3769 ac_path_GREP_max=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 $ac_path_GREP_found && break 3
3788 GREP="$ac_cv_path_GREP"
3789 if test -z "$GREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3796 ac_cv_path_GREP=$GREP
3801 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3802 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3803 GREP="$ac_cv_path_GREP"
3806 { echo "$as_me:$LINENO: checking for egrep" >&5
3807 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3808 if test "${ac_cv_path_EGREP+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812 then ac_cv_path_EGREP="$GREP -E"
3814 # Extract the first word of "egrep" to use in msg output
3815 if test -z "$EGREP"; then
3816 set dummy egrep; ac_prog_name=$2
3817 if test "${ac_cv_path_EGREP+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 ac_path_EGREP_found=false
3821 # Loop through the user's path and test for each of PROGNAME-LIST
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in egrep; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3831 # Check for GNU ac_path_EGREP and select it if it is found.
3832 # Check for GNU $ac_path_EGREP
3833 case `"$ac_path_EGREP" --version 2>&1` in
3835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3838 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3841 cat "conftest.in" "conftest.in" >"conftest.tmp"
3842 mv "conftest.tmp" "conftest.in"
3843 cp "conftest.in" "conftest.nl"
3844 echo 'EGREP' >> "conftest.nl"
3845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3847 ac_count=`expr $ac_count + 1`
3848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3849 # Best one so far, save it but keep looking for a better one
3850 ac_cv_path_EGREP="$ac_path_EGREP"
3851 ac_path_EGREP_max=$ac_count
3853 # 10*(2^10) chars as input seems more than enough
3854 test $ac_count -gt 10 && break
3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3860 $ac_path_EGREP_found && break 3
3870 EGREP="$ac_cv_path_EGREP"
3871 if test -z "$EGREP"; then
3872 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3873 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3874 { (exit 1); exit 1; }; }
3878 ac_cv_path_EGREP=$EGREP
3884 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3885 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3889 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3891 if test "${ac_cv_header_stdc+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 ac_cv_header_stdc=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_cv_header_stdc=no
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 if test $ac_cv_header_stdc = yes; then
3941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "memchr" >/dev/null 2>&1; then
3955 ac_cv_header_stdc=no
3961 if test $ac_cv_header_stdc = yes; then
3962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "free" >/dev/null 2>&1; then
3976 ac_cv_header_stdc=no
3982 if test $ac_cv_header_stdc = yes; then
3983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984 if test "$cross_compiling" = yes; then
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 #if ((' ' & 0x0FF) == 0x020)
3996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3999 # define ISLOWER(c) \
4000 (('a' <= (c) && (c) <= 'i') \
4001 || ('j' <= (c) && (c) <= 'r') \
4002 || ('s' <= (c) && (c) <= 'z'))
4003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4011 for (i = 0; i < 256; i++)
4012 if (XOR (islower (i), ISLOWER (i))
4013 || toupper (i) != TOUPPER (i))
4018 rm -f conftest$ac_exeext
4019 if { (ac_try="$ac_link"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_link") 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4029 { (case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_try") 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4040 echo "$as_me: program exited with status $ac_status" >&5
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4045 ac_cv_header_stdc=no
4047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4053 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4054 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4055 if test $ac_cv_header_stdc = yes; then
4057 cat >>confdefs.h <<\_ACEOF
4058 #define STDC_HEADERS 1
4063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4074 inttypes.h stdint.h unistd.h
4076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 $ac_includes_default
4090 #include <$ac_header>
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 eval "$as_ac_Header=yes"
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 eval "$as_ac_Header=no"
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_res=`eval echo '${'$as_ac_Header'}'`
4120 { echo "$as_me:$LINENO: result: $ac_res" >&5
4121 echo "${ECHO_T}$ac_res" >&6; }
4122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123 cat >>confdefs.h <<_ACEOF
4124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 for ac_header in sys/bitypes.h
4135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 ac_res=`eval echo '${'$as_ac_Header'}'`
4143 { echo "$as_me:$LINENO: result: $ac_res" >&5
4144 echo "${ECHO_T}$ac_res" >&6; }
4146 # Is the header compilable?
4147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 $ac_includes_default
4156 #include <$ac_header>
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compile") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } && {
4172 test -z "$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4174 } && test -s conftest.$ac_objext; then
4175 ac_header_compiler=yes
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_header_compiler=no
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4185 echo "${ECHO_T}$ac_header_compiler" >&6; }
4187 # Is the header present?
4188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <$ac_header>
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4214 ac_header_preproc=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_header_preproc=no
4222 rm -f conftest.err conftest.$ac_ext
4223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4224 echo "${ECHO_T}$ac_header_preproc" >&6; }
4226 # So? What about this header?
4227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4233 ac_header_preproc=yes
4236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 eval "$as_ac_Header=\$ac_header_preproc"
4258 ac_res=`eval echo '${'$as_ac_Header'}'`
4259 { echo "$as_me:$LINENO: result: $ac_res" >&5
4260 echo "${ECHO_T}$ac_res" >&6; }
4263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4264 cat >>confdefs.h <<_ACEOF
4265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4273 { echo "$as_me:$LINENO: checking for int8_t" >&5
4274 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4275 if test "${ac_cv_type_int8_t+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4285 #ifdef HAVE_SYS_BITYPES_H
4286 #include <sys/bitypes.h>
4289 typedef int8_t ac__type_new_;
4293 if ((ac__type_new_ *) 0)
4295 if (sizeof (ac__type_new_))
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_type_int8_t=yes
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 ac_cv_type_int8_t=no
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4329 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4330 if test $ac_cv_type_int8_t = yes; then
4334 cat >>confdefs.h <<\_ACEOF
4335 #define int8_t signed char
4340 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4341 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4342 if test "${ac_cv_type_u_int8_t+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 $ac_includes_default
4352 #ifdef HAVE_SYS_BITYPES_H
4353 #include <sys/bitypes.h>
4356 typedef u_int8_t ac__type_new_;
4360 if ((ac__type_new_ *) 0)
4362 if (sizeof (ac__type_new_))
4368 rm -f conftest.$ac_objext
4369 if { (ac_try="$ac_compile"
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest.$ac_objext; then
4385 ac_cv_type_u_int8_t=yes
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_type_u_int8_t=no
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4396 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4397 if test $ac_cv_type_u_int8_t = yes; then
4401 cat >>confdefs.h <<\_ACEOF
4402 #define u_int8_t unsigned char
4407 { echo "$as_me:$LINENO: checking for int16_t" >&5
4408 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4409 if test "${ac_cv_type_int16_t+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 typedef int16_t ac__type_new_;
4423 if ((ac__type_new_ *) 0)
4425 if (sizeof (ac__type_new_))
4431 rm -f conftest.$ac_objext
4432 if { (ac_try="$ac_compile"
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_compile") 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && {
4445 test -z "$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4447 } && test -s conftest.$ac_objext; then
4448 ac_cv_type_int16_t=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_cv_type_int16_t=no
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4459 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4460 if test $ac_cv_type_int16_t = yes; then
4464 cat >>confdefs.h <<\_ACEOF
4465 #define int16_t short
4468 $ac_includes_default
4469 #ifdef HAVE_SYS_BITYPES_H
4470 #include <sys/bitypes.h>
4474 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4475 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4476 if test "${ac_cv_type_u_int16_t+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4486 #ifdef HAVE_SYS_BITYPES_H
4487 #include <sys/bitypes.h>
4490 typedef u_int16_t ac__type_new_;
4494 if ((ac__type_new_ *) 0)
4496 if (sizeof (ac__type_new_))
4502 rm -f conftest.$ac_objext
4503 if { (ac_try="$ac_compile"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4519 ac_cv_type_u_int16_t=yes
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_cv_type_u_int16_t=no
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4530 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4531 if test $ac_cv_type_u_int16_t = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define u_int16_t unsigned short
4541 { echo "$as_me:$LINENO: checking for int32_t" >&5
4542 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4543 if test "${ac_cv_type_int32_t+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4553 #ifdef HAVE_SYS_BITYPES_H
4554 #include <sys/bitypes.h>
4557 typedef int32_t ac__type_new_;
4561 if ((ac__type_new_ *) 0)
4563 if (sizeof (ac__type_new_))
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest.$ac_objext; then
4586 ac_cv_type_int32_t=yes
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ac_cv_type_int32_t=no
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4597 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4598 if test $ac_cv_type_int32_t = yes; then
4602 cat >>confdefs.h <<\_ACEOF
4608 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4609 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4610 if test "${ac_cv_type_u_int32_t+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 $ac_includes_default
4620 #ifdef HAVE_SYS_BITYPES_H
4621 #include <sys/bitypes.h>
4624 typedef u_int32_t ac__type_new_;
4628 if ((ac__type_new_ *) 0)
4630 if (sizeof (ac__type_new_))
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_cv_type_u_int32_t=yes
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_cv_type_u_int32_t=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4664 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4665 if test $ac_cv_type_u_int32_t = yes; then
4669 cat >>confdefs.h <<\_ACEOF
4670 #define u_int32_t unsigned int
4675 { echo "$as_me:$LINENO: checking for int64_t" >&5
4676 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4677 if test "${ac_cv_type_int64_t+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 $ac_includes_default
4687 #ifdef HAVE_SYS_BITYPES_H
4688 #include <sys/bitypes.h>
4691 typedef int64_t ac__type_new_;
4695 if ((ac__type_new_ *) 0)
4697 if (sizeof (ac__type_new_))
4703 rm -f conftest.$ac_objext
4704 if { (ac_try="$ac_compile"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_compile") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.$ac_objext; then
4720 ac_cv_type_int64_t=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ac_cv_type_int64_t=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4731 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4732 if test $ac_cv_type_int64_t = yes; then
4736 cat >>confdefs.h <<\_ACEOF
4737 #define int64_t long long
4742 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4743 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4744 if test "${ac_cv_type_u_int64_t+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cat >conftest.$ac_ext <<_ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4754 #ifdef HAVE_SYS_BITYPES_H
4755 #include <sys/bitypes.h>
4758 typedef u_int64_t ac__type_new_;
4762 if ((ac__type_new_ *) 0)
4764 if (sizeof (ac__type_new_))
4770 rm -f conftest.$ac_objext
4771 if { (ac_try="$ac_compile"
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_compile") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } && {
4784 test -z "$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 } && test -s conftest.$ac_objext; then
4787 ac_cv_type_u_int64_t=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_cv_type_u_int64_t=no
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4798 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4799 if test $ac_cv_type_u_int64_t = yes; then
4803 cat >>confdefs.h <<\_ACEOF
4804 #define u_int64_t unsigned long long
4811 # Try to arrange for large file support.
4813 # Check whether --enable-largefile was given.
4814 if test "${enable_largefile+set}" = set; then
4815 enableval=$enable_largefile;
4818 if test "$enable_largefile" != no; then
4820 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4821 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4822 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_sys_largefile_CC=no
4826 if test "$GCC" != yes; then
4829 # IRIX 6.2 and later do not support large files by default,
4830 # so use the C compiler's -n32 option if that helps.
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <sys/types.h>
4838 /* Check that off_t can represent 2**63 - 1 correctly.
4839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4840 since some C++ compilers masquerading as C compilers
4841 incorrectly reject 9223372036854775807. */
4842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4844 && LARGE_OFF_T % 2147483647 == 1)
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_compile") 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && {
4868 test -z "$ac_c_werror_flag" ||
4869 test ! -s conftest.err
4870 } && test -s conftest.$ac_objext; then
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4879 rm -f core conftest.err conftest.$ac_objext
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
4898 ac_cv_sys_largefile_CC=' -n32'; break
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f core conftest.err conftest.$ac_objext
4910 rm -f conftest.$ac_ext
4913 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4915 if test "$ac_cv_sys_largefile_CC" != no; then
4916 CC=$CC$ac_cv_sys_largefile_CC
4919 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <sys/types.h>
4932 /* Check that off_t can represent 2**63 - 1 correctly.
4933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4934 since some C++ compilers masquerading as C compilers
4935 incorrectly reject 9223372036854775807. */
4936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4938 && LARGE_OFF_T % 2147483647 == 1)
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_cv_sys_file_offset_bits=no; break
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_compile") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && {
5012 test -z "$ac_c_werror_flag" ||
5013 test ! -s conftest.err
5014 } && test -s conftest.$ac_objext; then
5015 ac_cv_sys_file_offset_bits=64; break
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 ac_cv_sys_file_offset_bits=unknown
5028 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5029 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5030 case $ac_cv_sys_file_offset_bits in #(
5033 cat >>confdefs.h <<_ACEOF
5034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5039 if test $ac_cv_sys_file_offset_bits = unknown; then
5040 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 /* Check that off_t can represent 2**63 - 1 correctly.
5054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5055 since some C++ compilers masquerading as C compilers
5056 incorrectly reject 9223372036854775807. */
5057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5059 && LARGE_OFF_T % 2147483647 == 1)
5069 rm -f conftest.$ac_objext
5070 if { (ac_try="$ac_compile"
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 ac_cv_sys_large_files=no; break
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #define _LARGE_FILES 1
5102 #include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105 since some C++ compilers masquerading as C compilers
5106 incorrectly reject 9223372036854775807. */
5107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109 && LARGE_OFF_T % 2147483647 == 1)
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_sys_large_files=1; break
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ac_cv_sys_large_files=unknown
5149 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5150 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5151 case $ac_cv_sys_large_files in #(
5154 cat >>confdefs.h <<_ACEOF
5155 #define _LARGE_FILES $ac_cv_sys_large_files
5163 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5164 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5165 if test "${ac_cv_sys_largefile_source+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5179 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest$ac_exeext &&
5201 $as_test_x conftest$ac_exeext; then
5202 ac_cv_sys_largefile_source=no; break
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211 conftest$ac_exeext conftest.$ac_ext
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #define _LARGEFILE_SOURCE 1
5223 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5228 rm -f conftest.$ac_objext conftest$ac_exeext
5229 if { (ac_try="$ac_link"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_link") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest$ac_exeext &&
5245 $as_test_x conftest$ac_exeext; then
5246 ac_cv_sys_largefile_source=1; break
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5255 conftest$ac_exeext conftest.$ac_ext
5256 ac_cv_sys_largefile_source=unknown
5260 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5261 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5262 case $ac_cv_sys_largefile_source in #(
5265 cat >>confdefs.h <<_ACEOF
5266 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5272 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5273 # in glibc 2.1.3, but that breaks too many other things.
5274 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5275 if test $ac_cv_sys_largefile_source != unknown; then
5277 cat >>confdefs.h <<\_ACEOF
5278 #define HAVE_FSEEKO 1
5288 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 ac_res=`eval echo '${'$as_ac_Header'}'`
5298 { echo "$as_me:$LINENO: result: $ac_res" >&5
5299 echo "${ECHO_T}$ac_res" >&6; }
5301 # Is the header compilable?
5302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 $ac_includes_default
5311 #include <$ac_header>
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && {
5327 test -z "$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 } && test -s conftest.$ac_objext; then
5330 ac_header_compiler=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_compiler=no
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5340 echo "${ECHO_T}$ac_header_compiler" >&6; }
5342 # Is the header present?
5343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <$ac_header>
5353 if { (ac_try="$ac_cpp conftest.$ac_ext"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } >/dev/null && {
5366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5367 test ! -s conftest.err
5369 ac_header_preproc=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 ac_header_preproc=no
5377 rm -f conftest.err conftest.$ac_ext
5378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379 echo "${ECHO_T}$ac_header_preproc" >&6; }
5381 # So? What about this header?
5382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5388 ac_header_preproc=yes
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 eval "$as_ac_Header=\$ac_header_preproc"
5413 ac_res=`eval echo '${'$as_ac_Header'}'`
5414 { echo "$as_me:$LINENO: result: $ac_res" >&5
5415 echo "${ECHO_T}$ac_res" >&6; }
5418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5419 cat >>confdefs.h <<_ACEOF
5420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5428 for ac_header in net/pfvar.h
5430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 #include <sys/socket.h>
5446 #include <$ac_header>
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_compile") 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && {
5462 test -z "$ac_c_werror_flag" ||
5463 test ! -s conftest.err
5464 } && test -s conftest.$ac_objext; then
5465 eval "$as_ac_Header=yes"
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 eval "$as_ac_Header=no"
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 ac_res=`eval echo '${'$as_ac_Header'}'`
5476 { echo "$as_me:$LINENO: result: $ac_res" >&5
5477 echo "${ECHO_T}$ac_res" >&6; }
5478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479 cat >>confdefs.h <<_ACEOF
5480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 if test "$ac_cv_header_net_pfvar_h" = yes; then
5489 # Check for various PF actions.
5491 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5492 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 #include <sys/socket.h>
5502 #include <net/pfvar.h>
5506 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5529 { echo "$as_me:$LINENO: result: yes" >&5
5530 echo "${ECHO_T}yes" >&6; }
5532 cat >>confdefs.h <<\_ACEOF
5533 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 { echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6; }
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 for ac_header in netinet/if_ether.h
5550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <sys/types.h>
5563 #include <sys/socket.h>
5565 #include <$ac_header>
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 eval "$as_ac_Header=yes"
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 eval "$as_ac_Header=no"
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_res=`eval echo '${'$as_ac_Header'}'`
5595 { echo "$as_me:$LINENO: result: $ac_res" >&5
5596 echo "${ECHO_T}$ac_res" >&6; }
5597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598 cat >>confdefs.h <<_ACEOF
5599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5606 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5608 # The simple test didn't work.
5609 # Do we need to include <net/if.h> first?
5610 # Unset ac_cv_header_netinet_if_ether_h so we don't
5611 # treat the previous failure as a cached value and
5612 # suppress the next test.
5614 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5615 echo "$as_me: Rechecking with some additional includes" >&6;}
5616 unset ac_cv_header_netinet_if_ether_h
5618 for ac_header in netinet/if_ether.h
5620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 #include <sys/socket.h>
5634 #include <netinet/in.h>
5639 #include <$ac_header>
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compile") 2>conftest.er1
5650 grep -v '^ *+' conftest.er1 >conftest.err
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && {
5655 test -z "$ac_c_werror_flag" ||
5656 test ! -s conftest.err
5657 } && test -s conftest.$ac_objext; then
5658 eval "$as_ac_Header=yes"
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 eval "$as_ac_Header=no"
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_res=`eval echo '${'$as_ac_Header'}'`
5669 { echo "$as_me:$LINENO: result: $ac_res" >&5
5670 echo "${ECHO_T}$ac_res" >&6; }
5671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 if test "$GCC" = yes ; then
5683 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5684 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5685 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 * This generates a "duplicate case value" when fixincludes
5698 # include <sys/types.h>
5699 # include <sys/time.h>
5700 # include <sys/ioctl.h>
5701 # ifdef HAVE_SYS_IOCCOM_H
5702 # include <sys/ioccom.h>
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1 >conftest.err
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_lbl_gcc_fixincludes=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_lbl_gcc_fixincludes=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5744 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5745 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5746 # Don't cache failure
5747 unset ac_cv_lbl_gcc_fixincludes
5748 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5749 echo "$as_me: error: see the INSTALL for more info" >&2;}
5750 { (exit 1); exit 1; }; }
5756 for ac_func in strerror strlcpy
5758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5772 #define $ac_func innocuous_$ac_func
5774 /* System header to define __stub macros and hopefully few prototypes,
5775 which can conflict with char $ac_func (); below.
5776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777 <limits.h> exists even on freestanding compilers. */
5780 # include <limits.h>
5782 # include <assert.h>
5787 /* Override any GCC internal prototype to avoid an error.
5788 Use char because int might match the return type of a GCC
5789 builtin and then its argument prototype would still apply. */
5794 /* The GNU C library defines this for functions which it implements
5795 to always fail with ENOSYS. Some functions are actually named
5796 something starting with __ and the normal name is an alias. */
5797 #if defined __stub_$ac_func || defined __stub___$ac_func
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (ac_try="$ac_link"
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_link") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest$ac_exeext &&
5826 $as_test_x conftest$ac_exeext; then
5827 eval "$as_ac_var=yes"
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 eval "$as_ac_var=no"
5835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5836 conftest$ac_exeext conftest.$ac_ext
5838 ac_res=`eval echo '${'$as_ac_var'}'`
5839 { echo "$as_me:$LINENO: result: $ac_res" >&5
5840 echo "${ECHO_T}$ac_res" >&6; }
5841 if test `eval echo '${'$as_ac_var'}'` = yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5853 for ac_func in vsnprintf snprintf
5855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5869 #define $ac_func innocuous_$ac_func
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func (); below.
5873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5874 <limits.h> exists even on freestanding compilers. */
5877 # include <limits.h>
5879 # include <assert.h>
5884 /* Override any GCC internal prototype to avoid an error.
5885 Use char because int might match the return type of a GCC
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined __stub_$ac_func || defined __stub___$ac_func
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (ac_try="$ac_link"
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_link") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest$ac_exeext &&
5923 $as_test_x conftest$ac_exeext; then
5924 eval "$as_ac_var=yes"
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 eval "$as_ac_var=no"
5932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5933 conftest$ac_exeext conftest.$ac_ext
5935 ac_res=`eval echo '${'$as_ac_var'}'`
5936 { echo "$as_me:$LINENO: result: $ac_res" >&5
5937 echo "${ECHO_T}$ac_res" >&6; }
5938 if test `eval echo '${'$as_ac_var'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5948 if test $needsnprintf = yes; then
5949 case " $LIBOBJS " in
5950 *" snprintf.$ac_objext "* ) ;;
5951 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5958 # Do this before checking for ether_hostton(), as it's a
5959 # "gethostbyname() -ish function".
5962 # Most operating systems have gethostbyname() in the default searched
5963 # libraries (i.e. libc):
5964 # Some OSes (eg. Solaris) place it in libnsl
5965 # Some strange OSes (SINIX) have it in libsocket:
5966 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5967 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5968 if test "${ac_cv_search_gethostbyname+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_func_search_save_LIBS=$LIBS
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5985 char gethostbyname ();
5989 return gethostbyname ();
5994 for ac_lib in '' nsl socket resolv; do
5995 if test -z "$ac_lib"; then
5996 ac_res="none required"
5999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (ac_try="$ac_link"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_link") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest$ac_exeext &&
6018 $as_test_x conftest$ac_exeext; then
6019 ac_cv_search_gethostbyname=$ac_res
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 if test "${ac_cv_search_gethostbyname+set}" = set; then
6033 if test "${ac_cv_search_gethostbyname+set}" = set; then
6036 ac_cv_search_gethostbyname=no
6039 LIBS=$ac_func_search_save_LIBS
6041 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6042 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6043 ac_res=$ac_cv_search_gethostbyname
6044 if test "$ac_res" != no; then
6045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6049 # Unfortunately libsocket sometimes depends on libnsl and
6050 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6051 if test "$ac_cv_search_gethostbyname" = "no"
6053 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6054 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6055 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-lsocket -lnsl $LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any GCC internal prototype to avoid an error.
6068 Use char because int might match the return type of a GCC
6069 builtin and then its argument prototype would still apply. */
6073 char gethostbyname ();
6077 return gethostbyname ();
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
6100 ac_cv_lib_socket_gethostbyname=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_lib_socket_gethostbyname=no
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109 conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_check_lib_save_LIBS
6112 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6113 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6114 if test $ac_cv_lib_socket_gethostbyname = yes; then
6115 LIBS="-lsocket -lnsl $LIBS"
6119 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6120 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6121 if test "${ac_cv_search_socket+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_func_search_save_LIBS=$LIBS
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 /* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
6147 for ac_lib in '' socket; do
6148 if test -z "$ac_lib"; then
6149 ac_res="none required"
6152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_link") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest$ac_exeext &&
6171 $as_test_x conftest$ac_exeext; then
6172 ac_cv_search_socket=$ac_res
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6182 if test "${ac_cv_search_socket+set}" = set; then
6186 if test "${ac_cv_search_socket+set}" = set; then
6189 ac_cv_search_socket=no
6192 LIBS=$ac_func_search_save_LIBS
6194 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6195 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6196 ac_res=$ac_cv_search_socket
6197 if test "$ac_res" != no; then
6198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6201 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6202 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6203 if test "${ac_cv_lib_socket_socket+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 ac_check_lib_save_LIBS=$LIBS
6207 LIBS="-lsocket -lnsl $LIBS"
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 /* Override any GCC internal prototype to avoid an error.
6216 Use char because int might match the return type of a GCC
6217 builtin and then its argument prototype would still apply. */
6230 rm -f conftest.$ac_objext conftest$ac_exeext
6231 if { (ac_try="$ac_link"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_link") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest$ac_exeext &&
6247 $as_test_x conftest$ac_exeext; then
6248 ac_cv_lib_socket_socket=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_lib_socket_socket=no
6256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6257 conftest$ac_exeext conftest.$ac_ext
6258 LIBS=$ac_check_lib_save_LIBS
6260 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6261 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6262 if test $ac_cv_lib_socket_socket = yes; then
6263 LIBS="-lsocket -lnsl $LIBS"
6268 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6269 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6270 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6271 if test "${ac_cv_search_putmsg+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_func_search_save_LIBS=$LIBS
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6282 /* Override any GCC internal prototype to avoid an error.
6283 Use char because int might match the return type of a GCC
6284 builtin and then its argument prototype would still apply. */
6297 for ac_lib in '' str; do
6298 if test -z "$ac_lib"; then
6299 ac_res="none required"
6302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_link") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest$ac_exeext &&
6321 $as_test_x conftest$ac_exeext; then
6322 ac_cv_search_putmsg=$ac_res
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6332 if test "${ac_cv_search_putmsg+set}" = set; then
6336 if test "${ac_cv_search_putmsg+set}" = set; then
6339 ac_cv_search_putmsg=no
6342 LIBS=$ac_func_search_save_LIBS
6344 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6345 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6346 ac_res=$ac_cv_search_putmsg
6347 if test "$ac_res" != no; then
6348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6355 # You are in a twisty little maze of UN*Xes, all different.
6356 # Some might not have ether_hostton().
6357 # Some might have it, but not declare it in any header file.
6358 # Some might have it, but declare it in <netinet/if_ether.h>.
6359 # Some might have it, but declare it in <netinet/ether.h>
6360 # (And some might have it but document it as something declared in
6361 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6363 # Before you is a C compiler.
6366 for ac_func in ether_hostton
6368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6382 #define $ac_func innocuous_$ac_func
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below.
6386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 <limits.h> exists even on freestanding compilers. */
6390 # include <limits.h>
6392 # include <assert.h>
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6404 /* The GNU C library defines this for functions which it implements
6405 to always fail with ENOSYS. Some functions are actually named
6406 something starting with __ and the normal name is an alias. */
6407 #if defined __stub_$ac_func || defined __stub___$ac_func
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 eval "$as_ac_var=yes"
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 eval "$as_ac_var=no"
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 conftest$ac_exeext conftest.$ac_ext
6448 ac_res=`eval echo '${'$as_ac_var'}'`
6449 { echo "$as_me:$LINENO: result: $ac_res" >&5
6450 echo "${ECHO_T}$ac_res" >&6; }
6451 if test `eval echo '${'$as_ac_var'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6459 if test "$ac_cv_func_ether_hostton" = yes; then
6461 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6463 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6465 # Yes. Does it declare ether_hostton()?
6467 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6468 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6469 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/socket.h>
6481 #include <netinet/in.h>
6482 #include <arpa/inet.h>
6486 #include <netinet/if_ether.h>
6492 #ifndef ether_hostton
6493 (void) ether_hostton;
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_cv_have_decl_ether_hostton=yes
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_cv_have_decl_ether_hostton=no
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6528 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6529 if test $ac_cv_have_decl_ether_hostton = yes; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6543 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6545 # No, how about <netinet/ether.h>, as on Linux?
6548 for ac_header in netinet/ether.h
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 ac_res=`eval echo '${'$as_ac_Header'}'`
6558 { echo "$as_me:$LINENO: result: $ac_res" >&5
6559 echo "${ECHO_T}$ac_res" >&6; }
6561 # Is the header compilable?
6562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6571 #include <$ac_header>
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest.$ac_objext; then
6590 ac_header_compiler=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ac_header_compiler=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6600 echo "${ECHO_T}$ac_header_compiler" >&6; }
6602 # Is the header present?
6603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6605 cat >conftest.$ac_ext <<_ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <$ac_header>
6613 if { (ac_try="$ac_cpp conftest.$ac_ext"
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } >/dev/null && {
6626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6629 ac_header_preproc=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_header_preproc=no
6637 rm -f conftest.err conftest.$ac_ext
6638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6639 echo "${ECHO_T}$ac_header_preproc" >&6; }
6641 # So? What about this header?
6642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6648 ac_header_preproc=yes
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 eval "$as_ac_Header=\$ac_header_preproc"
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674 { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679 cat >>confdefs.h <<_ACEOF
6680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6687 if test "$ac_cv_header_netinet_ether_h" = yes; then
6689 # We have it - does it declare ether_hostton()?
6690 # Unset ac_cv_have_decl_ether_hostton so we don't
6691 # treat the previous failure as a cached value and
6692 # suppress the next test.
6694 unset ac_cv_have_decl_ether_hostton
6695 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6696 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6697 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6707 #include <netinet/ether.h>
6713 #ifndef ether_hostton
6714 (void) ether_hostton;
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest.$ac_objext; then
6738 ac_cv_have_decl_ether_hostton=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 ac_cv_have_decl_ether_hostton=no
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6749 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6750 if test $ac_cv_have_decl_ether_hostton = yes; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6763 # Is ether_hostton() declared?
6765 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6767 # No, we'll have to declare it ourselves.
6768 # Do we have "struct ether_addr"?
6770 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6771 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6772 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/socket.h>
6784 #include <netinet/in.h>
6785 #include <arpa/inet.h>
6789 #include <netinet/if_ether.h>
6792 typedef struct ether_addr ac__type_new_;
6796 if ((ac__type_new_ *) 0)
6798 if (sizeof (ac__type_new_))
6804 rm -f conftest.$ac_objext
6805 if { (ac_try="$ac_compile"
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_type_struct_ether_addr=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_type_struct_ether_addr=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6832 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6833 if test $ac_cv_type_struct_ether_addr = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define HAVE_STRUCT_ETHER_ADDR 1
6843 cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_DECL_ETHER_HOSTTON 0
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_DECL_ETHER_HOSTTON 1
6856 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6857 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6858 # Check whether --enable-protochain was given.
6859 if test "${enable_protochain+set}" = set; then
6860 enableval=$enable_protochain;
6863 case "x$enable_protochain" in
6864 xyes) enable_protochain=enabled ;;
6865 xno) enable_protochain=disabled ;;
6866 x) enable_protochain=enabled ;;
6869 if test "$enable_protochain" = "disabled"; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define NO_PROTOCHAIN 1
6876 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6877 echo "${ECHO_T}${enable_protochain}" >&6; }
6880 # SITA support is mutually exclusive with native capture support;
6881 # "--with-sita" selects SITA support.
6884 # Check whether --with-sita was given.
6885 if test "${with_sita+set}" = set; then
6887 if test ! "x$withval" = "xno" ; then
6889 cat >>confdefs.h <<\_ACEOF
6893 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6894 echo "$as_me: Enabling SITA ACN support" >&6;}
6901 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6902 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6903 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6904 { (exit 1); exit 1; }; }
6907 # Check whether --with-pcap was given.
6908 if test "${with_pcap+set}" = set; then
6912 { echo "$as_me:$LINENO: checking packet capture type" >&5
6913 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6914 if test ! -z "$with_pcap" ; then
6916 elif test -r /dev/bpf -o -h /dev/bpf ; then
6918 # Cloning BPF device.
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_CLONING_BPF 1
6926 elif test -r /dev/bpf0 ; then
6928 elif test -r /usr/include/net/pfilt.h ; then
6930 elif test -r /dev/enet ; then
6932 elif test -r /dev/nit ; then
6934 elif test -r /usr/include/sys/net/nit.h ; then
6936 elif test -r /usr/include/linux/socket.h ; then
6938 elif test -r /usr/include/net/raw.h ; then
6940 elif test -r /usr/include/odmi.h ; then
6942 # On AIX, the BPF devices might not yet be present - they're
6943 # created the first time libpcap runs after booting.
6944 # We check for odmi.h instead.
6947 elif test -c /dev/bpf0 ; then # check again in case not readable
6949 elif test -r /usr/include/sys/dlpi.h ; then
6951 elif test -c /dev/enet ; then # check again in case not readable
6953 elif test -c /dev/nit ; then # check again in case not readable
6958 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6959 echo "${ECHO_T}$V_PCAP" >&6; }
6962 # Do capture-mechanism-dependent tests.
6967 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6968 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6969 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6970 # private version also existed, which did not have the same APIs.
6971 # Due to a gcc bug, the default search path for 32-bit libraries does
6972 # not include /lib, we add it explicitly here.
6973 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6974 # Also, due to the bug above applications that link to libpcap with
6975 # libdlpi will have to add "-L/lib" option to "configure".
6977 saved_ldflags=$LDFLAGS
6978 LDFLAGS="$LIBS -L/lib"
6979 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6980 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6981 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_check_lib_save_LIBS=$LIBS
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6993 /* Override any GCC internal prototype to avoid an error.
6994 Use char because int might match the return type of a GCC
6995 builtin and then its argument prototype would still apply. */
7003 return dlpi_walk ();
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (ac_try="$ac_link"
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_link") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest$ac_exeext &&
7025 $as_test_x conftest$ac_exeext; then
7026 ac_cv_lib_dlpi_dlpi_walk=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_lib_dlpi_dlpi_walk=no
7034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035 conftest$ac_exeext conftest.$ac_ext
7036 LIBS=$ac_check_lib_save_LIBS
7038 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7039 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7040 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define HAVE_LIBDLPI 1
7052 LDFLAGS=$saved_ldflags
7055 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7058 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7059 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7060 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7070 #include <sys/types.h>
7071 #include <sys/time.h>
7072 #include <sys/dlpi.h>
7077 int i = DL_PROMISC_PHYS;
7082 rm -f conftest.$ac_objext
7083 if { (ac_try="$ac_compile"
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_compile") 2>conftest.er1
7091 grep -v '^ *+' conftest.er1 >conftest.err
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && {
7096 test -z "$ac_c_werror_flag" ||
7097 test ! -s conftest.err
7098 } && test -s conftest.$ac_objext; then
7099 ac_cv_sys_dlpi_usable=yes
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_cv_sys_dlpi_usable=no
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7111 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7112 if test $ac_cv_sys_dlpi_usable = no ; then
7113 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7114 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7115 { (exit 1); exit 1; }; }
7119 # Check whether we have a /dev/dlpi device or have multiple devices.
7121 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7122 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7123 if test -c /dev/dlpi ; then
7124 { echo "$as_me:$LINENO: result: yes" >&5
7125 echo "${ECHO_T}yes" >&6; }
7127 cat >>confdefs.h <<\_ACEOF
7128 #define HAVE_DEV_DLPI 1
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7135 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7136 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7137 if test -d $dir ; then
7138 { echo "$as_me:$LINENO: result: yes" >&5
7139 echo "${ECHO_T}yes" >&6; }
7141 cat >>confdefs.h <<_ACEOF
7142 #define PCAP_DEV_PREFIX "$dir"
7146 { echo "$as_me:$LINENO: result: no" >&5
7147 echo "${ECHO_T}no" >&6; }
7152 # This check is for Solaris with DLPI support for passive modes.
7153 # See dlpi(7P) for more details.
7155 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7156 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7157 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 cat >conftest.$ac_ext <<_ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7167 # include <sys/types.h>
7168 # include <sys/dlpi.h>
7172 u_int i = sizeof(dl_passive_req_t)
7177 rm -f conftest.$ac_objext
7178 if { (ac_try="$ac_compile"
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 ac_cv_lbl_has_dl_passive_req_t=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_lbl_has_dl_passive_req_t=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7206 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7207 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_DLPI_PASSIVE 1
7217 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
7218 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
7219 if test "$cross_compiling" = yes; then
7220 if test "${ac_cv_linux_vers+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 ac_cv_linux_vers=unknown
7227 if test "${ac_cv_linux_vers+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_linux_vers=`uname -r 2>&1 | \
7231 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7235 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7236 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7237 if test $ac_cv_linux_vers = unknown ; then
7238 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7239 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7240 { (exit 1); exit 1; }; }
7242 if test $ac_cv_linux_vers -lt 2 ; then
7243 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7244 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7245 { (exit 1); exit 1; }; }
7249 # Do we have the wireless extensions?
7252 for ac_header in linux/wireless.h
7254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7267 #include <sys/socket.h>
7268 #include <linux/if.h>
7269 #include <linux/types.h>
7272 #include <$ac_header>
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7283 grep -v '^ *+' conftest.er1 >conftest.err
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
7291 eval "$as_ac_Header=yes"
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 eval "$as_ac_Header=no"
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 ac_res=`eval echo '${'$as_ac_Header'}'`
7302 { echo "$as_me:$LINENO: result: $ac_res" >&5
7303 echo "${ECHO_T}$ac_res" >&6; }
7304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7305 cat >>confdefs.h <<_ACEOF
7306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7318 # Check whether --with-libnl was given.
7319 if test "${with_libnl+set}" = set; then
7320 withval=$with_libnl; with_libnl=$withval
7324 if test x$with_libnl != xno ; then
7325 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7326 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7327 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_check_lib_save_LIBS=$LIBS
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7339 /* Override any GCC internal prototype to avoid an error.
7340 Use char because int might match the return type of a GCC
7341 builtin and then its argument prototype would still apply. */
7345 char nl_handle_alloc ();
7349 return nl_handle_alloc ();
7354 rm -f conftest.$ac_objext conftest$ac_exeext
7355 if { (ac_try="$ac_link"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_link") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest$ac_exeext &&
7371 $as_test_x conftest$ac_exeext; then
7372 ac_cv_lib_nl_nl_handle_alloc=yes
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ac_cv_lib_nl_nl_handle_alloc=no
7380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7381 conftest$ac_exeext conftest.$ac_ext
7382 LIBS=$ac_check_lib_save_LIBS
7384 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7385 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7386 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_LIBNL 1
7394 if test x$with_libnl = xyes ; then
7395 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7396 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7397 { (exit 1); exit 1; }; }
7404 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7405 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7406 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 # include <linux/if_packet.h>
7420 struct tpacket_stats stats
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_compile") 2>conftest.er1
7434 grep -v '^ *+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.$ac_objext; then
7442 ac_cv_lbl_tpacket_stats=yes
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7447 ac_cv_lbl_tpacket_stats=no
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7454 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7455 if test $ac_cv_lbl_tpacket_stats = yes; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define HAVE_TPACKET_STATS 1
7462 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7463 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7464 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 cat >conftest.$ac_ext <<_ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7474 # include <linux/if_packet.h>
7478 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490 (eval "$ac_compile") 2>conftest.er1
7492 grep -v '^ *+' conftest.er1 >conftest.err
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest.$ac_objext; then
7500 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7512 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7513 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7514 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7526 # Check whether we have the *BSD-style ioctls.
7529 for ac_header in net/if_media.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null && {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7610 ac_header_preproc=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_header_preproc=no
7618 rm -f conftest.err conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc=yes
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 eval "$as_ac_Header=\$ac_header_preproc"
7654 ac_res=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7670 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/socket.h>
7678 #include <sys/ioctl.h>
7680 #include <net/bpf.h>
7684 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7707 { echo "$as_me:$LINENO: result: yes" >&5
7708 echo "${ECHO_T}yes" >&6; }
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_ZEROCOPY_BPF 1
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 # Check whether we have struct BPF_TIMEVAL.
7728 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7729 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7730 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 #include <sys/types.h>
7741 #include <sys/ioctl.h>
7742 #ifdef HAVE_SYS_IOCCOM_H
7743 #include <sys/ioccom.h>
7745 #include <net/bpf.h>
7748 typedef struct BPF_TIMEVAL ac__type_new_;
7752 if ((ac__type_new_ *) 0)
7754 if (sizeof (ac__type_new_))
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_compile") 2>conftest.er1
7769 grep -v '^ *+' conftest.er1 >conftest.err
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && {
7774 test -z "$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 } && test -s conftest.$ac_objext; then
7777 ac_cv_type_struct_BPF_TIMEVAL=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_type_struct_BPF_TIMEVAL=no
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7788 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7789 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define HAVE_STRUCT_BPF_TIMEVAL 1
7801 V_DEFS="$V_DEFS -DDAG_ONLY"
7805 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7809 V_DEFS="$V_DEFS -DSNF_ONLY"
7813 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7814 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7816 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7820 if test "$V_PCAP" = null
7823 # We can't capture, so we can't open any capture
7824 # devices, so we won't return any interfaces.
7828 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7829 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7830 if test "${ac_cv_func_getifaddrs+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7841 #define getifaddrs innocuous_getifaddrs
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char getifaddrs (); below.
7845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 <limits.h> exists even on freestanding compilers. */
7849 # include <limits.h>
7851 # include <assert.h>
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7863 /* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7873 return getifaddrs ();
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext &&
7895 $as_test_x conftest$ac_exeext; then
7896 ac_cv_func_getifaddrs=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_func_getifaddrs=no
7904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905 conftest$ac_exeext conftest.$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7908 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7909 if test $ac_cv_func_getifaddrs = yes; then
7912 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7913 # as well, just in case some platform is really weird.
7915 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7916 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7917 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7918 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7922 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7924 # Is the header compilable?
7925 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7926 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7934 #include <ifaddrs.h>
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_header_compiler=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_header_compiler=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7963 echo "${ECHO_T}$ac_header_compiler" >&6; }
7965 # Is the header present?
7966 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7967 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 #include <ifaddrs.h>
7976 if { (ac_try="$ac_cpp conftest.$ac_ext"
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } >/dev/null && {
7989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7992 ac_header_preproc=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_header_preproc=no
8000 rm -f conftest.err conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8002 echo "${ECHO_T}$ac_header_preproc" >&6; }
8004 # So? What about this header?
8005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8007 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8008 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8010 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8011 ac_header_preproc=yes
8014 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8015 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8017 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8019 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8021 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8023 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8025 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8029 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8030 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8031 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 ac_cv_header_ifaddrs_h=$ac_header_preproc
8036 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8037 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8040 if test $ac_cv_header_ifaddrs_h = yes; then
8043 # We have the header, so we use "getifaddrs()" to
8044 # get the list of interfaces.
8051 # We don't have the header - give up.
8052 # XXX - we could also fall back on some other
8053 # mechanism, but, for now, this'll catch this
8054 # problem so that we can at least try to figure
8055 # out something to do on systems with "getifaddrs()"
8056 # but without "ifaddrs.h", if there is something
8057 # we can do on those systems.
8059 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8060 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8061 { (exit 1); exit 1; }; }
8070 # Well, we don't have "getifaddrs()", so we have to use
8071 # some other mechanism; determine what that mechanism is.
8073 # The first thing we use is the type of capture mechanism,
8074 # which is somewhat of a proxy for the OS we're using.
8081 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_res=`eval echo '${'$as_ac_Header'}'`
8091 { echo "$as_me:$LINENO: result: $ac_res" >&5
8092 echo "${ECHO_T}$ac_res" >&6; }
8094 # Is the header compilable?
8095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 #include <$ac_header>
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_header_compiler=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_header_compiler=no
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8133 echo "${ECHO_T}$ac_header_compiler" >&6; }
8135 # Is the header present?
8136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #include <$ac_header>
8146 if { (ac_try="$ac_cpp conftest.$ac_ext"
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1 >conftest.err
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } >/dev/null && {
8159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8162 ac_header_preproc=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_header_preproc=no
8170 rm -f conftest.err conftest.$ac_ext
8171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8172 echo "${ECHO_T}$ac_header_preproc" >&6; }
8174 # So? What about this header?
8175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8181 ac_header_preproc=yes
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 eval "$as_ac_Header=\$ac_header_preproc"
8206 ac_res=`eval echo '${'$as_ac_Header'}'`
8207 { echo "$as_me:$LINENO: result: $ac_res" >&5
8208 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221 # This might be Solaris 8 or later, with
8222 # SIOCGLIFCONF, or it might be some other OS
8223 # or some older version of Solaris, with
8226 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8227 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8228 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <sys/param.h>
8238 #include <sys/file.h>
8239 #include <sys/ioctl.h>
8240 #include <sys/socket.h>
8241 #include <sys/sockio.h>
8245 ioctl(0, SIOCGLIFCONF, (char *)0);
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.$ac_objext; then
8267 ac_cv_lbl_have_siocglifconf=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_lbl_have_siocglifconf=no
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8279 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8280 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8286 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8293 # Assume we just have SIOCGIFCONF.
8294 # (XXX - on at least later Linux kernels, there's
8295 # another mechanism, and we should be using that
8308 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8309 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8317 #include <sys/types.h>
8318 #include <sys/socket.h>
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_compile") 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest.$ac_objext; then
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 if test "x$have_socklen_t" = "xyes"; then
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_SOCKLEN_T 1
8361 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8362 echo "${ECHO_T}$have_socklen_t" >&6; }
8364 # Check whether --enable-ipv6 was given.
8365 if test "${enable_ipv6+set}" = set; then
8366 enableval=$enable_ipv6;
8368 enable_ipv6=ifavailable
8371 if test "$enable_ipv6" != "no"; then
8372 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8373 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8374 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8385 #define getaddrinfo innocuous_getaddrinfo
8387 /* System header to define __stub macros and hopefully few prototypes,
8388 which can conflict with char getaddrinfo (); below.
8389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8390 <limits.h> exists even on freestanding compilers. */
8393 # include <limits.h>
8395 # include <assert.h>
8400 /* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply. */
8406 char getaddrinfo ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8417 return getaddrinfo ();
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (ac_try="$ac_link"
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_link") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest$ac_exeext &&
8439 $as_test_x conftest$ac_exeext; then
8440 ac_cv_func_getaddrinfo=yes
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_cv_func_getaddrinfo=no
8448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8449 conftest$ac_exeext conftest.$ac_ext
8451 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8452 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8453 if test $ac_cv_func_getaddrinfo = yes; then
8456 cat >>confdefs.h <<\_ACEOF
8463 if test "$enable_ipv6" != "ifavailable"; then
8464 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8465 See \`config.log' for more details." >&5
8466 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8467 See \`config.log' for more details." >&2;}
8468 { (exit 1); exit 1; }; }
8475 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8476 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8477 # Check whether --enable-optimizer-dbg was given.
8478 if test "${enable_optimizer_dbg+set}" = set; then
8479 enableval=$enable_optimizer_dbg;
8482 if test "$enable_optimizer_dbg" = "yes"; then
8484 cat >>confdefs.h <<\_ACEOF
8489 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8490 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8492 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8493 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8494 # Check whether --enable-yydebug was given.
8495 if test "${enable_yydebug+set}" = set; then
8496 enableval=$enable_yydebug;
8499 if test "$enable_yydebug" = "yes"; then
8501 cat >>confdefs.h <<\_ACEOF
8506 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8507 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8509 # Check for Endace DAG card support.
8511 # Check whether --with-dag was given.
8512 if test "${with_dag+set}" = set; then
8514 if test "$withval" = no
8516 # User doesn't want DAG support.
8518 elif test "$withval" = yes
8520 # User wants DAG support but hasn't specified a directory.
8523 # User wants DAG support and has specified a directory, so use the provided value.
8531 # Use DAG API if present, otherwise don't
8539 # Check whether --with-dag-includes was given.
8540 if test "${with_dag_includes+set}" = set; then
8541 withval=$with_dag_includes;
8542 # User wants DAG support and has specified a header directory, so use the provided value.
8544 dag_include_dir=$withval
8550 # Check whether --with-dag-libraries was given.
8551 if test "${with_dag_libraries+set}" = set; then
8552 withval=$with_dag_libraries;
8553 # User wants DAG support and has specified a library directory, so use the provided value.
8555 dag_lib_dir=$withval
8563 # We support the DAG API if we're on Linux or BSD, or if we're
8564 # building a DAG-only libpcap.
8569 # If the user explicitly requested DAG, tell them it's not
8572 # If they expressed no preference, don't include it.
8574 if test $want_dag = yes; then
8575 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8576 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8577 { (exit 1); exit 1; }; }
8578 elif test $want_dag = yes; then
8584 ac_cv_lbl_dag_api=no
8585 if test "$want_dag" != no; then
8587 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8588 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8590 # If necessary, set default paths for DAG API headers and libraries.
8591 if test -z "$dag_root"; then
8595 if test -z "$dag_include_dir"; then
8596 dag_include_dir="$dag_root/include"
8599 if test -z "$dag_lib_dir"; then
8600 dag_lib_dir="$dag_root/lib"
8603 if test -z "$dag_tools_dir"; then
8604 dag_tools_dir="$dag_root/tools"
8607 if test -r $dag_include_dir/dagapi.h; then
8608 ac_cv_lbl_dag_api=yes
8610 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8611 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8614 if test $ac_cv_lbl_dag_api = yes; then
8616 { echo "$as_me:$LINENO: checking dagapi.o" >&5
8617 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
8619 if test -r $dag_tools_dir/dagapi.o; then
8621 dagapi_obj=$dag_tools_dir/dagapi.o
8622 elif test -r $dag_lib_dir/dagapi.o; then
8624 dagapi_obj=$dag_lib_dir/dagapi.o
8625 elif test -r $dag_lib_dir/libdag.a; then
8627 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8628 if test -r ./dagapi.o; then
8629 dagapi_obj=./dagapi.o
8631 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8632 if test -r ./libdag_la-dagapi.o; then
8633 dagapi_obj=./libdag_la-dagapi.o
8638 if test $dagapi_obj = no; then
8639 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8640 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8641 ac_cv_lbl_dag_api=no
8643 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
8644 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8648 if test $ac_cv_lbl_dag_api = yes; then
8650 { echo "$as_me:$LINENO: checking dagopts.o" >&5
8651 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
8653 if test -r $dag_tools_dir/dagopts.o; then
8655 dagopts_obj=$dag_tools_dir/dagopts.o
8656 elif test -r $dag_lib_dir/dagopts.o; then
8658 dagopts_obj=$dag_lib_dir/dagopts.o
8659 elif test -r $dag_lib_dir/libdag.a; then
8661 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8662 if test -r ./dagopts.o; then
8663 dagopts_obj=./dagopts.o
8665 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8666 if test -r ./libdag_la-dagopts.o; then
8667 dagopts_obj=./libdag_la-dagopts.o
8672 if test $dagopts_obj = no; then
8673 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8674 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8675 ac_cv_lbl_dag_api=no
8677 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8678 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8682 if test $ac_cv_lbl_dag_api = yes; then
8683 # Under 2.5.x only we need to add dagreg.o.
8684 if test -r $dag_include_dir/dagreg.h; then
8685 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8686 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8688 if test -r $dag_lib_dir/dagreg.o; then
8689 # Object file is ready and waiting.
8690 dagreg_obj=$dag_lib_dir/dagreg.o
8691 elif test -r $dag_lib_dir/libdag.a; then
8692 # Extract from libdag.a.
8693 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8694 if test -r ./dagreg.o; then
8695 dagreg_obj=./dagreg.o
8697 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8698 if test -r ./libdag_la-dagreg.o; then
8699 dagreg_obj=./libdag_la-dagreg.o
8704 if test $dagreg_obj = no; then
8705 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8706 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8707 ac_cv_lbl_dag_api=no
8709 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8710 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8715 if test $ac_cv_lbl_dag_api = yes; then
8716 # Under 2.5.x only we need to add dagutil.o.
8717 if test -r $dag_include_dir/dagutil.h; then
8718 { echo "$as_me:$LINENO: checking dagutil.o" >&5
8719 echo $ECHO_N "checking dagutil.o... $ECHO_C" >&6; }
8721 if test -r $dag_lib_dir/dagutil.o; then
8722 # Object file is ready and waiting.
8723 dagutil_obj=$dag_lib_dir/dagutil.o
8724 elif test -r $dag_lib_dir/libdag.a; then
8725 # Extract from libdag.a.
8726 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8727 if test -r ./dagutil.o; then
8728 dagutil_obj=./dagutil.o
8730 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8731 if test -r ./libdag_la-dagutil.o; then
8732 dagutil_obj=./libdag_la-dagutil.o
8737 if test $dagutil_obj = no; then
8738 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8739 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8740 ac_cv_lbl_dag_api=no
8742 { echo "$as_me:$LINENO: result: yes ($dagutil_obj)" >&5
8743 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8748 if test $ac_cv_lbl_dag_api = yes; then
8749 V_INCLS="$V_INCLS -I$dag_include_dir"
8750 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8751 if test $V_PCAP != dag ; then
8755 # See if we can find a general version string.
8756 # Don't need to save and restore LIBS to prevent -ldag being
8757 # included if there's a found-action (arg 3).
8758 saved_ldflags=$LDFLAGS
8759 LDFLAGS="-L$dag_lib_dir"
8760 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8761 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8762 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 ac_check_lib_save_LIBS=$LIBS
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8774 /* Override any GCC internal prototype to avoid an error.
8775 Use char because int might match the return type of a GCC
8776 builtin and then its argument prototype would still apply. */
8780 char dag_attach_stream ();
8784 return dag_attach_stream ();
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_link") 2>conftest.er1
8798 grep -v '^ *+' conftest.er1 >conftest.err
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest$ac_exeext &&
8806 $as_test_x conftest$ac_exeext; then
8807 ac_cv_lib_dag_dag_attach_stream=yes
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_dag_dag_attach_stream=no
8815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8820 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8821 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8827 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8828 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8829 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 ac_check_lib_save_LIBS=$LIBS
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8841 /* Override any GCC internal prototype to avoid an error.
8842 Use char because int might match the return type of a GCC
8843 builtin and then its argument prototype would still apply. */
8847 char dag_get_erf_types ();
8851 return dag_get_erf_types ();
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (ac_try="$ac_link"
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_link") 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && {
8870 test -z "$ac_c_werror_flag" ||
8871 test ! -s conftest.err
8872 } && test -s conftest$ac_exeext &&
8873 $as_test_x conftest$ac_exeext; then
8874 ac_cv_lib_dag_dag_get_erf_types=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_dag_dag_get_erf_types=no
8882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8887 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8888 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_DAG_GET_ERF_TYPES 1
8897 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8898 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8899 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_check_lib_save_LIBS=$LIBS
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8917 char dag_get_stream_erf_types ();
8921 return dag_get_stream_erf_types ();
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (ac_try="$ac_link"
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext &&
8943 $as_test_x conftest$ac_exeext; then
8944 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_cv_lib_dag_dag_get_stream_erf_types=no
8952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8957 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8958 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8967 LDFLAGS=$saved_ldflags
8969 if test "$dag_streams" = 1; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_DAG_STREAMS_API 1
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_DAG_API 1
8985 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8986 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8988 if test $ac_cv_lbl_dag_api = no; then
8989 { echo "$as_me:$LINENO: result: no" >&5
8990 echo "${ECHO_T}no" >&6; }
8991 if test "$want_dag" = yes; then
8992 # User wanted DAG support but we couldn't find it.
8993 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8994 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8995 { (exit 1); exit 1; }; }
8998 if test "$V_PCAP" = dag; then
8999 # User requested "dag" capture type but the DAG API wasn't
9001 { { 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
9002 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;}
9003 { (exit 1); exit 1; }; }
9006 { echo "$as_me:$LINENO: result: yes" >&5
9007 echo "${ECHO_T}yes" >&6; }
9011 # Check whether --with-septel was given.
9012 if test "${with_septel+set}" = set; then
9013 withval=$with_septel;
9014 if test "$withval" = no
9017 elif test "$withval" = yes
9023 septel_root=$withval
9029 # Use Septel API if present, otherwise don't
9031 want_septel=ifpresent
9032 septel_root=./../septel
9036 ac_cv_lbl_septel_api=no
9040 # We support the Septel API if we're on Linux, or if we're building
9041 # a Septel-only libpcap.
9046 # If the user explicitly requested Septel, tell them it's not
9049 # If they expressed no preference, don't include it.
9051 if test $want_septel = yes; then
9052 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9053 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9054 { (exit 1); exit 1; }; }
9055 elif test $want_septel = yes; then
9061 if test "$with_septel" != no; then
9062 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9063 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9065 if test -z "$septel_root"; then
9066 septel_root=$srcdir/../septel
9069 septel_tools_dir="$septel_root"
9070 septel_include_dir="$septel_root/INC"
9072 ac_cv_lbl_septel_api=no
9073 if test -r "$septel_include_dir/msg.h"; then
9074 V_INCLS="$V_INCLS -I$septel_include_dir"
9075 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"
9076 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"
9078 if test "$V_PCAP" != septel ; then
9079 SSRC="pcap-septel.c"
9081 ac_cv_lbl_septel_api=yes
9084 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9085 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9086 if test $ac_cv_lbl_septel_api = no; then
9087 if test "$want_septel" = yes; then
9088 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9089 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9090 { (exit 1); exit 1; }; }
9094 cat >>confdefs.h <<\_ACEOF
9095 #define HAVE_SEPTEL_API 1
9101 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9102 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9103 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9104 { (exit 1); exit 1; }; }
9107 # Check for Myricom SNF support.
9109 # Check whether --with-snf was given.
9110 if test "${with_snf+set}" = set; then
9112 if test "$withval" = no
9114 # User explicitly doesn't want SNF
9116 elif test "$withval" = yes
9118 # User wants SNF support but hasn't specific a directory.
9121 # User wants SNF support with a specified directory.
9129 # Use Sniffer API if present, otherwise don't
9137 # Check whether --with-snf-includes was given.
9138 if test "${with_snf_includes+set}" = set; then
9139 withval=$with_snf_includes;
9140 # User wants SNF with specific header directory
9142 snf_include_dir=$withval
9148 # Check whether --with-snf-libraries was given.
9149 if test "${with_snf_libraries+set}" = set; then
9150 withval=$with_snf_libraries;
9151 # User wants SNF with specific lib directory
9153 snf_lib_dir=$withval
9161 # We support the Sniffer API if we're on BSD, Linux, or if we're
9162 # building a Sniffer-only libpcap.
9167 # If the user explicitly requested Sniffer, tell them it's not
9170 # If they expressed no preference, don't include it.
9172 if test $want_snf = yes; then
9173 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9174 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9175 { (exit 1); exit 1; }; }
9176 elif test $want_snf = yes; then
9182 ac_cv_lbl_snf_api=no
9183 if test "$with_snf" != no; then
9185 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9186 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9188 if test -z "$snf_root"; then
9192 if test -z "$snf_include_dir"; then
9193 snf_include_dir="$snf_root/include"
9196 if test -z "$snf_lib_dir"; then
9197 snf_lib_dir="$snf_root/lib"
9200 if test -f "$snf_include_dir/snf.h"; then
9201 ac_cv_lbl_snf_api=yes
9203 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9204 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9206 if test $ac_cv_lbl_snf_api = no; then
9207 if test "$want_snf" = yes; then
9208 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9209 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9210 { (exit 1); exit 1; }; }
9213 saved_ldflags=$LDFLAGS
9214 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9215 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9216 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9217 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 ac_check_lib_save_LIBS=$LIBS
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
9262 ac_cv_lib_snf_snf_init=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_cv_lib_snf_snf_init=no
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9274 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9275 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9276 if test $ac_cv_lib_snf_snf_init = yes; then
9277 ac_cv_lbl_snf_api="yes"
9279 ac_cv_lbl_snf_api="no"
9282 LDFLAGS="$saved_ldflags"
9284 if test $ac_cv_lbl_snf_api = no; then
9285 if test "$want_snf" = yes; then
9286 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9287 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9288 { (exit 1); exit 1; }; }
9291 V_INCLS="$V_INCLS -I$snf_include_dir"
9293 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9294 if test "$V_PCAP" != snf ; then
9298 cat >>confdefs.h <<\_ACEOF
9299 #define HAVE_SNF_API 1
9306 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9307 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9308 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9309 { (exit 1); exit 1; }; }
9313 # Check whether --with-flex was given.
9314 if test "${with_flex+set}" = set; then
9319 # Check whether --with-bison was given.
9320 if test "${with_bison+set}" = set; then
9321 withval=$with_bison;
9324 if test "$with_flex" = no ; then
9329 # Extract the first word of "$ac_prog", so it can be a program name with args.
9330 set dummy $ac_prog; ac_word=$2
9331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333 if test "${ac_cv_prog_V_LEX+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 if test -n "$V_LEX"; then
9337 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_V_LEX="$ac_prog"
9347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 V_LEX=$ac_cv_prog_V_LEX
9357 if test -n "$V_LEX"; then
9358 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9359 echo "${ECHO_T}$V_LEX" >&6; }
9361 { echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6; }
9366 test -n "$V_LEX" && break
9368 test -n "$V_LEX" || V_LEX="lex"
9371 if test "$V_LEX" = flex ; then
9372 # The -V flag was added in 2.4
9373 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9374 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9375 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 if flex -V >/dev/null 2>&1; then
9379 ac_cv_lbl_flex_v24=yes
9381 ac_cv_lbl_flex_v24=no
9385 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9386 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9387 if test $ac_cv_lbl_flex_v24 = no ; then
9388 s="2.4 or higher required"
9389 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9390 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9394 if test "$with_bison" = no ; then
9397 for ac_prog in bison
9399 # Extract the first word of "$ac_prog", so it can be a program name with args.
9400 set dummy $ac_prog; ac_word=$2
9401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9403 if test "${ac_cv_prog_V_YACC+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 if test -n "$V_YACC"; then
9407 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9416 ac_cv_prog_V_YACC="$ac_prog"
9417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 V_YACC=$ac_cv_prog_V_YACC
9427 if test -n "$V_YACC"; then
9428 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9429 echo "${ECHO_T}$V_YACC" >&6; }
9431 { echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6; }
9436 test -n "$V_YACC" && break
9438 test -n "$V_YACC" || V_YACC="yacc"
9441 if test "$V_YACC" = bison ; then
9444 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9445 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9446 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9450 if test "$V_LEX" = flex -a -n "pcap_" ; then
9451 V_LEX="$V_LEX -Ppcap_"
9452 V_YACC="$V_YACC -p pcap_"
9454 if test "$V_LEX" = lex ; then
9455 # Some versions of lex can't handle the definitions section of scanner.l .
9456 # Try lexing it and complain if it can't deal.
9457 { echo "$as_me:$LINENO: checking for capable lex" >&5
9458 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9459 if test "${tcpdump_cv_capable_lex+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 if lex -t scanner.l > /dev/null 2>&1; then
9463 tcpdump_cv_capable_lex=yes
9465 tcpdump_cv_capable_lex=insufficient
9468 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9469 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9470 if test $tcpdump_cv_capable_lex = insufficient ; then
9471 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9472 libpcap. flex is a lex replacement that has many advantages, including
9473 being able to compile libpcap. For more information, see
9474 http://www.gnu.org/software/flex/flex.html ." >&5
9475 echo "$as_me: error: Your operating system's lex is insufficient to compile
9476 libpcap. flex is a lex replacement that has many advantages, including
9477 being able to compile libpcap. For more information, see
9478 http://www.gnu.org/software/flex/flex.html ." >&2;}
9479 { (exit 1); exit 1; }; }
9484 # Assume, by default, no support for shared libraries and V7/BSD convention
9485 # for man pages (file formats in section 5, miscellaneous info in section 7).
9486 # Individual cases can override this.
9495 cat >>confdefs.h <<\_ACEOF
9501 # AIX makes it fun to build shared and static libraries,
9502 # because they're *both* ".a" archive libraries. We
9503 # build the static library for the benefit of the traditional
9504 # scheme of building libpcap and tcpdump in subdirectories of
9505 # the same directory, with tcpdump statically linked with the
9506 # libpcap in question, but we also build a shared library as
9507 # "libpcap.shareda" and install *it*, rather than the static
9508 # library, as "libpcap.a".
9516 # If we're using DLPI, applications will need to
9517 # use /lib/pse.exp if present, as we use the
9520 pseexe="/lib/pse.exp"
9521 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9522 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9523 if test -f $pseexe ; then
9524 { echo "$as_me:$LINENO: result: yes" >&5
9525 echo "${ECHO_T}yes" >&6; }
9532 # If we're using BPF, we need "-lodm" and "-lcfg", as
9533 # we use them to load the BPF module.
9542 V_CCOPT="$V_CCOPT -fno-common"
9547 cat >>confdefs.h <<\_ACEOF
9548 #define HAVE_HPUX9 1
9553 # Use System V conventions for man pages.
9562 # Use System V conventions for man pages.
9571 # Use System V conventions for man pages.
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_HPUX10_20_OR_LATER 1
9583 if test "`uname -m`" = "ia64"; then
9590 # "-b" builds a shared library; "+h" sets the soname.
9596 # Use System V conventions for man pages.
9604 # Use System V conventions for man pages.
9610 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9614 # Compiler assumed to be GCC; run-time linker may require a -R
9617 if test "$libdir" != "/usr/lib"; then
9618 V_RFLAGS=-Wl,-R$libdir
9626 # Use System V conventions for man pages.
9633 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9634 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9635 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9670 ac_cv_cc_sinix_defined=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_cc_sinix_defined=no
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9682 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9683 if test $ac_cv_cc_sinix_defined = no ; then
9685 cat >>confdefs.h <<\_ACEOF
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_SOLARIS 1
9701 # Use System V conventions for man pages.
9708 if test -n "$ac_tool_prefix"; then
9709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9713 if test "${ac_cv_prog_RANLIB+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 if test -n "$RANLIB"; then
9717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 RANLIB=$ac_cv_prog_RANLIB
9737 if test -n "$RANLIB"; then
9738 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9739 echo "${ECHO_T}$RANLIB" >&6; }
9741 { echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6; }
9747 if test -z "$ac_cv_prog_RANLIB"; then
9748 ac_ct_RANLIB=$RANLIB
9749 # Extract the first word of "ranlib", so it can be a program name with args.
9750 set dummy ranlib; ac_word=$2
9751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9753 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 if test -n "$ac_ct_RANLIB"; then
9757 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_ac_ct_RANLIB="ranlib"
9767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9777 if test -n "$ac_ct_RANLIB"; then
9778 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9779 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9781 { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9785 if test "x$ac_ct_RANLIB" = x; then
9788 case $cross_compiling:$ac_tool_warned in
9790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9791 whose name does not start with the host triplet. If you think this
9792 configuration is useful to you, please write to autoconf@gnu.org." >&5
9793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9794 whose name does not start with the host triplet. If you think this
9795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9796 ac_tool_warned=yes ;;
9798 RANLIB=$ac_ct_RANLIB
9801 RANLIB="$ac_cv_prog_RANLIB"
9806 if test "${LBL_CFLAGS+set}" = set; then
9807 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9809 if test -f .devel ; then
9810 if test "$GCC" = yes ; then
9811 if test "${LBL_CFLAGS+set}" != set; then
9812 if test "$ac_cv_prog_cc_g" = yes ; then
9813 V_CCOPT="-g $V_CCOPT"
9815 V_CCOPT="$V_CCOPT -Wall"
9816 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9817 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9824 V_CCOPT="$V_CCOPT -n32"
9831 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9833 if test -f $name ; then
9834 ln -s $name os-proto.h
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_OS_PROTO_H 1
9841 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9842 echo "$as_me: WARNING: can't find $name" >&2;}
9846 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
9847 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
9848 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 # include <sys/types.h>
9859 # include <sys/socket.h>
9863 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9868 rm -f conftest.$ac_objext
9869 if { (ac_try="$ac_compile"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_compile") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest.$ac_objext; then
9885 ac_cv_lbl_sockaddr_has_sa_len=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lbl_sockaddr_has_sa_len=no
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9897 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9898 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9900 cat >>confdefs.h <<\_ACEOF
9901 #define HAVE_SOCKADDR_SA_LEN 1
9906 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
9907 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
9908 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 # include <sys/types.h>
9919 # include <sys/socket.h>
9923 u_int i = sizeof (struct sockaddr_storage)
9928 rm -f conftest.$ac_objext
9929 if { (ac_try="$ac_compile"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_cv_lbl_has_sockaddr_storage=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_lbl_has_sockaddr_storage=no
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
9957 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9958 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_SOCKADDR_STORAGE 1
9966 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9967 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9968 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 # include <sys/types.h>
9979 # include <sys/dlpi.h>
9980 # include <sys/dlpi_ext.h>
9984 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9989 rm -f conftest.$ac_objext
9990 if { (ac_try="$ac_compile"
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_compile") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest.$ac_objext; then
10006 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10018 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10019 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10021 cat >>confdefs.h <<\_ACEOF
10022 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10027 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10028 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10029 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 case "$host_cpu" in
10035 # These are CPU types where:
10037 # the CPU faults on an unaligned access, but at least some
10038 # OSes that support that CPU catch the fault and simulate
10039 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10040 # the simulation is slow, so we don't want to use it;
10042 # the CPU, I infer (from the old
10044 # XXX: should also check that they don't do weird things (like on arm)
10046 # comment) doesn't fault on unaligned accesses, but doesn't
10047 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10049 # for whatever reason, the test program doesn't work
10050 # (this has been claimed to be the case for several of those
10051 # CPUs - I don't know what the problem is; the problem
10052 # was reported as "the test program dumps core" for SuperH,
10053 # but that's what the test program is *supposed* to do -
10054 # it dumps core before it writes anything, so the test
10055 # for an empty output file should find an empty output
10056 # file and conclude that unaligned accesses don't work).
10058 # This run-time test won't work if you're cross-compiling, so
10059 # in order to support cross-compiling for a particular CPU,
10060 # we have to wire in the list of CPU types anyway, as far as
10061 # I know, so perhaps we should just have a set of CPUs on
10062 # which we know it doesn't work, a set of CPUs on which we
10063 # know it does work, and have the script just fail on other
10064 # cpu types and update it when such a failure occurs.
10066 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10067 ac_cv_lbl_unaligned_fail=yes
10071 cat >conftest.c <<EOF
10072 # include <sys/types.h>
10073 # include <sys/wait.h>
10074 # include <stdio.h>
10075 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10080 /* avoid "core dumped" message */
10086 pid = waitpid(pid, &status, 0);
10089 exit(!WIFEXITED(status));
10092 i = *(unsigned int *)&a[1];
10097 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10098 conftest.c $LIBS >/dev/null 2>&1
10099 if test ! -x conftest ; then
10100 ac_cv_lbl_unaligned_fail=yes
10102 ./conftest >conftest.out
10103 if test ! -s conftest.out ; then
10104 ac_cv_lbl_unaligned_fail=yes
10106 ac_cv_lbl_unaligned_fail=no
10109 rm -f -r conftest* core core.conftest
10114 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10115 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10116 if test $ac_cv_lbl_unaligned_fail = yes ; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define LBL_ALIGN 1
10125 # Makefile.in includes rules to generate version.h, so we assume
10126 # that it will be generated if autoconf is used.
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_VERSION_H 1
10135 ln -s ${srcdir}/bpf/net net
10155 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10156 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10160 cat >>confdefs.h <<\_ACEOF
10161 #define PCAP_SUPPORT_USB 1
10164 USB_SRC=pcap-usb-linux.c
10165 { echo "$as_me:$LINENO: result: yes" >&5
10166 echo "${ECHO_T}yes" >&6; }
10167 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10168 if test $? -ne 0 ; then
10169 ac_usb_dev_name="usbmon"
10172 cat >>confdefs.h <<_ACEOF
10173 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10176 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10177 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10179 for ac_header in linux/usbdevice_fs.h
10181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 ac_res=`eval echo '${'$as_ac_Header'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10192 # Is the header compilable?
10193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 $ac_includes_default
10202 #include <$ac_header>
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_header_compiler=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_header_compiler=no
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 echo "${ECHO_T}$ac_header_compiler" >&6; }
10233 # Is the header present?
10234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <$ac_header>
10244 if { (ac_try="$ac_cpp conftest.$ac_ext"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } >/dev/null && {
10257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10260 ac_header_preproc=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_header_preproc=no
10268 rm -f conftest.err conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270 echo "${ECHO_T}$ac_header_preproc" >&6; }
10272 # So? What about this header?
10273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279 ac_header_preproc=yes
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 eval "$as_ac_Header=\$ac_header_preproc"
10304 ac_res=`eval echo '${'$as_ac_Header'}'`
10305 { echo "$as_me:$LINENO: result: $ac_res" >&5
10306 echo "${ECHO_T}$ac_res" >&6; }
10309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10310 cat >>confdefs.h <<_ACEOF
10311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10320 # OK, does it define bRequestType? Older versions of the kernel
10321 # define fields with names like "requesttype, "request", and
10322 # "value", rather than "bRequestType", "bRequest", and
10325 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10326 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10327 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10337 $ac_includes_default
10338 #ifdef HAVE_SYS_BITYPES_H
10339 #include <sys/bitypes.h>
10341 # include <linux/usbdevice_fs.h>
10345 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10350 rm -f conftest.$ac_objext
10351 if { (ac_try="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10379 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10380 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10390 { echo "$as_me:$LINENO: result: no" >&5
10391 echo "${ECHO_T}no" >&6; }
10397 # Check whether --enable-bluetooth was given.
10398 if test "${enable_bluetooth+set}" = set; then
10399 enableval=$enable_bluetooth;
10401 enable_bluetooth=yes
10405 if test "x$enable_bluetooth" != "xno" ; then
10408 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10409 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10410 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10411 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10415 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10417 # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10419 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 #include <bluetooth/bluetooth.h>
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10446 ac_header_compiler=yes
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_header_compiler=no
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456 echo "${ECHO_T}$ac_header_compiler" >&6; }
10458 # Is the header present?
10459 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10460 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10461 cat >conftest.$ac_ext <<_ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 #include <bluetooth/bluetooth.h>
10469 if { (ac_try="$ac_cpp conftest.$ac_ext"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } >/dev/null && {
10482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10485 ac_header_preproc=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_header_preproc=no
10493 rm -f conftest.err conftest.$ac_ext
10494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495 echo "${ECHO_T}$ac_header_preproc" >&6; }
10497 # So? What about this header?
10498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10500 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10501 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10503 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10504 ac_header_preproc=yes
10507 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10512 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10514 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10516 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10518 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10522 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10523 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10524 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10529 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10530 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10533 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define PCAP_SUPPORT_BT 1
10540 BT_SRC=pcap-bt-linux.c
10541 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10542 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10545 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10546 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10553 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
10554 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10561 # Check whether --enable-can was given.
10562 if test "${enable_can+set}" = set; then
10563 enableval=$enable_can;
10569 if test "x$enable_can" != "xno" ; then
10572 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
10573 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
10574 if test "${ac_cv_header_linux_can_h+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <sys/socket.h>
10586 #include <linux/can.h>
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10605 ac_cv_header_linux_can_h=yes
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_cv_header_linux_can_h=no
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
10616 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
10617 if test $ac_cv_header_linux_can_h = yes; then
10619 cat >>confdefs.h <<\_ACEOF
10620 #define PCAP_SUPPORT_CAN 1
10623 CAN_SRC=pcap-can-linux.c
10624 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10625 echo "$as_me: CAN sniffing is supported" >&6;}
10627 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10628 echo "$as_me: CAN sniffing is not supported" >&6;}
10634 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10635 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10642 # Find a good install program. We prefer a C program (faster),
10643 # so one script is as good as another. But avoid the broken or
10644 # incompatible versions:
10645 # SysV /etc/install, /usr/sbin/install
10646 # SunOS /usr/etc/install
10647 # IRIX /sbin/install
10649 # AmigaOS /C/install, which installs bootblocks on floppy discs
10650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10653 # OS/2's system install, which has a completely different semantic
10654 # ./install, which can be erroneously created by make from ./install.sh.
10655 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10657 if test -z "$INSTALL"; then
10658 if test "${ac_cv_path_install+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10665 test -z "$as_dir" && as_dir=.
10666 # Account for people who put trailing slashes in PATH elements.
10668 ./ | .// | /cC/* | \
10669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10673 # OSF1 and SCO ODT 3.0 have their own names for install.
10674 # Don't use installbsd from OSF since it installs stuff as root
10676 for ac_prog in ginstall scoinst install; do
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10679 if test $ac_prog = install &&
10680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10681 # AIX install. It has an incompatible calling convention.
10683 elif test $ac_prog = install &&
10684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10685 # program-specific install script used by HP pwplus--don't use.
10688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10701 if test "${ac_cv_path_install+set}" = set; then
10702 INSTALL=$ac_cv_path_install
10704 # As a last resort, use the slow shell script. Don't cache a
10705 # value for INSTALL within a source directory, because that will
10706 # break other packages using the cache if that directory is
10707 # removed, or if the value is a relative name.
10708 INSTALL=$ac_install_sh
10711 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10712 echo "${ECHO_T}$INSTALL" >&6; }
10714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10715 # It thinks the first close brace ends the variable substitution.
10716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10723 ac_config_headers="$ac_config_headers config.h"
10726 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10728 cat >confcache <<\_ACEOF
10729 # This file is a shell script that caches the results of configure
10730 # tests run on this system so they can be shared between configure
10731 # scripts and configure runs, see configure's option --config-cache.
10732 # It is not useful on other systems. If it contains results you don't
10733 # want to keep, you may remove or edit it.
10735 # config.status only pays attention to the cache file if you give it
10736 # the --recheck option to rerun configure.
10738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10740 # following values.
10744 # The following way of writing the cache mishandles newlines in values,
10745 # but we know of no workaround that is simple, portable, and efficient.
10746 # So, we kill variables containing newlines.
10747 # Ultrix sh set writes to stderr and can't be redirected directly,
10748 # and sets the high bit in the cache file unless we assign to the vars.
10750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10751 eval ac_val=\$$ac_var
10755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10756 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10759 _ | IFS | as_nl) ;; #(
10760 *) $as_unset $ac_var ;;
10766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10767 *${as_nl}ac_space=\ *)
10768 # `set' does not quote correctly, so add quotes (double-quote
10769 # substitution turns \\\\ into \\, and sed turns \\ into \).
10772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10775 # `set' quotes correctly as required by POSIX, so do not add quotes.
10776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10790 if test -w "$cache_file"; then
10791 test "x$cache_file" != "x/dev/null" &&
10792 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10793 echo "$as_me: updating cache $cache_file" >&6;}
10794 cat confcache >$cache_file
10796 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10797 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10803 # Let make expand exec_prefix.
10804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10806 DEFS=-DHAVE_CONFIG_H
10810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10811 # 1. Remove the extension, and $U if already installed.
10812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10813 ac_i=`echo "$ac_i" | sed "$ac_script"`
10814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10815 # will be set to the directory where LIBOBJS objects are built.
10816 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10817 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10819 LIBOBJS=$ac_libobjs
10821 LTLIBOBJS=$ac_ltlibobjs
10825 : ${CONFIG_STATUS=./config.status}
10826 ac_clean_files_save=$ac_clean_files
10827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10828 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10829 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10830 cat >$CONFIG_STATUS <<_ACEOF
10832 # Generated by $as_me.
10833 # Run this file to recreate the current configuration.
10834 # Compiler output produced by configure, useful for debugging
10835 # configure, is in config.log if it exists.
10838 ac_cs_recheck=false
10840 SHELL=\${CONFIG_SHELL-$SHELL}
10843 cat >>$CONFIG_STATUS <<\_ACEOF
10844 ## --------------------- ##
10845 ## M4sh Initialization. ##
10846 ## --------------------- ##
10848 # Be more Bourne compatible
10849 DUALCASE=1; export DUALCASE # for MKS sh
10850 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10854 # is contrary to our usage. Disable this feature.
10855 alias -g '${1+"$@"}'='"$@"'
10856 setopt NO_GLOB_SUBST
10858 case `(set -o) 2>/dev/null` in
10859 *posix*) set -o posix ;;
10868 # Avoid depending upon Character Ranges.
10869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10872 as_cr_digits='0123456789'
10873 as_cr_alnum=$as_cr_Letters$as_cr_digits
10875 # The user is always right.
10876 if test "${PATH_SEPARATOR+set}" != set; then
10877 echo "#! /bin/sh" >conf$$.sh
10878 echo "exit 0" >>conf$$.sh
10880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10888 # Support unset when possible.
10889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10897 # We need space, tab and new line, in precisely that order. Quoting is
10898 # there to prevent editors from complaining about space-tab.
10899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10900 # splitting by setting IFS to empty value.)
10905 # Find who we are. Look in the path if we contain no directory separator.
10907 *[\\/]* ) as_myself=$0 ;;
10908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10912 test -z "$as_dir" && as_dir=.
10913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10919 # We did not find ourselves, most probably we were run as `sh COMMAND'
10920 # in which case we are not to be found in the path.
10921 if test "x$as_myself" = x; then
10924 if test ! -f "$as_myself"; then
10925 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10926 { (exit 1); exit 1; }
10929 # Work around bugs in pre-3.0 UWIN ksh.
10930 for as_var in ENV MAIL MAILPATH
10931 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10939 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10940 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10941 LC_TELEPHONE LC_TIME
10943 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10944 eval $as_var=C; export $as_var
10946 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10950 # Required to use basename.
10951 if expr a : '\(a\)' >/dev/null 2>&1 &&
10952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10959 as_basename=basename
10965 # Name of the executable.
10966 as_me=`$as_basename -- "$0" ||
10967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10968 X"$0" : 'X\(//\)$' \| \
10969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10971 sed '/^.*\/\([^/][^/]*\)\/*$/{
10990 as_lineno_1=$LINENO
10991 as_lineno_2=$LINENO
10992 test "x$as_lineno_1" != "x$as_lineno_2" &&
10993 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10995 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10996 # uniformly replaced by the line number. The first 'sed' inserts a
10997 # line-number line after each line using $LINENO; the second 'sed'
10998 # does the real work. The second script uses 'N' to pair each
10999 # line-number line with the line containing $LINENO, and appends
11000 # trailing '-' during substitution so that $LINENO is not a special
11001 # case at line end.
11002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11003 # scripts with optimization help from Paolo Bonzini. Blame Lee
11004 # E. McMahon (1931-1989) for sed's syntax. :-)
11016 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11019 ' >$as_me.lineno &&
11020 chmod +x "$as_me.lineno" ||
11021 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11022 { (exit 1); exit 1; }; }
11024 # Don't try to exec as it changes $[0], causing all sort of problems
11025 # (the dirname of $[0] is not the place where we might find the
11026 # original and so on. Autoconf is especially sensitive to this).
11027 . "./$as_me.lineno"
11028 # Exit status is that of the last command.
11033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11039 ECHO_C= ECHO_N= ECHO_T=
11040 case `echo -n x` in
11042 case `echo 'x\c'` in
11043 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11050 if expr a : '\(a\)' >/dev/null 2>&1 &&
11051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11057 rm -f conf$$ conf$$.exe conf$$.file
11058 if test -d conf$$.dir; then
11059 rm -f conf$$.dir/conf$$.file
11065 if ln -s conf$$.file conf$$ 2>/dev/null; then
11067 # ... but there are two gotchas:
11068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11070 # In both cases, we have to default to `cp -p'.
11071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11073 elif ln conf$$.file conf$$ 2>/dev/null; then
11078 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11079 rmdir conf$$.dir 2>/dev/null
11081 if mkdir -p . 2>/dev/null; then
11084 test -d ./-p && rmdir ./-p
11088 if test -x / >/dev/null 2>&1; then
11089 as_test_x='test -x'
11091 if ls -dL / >/dev/null 2>&1; then
11098 if test -d "$1"; then
11104 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11105 ???[sx]*):;;*)false;;esac;fi
11109 as_executable_p=$as_test_x
11111 # Sed expression to map a string onto a valid CPP name.
11112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11114 # Sed expression to map a string onto a valid variable name.
11115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11120 # Save the log message, to keep $[0] and so on meaningful, and to
11121 # report actual input values of CONFIG_FILES etc. instead of their
11122 # values after options handling.
11124 This file was extended by $as_me, which was
11125 generated by GNU Autoconf 2.61. Invocation command line was
11127 CONFIG_FILES = $CONFIG_FILES
11128 CONFIG_HEADERS = $CONFIG_HEADERS
11129 CONFIG_LINKS = $CONFIG_LINKS
11130 CONFIG_COMMANDS = $CONFIG_COMMANDS
11133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11138 cat >>$CONFIG_STATUS <<_ACEOF
11139 # Files that config.status was made for.
11140 config_files="$ac_config_files"
11141 config_headers="$ac_config_headers"
11145 cat >>$CONFIG_STATUS <<\_ACEOF
11147 \`$as_me' instantiates files from templates according to the
11148 current configuration.
11150 Usage: $0 [OPTIONS] [FILE]...
11152 -h, --help print this help, then exit
11153 -V, --version print version number and configuration settings, then exit
11154 -q, --quiet do not print progress messages
11155 -d, --debug don't remove temporary files
11156 --recheck update $as_me by reconfiguring in the same conditions
11157 --file=FILE[:TEMPLATE]
11158 instantiate the configuration file FILE
11159 --header=FILE[:TEMPLATE]
11160 instantiate the configuration header FILE
11162 Configuration files:
11165 Configuration headers:
11168 Report bugs to <bug-autoconf@gnu.org>."
11171 cat >>$CONFIG_STATUS <<_ACEOF
11174 configured by $0, generated by GNU Autoconf 2.61,
11175 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11177 Copyright (C) 2006 Free Software Foundation, Inc.
11178 This config.status script is free software; the Free Software Foundation
11179 gives unlimited permission to copy, distribute and modify it."
11186 cat >>$CONFIG_STATUS <<\_ACEOF
11187 # If no file are specified by the user, then we need to provide default
11188 # value. By we need to know if files were specified by the user.
11194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11206 # Handling of the options.
11207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11210 echo "$ac_cs_version"; exit ;;
11211 --debug | --debu | --deb | --de | --d | -d )
11213 --file | --fil | --fi | --f )
11215 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11216 ac_need_defaults=false;;
11217 --header | --heade | --head | --hea )
11219 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11220 ac_need_defaults=false;;
11222 # Conflict between --help and --header
11223 { echo "$as_me: error: ambiguous option: $1
11224 Try \`$0 --help' for more information." >&2
11225 { (exit 1); exit 1; }; };;
11226 --help | --hel | -h )
11227 echo "$ac_cs_usage"; exit ;;
11228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11232 # This is an error.
11233 -*) { echo "$as_me: error: unrecognized option: $1
11234 Try \`$0 --help' for more information." >&2
11235 { (exit 1); exit 1; }; } ;;
11237 *) ac_config_targets="$ac_config_targets $1"
11238 ac_need_defaults=false ;;
11244 ac_configure_extra_args=
11246 if $ac_cs_silent; then
11248 ac_configure_extra_args="$ac_configure_extra_args --silent"
11252 cat >>$CONFIG_STATUS <<_ACEOF
11253 if \$ac_cs_recheck; then
11254 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11255 CONFIG_SHELL=$SHELL
11256 export CONFIG_SHELL
11257 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11261 cat >>$CONFIG_STATUS <<\_ACEOF
11265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11266 ## Running $as_me. ##
11272 cat >>$CONFIG_STATUS <<_ACEOF
11275 cat >>$CONFIG_STATUS <<\_ACEOF
11277 # Handling of arguments.
11278 for ac_config_target in $ac_config_targets
11280 case $ac_config_target in
11281 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11282 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11283 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11284 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11285 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11286 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11287 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11288 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11289 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11290 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11291 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11292 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11294 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11295 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11296 { (exit 1); exit 1; }; };;
11301 # If the user did not use the arguments to specify the items to instantiate,
11302 # then the envvar interface is used. Set only those that are not.
11303 # We use the long form for the default assignment because of an extremely
11304 # bizarre bug on SunOS 4.1.3.
11305 if $ac_need_defaults; then
11306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11310 # Have a temporary directory for convenience. Make it in the build tree
11311 # simply because there is no reason against having it here, and in addition,
11312 # creating and moving files from /tmp can sometimes cause problems.
11313 # Hook for its removal unless debugging.
11314 # Note that there is a small window in which the directory will not be cleaned:
11315 # after its creation but before its name has been assigned to `$tmp'.
11319 trap 'exit_status=$?
11320 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11322 trap '{ (exit 1); exit 1; }' 1 2 13 15
11324 # Create a (secure) tmp directory for tmp files.
11327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11328 test -n "$tmp" && test -d "$tmp"
11331 tmp=./conf$$-$RANDOM
11332 (umask 077 && mkdir "$tmp")
11335 echo "$me: cannot create a temporary directory in ." >&2
11336 { (exit 1); exit 1; }
11340 # Set up the sed scripts for CONFIG_FILES section.
11343 # No need to generate the scripts if there are no CONFIG_FILES.
11344 # This happens for instance when ./config.status config.h
11345 if test -n "$CONFIG_FILES"; then
11352 for ac_last_try in false false false false false :; do
11353 cat >conf$$subs.sed <<_ACEOF
11354 SHELL!$SHELL$ac_delim
11355 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11356 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11357 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11358 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11359 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11360 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11361 exec_prefix!$exec_prefix$ac_delim
11362 prefix!$prefix$ac_delim
11363 program_transform_name!$program_transform_name$ac_delim
11364 bindir!$bindir$ac_delim
11365 sbindir!$sbindir$ac_delim
11366 libexecdir!$libexecdir$ac_delim
11367 datarootdir!$datarootdir$ac_delim
11368 datadir!$datadir$ac_delim
11369 sysconfdir!$sysconfdir$ac_delim
11370 sharedstatedir!$sharedstatedir$ac_delim
11371 localstatedir!$localstatedir$ac_delim
11372 includedir!$includedir$ac_delim
11373 oldincludedir!$oldincludedir$ac_delim
11374 docdir!$docdir$ac_delim
11375 infodir!$infodir$ac_delim
11376 htmldir!$htmldir$ac_delim
11377 dvidir!$dvidir$ac_delim
11378 pdfdir!$pdfdir$ac_delim
11379 psdir!$psdir$ac_delim
11380 libdir!$libdir$ac_delim
11381 localedir!$localedir$ac_delim
11382 mandir!$mandir$ac_delim
11383 DEFS!$DEFS$ac_delim
11384 ECHO_C!$ECHO_C$ac_delim
11385 ECHO_N!$ECHO_N$ac_delim
11386 ECHO_T!$ECHO_T$ac_delim
11387 LIBS!$LIBS$ac_delim
11388 build_alias!$build_alias$ac_delim
11389 host_alias!$host_alias$ac_delim
11390 target_alias!$target_alias$ac_delim
11391 build!$build$ac_delim
11392 build_cpu!$build_cpu$ac_delim
11393 build_vendor!$build_vendor$ac_delim
11394 build_os!$build_os$ac_delim
11395 host!$host$ac_delim
11396 host_cpu!$host_cpu$ac_delim
11397 host_vendor!$host_vendor$ac_delim
11398 host_os!$host_os$ac_delim
11399 target!$target$ac_delim
11400 target_cpu!$target_cpu$ac_delim
11401 target_vendor!$target_vendor$ac_delim
11402 target_os!$target_os$ac_delim
11403 SHLICC2!$SHLICC2$ac_delim
11405 CFLAGS!$CFLAGS$ac_delim
11406 LDFLAGS!$LDFLAGS$ac_delim
11407 CPPFLAGS!$CPPFLAGS$ac_delim
11408 ac_ct_CC!$ac_ct_CC$ac_delim
11409 EXEEXT!$EXEEXT$ac_delim
11410 OBJEXT!$OBJEXT$ac_delim
11412 GREP!$GREP$ac_delim
11413 EGREP!$EGREP$ac_delim
11414 LIBOBJS!$LIBOBJS$ac_delim
11415 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11416 V_LEX!$V_LEX$ac_delim
11417 V_YACC!$V_YACC$ac_delim
11418 RANLIB!$RANLIB$ac_delim
11419 V_CCOPT!$V_CCOPT$ac_delim
11420 V_DEFS!$V_DEFS$ac_delim
11421 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11422 V_INCLS!$V_INCLS$ac_delim
11423 V_PCAP!$V_PCAP$ac_delim
11424 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11425 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11426 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11427 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11428 ADDLOBJS!$ADDLOBJS$ac_delim
11429 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11430 SSRC!$SSRC$ac_delim
11431 DYEXT!$DYEXT$ac_delim
11432 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11433 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11434 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11435 USB_SRC!$USB_SRC$ac_delim
11436 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11437 BT_SRC!$BT_SRC$ac_delim
11438 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11439 CAN_SRC!$CAN_SRC$ac_delim
11440 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11441 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11442 INSTALL_DATA!$INSTALL_DATA$ac_delim
11443 LTLIBOBJS!$LTLIBOBJS$ac_delim
11446 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
11448 elif $ac_last_try; then
11449 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11450 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11451 { (exit 1); exit 1; }; }
11453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11457 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11458 if test -n "$ac_eof"; then
11459 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11460 ac_eof=`expr $ac_eof + 1`
11463 cat >>$CONFIG_STATUS <<_ACEOF
11464 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11468 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11469 s/^/s,@/; s/!/@,|#_!!_#|/
11472 s/'"$ac_delim"'$/,g/; t
11474 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11475 ' >>$CONFIG_STATUS <conf$$subs.sed
11476 rm -f conf$$subs.sed
11477 cat >>$CONFIG_STATUS <<_ACEOF
11484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11486 # trailing colons and then remove the whole line if VPATH becomes empty
11487 # (actually we leave an empty line to preserve line numbers).
11488 if test "x$srcdir" = x.; then
11489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11490 s/:*\$(srcdir):*/:/
11491 s/:*\${srcdir}:*/:/
11493 s/^\([^=]*=[ ]*\):*/\1/
11499 cat >>$CONFIG_STATUS <<\_ACEOF
11500 fi # test -n "$CONFIG_FILES"
11503 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11506 :[FHLC]) ac_mode=$ac_tag; continue;;
11508 case $ac_mode$ac_tag in
11510 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11511 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11512 { (exit 1); exit 1; }; };;
11513 :[FH]-) ac_tag=-:-;;
11514 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11531 -) ac_f="$tmp/stdin";;
11532 *) # Look for the file first in the build tree, then in the source tree
11533 # (if the path is not absolute). The absolute path cannot be DOS-style,
11534 # because $ac_f cannot contain `:'.
11538 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11540 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11541 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11542 { (exit 1); exit 1; }; };;
11544 ac_file_inputs="$ac_file_inputs $ac_f"
11547 # Let's still pretend it is `configure' which instantiates (i.e., don't
11548 # use $as_me), people would be surprised to read:
11549 # /* config.h. Generated by config.status. */
11550 configure_input="Generated from "`IFS=:
11551 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11552 if test x"$ac_file" != x-; then
11553 configure_input="$ac_file. $configure_input"
11554 { echo "$as_me:$LINENO: creating $ac_file" >&5
11555 echo "$as_me: creating $ac_file" >&6;}
11559 *:-:* | *:-) cat >"$tmp/stdin";;
11564 ac_dir=`$as_dirname -- "$ac_file" ||
11565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566 X"$ac_file" : 'X\(//\)[^/]' \| \
11567 X"$ac_file" : 'X\(//\)$' \| \
11568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11574 /^X\(\/\/\)[^/].*/{
11589 -*) as_dir=./$as_dir;;
11591 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11595 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11596 *) as_qdir=$as_dir;;
11598 as_dirs="'$as_qdir' $as_dirs"
11599 as_dir=`$as_dirname -- "$as_dir" ||
11600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601 X"$as_dir" : 'X\(//\)[^/]' \| \
11602 X"$as_dir" : 'X\(//\)$' \| \
11603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11609 /^X\(\/\/\)[^/].*/{
11622 test -d "$as_dir" && break
11624 test -z "$as_dirs" || eval "mkdir $as_dirs"
11625 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11626 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11627 { (exit 1); exit 1; }; }; }
11631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634 # A ".." for each directory in $ac_dir_suffix.
11635 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11636 case $ac_top_builddir_sub in
11637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11641 ac_abs_top_builddir=$ac_pwd
11642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11643 # for backward compatibility:
11644 ac_top_builddir=$ac_top_build_prefix
11647 .) # We are building in place.
11649 ac_top_srcdir=$ac_top_builddir_sub
11650 ac_abs_top_srcdir=$ac_pwd ;;
11651 [\\/]* | ?:[\\/]* ) # Absolute name.
11652 ac_srcdir=$srcdir$ac_dir_suffix;
11653 ac_top_srcdir=$srcdir
11654 ac_abs_top_srcdir=$srcdir ;;
11655 *) # Relative name.
11656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11657 ac_top_srcdir=$ac_top_build_prefix$srcdir
11658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11671 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11675 cat >>$CONFIG_STATUS <<\_ACEOF
11676 # If the template does not know about datarootdir, expand it.
11677 # FIXME: This hack should be removed a few years after 2.60.
11678 ac_datarootdir_hack=; ac_datarootdir_seen=
11680 case `sed -n '/datarootdir/ {
11689 ' $ac_file_inputs` in
11690 *datarootdir*) ac_datarootdir_seen=yes;;
11691 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11692 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11693 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11695 cat >>$CONFIG_STATUS <<_ACEOF
11696 ac_datarootdir_hack='
11697 s&@datadir@&$datadir&g
11698 s&@docdir@&$docdir&g
11699 s&@infodir@&$infodir&g
11700 s&@localedir@&$localedir&g
11701 s&@mandir@&$mandir&g
11702 s&\\\${datarootdir}&$datarootdir&g' ;;
11706 # Neutralize VPATH when `$srcdir' = `.'.
11707 # Shell code in configure.ac might set extrasub.
11708 # FIXME: do we really want to maintain this feature?
11709 cat >>$CONFIG_STATUS <<_ACEOF
11713 cat >>$CONFIG_STATUS <<\_ACEOF
11715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11716 s&@configure_input@&$configure_input&;t t
11717 s&@top_builddir@&$ac_top_builddir_sub&;t t
11718 s&@srcdir@&$ac_srcdir&;t t
11719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11720 s&@top_srcdir@&$ac_top_srcdir&;t t
11721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11722 s&@builddir@&$ac_builddir&;t t
11723 s&@abs_builddir@&$ac_abs_builddir&;t t
11724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11725 s&@INSTALL@&$ac_INSTALL&;t t
11726 $ac_datarootdir_hack
11727 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11730 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11732 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11733 which seems to be undefined. Please make sure it is defined." >&5
11734 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11735 which seems to be undefined. Please make sure it is defined." >&2;}
11739 -) cat "$tmp/out"; rm -f "$tmp/out";;
11740 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11749 # Transform confdefs.h into a sed script `conftest.defines', that
11750 # substitutes the proper values into config.h.in to produce config.h.
11751 rm -f conftest.defines conftest.tail
11752 # First, append a space to every undef/define line, to ease matching.
11753 echo 's/$/ /' >conftest.defines
11754 # Then, protect against being on the right side of a sed subst, or in
11755 # an unquoted here document, in config.status. If some macros were
11756 # called several times there might be several #defines for the same
11757 # symbol, which is useless. But do not sort them, since the last
11758 # AC_DEFINE must be honored.
11759 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11760 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11761 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11762 # PARAMS is the parameter list in the macro definition--in most cases, it's
11763 # just an empty string.
11764 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11765 ac_dB='\\)[ (].*,\\1define\\2'
11773 s/^[ ]*#[ ]*define[ ][ ]*//
11778 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11779 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11780 ' >>conftest.defines
11782 # Remove the space that was appended to ease matching.
11783 # Then replace #undef with comments. This is necessary, for
11784 # example, in the case of _POSIX_SOURCE, which is predefined and required
11785 # on some systems where configure will not decide to define it.
11786 # (The regexp can be short, since the line contains either #define or #undef.)
11788 s,^[ #]*u.*,/* & */,' >>conftest.defines
11790 # Break up conftest.defines:
11791 ac_max_sed_lines=50
11793 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11794 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11795 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11797 ac_in='$ac_file_inputs'
11798 ac_out='"$tmp/out1"'
11799 ac_nxt='"$tmp/out2"'
11803 # Write a here document:
11804 cat >>$CONFIG_STATUS <<_ACEOF
11805 # First, check the format of the line:
11806 cat >"\$tmp/defines.sed" <<\\CEOF
11807 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11808 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11812 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11814 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11815 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11816 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11817 grep . conftest.tail >/dev/null || break
11818 rm -f conftest.defines
11819 mv conftest.tail conftest.defines
11821 rm -f conftest.defines conftest.tail
11823 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11824 cat >>$CONFIG_STATUS <<\_ACEOF
11825 if test x"$ac_file" != x-; then
11826 echo "/* $configure_input */" >"$tmp/config.h"
11827 cat "$ac_result" >>"$tmp/config.h"
11828 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11829 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11830 echo "$as_me: $ac_file is unchanged" >&6;}
11833 mv "$tmp/config.h" $ac_file
11836 echo "/* $configure_input */"
11848 { (exit 0); exit 0; }
11850 chmod +x $CONFIG_STATUS
11851 ac_clean_files=$ac_clean_files_save
11854 # configure is writing to config.log, and then calls config.status.
11855 # config.status does its own redirection, appending to config.log.
11856 # Unfortunately, on DOS this fails, as config.log is still kept open
11857 # by configure, so config.status won't be able to write to it; its
11858 # output is simply discarded. So we exec the FD to /dev/null,
11859 # effectively closing config.log, so it can be properly (re)opened and
11860 # appended to by config.status. When coming back to configure, we
11861 # need to make the FD available again.
11862 if test "$no_create" != yes; then
11864 ac_config_status_args=
11865 test "$silent" = yes &&
11866 ac_config_status_args="$ac_config_status_args --quiet"
11868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11871 # would make configure fail if this is the last instruction.
11872 $ac_cs_success || { (exit 1); exit 1; }
11876 if test -f .devel ; then