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
709 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=no
;;
829 -docdir |
--docdir |
--docdi |
--doc |
--do)
831 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
834 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
836 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
839 -enable-* |
--enable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=\
$ac_optarg ;;
848 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
849 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
850 |
--exec |
--exe |
--ex)
851 ac_prev
=exec_prefix
;;
852 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
853 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
854 |
--exec=* |
--exe=* |
--ex=*)
855 exec_prefix
=$ac_optarg ;;
857 -gas |
--gas |
--ga |
--g)
858 # Obsolete; use --with-gas.
861 -help |
--help |
--hel |
--he |
-h)
863 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
864 ac_init_help
=recursive
;;
865 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
866 ac_init_help
=short
;;
868 -host |
--host |
--hos |
--ho)
869 ac_prev
=host_alias
;;
870 -host=* |
--host=* |
--hos=* |
--ho=*)
871 host_alias
=$ac_optarg ;;
873 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
875 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
877 htmldir
=$ac_optarg ;;
879 -includedir |
--includedir |
--includedi |
--included |
--include \
880 |
--includ |
--inclu |
--incl |
--inc)
881 ac_prev
=includedir
;;
882 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
883 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
884 includedir
=$ac_optarg ;;
886 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
888 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
889 infodir
=$ac_optarg ;;
891 -libdir |
--libdir |
--libdi |
--libd)
893 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
896 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
897 |
--libexe |
--libex |
--libe)
898 ac_prev
=libexecdir
;;
899 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
900 |
--libexe=* |
--libex=* |
--libe=*)
901 libexecdir
=$ac_optarg ;;
903 -localedir |
--localedir |
--localedi |
--localed |
--locale)
905 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
906 localedir
=$ac_optarg ;;
908 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
909 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
910 ac_prev
=localstatedir
;;
911 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
912 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
913 localstatedir
=$ac_optarg ;;
915 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
917 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
921 # Obsolete; use --without-fp.
924 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
925 |
--no-cr |
--no-c |
-n)
928 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
929 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
932 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
933 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
934 |
--oldin |
--oldi |
--old |
--ol |
--o)
935 ac_prev
=oldincludedir
;;
936 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
937 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
938 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
939 oldincludedir
=$ac_optarg ;;
941 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
943 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
946 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
947 |
--program-pre |
--program-pr |
--program-p)
948 ac_prev
=program_prefix
;;
949 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
950 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
951 program_prefix
=$ac_optarg ;;
953 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
954 |
--program-suf |
--program-su |
--program-s)
955 ac_prev
=program_suffix
;;
956 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
957 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
958 program_suffix
=$ac_optarg ;;
960 -program-transform-name |
--program-transform-name \
961 |
--program-transform-nam |
--program-transform-na \
962 |
--program-transform-n |
--program-transform- \
963 |
--program-transform |
--program-transfor \
964 |
--program-transfo |
--program-transf \
965 |
--program-trans |
--program-tran \
966 |
--progr-tra |
--program-tr |
--program-t)
967 ac_prev
=program_transform_name
;;
968 -program-transform-name=* |
--program-transform-name=* \
969 |
--program-transform-nam=* |
--program-transform-na=* \
970 |
--program-transform-n=* |
--program-transform-=* \
971 |
--program-transform=* |
--program-transfor=* \
972 |
--program-transfo=* |
--program-transf=* \
973 |
--program-trans=* |
--program-tran=* \
974 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
975 program_transform_name
=$ac_optarg ;;
977 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
979 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
982 -psdir |
--psdir |
--psdi |
--psd |
--ps)
984 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
988 |
-silent |
--silent |
--silen |
--sile |
--sil)
991 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
993 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
995 sbindir
=$ac_optarg ;;
997 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
998 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
999 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1001 ac_prev
=sharedstatedir
;;
1002 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1003 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1004 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1006 sharedstatedir
=$ac_optarg ;;
1008 -site |
--site |
--sit)
1010 -site=* |
--site=* |
--sit=*)
1013 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1015 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1016 srcdir
=$ac_optarg ;;
1018 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1019 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1020 ac_prev
=sysconfdir
;;
1021 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1022 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1023 sysconfdir
=$ac_optarg ;;
1025 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1026 ac_prev
=target_alias
;;
1027 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1028 target_alias
=$ac_optarg ;;
1030 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1033 -version |
--version |
--versio |
--versi |
--vers |
-V)
1034 ac_init_version
=: ;;
1037 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=\
$ac_optarg ;;
1045 -without-* |
--without-*)
1046 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_
$ac_package=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val
=\$
$ac_var
1111 [\\/$
]* | ?
:[\\/]* ) continue;;
1112 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target
=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x
; then
1127 if test "x$build_alias" = x
; then
1128 cross_compiling
=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1139 test "$silent" = yes && exec 6>/dev
/null
1142 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di
=`ls -di .` &&
1144 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted
=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir
=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1184 ac_srcdir_defaulted
=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1204 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 for ac_var
in $ac_precious_vars; do
1207 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1209 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1220 \`configure' configures this package to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1278 --build=BUILD configure
for building on BUILD
[guessed
]
1279 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1280 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1284 if test -n "$ac_init_help"; then
1289 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1290 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1291 --disable-largefile omit support
for large files
1292 --disable-protochain disable
\"protochain
\" insn
1293 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1294 getaddrinfo available
]
1295 --enable-optimizer-dbg build optimizer debugging code
1296 --enable-yydebug build parser debugging code
1297 --disable-universal don
't build universal on OS X
1298 --enable-bluetooth enable Bluetooth support [default=yes, if support
1300 --enable-can enable CAN support [default=yes, if support
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --without-gcc don't use gcc
1307 --with-sita include SITA support
1308 --with-pcap=TYPE use packet capture TYPE
1309 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1311 --with-dag[=DIR
] include Endace DAG support
["yes", "no" or DIR
;
1312 default
="yes" on BSD and Linux
if present
]
1313 --with-dag-includes=DIR Endace DAG include directory
1314 --with-dag-libraries=DIR
1315 Endace DAG library directory
1316 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1317 supplied
).
[default
=yes, on Linux
, if present
]
1318 --with-snf[=DIR
] include Myricom SNF support
["yes", "no" or DIR
;
1319 default
="yes" on BSD and Linux
if present
]
1320 --with-snf-includes=DIR Myricom SNF include directory
1321 --with-snf-libraries=DIR
1322 Myricom SNF library directory
1323 --without-flex don
't use flex
1324 --without-bison don't use bison
1326 Some influential environment variables
:
1327 CC C compiler
command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1330 nonstandard directory
<lib dir
>
1331 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1332 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1333 you have headers
in a nonstandard directory
<include dir
>
1336 Use these variables to override the choices made by
`configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1366 .) # We are building in place.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1400 generated by GNU Autoconf 2.61
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1426 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1427 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1428 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1429 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1430 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1432 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1433 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1435 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1436 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1437 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1438 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1439 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1440 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1441 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1474 ac_must_keep_next=false
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1485 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 -* ) ac_must_keep_next=true ;;
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1530 # The following way of writing the cache mishandles newlines in values,
1532 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1533 eval ac_val=\$$ac_var
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1547 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1567 for ac_var in $ac_subst_vars
1569 eval ac_val=\$$ac_var
1571 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 echo "$ac_var='\''$ac_val'\''"
1577 if test -n "$ac_subst_files"; then
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1584 for ac_var in $ac_subst_files
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1595 if test -s confdefs.h; then
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1621 # Predefined preprocessor variables.
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1686 # Check that the precious variables saved in the cache have kept the same
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1697 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1701 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1708 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1709 echo "$as_me: former value
: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1711 echo "$as_me: current value
: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1729 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1730 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761 if test -f "$ac_dir/install-sh"; then
1763 ac_install_sh="$ac_aux_dir/install-sh -c"
1765 elif test -f "$ac_dir/install.sh"; then
1767 ac_install_sh="$ac_aux_dir/install.sh -c"
1769 elif test -f "$ac_dir/shtool"; then
1771 ac_install_sh="$ac_aux_dir/shtool install -c"
1775 if test -z "$ac_aux_dir"; then
1776 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778 { (exit 1); exit 1; }; }
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1790 # Make sure we can run config.sub.
1791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1792 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1794 { (exit 1); exit 1; }; }
1796 { echo "$as_me:$LINENO: checking build system type" >&5
1797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_build+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 ac_build_alias=$build_alias
1802 test "x$ac_build_alias" = x &&
1803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1804 test "x$ac_build_alias" = x &&
1805 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1807 { (exit 1); exit 1; }; }
1808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1815 echo "${ECHO_T}$ac_cv_build" >&6; }
1816 case $ac_cv_build in
1818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1819 echo "$as_me: error: invalid value of canonical build" >&2;}
1820 { (exit 1); exit 1; }; };;
1823 ac_save_IFS=$IFS; IFS='-'
1829 # Remember, the first character of IFS is used to create $*,
1830 # except with old shells:
1833 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1836 { echo "$as_me:$LINENO: checking host system type" >&5
1837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1838 if test "${ac_cv_host+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test "x$host_alias" = x; then
1842 ac_cv_host=$ac_cv_build
1844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1847 { (exit 1); exit 1; }; }
1851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1852 echo "${ECHO_T}$ac_cv_host" >&6; }
1855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1856 echo "$as_me: error: invalid value of canonical host" >&2;}
1857 { (exit 1); exit 1; }; };;
1860 ac_save_IFS=$IFS; IFS='-'
1866 # Remember, the first character of IFS is used to create $*,
1867 # except with old shells:
1870 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1873 { echo "$as_me:$LINENO: checking target system type" >&5
1874 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1875 if test "${ac_cv_target+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test "x$target_alias" = x; then
1879 ac_cv_target=$ac_cv_host
1881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1888 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1889 echo "${ECHO_T}$ac_cv_target" >&6; }
1890 case $ac_cv_target in
1892 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1893 echo "$as_me: error: invalid value of canonical target" >&2;}
1894 { (exit 1); exit 1; }; };;
1896 target=$ac_cv_target
1897 ac_save_IFS=$IFS; IFS='-'
1903 # Remember, the first character of IFS is used to create $*,
1904 # except with old shells:
1907 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
1910 # The aliases save the names the user supplied, while $host etc.
1911 # will get canonicalized.
1912 test -n "$target_alias" &&
1913 test "$program_prefix$program_suffix$program_transform_name" = \
1915 program_prefix=${target_alias}-
1923 # Check whether --with-gcc was given.
1924 if test "${with_gcc+set}" = set; then
1930 if test "${srcdir}" != "." ; then
1931 V_INCLS="-I\$(srcdir)"
1933 if test "${CFLAGS+set}" = set; then
1934 LBL_CFLAGS="$CFLAGS"
1936 if test -z "$CC" ; then
1940 # Extract the first word of "shlicc2", so it can be a program name with args.
1941 set dummy shlicc2; ac_word=$2
1942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1944 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$SHLICC2"; then
1948 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1957 ac_cv_prog_SHLICC2="yes"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1968 SHLICC2=$ac_cv_prog_SHLICC2
1969 if test -n "$SHLICC2"; then
1970 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1971 echo "${ECHO_T}$SHLICC2" >&6; }
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1978 if test $SHLICC2 = yes ; then
1985 if test -z "$CC" -a "$with_gcc" = no ; then
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 if test -n "$CC"; then
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2034 if test -z "$ac_cv_prog_CC"; then
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2072 if test "x$ac_ct_CC" = x; then
2075 case $cross_compiling:$ac_tool_warned in
2077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&5
2080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2083 ac_tool_warned=yes ;;
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2132 if test -z "$CC"; then
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152 ac_prog_rejected=yes
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test $ac_prog_rejected = yes; then
2164 # We found a bogon in the path, so make sure we never use it.
2165 set dummy $ac_cv_prog_CC
2167 if test $# != 0; then
2168 # We chose a different compiler from the bogus one.
2169 # However, it has the same basename, so the bogon will be chosen
2170 # first if we set CC to just the basename; use the full file name.
2172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 for ac_prog in cl.exe
2192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2229 test -n "$CC" && break
2232 if test -z "$CC"; then
2234 for ac_prog in cl.exe
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_ac_ct_CC="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$ac_ct_CC" && break
2276 if test "x$ac_ct_CC" = x; then
2279 case $cross_compiling:$ac_tool_warned in
2281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2282 whose name does not start with the host triplet. If you think this
2283 configuration is useful to you, please write to autoconf@gnu.org." >&5
2284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2285 whose name does not start with the host triplet. If you think this
2286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2287 ac_tool_warned=yes ;;
2296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2297 See \`config.log
' for more details." >&5
2298 echo "$as_me: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details.
" >&2;}
2300 { (exit 1); exit 1; }; }
2302 # Provide some information about the compiler.
2303 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2304 ac_compiler=`set X $ac_compile; echo $2`
2305 { (ac_try="$ac_compiler --version >&5"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compiler --version >&5") 2>&5
2313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2314 (exit $ac_status); }
2315 { (ac_try="$ac_compiler -v >&5"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compiler -v >&5") 2>&5
2323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try="$ac_compiler -V >&5"
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compiler -V >&5") 2>&5
2333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2334 (exit $ac_status); }
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 ac_clean_files_save=$ac_clean_files
2352 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2353 # Try to create an executable without -o first, disregard a.out.
2354 # It will help us diagnose broken compilers, and finding out an intuition
2356 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2357 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2358 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360 # List of possible output files, starting from the most likely.
2361 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2362 # only as a last resort. b.out is created by i960 compilers.
2363 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2365 # The IRIX 6 linker writes into existing files which may not be
2366 # executable, retaining their permissions. Remove them first so a
2367 # subsequent execution test works.
2369 for ac_file in $ac_files
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2378 if { (ac_try="$ac_link_default"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_link_default") 2>&5
2386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2391 # so that the user can short-circuit this test for compilers unknown to
2393 for ac_file in $ac_files ''
2395 test -f "$ac_file" || continue
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2400 # We found the default executable, but exeext='' is most
2404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 # We set ac_cv_exeext here because the later test for it is not
2409 # safe: cross compilers may not add the suffix if given an `-o'
2410 # argument, so we may need to know it at that point already.
2411 # Even if this section looks crufty: it has the advantage of
2418 test "$ac_cv_exeext" = no && ac_cv_exeext=
2424 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2425 echo "${ECHO_T}$ac_file" >&6; }
2426 if test -z "$ac_file"; then
2427 echo "$as_me: failed program was
:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2431 See \
`config.log' for more details." >&5
2432 echo "$as_me: error: C compiler cannot create executables
2433 See \`config.log
' for more details." >&2;}
2434 { (exit 77); exit 77; }; }
2437 ac_exeext=$ac_cv_exeext
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='.
/$ac_file'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 if test "$cross_compiling" = maybe; then
2461 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \
`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details.
" >&2;}
2467 { (exit 1); exit 1; }; }
2471 { echo "$as_me:$LINENO: result
: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2479 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2483 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2484 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link") 2>&5
2493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2499 for ac_file in conftest.exe conftest conftest.*; do
2500 test -f "$ac_file" || continue
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2510 See \
`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log
' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's
/^
/|
/' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details.
" >&5
2568 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2569 See \
`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2606 *) ac_try_echo
=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_compile") 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } && {
2616 test -z "$ac_c_werror_flag" ||
2617 test ! -s conftest.err
2618 } && test -s conftest.
$ac_objext; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.
$ac_ext >&5
2627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2628 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2633 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS
=${CFLAGS+set}
2635 ac_save_CFLAGS
=$CFLAGS
2636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_save_c_werror_flag
=$ac_c_werror_flag
2642 ac_c_werror_flag
=yes
2645 cat >conftest.
$ac_ext <<_ACEOF
2648 cat confdefs.h
>>conftest.
$ac_ext
2649 cat >>conftest.
$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2660 rm -f conftest.
$ac_objext
2661 if { (ac_try
="$ac_compile"
2663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.$ac_objext; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2702 *) ac_try_echo
=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1
>conftest.err
2709 cat conftest.err
>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.
$ac_objext; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2720 ac_c_werror_flag
=$ac_save_c_werror_flag
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.
$ac_objext
2738 if { (ac_try
="$ac_compile"
2740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2773 if test "$ac_test_CFLAGS" = set; then
2774 CFLAGS=$ac_save_CFLAGS
2775 elif test $ac_cv_prog_cc_g = yes; then
2776 if test "$GCC" = yes; then
2782 if test "$GCC" = yes; then
2788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_c89+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 ac_cv_prog_cc_c89=no
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2803 #include <sys/types.h>
2804 #include <sys/stat.h>
2805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2806 struct buf { int x; };
2807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808 static char *e (p, i)
2814 static char *f (char * (*g) (char **, int), char **p, ...)
2819 s = g (p, va_arg (v,int));
2824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2825 function prototypes and stuff, but not '\xHH' hex character constants.
2826 These don't provoke an error unfortunately, instead are silently treated
2827 as 'x'. The following induces an error, until -std is added to get
2828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2829 array size at least. It's necessary to write '\x00'==0 to get something
2830 that's true only with -std. */
2831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2834 inside strings and character constants. */
2836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2838 int test (int i, double x);
2839 struct s1 {int (*f) (int a);};
2840 struct s2 {int (*f) (double a);};
2841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855 CC="$ac_save_CC $ac_arg"
2856 rm -f conftest.$ac_objext
2857 if { (ac_try="$ac_compile"
2859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2860 *) ac_try_echo
=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compile") 2>conftest.er1
2865 grep -v '^ *+' conftest.er1
>conftest.err
2867 cat conftest.err
>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && {
2870 test -z "$ac_c_werror_flag" ||
2871 test ! -s conftest.err
2872 } && test -s conftest.
$ac_objext; then
2873 ac_cv_prog_cc_c89
=$ac_arg
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.
$ac_ext >&5
2881 rm -f core conftest.err conftest.
$ac_objext
2882 test "x$ac_cv_prog_cc_c89" != "xno" && break
2884 rm -f conftest.
$ac_ext
2889 case "x$ac_cv_prog_cc_c89" in
2891 { echo "$as_me:$LINENO: result: none needed" >&5
2892 echo "${ECHO_T}none needed" >&6; } ;;
2894 { echo "$as_me:$LINENO: result: unsupported" >&5
2895 echo "${ECHO_T}unsupported" >&6; } ;;
2897 CC
="$CC $ac_cv_prog_cc_c89"
2898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2904 ac_cpp
='$CPP $CPPFLAGS'
2905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2913 if test "$GCC" = yes ; then
2914 if test "$SHLICC2" = yes ; then
2915 ac_cv_lbl_gcc_vers
=2
2918 { echo "$as_me:$LINENO: checking gcc version" >&5
2919 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2920 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2924 sed -e '/^gcc version /!d' \
2925 -e 's/^gcc version //' \
2926 -e 's/ .*//' -e 's/^[^0-9]*//' \
2930 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2931 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2932 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2937 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2938 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2939 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <sys/types.h>
2953 int frob(int, char *)
2958 rm -f conftest.
$ac_objext
2959 if { (ac_try
="$ac_compile"
2961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_lbl_cc_ansi_prototypes=yes
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2980 ac_cv_lbl_cc_ansi_prototypes=no
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2987 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2988 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2992 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2993 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2994 savedcflags="$CFLAGS"
2995 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2996 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <sys/types.h>
3009 int frob(int, char *)
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3018 *) ac_try_echo
=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1
>conftest.err
3025 cat conftest.err
>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.
$ac_objext; then
3031 ac_cv_lbl_cc_hpux_cc_aa
=yes
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.
$ac_ext >&5
3036 ac_cv_lbl_cc_hpux_cc_aa
=no
3039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3042 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3043 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3044 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
3045 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3046 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3047 { (exit 1); exit 1; }; }
3049 CFLAGS
="$savedcflags"
3050 V_CCOPT
="-Aa $V_CCOPT"
3052 cat >>confdefs.h
<<\_ACEOF
3053 #define _HPUX_SOURCE 1
3059 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3060 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3061 savedcflags
="$CFLAGS"
3063 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 cat >conftest.
$ac_ext <<_ACEOF
3069 cat confdefs.h
>>conftest.
$ac_ext
3070 cat >>conftest.
$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <sys/types.h>
3076 int frob(int, char *)
3081 rm -f conftest.
$ac_objext
3082 if { (ac_try
="$ac_compile"
3084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_lbl_cc_osf1_cc_std1=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_cv_lbl_cc_osf1_cc_std1=no
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3110 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3111 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3112 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3113 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3114 { (exit 1); exit 1; }; }
3116 CFLAGS="$savedcflags"
3117 V_CCOPT="-std1 $V_CCOPT"
3121 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3122 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3123 { (exit 1); exit 1; }; }
3127 V_INCLS="$V_INCLS -I/usr/local/include"
3128 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3133 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3138 # Presumed to be DEC OSF/1, Digital UNIX, or
3141 V_CCOPT="$V_CCOPT -g3"
3145 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3146 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3147 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <sys/types.h>
3160 struct a { int b; };
3161 void c(const struct a *)
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3170 *) ac_try_echo
=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3175 grep -v '^ *+' conftest.er1
>conftest.err
3177 cat conftest.err
>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.
$ac_objext; then
3183 ac_cv_lbl_cc_const_proto
=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.
$ac_ext >&5
3188 ac_cv_lbl_cc_const_proto
=no
3191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3194 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3195 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3196 if test $ac_cv_lbl_cc_const_proto = no
; then
3198 cat >>confdefs.h
<<\_ACEOF
3208 if test "$GCC" = yes ; then
3210 # On platforms where we build a shared library:
3212 # add options to generate position-independent code,
3213 # if necessary (it's the default in AIX and Darwin/OS X);
3215 # define option to set the soname of the shared library,
3216 # if the OS supports that;
3218 # add options to specify, at link time, a directory to
3219 # add to the run-time search path, if that's necessary.
3221 V_SHLIB_CMD
="\$(CC)"
3222 V_SHLIB_OPT
="-shared"
3228 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*|osf
*)
3230 # Platforms where the linker is the GNU linker
3231 # or accepts command-line arguments like
3232 # those the GNU linker accepts.
3234 # Some instruction sets require -fPIC on some
3235 # operating systems. Check for them. If you
3236 # have a combination that requires it, add it
3251 V_CCOPT
="$V_CCOPT $PIC_OPT"
3252 V_SONAME_OPT
="-Wl,-soname,"
3253 V_RPATH_OPT
="-Wl,-rpath,"
3257 V_CCOPT
="$V_CCOPT -fpic"
3259 # XXX - this assumes GCC is using the HP linker,
3260 # rather than the GNU linker, and that the "+h"
3261 # option is used on all HP-UX platforms, both .sl
3264 V_SONAME_OPT
="-Wl,+h,"
3266 # By default, directories specifed with -L
3267 # are added to the run-time search path, so
3268 # we don't add them in pcap-config.
3273 V_CCOPT
="$V_CCOPT -fpic"
3275 # XXX - this assumes GCC is using the Sun linker,
3276 # rather than the GNU linker.
3278 V_SONAME_OPT
="-Wl,-h,"
3279 V_RPATH_OPT
="-Wl,-R,"
3284 # Set the appropriate compiler flags and, on platforms
3285 # where we build a shared library:
3287 # add options to generate position-independent code,
3288 # if necessary (it's the default in Darwin/OS X);
3290 # if we generate ".so" shared libraries, define the
3291 # appropriate options for building the shared library;
3293 # add options to specify, at link time, a directory to
3294 # add to the run-time search path, if that's necessary.
3296 # Note: spaces after V_SONAME_OPT are significant; on
3297 # some platforms the soname is passed with a GCC-like
3298 # "-Wl,-soname,{soname}" option, with the soname part
3299 # of the option, while on other platforms the C compiler
3300 # driver takes it as a regular option with the soname
3301 # following the option. The same applies to V_RPATH_OPT.
3306 V_SHLIB_CMD
="\$(CC)"
3307 V_SHLIB_OPT
="-G -bnoentry -bexpall"
3310 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*)
3314 V_CCOPT
="$V_CCOPT -fpic"
3315 V_SHLIB_CMD
="\$(CC)"
3316 V_SHLIB_OPT
="-shared"
3317 V_SONAME_OPT
="-Wl,-soname,"
3318 V_RPATH_OPT
="-Wl,-rpath,"
3322 V_CCOPT
="$V_CCOPT +z"
3323 V_SHLIB_CMD
="\$(LD)"
3327 # By default, directories specifed with -L
3328 # are added to the run-time search path, so
3329 # we don't add them in pcap-config.
3335 # Presumed to be DEC OSF/1, Digital UNIX, or
3338 V_SHLIB_CMD
="\$(CC)"
3339 V_SHLIB_OPT
="-shared"
3340 V_SONAME_OPT
="-soname "
3341 V_RPATH_OPT
="-rpath "
3345 V_CCOPT
="$V_CCOPT -Kpic"
3346 V_SHLIB_CMD
="\$(CC)"
3354 { echo "$as_me:$LINENO: checking for inline" >&5
3355 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3356 save_CFLAGS
="$CFLAGS"
3358 if test "${ac_cv_lbl_inline+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 for ac_lbl_inline
in inline __inline__ __inline
3366 cat >conftest.
$ac_ext <<_ACEOF
3369 cat confdefs.h
>>conftest.
$ac_ext
3370 cat >>conftest.
$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #define inline $ac_lbl_inline
3373 static inline struct iltest *foo(void);
3379 static inline struct iltest *
3382 static struct iltest xxx;
3394 rm -f conftest.
$ac_objext
3395 if { (ac_try
="$ac_compile"
3397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_lbl_cc_inline=yes
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test "$ac_lbl_cc_inline" = yes ; then
3424 if test "$ac_lbl_cc_inline" = yes ; then
3425 ac_cv_lbl_inline=$ac_lbl_inline
3429 CFLAGS="$save_CFLAGS"
3430 if test ! -z "$ac_cv_lbl_inline" ; then
3431 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3432 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3434 { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3438 cat >>confdefs.h <<_ACEOF
3439 #define inline $ac_cv_lbl_inline
3443 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3444 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3445 if test "${ac_cv___attribute__+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3458 static void foo(void) __attribute__ ((noreturn));
3467 main(int argc, char **argv)
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3477 *) ac_try_echo
=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1
>conftest.err
3484 cat conftest.err
>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.
$ac_objext; then
3490 ac_cv___attribute__
=yes
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.
$ac_ext >&5
3495 ac_cv___attribute__
=no
3498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3501 if test "$ac_cv___attribute__" = "yes"; then
3503 cat >>confdefs.h
<<\_ACEOF
3504 #define HAVE___ATTRIBUTE__ 1
3507 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3509 V_DEFS
="$V_DEFS -D_U_=\"\""
3511 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3512 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3516 ac_cpp
='$CPP $CPPFLAGS'
3517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3520 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3522 # On Suns, sometimes $CPP names a directory.
3523 if test -n "$CPP" && test -d "$CPP"; then
3526 if test -z "$CPP"; then
3527 if test "${ac_cv_prog_CPP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 # Double quotes because CPP needs to be expanded
3531 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534 for ac_c_preproc_warn_flag
in '' yes
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat >conftest.
$ac_ext <<_ACEOF
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3549 # include <limits.h>
3551 # include <assert.h>
3555 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null && {
3568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 # Broken: fails on valid input.
3580 rm -f conftest.err conftest.$ac_ext
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <ac_nonexistent.h>
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1
>conftest.err
3602 cat conftest.err
>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev
/null
&& {
3605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3608 # Broken: success on invalid input.
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.
$ac_ext >&5
3614 # Passes both tests.
3619 rm -f conftest.err conftest.
$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.
$ac_ext
3624 if $ac_preproc_ok; then
3636 { echo "$as_me:$LINENO: result: $CPP" >&5
3637 echo "${ECHO_T}$CPP" >&6; }
3639 for ac_c_preproc_warn_flag
in '' yes
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.
$ac_ext <<_ACEOF
3650 cat confdefs.h
>>conftest.
$ac_ext
3651 cat >>conftest.
$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3654 # include <limits.h>
3656 # include <assert.h>
3660 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 # Broken: fails on valid input.
3685 rm -f conftest.err conftest.$ac_ext
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3700 *) ac_try_echo
=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev
/null
&& {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.
$ac_ext >&5
3719 # Passes both tests.
3724 rm -f conftest.err conftest.
$ac_ext
3727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728 rm -f conftest.err conftest.
$ac_ext
3729 if $ac_preproc_ok; then
3732 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&5
3734 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }
3740 ac_cpp
='$CPP $CPPFLAGS'
3741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3747 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_GREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 # Extract the first word of "grep ggrep" to use in msg output
3752 if test -z "$GREP"; then
3753 set dummy
grep ggrep
; ac_prog_name
=$2
3754 if test "${ac_cv_path_GREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_path_GREP_found
=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_prog
in grep ggrep
; do
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3768 # Check for GNU ac_path_GREP and select it if it is found.
3769 # Check for GNU $ac_path_GREP
3770 case `"$ac_path_GREP" --version 2>&1` in
3772 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'GREP' >> "conftest.nl"
3782 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3783 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3784 ac_count
=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_GREP
="$ac_path_GREP"
3788 ac_path_GREP_max
=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3793 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3797 $ac_path_GREP_found && break 3
3807 GREP
="$ac_cv_path_GREP"
3808 if test -z "$GREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3815 ac_cv_path_GREP
=$GREP
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3822 GREP
="$ac_cv_path_GREP"
3825 { echo "$as_me:$LINENO: checking for egrep" >&5
3826 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3831 then ac_cv_path_EGREP
="$GREP -E"
3833 # Extract the first word of "egrep" to use in msg output
3834 if test -z "$EGREP"; then
3835 set dummy
egrep; ac_prog_name
=$2
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_path_EGREP_found
=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3845 test -z "$as_dir" && as_dir
=.
3846 for ac_prog
in egrep; do
3847 for ac_exec_ext
in '' $ac_executable_extensions; do
3848 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3849 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3850 # Check for GNU ac_path_EGREP and select it if it is found.
3851 # Check for GNU $ac_path_EGREP
3852 case `"$ac_path_EGREP" --version 2>&1` in
3854 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3857 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 echo 'EGREP' >> "conftest.nl"
3864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3865 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3866 ac_count
=`expr $ac_count + 1`
3867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_EGREP
="$ac_path_EGREP"
3870 ac_path_EGREP_max
=$ac_count
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3875 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3879 $ac_path_EGREP_found && break 3
3889 EGREP
="$ac_cv_path_EGREP"
3890 if test -z "$EGREP"; then
3891 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3897 ac_cv_path_EGREP
=$EGREP
3903 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3904 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3905 EGREP
="$ac_cv_path_EGREP"
3908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3932 rm -f conftest.
$ac_objext
3933 if { (ac_try
="$ac_compile"
3935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3949 ac_cv_header_stdc=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_cv_header_stdc=no
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_header_stdc = yes; then
3960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "memchr" >/dev/null 2>&1; then
3974 ac_cv_header_stdc=no
3980 if test $ac_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "free" >/dev/null 2>&1; then
3995 ac_cv_header_stdc=no
4001 if test $ac_cv_header_stdc = yes; then
4002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4003 if test "$cross_compiling" = yes; then
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4014 #if ((' ' & 0x0FF) == 0x020)
4015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4018 # define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
4037 rm -f conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4041 *) ac_try_echo
=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_header_stdc=no
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4074 if test $ac_cv_header_stdc = yes; then
4076 cat >>confdefs.h <<\_ACEOF
4077 #define STDC_HEADERS 1
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093 inttypes.h stdint.h unistd.h
4095 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4109 #include <$ac_header>
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4115 *) ac_try_echo
=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1
>conftest.err
4122 cat conftest.err
>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.
$ac_objext; then
4128 eval "$as_ac_Header=yes"
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 eval "$as_ac_Header=no"
4136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4138 ac_res
=`eval echo '${'$as_ac_Header'}'`
4139 { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 echo "${ECHO_T}$ac_res" >&6; }
4141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h
<<_ACEOF
4143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152 for ac_header
in sys
/bitypes.h
4154 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_res
=`eval echo '${'$as_ac_Header'}'`
4162 { echo "$as_me:$LINENO: result: $ac_res" >&5
4163 echo "${ECHO_T}$ac_res" >&6; }
4165 # Is the header compilable?
4166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4168 cat >conftest.
$ac_ext <<_ACEOF
4171 cat confdefs.h
>>conftest.
$ac_ext
4172 cat >>conftest.
$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4175 #include <$ac_header>
4177 rm -f conftest.
$ac_objext
4178 if { (ac_try
="$ac_compile"
4180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_header_compiler=yes
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_header_compiler=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4204 echo "${ECHO_T}$ac_header_compiler" >&6; }
4206 # Is the header present?
4207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <$ac_header>
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4220 *) ac_try_echo
=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1
>conftest.err
4227 cat conftest.err
>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev
/null
&& {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4233 ac_header_preproc
=yes
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4238 ac_header_preproc
=no
4241 rm -f conftest.err conftest.
$ac_ext
4242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4243 echo "${ECHO_T}$ac_header_preproc" >&6; }
4245 # So? What about this header?
4246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4252 ac_header_preproc
=yes
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 eval "$as_ac_Header=\$ac_header_preproc"
4277 ac_res
=`eval echo '${'$as_ac_Header'}'`
4278 { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h
<<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 { echo "$as_me:$LINENO: checking for int8_t" >&5
4293 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_int8_t+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 #ifdef HAVE_SYS_BITYPES_H
4305 #include <sys/bitypes.h>
4308 typedef int8_t ac__type_new_;
4312 if ((ac__type_new_ *) 0)
4314 if (sizeof (ac__type_new_))
4320 rm -f conftest.
$ac_objext
4321 if { (ac_try
="$ac_compile"
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_type_int8_t=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_type_int8_t=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4349 if test $ac_cv_type_int8_t = yes; then
4353 cat >>confdefs.h <<\_ACEOF
4354 #define int8_t signed char
4359 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4360 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4361 if test "${ac_cv_type_u_int8_t+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 #ifdef HAVE_SYS_BITYPES_H
4372 #include <sys/bitypes.h>
4375 typedef u_int8_t ac__type_new_;
4379 if ((ac__type_new_ *) 0)
4381 if (sizeof (ac__type_new_))
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4391 *) ac_try_echo
=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1
>conftest.err
4398 cat conftest.err
>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.
$ac_objext; then
4404 ac_cv_type_u_int8_t
=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.
$ac_ext >&5
4409 ac_cv_type_u_int8_t
=no
4412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4414 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4415 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4416 if test $ac_cv_type_u_int8_t = yes; then
4420 cat >>confdefs.h
<<\_ACEOF
4421 #define u_int8_t unsigned char
4426 { echo "$as_me:$LINENO: checking for int16_t" >&5
4427 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4428 if test "${ac_cv_type_int16_t+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4438 typedef int16_t ac__type_new_;
4442 if ((ac__type_new_ *) 0)
4444 if (sizeof (ac__type_new_))
4450 rm -f conftest.
$ac_objext
4451 if { (ac_try
="$ac_compile"
4453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4467 ac_cv_type_int16_t=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_cv_type_int16_t=no
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4478 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4479 if test $ac_cv_type_int16_t = yes; then
4483 cat >>confdefs.h <<\_ACEOF
4484 #define int16_t short
4487 $ac_includes_default
4488 #ifdef HAVE_SYS_BITYPES_H
4489 #include <sys/bitypes.h>
4493 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4494 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4495 if test "${ac_cv_type_u_int16_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4505 #ifdef HAVE_SYS_BITYPES_H
4506 #include <sys/bitypes.h>
4509 typedef u_int16_t ac__type_new_;
4513 if ((ac__type_new_ *) 0)
4515 if (sizeof (ac__type_new_))
4521 rm -f conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4525 *) ac_try_echo
=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_compile") 2>conftest.er1
4530 grep -v '^ *+' conftest.er1
>conftest.err
4532 cat conftest.err
>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && {
4535 test -z "$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 } && test -s conftest.
$ac_objext; then
4538 ac_cv_type_u_int16_t
=yes
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4543 ac_cv_type_u_int16_t
=no
4546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4548 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4549 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4550 if test $ac_cv_type_u_int16_t = yes; then
4554 cat >>confdefs.h
<<\_ACEOF
4555 #define u_int16_t unsigned short
4560 { echo "$as_me:$LINENO: checking for int32_t" >&5
4561 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4562 if test "${ac_cv_type_int32_t+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.
$ac_ext <<_ACEOF
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 #ifdef HAVE_SYS_BITYPES_H
4573 #include <sys/bitypes.h>
4576 typedef int32_t ac__type_new_;
4580 if ((ac__type_new_ *) 0)
4582 if (sizeof (ac__type_new_))
4588 rm -f conftest.
$ac_objext
4589 if { (ac_try
="$ac_compile"
4591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_type_int32_t=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_type_int32_t=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4616 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4617 if test $ac_cv_type_int32_t = yes; then
4621 cat >>confdefs.h <<\_ACEOF
4627 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4628 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_u_int32_t+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 #ifdef HAVE_SYS_BITYPES_H
4640 #include <sys/bitypes.h>
4643 typedef u_int32_t ac__type_new_;
4647 if ((ac__type_new_ *) 0)
4649 if (sizeof (ac__type_new_))
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4659 *) ac_try_echo
=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.
$ac_objext; then
4672 ac_cv_type_u_int32_t
=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 ac_cv_type_u_int32_t
=no
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4683 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4684 if test $ac_cv_type_u_int32_t = yes; then
4688 cat >>confdefs.h
<<\_ACEOF
4689 #define u_int32_t unsigned int
4694 { echo "$as_me:$LINENO: checking for int64_t" >&5
4695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4696 if test "${ac_cv_type_int64_t+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #ifdef HAVE_SYS_BITYPES_H
4707 #include <sys/bitypes.h>
4710 typedef int64_t ac__type_new_;
4714 if ((ac__type_new_ *) 0)
4716 if (sizeof (ac__type_new_))
4722 rm -f conftest.
$ac_objext
4723 if { (ac_try
="$ac_compile"
4725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 ac_cv_type_int64_t=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_cv_type_int64_t=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4750 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4751 if test $ac_cv_type_int64_t = yes; then
4755 cat >>confdefs.h <<\_ACEOF
4756 #define int64_t long long
4761 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4762 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4763 if test "${ac_cv_type_u_int64_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #ifdef HAVE_SYS_BITYPES_H
4774 #include <sys/bitypes.h>
4777 typedef u_int64_t ac__type_new_;
4781 if ((ac__type_new_ *) 0)
4783 if (sizeof (ac__type_new_))
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4793 *) ac_try_echo
=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.
$ac_objext; then
4806 ac_cv_type_u_int64_t
=yes
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4811 ac_cv_type_u_int64_t
=no
4814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4817 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4818 if test $ac_cv_type_u_int64_t = yes; then
4822 cat >>confdefs.h
<<\_ACEOF
4823 #define u_int64_t unsigned long long
4830 # Try to arrange for large file support.
4832 # Check whether --enable-largefile was given.
4833 if test "${enable_largefile+set}" = set; then
4834 enableval
=$enable_largefile;
4837 if test "$enable_largefile" != no
; then
4839 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4840 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4841 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_cv_sys_largefile_CC
=no
4845 if test "$GCC" != yes; then
4848 # IRIX 6.2 and later do not support large files by default,
4849 # so use the C compiler's -n32 option if that helps.
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #include <sys/types.h>
4857 /* Check that off_t can represent 2**63 - 1 correctly.
4858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4859 since some C++ compilers masquerading as C compilers
4860 incorrectly reject 9223372036854775807. */
4861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4863 && LARGE_OFF_T % 2147483647 == 1)
4873 rm -f conftest.
$ac_objext
4874 if { (ac_try
="$ac_compile"
4876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4898 rm -f core conftest.err conftest.$ac_objext
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4904 *) ac_try_echo
=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1
>conftest.err
4911 cat conftest.err
>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.
$ac_objext; then
4917 ac_cv_sys_largefile_CC
=' -n32'; break
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.
$ac_ext >&5
4925 rm -f core conftest.err conftest.
$ac_objext
4929 rm -f conftest.
$ac_ext
4932 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4934 if test "$ac_cv_sys_largefile_CC" != no
; then
4935 CC
=$CC$ac_cv_sys_largefile_CC
4938 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 cat >conftest.
$ac_ext <<_ACEOF
4947 cat confdefs.h
>>conftest.
$ac_ext
4948 cat >>conftest.
$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4967 rm -f conftest.
$ac_objext
4968 if { (ac_try
="$ac_compile"
4970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4984 ac_cv_sys_file_offset_bits=no; break
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #define _FILE_OFFSET_BITS 64
5000 #include <sys/types.h>
5001 /* Check that off_t can represent 2**63 - 1 correctly.
5002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5003 since some C++ compilers masquerading as C compilers
5004 incorrectly reject 9223372036854775807. */
5005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5007 && LARGE_OFF_T % 2147483647 == 1)
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5021 *) ac_try_echo
=$ac_try;;
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.
$ac_objext; then
5034 ac_cv_sys_file_offset_bits
=64; break
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.
$ac_ext >&5
5042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5043 ac_cv_sys_file_offset_bits
=unknown
5047 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5048 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5049 case $ac_cv_sys_file_offset_bits in #(
5052 cat >>confdefs.h
<<_ACEOF
5053 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058 if test $ac_cv_sys_file_offset_bits = unknown
; then
5059 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5060 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5061 if test "${ac_cv_sys_large_files+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5068 cat confdefs.h
>>conftest.
$ac_ext
5069 cat >>conftest.
$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5088 rm -f conftest.
$ac_objext
5089 if { (ac_try
="$ac_compile"
5091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_compile") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_objext; then
5105 ac_cv_sys_large_files=no; break
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #define _LARGE_FILES 1
5121 #include <sys/types.h>
5122 /* Check that off_t can represent 2**63 - 1 correctly.
5123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5124 since some C++ compilers masquerading as C compilers
5125 incorrectly reject 9223372036854775807. */
5126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5128 && LARGE_OFF_T % 2147483647 == 1)
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5142 *) ac_try_echo
=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1
>conftest.err
5149 cat conftest.err
>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.
$ac_objext; then
5155 ac_cv_sys_large_files
=1; break
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5164 ac_cv_sys_large_files
=unknown
5168 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5169 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5170 case $ac_cv_sys_large_files in #(
5173 cat >>confdefs.h
<<_ACEOF
5174 #define _LARGE_FILES $ac_cv_sys_large_files
5182 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5183 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5184 if test "${ac_cv_sys_largefile_source+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 cat >conftest.
$ac_ext <<_ACEOF
5191 cat confdefs.h
>>conftest.
$ac_ext
5192 cat >>conftest.
$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5198 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5203 rm -f conftest.
$ac_objext conftest
$ac_exeext
5204 if { (ac_try
="$ac_link"
5206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest$ac_exeext &&
5220 $as_test_x conftest$ac_exeext; then
5221 ac_cv_sys_largefile_source=no; break
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230 conftest$ac_exeext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #define _LARGEFILE_SOURCE 1
5242 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (ac_try="$ac_link"
5250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5251 *) ac_try_echo
=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1
>conftest.err
5258 cat conftest.err
>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest
$ac_exeext &&
5264 $as_test_x conftest
$ac_exeext; then
5265 ac_cv_sys_largefile_source
=1; break
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.
$ac_ext >&5
5273 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5274 conftest
$ac_exeext conftest.
$ac_ext
5275 ac_cv_sys_largefile_source
=unknown
5279 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5281 case $ac_cv_sys_largefile_source in #(
5284 cat >>confdefs.h
<<_ACEOF
5285 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5291 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5292 # in glibc 2.1.3, but that breaks too many other things.
5293 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5294 if test $ac_cv_sys_largefile_source != unknown
; then
5296 cat >>confdefs.h
<<\_ACEOF
5297 #define HAVE_FSEEKO 1
5307 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
5309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_res
=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.
$ac_objext
5333 if { (ac_try
="$ac_compile"
5335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5375 *) ac_try_echo
=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1
>conftest.err
5382 cat conftest.err
>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev
/null
&& {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5388 ac_header_preproc
=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.
$ac_ext >&5
5393 ac_header_preproc
=no
5396 rm -f conftest.err conftest.
$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc
=yes
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 eval "$as_ac_Header=\$ac_header_preproc"
5432 ac_res
=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h
<<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 for ac_header
in net
/pfvar.h
5449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/socket.h>
5465 #include <$ac_header>
5467 rm -f conftest.
$ac_objext
5468 if { (ac_try
="$ac_compile"
5470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 eval "$as_ac_Header=yes"
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 eval "$as_ac_Header=no"
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5506 if test "$ac_cv_header_net_pfvar_h" = yes; then
5508 # Check for various PF actions.
5510 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5511 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 #include <sys/socket.h>
5521 #include <net/pfvar.h>
5525 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5534 *) ac_try_echo
=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1
>conftest.err
5541 cat conftest.err
>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.
$ac_objext; then
5548 { echo "$as_me:$LINENO: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6; }
5551 cat >>confdefs.h
<<\_ACEOF
5552 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5567 for ac_header
in netinet
/if_ether.h
5569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5572 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 #include <sys/socket.h>
5584 #include <$ac_header>
5586 rm -f conftest.
$ac_objext
5587 if { (ac_try
="$ac_compile"
5589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 eval "$as_ac_Header=yes"
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 eval "$as_ac_Header=no"
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5625 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5627 # The simple test didn't work.
5628 # Do we need to include <net/if.h> first?
5629 # Unset ac_cv_header_netinet_if_ether_h so we don't
5630 # treat the previous failure as a cached value and
5631 # suppress the next test.
5633 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5634 echo "$as_me: Rechecking with some additional includes" >&6;}
5635 unset ac_cv_header_netinet_if_ether_h
5637 for ac_header in netinet/if_ether.h
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <sys/types.h>
5652 #include <sys/socket.h>
5653 #include <netinet/in.h>
5658 #include <$ac_header>
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5664 *) ac_try_echo
=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.
$ac_objext; then
5677 eval "$as_ac_Header=yes"
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5682 eval "$as_ac_Header=no"
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 ac_res
=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h
<<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5701 if test "$GCC" = yes ; then
5702 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5703 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5704 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 * This generates a "duplicate case value" when fixincludes
5717 # include <sys/types.h>
5718 # include <sys/time.h>
5719 # include <sys/ioctl.h>
5720 # ifdef HAVE_SYS_IOCCOM_H
5721 # include <sys/ioccom.h>
5734 rm -f conftest.
$ac_objext
5735 if { (ac_try
="$ac_compile"
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_lbl_gcc_fixincludes=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_lbl_gcc_fixincludes=no
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5763 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5764 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5765 # Don't cache failure
5766 unset ac_cv_lbl_gcc_fixincludes
5767 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5768 echo "$as_me: error: see the INSTALL for more info" >&2;}
5769 { (exit 1); exit 1; }; }
5775 for ac_func in strerror strlcpy
5777 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5799 # include <limits.h>
5801 # include <assert.h>
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5832 *) ac_try_echo
=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest
$ac_exeext &&
5845 $as_test_x conftest
$ac_exeext; then
5846 eval "$as_ac_var=yes"
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 eval "$as_ac_var=no"
5854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5855 conftest
$ac_exeext conftest.
$ac_ext
5857 ac_res
=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h
<<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5872 for ac_func
in vsnprintf snprintf
5874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5877 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5888 #define $ac_func innocuous_$ac_func
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func (); below.
5892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 <limits.h> exists even on freestanding compilers. */
5896 # include <limits.h>
5898 # include <assert.h>
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined __stub_$ac_func || defined __stub___$ac_func
5925 rm -f conftest.
$ac_objext conftest
$ac_exeext
5926 if { (ac_try
="$ac_link"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 eval "$as_ac_var=yes"
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 eval "$as_ac_var=no"
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext conftest.$ac_ext
5954 ac_res=`eval echo '${'$as_ac_var'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5967 if test $needsnprintf = yes; then
5968 case " $LIBOBJS " in
5969 *" snprintf.$ac_objext "* ) ;;
5970 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5977 # Do this before checking for ether_hostton(), as it's a
5978 # "gethostbyname() -ish function".
5981 # Most operating systems have gethostbyname() in the default searched
5982 # libraries (i.e. libc):
5983 # Some OSes (eg. Solaris) place it in libnsl
5984 # Some strange OSes (SINIX) have it in libsocket:
5985 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5986 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5987 if test "${ac_cv_search_gethostbyname+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_func_search_save_LIBS=$LIBS
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6004 char gethostbyname ();
6008 return gethostbyname ();
6013 for ac_lib in '' nsl socket resolv; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6024 *) ac_try_echo
=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1
>conftest.err
6031 cat conftest.err
>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest
$ac_exeext &&
6037 $as_test_x conftest
$ac_exeext; then
6038 ac_cv_search_gethostbyname
=$ac_res
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6046 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6048 if test "${ac_cv_search_gethostbyname+set}" = set; then
6052 if test "${ac_cv_search_gethostbyname+set}" = set; then
6055 ac_cv_search_gethostbyname
=no
6058 LIBS
=$ac_func_search_save_LIBS
6060 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6061 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6062 ac_res
=$ac_cv_search_gethostbyname
6063 if test "$ac_res" != no
; then
6064 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6068 # Unfortunately libsocket sometimes depends on libnsl and
6069 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6070 if test "$ac_cv_search_gethostbyname" = "no"
6072 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6073 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6074 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_check_lib_save_LIBS
=$LIBS
6078 LIBS
="-lsocket -lnsl $LIBS"
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6086 /* Override any GCC internal prototype to avoid an error.
6087 Use char because int might match the return type of a GCC
6088 builtin and then its argument prototype would still apply. */
6092 char gethostbyname ();
6096 return gethostbyname ();
6101 rm -f conftest.
$ac_objext conftest
$ac_exeext
6102 if { (ac_try
="$ac_link"
6104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_lib_socket_gethostbyname=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_lib_socket_gethostbyname=no
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6131 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6132 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6133 if test $ac_cv_lib_socket_gethostbyname = yes; then
6134 LIBS="-lsocket -lnsl $LIBS"
6138 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6140 if test "${ac_cv_search_socket+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_func_search_save_LIBS=$LIBS
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6166 for ac_lib in '' socket; do
6167 if test -z "$ac_lib"; then
6168 ac_res="none required"
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6177 *) ac_try_echo
=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest
$ac_exeext &&
6190 $as_test_x conftest
$ac_exeext; then
6191 ac_cv_search_socket
=$ac_res
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.
$ac_ext >&5
6199 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6201 if test "${ac_cv_search_socket+set}" = set; then
6205 if test "${ac_cv_search_socket+set}" = set; then
6208 ac_cv_search_socket
=no
6211 LIBS
=$ac_func_search_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6214 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6215 ac_res
=$ac_cv_search_socket
6216 if test "$ac_res" != no
; then
6217 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6220 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6221 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_socket_socket+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_check_lib_save_LIBS
=$LIBS
6226 LIBS
="-lsocket -lnsl $LIBS"
6227 cat >conftest.
$ac_ext <<_ACEOF
6230 cat confdefs.h
>>conftest.
$ac_ext
6231 cat >>conftest.
$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6249 rm -f conftest.
$ac_objext conftest
$ac_exeext
6250 if { (ac_try
="$ac_link"
6252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest$ac_exeext &&
6266 $as_test_x conftest$ac_exeext; then
6267 ac_cv_lib_socket_socket=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_lib_socket_socket=no
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6280 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6281 if test $ac_cv_lib_socket_socket = yes; then
6282 LIBS="-lsocket -lnsl $LIBS"
6287 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6288 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6289 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6290 if test "${ac_cv_search_putmsg+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_func_search_save_LIBS=$LIBS
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6301 /* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6316 for ac_lib in '' str; do
6317 if test -z "$ac_lib"; then
6318 ac_res="none required"
6321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6327 *) ac_try_echo
=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1
>conftest.err
6334 cat conftest.err
>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest
$ac_exeext &&
6340 $as_test_x conftest
$ac_exeext; then
6341 ac_cv_search_putmsg
=$ac_res
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6351 if test "${ac_cv_search_putmsg+set}" = set; then
6355 if test "${ac_cv_search_putmsg+set}" = set; then
6358 ac_cv_search_putmsg
=no
6361 LIBS
=$ac_func_search_save_LIBS
6363 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6364 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6365 ac_res
=$ac_cv_search_putmsg
6366 if test "$ac_res" != no
; then
6367 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6374 # You are in a twisty little maze of UN*Xes, all different.
6375 # Some might not have ether_hostton().
6376 # Some might have it, but not declare it in any header file.
6377 # Some might have it, but declare it in <netinet/if_ether.h>.
6378 # Some might have it, but declare it in <netinet/ether.h>
6379 # (And some might have it but document it as something declared in
6380 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6382 # Before you is a C compiler.
6385 for ac_func
in ether_hostton
6387 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.
$ac_ext <<_ACEOF
6396 cat confdefs.h
>>conftest.
$ac_ext
6397 cat >>conftest.
$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6438 rm -f conftest.
$ac_objext conftest
$ac_exeext
6439 if { (ac_try
="$ac_link"
6441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 eval "$as_ac_var=yes"
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 eval "$as_ac_var=no"
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6478 if test "$ac_cv_func_ether_hostton" = yes; then
6480 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6482 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6484 # Yes. Does it declare ether_hostton()?
6486 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6487 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6488 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netinet/in.h>
6501 #include <arpa/inet.h>
6505 #include <netinet/if_ether.h>
6511 #ifndef ether_hostton
6512 (void) ether_hostton;
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6523 *) ac_try_echo
=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6528 grep -v '^ *+' conftest.er1
>conftest.err
6530 cat conftest.err
>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.
$ac_objext; then
6536 ac_cv_have_decl_ether_hostton
=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.
$ac_ext >&5
6541 ac_cv_have_decl_ether_hostton
=no
6544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6547 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6548 if test $ac_cv_have_decl_ether_hostton = yes; then
6551 cat >>confdefs.h
<<\_ACEOF
6552 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6562 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6564 # No, how about <netinet/ether.h>, as on Linux?
6567 for ac_header
in netinet
/ether.h
6569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_res
=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6580 # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.
$ac_ext <<_ACEOF
6586 cat confdefs.h
>>conftest.
$ac_ext
6587 cat >>conftest.
$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6592 rm -f conftest.
$ac_objext
6593 if { (ac_try
="$ac_compile"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_header_compiler=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_compiler=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <$ac_header>
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6635 *) ac_try_echo
=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1
>conftest.err
6642 cat conftest.err
>&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev
/null
&& {
6645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6648 ac_header_preproc
=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.
$ac_ext >&5
6653 ac_header_preproc
=no
6656 rm -f conftest.err conftest.
$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc
=yes
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 eval "$as_ac_Header=\$ac_header_preproc"
6692 ac_res
=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h
<<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 if test "$ac_cv_header_netinet_ether_h" = yes; then
6708 # We have it - does it declare ether_hostton()?
6709 # Unset ac_cv_have_decl_ether_hostton so we don't
6710 # treat the previous failure as a cached value and
6711 # suppress the next test.
6713 unset ac_cv_have_decl_ether_hostton
6714 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6715 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6716 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 cat >conftest.
$ac_ext <<_ACEOF
6722 cat confdefs.h
>>conftest.
$ac_ext
6723 cat >>conftest.
$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 #include <netinet/ether.h>
6732 #ifndef ether_hostton
6733 (void) ether_hostton;
6740 rm -f conftest.
$ac_objext
6741 if { (ac_try
="$ac_compile"
6743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 ac_cv_have_decl_ether_hostton=yes
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 ac_cv_have_decl_ether_hostton=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6768 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6769 if test $ac_cv_have_decl_ether_hostton = yes; then
6772 cat >>confdefs.h <<\_ACEOF
6773 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6782 # Is ether_hostton() declared?
6784 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6786 # No, we'll have to declare it ourselves.
6787 # Do we have "struct ether_addr"?
6789 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6790 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6791 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <sys/socket.h>
6803 #include <netinet/in.h>
6804 #include <arpa/inet.h>
6808 #include <netinet/if_ether.h>
6811 typedef struct ether_addr ac__type_new_;
6815 if ((ac__type_new_ *) 0)
6817 if (sizeof (ac__type_new_))
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6827 *) ac_try_echo
=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1
>conftest.err
6834 cat conftest.err
>&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.
$ac_objext; then
6840 ac_cv_type_struct_ether_addr
=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.
$ac_ext >&5
6845 ac_cv_type_struct_ether_addr
=no
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6851 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6852 if test $ac_cv_type_struct_ether_addr = yes; then
6854 cat >>confdefs.h
<<_ACEOF
6855 #define HAVE_STRUCT_ETHER_ADDR 1
6862 cat >>confdefs.h
<<\_ACEOF
6863 #define HAVE_DECL_ETHER_HOSTTON 0
6868 cat >>confdefs.h
<<\_ACEOF
6869 #define HAVE_DECL_ETHER_HOSTTON 1
6875 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6876 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6877 # Check whether --enable-protochain was given.
6878 if test "${enable_protochain+set}" = set; then
6879 enableval
=$enable_protochain;
6882 case "x$enable_protochain" in
6883 xyes
) enable_protochain
=enabled
;;
6884 xno
) enable_protochain
=disabled
;;
6885 x
) enable_protochain
=enabled
;;
6888 if test "$enable_protochain" = "disabled"; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define NO_PROTOCHAIN 1
6895 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6896 echo "${ECHO_T}${enable_protochain}" >&6; }
6899 # SITA support is mutually exclusive with native capture support;
6900 # "--with-sita" selects SITA support.
6903 # Check whether --with-sita was given.
6904 if test "${with_sita+set}" = set; then
6906 if test ! "x
$withval" = "xno
" ; then
6908 cat >>confdefs.h <<\_ACEOF
6912 { echo "$as_me:$LINENO: Enabling SITA ACN support
" >&5
6913 echo "$as_me: Enabling SITA ACN support
" >&6;}
6920 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6921 { { echo "$as_me:$LINENO: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&5
6922 echo "$as_me: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&2;}
6923 { (exit 1); exit 1; }; }
6926 # Check whether --with-pcap was given.
6927 if test "${with_pcap+set}" = set; then
6931 { echo "$as_me:$LINENO: checking packet capture
type" >&5
6932 echo $ECHO_N "checking packet capture
type...
$ECHO_C" >&6; }
6933 if test ! -z "$with_pcap" ; then
6935 elif test -r /dev/bpf -o -h /dev/bpf ; then
6937 # Cloning BPF device.
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_CLONING_BPF 1
6945 elif test -r /dev/bpf0 ; then
6947 elif test -r /usr/include/net/pfilt.h ; then
6949 elif test -r /dev/enet ; then
6951 elif test -r /dev/nit ; then
6953 elif test -r /usr/include/sys/net/nit.h ; then
6955 elif test -r /usr/include/linux/socket.h ; then
6957 elif test -r /usr/include/net/raw.h ; then
6959 elif test -r /usr/include/odmi.h ; then
6961 # On AIX, the BPF devices might not yet be present - they're
6962 # created the first time libpcap runs after booting.
6963 # We check for odmi.h instead.
6966 elif test -c /dev/bpf0 ; then # check again in case not readable
6968 elif test -r /usr/include/sys/dlpi.h ; then
6970 elif test -c /dev/enet ; then # check again in case not readable
6972 elif test -c /dev/nit ; then # check again in case not readable
6977 { echo "$as_me:$LINENO: result
: $V_PCAP" >&5
6978 echo "${ECHO_T}$V_PCAP" >&6; }
6981 # Do capture-mechanism-dependent tests.
6986 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6987 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6988 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6989 # private version also existed, which did not have the same APIs.
6990 # Due to a gcc bug, the default search path for 32-bit libraries does
6991 # not include /lib, we add it explicitly here.
6992 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6993 # Also, due to the bug above applications that link to libpcap with
6994 # libdlpi will have to add "-L/lib
" option to "configure
".
6996 saved_ldflags=$LDFLAGS
6997 LDFLAGS="$LIBS -L/lib
"
6998 { echo "$as_me:$LINENO: checking
for dlpi_walk
in -ldlpi" >&5
6999 echo $ECHO_N "checking
for dlpi_walk
in -ldlpi...
$ECHO_C" >&6; }
7000 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7001 echo $ECHO_N "(cached
) $ECHO_C" >&6
7003 ac_check_lib_save_LIBS=$LIBS
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7012 /* Override any GCC internal prototype to avoid an error.
7013 Use char because int might match the return type of a GCC
7014 builtin and then its argument prototype would still apply. */
7022 return dlpi_walk ();
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (ac_try="$ac_link"
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_link") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest$ac_exeext &&
7044 $as_test_x conftest$ac_exeext; then
7045 ac_cv_lib_dlpi_dlpi_walk=yes
7047 echo "$as_me: failed program was
:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_lib_dlpi_dlpi_walk=no
7053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7054 conftest$ac_exeext conftest.$ac_ext
7055 LIBS=$ac_check_lib_save_LIBS
7057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dlpi_dlpi_walk" >&5
7058 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7059 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_LIBDLPI 1
7071 LDFLAGS=$saved_ldflags
7074 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7077 { echo "$as_me:$LINENO: checking whether
<sys
/dlpi.h
> is usable
" >&5
7078 echo $ECHO_N "checking whether
<sys
/dlpi.h
> is usable...
$ECHO_C" >&6; }
7079 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7080 echo $ECHO_N "(cached
) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 #include <sys/types.h>
7090 #include <sys/time.h>
7091 #include <sys/dlpi.h>
7096 int i = DL_PROMISC_PHYS;
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_sys_dlpi_usable=yes
7120 echo "$as_me: failed program was
:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_sys_dlpi_usable=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 { echo "$as_me:$LINENO: result
: $ac_cv_sys_dlpi_usable" >&5
7130 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7131 if test $ac_cv_sys_dlpi_usable = no ; then
7132 { { echo "$as_me:$LINENO: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&5
7133 echo "$as_me: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&2;}
7134 { (exit 1); exit 1; }; }
7138 # Check whether we have a /dev/dlpi device or have multiple devices.
7140 { echo "$as_me:$LINENO: checking
for /dev
/dlpi device
" >&5
7141 echo $ECHO_N "checking
for /dev
/dlpi device...
$ECHO_C" >&6; }
7142 if test -c /dev/dlpi ; then
7143 { echo "$as_me:$LINENO: result
: yes" >&5
7144 echo "${ECHO_T}yes" >&6; }
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DEV_DLPI 1
7151 { echo "$as_me:$LINENO: result
: no
" >&5
7152 echo "${ECHO_T}no
" >&6; }
7154 { echo "$as_me:$LINENO: checking
for $dir directory
" >&5
7155 echo $ECHO_N "checking
for $dir directory...
$ECHO_C" >&6; }
7156 if test -d $dir ; then
7157 { echo "$as_me:$LINENO: result
: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7160 cat >>confdefs.h <<_ACEOF
7161 #define PCAP_DEV_PREFIX "$dir"
7165 { echo "$as_me:$LINENO: result
: no
" >&5
7166 echo "${ECHO_T}no
" >&6; }
7171 # This check is for Solaris with DLPI support for passive modes.
7172 # See dlpi(7P) for more details.
7174 { echo "$as_me:$LINENO: checking
if dl_passive_req_t struct exists
" >&5
7175 echo $ECHO_N "checking
if dl_passive_req_t struct exists...
$ECHO_C" >&6; }
7176 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7177 echo $ECHO_N "(cached
) $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7186 # include <sys/types.h>
7187 # include <sys/dlpi.h>
7191 u_int i = sizeof(dl_passive_req_t)
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_lbl_has_dl_passive_req_t=yes
7215 echo "$as_me: failed program was
:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_lbl_has_dl_passive_req_t=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_dl_passive_req_t" >&5
7225 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7226 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_DLPI_PASSIVE 1
7237 # Do we have the wireless extensions?
7240 for ac_header in linux/wireless.h
7242 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7243 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7244 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7246 echo $ECHO_N "(cached
) $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 #include <sys/socket.h>
7256 #include <linux/if.h>
7257 #include <linux/types.h>
7260 #include <$ac_header>
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 eval "$as_ac_Header=yes"
7281 echo "$as_me: failed program was
:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 eval "$as_ac_Header=no
"
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 ac_res=`eval echo '${'$as_ac_Header'}'`
7290 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7291 echo "${ECHO_T}$ac_res" >&6; }
7292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7306 # Check whether --with-libnl was given.
7307 if test "${with_libnl+set}" = set; then
7308 withval=$with_libnl; with_libnl=$withval
7312 if test x$with_libnl != xno ; then
7314 # Try libnl 2.x first.
7316 { echo "$as_me:$LINENO: checking
for nl_socket_alloc
in -lnl" >&5
7317 echo $ECHO_N "checking
for nl_socket_alloc
in -lnl...
$ECHO_C" >&6; }
7318 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7319 echo $ECHO_N "(cached
) $ECHO_C" >&6
7321 ac_check_lib_save_LIBS=$LIBS
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7330 /* Override any GCC internal prototype to avoid an error.
7331 Use char because int might match the return type of a GCC
7332 builtin and then its argument prototype would still apply. */
7336 char nl_socket_alloc ();
7340 return nl_socket_alloc ();
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (ac_try="$ac_link"
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_link") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest$ac_exeext &&
7362 $as_test_x conftest$ac_exeext; then
7363 ac_cv_lib_nl_nl_socket_alloc=yes
7365 echo "$as_me: failed program was
:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_cv_lib_nl_nl_socket_alloc=no
7371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LIBS=$ac_check_lib_save_LIBS
7375 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nl_nl_socket_alloc" >&5
7376 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7377 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7380 # Yes, we have libnl 2.x.
7382 LIBS="-lnl-genl -lnl $LIBS"
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_LIBNL 1
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_LIBNL_2_x 1
7397 # No, we don't; do we have libnl 1.x?
7399 { echo "$as_me:$LINENO: checking
for nl_handle_alloc
in -lnl" >&5
7400 echo $ECHO_N "checking
for nl_handle_alloc
in -lnl...
$ECHO_C" >&6; }
7401 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7402 echo $ECHO_N "(cached
) $ECHO_C" >&6
7404 ac_check_lib_save_LIBS=$LIBS
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7419 char nl_handle_alloc ();
7423 return nl_handle_alloc ();
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (ac_try="$ac_link"
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_link") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1 >conftest.err
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest$ac_exeext &&
7445 $as_test_x conftest$ac_exeext; then
7446 ac_cv_lib_nl_nl_handle_alloc=yes
7448 echo "$as_me: failed program was
:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7451 ac_cv_lib_nl_nl_handle_alloc=no
7454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7455 conftest$ac_exeext conftest.$ac_ext
7456 LIBS=$ac_check_lib_save_LIBS
7458 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nl_nl_handle_alloc" >&5
7459 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7460 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_LIBNL 1
7475 # No, we don't have libnl at all.
7477 if test x$with_libnl = xyes ; then
7478 { { echo "$as_me:$LINENO: error
: libnl support requested but libnl not found
" >&5
7479 echo "$as_me: error
: libnl support requested but libnl not found
" >&2;}
7480 { (exit 1); exit 1; }; }
7491 for ac_header in linux/ethtool.h
7493 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7495 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7496 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7498 echo $ECHO_N "(cached
) $ECHO_C" >&6
7500 ac_res=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7504 # Is the header compilable?
7505 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7506 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7507 cat >conftest.$ac_ext <<_ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #include <$ac_header>
7516 rm -f conftest.$ac_objext
7517 if { (ac_try="$ac_compile"
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_header_compiler=yes
7535 echo "$as_me: failed program was
:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_compiler=no
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7543 echo "${ECHO_T}$ac_header_compiler" >&6; }
7545 # Is the header present?
7546 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7547 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7556 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7568 (exit $ac_status); } >/dev/null && {
7569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7572 ac_header_preproc=yes
7574 echo "$as_me: failed program was
:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 ac_header_preproc=no
7580 rm -f conftest.err conftest.$ac_ext
7581 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6; }
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7587 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7588 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7591 ac_header_preproc=yes
7594 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7595 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7596 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7597 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7598 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7599 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7600 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7601 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7602 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7604 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7605 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7612 echo $ECHO_N "(cached
) $ECHO_C" >&6
7614 eval "$as_ac_Header=\
$ac_header_preproc"
7616 ac_res=`eval echo '${'$as_ac_Header'}'`
7617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7630 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
7631 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
7632 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7633 echo $ECHO_N "(cached
) $ECHO_C" >&6
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 # include <linux/if_packet.h>
7646 struct tpacket_stats stats
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest.$ac_objext; then
7668 ac_cv_lbl_tpacket_stats=yes
7670 echo "$as_me: failed program was
:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_cv_lbl_tpacket_stats=no
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
7680 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7681 if test $ac_cv_lbl_tpacket_stats = yes; then
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_TPACKET_STATS 1
7688 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
7689 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
7690 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7691 echo $ECHO_N "(cached
) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7700 # include <sys/types.h>
7701 # include <linux/if_packet.h>
7705 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7729 echo "$as_me: failed program was
:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7739 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7740 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7741 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7753 # Check whether we have the *BSD-style ioctls.
7756 for ac_header in net/if_media.h
7758 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7759 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7760 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7761 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7762 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7763 echo $ECHO_N "(cached
) $ECHO_C" >&6
7765 ac_res=`eval echo '${'$as_ac_Header'}'`
7766 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7767 echo "${ECHO_T}$ac_res" >&6; }
7769 # Is the header compilable?
7770 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7771 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7772 cat >conftest.$ac_ext <<_ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 $ac_includes_default
7779 #include <$ac_header>
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7790 grep -v '^ *+' conftest.er1 >conftest.err
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ac_header_compiler=yes
7800 echo "$as_me: failed program was
:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_header_compiler=no
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6; }
7810 # Is the header present?
7811 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7812 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <$ac_header>
7821 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7833 (exit $ac_status); } >/dev/null && {
7834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7837 ac_header_preproc=yes
7839 echo "$as_me: failed program was
:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_header_preproc=no
7845 rm -f conftest.err conftest.$ac_ext
7846 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7847 echo "${ECHO_T}$ac_header_preproc" >&6; }
7849 # So? What about this header?
7850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7852 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7853 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7854 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7856 ac_header_preproc=yes
7859 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7860 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7861 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7862 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7863 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7864 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7865 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7866 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7867 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7869 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7870 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7874 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7875 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7876 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7877 echo $ECHO_N "(cached
) $ECHO_C" >&6
7879 eval "$as_ac_Header=\
$ac_header_preproc"
7881 ac_res=`eval echo '${'$as_ac_Header'}'`
7882 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7883 echo "${ECHO_T}$ac_res" >&6; }
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7896 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
7897 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/socket.h>
7905 #include <sys/ioctl.h>
7907 #include <net/bpf.h>
7911 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7934 { echo "$as_me:$LINENO: result
: yes" >&5
7935 echo "${ECHO_T}yes" >&6; }
7937 cat >>confdefs.h <<\_ACEOF
7938 #define HAVE_ZEROCOPY_BPF 1
7943 echo "$as_me: failed program was
:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 { echo "$as_me:$LINENO: result
: no
" >&5
7947 echo "${ECHO_T}no
" >&6; }
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 # Check whether we have struct BPF_TIMEVAL.
7955 { echo "$as_me:$LINENO: checking
for struct BPF_TIMEVAL
" >&5
7956 echo $ECHO_N "checking
for struct BPF_TIMEVAL...
$ECHO_C" >&6; }
7957 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7958 echo $ECHO_N "(cached
) $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7967 #include <sys/types.h>
7968 #include <sys/ioctl.h>
7969 #ifdef HAVE_SYS_IOCCOM_H
7970 #include <sys/ioccom.h>
7972 #include <net/bpf.h>
7975 typedef struct BPF_TIMEVAL ac__type_new_;
7979 if ((ac__type_new_ *) 0)
7981 if (sizeof (ac__type_new_))
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_cv_type_struct_BPF_TIMEVAL=yes
8006 echo "$as_me: failed program was
:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_type_struct_BPF_TIMEVAL=no
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result
: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8015 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8016 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define HAVE_STRUCT_BPF_TIMEVAL 1
8028 V_DEFS="$V_DEFS -DDAG_ONLY"
8032 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8036 V_DEFS="$V_DEFS -DSNF_ONLY"
8040 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
8041 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
8042 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
8043 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
8047 if test "$V_PCAP" = null
8050 # We can't capture, so we can't open any capture
8051 # devices, so we won't return any interfaces.
8055 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
8056 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
8057 if test "${ac_cv_func_getifaddrs+set}" = set; then
8058 echo $ECHO_N "(cached
) $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8068 #define getifaddrs innocuous_getifaddrs
8070 /* System header to define __stub macros and hopefully few prototypes,
8071 which can conflict with char getifaddrs (); below.
8072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8073 <limits.h> exists even on freestanding compilers. */
8076 # include <limits.h>
8078 # include <assert.h>
8083 /* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8100 return getifaddrs ();
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (ac_try="$ac_link"
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_link") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext &&
8122 $as_test_x conftest$ac_exeext; then
8123 ac_cv_func_getifaddrs=yes
8125 echo "$as_me: failed program was
:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_func_getifaddrs=no
8131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8132 conftest$ac_exeext conftest.$ac_ext
8134 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
8135 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8136 if test $ac_cv_func_getifaddrs = yes; then
8139 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
8140 # as well, just in case some platform is really weird.
8142 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8143 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8144 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8145 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8146 echo $ECHO_N "(cached
) $ECHO_C" >&6
8148 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8149 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8151 # Is the header compilable?
8152 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
8153 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8161 #include <ifaddrs.h>
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.$ac_objext; then
8180 ac_header_compiler=yes
8182 echo "$as_me: failed program was
:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 ac_header_compiler=no
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8190 echo "${ECHO_T}$ac_header_compiler" >&6; }
8192 # Is the header present?
8193 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
8194 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <ifaddrs.h>
8203 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8215 (exit $ac_status); } >/dev/null && {
8216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8219 ac_header_preproc=yes
8221 echo "$as_me: failed program was
:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_header_preproc=no
8227 rm -f conftest.err conftest.$ac_ext
8228 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8229 echo "${ECHO_T}$ac_header_preproc" >&6; }
8231 # So? What about this header?
8232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8234 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
8235 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8236 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
8237 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
8238 ac_header_preproc=yes
8241 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
8242 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
8243 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
8244 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
8245 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
8246 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
8247 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
8248 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
8249 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
8250 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
8251 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
8252 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
8256 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8257 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8258 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8259 echo $ECHO_N "(cached
) $ECHO_C" >&6
8261 ac_cv_header_ifaddrs_h=$ac_header_preproc
8263 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8264 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8267 if test $ac_cv_header_ifaddrs_h = yes; then
8270 # We have the header, so we use "getifaddrs
()" to
8271 # get the list of interfaces.
8278 # We don't have the header - give up.
8279 # XXX - we could also fall back on some other
8280 # mechanism, but, for now, this'll catch this
8281 # problem so that we can at least try to figure
8282 # out something to do on systems with "getifaddrs
()"
8283 # but without "ifaddrs.h
", if there is something
8284 # we can do on those systems.
8286 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
8287 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
8288 { (exit 1); exit 1; }; }
8297 # Well, we don't have "getifaddrs
()", so we have to use
8298 # some other mechanism; determine what that mechanism is.
8300 # The first thing we use is the type of capture mechanism,
8301 # which is somewhat of a proxy for the OS we're using.
8308 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8310 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8312 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8313 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8314 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8315 echo $ECHO_N "(cached
) $ECHO_C" >&6
8317 ac_res=`eval echo '${'$as_ac_Header'}'`
8318 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8319 echo "${ECHO_T}$ac_res" >&6; }
8321 # Is the header compilable?
8322 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8323 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #include <$ac_header>
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_header_compiler=yes
8352 echo "$as_me: failed program was
:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_header_compiler=no
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8360 echo "${ECHO_T}$ac_header_compiler" >&6; }
8362 # Is the header present?
8363 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8364 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 #include <$ac_header>
8373 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8385 (exit $ac_status); } >/dev/null && {
8386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8389 ac_header_preproc=yes
8391 echo "$as_me: failed program was
:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 ac_header_preproc=no
8397 rm -f conftest.err conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6; }
8401 # So? What about this header?
8402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8404 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8405 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8408 ac_header_preproc=yes
8411 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8412 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8413 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8414 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8415 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8416 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8417 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8418 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8419 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8421 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8422 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8426 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8427 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8429 echo $ECHO_N "(cached
) $ECHO_C" >&6
8431 eval "$as_ac_Header=\
$ac_header_preproc"
8433 ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8435 echo "${ECHO_T}$ac_res" >&6; }
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8448 # This might be Solaris 8 or later, with
8449 # SIOCGLIFCONF, or it might be some other OS
8450 # or some older version of Solaris, with
8453 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
8454 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
8455 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8456 echo $ECHO_N "(cached
) $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 #include <sys/param.h>
8465 #include <sys/file.h>
8466 #include <sys/ioctl.h>
8467 #include <sys/socket.h>
8468 #include <sys/sockio.h>
8472 ioctl(0, SIOCGLIFCONF, (char *)0);
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_cv_lbl_have_siocglifconf=yes
8496 echo "$as_me: failed program was
:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_lbl_have_siocglifconf=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
8506 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8507 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8513 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8520 # Assume we just have SIOCGIFCONF.
8521 # (XXX - on at least later Linux kernels, there's
8522 # another mechanism, and we should be using that
8535 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
8536 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 #include <sys/types.h>
8545 #include <sys/socket.h>
8555 rm -f conftest.$ac_objext
8556 if { (ac_try="$ac_compile"
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8574 echo "$as_me: failed program was
:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 if test "x
$have_socklen_t" = "xyes
"; then
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_SOCKLEN_T 1
8588 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
8589 echo "${ECHO_T}$have_socklen_t" >&6; }
8591 # Check whether --enable-ipv6 was given.
8592 if test "${enable_ipv6+set}" = set; then
8593 enableval=$enable_ipv6;
8595 enable_ipv6=ifavailable
8598 if test "$enable_ipv6" != "no
"; then
8599 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
8600 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
8601 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8602 echo $ECHO_N "(cached
) $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8612 #define getaddrinfo innocuous_getaddrinfo
8614 /* System header to define __stub macros and hopefully few prototypes,
8615 which can conflict with char getaddrinfo (); below.
8616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8617 <limits.h> exists even on freestanding compilers. */
8620 # include <limits.h>
8622 # include <assert.h>
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8633 char getaddrinfo ();
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8644 return getaddrinfo ();
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_link") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest$ac_exeext &&
8666 $as_test_x conftest$ac_exeext; then
8667 ac_cv_func_getaddrinfo=yes
8669 echo "$as_me: failed program was
:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_func_getaddrinfo=no
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8678 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
8679 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8680 if test $ac_cv_func_getaddrinfo = yes; then
8683 cat >>confdefs.h <<\_ACEOF
8690 if test "$enable_ipv6" != "ifavailable
"; then
8691 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8692 See \`config.log' for more details.
" >&5
8693 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8694 See \`config.log' for more details.
" >&2;}
8695 { (exit 1); exit 1; }; }
8702 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
8703 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
8704 # Check whether --enable-optimizer-dbg was given.
8705 if test "${enable_optimizer_dbg+set}" = set; then
8706 enableval=$enable_optimizer_dbg;
8709 if test "$enable_optimizer_dbg" = "yes"; then
8711 cat >>confdefs.h <<\_ACEOF
8716 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
8717 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8719 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8720 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8721 # Check whether --enable-yydebug was given.
8722 if test "${enable_yydebug+set}" = set; then
8723 enableval
=$enable_yydebug;
8726 if test "$enable_yydebug" = "yes"; then
8728 cat >>confdefs.h
<<\_ACEOF
8733 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8734 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8736 # Check for Endace DAG card support.
8738 # Check whether --with-dag was given.
8739 if test "${with_dag+set}" = set; then
8741 if test "$withval" = no
8743 # User doesn't want DAG support.
8745 elif test "$withval" = yes
8747 # User wants DAG support but hasn't specified a directory.
8750 # User wants DAG support and has specified a directory, so use the provided value.
8758 # Use DAG API if present, otherwise don't
8766 # Check whether --with-dag-includes was given.
8767 if test "${with_dag_includes+set}" = set; then
8768 withval=$with_dag_includes;
8769 # User wants DAG support and has specified a header directory, so use the provided value.
8771 dag_include_dir=$withval
8777 # Check whether --with-dag-libraries was given.
8778 if test "${with_dag_libraries+set}" = set; then
8779 withval=$with_dag_libraries;
8780 # User wants DAG support and has specified a library directory, so use the provided value.
8782 dag_lib_dir=$withval
8790 # We support the DAG API if we're on Linux or BSD, or if we're
8791 # building a DAG-only libpcap.
8796 # If the user explicitly requested DAG, tell them it's not
8799 # If they expressed no preference, don't include it.
8801 if test $want_dag = yes; then
8802 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
8803 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
8804 { (exit 1); exit 1; }; }
8805 elif test $want_dag = yes; then
8811 ac_cv_lbl_dag_api=no
8812 if test "$want_dag" != no; then
8814 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
8815 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
8817 # If necessary, set default paths for DAG API headers and libraries.
8818 if test -z "$dag_root"; then
8822 if test -z "$dag_include_dir"; then
8823 dag_include_dir="$dag_root/include
"
8826 if test -z "$dag_lib_dir"; then
8827 dag_lib_dir="$dag_root/lib
"
8830 if test -z "$dag_tools_dir"; then
8831 dag_tools_dir="$dag_root/tools
"
8834 if test -r $dag_include_dir/dagapi.h; then
8835 ac_cv_lbl_dag_api=yes
8837 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8838 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8841 if test $ac_cv_lbl_dag_api = yes; then
8842 V_INCLS="$V_INCLS -I$dag_include_dir"
8844 if test $V_PCAP != dag ; then
8848 # See if we can find a general version string.
8849 # Don't need to save and restore LIBS to prevent -ldag being
8850 # included if there's a found-action (arg 3).
8851 saved_ldflags=$LDFLAGS
8852 LDFLAGS="-L$dag_lib_dir"
8853 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
8854 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
8855 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8856 echo $ECHO_N "(cached
) $ECHO_C" >&6
8858 ac_check_lib_save_LIBS=$LIBS
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 /* Override any GCC internal prototype to avoid an error.
8868 Use char because int might match the return type of a GCC
8869 builtin and then its argument prototype would still apply. */
8873 char dag_attach_stream ();
8877 return dag_attach_stream ();
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest$ac_exeext &&
8899 $as_test_x conftest$ac_exeext; then
8900 ac_cv_lib_dag_dag_attach_stream=yes
8902 echo "$as_me: failed program was
:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_cv_lib_dag_dag_attach_stream=no
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8912 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
8913 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8914 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8920 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
8921 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
8922 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8923 echo $ECHO_N "(cached
) $ECHO_C" >&6
8925 ac_check_lib_save_LIBS=$LIBS
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8940 char dag_get_erf_types ();
8944 return dag_get_erf_types ();
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (ac_try="$ac_link"
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8962 (exit $ac_status); } && {
8963 test -z "$ac_c_werror_flag" ||
8964 test ! -s conftest.err
8965 } && test -s conftest$ac_exeext &&
8966 $as_test_x conftest$ac_exeext; then
8967 ac_cv_lib_dag_dag_get_erf_types=yes
8969 echo "$as_me: failed program was
:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_dag_dag_get_erf_types=no
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8979 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
8980 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8981 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8984 cat >>confdefs.h <<\_ACEOF
8985 #define HAVE_DAG_GET_ERF_TYPES 1
8990 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
8991 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
8992 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8993 echo $ECHO_N "(cached
) $ECHO_C" >&6
8995 ac_check_lib_save_LIBS=$LIBS
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9010 char dag_get_stream_erf_types ();
9014 return dag_get_stream_erf_types ();
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1 >conftest.err
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 } && test -s conftest$ac_exeext &&
9036 $as_test_x conftest$ac_exeext; then
9037 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9039 echo "$as_me: failed program was
:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_cv_lib_dag_dag_get_stream_erf_types=no
9045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9046 conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9049 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9050 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9051 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9061 LDFLAGS=$saved_ldflags
9063 if test "$dag_streams" = 1; then
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_DAG_STREAMS_API 1
9070 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9072 { echo "$as_me:$LINENO: checking
for vdag_set_device_info
in -lvdag" >&5
9073 echo $ECHO_N "checking
for vdag_set_device_info
in -lvdag...
$ECHO_C" >&6; }
9074 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9075 echo $ECHO_N "(cached
) $ECHO_C" >&6
9077 ac_check_lib_save_LIBS=$LIBS
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9086 /* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
9092 char vdag_set_device_info ();
9096 return vdag_set_device_info ();
9101 rm -f conftest.$ac_objext conftest$ac_exeext
9102 if { (ac_try="$ac_link"
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_link") 2>conftest.er1
9110 grep -v '^ *+' conftest.er1 >conftest.err
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest$ac_exeext &&
9118 $as_test_x conftest$ac_exeext; then
9119 ac_cv_lib_vdag_vdag_set_device_info=yes
9121 echo "$as_me: failed program was
:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_cv_lib_vdag_vdag_set_device_info=no
9127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS=$ac_check_lib_save_LIBS
9131 { echo "$as_me:$LINENO: result
: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9132 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9133 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9134 ac_dag_have_vdag="1"
9136 ac_dag_have_vdag="0"
9139 if test "$ac_dag_have_vdag" = 1; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_DAG_VDAG 1
9145 LIBS="$LIBS -lpthread"
9150 cat >>confdefs.h <<\_ACEOF
9151 #define HAVE_DAG_API 1
9156 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
9157 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
9159 if test $ac_cv_lbl_dag_api = no; then
9160 { echo "$as_me:$LINENO: result
: no
" >&5
9161 echo "${ECHO_T}no
" >&6; }
9162 if test "$want_dag" = yes; then
9163 # User wanted DAG support but we couldn't find it.
9164 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
9165 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
9166 { (exit 1); exit 1; }; }
9169 if test "$V_PCAP" = dag; then
9170 # User requested "dag
" capture type but the DAG API wasn't
9172 { { 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
9173 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;}
9174 { (exit 1); exit 1; }; }
9177 { echo "$as_me:$LINENO: result
: yes" >&5
9178 echo "${ECHO_T}yes" >&6; }
9182 # Check whether --with-septel was given.
9183 if test "${with_septel+set}" = set; then
9184 withval=$with_septel;
9185 if test "$withval" = no
9188 elif test "$withval" = yes
9194 septel_root=$withval
9200 # Use Septel API if present, otherwise don't
9202 want_septel=ifpresent
9203 septel_root=./../septel
9207 ac_cv_lbl_septel_api=no
9211 # We support the Septel API if we're on Linux, or if we're building
9212 # a Septel-only libpcap.
9217 # If the user explicitly requested Septel, tell them it's not
9220 # If they expressed no preference, don't include it.
9222 if test $want_septel = yes; then
9223 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
9224 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
9225 { (exit 1); exit 1; }; }
9226 elif test $want_septel = yes; then
9232 if test "$with_septel" != no; then
9233 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
9234 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
9236 if test -z "$septel_root"; then
9237 septel_root=$srcdir/../septel
9240 septel_tools_dir="$septel_root"
9241 septel_include_dir="$septel_root/INC
"
9243 ac_cv_lbl_septel_api=no
9244 if test -r "$septel_include_dir/msg.h
"; then
9245 V_INCLS="$V_INCLS -I$septel_include_dir"
9246 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
"
9247 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
"
9249 if test "$V_PCAP" != septel ; then
9250 SSRC="pcap-septel.c
"
9252 ac_cv_lbl_septel_api=yes
9255 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
9256 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9257 if test $ac_cv_lbl_septel_api = no; then
9258 if test "$want_septel" = yes; then
9259 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
9260 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
9261 { (exit 1); exit 1; }; }
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_SEPTEL_API 1
9272 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9273 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
9274 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
9275 { (exit 1); exit 1; }; }
9278 # Check for Myricom SNF support.
9280 # Check whether --with-snf was given.
9281 if test "${with_snf+set}" = set; then
9283 if test "$withval" = no
9285 # User explicitly doesn't want SNF
9287 elif test "$withval" = yes
9289 # User wants SNF support but hasn't specific a directory.
9292 # User wants SNF support with a specified directory.
9300 # Use Sniffer API if present, otherwise don't
9308 # Check whether --with-snf-includes was given.
9309 if test "${with_snf_includes+set}" = set; then
9310 withval=$with_snf_includes;
9311 # User wants SNF with specific header directory
9313 snf_include_dir=$withval
9319 # Check whether --with-snf-libraries was given.
9320 if test "${with_snf_libraries+set}" = set; then
9321 withval=$with_snf_libraries;
9322 # User wants SNF with specific lib directory
9324 snf_lib_dir=$withval
9332 # We support the Sniffer API if we're on BSD, Linux, or if we're
9333 # building a Sniffer-only libpcap.
9338 # If the user explicitly requested Sniffer, tell them it's not
9341 # If they expressed no preference, don't include it.
9343 if test $want_snf = yes; then
9344 { { echo "$as_me:$LINENO: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&5
9345 echo "$as_me: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&2;}
9346 { (exit 1); exit 1; }; }
9347 elif test $want_snf = yes; then
9353 ac_cv_lbl_snf_api=no
9354 if test "$with_snf" != no; then
9356 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API
" >&5
9357 echo $ECHO_N "checking whether we have Myricom Sniffer API...
$ECHO_C" >&6; }
9359 if test -z "$snf_root"; then
9363 if test -z "$snf_include_dir"; then
9364 snf_include_dir="$snf_root/include
"
9367 if test -z "$snf_lib_dir"; then
9368 snf_lib_dir="$snf_root/lib
"
9371 if test -f "$snf_include_dir/snf.h
"; then
9372 ac_cv_lbl_snf_api=yes
9374 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_snf_api ($snf_root)" >&5
9375 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9377 if test $ac_cv_lbl_snf_api = no; then
9378 if test "$want_snf" = yes; then
9379 { { echo "$as_me:$LINENO: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&5
9380 echo "$as_me: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&2;}
9381 { (exit 1); exit 1; }; }
9384 saved_ldflags=$LDFLAGS
9385 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9386 { echo "$as_me:$LINENO: checking
for snf_init
in -lsnf" >&5
9387 echo $ECHO_N "checking
for snf_init
in -lsnf...
$ECHO_C" >&6; }
9388 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9389 echo $ECHO_N "(cached
) $ECHO_C" >&6
9391 ac_check_lib_save_LIBS=$LIBS
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (ac_try="$ac_link"
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_link") 2>conftest.er1
9424 grep -v '^ *+' conftest.er1 >conftest.err
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9428 (exit $ac_status); } && {
9429 test -z "$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9431 } && test -s conftest$ac_exeext &&
9432 $as_test_x conftest$ac_exeext; then
9433 ac_cv_lib_snf_snf_init=yes
9435 echo "$as_me: failed program was
:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_lib_snf_snf_init=no
9441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS=$ac_check_lib_save_LIBS
9445 { echo "$as_me:$LINENO: result
: $ac_cv_lib_snf_snf_init" >&5
9446 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9447 if test $ac_cv_lib_snf_snf_init = yes; then
9448 ac_cv_lbl_snf_api="yes"
9450 ac_cv_lbl_snf_api="no
"
9453 LDFLAGS="$saved_ldflags"
9455 if test $ac_cv_lbl_snf_api = no; then
9456 if test "$want_snf" = yes; then
9457 { { echo "$as_me:$LINENO: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&5
9458 echo "$as_me: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&2;}
9459 { (exit 1); exit 1; }; }
9462 V_INCLS="$V_INCLS -I$snf_include_dir"
9464 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9465 if test "$V_PCAP" != snf ; then
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_SNF_API 1
9477 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9478 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&5
9479 echo "$as_me: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&2;}
9480 { (exit 1); exit 1; }; }
9484 # Check whether --with-flex was given.
9485 if test "${with_flex+set}" = set; then
9490 # Check whether --with-bison was given.
9491 if test "${with_bison+set}" = set; then
9492 withval=$with_bison;
9495 if test "$with_flex" = no ; then
9500 # Extract the first word of "$ac_prog", so it can be a program name with args.
9501 set dummy $ac_prog; ac_word=$2
9502 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9503 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9504 if test "${ac_cv_prog_V_LEX+set}" = set; then
9505 echo $ECHO_N "(cached
) $ECHO_C" >&6
9507 if test -n "$V_LEX"; then
9508 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_prog_V_LEX="$ac_prog"
9518 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9527 V_LEX=$ac_cv_prog_V_LEX
9528 if test -n "$V_LEX"; then
9529 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
9530 echo "${ECHO_T}$V_LEX" >&6; }
9532 { echo "$as_me:$LINENO: result
: no
" >&5
9533 echo "${ECHO_T}no
" >&6; }
9537 test -n "$V_LEX" && break
9539 test -n "$V_LEX" || V_LEX="lex"
9542 if test "$V_LEX" = flex ; then
9543 # The -V flag was added in 2.4
9544 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
9545 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
9546 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9547 echo $ECHO_N "(cached
) $ECHO_C" >&6
9549 if flex -V >/dev/null 2>&1; then
9550 ac_cv_lbl_flex_v24=yes
9552 ac_cv_lbl_flex_v24=no
9556 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
9557 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9558 if test $ac_cv_lbl_flex_v24 = no ; then
9559 s="2.4 or higher required
"
9560 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
9561 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
9565 if test "$with_bison" = no ; then
9568 for ac_prog in bison
9570 # Extract the first word of "$ac_prog", so it can be a program name with args.
9571 set dummy $ac_prog; ac_word=$2
9572 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9573 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9574 if test "${ac_cv_prog_V_YACC+set}" = set; then
9575 echo $ECHO_N "(cached
) $ECHO_C" >&6
9577 if test -n "$V_YACC"; then
9578 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_V_YACC="$ac_prog"
9588 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9597 V_YACC=$ac_cv_prog_V_YACC
9598 if test -n "$V_YACC"; then
9599 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
9600 echo "${ECHO_T}$V_YACC" >&6; }
9602 { echo "$as_me:$LINENO: result
: no
" >&5
9603 echo "${ECHO_T}no
" >&6; }
9607 test -n "$V_YACC" && break
9609 test -n "$V_YACC" || V_YACC="yacc"
9612 if test "$V_YACC" = bison ; then
9615 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9616 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
9617 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
9621 if test "$V_LEX" = flex -a -n "pcap_
" ; then
9622 V_LEX="$V_LEX -Ppcap_"
9623 V_YACC="$V_YACC -p pcap_
"
9625 if test "$V_LEX" = lex ; then
9626 # Some versions of lex can't handle the definitions section of scanner.l .
9627 # Try lexing it and complain if it can't deal.
9628 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
9629 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
9630 if test "${tcpdump_cv_capable_lex+set}" = set; then
9631 echo $ECHO_N "(cached
) $ECHO_C" >&6
9633 if lex -t scanner.l > /dev/null 2>&1; then
9634 tcpdump_cv_capable_lex=yes
9636 tcpdump_cv_capable_lex=insufficient
9639 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
9640 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9641 if test $tcpdump_cv_capable_lex = insufficient ; then
9642 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
9643 libpcap. flex is a lex replacement that has many advantages, including
9644 being able to compile libpcap. For more information, see
9645 http://www.gnu.org/software/flex/flex.html ." >&5
9646 echo "$as_me: error: Your operating system's
lex is insufficient to compile
9647 libpcap. flex is a
lex replacement that has many advantages
, including
9648 being able to compile libpcap. For
more information
, see
9649 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
9650 { (exit 1); exit 1; }; }
9655 # Assume, by default, no support for shared libraries and V7/BSD convention
9656 # for man pages (file formats in section 5, miscellaneous info in section 7).
9657 # Individual cases can override this.
9666 cat >>confdefs.h <<\_ACEOF
9672 # AIX makes it fun to build shared and static libraries,
9673 # because they're *both* ".a
" archive libraries. We
9674 # build the static library for the benefit of the traditional
9675 # scheme of building libpcap and tcpdump in subdirectories of
9676 # the same directory, with tcpdump statically linked with the
9677 # libpcap in question, but we also build a shared library as
9678 # "libpcap.shareda
" and install *it*, rather than the static
9679 # library, as "libpcap.a
".
9687 # If we're using DLPI, applications will need to
9688 # use /lib/pse.exp if present, as we use the
9691 pseexe="/lib
/pse.exp
"
9692 { echo "$as_me:$LINENO: checking
for $pseexe" >&5
9693 echo $ECHO_N "checking
for $pseexe...
$ECHO_C" >&6; }
9694 if test -f $pseexe ; then
9695 { echo "$as_me:$LINENO: result
: yes" >&5
9696 echo "${ECHO_T}yes" >&6; }
9703 # If we're using BPF, we need "-lodm" and "-lcfg", as
9704 # we use them to load the BPF module.
9713 V_CCOPT="$V_CCOPT -fno-common"
9714 # Check whether --enable-universal was given.
9715 if test "${enable_universal+set}" = set; then
9716 enableval=$enable_universal;
9719 if test "$enable_universal" != "no
"; then
9724 # Leopard. Build for 32-bit PowerPC, 64-bit
9725 # PowerPC, x86, and x86-64, with 32-bit PowerPC
9726 # first. (That's what Apple does.)
9728 V_CCOPT="$V_CCOPT -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
9729 LDFLAGS="$LDFLAGS -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
9734 # Snow Leopard. Build for x86-64, x86, and
9735 # 32-bit PowerPC, with x86-64 first. (That's
9736 # what Apple does, even though Snow Leopard
9737 # doesn't run on PPC, so PPC libpcap runs under
9738 # Rosetta, and Rosetta doesn't support BPF
9739 # ioctls, so PPC programs can't do live
9742 V_CCOPT="$V_CCOPT -arch x86_64
-arch i386
-arch ppc
"
9743 LDFLAGS="$LDFLAGS -arch x86_64
-arch i386
-arch ppc
"
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_HPUX9 1
9757 # Use System V conventions for man pages.
9766 # Use System V conventions for man pages.
9775 # Use System V conventions for man pages.
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_HPUX10_20_OR_LATER 1
9787 if test "`uname -m`" = "ia64
"; then
9794 # "-b" builds a shared library; "+h
" sets the soname.
9800 # Use System V conventions for man pages.
9808 # Use System V conventions for man pages.
9814 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9818 # Compiler assumed to be GCC; run-time linker may require a -R
9821 if test "$libdir" != "/usr
/lib
"; then
9822 V_RFLAGS=-Wl,-R$libdir
9830 # Use System V conventions for man pages.
9837 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
9838 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
9839 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9840 echo $ECHO_N "(cached
) $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_compile") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest.$ac_objext; then
9874 ac_cv_cc_sinix_defined=yes
9876 echo "$as_me: failed program was
:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 ac_cv_cc_sinix_defined=no
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
9886 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9887 if test $ac_cv_cc_sinix_defined = no ; then
9889 cat >>confdefs.h <<\_ACEOF
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_SOLARIS 1
9905 # Use System V conventions for man pages.
9912 if test -n "$ac_tool_prefix"; then
9913 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
9914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9915 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9916 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9917 if test "${ac_cv_prog_RANLIB+set}" = set; then
9918 echo $ECHO_N "(cached
) $ECHO_C" >&6
9920 if test -n "$RANLIB"; then
9921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
9931 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9940 RANLIB=$ac_cv_prog_RANLIB
9941 if test -n "$RANLIB"; then
9942 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
9943 echo "${ECHO_T}$RANLIB" >&6; }
9945 { echo "$as_me:$LINENO: result
: no
" >&5
9946 echo "${ECHO_T}no
" >&6; }
9951 if test -z "$ac_cv_prog_RANLIB"; then
9952 ac_ct_RANLIB=$RANLIB
9953 # Extract the first word of "ranlib
", so it can be a program name with args.
9954 set dummy ranlib; ac_word=$2
9955 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9956 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9957 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9958 echo $ECHO_N "(cached
) $ECHO_C" >&6
9960 if test -n "$ac_ct_RANLIB"; then
9961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_prog_ac_ct_RANLIB="ranlib
"
9971 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9981 if test -n "$ac_ct_RANLIB"; then
9982 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
9983 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9985 { echo "$as_me:$LINENO: result
: no
" >&5
9986 echo "${ECHO_T}no
" >&6; }
9989 if test "x
$ac_ct_RANLIB" = x; then
9992 case $cross_compiling:$ac_tool_warned in
9994 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9995 whose name does not start with the
host triplet. If you think this
9996 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9997 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9998 whose name does not start with the
host triplet. If you think this
9999 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10000 ac_tool_warned=yes ;;
10002 RANLIB=$ac_ct_RANLIB
10005 RANLIB="$ac_cv_prog_RANLIB"
10008 if test -n "$ac_tool_prefix"; then
10009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10010 set dummy ${ac_tool_prefix}ar; ac_word=$2
10011 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10012 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10013 if test "${ac_cv_prog_AR+set}" = set; then
10014 echo $ECHO_N "(cached
) $ECHO_C" >&6
10016 if test -n "$AR"; then
10017 ac_cv_prog_AR="$AR" # Let the user override the test.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_prog_AR="${ac_tool_prefix}ar"
10027 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10037 if test -n "$AR"; then
10038 { echo "$as_me:$LINENO: result
: $AR" >&5
10039 echo "${ECHO_T}$AR" >&6; }
10041 { echo "$as_me:$LINENO: result
: no
" >&5
10042 echo "${ECHO_T}no
" >&6; }
10047 if test -z "$ac_cv_prog_AR"; then
10049 # Extract the first word of "ar", so it can be a program name with args.
10050 set dummy ar; ac_word=$2
10051 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10052 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10053 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10054 echo $ECHO_N "(cached
) $ECHO_C" >&6
10056 if test -n "$ac_ct_AR"; then
10057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_ac_ct_AR="ar"
10067 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10077 if test -n "$ac_ct_AR"; then
10078 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
10079 echo "${ECHO_T}$ac_ct_AR" >&6; }
10081 { echo "$as_me:$LINENO: result
: no
" >&5
10082 echo "${ECHO_T}no
" >&6; }
10085 if test "x
$ac_ct_AR" = x; then
10088 case $cross_compiling:$ac_tool_warned in
10090 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
10091 whose name does not start with the
host triplet. If you think this
10092 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
10093 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
10094 whose name does not start with the
host triplet. If you think this
10095 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10096 ac_tool_warned=yes ;;
10101 AR="$ac_cv_prog_AR"
10106 if test "${LBL_CFLAGS+set}" = set; then
10107 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10109 if test -f .devel ; then
10110 if test "$GCC" = yes ; then
10111 if test "${LBL_CFLAGS+set}" != set; then
10112 if test "$ac_cv_prog_cc_g" = yes ; then
10113 V_CCOPT="-g $V_CCOPT"
10115 V_CCOPT="$V_CCOPT -Wall"
10116 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10117 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10124 V_CCOPT="$V_CCOPT -n32"
10131 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10132 name="lbl
/os-
$os.h
"
10133 if test -f $name ; then
10134 ln -s $name os-proto.h
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_OS_PROTO_H 1
10141 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
10142 echo "$as_me: WARNING: can't
find $name" >&2;}
10146 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
10147 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
10148 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10149 echo $ECHO_N "(cached
) $ECHO_C" >&6
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 # include <sys/types.h>
10159 # include <sys/socket.h>
10163 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_cv_lbl_sockaddr_has_sa_len=yes
10187 echo "$as_me: failed program was
:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_lbl_sockaddr_has_sa_len=no
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10197 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10198 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SOCKADDR_SA_LEN 1
10206 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
10207 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
10208 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10209 echo $ECHO_N "(cached
) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10218 # include <sys/types.h>
10219 # include <sys/socket.h>
10223 u_int i = sizeof (struct sockaddr_storage)
10228 rm -f conftest.$ac_objext
10229 if { (ac_try="$ac_compile"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_compile") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest.$ac_objext; then
10245 ac_cv_lbl_has_sockaddr_storage=yes
10247 echo "$as_me: failed program was
:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_lbl_has_sockaddr_storage=no
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
10257 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10258 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_SOCKADDR_STORAGE 1
10266 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
10267 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
10268 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10269 echo $ECHO_N "(cached
) $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10278 # include <sys/types.h>
10279 # include <sys/dlpi.h>
10280 # include <sys/dlpi_ext.h>
10284 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_compile") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest.$ac_objext; then
10306 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10308 echo "$as_me: failed program was
:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10318 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10319 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10327 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
10328 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
10329 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10330 echo $ECHO_N "(cached
) $ECHO_C" >&6
10332 case "$host_cpu" in
10335 # These are CPU types where:
10337 # the CPU faults on an unaligned access, but at least some
10338 # OSes that support that CPU catch the fault and simulate
10339 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10340 # the simulation is slow, so we don't want to use it;
10342 # the CPU, I infer (from the old
10344 # XXX: should also check that they don't do weird things (like on arm)
10346 # comment) doesn't fault on unaligned accesses, but doesn't
10347 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10349 # for whatever reason, the test program doesn't work
10350 # (this has been claimed to be the case for several of those
10351 # CPUs - I don't know what the problem is; the problem
10352 # was reported as "the
test program dumps core
" for SuperH,
10353 # but that's what the test program is *supposed* to do -
10354 # it dumps core before it writes anything, so the test
10355 # for an empty output file should find an empty output
10356 # file and conclude that unaligned accesses don't work).
10358 # This run-time test won't work if you're cross-compiling, so
10359 # in order to support cross-compiling for a particular CPU,
10360 # we have to wire in the list of CPU types anyway, as far as
10361 # I know, so perhaps we should just have a set of CPUs on
10362 # which we know it doesn't work, a set of CPUs on which we
10363 # know it does work, and have the script just fail on other
10364 # cpu types and update it when such a failure occurs.
10366 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10367 ac_cv_lbl_unaligned_fail=yes
10371 cat >conftest.c <<EOF
10372 # include <sys/types.h>
10373 # include <sys/wait.h>
10374 # include <stdio.h>
10375 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10380 /* avoid "core dumped
" message */
10386 pid = waitpid(pid, &status, 0);
10389 exit(!WIFEXITED(status));
10392 i = *(unsigned int *)&a[1];
10397 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10398 conftest.c $LIBS >/dev/null 2>&1
10399 if test ! -x conftest ; then
10400 ac_cv_lbl_unaligned_fail=yes
10402 ./conftest >conftest.out
10403 if test ! -s conftest.out ; then
10404 ac_cv_lbl_unaligned_fail=yes
10406 ac_cv_lbl_unaligned_fail=no
10409 rm -f -r conftest* core core.conftest
10414 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
10415 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10416 if test $ac_cv_lbl_unaligned_fail = yes ; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define LBL_ALIGN 1
10425 # Makefile.in includes rules to generate version.h, so we assume
10426 # that it will be generated if autoconf is used.
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_VERSION_H 1
10435 ln -s ${srcdir}/bpf/net net
10455 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
10456 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
10460 cat >>confdefs.h <<\_ACEOF
10461 #define PCAP_SUPPORT_USB 1
10464 USB_SRC=pcap-usb-linux.c
10465 { echo "$as_me:$LINENO: result
: yes" >&5
10466 echo "${ECHO_T}yes" >&6; }
10467 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10468 if test $? -ne 0 ; then
10469 ac_usb_dev_name="usbmon
"
10472 cat >>confdefs.h <<_ACEOF
10473 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
10476 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
10477 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
10479 # Do we have a version of <linux/compiler.h> available?
10480 # If so, we might need it for <linux/usbdevice_fs.h>.
10483 for ac_header in linux/compiler.h
10485 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10486 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10487 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10488 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached
) $ECHO_C" >&6
10492 ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10496 # Is the header compilable?
10497 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10498 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 #include <$ac_header>
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest.$ac_objext; then
10525 ac_header_compiler=yes
10527 echo "$as_me: failed program was
:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 ac_header_compiler=no
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10535 echo "${ECHO_T}$ac_header_compiler" >&6; }
10537 # Is the header present?
10538 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10539 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <$ac_header>
10548 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1 >conftest.err
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10560 (exit $ac_status); } >/dev/null && {
10561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10564 ac_header_preproc=yes
10566 echo "$as_me: failed program was
:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 ac_header_preproc=no
10572 rm -f conftest.err conftest.$ac_ext
10573 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10574 echo "${ECHO_T}$ac_header_preproc" >&6; }
10576 # So? What about this header?
10577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10579 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10580 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10581 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10583 ac_header_preproc=yes
10586 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10587 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10588 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10589 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10590 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10591 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10592 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10593 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10596 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10597 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10601 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10602 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10603 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10604 echo $ECHO_N "(cached
) $ECHO_C" >&6
10606 eval "$as_ac_Header=\
$ac_header_preproc"
10608 ac_res=`eval echo '${'$as_ac_Header'}'`
10609 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10610 echo "${ECHO_T}$ac_res" >&6; }
10613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10614 cat >>confdefs.h <<_ACEOF
10615 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10622 if test "$ac_cv_header_linux_compiler_h" = yes; then
10624 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10627 for ac_header in linux/usbdevice_fs.h
10629 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10630 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10631 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10633 echo $ECHO_N "(cached
) $ECHO_C" >&6
10635 cat >conftest.$ac_ext <<_ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <linux/compiler.h>
10643 #include <$ac_header>
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 eval "$as_ac_Header=yes"
10664 echo "$as_me: failed program was
:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 eval "$as_ac_Header=no
"
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10686 for ac_header in linux/usbdevice_fs.h
10688 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10690 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10691 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10693 echo $ECHO_N "(cached
) $ECHO_C" >&6
10695 ac_res=`eval echo '${'$as_ac_Header'}'`
10696 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10697 echo "${ECHO_T}$ac_res" >&6; }
10699 # Is the header compilable?
10700 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10701 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 $ac_includes_default
10709 #include <$ac_header>
10711 rm -f conftest.$ac_objext
10712 if { (ac_try="$ac_compile"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_compile") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest.$ac_objext; then
10728 ac_header_compiler=yes
10730 echo "$as_me: failed program was
:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_header_compiler=no
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10738 echo "${ECHO_T}$ac_header_compiler" >&6; }
10740 # Is the header present?
10741 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10742 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 #include <$ac_header>
10751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10763 (exit $ac_status); } >/dev/null && {
10764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10767 ac_header_preproc=yes
10769 echo "$as_me: failed program was
:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_header_preproc=no
10775 rm -f conftest.err conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6; }
10779 # So? What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10783 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10786 ac_header_preproc=yes
10789 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10790 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10791 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10792 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10793 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10794 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10795 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10796 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10797 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10799 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10800 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10804 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10805 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached
) $ECHO_C" >&6
10809 eval "$as_ac_Header=\
$ac_header_preproc"
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10826 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10828 # OK, does it define bRequestType? Older versions of the kernel
10829 # define fields with names like "requesttype
, "request", and
10830 # "value", rather than "bRequestType", "bRequest", and
10833 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10834 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10835 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10845 $ac_includes_default
10846 #ifdef HAVE_SYS_BITYPES_H
10847 #include <sys/bitypes.h>
10849 #ifdef HAVE_LINUX_COMPILER_H
10850 #include <linux/compiler.h>
10852 # include <linux/usbdevice_fs.h>
10856 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10861 rm -f conftest.
$ac_objext
10862 if { (ac_try
="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest.$ac_objext; then
10878 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10890 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10891 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10893 cat >>confdefs.h <<\_ACEOF
10894 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10901 { echo "$as_me:$LINENO: result: no" >&5
10902 echo "${ECHO_T}no" >&6; }
10908 # Check whether --enable-bluetooth was given.
10909 if test "${enable_bluetooth+set}" = set; then
10910 enableval=$enable_bluetooth;
10912 enable_bluetooth=yes
10916 if test "x$enable_bluetooth" != "xno" ; then
10919 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10920 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10921 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10922 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10926 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10928 # Is the header compilable?
10929 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10930 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 $ac_includes_default
10938 #include <bluetooth/bluetooth.h>
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10944 *) ac_try_echo
=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10949 grep -v '^ *+' conftest.er1
>conftest.err
10951 cat conftest.err
>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.
$ac_objext; then
10957 ac_header_compiler
=yes
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.
$ac_ext >&5
10962 ac_header_compiler
=no
10965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967 echo "${ECHO_T}$ac_header_compiler" >&6; }
10969 # Is the header present?
10970 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10971 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10972 cat >conftest.
$ac_ext <<_ACEOF
10975 cat confdefs.h
>>conftest.
$ac_ext
10976 cat >>conftest.
$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 #include <bluetooth/bluetooth.h>
10980 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10981 case "(($ac_try" in
10982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } >/dev/null && {
10993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10996 ac_header_preproc=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_header_preproc=no
11004 rm -f conftest.err conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006 echo "${ECHO_T}$ac_header_preproc" >&6; }
11008 # So? What about this header?
11009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11012 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11014 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11018 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11019 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11021 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11023 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11025 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11027 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11029 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11033 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11034 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11035 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11040 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11041 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11044 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11047 cat >>confdefs.h <<\_ACEOF
11048 #define PCAP_SUPPORT_BT 1
11051 BT_SRC=pcap-bt-linux.c
11052 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11053 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11056 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11057 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11064 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11065 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11072 # Check whether --enable-can was given.
11073 if test "${enable_can+set}" = set; then
11074 enableval=$enable_can;
11080 if test "x$enable_can" != "xno" ; then
11083 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11084 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11085 if test "${ac_cv_header_linux_can_h+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.$ac_ext <<_ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <sys/socket.h>
11097 #include <linux/can.h>
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11103 *) ac_try_echo
=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1
>conftest.err
11110 cat conftest.err
>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.
$ac_objext; then
11116 ac_cv_header_linux_can_h
=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.
$ac_ext >&5
11121 ac_cv_header_linux_can_h
=no
11124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11127 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11128 if test $ac_cv_header_linux_can_h = yes; then
11130 cat >>confdefs.h
<<\_ACEOF
11131 #define PCAP_SUPPORT_CAN 1
11134 CAN_SRC
=pcap-can-linux.c
11135 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11136 echo "$as_me: CAN sniffing is supported" >&6;}
11138 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11139 echo "$as_me: CAN sniffing is not supported" >&6;}
11145 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11146 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11156 for ac_header
in linux
/net_tstamp.h
11158 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11159 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11162 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 ac_res
=`eval echo '${'$as_ac_Header'}'`
11166 { echo "$as_me:$LINENO: result: $ac_res" >&5
11167 echo "${ECHO_T}$ac_res" >&6; }
11169 # Is the header compilable?
11170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11172 cat >conftest.
$ac_ext <<_ACEOF
11175 cat confdefs.h
>>conftest.
$ac_ext
11176 cat >>conftest.
$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 #include <$ac_header>
11181 rm -f conftest.
$ac_objext
11182 if { (ac_try
="$ac_compile"
11183 case "(($ac_try" in
11184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11198 ac_header_compiler=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_compiler=no
11206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208 echo "${ECHO_T}$ac_header_compiler" >&6; }
11210 # Is the header present?
11211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <$ac_header>
11221 if { (ac_try="$ac_cpp conftest.$ac_ext"
11222 case "(($ac_try" in
11223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11224 *) ac_try_echo
=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1
>conftest.err
11231 cat conftest.err
>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev
/null
&& {
11234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11237 ac_header_preproc
=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11242 ac_header_preproc
=no
11245 rm -f conftest.err conftest.
$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249 # So? What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc
=yes
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11276 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 eval "$as_ac_Header=\$ac_header_preproc"
11281 ac_res
=`eval echo '${'$as_ac_Header'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11287 cat >>confdefs.h
<<_ACEOF
11288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11297 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11298 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11302 # Find a good install program. We prefer a C program (faster),
11303 # so one script is as good as another. But avoid the broken or
11304 # incompatible versions:
11305 # SysV /etc/install, /usr/sbin/install
11306 # SunOS /usr/etc/install
11307 # IRIX /sbin/install
11309 # AmigaOS /C/install, which installs bootblocks on floppy discs
11310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11313 # OS/2's system install, which has a completely different semantic
11314 # ./install, which can be erroneously created by make from ./install.sh.
11315 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11316 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11317 if test -z "$INSTALL"; then
11318 if test "${ac_cv_path_install+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11322 for as_dir
in $PATH
11325 test -z "$as_dir" && as_dir
=.
11326 # Account for people who put trailing slashes in PATH elements.
11328 .
/ | .
// |
/cC
/* | \
11329 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11330 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
11333 # OSF1 and SCO ODT 3.0 have their own names for install.
11334 # Don't use installbsd from OSF since it installs stuff as root
11336 for ac_prog
in ginstall scoinst
install; do
11337 for ac_exec_ext
in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11339 if test $ac_prog = install &&
11340 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11341 # AIX install. It has an incompatible calling convention.
11343 elif test $ac_prog = install &&
11344 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11345 # program-specific install script used by HP pwplus--don't use.
11348 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11361 if test "${ac_cv_path_install+set}" = set; then
11362 INSTALL
=$ac_cv_path_install
11364 # As a last resort, use the slow shell script. Don't cache a
11365 # value for INSTALL within a source directory, because that will
11366 # break other packages using the cache if that directory is
11367 # removed, or if the value is a relative name.
11368 INSTALL
=$ac_install_sh
11371 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11372 echo "${ECHO_T}$INSTALL" >&6; }
11374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11375 # It thinks the first close brace ends the variable substitution.
11376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11380 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11383 ac_config_headers
="$ac_config_headers config.h"
11386 ac_config_files
="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11388 cat >confcache
<<\_ACEOF
11389 # This file is a shell script that caches the results of configure
11390 # tests run on this system so they can be shared between configure
11391 # scripts and configure runs, see configure's option --config-cache.
11392 # It is not useful on other systems. If it contains results you don't
11393 # want to keep, you may remove or edit it.
11395 # config.status only pays attention to the cache file if you give it
11396 # the --recheck option to rerun configure.
11398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11400 # following values.
11404 # The following way of writing the cache mishandles newlines in values,
11405 # but we know of no workaround that is simple, portable, and efficient.
11406 # So, we kill variables containing newlines.
11407 # Ultrix sh set writes to stderr and can't be redirected directly,
11408 # and sets the high bit in the cache file unless we assign to the vars.
11410 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11411 eval ac_val
=\$
$ac_var
11415 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11416 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11419 _ | IFS | as_nl
) ;; #(
11420 *) $as_unset $ac_var ;;
11426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11427 *${as_nl}ac_space
=\
*)
11428 # `set' does not quote correctly, so add quotes (double-quote
11429 # substitution turns \\\\ into \\, and sed turns \\ into \).
11432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11435 # `set' quotes correctly as required by POSIX, so do not add quotes.
11436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11449 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11450 if test -w "$cache_file"; then
11451 test "x$cache_file" != "x/dev/null" &&
11452 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11453 echo "$as_me: updating cache $cache_file" >&6;}
11454 cat confcache
>$cache_file
11456 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11457 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11462 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11463 # Let make expand exec_prefix.
11464 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11466 DEFS
=-DHAVE_CONFIG_H
11470 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11471 # 1. Remove the extension, and $U if already installed.
11472 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11473 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11475 # will be set to the directory where LIBOBJS objects are built.
11476 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11477 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11479 LIBOBJS
=$ac_libobjs
11481 LTLIBOBJS
=$ac_ltlibobjs
11485 : ${CONFIG_STATUS=./config.status}
11486 ac_clean_files_save
=$ac_clean_files
11487 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11488 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11489 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11490 cat >$CONFIG_STATUS <<_ACEOF
11492 # Generated by $as_me.
11493 # Run this file to recreate the current configuration.
11494 # Compiler output produced by configure, useful for debugging
11495 # configure, is in config.log if it exists.
11498 ac_cs_recheck=false
11500 SHELL=\${CONFIG_SHELL-$SHELL}
11503 cat >>$CONFIG_STATUS <<\_ACEOF
11504 ## --------------------- ##
11505 ## M4sh Initialization. ##
11506 ## --------------------- ##
11508 # Be more Bourne compatible
11509 DUALCASE
=1; export DUALCASE
# for MKS sh
11510 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11514 # is contrary to our usage. Disable this feature.
11515 alias -g '${1+"$@"}'='"$@"'
11516 setopt NO_GLOB_SUBST
11518 case `(set -o) 2>/dev/null` in
11519 *posix
*) set -o posix
;;
11528 # Avoid depending upon Character Ranges.
11529 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11530 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11531 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11532 as_cr_digits
='0123456789'
11533 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11535 # The user is always right.
11536 if test "${PATH_SEPARATOR+set}" != set; then
11537 echo "#! /bin/sh" >conf$$.sh
11538 echo "exit 0" >>conf$$.sh
11540 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11548 # Support unset when possible.
11549 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11557 # We need space, tab and new line, in precisely that order. Quoting is
11558 # there to prevent editors from complaining about space-tab.
11559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11560 # splitting by setting IFS to empty value.)
11565 # Find who we are. Look in the path if we contain no directory separator.
11567 *[\\/]* ) as_myself
=$0 ;;
11568 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11569 for as_dir
in $PATH
11572 test -z "$as_dir" && as_dir
=.
11573 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11579 # We did not find ourselves, most probably we were run as `sh COMMAND'
11580 # in which case we are not to be found in the path.
11581 if test "x$as_myself" = x
; then
11584 if test ! -f "$as_myself"; then
11585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11586 { (exit 1); exit 1; }
11589 # Work around bugs in pre-3.0 UWIN ksh.
11590 for as_var
in ENV MAIL MAILPATH
11591 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11601 LC_TELEPHONE LC_TIME
11603 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11604 eval $as_var=C
; export $as_var
11606 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11610 # Required to use basename.
11611 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11612 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11618 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11619 as_basename
=basename
11625 # Name of the executable.
11626 as_me
=`$as_basename -- "$0" ||
11627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11628 X"$0" : 'X\(//\)$' \| \
11629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11631 sed '/^.*\/\([^/][^/]*\)\/*$/{
11650 as_lineno_1
=$LINENO
11651 as_lineno_2
=$LINENO
11652 test "x$as_lineno_1" != "x$as_lineno_2" &&
11653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
11655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11656 # uniformly replaced by the line number. The first 'sed' inserts a
11657 # line-number line after each line using $LINENO; the second 'sed'
11658 # does the real work. The second script uses 'N' to pair each
11659 # line-number line with the line containing $LINENO, and appends
11660 # trailing '-' during substitution so that $LINENO is not a special
11661 # case at line end.
11662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11663 # scripts with optimization help from Paolo Bonzini. Blame Lee
11664 # E. McMahon (1931-1989) for sed's syntax. :-)
11676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11679 ' >$as_me.lineno
&&
11680 chmod +x
"$as_me.lineno" ||
11681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11682 { (exit 1); exit 1; }; }
11684 # Don't try to exec as it changes $[0], causing all sort of problems
11685 # (the dirname of $[0] is not the place where we might find the
11686 # original and so on. Autoconf is especially sensitive to this).
11687 .
"./$as_me.lineno"
11688 # Exit status is that of the last command.
11693 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11699 ECHO_C
= ECHO_N
= ECHO_T
=
11700 case `echo -n x` in
11702 case `echo 'x\c'` in
11703 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11710 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11711 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11717 rm -f conf$$ conf$$.exe conf$$.
file
11718 if test -d conf$$.dir
; then
11719 rm -f conf$$.dir
/conf$$.
file
11725 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11727 # ... but there are two gotchas:
11728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11730 # In both cases, we have to default to `cp -p'.
11731 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11733 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11738 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11739 rmdir conf$$.dir
2>/dev
/null
11741 if mkdir
-p .
2>/dev
/null
; then
11744 test -d .
/-p && rmdir .
/-p
11748 if test -x / >/dev
/null
2>&1; then
11749 as_test_x
='test -x'
11751 if ls -dL / >/dev
/null
2>&1; then
11758 if test -d "$1"; then
11764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11765 ???[sx]*):;;*)false;;esac;fi
11769 as_executable_p
=$as_test_x
11771 # Sed expression to map a string onto a valid CPP name.
11772 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11774 # Sed expression to map a string onto a valid variable name.
11775 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11780 # Save the log message, to keep $[0] and so on meaningful, and to
11781 # report actual input values of CONFIG_FILES etc. instead of their
11782 # values after options handling.
11784 This file was extended by $as_me, which was
11785 generated by GNU Autoconf 2.61. Invocation command line was
11787 CONFIG_FILES = $CONFIG_FILES
11788 CONFIG_HEADERS = $CONFIG_HEADERS
11789 CONFIG_LINKS = $CONFIG_LINKS
11790 CONFIG_COMMANDS = $CONFIG_COMMANDS
11793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11798 cat >>$CONFIG_STATUS <<_ACEOF
11799 # Files that config.status was made for.
11800 config_files="$ac_config_files"
11801 config_headers="$ac_config_headers"
11805 cat >>$CONFIG_STATUS <<\_ACEOF
11807 \`$as_me' instantiates files from templates according to the
11808 current configuration.
11810 Usage: $0 [OPTIONS] [FILE]...
11812 -h, --help print this help, then exit
11813 -V, --version print version number and configuration settings, then exit
11814 -q, --quiet do not print progress messages
11815 -d, --debug don't remove temporary files
11816 --recheck update $as_me by reconfiguring in the same conditions
11817 --file=FILE[:TEMPLATE]
11818 instantiate the configuration file FILE
11819 --header=FILE[:TEMPLATE]
11820 instantiate the configuration header FILE
11822 Configuration files:
11825 Configuration headers:
11828 Report bugs to <bug-autoconf@gnu.org>."
11831 cat >>$CONFIG_STATUS <<_ACEOF
11834 configured by $0, generated by GNU Autoconf 2.61,
11835 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11837 Copyright (C) 2006 Free Software Foundation, Inc.
11838 This config.status script is free software; the Free Software Foundation
11839 gives unlimited permission to copy, distribute and modify it."
11846 cat >>$CONFIG_STATUS <<\_ACEOF
11847 # If no file are specified by the user, then we need to provide default
11848 # value. By we need to know if files were specified by the user.
11854 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11855 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11866 # Handling of the options.
11867 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11869 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11870 echo "$ac_cs_version"; exit ;;
11871 --debug |
--debu |
--deb |
--de |
--d |
-d )
11873 --file |
--fil |
--fi |
--f )
11875 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11876 ac_need_defaults
=false
;;
11877 --header |
--heade |
--head |
--hea )
11879 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11880 ac_need_defaults
=false
;;
11882 # Conflict between --help and --header
11883 { echo "$as_me: error: ambiguous option: $1
11884 Try \`$0 --help' for more information." >&2
11885 { (exit 1); exit 1; }; };;
11886 --help |
--hel |
-h )
11887 echo "$ac_cs_usage"; exit ;;
11888 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11889 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11892 # This is an error.
11893 -*) { echo "$as_me: error: unrecognized option: $1
11894 Try \`$0 --help' for more information." >&2
11895 { (exit 1); exit 1; }; } ;;
11897 *) ac_config_targets
="$ac_config_targets $1"
11898 ac_need_defaults
=false
;;
11904 ac_configure_extra_args
=
11906 if $ac_cs_silent; then
11908 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11912 cat >>$CONFIG_STATUS <<_ACEOF
11913 if \$ac_cs_recheck; then
11914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11915 CONFIG_SHELL=$SHELL
11916 export CONFIG_SHELL
11917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11921 cat >>$CONFIG_STATUS <<\_ACEOF
11925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11926 ## Running $as_me. ##
11932 cat >>$CONFIG_STATUS <<_ACEOF
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11937 # Handling of arguments.
11938 for ac_config_target
in $ac_config_targets
11940 case $ac_config_target in
11941 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11942 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11943 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11944 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11945 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11946 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11947 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11948 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11949 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11950 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11951 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11952 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11953 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11954 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11955 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11959 { (exit 1); exit 1; }; };;
11964 # If the user did not use the arguments to specify the items to instantiate,
11965 # then the envvar interface is used. Set only those that are not.
11966 # We use the long form for the default assignment because of an extremely
11967 # bizarre bug on SunOS 4.1.3.
11968 if $ac_need_defaults; then
11969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11973 # Have a temporary directory for convenience. Make it in the build tree
11974 # simply because there is no reason against having it here, and in addition,
11975 # creating and moving files from /tmp can sometimes cause problems.
11976 # Hook for its removal unless debugging.
11977 # Note that there is a small window in which the directory will not be cleaned:
11978 # after its creation but before its name has been assigned to `$tmp'.
11982 trap 'exit_status=$?
11983 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11985 trap '{ (exit 1); exit 1; }' 1 2 13 15
11987 # Create a (secure) tmp directory for tmp files.
11990 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11991 test -n "$tmp" && test -d "$tmp"
11994 tmp
=.
/conf$$
-$RANDOM
11995 (umask 077 && mkdir
"$tmp")
11998 echo "$me: cannot create a temporary directory in ." >&2
11999 { (exit 1); exit 1; }
12003 # Set up the sed scripts for CONFIG_FILES section.
12006 # No need to generate the scripts if there are no CONFIG_FILES.
12007 # This happens for instance when ./config.status config.h
12008 if test -n "$CONFIG_FILES"; then
12015 for ac_last_try
in false false false false false
:; do
12016 cat >conf$
$subs.
sed <<_ACEOF
12017 SHELL!$SHELL$ac_delim
12018 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12019 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12020 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12021 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12022 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12023 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12024 exec_prefix!$exec_prefix$ac_delim
12025 prefix!$prefix$ac_delim
12026 program_transform_name!$program_transform_name$ac_delim
12027 bindir!$bindir$ac_delim
12028 sbindir!$sbindir$ac_delim
12029 libexecdir!$libexecdir$ac_delim
12030 datarootdir!$datarootdir$ac_delim
12031 datadir!$datadir$ac_delim
12032 sysconfdir!$sysconfdir$ac_delim
12033 sharedstatedir!$sharedstatedir$ac_delim
12034 localstatedir!$localstatedir$ac_delim
12035 includedir!$includedir$ac_delim
12036 oldincludedir!$oldincludedir$ac_delim
12037 docdir!$docdir$ac_delim
12038 infodir!$infodir$ac_delim
12039 htmldir!$htmldir$ac_delim
12040 dvidir!$dvidir$ac_delim
12041 pdfdir!$pdfdir$ac_delim
12042 psdir!$psdir$ac_delim
12043 libdir!$libdir$ac_delim
12044 localedir!$localedir$ac_delim
12045 mandir!$mandir$ac_delim
12046 DEFS!$DEFS$ac_delim
12047 ECHO_C!$ECHO_C$ac_delim
12048 ECHO_N!$ECHO_N$ac_delim
12049 ECHO_T!$ECHO_T$ac_delim
12050 LIBS!$LIBS$ac_delim
12051 build_alias!$build_alias$ac_delim
12052 host_alias!$host_alias$ac_delim
12053 target_alias!$target_alias$ac_delim
12054 build!$build$ac_delim
12055 build_cpu!$build_cpu$ac_delim
12056 build_vendor!$build_vendor$ac_delim
12057 build_os!$build_os$ac_delim
12058 host!$host$ac_delim
12059 host_cpu!$host_cpu$ac_delim
12060 host_vendor!$host_vendor$ac_delim
12061 host_os!$host_os$ac_delim
12062 target!$target$ac_delim
12063 target_cpu!$target_cpu$ac_delim
12064 target_vendor!$target_vendor$ac_delim
12065 target_os!$target_os$ac_delim
12066 SHLICC2!$SHLICC2$ac_delim
12068 CFLAGS!$CFLAGS$ac_delim
12069 LDFLAGS!$LDFLAGS$ac_delim
12070 CPPFLAGS!$CPPFLAGS$ac_delim
12071 ac_ct_CC!$ac_ct_CC$ac_delim
12072 EXEEXT!$EXEEXT$ac_delim
12073 OBJEXT!$OBJEXT$ac_delim
12075 GREP!$GREP$ac_delim
12076 EGREP!$EGREP$ac_delim
12077 LIBOBJS!$LIBOBJS$ac_delim
12078 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12079 V_LEX!$V_LEX$ac_delim
12080 V_YACC!$V_YACC$ac_delim
12081 RANLIB!$RANLIB$ac_delim
12083 V_CCOPT!$V_CCOPT$ac_delim
12084 V_DEFS!$V_DEFS$ac_delim
12085 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12086 V_INCLS!$V_INCLS$ac_delim
12087 V_PCAP!$V_PCAP$ac_delim
12088 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12089 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12090 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12091 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12092 ADDLOBJS!$ADDLOBJS$ac_delim
12093 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12094 SSRC!$SSRC$ac_delim
12095 DYEXT!$DYEXT$ac_delim
12096 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12097 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12098 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12099 USB_SRC!$USB_SRC$ac_delim
12100 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12101 BT_SRC!$BT_SRC$ac_delim
12102 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12103 CAN_SRC!$CAN_SRC$ac_delim
12104 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12105 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12106 INSTALL_DATA!$INSTALL_DATA$ac_delim
12107 LTLIBOBJS!$LTLIBOBJS$ac_delim
12110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
12112 elif $ac_last_try; then
12113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12115 { (exit 1); exit 1; }; }
12117 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12121 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12122 if test -n "$ac_eof"; then
12123 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12124 ac_eof
=`expr $ac_eof + 1`
12127 cat >>$CONFIG_STATUS <<_ACEOF
12128 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12133 s/^/s,@/; s/!/@,|#_!!_#|/
12136 s/'"$ac_delim"'$/,g/; t
12138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12139 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12140 rm -f conf$
$subs.
sed
12141 cat >>$CONFIG_STATUS <<_ACEOF
12148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12150 # trailing colons and then remove the whole line if VPATH becomes empty
12151 # (actually we leave an empty line to preserve line numbers).
12152 if test "x$srcdir" = x.
; then
12153 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12154 s/:*\$(srcdir):*/:/
12155 s/:*\${srcdir}:*/:/
12157 s/^\([^=]*=[ ]*\):*/\1/
12163 cat >>$CONFIG_STATUS <<\_ACEOF
12164 fi # test -n "$CONFIG_FILES"
12167 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
12170 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12172 case $ac_mode$ac_tag in
12174 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12176 { (exit 1); exit 1; }; };;
12177 :[FH
]-) ac_tag
=-:-;;
12178 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12195 -) ac_f
="$tmp/stdin";;
12196 *) # Look for the file first in the build tree, then in the source tree
12197 # (if the path is not absolute). The absolute path cannot be DOS-style,
12198 # because $ac_f cannot contain `:'.
12202 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12206 { (exit 1); exit 1; }; };;
12208 ac_file_inputs
="$ac_file_inputs $ac_f"
12211 # Let's still pretend it is `configure' which instantiates (i.e., don't
12212 # use $as_me), people would be surprised to read:
12213 # /* config.h. Generated by config.status. */
12214 configure_input
="Generated from "`IFS=:
12215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12216 if test x
"$ac_file" != x-
; then
12217 configure_input
="$ac_file. $configure_input"
12218 { echo "$as_me:$LINENO: creating $ac_file" >&5
12219 echo "$as_me: creating $ac_file" >&6;}
12223 *:-:* |
*:-) cat >"$tmp/stdin";;
12228 ac_dir
=`$as_dirname -- "$ac_file" ||
12229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230 X"$ac_file" : 'X\(//\)[^/]' \| \
12231 X"$ac_file" : 'X\(//\)$' \| \
12232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12238 /^X\(\/\/\)[^/].*/{
12253 -*) as_dir
=.
/$as_dir;;
12255 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12259 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12260 *) as_qdir
=$as_dir;;
12262 as_dirs
="'$as_qdir' $as_dirs"
12263 as_dir
=`$as_dirname -- "$as_dir" ||
12264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265 X"$as_dir" : 'X\(//\)[^/]' \| \
12266 X"$as_dir" : 'X\(//\)$' \| \
12267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12273 /^X\(\/\/\)[^/].*/{
12286 test -d "$as_dir" && break
12288 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12289 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12291 { (exit 1); exit 1; }; }; }
12295 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12297 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12298 # A ".." for each directory in $ac_dir_suffix.
12299 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12300 case $ac_top_builddir_sub in
12301 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12302 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12305 ac_abs_top_builddir
=$ac_pwd
12306 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12307 # for backward compatibility:
12308 ac_top_builddir
=$ac_top_build_prefix
12311 .
) # We are building in place.
12313 ac_top_srcdir
=$ac_top_builddir_sub
12314 ac_abs_top_srcdir
=$ac_pwd ;;
12315 [\\/]* | ?
:[\\/]* ) # Absolute name.
12316 ac_srcdir
=$srcdir$ac_dir_suffix;
12317 ac_top_srcdir
=$srcdir
12318 ac_abs_top_srcdir
=$srcdir ;;
12319 *) # Relative name.
12320 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12321 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12322 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12324 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12334 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12335 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 # If the template does not know about datarootdir, expand it.
12341 # FIXME: This hack should be removed a few years after 2.60.
12342 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12344 case `sed -n '/datarootdir/ {
12353 ' $ac_file_inputs` in
12354 *datarootdir
*) ac_datarootdir_seen
=yes;;
12355 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12359 cat >>$CONFIG_STATUS <<_ACEOF
12360 ac_datarootdir_hack='
12361 s&@datadir@&$datadir&g
12362 s&@docdir@&$docdir&g
12363 s&@infodir@&$infodir&g
12364 s&@localedir@&$localedir&g
12365 s&@mandir@&$mandir&g
12366 s&\\\${datarootdir}&$datarootdir&g' ;;
12370 # Neutralize VPATH when `$srcdir' = `.'.
12371 # Shell code in configure.ac might set extrasub.
12372 # FIXME: do we really want to maintain this feature?
12373 cat >>$CONFIG_STATUS <<_ACEOF
12377 cat >>$CONFIG_STATUS <<\_ACEOF
12379 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12380 s
&@configure_input@
&$configure_input&;t t
12381 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12382 s
&@srcdir@
&$ac_srcdir&;t t
12383 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12384 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12385 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12386 s
&@builddir@
&$ac_builddir&;t t
12387 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12388 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12389 s
&@INSTALL@
&$ac_INSTALL&;t t
12390 $ac_datarootdir_hack
12391 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
12393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12396 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12397 which seems to be undefined. Please make sure it is defined." >&5
12398 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12399 which seems to be undefined. Please make sure it is defined." >&2;}
12403 -) cat "$tmp/out"; rm -f "$tmp/out";;
12404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12413 # Transform confdefs.h into a sed script `conftest.defines', that
12414 # substitutes the proper values into config.h.in to produce config.h.
12415 rm -f conftest.defines conftest.
tail
12416 # First, append a space to every undef/define line, to ease matching.
12417 echo 's/$/ /' >conftest.defines
12418 # Then, protect against being on the right side of a sed subst, or in
12419 # an unquoted here document, in config.status. If some macros were
12420 # called several times there might be several #defines for the same
12421 # symbol, which is useless. But do not sort them, since the last
12422 # AC_DEFINE must be honored.
12423 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12424 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12425 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12426 # PARAMS is the parameter list in the macro definition--in most cases, it's
12427 # just an empty string.
12428 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12429 ac_dB
='\\)[ (].*,\\1define\\2'
12437 s/^[ ]*#[ ]*define[ ][ ]*//
12442 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12443 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12444 ' >>conftest.defines
12446 # Remove the space that was appended to ease matching.
12447 # Then replace #undef with comments. This is necessary, for
12448 # example, in the case of _POSIX_SOURCE, which is predefined and required
12449 # on some systems where configure will not decide to define it.
12450 # (The regexp can be short, since the line contains either #define or #undef.)
12452 s,^[ #]*u.*,/* & */,' >>conftest.defines
12454 # Break up conftest.defines:
12455 ac_max_sed_lines
=50
12457 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12458 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12459 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12461 ac_in
='$ac_file_inputs'
12462 ac_out
='"$tmp/out1"'
12463 ac_nxt
='"$tmp/out2"'
12467 # Write a here document:
12468 cat >>$CONFIG_STATUS <<_ACEOF
12469 # First, check the format of the line:
12470 cat >"\$tmp/defines.sed" <<\\CEOF
12471 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12472 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12476 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12478 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12479 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12480 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12481 grep . conftest.
tail >/dev
/null ||
break
12482 rm -f conftest.defines
12483 mv conftest.
tail conftest.defines
12485 rm -f conftest.defines conftest.
tail
12487 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12488 cat >>$CONFIG_STATUS <<\_ACEOF
12489 if test x
"$ac_file" != x-
; then
12490 echo "/* $configure_input */" >"$tmp/config.h"
12491 cat "$ac_result" >>"$tmp/config.h"
12492 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12493 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12494 echo "$as_me: $ac_file is unchanged" >&6;}
12497 mv "$tmp/config.h" $ac_file
12500 echo "/* $configure_input */"
12512 { (exit 0); exit 0; }
12514 chmod +x
$CONFIG_STATUS
12515 ac_clean_files
=$ac_clean_files_save
12518 # configure is writing to config.log, and then calls config.status.
12519 # config.status does its own redirection, appending to config.log.
12520 # Unfortunately, on DOS this fails, as config.log is still kept open
12521 # by configure, so config.status won't be able to write to it; its
12522 # output is simply discarded. So we exec the FD to /dev/null,
12523 # effectively closing config.log, so it can be properly (re)opened and
12524 # appended to by config.status. When coming back to configure, we
12525 # need to make the FD available again.
12526 if test "$no_create" != yes; then
12528 ac_config_status_args
=
12529 test "$silent" = yes &&
12530 ac_config_status_args
="$ac_config_status_args --quiet"
12532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12535 # would make configure fail if this is the last instruction.
12536 $ac_cs_success ||
{ (exit 1); exit 1; }
12540 if test -f .devel
; then