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
706 ac_precious_vars
='build_alias
717 # Initialize some variables set by options.
719 ac_init_version
=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
729 program_transform_name
=s
,x
,x
,
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir
='${exec_prefix}/bin'
744 sbindir
='${exec_prefix}/sbin'
745 libexecdir
='${exec_prefix}/libexec'
746 datarootdir
='${prefix}/share'
747 datadir
='${datarootdir}'
748 sysconfdir
='${prefix}/etc'
749 sharedstatedir
='${prefix}/com'
750 localstatedir
='${prefix}/var'
751 includedir
='${prefix}/include'
752 oldincludedir
='/usr/include'
753 docdir
='${datarootdir}/doc/${PACKAGE}'
754 infodir
='${datarootdir}/info'
759 libdir
='${exec_prefix}/lib'
760 localedir
='${datarootdir}/locale'
761 mandir
='${datarootdir}/man'
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\
$ac_option
775 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 # Accept the important Cygnus configure options, so we can diagnose typos.
781 case $ac_dashdash$ac_option in
785 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
787 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
790 -build |
--build |
--buil |
--bui |
--bu)
791 ac_prev
=build_alias
;;
792 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
793 build_alias
=$ac_optarg ;;
795 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
796 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
797 ac_prev
=cache_file
;;
798 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
799 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
800 cache_file
=$ac_optarg ;;
803 cache_file
=config.cache
;;
805 -datadir |
--datadir |
--datadi |
--datad)
807 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
808 datadir
=$ac_optarg ;;
810 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
811 |
--dataroo |
--dataro |
--datar)
812 ac_prev
=datarootdir
;;
813 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
814 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
815 datarootdir
=$ac_optarg ;;
817 -disable-* |
--disable-*)
818 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
824 eval enable_
$ac_feature=no
;;
826 -docdir |
--docdir |
--docdi |
--doc |
--do)
828 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
831 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
833 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
836 -enable-* |
--enable-*)
837 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_
$ac_feature=\
$ac_optarg ;;
845 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
846 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
847 |
--exec |
--exe |
--ex)
848 ac_prev
=exec_prefix
;;
849 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
850 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
851 |
--exec=* |
--exe=* |
--ex=*)
852 exec_prefix
=$ac_optarg ;;
854 -gas |
--gas |
--ga |
--g)
855 # Obsolete; use --with-gas.
858 -help |
--help |
--hel |
--he |
-h)
860 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
861 ac_init_help
=recursive
;;
862 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
863 ac_init_help
=short
;;
865 -host |
--host |
--hos |
--ho)
866 ac_prev
=host_alias
;;
867 -host=* |
--host=* |
--hos=* |
--ho=*)
868 host_alias
=$ac_optarg ;;
870 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
872 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
874 htmldir
=$ac_optarg ;;
876 -includedir |
--includedir |
--includedi |
--included |
--include \
877 |
--includ |
--inclu |
--incl |
--inc)
878 ac_prev
=includedir
;;
879 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
880 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
881 includedir
=$ac_optarg ;;
883 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
885 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
886 infodir
=$ac_optarg ;;
888 -libdir |
--libdir |
--libdi |
--libd)
890 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
893 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
894 |
--libexe |
--libex |
--libe)
895 ac_prev
=libexecdir
;;
896 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
897 |
--libexe=* |
--libex=* |
--libe=*)
898 libexecdir
=$ac_optarg ;;
900 -localedir |
--localedir |
--localedi |
--localed |
--locale)
902 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
903 localedir
=$ac_optarg ;;
905 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
906 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
907 ac_prev
=localstatedir
;;
908 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
909 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
910 localstatedir
=$ac_optarg ;;
912 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
914 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
918 # Obsolete; use --without-fp.
921 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
922 |
--no-cr |
--no-c |
-n)
925 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
926 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
929 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
930 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
931 |
--oldin |
--oldi |
--old |
--ol |
--o)
932 ac_prev
=oldincludedir
;;
933 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
934 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
935 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
936 oldincludedir
=$ac_optarg ;;
938 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
940 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
943 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
944 |
--program-pre |
--program-pr |
--program-p)
945 ac_prev
=program_prefix
;;
946 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
947 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
948 program_prefix
=$ac_optarg ;;
950 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
951 |
--program-suf |
--program-su |
--program-s)
952 ac_prev
=program_suffix
;;
953 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
954 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
955 program_suffix
=$ac_optarg ;;
957 -program-transform-name |
--program-transform-name \
958 |
--program-transform-nam |
--program-transform-na \
959 |
--program-transform-n |
--program-transform- \
960 |
--program-transform |
--program-transfor \
961 |
--program-transfo |
--program-transf \
962 |
--program-trans |
--program-tran \
963 |
--progr-tra |
--program-tr |
--program-t)
964 ac_prev
=program_transform_name
;;
965 -program-transform-name=* |
--program-transform-name=* \
966 |
--program-transform-nam=* |
--program-transform-na=* \
967 |
--program-transform-n=* |
--program-transform-=* \
968 |
--program-transform=* |
--program-transfor=* \
969 |
--program-transfo=* |
--program-transf=* \
970 |
--program-trans=* |
--program-tran=* \
971 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
972 program_transform_name
=$ac_optarg ;;
974 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
976 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
979 -psdir |
--psdir |
--psdi |
--psd |
--ps)
981 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
984 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
985 |
-silent |
--silent |
--silen |
--sile |
--sil)
988 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
990 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
992 sbindir
=$ac_optarg ;;
994 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
995 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
996 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
998 ac_prev
=sharedstatedir
;;
999 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1000 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1001 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1003 sharedstatedir
=$ac_optarg ;;
1005 -site |
--site |
--sit)
1007 -site=* |
--site=* |
--sit=*)
1010 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1012 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1013 srcdir
=$ac_optarg ;;
1015 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1016 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1017 ac_prev
=sysconfdir
;;
1018 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1019 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1020 sysconfdir
=$ac_optarg ;;
1022 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1023 ac_prev
=target_alias
;;
1024 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1025 target_alias
=$ac_optarg ;;
1027 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1030 -version |
--version |
--versio |
--versi |
--vers |
-V)
1031 ac_init_version
=: ;;
1034 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_
$ac_package=\
$ac_optarg ;;
1042 -without-* |
--without-*)
1043 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_
$ac_package=no
;;
1052 # Obsolete; use --with-x.
1055 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1056 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1057 ac_prev
=x_includes
;;
1058 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1059 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1060 x_includes
=$ac_optarg ;;
1062 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1063 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1064 ac_prev
=x_libraries
;;
1065 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1066 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1067 x_libraries
=$ac_optarg ;;
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070 Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1075 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\
$ac_optarg
1081 export $ac_envvar ;;
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 if test -n "$ac_prev"; then
1095 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1100 # Be sure to have absolute directory names.
1101 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1106 eval ac_val
=\$
$ac_var
1108 [\\/$
]* | ?
:[\\/]* ) continue;;
1109 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1115 # There might be people who depend on the old broken behavior: `$host'
1116 # used to hold the argument of --host etc.
1117 # FIXME: To remove some day.
1120 target
=$target_alias
1122 # FIXME: To remove some day.
1123 if test "x$host_alias" != x
; then
1124 if test "x$build_alias" = x
; then
1125 cross_compiling
=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1134 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1136 test "$silent" = yes && exec 6>/dev
/null
1139 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1140 ac_ls_di
=`ls -di .` &&
1141 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1149 # Find the source files, if location was not specified.
1150 if test -z "$srcdir"; then
1151 ac_srcdir_defaulted
=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir
=`$as_dirname -- "$0" ||
1154 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1181 ac_srcdir_defaulted
=no
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1188 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1201 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 for ac_var
in $ac_precious_vars; do
1204 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1206 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1211 # Report the --help message.
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1217 \`configure' configures this package to adapt to many kinds of systems.
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1224 Defaults for the options are specified in brackets.
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1248 For better control, use the options below.
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1275 --build=BUILD configure
for building on BUILD
[guessed
]
1276 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1277 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1281 if test -n "$ac_init_help"; then
1286 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1287 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1288 --disable-largefile omit support
for large files
1289 --disable-protochain disable
\"protochain
\" insn
1290 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1291 getaddrinfo available
]
1292 --enable-optimizer-dbg build optimizer debugging code
1293 --enable-yydebug build parser debugging code
1294 --enable-bluetooth enable bluetooth support
[default
=yes, if support
1298 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1299 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1300 --without-gcc don
't use gcc
1301 --with-sita include SITA support
1302 --with-pcap=TYPE use packet capture TYPE
1303 --without-libnl disable libnl support [default=yes, on Linux, if
1305 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1306 default="yes" on BSD and Linux if present]
1307 --with-dag-includes=DIR Endace DAG include directory
1308 --with-dag-libraries=DIR
1309 Endace DAG library directory
1310 --with-septel[=DIR] include Septel support (located in directory DIR, if
1311 supplied). [default=yes, on Linux, if present]
1312 --without-flex don't use flex
1313 --without-bison don
't use bison
1315 Some influential environment variables:
1316 CC C compiler command
1317 CFLAGS C compiler flags
1318 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1319 nonstandard directory <lib dir>
1320 LIBS libraries to pass to the linker, e.g. -l<library>
1321 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1322 you have headers in a nonstandard directory <include dir>
1325 Use these variables to override the choices made by `configure' or to
help
1326 it to
find libraries and programs with nonstandard names
/locations.
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1335 test -d "$ac_dir" ||
continue
1339 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1341 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1346 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1349 ac_abs_top_builddir
=$ac_pwd
1350 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir
=$ac_top_build_prefix
1355 .
) # We are building in place.
1357 ac_top_srcdir
=$ac_top_builddir_sub
1358 ac_abs_top_srcdir
=$ac_pwd ;;
1359 [\\/]* | ?
:[\\/]* ) # Absolute name.
1360 ac_srcdir
=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir
=$srcdir
1362 ac_abs_top_srcdir
=$srcdir ;;
1364 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1368 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1370 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1381 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1389 generated by GNU Autoconf
2.61
1391 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1392 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1393 This configure
script is free software
; the Free Software Foundation
1394 gives unlimited permission to copy
, distribute and modify it.
1398 cat >config.log
<<_ACEOF
1399 This file contains any messages produced by compilers while
1400 running configure, to aid debugging if configure makes a mistake.
1402 It was created by $as_me, which was
1403 generated by GNU Autoconf 2.61. Invocation command line was
1415 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1416 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1417 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1418 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1419 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1421 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1422 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1424 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1425 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1426 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1427 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1428 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1429 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1430 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir
=.
1439 echo "PATH: $as_dir"
1455 # Keep a trace of the command line.
1456 # Strip out --no-create and --no-recursion so they do not pile up.
1457 # Strip out --silent because we don't want to record it for future runs.
1458 # Also quote any args containing shell meta-characters.
1459 # Make two passes to allow for proper duplicate-argument suppression.
1463 ac_must_keep_next
=false
1469 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1470 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1471 |
-silent |
--silent |
--silen |
--sile |
--sil)
1474 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1479 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1480 if test $ac_must_keep_next = true
; then
1481 ac_must_keep_next
=false
# Got value, back to normal.
1484 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1485 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1486 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1487 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1488 case "$ac_configure_args0 " in
1489 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1492 -* ) ac_must_keep_next
=true
;;
1495 ac_configure_args
="$ac_configure_args '$ac_arg'"
1500 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1501 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1503 # When interrupted or exit'd, cleanup temporary files, and complete
1504 # config.log. We remove comments because anyway the quotes in there
1505 # would cause problems or look ugly.
1506 # WARNING: Use '\'' to represent an apostrophe within the trap.
1507 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1508 trap 'exit_status=$?
1509 # Save into config.log some information that might help in debugging.
1514 ## ---------------- ##
1515 ## Cache variables. ##
1516 ## ---------------- ##
1519 # The following way of writing the cache mishandles newlines in values,
1521 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1522 eval ac_val=\$$ac_var
1526 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1527 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1530 _ | IFS | as_nl) ;; #(
1531 *) $as_unset $ac_var ;;
1536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1537 *${as_nl}ac_space=\ *)
1539 "s/'\''/'\''\\\\'\'''\''/g;
1540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1551 ## ----------------- ##
1552 ## Output variables. ##
1553 ## ----------------- ##
1556 for ac_var in $ac_subst_vars
1558 eval ac_val=\$$ac_var
1560 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562 echo "$ac_var='\''$ac_val'\''"
1566 if test -n "$ac_subst_files"; then
1568 ## ------------------- ##
1569 ## File substitutions. ##
1570 ## ------------------- ##
1573 for ac_var
in $ac_subst_files
1575 eval ac_val
=\$
$ac_var
1577 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1579 echo "$ac_var='\''$ac_val'\''"
1584 if test -s confdefs.h; then
1594 test "$ac_signal" != 0 &&
1595 echo "$as_me: caught signal $ac_signal"
1596 echo "$as_me: exit $exit_status"
1598 rm -f core *.core core.conftest.* &&
1599 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1602 for ac_signal
in 1 2 13 15; do
1603 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1607 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1608 rm -f -r conftest
* confdefs.h
1610 # Predefined preprocessor variables.
1612 cat >>confdefs.h
<<_ACEOF
1613 #define PACKAGE_NAME "$PACKAGE_NAME"
1617 cat >>confdefs.h
<<_ACEOF
1618 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1622 cat >>confdefs.h
<<_ACEOF
1623 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1627 cat >>confdefs.h
<<_ACEOF
1628 #define PACKAGE_STRING "$PACKAGE_STRING"
1632 cat >>confdefs.h
<<_ACEOF
1633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1637 # Let the site file select an alternate cache file if it wants to.
1638 # Prefer explicitly selected file to automatically selected ones.
1639 if test -n "$CONFIG_SITE"; then
1640 set x
"$CONFIG_SITE"
1641 elif test "x$prefix" != xNONE
; then
1642 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1644 set x
"$ac_default_prefix/share/config.site" \
1645 "$ac_default_prefix/etc/config.site"
1650 if test -r "$ac_site_file"; then
1651 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1652 echo "$as_me: loading site script $ac_site_file" >&6;}
1653 sed 's/^/| /' "$ac_site_file" >&5
1658 if test -r "$cache_file"; then
1659 # Some versions of bash will fail to source /dev/null (special
1660 # files actually), so we avoid doing that.
1661 if test -f "$cache_file"; then
1662 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1663 echo "$as_me: loading cache $cache_file" >&6;}
1665 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1666 *) .
"./$cache_file";;
1670 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1671 echo "$as_me: creating cache $cache_file" >&6;}
1675 # Check that the precious variables saved in the cache have kept the same
1677 ac_cache_corrupted
=false
1678 for ac_var
in $ac_precious_vars; do
1679 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1680 eval ac_new_set
=\
$ac_env_${ac_var}_set
1681 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1682 eval ac_new_val
=\
$ac_env_${ac_var}_value
1683 case $ac_old_set,$ac_new_set in
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687 ac_cache_corrupted
=: ;;
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691 ac_cache_corrupted
=: ;;
1694 if test "x$ac_old_val" != "x$ac_new_val"; then
1695 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1696 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1697 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1698 echo "$as_me: former value: $ac_old_val" >&2;}
1699 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1700 echo "$as_me: current value: $ac_new_val" >&2;}
1701 ac_cache_corrupted
=:
1704 # Pass precious variables to config.status.
1705 if test "$ac_new_set" = set; then
1707 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 *) ac_arg
=$ac_var=$ac_new_val ;;
1710 case " $ac_configure_args " in
1711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1712 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1716 if $ac_cache_corrupted; then
1717 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1718 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1719 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1720 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1721 { (exit 1); exit 1; }; }
1741 ac_cpp
='$CPP $CPPFLAGS'
1742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1749 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1750 if test -f "$ac_dir/install-sh"; then
1752 ac_install_sh
="$ac_aux_dir/install-sh -c"
1754 elif test -f "$ac_dir/install.sh"; then
1756 ac_install_sh
="$ac_aux_dir/install.sh -c"
1758 elif test -f "$ac_dir/shtool"; then
1760 ac_install_sh
="$ac_aux_dir/shtool install -c"
1764 if test -z "$ac_aux_dir"; then
1765 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1766 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1767 { (exit 1); exit 1; }; }
1770 # These three variables are undocumented and unsupported,
1771 # and are intended to be withdrawn in a future Autoconf release.
1772 # They can cause serious problems if a builder's source tree is in a directory
1773 # whose full name contains unusual characters.
1774 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1775 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1776 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1779 # Make sure we can run config.sub.
1780 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1781 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1782 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1783 { (exit 1); exit 1; }; }
1785 { echo "$as_me:$LINENO: checking build system type" >&5
1786 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1787 if test "${ac_cv_build+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 ac_build_alias
=$build_alias
1791 test "x$ac_build_alias" = x
&&
1792 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1793 test "x$ac_build_alias" = x
&&
1794 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1795 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1796 { (exit 1); exit 1; }; }
1797 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1799 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1800 { (exit 1); exit 1; }; }
1803 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1804 echo "${ECHO_T}$ac_cv_build" >&6; }
1805 case $ac_cv_build in
1807 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1808 echo "$as_me: error: invalid value of canonical build" >&2;}
1809 { (exit 1); exit 1; }; };;
1812 ac_save_IFS
=$IFS; IFS
='-'
1818 # Remember, the first character of IFS is used to create $*,
1819 # except with old shells:
1822 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1825 { echo "$as_me:$LINENO: checking host system type" >&5
1826 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1827 if test "${ac_cv_host+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test "x$host_alias" = x
; then
1831 ac_cv_host
=$ac_cv_build
1833 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1834 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1835 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1840 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1841 echo "${ECHO_T}$ac_cv_host" >&6; }
1844 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1845 echo "$as_me: error: invalid value of canonical host" >&2;}
1846 { (exit 1); exit 1; }; };;
1849 ac_save_IFS
=$IFS; IFS
='-'
1855 # Remember, the first character of IFS is used to create $*,
1856 # except with old shells:
1859 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1862 { echo "$as_me:$LINENO: checking target system type" >&5
1863 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1864 if test "${ac_cv_target+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 if test "x$target_alias" = x
; then
1868 ac_cv_target
=$ac_cv_host
1870 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1873 { (exit 1); exit 1; }; }
1877 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6; }
1879 case $ac_cv_target in
1881 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1882 echo "$as_me: error: invalid value of canonical target" >&2;}
1883 { (exit 1); exit 1; }; };;
1885 target
=$ac_cv_target
1886 ac_save_IFS
=$IFS; IFS
='-'
1892 # Remember, the first character of IFS is used to create $*,
1893 # except with old shells:
1896 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1899 # The aliases save the names the user supplied, while $host etc.
1900 # will get canonicalized.
1901 test -n "$target_alias" &&
1902 test "$program_prefix$program_suffix$program_transform_name" = \
1904 program_prefix
=${target_alias}-
1911 # Check whether --with-gcc was given.
1912 if test "${with_gcc+set}" = set; then
1918 if test "${srcdir}" != "." ; then
1919 V_INCLS
="-I\$(srcdir)"
1921 if test "${CFLAGS+set}" = set; then
1922 LBL_CFLAGS
="$CFLAGS"
1924 if test -z "$CC" ; then
1928 # Extract the first word of "shlicc2", so it can be a program name with args.
1929 set dummy shlicc2
; ac_word
=$2
1930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$SHLICC2"; then
1936 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir
=.
1943 for ac_exec_ext
in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 ac_cv_prog_SHLICC2
="yes"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1956 SHLICC2
=$ac_cv_prog_SHLICC2
1957 if test -n "$SHLICC2"; then
1958 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1959 echo "${ECHO_T}$SHLICC2" >&6; }
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1966 if test $SHLICC2 = yes ; then
1973 if test -z "$CC" -a "$with_gcc" = no
; then
1978 ac_cpp
='$CPP $CPPFLAGS'
1979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1982 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1984 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC
="$CC" # Let the user override the test.
1993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir
=.
1998 for ac_exec_ext
in '' $ac_executable_extensions; do
1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 { echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6; }
2015 { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2021 if test -z "$ac_cv_prog_CC"; then
2023 # Extract the first word of "gcc", so it can be a program name with args.
2024 set dummy gcc
; ac_word
=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir
=.
2038 for ac_exec_ext
in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_ac_ct_CC
="gcc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2059 if test "x$ac_ct_CC" = x
; then
2062 case $cross_compiling:$ac_tool_warned in
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2070 ac_tool_warned
=yes ;;
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC
="$CC" # Let the user override the test.
2090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir
=.
2095 for ac_exec_ext
in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 if test -n "$CC"; then
2109 { echo "$as_me:$LINENO: result: $CC" >&5
2110 echo "${ECHO_T}$CC" >&6; }
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2119 if test -z "$CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc
; ac_word
=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC
="$CC" # Let the user override the test.
2131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir
=.
2136 for ac_exec_ext
in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139 ac_prog_rejected
=yes
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test $ac_prog_rejected = yes; then
2151 # We found a bogon in the path, so make sure we never use it.
2152 set dummy
$ac_cv_prog_CC
2154 if test $# != 0; then
2155 # We chose a different compiler from the bogus one.
2156 # However, it has the same basename, so the bogon will be chosen
2157 # first if we set CC to just the basename; use the full file name.
2159 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2165 if test -n "$CC"; then
2166 { echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2175 if test -z "$CC"; then
2176 if test -n "$ac_tool_prefix"; then
2177 for ac_prog
in cl.exe
2179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2180 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC
="$CC" # Let the user override the test.
2189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir
=.
2194 for ac_exec_ext
in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CC"; then
2208 { echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6; }
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2216 test -n "$CC" && break
2219 if test -z "$CC"; then
2221 for ac_prog
in cl.exe
2223 # Extract the first word of "$ac_prog", so it can be a program name with args.
2224 set dummy
$ac_prog; ac_word
=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test -n "$ac_ct_CC"; then
2231 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir
=.
2238 for ac_exec_ext
in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_ac_ct_CC
="$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6; }
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2260 test -n "$ac_ct_CC" && break
2263 if test "x$ac_ct_CC" = x
; then
2266 case $cross_compiling:$ac_tool_warned in
2268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2269 whose name does not start with the host triplet. If you think this
2270 configuration is useful to you, please write to autoconf@gnu.org." >&5
2271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2272 whose name does not start with the host triplet. If you think this
2273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2274 ac_tool_warned
=yes ;;
2283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2289 # Provide some information about the compiler.
2290 echo "$as_me:$LINENO: checking for C compiler version" >&5
2291 ac_compiler
=`set X $ac_compile; echo $2`
2292 { (ac_try
="$ac_compiler --version >&5"
2294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_compiler --version >&5") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (ac_try="$ac_compiler -v >&5"
2304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2305 *) ac_try_echo
=$ac_try;;
2307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compiler -v >&5") 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312 { (ac_try
="$ac_compiler -V >&5"
2314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318 (eval "$ac_compiler -V >&5") 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2338 ac_clean_files_save=$ac_clean_files
2339 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2340 # Try to create an executable without -o first, disregard a.out.
2341 # It will help us diagnose broken compilers, and finding out an intuition
2343 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2344 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2345 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2347 # List of possible output files, starting from the most likely.
2348 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2349 # only as a last resort. b.out is created by i960 compilers.
2350 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2352 # The IRIX 6 linker writes into existing files which may not be
2353 # executable, retaining their permissions. Remove them first so a
2354 # subsequent execution test works.
2356 for ac_file in $ac_files
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2360 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2365 if { (ac_try="$ac_link_default"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_link_default") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2378 # so that the user can short-circuit this test for compilers unknown to
2380 for ac_file
in $ac_files ''
2382 test -f "$ac_file" ||
continue
2384 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2387 # We found the default executable, but exeext='' is most
2391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2393 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395 # We set ac_cv_exeext here because the later test for it is not
2396 # safe: cross compilers may not add the suffix if given an `-o'
2397 # argument, so we may need to know it at that point already.
2398 # Even if this section looks crufty: it has the advantage of
2405 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2411 { echo "$as_me:$LINENO: result: $ac_file" >&5
2412 echo "${ECHO_T}$ac_file" >&6; }
2413 if test -z "$ac_file"; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.
$ac_ext >&5
2417 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C compiler cannot create executables
2420 See \`config.log' for more details." >&2;}
2421 { (exit 77); exit 77; }; }
2424 ac_exeext
=$ac_cv_exeext
2426 # Check that the compiler produces executables we can run. If not, either
2427 # the compiler is broken, or we cross compile.
2428 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2429 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2430 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2431 # If not cross compiling, check that we can run a simple program.
2432 if test "$cross_compiling" != yes; then
2433 if { ac_try
='./$ac_file'
2434 { (case "(($ac_try" in
2435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_try") 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 if test "$cross_compiling" = maybe; then
2448 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2449 If you meant to cross compile, use \`--host'.
2450 See \`config.log' for more details.
" >&5
2451 echo "$as_me: error
: cannot run C compiled programs.
2452 If you meant to cross compile
, use \
`--host'.
2453 See \`config.log
' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2458 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2461 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2462 ac_clean_files=$ac_clean_files_save
2463 # Check that the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2466 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2467 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2468 echo "${ECHO_T}$cross_compiling" >&6; }
2470 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2471 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2472 if { (ac_try="$ac_link"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_link") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2483 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2484 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2486 for ac_file
in conftest.exe conftest conftest.
*; do
2487 test -f "$ac_file" ||
continue
2489 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2490 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2503 rm -f conftest
$ac_cv_exeext
2504 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2507 rm -f conftest.
$ac_ext
2508 EXEEXT
=$ac_cv_exeext
2510 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2512 if test "${ac_cv_objext+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 cat >conftest.
$ac_ext <<_ACEOF
2518 cat confdefs.h
>>conftest.
$ac_ext
2519 cat >>conftest.
$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.o conftest.obj
2531 if { (ac_try
="$ac_compile"
2533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 for ac_file in conftest.o conftest.obj conftest.*; do
2542 test -f "$ac_file" || continue;
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2554 See \`config.log
' for more details." >&5
2555 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2556 See \`config.log' for more details.
" >&2;}
2557 { (exit 1); exit 1; }; }
2560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2562 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2563 echo "${ECHO_T}$ac_cv_objext" >&6; }
2564 OBJEXT=$ac_cv_objext
2566 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached
) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2602 (exit $ac_status); } && {
2603 test -z "$ac_c_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest.$ac_objext; then
2608 echo "$as_me: failed program was
:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2620 GCC=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CFLAGS=${CFLAGS+set}
2622 ac_save_CFLAGS=$CFLAGS
2623 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2624 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626 echo $ECHO_N "(cached
) $ECHO_C" >&6
2628 ac_save_c_werror_flag=$ac_c_werror_flag
2629 ac_c_werror_flag=yes
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2666 echo "$as_me: failed program was
:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.$ac_objext; then
2704 echo "$as_me: failed program was
:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 ac_c_werror_flag=$ac_save_c_werror_flag
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2737 (exit $ac_status); } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest.$ac_objext; then
2743 echo "$as_me: failed program was
:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2758 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2760 if test "$ac_test_CFLAGS" = set; then
2761 CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
2769 if test "$GCC" = yes; then
2775 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2776 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_c89+set}" = set; then
2778 echo $ECHO_N "(cached
) $ECHO_C" >&6
2780 ac_cv_prog_cc_c89=no
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2806 s = g (p, va_arg (v,int));
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
2814 as 'x'. The following induces an error, until -std is added to get
2815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
2817 that's true only with -std. */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2821 inside strings and character constants. */
2823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2825 int test (int i, double x);
2826 struct s1 {int (*f) (int a);};
2827 struct s2 {int (*f) (double a);};
2828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2842 CC="$ac_save_CC $ac_arg"
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2860 ac_cv_prog_cc_c89=$ac_arg
2862 echo "$as_me: failed program was
:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2868 rm -f core conftest.err conftest.$ac_objext
2869 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2871 rm -f conftest.$ac_ext
2876 case "x
$ac_cv_prog_cc_c89" in
2878 { echo "$as_me:$LINENO: result
: none needed
" >&5
2879 echo "${ECHO_T}none needed
" >&6; } ;;
2881 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2882 echo "${ECHO_T}unsupported
" >&6; } ;;
2884 CC="$CC $ac_cv_prog_cc_c89"
2885 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2886 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test "$GCC" = yes ; then
2897 if test "$SHLICC2" = yes ; then
2898 ac_cv_lbl_gcc_vers=2
2901 { echo "$as_me:$LINENO: checking gcc version
" >&5
2902 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2903 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2904 echo $ECHO_N "(cached
) $ECHO_C" >&6
2906 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2907 sed -e '/^gcc version /!d' \
2908 -e 's/^gcc version //' \
2909 -e 's/ .*//' -e 's/^[^0-9]*//' \
2913 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2914 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2915 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2921 # On platforms where we build a shared library:
2923 # add options to generate position-independent code,
2924 # if necessary (it's the default in AIX and Darwin/OS X);
2926 # define option to set the soname of the shared library,
2927 # if the OS supports that;
2929 # add options to specify, at link time, a directory to
2930 # add to the run-time search path, if that's necessary.
2932 V_SHLIB_CMD="\$
(CC
)"
2933 V_SHLIB_OPT="-shared"
2939 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
2941 # Platforms where the linker is the GNU linker
2942 # or accepts command-line arguments like
2943 # those the GNU linker accepts.
2945 V_CCOPT="$V_CCOPT -fpic"
2946 V_SONAME_OPT="-Wl,-soname,"
2947 V_RPATH_OPT="-Wl,-rpath,"
2951 V_CCOPT="$V_CCOPT -fpic"
2953 # XXX - this assumes GCC is using the HP linker,
2954 # rather than the GNU linker, and that the "+h
"
2955 # option is used on all HP-UX platforms, both .sl
2958 V_SONAME_OPT="-Wl,+h
,"
2960 # By default, directories specifed with -L
2961 # are added to the run-time search path, so
2962 # we don't add them in pcap-config.
2967 V_CCOPT="$V_CCOPT -fpic"
2969 # XXX - this assumes GCC is using the Sun linker,
2970 # rather than the GNU linker.
2972 V_SONAME_OPT="-Wl,-h,"
2973 V_RPATH_OPT="-Wl,-R,"
2977 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2978 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2979 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2980 echo $ECHO_N "(cached
) $ECHO_C" >&6
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2993 int frob(int, char *)
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_ansi_prototypes=yes
3017 echo "$as_me: failed program was
:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_cv_lbl_cc_ansi_prototypes=no
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3028 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3032 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
3033 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
3034 savedcflags="$CFLAGS"
3035 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3036 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3037 echo $ECHO_N "(cached
) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <sys/types.h>
3049 int frob(int, char *)
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3071 ac_cv_lbl_cc_hpux_cc_aa=yes
3073 echo "$as_me: failed program was
:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 ac_cv_lbl_cc_hpux_cc_aa=no
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3083 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3084 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3085 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3086 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3087 { (exit 1); exit 1; }; }
3089 CFLAGS="$savedcflags"
3090 V_CCOPT="-Aa $V_CCOPT"
3092 cat >>confdefs.h <<\_ACEOF
3093 #define _HPUX_SOURCE 1
3099 { echo "$as_me:$LINENO: checking
for ansi mode
in DEC compiler
($CC -std1)" >&5
3100 echo $ECHO_N "checking
for ansi mode
in DEC compiler
($CC -std1)...
$ECHO_C" >&6; }
3101 savedcflags="$CFLAGS"
3103 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3104 echo $ECHO_N "(cached
) $ECHO_C" >&6
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <sys/types.h>
3116 int frob(int, char *)
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3138 ac_cv_lbl_cc_osf1_cc_std1=yes
3140 echo "$as_me: failed program was
:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 ac_cv_lbl_cc_osf1_cc_std1=no
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3150 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3151 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3152 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3153 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3154 { (exit 1); exit 1; }; }
3156 CFLAGS="$savedcflags"
3157 V_CCOPT="-std1 $V_CCOPT"
3161 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3162 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3163 { (exit 1); exit 1; }; }
3167 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3168 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3171 # Set the appropriate compiler flags and, on platforms
3172 # where we build a shared library:
3174 # add options to generate position-independent code,
3175 # if necessary (it's the default in Darwin/OS X);
3177 # if we generate ".so
" shared libraries, define the
3178 # appropriate options for building the shared library;
3180 # add options to specify, at link time, a directory to
3181 # add to the run-time search path, if that's necessary.
3183 # Note: spaces after V_SONAME_OPT are significant; on
3184 # some platforms the soname is passed with a GCC-like
3185 # "-Wl,-soname,{soname
}" option, with the soname part
3186 # of the option, while on other platforms the C compiler
3187 # driver takes it as a regular option with the soname
3188 # following the option. The same applies to V_RPATH_OPT.
3193 V_SHLIB_CMD="\$
(CC
)"
3194 V_SHLIB_OPT="-G -bnoentry -bexpall"
3197 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3201 V_CCOPT="$V_CCOPT -fpic"
3202 V_SHLIB_CMD="\$
(CC
)"
3203 V_SHLIB_OPT="-shared"
3204 V_SONAME_OPT="-Wl,-soname,"
3205 V_RPATH_OPT="-Wl,-rpath,"
3209 V_CCOPT="$V_CCOPT +z
"
3210 V_SHLIB_CMD="\$
(LD
)"
3214 # By default, directories specifed with -L
3215 # are added to the run-time search path, so
3216 # we don't add them in pcap-config.
3221 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3226 # Presumed to be DEC OSF/1, Digital UNIX, or
3229 V_CCOPT="$V_CCOPT -g3"
3230 V_SHLIB_CMD="\$
(CC
)"
3231 V_SHLIB_OPT="-shared"
3232 V_SONAME_OPT="-soname "
3233 V_RPATH_OPT="-rpath "
3237 V_CCOPT="$V_CCOPT -Kpic"
3238 V_SHLIB_CMD="\$
(CC
)"
3245 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3246 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3247 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3248 echo $ECHO_N "(cached
) $ECHO_C" >&6
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <sys/types.h>
3260 struct a { int b; };
3261 void c(const struct a *)
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_lbl_cc_const_proto=yes
3285 echo "$as_me: failed program was
:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_cv_lbl_cc_const_proto=no
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3295 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3296 if test $ac_cv_lbl_cc_const_proto = no ; then
3298 cat >>confdefs.h <<\_ACEOF
3307 { echo "$as_me:$LINENO: checking
for inline
" >&5
3308 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3309 save_CFLAGS="$CFLAGS"
3311 if test "${ac_cv_lbl_inline+set}" = set; then
3312 echo $ECHO_N "(cached
) $ECHO_C" >&6
3317 for ac_lbl_inline in inline __inline__ __inline
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #define inline $ac_lbl_inline
3326 static inline struct iltest *foo(void);
3332 static inline struct iltest *
3335 static struct iltest xxx;
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3364 ac_lbl_cc_inline=yes
3366 echo "$as_me: failed program was
:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 if test "$ac_lbl_cc_inline" = yes ; then
3377 if test "$ac_lbl_cc_inline" = yes ; then
3378 ac_cv_lbl_inline=$ac_lbl_inline
3382 CFLAGS="$save_CFLAGS"
3383 if test ! -z "$ac_cv_lbl_inline" ; then
3384 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3385 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3387 { echo "$as_me:$LINENO: result
: no
" >&5
3388 echo "${ECHO_T}no
" >&6; }
3391 cat >>confdefs.h <<_ACEOF
3392 #define inline $ac_cv_lbl_inline
3396 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3397 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3398 if test "${ac_cv___attribute__+set}" = set; then
3399 echo $ECHO_N "(cached
) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3411 static void foo(void) __attribute__ ((noreturn));
3420 main(int argc, char **argv)
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv___attribute__=yes
3445 echo "$as_me: failed program was
:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_cv___attribute__=no
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 if test "$ac_cv___attribute__" = "yes"; then
3456 cat >>confdefs.h <<\_ACEOF
3457 #define HAVE___ATTRIBUTE__ 1
3460 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3462 V_DEFS="$V_DEFS -D_U_=\"\""
3464 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3465 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3474 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3475 # On Suns, sometimes $CPP names a directory.
3476 if test -n "$CPP" && test -d "$CPP"; then
3479 if test -z "$CPP"; then
3480 if test "${ac_cv_prog_CPP+set}" = set; then
3481 echo $ECHO_N "(cached
) $ECHO_C" >&6
3483 # Double quotes because CPP needs to be expanded
3484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3487 for ac_c_preproc_warn_flag in '' yes
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error
" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3502 # include <limits.h>
3504 # include <assert.h>
3508 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3526 echo "$as_me: failed program was
:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3545 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3557 (exit $ac_status); } >/dev/null && {
3558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3561 # Broken: success on invalid input.
3564 echo "$as_me: failed program was
:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 # Passes both tests.
3572 rm -f conftest.err conftest.$ac_ext
3575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3576 rm -f conftest.err conftest.$ac_ext
3577 if $ac_preproc_ok; then
3589 { echo "$as_me:$LINENO: result
: $CPP" >&5
3590 echo "${ECHO_T}$CPP" >&6; }
3592 for ac_c_preproc_warn_flag in '' yes
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error
" is here to catch this case.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3607 # include <limits.h>
3609 # include <assert.h>
3613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3631 echo "$as_me: failed program was
:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 # Broken: fails on valid input.
3638 rm -f conftest.err conftest.$ac_ext
3640 # OK, works on sane cases. Now check whether nonexistent headers
3641 # can be detected and how.
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <ac_nonexistent.h>
3650 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3662 (exit $ac_status); } >/dev/null && {
3663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3666 # Broken: success on invalid input.
3669 echo "$as_me: failed program was
:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 # Passes both tests.
3677 rm -f conftest.err conftest.$ac_ext
3680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681 rm -f conftest.err conftest.$ac_ext
3682 if $ac_preproc_ok; then
3685 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3686 See \
`config.log' for more details." >&5
3687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3688 See \`config.log
' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3695 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 # Extract the first word of "grep ggrep" to use in msg output
3705 if test -z "$GREP"; then
3706 set dummy grep ggrep; ac_prog_name=$2
3707 if test "${ac_cv_path_GREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 ac_path_GREP_found=false
3711 # Loop through the user's path and
test for each of PROGNAME-LIST
3712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3713 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3716 test -z "$as_dir" && as_dir
=.
3717 for ac_prog
in grep ggrep
; do
3718 for ac_exec_ext
in '' $ac_executable_extensions; do
3719 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3721 # Check for GNU ac_path_GREP and select it if it is found.
3722 # Check for GNU $ac_path_GREP
3723 case `"$ac_path_GREP" --version 2>&1` in
3725 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'GREP' >> "conftest.nl"
3735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3736 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3737 ac_count
=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_GREP
="$ac_path_GREP"
3741 ac_path_GREP_max
=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3746 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3750 $ac_path_GREP_found && break 3
3760 GREP
="$ac_cv_path_GREP"
3761 if test -z "$GREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3768 ac_cv_path_GREP
=$GREP
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3775 GREP
="$ac_cv_path_GREP"
3778 { echo "$as_me:$LINENO: checking for egrep" >&5
3779 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3784 then ac_cv_path_EGREP
="$GREP -E"
3786 # Extract the first word of "egrep" to use in msg output
3787 if test -z "$EGREP"; then
3788 set dummy
egrep; ac_prog_name
=$2
3789 if test "${ac_cv_path_EGREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_path_EGREP_found
=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3795 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_prog
in egrep; do
3800 for ac_exec_ext
in '' $ac_executable_extensions; do
3801 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3803 # Check for GNU ac_path_EGREP and select it if it is found.
3804 # Check for GNU $ac_path_EGREP
3805 case `"$ac_path_EGREP" --version 2>&1` in
3807 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 echo 'EGREP' >> "conftest.nl"
3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3818 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3819 ac_count
=`expr $ac_count + 1`
3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_EGREP
="$ac_path_EGREP"
3823 ac_path_EGREP_max
=$ac_count
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3828 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3832 $ac_path_EGREP_found && break 3
3842 EGREP
="$ac_cv_path_EGREP"
3843 if test -z "$EGREP"; then
3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846 { (exit 1); exit 1; }; }
3850 ac_cv_path_EGREP
=$EGREP
3856 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3857 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3858 EGREP
="$ac_cv_path_EGREP"
3861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3863 if test "${ac_cv_header_stdc+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 cat >conftest.
$ac_ext <<_ACEOF
3869 cat confdefs.h
>>conftest.
$ac_ext
3870 cat >>conftest.
$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3885 rm -f conftest.
$ac_objext
3886 if { (ac_try
="$ac_compile"
3888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } && {
3899 test -z "$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 } && test -s conftest.$ac_objext; then
3902 ac_cv_header_stdc=yes
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 ac_cv_header_stdc=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 # define ISLOWER(c) \
3972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
3985 || toupper (i) != TOUPPER (i))
3990 rm -f conftest$ac_exeext
3991 if { (ac_try="$ac_link"
3993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3994 *) ac_try_echo
=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_link") 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4001 { (case "(($ac_try" in
4002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_cv_header_stdc=no
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4029 cat >>confdefs.h <<\_ACEOF
4030 #define STDC_HEADERS 1
4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046 inttypes.h stdint.h unistd.h
4048 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4062 #include <$ac_header>
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4068 *) ac_try_echo
=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.
$ac_objext; then
4081 eval "$as_ac_Header=yes"
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4086 eval "$as_ac_Header=no"
4089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4091 ac_res
=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h
<<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105 for ac_header
in sys
/bitypes.h
4107 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4108 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4111 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 ac_res
=`eval echo '${'$as_ac_Header'}'`
4115 { echo "$as_me:$LINENO: result: $ac_res" >&5
4116 echo "${ECHO_T}$ac_res" >&6; }
4118 # Is the header compilable?
4119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4128 #include <$ac_header>
4130 rm -f conftest.
$ac_objext
4131 if { (ac_try
="$ac_compile"
4133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_header_compiler=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_header_compiler=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157 echo "${ECHO_T}$ac_header_compiler" >&6; }
4159 # Is the header present?
4160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #include <$ac_header>
4170 if { (ac_try="$ac_cpp conftest.$ac_ext"
4172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4173 *) ac_try_echo
=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1
>conftest.err
4180 cat conftest.err
>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev
/null
&& {
4183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4184 test ! -s conftest.err
4186 ac_header_preproc
=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.
$ac_ext >&5
4191 ac_header_preproc
=no
4194 rm -f conftest.err conftest.
$ac_ext
4195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4196 echo "${ECHO_T}$ac_header_preproc" >&6; }
4198 # So? What about this header?
4199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4205 ac_header_preproc
=yes
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 eval "$as_ac_Header=\$ac_header_preproc"
4230 ac_res
=`eval echo '${'$as_ac_Header'}'`
4231 { echo "$as_me:$LINENO: result: $ac_res" >&5
4232 echo "${ECHO_T}$ac_res" >&6; }
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h
<<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 { echo "$as_me:$LINENO: checking for int8_t" >&5
4246 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4247 if test "${ac_cv_type_int8_t+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.
$ac_ext <<_ACEOF
4253 cat confdefs.h
>>conftest.
$ac_ext
4254 cat >>conftest.
$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4257 #ifdef HAVE_SYS_BITYPES_H
4258 #include <sys/bitypes.h>
4261 typedef int8_t ac__type_new_;
4265 if ((ac__type_new_ *) 0)
4267 if (sizeof (ac__type_new_))
4273 rm -f conftest.
$ac_objext
4274 if { (ac_try
="$ac_compile"
4276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_type_int8_t=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_type_int8_t=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4301 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4302 if test $ac_cv_type_int8_t = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define int8_t signed char
4312 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4313 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4314 if test "${ac_cv_type_u_int8_t+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 $ac_includes_default
4324 #ifdef HAVE_SYS_BITYPES_H
4325 #include <sys/bitypes.h>
4328 typedef u_int8_t ac__type_new_;
4332 if ((ac__type_new_ *) 0)
4334 if (sizeof (ac__type_new_))
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4344 *) ac_try_echo
=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1
>conftest.err
4351 cat conftest.err
>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.
$ac_objext; then
4357 ac_cv_type_u_int8_t
=yes
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.
$ac_ext >&5
4362 ac_cv_type_u_int8_t
=no
4365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4367 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4368 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4369 if test $ac_cv_type_u_int8_t = yes; then
4373 cat >>confdefs.h
<<\_ACEOF
4374 #define u_int8_t unsigned char
4379 { echo "$as_me:$LINENO: checking for int16_t" >&5
4380 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4381 if test "${ac_cv_type_int16_t+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat >conftest.
$ac_ext <<_ACEOF
4387 cat confdefs.h
>>conftest.
$ac_ext
4388 cat >>conftest.
$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4391 typedef int16_t ac__type_new_;
4395 if ((ac__type_new_ *) 0)
4397 if (sizeof (ac__type_new_))
4403 rm -f conftest.
$ac_objext
4404 if { (ac_try
="$ac_compile"
4406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_compile") 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } && {
4417 test -z "$ac_c_werror_flag" ||
4418 test ! -s conftest.err
4419 } && test -s conftest.$ac_objext; then
4420 ac_cv_type_int16_t=yes
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 ac_cv_type_int16_t=no
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4431 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4432 if test $ac_cv_type_int16_t = yes; then
4436 cat >>confdefs.h <<\_ACEOF
4437 #define int16_t short
4440 $ac_includes_default
4441 #ifdef HAVE_SYS_BITYPES_H
4442 #include <sys/bitypes.h>
4446 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4447 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4448 if test "${ac_cv_type_u_int16_t+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4458 #ifdef HAVE_SYS_BITYPES_H
4459 #include <sys/bitypes.h>
4462 typedef u_int16_t ac__type_new_;
4466 if ((ac__type_new_ *) 0)
4468 if (sizeof (ac__type_new_))
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4478 *) ac_try_echo
=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1
>conftest.err
4485 cat conftest.err
>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.
$ac_objext; then
4491 ac_cv_type_u_int16_t
=yes
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.
$ac_ext >&5
4496 ac_cv_type_u_int16_t
=no
4499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4501 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4502 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4503 if test $ac_cv_type_u_int16_t = yes; then
4507 cat >>confdefs.h
<<\_ACEOF
4508 #define u_int16_t unsigned short
4513 { echo "$as_me:$LINENO: checking for int32_t" >&5
4514 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4515 if test "${ac_cv_type_int32_t+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 cat >conftest.
$ac_ext <<_ACEOF
4521 cat confdefs.h
>>conftest.
$ac_ext
4522 cat >>conftest.
$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4525 #ifdef HAVE_SYS_BITYPES_H
4526 #include <sys/bitypes.h>
4529 typedef int32_t ac__type_new_;
4533 if ((ac__type_new_ *) 0)
4535 if (sizeof (ac__type_new_))
4541 rm -f conftest.
$ac_objext
4542 if { (ac_try
="$ac_compile"
4544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 ac_cv_type_int32_t=yes
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_type_int32_t=no
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4569 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4570 if test $ac_cv_type_int32_t = yes; then
4574 cat >>confdefs.h <<\_ACEOF
4580 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4581 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4582 if test "${ac_cv_type_u_int32_t+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4592 #ifdef HAVE_SYS_BITYPES_H
4593 #include <sys/bitypes.h>
4596 typedef u_int32_t ac__type_new_;
4600 if ((ac__type_new_ *) 0)
4602 if (sizeof (ac__type_new_))
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4612 *) ac_try_echo
=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.
$ac_objext; then
4625 ac_cv_type_u_int32_t
=yes
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_cv_type_u_int32_t
=no
4633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4636 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4637 if test $ac_cv_type_u_int32_t = yes; then
4641 cat >>confdefs.h
<<\_ACEOF
4642 #define u_int32_t unsigned int
4647 { echo "$as_me:$LINENO: checking for int64_t" >&5
4648 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4649 if test "${ac_cv_type_int64_t+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 #ifdef HAVE_SYS_BITYPES_H
4660 #include <sys/bitypes.h>
4663 typedef int64_t ac__type_new_;
4667 if ((ac__type_new_ *) 0)
4669 if (sizeof (ac__type_new_))
4675 rm -f conftest.
$ac_objext
4676 if { (ac_try
="$ac_compile"
4678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_cv_type_int64_t=yes
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_cv_type_int64_t=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4703 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4704 if test $ac_cv_type_int64_t = yes; then
4708 cat >>confdefs.h <<\_ACEOF
4709 #define int64_t long long
4714 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4715 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4716 if test "${ac_cv_type_u_int64_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 #ifdef HAVE_SYS_BITYPES_H
4727 #include <sys/bitypes.h>
4730 typedef u_int64_t ac__type_new_;
4734 if ((ac__type_new_ *) 0)
4736 if (sizeof (ac__type_new_))
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4746 *) ac_try_echo
=$ac_try;;
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4751 grep -v '^ *+' conftest.er1
>conftest.err
4753 cat conftest.err
>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_c_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest.
$ac_objext; then
4759 ac_cv_type_u_int64_t
=yes
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.
$ac_ext >&5
4764 ac_cv_type_u_int64_t
=no
4767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4769 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4770 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4771 if test $ac_cv_type_u_int64_t = yes; then
4775 cat >>confdefs.h
<<\_ACEOF
4776 #define u_int64_t unsigned long long
4783 # Try to arrange for large file support.
4785 # Check whether --enable-largefile was given.
4786 if test "${enable_largefile+set}" = set; then
4787 enableval
=$enable_largefile;
4790 if test "$enable_largefile" != no
; then
4792 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4793 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4794 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 ac_cv_sys_largefile_CC
=no
4798 if test "$GCC" != yes; then
4801 # IRIX 6.2 and later do not support large files by default,
4802 # so use the C compiler's -n32 option if that helps.
4803 cat >conftest.
$ac_ext <<_ACEOF
4806 cat confdefs.h
>>conftest.
$ac_ext
4807 cat >>conftest.
$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 #include <sys/types.h>
4810 /* Check that off_t can represent 2**63 - 1 correctly.
4811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4812 since some C++ compilers masquerading as C compilers
4813 incorrectly reject 9223372036854775807. */
4814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4816 && LARGE_OFF_T % 2147483647 == 1)
4826 rm -f conftest.
$ac_objext
4827 if { (ac_try
="$ac_compile"
4829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_compile") 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_c_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest.$ac_objext; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4851 rm -f core conftest.err conftest.$ac_objext
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4857 *) ac_try_echo
=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1
>conftest.err
4864 cat conftest.err
>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.
$ac_objext; then
4870 ac_cv_sys_largefile_CC
=' -n32'; break
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4878 rm -f core conftest.err conftest.
$ac_objext
4882 rm -f conftest.
$ac_ext
4885 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4886 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4887 if test "$ac_cv_sys_largefile_CC" != no
; then
4888 CC
=$CC$ac_cv_sys_largefile_CC
4891 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4892 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4893 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.
$ac_ext <<_ACEOF
4900 cat confdefs.h
>>conftest.
$ac_ext
4901 cat >>conftest.
$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4920 rm -f conftest.
$ac_objext
4921 if { (ac_try
="$ac_compile"
4923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 ac_cv_sys_file_offset_bits=no; break
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #define _FILE_OFFSET_BITS 64
4953 #include <sys/types.h>
4954 /* Check that off_t can represent 2**63 - 1 correctly.
4955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4956 since some C++ compilers masquerading as C compilers
4957 incorrectly reject 9223372036854775807. */
4958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4960 && LARGE_OFF_T % 2147483647 == 1)
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4974 *) ac_try_echo
=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4979 grep -v '^ *+' conftest.er1
>conftest.err
4981 cat conftest.err
>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.
$ac_objext; then
4987 ac_cv_sys_file_offset_bits
=64; break
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4996 ac_cv_sys_file_offset_bits
=unknown
5000 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5001 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5002 case $ac_cv_sys_file_offset_bits in #(
5005 cat >>confdefs.h
<<_ACEOF
5006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5011 if test $ac_cv_sys_file_offset_bits = unknown
; then
5012 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5013 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5014 if test "${ac_cv_sys_large_files+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.
$ac_ext <<_ACEOF
5021 cat confdefs.h
>>conftest.
$ac_ext
5022 cat >>conftest.
$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <sys/types.h>
5025 /* Check that off_t can represent 2**63 - 1 correctly.
5026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5027 since some C++ compilers masquerading as C compilers
5028 incorrectly reject 9223372036854775807. */
5029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5031 && LARGE_OFF_T % 2147483647 == 1)
5041 rm -f conftest.
$ac_objext
5042 if { (ac_try
="$ac_compile"
5044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_cv_sys_large_files=no; break
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #define _LARGE_FILES 1
5074 #include <sys/types.h>
5075 /* Check that off_t can represent 2**63 - 1 correctly.
5076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5077 since some C++ compilers masquerading as C compilers
5078 incorrectly reject 9223372036854775807. */
5079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5081 && LARGE_OFF_T % 2147483647 == 1)
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5095 *) ac_try_echo
=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1
>conftest.err
5102 cat conftest.err
>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.
$ac_objext; then
5108 ac_cv_sys_large_files
=1; break
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.
$ac_ext >&5
5116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5117 ac_cv_sys_large_files
=unknown
5121 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5122 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5123 case $ac_cv_sys_large_files in #(
5126 cat >>confdefs.h
<<_ACEOF
5127 #define _LARGE_FILES $ac_cv_sys_large_files
5135 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5136 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5137 if test "${ac_cv_sys_largefile_source+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 cat >conftest.
$ac_ext <<_ACEOF
5144 cat confdefs.h
>>conftest.
$ac_ext
5145 cat >>conftest.
$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5151 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5156 rm -f conftest.
$ac_objext conftest
$ac_exeext
5157 if { (ac_try
="$ac_link"
5159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_link") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && {
5170 test -z "$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 } && test -s conftest$ac_exeext &&
5173 $as_test_x conftest$ac_exeext; then
5174 ac_cv_sys_largefile_source=no; break
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5183 conftest$ac_exeext conftest.$ac_ext
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #define _LARGEFILE_SOURCE 1
5195 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5200 rm -f conftest.$ac_objext conftest$ac_exeext
5201 if { (ac_try="$ac_link"
5203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5204 *) ac_try_echo
=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_link") 2>conftest.er1
5209 grep -v '^ *+' conftest.er1
>conftest.err
5211 cat conftest.err
>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest
$ac_exeext &&
5217 $as_test_x conftest
$ac_exeext; then
5218 ac_cv_sys_largefile_source
=1; break
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.
$ac_ext >&5
5226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5227 conftest
$ac_exeext conftest.
$ac_ext
5228 ac_cv_sys_largefile_source
=unknown
5232 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5233 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5234 case $ac_cv_sys_largefile_source in #(
5237 cat >>confdefs.h
<<_ACEOF
5238 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5244 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5245 # in glibc 2.1.3, but that breaks too many other things.
5246 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5247 if test $ac_cv_sys_largefile_source != unknown
; then
5249 cat >>confdefs.h
<<\_ACEOF
5250 #define HAVE_FSEEKO 1
5260 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
5262 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5266 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_res
=`eval echo '${'$as_ac_Header'}'`
5270 { echo "$as_me:$LINENO: result: $ac_res" >&5
5271 echo "${ECHO_T}$ac_res" >&6; }
5273 # Is the header compilable?
5274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5283 #include <$ac_header>
5285 rm -f conftest.
$ac_objext
5286 if { (ac_try
="$ac_compile"
5288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compile") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && {
5299 test -z "$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5301 } && test -s conftest.$ac_objext; then
5302 ac_header_compiler=yes
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 ac_header_compiler=no
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312 echo "${ECHO_T}$ac_header_compiler" >&6; }
5314 # Is the header present?
5315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <$ac_header>
5325 if { (ac_try="$ac_cpp conftest.$ac_ext"
5327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5328 *) ac_try_echo
=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1
>conftest.err
5335 cat conftest.err
>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev
/null
&& {
5338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5341 ac_header_preproc
=yes
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.
$ac_ext >&5
5346 ac_header_preproc
=no
5349 rm -f conftest.err conftest.
$ac_ext
5350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351 echo "${ECHO_T}$ac_header_preproc" >&6; }
5353 # So? What about this header?
5354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360 ac_header_preproc
=yes
5363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5380 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 eval "$as_ac_Header=\$ac_header_preproc"
5385 ac_res
=`eval echo '${'$as_ac_Header'}'`
5386 { echo "$as_me:$LINENO: result: $ac_res" >&5
5387 echo "${ECHO_T}$ac_res" >&6; }
5390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5391 cat >>confdefs.h
<<_ACEOF
5392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 for ac_header
in net
/pfvar.h
5402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5405 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat >conftest.
$ac_ext <<_ACEOF
5411 cat confdefs.h
>>conftest.
$ac_ext
5412 cat >>conftest.
$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <sys/types.h>
5415 #include <sys/socket.h>
5418 #include <$ac_header>
5420 rm -f conftest.
$ac_objext
5421 if { (ac_try
="$ac_compile"
5423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_compile") 2>conftest.er1
5429 grep -v '^ *+' conftest.er1 >conftest.err
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && {
5434 test -z "$ac_c_werror_flag" ||
5435 test ! -s conftest.err
5436 } && test -s conftest.$ac_objext; then
5437 eval "$as_ac_Header=yes"
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 eval "$as_ac_Header=no"
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5451 cat >>confdefs.h <<_ACEOF
5452 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5459 if test "$ac_cv_header_net_pfvar_h" = yes; then
5461 # Check for various PF actions.
5463 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5464 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 #include <sys/socket.h>
5474 #include <net/pfvar.h>
5478 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5487 *) ac_try_echo
=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1
>conftest.err
5494 cat conftest.err
>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.
$ac_objext; then
5501 { echo "$as_me:$LINENO: result: yes" >&5
5502 echo "${ECHO_T}yes" >&6; }
5504 cat >>confdefs.h
<<\_ACEOF
5505 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.
$ac_ext >&5
5513 { echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6; }
5517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5520 for ac_header
in netinet
/if_ether.h
5522 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5525 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.
$ac_ext <<_ACEOF
5531 cat confdefs.h
>>conftest.
$ac_ext
5532 cat >>conftest.
$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #include <sys/types.h>
5535 #include <sys/socket.h>
5537 #include <$ac_header>
5539 rm -f conftest.
$ac_objext
5540 if { (ac_try
="$ac_compile"
5542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5548 grep -v '^ *+' conftest.er1 >conftest.err
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 eval "$as_ac_Header=yes"
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 eval "$as_ac_Header=no"
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_res=`eval echo '${'$as_ac_Header'}'`
5567 { echo "$as_me:$LINENO: result: $ac_res" >&5
5568 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5578 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5580 # The simple test didn't work.
5581 # Do we need to include <net/if.h> first?
5582 # Unset ac_cv_header_netinet_if_ether_h so we don't
5583 # treat the previous failure as a cached value and
5584 # suppress the next test.
5586 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5587 echo "$as_me: Rechecking with some additional includes" >&6;}
5588 unset ac_cv_header_netinet_if_ether_h
5590 for ac_header in netinet/if_ether.h
5592 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 #include <sys/socket.h>
5606 #include <netinet/in.h>
5611 #include <$ac_header>
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5617 *) ac_try_echo
=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.
$ac_objext; then
5630 eval "$as_ac_Header=yes"
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 eval "$as_ac_Header=no"
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 ac_res
=`eval echo '${'$as_ac_Header'}'`
5641 { echo "$as_me:$LINENO: result: $ac_res" >&5
5642 echo "${ECHO_T}$ac_res" >&6; }
5643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5644 cat >>confdefs.h
<<_ACEOF
5645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5654 if test "$GCC" = yes ; then
5655 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5656 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5657 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 cat >conftest.
$ac_ext <<_ACEOF
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5667 * This generates a "duplicate case value" when fixincludes
5670 # include <sys/types.h>
5671 # include <sys/time.h>
5672 # include <sys/ioctl.h>
5673 # ifdef HAVE_SYS_IOCCOM_H
5674 # include <sys/ioccom.h>
5687 rm -f conftest.
$ac_objext
5688 if { (ac_try
="$ac_compile"
5690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 ac_cv_lbl_gcc_fixincludes=yes
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_cv_lbl_gcc_fixincludes=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5716 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5717 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5718 # Don't cache failure
5719 unset ac_cv_lbl_gcc_fixincludes
5720 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5721 echo "$as_me: error: see the INSTALL for more info" >&2;}
5722 { (exit 1); exit 1; }; }
5728 for ac_func in strerror strlcpy
5730 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5744 #define $ac_func innocuous_$ac_func
5746 /* System header to define __stub macros and hopefully few prototypes,
5747 which can conflict with char $ac_func (); below.
5748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 <limits.h> exists even on freestanding compilers. */
5752 # include <limits.h>
5754 # include <assert.h>
5759 /* Override any GCC internal prototype to avoid an error.
5760 Use char because int might match the return type of a GCC
5761 builtin and then its argument prototype would still apply. */
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined __stub_$ac_func || defined __stub___$ac_func
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5785 *) ac_try_echo
=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
5790 grep -v '^ *+' conftest.er1
>conftest.err
5792 cat conftest.err
>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_c_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest
$ac_exeext &&
5798 $as_test_x conftest
$ac_exeext; then
5799 eval "$as_ac_var=yes"
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5804 eval "$as_ac_var=no"
5807 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5808 conftest
$ac_exeext conftest.
$ac_ext
5810 ac_res
=`eval echo '${'$as_ac_var'}'`
5811 { echo "$as_me:$LINENO: result: $ac_res" >&5
5812 echo "${ECHO_T}$ac_res" >&6; }
5813 if test `eval echo '${'$as_ac_var'}'` = yes; then
5814 cat >>confdefs.h
<<_ACEOF
5815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5825 for ac_func
in vsnprintf snprintf
5827 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5830 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5841 #define $ac_func innocuous_$ac_func
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func (); below.
5845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846 <limits.h> exists even on freestanding compilers. */
5849 # include <limits.h>
5851 # include <assert.h>
5856 /* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined __stub_$ac_func || defined __stub___$ac_func
5878 rm -f conftest.
$ac_objext conftest
$ac_exeext
5879 if { (ac_try
="$ac_link"
5881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
5896 eval "$as_ac_var=yes"
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 eval "$as_ac_var=no"
5904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 conftest$ac_exeext conftest.$ac_ext
5907 ac_res=`eval echo '${'$as_ac_var'}'`
5908 { echo "$as_me:$LINENO: result: $ac_res" >&5
5909 echo "${ECHO_T}$ac_res" >&6; }
5910 if test `eval echo '${'$as_ac_var'}'` = yes; then
5911 cat >>confdefs.h <<_ACEOF
5912 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5920 if test $needsnprintf = yes; then
5921 case " $LIBOBJS " in
5922 *" snprintf.$ac_objext "* ) ;;
5923 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5930 # Do this before checking for ether_hostton(), as it's a
5931 # "gethostbyname() -ish function".
5934 # Most operating systems have gethostbyname() in the default searched
5935 # libraries (i.e. libc):
5936 # Some OSes (eg. Solaris) place it in libnsl
5937 # Some strange OSes (SINIX) have it in libsocket:
5938 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5939 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5940 if test "${ac_cv_search_gethostbyname+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 ac_func_search_save_LIBS=$LIBS
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5957 char gethostbyname ();
5961 return gethostbyname ();
5966 for ac_lib in '' nsl socket resolv; do
5967 if test -z "$ac_lib"; then
5968 ac_res="none required"
5971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5977 *) ac_try_echo
=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest
$ac_exeext &&
5990 $as_test_x conftest
$ac_exeext; then
5991 ac_cv_search_gethostbyname
=$ac_res
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.
$ac_ext >&5
5999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6001 if test "${ac_cv_search_gethostbyname+set}" = set; then
6005 if test "${ac_cv_search_gethostbyname+set}" = set; then
6008 ac_cv_search_gethostbyname
=no
6011 LIBS
=$ac_func_search_save_LIBS
6013 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6014 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6015 ac_res
=$ac_cv_search_gethostbyname
6016 if test "$ac_res" != no
; then
6017 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6021 # Unfortunately libsocket sometimes depends on libnsl and
6022 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6023 if test "$ac_cv_search_gethostbyname" = "no"
6025 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6026 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6027 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_check_lib_save_LIBS
=$LIBS
6031 LIBS
="-lsocket -lnsl $LIBS"
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6039 /* Override any GCC internal prototype to avoid an error.
6040 Use char because int might match the return type of a GCC
6041 builtin and then its argument prototype would still apply. */
6045 char gethostbyname ();
6049 return gethostbyname ();
6054 rm -f conftest.
$ac_objext conftest
$ac_exeext
6055 if { (ac_try
="$ac_link"
6057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
6072 ac_cv_lib_socket_gethostbyname=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_lib_socket_gethostbyname=no
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081 conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$ac_check_lib_save_LIBS
6084 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6085 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6086 if test $ac_cv_lib_socket_gethostbyname = yes; then
6087 LIBS="-lsocket -lnsl $LIBS"
6091 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6092 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6093 if test "${ac_cv_search_socket+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_func_search_save_LIBS=$LIBS
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6104 /* Override any GCC internal prototype to avoid an error.
6105 Use char because int might match the return type of a GCC
6106 builtin and then its argument prototype would still apply. */
6119 for ac_lib in '' socket; do
6120 if test -z "$ac_lib"; then
6121 ac_res="none required"
6124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (ac_try="$ac_link"
6129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6130 *) ac_try_echo
=$ac_try;;
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>conftest.er1
6135 grep -v '^ *+' conftest.er1
>conftest.err
6137 cat conftest.err
>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && {
6140 test -z "$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest
$ac_exeext &&
6143 $as_test_x conftest
$ac_exeext; then
6144 ac_cv_search_socket
=$ac_res
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.
$ac_ext >&5
6152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6154 if test "${ac_cv_search_socket+set}" = set; then
6158 if test "${ac_cv_search_socket+set}" = set; then
6161 ac_cv_search_socket
=no
6164 LIBS
=$ac_func_search_save_LIBS
6166 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6167 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6168 ac_res
=$ac_cv_search_socket
6169 if test "$ac_res" != no
; then
6170 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6173 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6174 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6175 if test "${ac_cv_lib_socket_socket+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 ac_check_lib_save_LIBS
=$LIBS
6179 LIBS
="-lsocket -lnsl $LIBS"
6180 cat >conftest.
$ac_ext <<_ACEOF
6183 cat confdefs.h
>>conftest.
$ac_ext
6184 cat >>conftest.
$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6187 /* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6202 rm -f conftest.
$ac_objext conftest
$ac_exeext
6203 if { (ac_try
="$ac_link"
6205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_link") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest$ac_exeext &&
6219 $as_test_x conftest$ac_exeext; then
6220 ac_cv_lib_socket_socket=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_cv_lib_socket_socket=no
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6233 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6234 if test $ac_cv_lib_socket_socket = yes; then
6235 LIBS="-lsocket -lnsl $LIBS"
6240 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6241 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6242 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6243 if test "${ac_cv_search_putmsg+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 ac_func_search_save_LIBS=$LIBS
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6254 /* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6269 for ac_lib in '' str; do
6270 if test -z "$ac_lib"; then
6271 ac_res="none required"
6274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest
$ac_exeext &&
6293 $as_test_x conftest
$ac_exeext; then
6294 ac_cv_search_putmsg
=$ac_res
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6304 if test "${ac_cv_search_putmsg+set}" = set; then
6308 if test "${ac_cv_search_putmsg+set}" = set; then
6311 ac_cv_search_putmsg
=no
6314 LIBS
=$ac_func_search_save_LIBS
6316 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6317 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6318 ac_res
=$ac_cv_search_putmsg
6319 if test "$ac_res" != no
; then
6320 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6327 # You are in a twisty little maze of UN*Xes, all different.
6328 # Some might not have ether_hostton().
6329 # Some might have it, but not declare it in any header file.
6330 # Some might have it, but declare it in <netinet/if_ether.h>.
6331 # Some might have it, but declare it in <netinet/ether.h>
6332 # (And some might have it but document it as something declared in
6333 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6335 # Before you is a C compiler.
6338 for ac_func
in ether_hostton
6340 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6343 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6354 #define $ac_func innocuous_$ac_func
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6362 # include <limits.h>
6364 # include <assert.h>
6369 /* Override any GCC internal prototype to avoid an error.
6370 Use char because int might match the return type of a GCC
6371 builtin and then its argument prototype would still apply. */
6376 /* The GNU C library defines this for functions which it implements
6377 to always fail with ENOSYS. Some functions are actually named
6378 something starting with __ and the normal name is an alias. */
6379 #if defined __stub_$ac_func || defined __stub___$ac_func
6391 rm -f conftest.
$ac_objext conftest
$ac_exeext
6392 if { (ac_try
="$ac_link"
6394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest$ac_exeext &&
6408 $as_test_x conftest$ac_exeext; then
6409 eval "$as_ac_var=yes"
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 eval "$as_ac_var=no"
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418 conftest$ac_exeext conftest.$ac_ext
6420 ac_res=`eval echo '${'$as_ac_var'}'`
6421 { echo "$as_me:$LINENO: result: $ac_res" >&5
6422 echo "${ECHO_T}$ac_res" >&6; }
6423 if test `eval echo '${'$as_ac_var'}'` = yes; then
6424 cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6431 if test "$ac_cv_func_ether_hostton" = yes; then
6433 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6435 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6437 # Yes. Does it declare ether_hostton()?
6439 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6440 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6441 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6451 #include <sys/types.h>
6452 #include <sys/socket.h>
6453 #include <netinet/in.h>
6454 #include <arpa/inet.h>
6458 #include <netinet/if_ether.h>
6464 #ifndef ether_hostton
6465 (void) ether_hostton;
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6476 *) ac_try_echo
=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6481 grep -v '^ *+' conftest.er1
>conftest.err
6483 cat conftest.err
>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.
$ac_objext; then
6489 ac_cv_have_decl_ether_hostton
=yes
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.
$ac_ext >&5
6494 ac_cv_have_decl_ether_hostton
=no
6497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6500 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6501 if test $ac_cv_have_decl_ether_hostton = yes; then
6504 cat >>confdefs.h
<<\_ACEOF
6505 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6515 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6517 # No, how about <netinet/ether.h>, as on Linux?
6520 for ac_header
in netinet
/ether.h
6522 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6526 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 ac_res
=`eval echo '${'$as_ac_Header'}'`
6530 { echo "$as_me:$LINENO: result: $ac_res" >&5
6531 echo "${ECHO_T}$ac_res" >&6; }
6533 # Is the header compilable?
6534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6543 #include <$ac_header>
6545 rm -f conftest.
$ac_objext
6546 if { (ac_try
="$ac_compile"
6548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6549 *) ac_try_echo=$ac_try;;
6551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_header_compiler=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_header_compiler=no
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6572 echo "${ECHO_T}$ac_header_compiler" >&6; }
6574 # Is the header present?
6575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6577 cat >conftest.$ac_ext <<_ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <$ac_header>
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6588 *) ac_try_echo
=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1
>conftest.err
6595 cat conftest.err
>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } >/dev
/null
&& {
6598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6601 ac_header_preproc
=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.
$ac_ext >&5
6606 ac_header_preproc
=no
6609 rm -f conftest.err conftest.
$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611 echo "${ECHO_T}$ac_header_preproc" >&6; }
6613 # So? What about this header?
6614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc
=yes
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6640 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 eval "$as_ac_Header=\$ac_header_preproc"
6645 ac_res
=`eval echo '${'$as_ac_Header'}'`
6646 { echo "$as_me:$LINENO: result: $ac_res" >&5
6647 echo "${ECHO_T}$ac_res" >&6; }
6650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651 cat >>confdefs.h
<<_ACEOF
6652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 if test "$ac_cv_header_netinet_ether_h" = yes; then
6661 # We have it - does it declare ether_hostton()?
6662 # Unset ac_cv_have_decl_ether_hostton so we don't
6663 # treat the previous failure as a cached value and
6664 # suppress the next test.
6666 unset ac_cv_have_decl_ether_hostton
6667 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6668 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6669 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 #include <netinet/ether.h>
6685 #ifndef ether_hostton
6686 (void) ether_hostton;
6693 rm -f conftest.
$ac_objext
6694 if { (ac_try
="$ac_compile"
6696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 ac_cv_have_decl_ether_hostton=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_have_decl_ether_hostton=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6721 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6722 if test $ac_cv_have_decl_ether_hostton = yes; then
6725 cat >>confdefs.h <<\_ACEOF
6726 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6735 # Is ether_hostton() declared?
6737 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6739 # No, we'll have to declare it ourselves.
6740 # Do we have "struct ether_addr"?
6742 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6743 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6744 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6754 #include <sys/types.h>
6755 #include <sys/socket.h>
6756 #include <netinet/in.h>
6757 #include <arpa/inet.h>
6761 #include <netinet/if_ether.h>
6764 typedef struct ether_addr ac__type_new_;
6768 if ((ac__type_new_ *) 0)
6770 if (sizeof (ac__type_new_))
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6780 *) ac_try_echo
=$ac_try;;
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1
>conftest.err
6787 cat conftest.err
>&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.
$ac_objext; then
6793 ac_cv_type_struct_ether_addr
=yes
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.
$ac_ext >&5
6798 ac_cv_type_struct_ether_addr
=no
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6804 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6805 if test $ac_cv_type_struct_ether_addr = yes; then
6807 cat >>confdefs.h
<<_ACEOF
6808 #define HAVE_STRUCT_ETHER_ADDR 1
6815 cat >>confdefs.h
<<\_ACEOF
6816 #define HAVE_DECL_ETHER_HOSTTON 0
6821 cat >>confdefs.h
<<\_ACEOF
6822 #define HAVE_DECL_ETHER_HOSTTON 1
6828 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6829 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6830 # Check whether --enable-protochain was given.
6831 if test "${enable_protochain+set}" = set; then
6832 enableval
=$enable_protochain;
6835 case "x$enable_protochain" in
6836 xyes
) enable_protochain
=enabled
;;
6837 xno
) enable_protochain
=disabled
;;
6838 x
) enable_protochain
=enabled
;;
6841 if test "$enable_protochain" = "disabled"; then
6843 cat >>confdefs.h
<<\_ACEOF
6844 #define NO_PROTOCHAIN 1
6848 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6849 echo "${ECHO_T}${enable_protochain}" >&6; }
6852 # SITA support is mutually exclusive with native capture support;
6853 # "--with-sita" selects SITA support.
6856 # Check whether --with-sita was given.
6857 if test "${with_sita+set}" = set; then
6859 if test ! "x
$withval" = "xno
" ; then
6861 cat >>confdefs.h <<\_ACEOF
6865 { echo "$as_me:$LINENO: Enabling SITA ACN support
" >&5
6866 echo "$as_me: Enabling SITA ACN support
" >&6;}
6873 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6874 { { echo "$as_me:$LINENO: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&5
6875 echo "$as_me: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&2;}
6876 { (exit 1); exit 1; }; }
6879 # Check whether --with-pcap was given.
6880 if test "${with_pcap+set}" = set; then
6884 { echo "$as_me:$LINENO: checking packet capture
type" >&5
6885 echo $ECHO_N "checking packet capture
type...
$ECHO_C" >&6; }
6886 if test ! -z "$with_pcap" ; then
6888 elif test -r /dev/bpf -o -h /dev/bpf ; then
6890 # Cloning BPF device.
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_CLONING_BPF 1
6898 elif test -r /dev/bpf0 ; then
6900 elif test -r /usr/include/net/pfilt.h ; then
6902 elif test -r /dev/enet ; then
6904 elif test -r /dev/nit ; then
6906 elif test -r /usr/include/sys/net/nit.h ; then
6908 elif test -r /usr/include/linux/socket.h ; then
6910 elif test -r /usr/include/net/raw.h ; then
6912 elif test -r /usr/include/odmi.h ; then
6914 # On AIX, the BPF devices might not yet be present - they're
6915 # created the first time libpcap runs after booting.
6916 # We check for odmi.h instead.
6919 elif test -c /dev/bpf0 ; then # check again in case not readable
6921 elif test -r /usr/include/sys/dlpi.h ; then
6923 elif test -c /dev/enet ; then # check again in case not readable
6925 elif test -c /dev/nit ; then # check again in case not readable
6930 { echo "$as_me:$LINENO: result
: $V_PCAP" >&5
6931 echo "${ECHO_T}$V_PCAP" >&6; }
6934 # Do capture-mechanism-dependent tests.
6939 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6940 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6941 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6942 # private version also existed, which did not have the same APIs.
6943 # Due to a gcc bug, the default search path for 32-bit libraries does
6944 # not include /lib, we add it explicitly here.
6945 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6946 # Also, due to the bug above applications that link to libpcap with
6947 # libdlpi will have to add "-L/lib
" option to "configure
".
6949 saved_ldflags=$LDFLAGS
6950 LDFLAGS="$LIBS -L/lib
"
6951 { echo "$as_me:$LINENO: checking
for dlpi_walk
in -ldlpi" >&5
6952 echo $ECHO_N "checking
for dlpi_walk
in -ldlpi...
$ECHO_C" >&6; }
6953 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6954 echo $ECHO_N "(cached
) $ECHO_C" >&6
6956 ac_check_lib_save_LIBS=$LIBS
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6965 /* Override any GCC internal prototype to avoid an error.
6966 Use char because int might match the return type of a GCC
6967 builtin and then its argument prototype would still apply. */
6975 return dlpi_walk ();
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_link") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest$ac_exeext &&
6997 $as_test_x conftest$ac_exeext; then
6998 ac_cv_lib_dlpi_dlpi_walk=yes
7000 echo "$as_me: failed program was
:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_lib_dlpi_dlpi_walk=no
7006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007 conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7010 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dlpi_dlpi_walk" >&5
7011 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7012 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7016 cat >>confdefs.h <<\_ACEOF
7017 #define HAVE_LIBDLPI 1
7024 LDFLAGS=$saved_ldflags
7027 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7030 { echo "$as_me:$LINENO: checking whether
<sys
/dlpi.h
> is usable
" >&5
7031 echo $ECHO_N "checking whether
<sys
/dlpi.h
> is usable...
$ECHO_C" >&6; }
7032 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7033 echo $ECHO_N "(cached
) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7042 #include <sys/types.h>
7043 #include <sys/time.h>
7044 #include <sys/dlpi.h>
7049 int i = DL_PROMISC_PHYS;
7054 rm -f conftest.$ac_objext
7055 if { (ac_try="$ac_compile"
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_compile") 2>conftest.er1
7063 grep -v '^ *+' conftest.er1 >conftest.err
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7067 (exit $ac_status); } && {
7068 test -z "$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 } && test -s conftest.$ac_objext; then
7071 ac_cv_sys_dlpi_usable=yes
7073 echo "$as_me: failed program was
:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 ac_cv_sys_dlpi_usable=no
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 { echo "$as_me:$LINENO: result
: $ac_cv_sys_dlpi_usable" >&5
7083 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7084 if test $ac_cv_sys_dlpi_usable = no ; then
7085 { { echo "$as_me:$LINENO: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&5
7086 echo "$as_me: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&2;}
7087 { (exit 1); exit 1; }; }
7091 # Check whether we have a /dev/dlpi device or have multiple devices.
7093 { echo "$as_me:$LINENO: checking
for /dev
/dlpi device
" >&5
7094 echo $ECHO_N "checking
for /dev
/dlpi device...
$ECHO_C" >&6; }
7095 if test -c /dev/dlpi ; then
7096 { echo "$as_me:$LINENO: result
: yes" >&5
7097 echo "${ECHO_T}yes" >&6; }
7099 cat >>confdefs.h <<\_ACEOF
7100 #define HAVE_DEV_DLPI 1
7104 { echo "$as_me:$LINENO: result
: no
" >&5
7105 echo "${ECHO_T}no
" >&6; }
7107 { echo "$as_me:$LINENO: checking
for $dir directory
" >&5
7108 echo $ECHO_N "checking
for $dir directory...
$ECHO_C" >&6; }
7109 if test -d $dir ; then
7110 { echo "$as_me:$LINENO: result
: yes" >&5
7111 echo "${ECHO_T}yes" >&6; }
7113 cat >>confdefs.h <<_ACEOF
7114 #define PCAP_DEV_PREFIX "$dir"
7118 { echo "$as_me:$LINENO: result
: no
" >&5
7119 echo "${ECHO_T}no
" >&6; }
7124 # This check is for Solaris with DLPI support for passive modes.
7125 # See dlpi(7P) for more details.
7127 { echo "$as_me:$LINENO: checking
if dl_passive_req_t struct exists
" >&5
7128 echo $ECHO_N "checking
if dl_passive_req_t struct exists...
$ECHO_C" >&6; }
7129 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7130 echo $ECHO_N "(cached
) $ECHO_C" >&6
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 # include <sys/types.h>
7140 # include <sys/dlpi.h>
7144 u_int i = sizeof(dl_passive_req_t)
7149 rm -f conftest.$ac_objext
7150 if { (ac_try="$ac_compile"
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_compile") 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest.$ac_objext; then
7166 ac_cv_lbl_has_dl_passive_req_t=yes
7168 echo "$as_me: failed program was
:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 ac_cv_lbl_has_dl_passive_req_t=no
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_dl_passive_req_t" >&5
7178 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7179 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7181 cat >>confdefs.h <<\_ACEOF
7182 #define HAVE_DLPI_PASSIVE 1
7189 { echo "$as_me:$LINENO: checking Linux kernel version
" >&5
7190 echo $ECHO_N "checking Linux kernel version...
$ECHO_C" >&6; }
7191 if test "$cross_compiling" = yes; then
7192 if test "${ac_cv_linux_vers+set}" = set; then
7193 echo $ECHO_N "(cached
) $ECHO_C" >&6
7195 ac_cv_linux_vers=unknown
7199 if test "${ac_cv_linux_vers+set}" = set; then
7200 echo $ECHO_N "(cached
) $ECHO_C" >&6
7202 ac_cv_linux_vers=`uname -r 2>&1 | \
7203 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7207 { echo "$as_me:$LINENO: result
: $ac_cv_linux_vers" >&5
7208 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7209 if test $ac_cv_linux_vers = unknown ; then
7210 { { echo "$as_me:$LINENO: error
: cannot determine linux version when cross-compiling
" >&5
7211 echo "$as_me: error
: cannot determine linux version when cross-compiling
" >&2;}
7212 { (exit 1); exit 1; }; }
7214 if test $ac_cv_linux_vers -lt 2 ; then
7215 { { echo "$as_me:$LINENO: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&5
7216 echo "$as_me: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&2;}
7217 { (exit 1); exit 1; }; }
7221 # Do we have the wireless extensions?
7224 for ac_header in linux/wireless.h
7226 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7230 echo $ECHO_N "(cached
) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7239 #include <sys/socket.h>
7240 #include <linux/if.h>
7241 #include <linux/types.h>
7244 #include <$ac_header>
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_compile") 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest.$ac_objext; then
7263 eval "$as_ac_Header=yes"
7265 echo "$as_me: failed program was
:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 eval "$as_ac_Header=no
"
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 ac_res=`eval echo '${'$as_ac_Header'}'`
7274 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7275 echo "${ECHO_T}$ac_res" >&6; }
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7290 # Check whether --with-libnl was given.
7291 if test "${with_libnl+set}" = set; then
7292 withval=$with_libnl; with_libnl=$withval
7296 if test x$with_libnl != xno ; then
7297 { echo "$as_me:$LINENO: checking
for nl_handle_alloc
in -lnl" >&5
7298 echo $ECHO_N "checking
for nl_handle_alloc
in -lnl...
$ECHO_C" >&6; }
7299 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7300 echo $ECHO_N "(cached
) $ECHO_C" >&6
7302 ac_check_lib_save_LIBS=$LIBS
7304 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7317 char nl_handle_alloc ();
7321 return nl_handle_alloc ();
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (ac_try="$ac_link"
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_link") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1 >conftest.err
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest$ac_exeext &&
7343 $as_test_x conftest$ac_exeext; then
7344 ac_cv_lib_nl_nl_handle_alloc=yes
7346 echo "$as_me: failed program was
:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_cv_lib_nl_nl_handle_alloc=no
7352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7356 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nl_nl_handle_alloc" >&5
7357 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7358 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define HAVE_LIBNL 1
7366 if test x$with_libnl = xyes ; then
7367 { { echo "$as_me:$LINENO: error
: libnl support requested but libnl not found
" >&5
7368 echo "$as_me: error
: libnl support requested but libnl not found
" >&2;}
7369 { (exit 1); exit 1; }; }
7376 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
7377 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
7378 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7379 echo $ECHO_N "(cached
) $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 # include <linux/if_packet.h>
7392 struct tpacket_stats stats
7397 rm -f conftest.$ac_objext
7398 if { (ac_try="$ac_compile"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compile") 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_c_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest.$ac_objext; then
7414 ac_cv_lbl_tpacket_stats=yes
7416 echo "$as_me: failed program was
:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_lbl_tpacket_stats=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
7426 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7427 if test $ac_cv_lbl_tpacket_stats = yes; then
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_TPACKET_STATS 1
7434 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
7435 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
7436 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7437 echo $ECHO_N "(cached
) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 # include <linux/if_packet.h>
7450 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7474 echo "$as_me: failed program was
:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7484 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7485 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7486 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7498 # Check whether we have the *BSD-style ioctls.
7501 for ac_header in net/if_media.h
7503 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7505 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7506 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached
) $ECHO_C" >&6
7510 ac_res=`eval echo '${'$as_ac_Header'}'`
7511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7512 echo "${ECHO_T}$ac_res" >&6; }
7514 # Is the header compilable?
7515 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7516 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7517 cat >conftest.$ac_ext <<_ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 $ac_includes_default
7524 #include <$ac_header>
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was
:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_header_compiler=no
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6; }
7555 # Is the header present?
7556 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7557 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <$ac_header>
7566 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7578 (exit $ac_status); } >/dev/null && {
7579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7582 ac_header_preproc=yes
7584 echo "$as_me: failed program was
:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 ac_header_preproc=no
7590 rm -f conftest.err conftest.$ac_ext
7591 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6; }
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7597 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7598 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7601 ac_header_preproc=yes
7604 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7605 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7606 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7607 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7608 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7609 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7610 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7611 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7614 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7615 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7619 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7620 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7621 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached
) $ECHO_C" >&6
7624 eval "$as_ac_Header=\
$ac_header_preproc"
7626 ac_res=`eval echo '${'$as_ac_Header'}'`
7627 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7628 echo "${ECHO_T}$ac_res" >&6; }
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7641 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
7642 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <sys/socket.h>
7650 #include <sys/ioctl.h>
7652 #include <net/bpf.h>
7656 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7679 { echo "$as_me:$LINENO: result
: yes" >&5
7680 echo "${ECHO_T}yes" >&6; }
7682 cat >>confdefs.h <<\_ACEOF
7683 #define HAVE_ZEROCOPY_BPF 1
7688 echo "$as_me: failed program was
:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 { echo "$as_me:$LINENO: result
: no
" >&5
7692 echo "${ECHO_T}no
" >&6; }
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 # Check whether we have struct BPF_TIMEVAL.
7700 { echo "$as_me:$LINENO: checking
for struct BPF_TIMEVAL
" >&5
7701 echo $ECHO_N "checking
for struct BPF_TIMEVAL...
$ECHO_C" >&6; }
7702 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7703 echo $ECHO_N "(cached
) $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 #include <sys/types.h>
7713 #include <sys/ioctl.h>
7714 #ifdef HAVE_SYS_IOCCOM_H
7715 #include <sys/ioccom.h>
7717 #include <net/bpf.h>
7720 typedef struct BPF_TIMEVAL ac__type_new_;
7724 if ((ac__type_new_ *) 0)
7726 if (sizeof (ac__type_new_))
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7741 grep -v '^ *+' conftest.er1 >conftest.err
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest.$ac_objext; then
7749 ac_cv_type_struct_BPF_TIMEVAL=yes
7751 echo "$as_me: failed program was
:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_type_struct_BPF_TIMEVAL=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 { echo "$as_me:$LINENO: result
: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7760 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7761 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7763 cat >>confdefs.h <<_ACEOF
7764 #define HAVE_STRUCT_BPF_TIMEVAL 1
7773 V_DEFS="$V_DEFS -DDAG_ONLY"
7777 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7781 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
7782 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
7783 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
7784 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
7788 if test "$V_PCAP" = null
7791 # We can't capture, so we can't open any capture
7792 # devices, so we won't return any interfaces.
7796 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
7797 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
7798 if test "${ac_cv_func_getifaddrs+set}" = set; then
7799 echo $ECHO_N "(cached
) $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7809 #define getifaddrs innocuous_getifaddrs
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char getifaddrs (); below.
7813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814 <limits.h> exists even on freestanding compilers. */
7817 # include <limits.h>
7819 # include <assert.h>
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7841 return getifaddrs ();
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_link") 2>conftest.er1
7855 grep -v '^ *+' conftest.er1 >conftest.err
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7859 (exit $ac_status); } && {
7860 test -z "$ac_c_werror_flag" ||
7861 test ! -s conftest.err
7862 } && test -s conftest$ac_exeext &&
7863 $as_test_x conftest$ac_exeext; then
7864 ac_cv_func_getifaddrs=yes
7866 echo "$as_me: failed program was
:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_cv_func_getifaddrs=no
7872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7873 conftest$ac_exeext conftest.$ac_ext
7875 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
7876 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7877 if test $ac_cv_func_getifaddrs = yes; then
7880 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
7881 # as well, just in case some platform is really weird.
7883 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7884 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7885 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7886 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7887 echo $ECHO_N "(cached
) $ECHO_C" >&6
7889 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
7890 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7892 # Is the header compilable?
7893 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
7894 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #include <ifaddrs.h>
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7921 ac_header_compiler=yes
7923 echo "$as_me: failed program was
:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 ac_header_compiler=no
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7931 echo "${ECHO_T}$ac_header_compiler" >&6; }
7933 # Is the header present?
7934 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
7935 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 #include <ifaddrs.h>
7944 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7956 (exit $ac_status); } >/dev/null && {
7957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7960 ac_header_preproc=yes
7962 echo "$as_me: failed program was
:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_header_preproc=no
7968 rm -f conftest.err conftest.$ac_ext
7969 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7970 echo "${ECHO_T}$ac_header_preproc" >&6; }
7972 # So? What about this header?
7973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7975 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
7976 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7977 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
7978 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
7979 ac_header_preproc=yes
7982 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
7983 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
7984 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
7985 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
7986 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
7987 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
7988 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
7989 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
7990 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
7991 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
7992 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
7993 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
7997 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7998 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7999 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8000 echo $ECHO_N "(cached
) $ECHO_C" >&6
8002 ac_cv_header_ifaddrs_h=$ac_header_preproc
8004 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8008 if test $ac_cv_header_ifaddrs_h = yes; then
8011 # We have the header, so we use "getifaddrs
()" to
8012 # get the list of interfaces.
8019 # We don't have the header - give up.
8020 # XXX - we could also fall back on some other
8021 # mechanism, but, for now, this'll catch this
8022 # problem so that we can at least try to figure
8023 # out something to do on systems with "getifaddrs
()"
8024 # but without "ifaddrs.h
", if there is something
8025 # we can do on those systems.
8027 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
8028 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
8029 { (exit 1); exit 1; }; }
8038 # Well, we don't have "getifaddrs
()", so we have to use
8039 # some other mechanism; determine what that mechanism is.
8041 # The first thing we use is the type of capture mechanism,
8042 # which is somewhat of a proxy for the OS we're using.
8049 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8051 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8053 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8054 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached
) $ECHO_C" >&6
8058 ac_res=`eval echo '${'$as_ac_Header'}'`
8059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8060 echo "${ECHO_T}$ac_res" >&6; }
8062 # Is the header compilable?
8063 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8064 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #include <$ac_header>
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8083 grep -v '^ *+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_header_compiler=yes
8093 echo "$as_me: failed program was
:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_header_compiler=no
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8101 echo "${ECHO_T}$ac_header_compiler" >&6; }
8103 # Is the header present?
8104 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8105 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 #include <$ac_header>
8114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8126 (exit $ac_status); } >/dev/null && {
8127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8130 ac_header_preproc=yes
8132 echo "$as_me: failed program was
:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_header_preproc=no
8138 rm -f conftest.err conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8140 echo "${ECHO_T}$ac_header_preproc" >&6; }
8142 # So? What about this header?
8143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8145 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8146 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8147 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8149 ac_header_preproc=yes
8152 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8153 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8154 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8155 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8156 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8157 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8158 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8159 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8162 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8163 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8167 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8168 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8170 echo $ECHO_N "(cached
) $ECHO_C" >&6
8172 eval "$as_ac_Header=\
$ac_header_preproc"
8174 ac_res=`eval echo '${'$as_ac_Header'}'`
8175 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8176 echo "${ECHO_T}$ac_res" >&6; }
8179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8180 cat >>confdefs.h <<_ACEOF
8181 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8189 # This might be Solaris 8 or later, with
8190 # SIOCGLIFCONF, or it might be some other OS
8191 # or some older version of Solaris, with
8194 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
8195 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
8196 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8197 echo $ECHO_N "(cached
) $ECHO_C" >&6
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 #include <sys/param.h>
8206 #include <sys/file.h>
8207 #include <sys/ioctl.h>
8208 #include <sys/socket.h>
8209 #include <sys/sockio.h>
8213 ioctl(0, SIOCGLIFCONF, (char *)0);
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 ac_cv_lbl_have_siocglifconf=yes
8237 echo "$as_me: failed program was
:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_lbl_have_siocglifconf=no
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
8247 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8248 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8254 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8261 # Assume we just have SIOCGIFCONF.
8262 # (XXX - on at least later Linux kernels, there's
8263 # another mechanism, and we should be using that
8276 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
8277 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8285 #include <sys/types.h>
8286 #include <sys/socket.h>
8296 rm -f conftest.$ac_objext
8297 if { (ac_try="$ac_compile"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8315 echo "$as_me: failed program was
:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 if test "x
$have_socklen_t" = "xyes
"; then
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_SOCKLEN_T 1
8329 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
8330 echo "${ECHO_T}$have_socklen_t" >&6; }
8332 # Check whether --enable-ipv6 was given.
8333 if test "${enable_ipv6+set}" = set; then
8334 enableval=$enable_ipv6;
8336 enable_ipv6=ifavailable
8339 if test "$enable_ipv6" != "no
"; then
8340 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
8341 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
8342 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8343 echo $ECHO_N "(cached
) $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8353 #define getaddrinfo innocuous_getaddrinfo
8355 /* System header to define __stub macros and hopefully few prototypes,
8356 which can conflict with char getaddrinfo (); below.
8357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8358 <limits.h> exists even on freestanding compilers. */
8361 # include <limits.h>
8363 # include <assert.h>
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8374 char getaddrinfo ();
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8385 return getaddrinfo ();
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (ac_try="$ac_link"
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_link") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest$ac_exeext &&
8407 $as_test_x conftest$ac_exeext; then
8408 ac_cv_func_getaddrinfo=yes
8410 echo "$as_me: failed program was
:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_func_getaddrinfo=no
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 conftest$ac_exeext conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
8420 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8421 if test $ac_cv_func_getaddrinfo = yes; then
8424 cat >>confdefs.h <<\_ACEOF
8431 if test "$enable_ipv6" != "ifavailable
"; then
8432 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8433 See \`config.log' for more details.
" >&5
8434 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8435 See \`config.log' for more details.
" >&2;}
8436 { (exit 1); exit 1; }; }
8443 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
8444 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
8445 # Check whether --enable-optimizer-dbg was given.
8446 if test "${enable_optimizer_dbg+set}" = set; then
8447 enableval=$enable_optimizer_dbg;
8450 if test "$enable_optimizer_dbg" = "yes"; then
8452 cat >>confdefs.h <<\_ACEOF
8457 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
8458 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8460 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8461 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8462 # Check whether --enable-yydebug was given.
8463 if test "${enable_yydebug+set}" = set; then
8464 enableval
=$enable_yydebug;
8467 if test "$enable_yydebug" = "yes"; then
8469 cat >>confdefs.h
<<\_ACEOF
8474 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8475 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8477 { echo "$as_me:$LINENO: checking whether we have
/proc
/net
/dev
" >&5
8478 echo $ECHO_N "checking whether we have
/proc
/net
/dev...
$ECHO_C" >&6; }
8479 if test -r /proc/net/dev ; then
8480 ac_cv_lbl_proc_net_dev=yes
8482 ac_cv_lbl_proc_net_dev=no
8484 if test $ac_cv_lbl_proc_net_dev = yes; then
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_PROC_NET_DEV 1
8491 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_proc_net_dev" >&5
8492 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
8494 # Check for Endace DAG card support.
8496 # Check whether --with-dag was given.
8497 if test "${with_dag+set}" = set; then
8499 if test "$withval" = no
8501 # User doesn't want DAG support.
8503 elif test "$withval" = yes
8505 # User wants DAG support but hasn't specified a directory.
8508 # User wants DAG support and has specified a directory, so use the provided value.
8516 # Use DAG API if present, otherwise don't
8524 # Check whether --with-dag-includes was given.
8525 if test "${with_dag_includes+set}" = set; then
8526 withval=$with_dag_includes;
8527 # User wants DAG support and has specified a header directory, so use the provided value.
8529 dag_include_dir=$withval
8535 # Check whether --with-dag-libraries was given.
8536 if test "${with_dag_libraries+set}" = set; then
8537 withval=$with_dag_libraries;
8538 # User wants DAG support and has specified a library directory, so use the provided value.
8540 dag_lib_dir=$withval
8548 # We support the DAG API if we're on Linux or BSD, or if we're
8549 # building a DAG-only libpcap.
8554 # If the user explicitly requested DAG, tell them it's not
8557 # If they expressed no preference, don't include it.
8559 if test $want_dag = yes; then
8560 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
8561 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
8562 { (exit 1); exit 1; }; }
8563 elif test $want_dag = yes; then
8569 ac_cv_lbl_dag_api=no
8570 if test "$want_dag" != no; then
8572 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
8573 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
8575 # If necessary, set default paths for DAG API headers and libraries.
8576 if test -z "$dag_root"; then
8580 if test -z "$dag_include_dir"; then
8581 dag_include_dir="$dag_root/include
"
8584 if test -z "$dag_lib_dir"; then
8585 dag_lib_dir="$dag_root/lib
"
8588 if test -z "$dag_tools_dir"; then
8589 dag_tools_dir="$dag_root/tools
"
8592 if test -r $dag_include_dir/dagapi.h; then
8593 ac_cv_lbl_dag_api=yes
8595 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8596 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8599 if test $ac_cv_lbl_dag_api = yes; then
8601 { echo "$as_me:$LINENO: checking dagapi.o
" >&5
8602 echo $ECHO_N "checking dagapi.o...
$ECHO_C" >&6; }
8604 if test -r $dag_tools_dir/dagapi.o; then
8606 dagapi_obj=$dag_tools_dir/dagapi.o
8607 elif test -r $dag_lib_dir/dagapi.o; then
8609 dagapi_obj=$dag_lib_dir/dagapi.o
8610 elif test -r $dag_lib_dir/libdag.a; then
8612 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8613 if test -r ./dagapi.o; then
8614 dagapi_obj=./dagapi.o
8616 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8617 if test -r ./libdag_la-dagapi.o; then
8618 dagapi_obj=./libdag_la-dagapi.o
8623 if test $dagapi_obj = no; then
8624 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
8625 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
8626 ac_cv_lbl_dag_api=no
8628 { echo "$as_me:$LINENO: result
: yes ($dagapi_obj)" >&5
8629 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8633 if test $ac_cv_lbl_dag_api = yes; then
8635 { echo "$as_me:$LINENO: checking dagopts.o
" >&5
8636 echo $ECHO_N "checking dagopts.o...
$ECHO_C" >&6; }
8638 if test -r $dag_tools_dir/dagopts.o; then
8640 dagopts_obj=$dag_tools_dir/dagopts.o
8641 elif test -r $dag_lib_dir/dagopts.o; then
8643 dagopts_obj=$dag_lib_dir/dagopts.o
8644 elif test -r $dag_lib_dir/libdag.a; then
8646 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8647 if test -r ./dagopts.o; then
8648 dagopts_obj=./dagopts.o
8650 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8651 if test -r ./libdag_la-dagopts.o; then
8652 dagopts_obj=./libdag_la-dagopts.o
8657 if test $dagopts_obj = no; then
8658 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
8659 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
8660 ac_cv_lbl_dag_api=no
8662 { echo "$as_me:$LINENO: result
: yes ($dagopts_obj)" >&5
8663 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8667 if test $ac_cv_lbl_dag_api = yes; then
8668 # Under 2.5.x only we need to add dagreg.o.
8669 if test -r $dag_include_dir/dagreg.h; then
8670 { echo "$as_me:$LINENO: checking dagreg.o
" >&5
8671 echo $ECHO_N "checking dagreg.o...
$ECHO_C" >&6; }
8673 if test -r $dag_lib_dir/dagreg.o; then
8674 # Object file is ready and waiting.
8675 dagreg_obj=$dag_lib_dir/dagreg.o
8676 elif test -r $dag_lib_dir/libdag.a; then
8677 # Extract from libdag.a.
8678 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8679 if test -r ./dagreg.o; then
8680 dagreg_obj=./dagreg.o
8682 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8683 if test -r ./libdag_la-dagreg.o; then
8684 dagreg_obj=./libdag_la-dagreg.o
8689 if test $dagreg_obj = no; then
8690 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8691 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8692 ac_cv_lbl_dag_api=no
8694 { echo "$as_me:$LINENO: result
: yes ($dagreg_obj)" >&5
8695 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8700 if test $ac_cv_lbl_dag_api = yes; then
8701 # Under 2.5.x only we need to add dagutil.o.
8702 if test -r $dag_include_dir/dagutil.h; then
8703 { echo "$as_me:$LINENO: checking dagutil.o
" >&5
8704 echo $ECHO_N "checking dagutil.o...
$ECHO_C" >&6; }
8706 if test -r $dag_lib_dir/dagutil.o; then
8707 # Object file is ready and waiting.
8708 dagutil_obj=$dag_lib_dir/dagutil.o
8709 elif test -r $dag_lib_dir/libdag.a; then
8710 # Extract from libdag.a.
8711 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8712 if test -r ./dagutil.o; then
8713 dagutil_obj=./dagutil.o
8715 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8716 if test -r ./libdag_la-dagutil.o; then
8717 dagutil_obj=./libdag_la-dagutil.o
8722 if test $dagutil_obj = no; then
8723 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8724 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8725 ac_cv_lbl_dag_api=no
8727 { echo "$as_me:$LINENO: result
: yes ($dagutil_obj)" >&5
8728 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8733 if test $ac_cv_lbl_dag_api = yes; then
8734 V_INCLS="$V_INCLS -I$dag_include_dir"
8735 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8736 if test $V_PCAP != dag ; then
8740 # See if we can find a general version string.
8741 # Don't need to save and restore LIBS to prevent -ldag being
8742 # included if there's a found-action (arg 3).
8743 saved_ldflags=$LDFLAGS
8744 LDFLAGS="-L$dag_lib_dir"
8745 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
8746 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
8747 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8748 echo $ECHO_N "(cached
) $ECHO_C" >&6
8750 ac_check_lib_save_LIBS=$LIBS
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8765 char dag_attach_stream ();
8769 return dag_attach_stream ();
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext &&
8791 $as_test_x conftest$ac_exeext; then
8792 ac_cv_lib_dag_dag_attach_stream=yes
8794 echo "$as_me: failed program was
:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_dag_dag_attach_stream=no
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
8805 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8806 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8812 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
8813 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
8814 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8815 echo $ECHO_N "(cached
) $ECHO_C" >&6
8817 ac_check_lib_save_LIBS=$LIBS
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8826 /* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8832 char dag_get_erf_types ();
8836 return dag_get_erf_types ();
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (ac_try="$ac_link"
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_link") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest$ac_exeext &&
8858 $as_test_x conftest$ac_exeext; then
8859 ac_cv_lib_dag_dag_get_erf_types=yes
8861 echo "$as_me: failed program was
:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 ac_cv_lib_dag_dag_get_erf_types=no
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
8872 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8873 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_DAG_GET_ERF_TYPES 1
8882 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
8883 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
8884 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8885 echo $ECHO_N "(cached
) $ECHO_C" >&6
8887 ac_check_lib_save_LIBS=$LIBS
8889 cat >conftest.$ac_ext <<_ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8902 char dag_get_stream_erf_types ();
8906 return dag_get_stream_erf_types ();
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8929 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8931 echo "$as_me: failed program was
:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_lib_dag_dag_get_stream_erf_types=no
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938 conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8941 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8942 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8943 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8952 LDFLAGS=$saved_ldflags
8954 if test "$dag_streams" = 1; then
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_DAG_STREAMS_API 1
8964 cat >>confdefs.h <<\_ACEOF
8965 #define HAVE_DAG_API 1
8970 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
8971 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
8973 if test $ac_cv_lbl_dag_api = no; then
8974 { echo "$as_me:$LINENO: result
: no
" >&5
8975 echo "${ECHO_T}no
" >&6; }
8976 if test "$want_dag" = yes; then
8977 # User wanted DAG support but we couldn't find it.
8978 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
8979 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
8980 { (exit 1); exit 1; }; }
8983 if test "$V_PCAP" = dag; then
8984 # User requested "dag
" capture type but the DAG API wasn't
8986 { { 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
8987 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;}
8988 { (exit 1); exit 1; }; }
8991 { echo "$as_me:$LINENO: result
: yes" >&5
8992 echo "${ECHO_T}yes" >&6; }
8996 # Check whether --with-septel was given.
8997 if test "${with_septel+set}" = set; then
8998 withval=$with_septel;
8999 if test "$withval" = no
9002 elif test "$withval" = yes
9008 septel_root=$withval
9014 # Use Septel API if present, otherwise don't
9016 want_septel=ifpresent
9017 septel_root=./../septel
9021 ac_cv_lbl_septel_api=no
9025 # We support the Septel API if we're on Linux, or if we're building
9026 # a Septel-only libpcap.
9031 # If the user explicitly requested Septel, tell them it's not
9034 # If they expressed no preference, don't include it.
9036 if test $want_septel = yes; then
9037 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
9038 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
9039 { (exit 1); exit 1; }; }
9040 elif test $want_septel = yes; then
9046 if test "$with_septel" != no; then
9047 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
9048 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
9050 if test -z "$septel_root"; then
9051 septel_root=$srcdir/../septel
9054 septel_tools_dir="$septel_root"
9055 septel_include_dir="$septel_root/INC
"
9057 ac_cv_lbl_septel_api=no
9058 if test -r "$septel_include_dir/msg.h
"; then
9059 V_INCLS="$V_INCLS -I$septel_include_dir"
9060 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
"
9061 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
"
9063 if test "$V_PCAP" != septel ; then
9064 SSRC="pcap-septel.c
"
9066 ac_cv_lbl_septel_api=yes
9069 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
9070 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9071 if test $ac_cv_lbl_septel_api = no; then
9072 if test "$want_septel" = yes; then
9073 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
9074 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
9075 { (exit 1); exit 1; }; }
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_SEPTEL_API 1
9086 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9087 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
9088 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
9089 { (exit 1); exit 1; }; }
9094 # Check whether --with-flex was given.
9095 if test "${with_flex+set}" = set; then
9100 # Check whether --with-bison was given.
9101 if test "${with_bison+set}" = set; then
9102 withval=$with_bison;
9105 if test "$with_flex" = no ; then
9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9113 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9114 if test "${ac_cv_prog_V_LEX+set}" = set; then
9115 echo $ECHO_N "(cached
) $ECHO_C" >&6
9117 if test -n "$V_LEX"; then
9118 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_prog_V_LEX="$ac_prog"
9128 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9137 V_LEX=$ac_cv_prog_V_LEX
9138 if test -n "$V_LEX"; then
9139 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
9140 echo "${ECHO_T}$V_LEX" >&6; }
9142 { echo "$as_me:$LINENO: result
: no
" >&5
9143 echo "${ECHO_T}no
" >&6; }
9147 test -n "$V_LEX" && break
9149 test -n "$V_LEX" || V_LEX="lex"
9152 if test "$V_LEX" = flex ; then
9153 # The -V flag was added in 2.4
9154 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
9155 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
9156 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9157 echo $ECHO_N "(cached
) $ECHO_C" >&6
9159 if flex -V >/dev/null 2>&1; then
9160 ac_cv_lbl_flex_v24=yes
9162 ac_cv_lbl_flex_v24=no
9166 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
9167 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9168 if test $ac_cv_lbl_flex_v24 = no ; then
9169 s="2.4 or higher required
"
9170 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
9171 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
9175 if test "$with_bison" = no ; then
9178 for ac_prog in bison
9180 # Extract the first word of "$ac_prog", so it can be a program name with args.
9181 set dummy $ac_prog; ac_word=$2
9182 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9183 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9184 if test "${ac_cv_prog_V_YACC+set}" = set; then
9185 echo $ECHO_N "(cached
) $ECHO_C" >&6
9187 if test -n "$V_YACC"; then
9188 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_V_YACC="$ac_prog"
9198 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9207 V_YACC=$ac_cv_prog_V_YACC
9208 if test -n "$V_YACC"; then
9209 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
9210 echo "${ECHO_T}$V_YACC" >&6; }
9212 { echo "$as_me:$LINENO: result
: no
" >&5
9213 echo "${ECHO_T}no
" >&6; }
9217 test -n "$V_YACC" && break
9219 test -n "$V_YACC" || V_YACC="yacc"
9222 if test "$V_YACC" = bison ; then
9225 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9226 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
9227 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
9231 if test "$V_LEX" = flex -a -n "pcap_
" ; then
9232 V_LEX="$V_LEX -Ppcap_"
9233 V_YACC="$V_YACC -p pcap_
"
9235 if test "$V_LEX" = lex ; then
9236 # Some versions of lex can't handle the definitions section of scanner.l .
9237 # Try lexing it and complain if it can't deal.
9238 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
9239 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
9240 if test "${tcpdump_cv_capable_lex+set}" = set; then
9241 echo $ECHO_N "(cached
) $ECHO_C" >&6
9243 if lex -t scanner.l > /dev/null 2>&1; then
9244 tcpdump_cv_capable_lex=yes
9246 tcpdump_cv_capable_lex=insufficient
9249 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
9250 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9251 if test $tcpdump_cv_capable_lex = insufficient ; then
9252 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
9253 libpcap. flex is a lex replacement that has many advantages, including
9254 being able to compile libpcap. For more information, see
9255 http://www.gnu.org/software/flex/flex.html ." >&5
9256 echo "$as_me: error: Your operating system's
lex is insufficient to compile
9257 libpcap. flex is a
lex replacement that has many advantages
, including
9258 being able to compile libpcap. For
more information
, see
9259 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
9260 { (exit 1); exit 1; }; }
9265 # Assume, by default, no support for shared libraries and V7/BSD convention
9266 # for man pages (file formats in section 5, miscellaneous info in section 7).
9267 # Individual cases can override this.
9276 cat >>confdefs.h <<\_ACEOF
9282 # AIX makes it fun to build shared and static libraries,
9283 # because they're *both* ".a
" archive libraries. We
9284 # build the static library for the benefit of the traditional
9285 # scheme of building libpcap and tcpdump in subdirectories of
9286 # the same directory, with tcpdump statically linked with the
9287 # libpcap in question, but we also build a shared library as
9288 # "libpcap.shareda
" and install *it*, rather than the static
9289 # library, as "libpcap.a
".
9297 # If we're using DLPI, applications will need to
9298 # use /lib/pse.exp if present, as we use the
9301 pseexe="/lib
/pse.exp
"
9302 { echo "$as_me:$LINENO: checking
for $pseexe" >&5
9303 echo $ECHO_N "checking
for $pseexe...
$ECHO_C" >&6; }
9304 if test -f $pseexe ; then
9305 { echo "$as_me:$LINENO: result
: yes" >&5
9306 echo "${ECHO_T}yes" >&6; }
9313 # If we're using BPF, we need "-lodm" and "-lcfg", as
9314 # we use them to load the BPF module.
9323 V_CCOPT="$V_CCOPT -fno-common"
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_HPUX9 1
9334 # Use System V conventions for man pages.
9343 # Use System V conventions for man pages.
9352 # Use System V conventions for man pages.
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_HPUX10_20_OR_LATER 1
9364 if test "`uname -m`" = "ia64
"; then
9371 # "-b" builds a shared library; "+h
" sets the soname.
9377 # Use System V conventions for man pages.
9385 # Use System V conventions for man pages.
9391 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9395 # Compiler assumed to be GCC; run-time linker may require a -R
9398 if test "$libdir" != "/usr
/lib
"; then
9399 V_RFLAGS=-Wl,-R$libdir
9407 # Use System V conventions for man pages.
9414 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
9415 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
9416 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9417 echo $ECHO_N "(cached
) $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9434 rm -f conftest.$ac_objext
9435 if { (ac_try="$ac_compile"
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_compile") 2>conftest.er1
9443 grep -v '^ *+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9447 (exit $ac_status); } && {
9448 test -z "$ac_c_werror_flag" ||
9449 test ! -s conftest.err
9450 } && test -s conftest.$ac_objext; then
9451 ac_cv_cc_sinix_defined=yes
9453 echo "$as_me: failed program was
:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_cc_sinix_defined=no
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
9463 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9464 if test $ac_cv_cc_sinix_defined = no ; then
9466 cat >>confdefs.h <<\_ACEOF
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_SOLARIS 1
9482 # Use System V conventions for man pages.
9489 if test -n "$ac_tool_prefix"; then
9490 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
9491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9492 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9493 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9494 if test "${ac_cv_prog_RANLIB+set}" = set; then
9495 echo $ECHO_N "(cached
) $ECHO_C" >&6
9497 if test -n "$RANLIB"; then
9498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
9508 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9517 RANLIB=$ac_cv_prog_RANLIB
9518 if test -n "$RANLIB"; then
9519 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
9520 echo "${ECHO_T}$RANLIB" >&6; }
9522 { echo "$as_me:$LINENO: result
: no
" >&5
9523 echo "${ECHO_T}no
" >&6; }
9528 if test -z "$ac_cv_prog_RANLIB"; then
9529 ac_ct_RANLIB=$RANLIB
9530 # Extract the first word of "ranlib
", so it can be a program name with args.
9531 set dummy ranlib; ac_word=$2
9532 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9533 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9535 echo $ECHO_N "(cached
) $ECHO_C" >&6
9537 if test -n "$ac_ct_RANLIB"; then
9538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_ac_ct_RANLIB="ranlib
"
9548 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9558 if test -n "$ac_ct_RANLIB"; then
9559 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
9560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9562 { echo "$as_me:$LINENO: result
: no
" >&5
9563 echo "${ECHO_T}no
" >&6; }
9566 if test "x
$ac_ct_RANLIB" = x; then
9569 case $cross_compiling:$ac_tool_warned in
9571 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9572 whose name does not start with the
host triplet. If you think this
9573 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9574 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9575 whose name does not start with the
host triplet. If you think this
9576 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9577 ac_tool_warned=yes ;;
9579 RANLIB=$ac_ct_RANLIB
9582 RANLIB="$ac_cv_prog_RANLIB"
9587 if test "${LBL_CFLAGS+set}" = set; then
9588 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9590 if test -f .devel ; then
9591 if test "$GCC" = yes ; then
9592 if test "${LBL_CFLAGS+set}" != set; then
9593 if test "$ac_cv_prog_cc_g" = yes ; then
9594 V_CCOPT="-g $V_CCOPT"
9596 V_CCOPT="$V_CCOPT -Wall"
9597 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9598 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9605 V_CCOPT="$V_CCOPT -n32"
9612 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9614 if test -f $name ; then
9615 ln -s $name os-proto.h
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_OS_PROTO_H 1
9622 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
9623 echo "$as_me: WARNING: can't
find $name" >&2;}
9627 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
9628 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
9629 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9630 echo $ECHO_N "(cached
) $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 # include <sys/types.h>
9640 # include <sys/socket.h>
9644 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_compile") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
9666 ac_cv_lbl_sockaddr_has_sa_len=yes
9668 echo "$as_me: failed program was
:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_lbl_sockaddr_has_sa_len=no
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9678 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9679 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SOCKADDR_SA_LEN 1
9687 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
9688 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
9689 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9690 echo $ECHO_N "(cached
) $ECHO_C" >&6
9692 cat >conftest.$ac_ext <<_ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9699 # include <sys/types.h>
9700 # include <sys/socket.h>
9704 u_int i = sizeof (struct sockaddr_storage)
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_cv_lbl_has_sockaddr_storage=yes
9728 echo "$as_me: failed program was
:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lbl_has_sockaddr_storage=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
9738 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9739 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_SOCKADDR_STORAGE 1
9747 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
9748 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
9749 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9750 echo $ECHO_N "(cached
) $ECHO_C" >&6
9752 cat >conftest.$ac_ext <<_ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9759 # include <sys/types.h>
9760 # include <sys/dlpi.h>
9761 # include <sys/dlpi_ext.h>
9765 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest.$ac_objext; then
9787 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9789 echo "$as_me: failed program was
:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9799 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9800 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9808 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
9809 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
9810 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9811 echo $ECHO_N "(cached
) $ECHO_C" >&6
9816 # These are CPU types where:
9818 # the CPU faults on an unaligned access, but at least some
9819 # OSes that support that CPU catch the fault and simulate
9820 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9821 # the simulation is slow, so we don't want to use it;
9823 # the CPU, I infer (from the old
9825 # XXX: should also check that they don't do weird things (like on arm)
9827 # comment) doesn't fault on unaligned accesses, but doesn't
9828 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9830 # for whatever reason, the test program doesn't work
9831 # (this has been claimed to be the case for several of those
9832 # CPUs - I don't know what the problem is; the problem
9833 # was reported as "the
test program dumps core
" for SuperH,
9834 # but that's what the test program is *supposed* to do -
9835 # it dumps core before it writes anything, so the test
9836 # for an empty output file should find an empty output
9837 # file and conclude that unaligned accesses don't work).
9839 # This run-time test won't work if you're cross-compiling, so
9840 # in order to support cross-compiling for a particular CPU,
9841 # we have to wire in the list of CPU types anyway, as far as
9842 # I know, so perhaps we should just have a set of CPUs on
9843 # which we know it doesn't work, a set of CPUs on which we
9844 # know it does work, and have the script just fail on other
9845 # cpu types and update it when such a failure occurs.
9847 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9848 ac_cv_lbl_unaligned_fail=yes
9852 cat >conftest.c <<EOF
9853 # include <sys/types.h>
9854 # include <sys/wait.h>
9856 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9861 /* avoid "core dumped
" message */
9867 pid = waitpid(pid, &status, 0);
9870 exit(!WIFEXITED(status));
9873 i = *(unsigned int *)&a[1];
9878 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9879 conftest.c $LIBS >/dev/null 2>&1
9880 if test ! -x conftest ; then
9881 ac_cv_lbl_unaligned_fail=yes
9883 ./conftest >conftest.out
9884 if test ! -s conftest.out ; then
9885 ac_cv_lbl_unaligned_fail=yes
9887 ac_cv_lbl_unaligned_fail=no
9890 rm -f conftest* core core.conftest
9895 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
9896 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9897 if test $ac_cv_lbl_unaligned_fail = yes ; then
9899 cat >>confdefs.h <<\_ACEOF
9906 # Makefile.in includes rules to generate version.h, so we assume
9907 # that it will be generated if autoconf is used.
9910 cat >>confdefs.h <<\_ACEOF
9911 #define HAVE_VERSION_H 1
9916 ln -s ${srcdir}/bpf/net net
9936 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
9937 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
9941 cat >>confdefs.h <<\_ACEOF
9942 #define PCAP_SUPPORT_USB 1
9945 USB_SRC=pcap-usb-linux.c
9946 { echo "$as_me:$LINENO: result
: yes" >&5
9947 echo "${ECHO_T}yes" >&6; }
9948 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9949 if test $? -ne 0 ; then
9950 ac_usb_dev_name="usbmon
"
9953 cat >>confdefs.h <<_ACEOF
9954 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
9957 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
9958 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
9960 for ac_header in linux/usbdevice_fs.h
9962 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9964 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9965 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached
) $ECHO_C" >&6
9969 ac_res=`eval echo '${'$as_ac_Header'}'`
9970 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9971 echo "${ECHO_T}$ac_res" >&6; }
9973 # Is the header compilable?
9974 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9975 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 $ac_includes_default
9983 #include <$ac_header>
9985 rm -f conftest.$ac_objext
9986 if { (ac_try="$ac_compile"
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 ac_header_compiler=yes
10004 echo "$as_me: failed program was
:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_header_compiler=no
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10012 echo "${ECHO_T}$ac_header_compiler" >&6; }
10014 # Is the header present?
10015 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10016 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10025 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10033 grep -v '^ *+' conftest.er1 >conftest.err
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10037 (exit $ac_status); } >/dev/null && {
10038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10041 ac_header_preproc=yes
10043 echo "$as_me: failed program was
:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_header_preproc=no
10049 rm -f conftest.err conftest.$ac_ext
10050 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10051 echo "${ECHO_T}$ac_header_preproc" >&6; }
10053 # So? What about this header?
10054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10057 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10058 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10060 ac_header_preproc=yes
10063 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10064 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10065 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10066 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10067 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10068 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10069 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10070 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10073 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10074 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10081 echo $ECHO_N "(cached
) $ECHO_C" >&6
10083 eval "$as_ac_Header=\
$ac_header_preproc"
10085 ac_res=`eval echo '${'$as_ac_Header'}'`
10086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10087 echo "${ECHO_T}$ac_res" >&6; }
10090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10099 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10101 # OK, does it define bRequestType? Older versions of the kernel
10102 # define fields with names like "requesttype
, "request", and
10103 # "value", rather than "bRequestType", "bRequest", and
10106 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10107 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10108 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 cat >conftest.
$ac_ext <<_ACEOF
10114 cat confdefs.h
>>conftest.
$ac_ext
10115 cat >>conftest.
$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 $ac_includes_default
10119 #ifdef HAVE_SYS_BITYPES_H
10120 #include <sys/bitypes.h>
10122 # include <linux/usbdevice_fs.h>
10126 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10131 rm -f conftest.
$ac_objext
10132 if { (ac_try
="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10160 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10161 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10171 { echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6; }
10178 # Check whether --enable-bluetooth was given.
10179 if test "${enable_bluetooth+set}" = set; then
10180 enableval=$enable_bluetooth;
10182 enable_bluetooth=yes
10186 if test "x$enable_bluetooth" != "xno" ; then
10189 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10190 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10191 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10192 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10196 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10198 # Is the header compilable?
10199 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10200 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10208 #include <bluetooth/bluetooth.h>
10210 rm -f conftest.$ac_objext
10211 if { (ac_try="$ac_compile"
10212 case "(($ac_try" in
10213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10214 *) ac_try_echo
=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_compile") 2>conftest.er1
10219 grep -v '^ *+' conftest.er1
>conftest.err
10221 cat conftest.err
>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } && {
10224 test -z "$ac_c_werror_flag" ||
10225 test ! -s conftest.err
10226 } && test -s conftest.
$ac_objext; then
10227 ac_header_compiler
=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.
$ac_ext >&5
10232 ac_header_compiler
=no
10235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10237 echo "${ECHO_T}$ac_header_compiler" >&6; }
10239 # Is the header present?
10240 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10241 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10242 cat >conftest.
$ac_ext <<_ACEOF
10245 cat confdefs.h
>>conftest.
$ac_ext
10246 cat >>conftest.
$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 #include <bluetooth/bluetooth.h>
10250 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10251 case "(($ac_try" in
10252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10258 grep -v '^ *+' conftest.er1 >conftest.err
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } >/dev/null && {
10263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10264 test ! -s conftest.err
10266 ac_header_preproc=yes
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ac_header_preproc=no
10274 rm -f conftest.err conftest.$ac_ext
10275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10276 echo "${ECHO_T}$ac_header_preproc" >&6; }
10278 # So? What about this header?
10279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10281 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10282 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10284 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10285 ac_header_preproc=yes
10288 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10289 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10291 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10293 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10295 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10297 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10299 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10303 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10304 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10305 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10310 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10311 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10314 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10317 cat >>confdefs.h <<\_ACEOF
10318 #define PCAP_SUPPORT_BT 1
10321 BT_SRC=pcap-bt-linux.c
10322 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10323 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10326 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10327 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10334 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
10335 echo "$as_me: no Bluetooth sniffing support" >&6;}
10342 # Find a good install program. We prefer a C program (faster),
10343 # so one script is as good as another. But avoid the broken or
10344 # incompatible versions:
10345 # SysV /etc/install, /usr/sbin/install
10346 # SunOS /usr/etc/install
10347 # IRIX /sbin/install
10349 # AmigaOS /C/install, which installs bootblocks on floppy discs
10350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10353 # OS/2's system install, which has a completely different semantic
10354 # ./install, which can be erroneously created by make from ./install.sh.
10355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10357 if test -z "$INSTALL"; then
10358 if test "${ac_cv_path_install+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10365 test -z "$as_dir" && as_dir=.
10366 # Account for people who put trailing slashes in PATH elements.
10368 ./ | .// | /cC/* | \
10369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10373 # OSF1 and SCO ODT 3.0 have their own names for install.
10374 # Don't use installbsd from OSF since it installs stuff as root
10376 for ac_prog in ginstall scoinst install; do
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10379 if test $ac_prog = install &&
10380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10381 # AIX install. It has an incompatible calling convention.
10383 elif test $ac_prog = install &&
10384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10385 # program-specific install script used by HP pwplus--don't use.
10388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10401 if test "${ac_cv_path_install+set}" = set; then
10402 INSTALL=$ac_cv_path_install
10404 # As a last resort, use the slow shell script. Don't cache a
10405 # value for INSTALL within a source directory, because that will
10406 # break other packages using the cache if that directory is
10407 # removed, or if the value is a relative name.
10408 INSTALL=$ac_install_sh
10411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10412 echo "${ECHO_T}$INSTALL" >&6; }
10414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10415 # It thinks the first close brace ends the variable substitution.
10416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10423 ac_config_headers="$ac_config_headers config.h"
10426 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10428 cat >confcache <<\_ACEOF
10429 # This file is a shell script that caches the results of configure
10430 # tests run on this system so they can be shared between configure
10431 # scripts and configure runs, see configure's option --config-cache.
10432 # It is not useful on other systems. If it contains results you don't
10433 # want to keep, you may remove or edit it.
10435 # config.status only pays attention to the cache file if you give it
10436 # the --recheck option to rerun configure.
10438 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10440 # following values.
10444 # The following way of writing the cache mishandles newlines in values,
10445 # but we know of no workaround that is simple, portable, and efficient.
10446 # So, we kill variables containing newlines.
10447 # Ultrix sh set writes to stderr and can't be redirected directly,
10448 # and sets the high bit in the cache file unless we assign to the vars.
10450 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10451 eval ac_val
=\$
$ac_var
10455 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10459 _ | IFS | as_nl
) ;; #(
10460 *) $as_unset $ac_var ;;
10466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10467 *${as_nl}ac_space
=\
*)
10468 # `set' does not quote correctly, so add quotes (double-quote
10469 # substitution turns \\\\ into \\, and sed turns \\ into \).
10472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10475 # `set' quotes correctly as required by POSIX, so do not add quotes.
10476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10489 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10490 if test -w "$cache_file"; then
10491 test "x$cache_file" != "x/dev/null" &&
10492 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10493 echo "$as_me: updating cache $cache_file" >&6;}
10494 cat confcache
>$cache_file
10496 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10497 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10502 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10503 # Let make expand exec_prefix.
10504 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10506 DEFS
=-DHAVE_CONFIG_H
10510 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10511 # 1. Remove the extension, and $U if already installed.
10512 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10513 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10515 # will be set to the directory where LIBOBJS objects are built.
10516 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10517 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10519 LIBOBJS
=$ac_libobjs
10521 LTLIBOBJS
=$ac_ltlibobjs
10525 : ${CONFIG_STATUS=./config.status}
10526 ac_clean_files_save
=$ac_clean_files
10527 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10530 cat >$CONFIG_STATUS <<_ACEOF
10532 # Generated by $as_me.
10533 # Run this file to recreate the current configuration.
10534 # Compiler output produced by configure, useful for debugging
10535 # configure, is in config.log if it exists.
10538 ac_cs_recheck=false
10540 SHELL=\${CONFIG_SHELL-$SHELL}
10543 cat >>$CONFIG_STATUS <<\_ACEOF
10544 ## --------------------- ##
10545 ## M4sh Initialization. ##
10546 ## --------------------- ##
10548 # Be more Bourne compatible
10549 DUALCASE
=1; export DUALCASE
# for MKS sh
10550 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10554 # is contrary to our usage. Disable this feature.
10555 alias -g '${1+"$@"}'='"$@"'
10556 setopt NO_GLOB_SUBST
10558 case `(set -o) 2>/dev/null` in
10559 *posix
*) set -o posix
;;
10568 # Avoid depending upon Character Ranges.
10569 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10570 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10571 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10572 as_cr_digits
='0123456789'
10573 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10575 # The user is always right.
10576 if test "${PATH_SEPARATOR+set}" != set; then
10577 echo "#! /bin/sh" >conf$$.sh
10578 echo "exit 0" >>conf$$.sh
10580 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10588 # Support unset when possible.
10589 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10597 # We need space, tab and new line, in precisely that order. Quoting is
10598 # there to prevent editors from complaining about space-tab.
10599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10600 # splitting by setting IFS to empty value.)
10605 # Find who we are. Look in the path if we contain no directory separator.
10607 *[\\/]* ) as_myself
=$0 ;;
10608 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10609 for as_dir
in $PATH
10612 test -z "$as_dir" && as_dir
=.
10613 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10619 # We did not find ourselves, most probably we were run as `sh COMMAND'
10620 # in which case we are not to be found in the path.
10621 if test "x$as_myself" = x
; then
10624 if test ! -f "$as_myself"; then
10625 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10626 { (exit 1); exit 1; }
10629 # Work around bugs in pre-3.0 UWIN ksh.
10630 for as_var
in ENV MAIL MAILPATH
10631 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10639 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10640 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10641 LC_TELEPHONE LC_TIME
10643 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10644 eval $as_var=C
; export $as_var
10646 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10650 # Required to use basename.
10651 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10652 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10658 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10659 as_basename
=basename
10665 # Name of the executable.
10666 as_me
=`$as_basename -- "$0" ||
10667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10668 X"$0" : 'X\(//\)$' \| \
10669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10671 sed '/^.*\/\([^/][^/]*\)\/*$/{
10690 as_lineno_1
=$LINENO
10691 as_lineno_2
=$LINENO
10692 test "x$as_lineno_1" != "x$as_lineno_2" &&
10693 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10695 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10696 # uniformly replaced by the line number. The first 'sed' inserts a
10697 # line-number line after each line using $LINENO; the second 'sed'
10698 # does the real work. The second script uses 'N' to pair each
10699 # line-number line with the line containing $LINENO, and appends
10700 # trailing '-' during substitution so that $LINENO is not a special
10701 # case at line end.
10702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10703 # scripts with optimization help from Paolo Bonzini. Blame Lee
10704 # E. McMahon (1931-1989) for sed's syntax. :-)
10716 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10719 ' >$as_me.lineno
&&
10720 chmod +x
"$as_me.lineno" ||
10721 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10722 { (exit 1); exit 1; }; }
10724 # Don't try to exec as it changes $[0], causing all sort of problems
10725 # (the dirname of $[0] is not the place where we might find the
10726 # original and so on. Autoconf is especially sensitive to this).
10727 .
"./$as_me.lineno"
10728 # Exit status is that of the last command.
10733 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10739 ECHO_C
= ECHO_N
= ECHO_T
=
10740 case `echo -n x` in
10742 case `echo 'x\c'` in
10743 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10750 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10757 rm -f conf$$ conf$$.exe conf$$.
file
10758 if test -d conf$$.dir
; then
10759 rm -f conf$$.dir
/conf$$.
file
10765 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10767 # ... but there are two gotchas:
10768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10770 # In both cases, we have to default to `cp -p'.
10771 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10773 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10778 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10779 rmdir conf$$.dir
2>/dev
/null
10781 if mkdir
-p .
2>/dev
/null
; then
10784 test -d .
/-p && rmdir .
/-p
10788 if test -x / >/dev
/null
2>&1; then
10789 as_test_x
='test -x'
10791 if ls -dL / >/dev
/null
2>&1; then
10798 if test -d "$1"; then
10804 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10805 ???[sx]*):;;*)false;;esac;fi
10809 as_executable_p
=$as_test_x
10811 # Sed expression to map a string onto a valid CPP name.
10812 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10814 # Sed expression to map a string onto a valid variable name.
10815 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10820 # Save the log message, to keep $[0] and so on meaningful, and to
10821 # report actual input values of CONFIG_FILES etc. instead of their
10822 # values after options handling.
10824 This file was extended by $as_me, which was
10825 generated by GNU Autoconf 2.61. Invocation command line was
10827 CONFIG_FILES = $CONFIG_FILES
10828 CONFIG_HEADERS = $CONFIG_HEADERS
10829 CONFIG_LINKS = $CONFIG_LINKS
10830 CONFIG_COMMANDS = $CONFIG_COMMANDS
10833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10838 cat >>$CONFIG_STATUS <<_ACEOF
10839 # Files that config.status was made for.
10840 config_files="$ac_config_files"
10841 config_headers="$ac_config_headers"
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10847 \`$as_me' instantiates files from templates according to the
10848 current configuration.
10850 Usage: $0 [OPTIONS] [FILE]...
10852 -h, --help print this help, then exit
10853 -V, --version print version number and configuration settings, then exit
10854 -q, --quiet do not print progress messages
10855 -d, --debug don't remove temporary files
10856 --recheck update $as_me by reconfiguring in the same conditions
10857 --file=FILE[:TEMPLATE]
10858 instantiate the configuration file FILE
10859 --header=FILE[:TEMPLATE]
10860 instantiate the configuration header FILE
10862 Configuration files:
10865 Configuration headers:
10868 Report bugs to <bug-autoconf@gnu.org>."
10871 cat >>$CONFIG_STATUS <<_ACEOF
10874 configured by $0, generated by GNU Autoconf 2.61,
10875 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10877 Copyright (C) 2006 Free Software Foundation, Inc.
10878 This config.status script is free software; the Free Software Foundation
10879 gives unlimited permission to copy, distribute and modify it."
10886 cat >>$CONFIG_STATUS <<\_ACEOF
10887 # If no file are specified by the user, then we need to provide default
10888 # value. By we need to know if files were specified by the user.
10894 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10895 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10906 # Handling of the options.
10907 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10909 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10910 echo "$ac_cs_version"; exit ;;
10911 --debug |
--debu |
--deb |
--de |
--d |
-d )
10913 --file |
--fil |
--fi |
--f )
10915 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10916 ac_need_defaults
=false
;;
10917 --header |
--heade |
--head |
--hea )
10919 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10920 ac_need_defaults
=false
;;
10922 # Conflict between --help and --header
10923 { echo "$as_me: error: ambiguous option: $1
10924 Try \`$0 --help' for more information." >&2
10925 { (exit 1); exit 1; }; };;
10926 --help |
--hel |
-h )
10927 echo "$ac_cs_usage"; exit ;;
10928 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10929 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10932 # This is an error.
10933 -*) { echo "$as_me: error: unrecognized option: $1
10934 Try \`$0 --help' for more information." >&2
10935 { (exit 1); exit 1; }; } ;;
10937 *) ac_config_targets
="$ac_config_targets $1"
10938 ac_need_defaults
=false
;;
10944 ac_configure_extra_args
=
10946 if $ac_cs_silent; then
10948 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10952 cat >>$CONFIG_STATUS <<_ACEOF
10953 if \$ac_cs_recheck; then
10954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10955 CONFIG_SHELL=$SHELL
10956 export CONFIG_SHELL
10957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10961 cat >>$CONFIG_STATUS <<\_ACEOF
10965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10966 ## Running $as_me. ##
10972 cat >>$CONFIG_STATUS <<_ACEOF
10975 cat >>$CONFIG_STATUS <<\_ACEOF
10977 # Handling of arguments.
10978 for ac_config_target
in $ac_config_targets
10980 case $ac_config_target in
10981 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10982 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10983 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
10984 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
10985 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
10986 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
10987 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
10988 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
10989 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10990 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10991 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10992 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10996 { (exit 1); exit 1; }; };;
11001 # If the user did not use the arguments to specify the items to instantiate,
11002 # then the envvar interface is used. Set only those that are not.
11003 # We use the long form for the default assignment because of an extremely
11004 # bizarre bug on SunOS 4.1.3.
11005 if $ac_need_defaults; then
11006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11010 # Have a temporary directory for convenience. Make it in the build tree
11011 # simply because there is no reason against having it here, and in addition,
11012 # creating and moving files from /tmp can sometimes cause problems.
11013 # Hook for its removal unless debugging.
11014 # Note that there is a small window in which the directory will not be cleaned:
11015 # after its creation but before its name has been assigned to `$tmp'.
11019 trap 'exit_status=$?
11020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11022 trap '{ (exit 1); exit 1; }' 1 2 13 15
11024 # Create a (secure) tmp directory for tmp files.
11027 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11028 test -n "$tmp" && test -d "$tmp"
11031 tmp
=.
/conf$$
-$RANDOM
11032 (umask 077 && mkdir
"$tmp")
11035 echo "$me: cannot create a temporary directory in ." >&2
11036 { (exit 1); exit 1; }
11040 # Set up the sed scripts for CONFIG_FILES section.
11043 # No need to generate the scripts if there are no CONFIG_FILES.
11044 # This happens for instance when ./config.status config.h
11045 if test -n "$CONFIG_FILES"; then
11052 for ac_last_try
in false false false false false
:; do
11053 cat >conf$
$subs.
sed <<_ACEOF
11054 SHELL!$SHELL$ac_delim
11055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11061 exec_prefix!$exec_prefix$ac_delim
11062 prefix!$prefix$ac_delim
11063 program_transform_name!$program_transform_name$ac_delim
11064 bindir!$bindir$ac_delim
11065 sbindir!$sbindir$ac_delim
11066 libexecdir!$libexecdir$ac_delim
11067 datarootdir!$datarootdir$ac_delim
11068 datadir!$datadir$ac_delim
11069 sysconfdir!$sysconfdir$ac_delim
11070 sharedstatedir!$sharedstatedir$ac_delim
11071 localstatedir!$localstatedir$ac_delim
11072 includedir!$includedir$ac_delim
11073 oldincludedir!$oldincludedir$ac_delim
11074 docdir!$docdir$ac_delim
11075 infodir!$infodir$ac_delim
11076 htmldir!$htmldir$ac_delim
11077 dvidir!$dvidir$ac_delim
11078 pdfdir!$pdfdir$ac_delim
11079 psdir!$psdir$ac_delim
11080 libdir!$libdir$ac_delim
11081 localedir!$localedir$ac_delim
11082 mandir!$mandir$ac_delim
11083 DEFS!$DEFS$ac_delim
11084 ECHO_C!$ECHO_C$ac_delim
11085 ECHO_N!$ECHO_N$ac_delim
11086 ECHO_T!$ECHO_T$ac_delim
11087 LIBS!$LIBS$ac_delim
11088 build_alias!$build_alias$ac_delim
11089 host_alias!$host_alias$ac_delim
11090 target_alias!$target_alias$ac_delim
11091 build!$build$ac_delim
11092 build_cpu!$build_cpu$ac_delim
11093 build_vendor!$build_vendor$ac_delim
11094 build_os!$build_os$ac_delim
11095 host!$host$ac_delim
11096 host_cpu!$host_cpu$ac_delim
11097 host_vendor!$host_vendor$ac_delim
11098 host_os!$host_os$ac_delim
11099 target!$target$ac_delim
11100 target_cpu!$target_cpu$ac_delim
11101 target_vendor!$target_vendor$ac_delim
11102 target_os!$target_os$ac_delim
11103 SHLICC2!$SHLICC2$ac_delim
11105 CFLAGS!$CFLAGS$ac_delim
11106 LDFLAGS!$LDFLAGS$ac_delim
11107 CPPFLAGS!$CPPFLAGS$ac_delim
11108 ac_ct_CC!$ac_ct_CC$ac_delim
11109 EXEEXT!$EXEEXT$ac_delim
11110 OBJEXT!$OBJEXT$ac_delim
11112 GREP!$GREP$ac_delim
11113 EGREP!$EGREP$ac_delim
11114 LIBOBJS!$LIBOBJS$ac_delim
11115 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11116 V_LEX!$V_LEX$ac_delim
11117 V_YACC!$V_YACC$ac_delim
11118 RANLIB!$RANLIB$ac_delim
11119 V_CCOPT!$V_CCOPT$ac_delim
11120 V_DEFS!$V_DEFS$ac_delim
11121 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11122 V_INCLS!$V_INCLS$ac_delim
11123 V_PCAP!$V_PCAP$ac_delim
11124 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11125 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11126 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11127 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11128 ADDLOBJS!$ADDLOBJS$ac_delim
11129 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11130 SSRC!$SSRC$ac_delim
11131 DYEXT!$DYEXT$ac_delim
11132 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11133 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11134 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11135 USB_SRC!$USB_SRC$ac_delim
11136 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11137 BT_SRC!$BT_SRC$ac_delim
11138 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11139 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11140 INSTALL_DATA!$INSTALL_DATA$ac_delim
11141 LTLIBOBJS!$LTLIBOBJS$ac_delim
11144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
11146 elif $ac_last_try; then
11147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11148 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11149 { (exit 1); exit 1; }; }
11151 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
11155 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11156 if test -n "$ac_eof"; then
11157 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
11158 ac_eof
=`expr $ac_eof + 1`
11161 cat >>$CONFIG_STATUS <<_ACEOF
11162 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11166 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11167 s/^/s,@/; s/!/@,|#_!!_#|/
11170 s/'"$ac_delim"'$/,g/; t
11172 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11173 ' >>$CONFIG_STATUS <conf$
$subs.
sed
11174 rm -f conf$
$subs.
sed
11175 cat >>$CONFIG_STATUS <<_ACEOF
11182 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11183 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11184 # trailing colons and then remove the whole line if VPATH becomes empty
11185 # (actually we leave an empty line to preserve line numbers).
11186 if test "x$srcdir" = x.
; then
11187 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11188 s/:*\$(srcdir):*/:/
11189 s/:*\${srcdir}:*/:/
11191 s/^\([^=]*=[ ]*\):*/\1/
11197 cat >>$CONFIG_STATUS <<\_ACEOF
11198 fi # test -n "$CONFIG_FILES"
11201 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
11204 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11206 case $ac_mode$ac_tag in
11208 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11209 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11210 { (exit 1); exit 1; }; };;
11211 :[FH
]-) ac_tag
=-:-;;
11212 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11229 -) ac_f
="$tmp/stdin";;
11230 *) # Look for the file first in the build tree, then in the source tree
11231 # (if the path is not absolute). The absolute path cannot be DOS-style,
11232 # because $ac_f cannot contain `:'.
11236 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11238 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11239 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11240 { (exit 1); exit 1; }; };;
11242 ac_file_inputs
="$ac_file_inputs $ac_f"
11245 # Let's still pretend it is `configure' which instantiates (i.e., don't
11246 # use $as_me), people would be surprised to read:
11247 # /* config.h. Generated by config.status. */
11248 configure_input
="Generated from "`IFS=:
11249 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11250 if test x
"$ac_file" != x-
; then
11251 configure_input
="$ac_file. $configure_input"
11252 { echo "$as_me:$LINENO: creating $ac_file" >&5
11253 echo "$as_me: creating $ac_file" >&6;}
11257 *:-:* |
*:-) cat >"$tmp/stdin";;
11262 ac_dir
=`$as_dirname -- "$ac_file" ||
11263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11264 X"$ac_file" : 'X\(//\)[^/]' \| \
11265 X"$ac_file" : 'X\(//\)$' \| \
11266 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11272 /^X\(\/\/\)[^/].*/{
11287 -*) as_dir
=.
/$as_dir;;
11289 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
11293 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11294 *) as_qdir
=$as_dir;;
11296 as_dirs
="'$as_qdir' $as_dirs"
11297 as_dir
=`$as_dirname -- "$as_dir" ||
11298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11299 X"$as_dir" : 'X\(//\)[^/]' \| \
11300 X"$as_dir" : 'X\(//\)$' \| \
11301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11307 /^X\(\/\/\)[^/].*/{
11320 test -d "$as_dir" && break
11322 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11323 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11324 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11325 { (exit 1); exit 1; }; }; }
11329 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11331 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11332 # A ".." for each directory in $ac_dir_suffix.
11333 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11334 case $ac_top_builddir_sub in
11335 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11336 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11339 ac_abs_top_builddir
=$ac_pwd
11340 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11341 # for backward compatibility:
11342 ac_top_builddir
=$ac_top_build_prefix
11345 .
) # We are building in place.
11347 ac_top_srcdir
=$ac_top_builddir_sub
11348 ac_abs_top_srcdir
=$ac_pwd ;;
11349 [\\/]* | ?
:[\\/]* ) # Absolute name.
11350 ac_srcdir
=$srcdir$ac_dir_suffix;
11351 ac_top_srcdir
=$srcdir
11352 ac_abs_top_srcdir
=$srcdir ;;
11353 *) # Relative name.
11354 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11355 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11356 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11358 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11368 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11369 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11373 cat >>$CONFIG_STATUS <<\_ACEOF
11374 # If the template does not know about datarootdir, expand it.
11375 # FIXME: This hack should be removed a few years after 2.60.
11376 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11378 case `sed -n '/datarootdir/ {
11387 ' $ac_file_inputs` in
11388 *datarootdir
*) ac_datarootdir_seen
=yes;;
11389 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11390 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11391 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11393 cat >>$CONFIG_STATUS <<_ACEOF
11394 ac_datarootdir_hack='
11395 s&@datadir@&$datadir&g
11396 s&@docdir@&$docdir&g
11397 s&@infodir@&$infodir&g
11398 s&@localedir@&$localedir&g
11399 s&@mandir@&$mandir&g
11400 s&\\\${datarootdir}&$datarootdir&g' ;;
11404 # Neutralize VPATH when `$srcdir' = `.'.
11405 # Shell code in configure.ac might set extrasub.
11406 # FIXME: do we really want to maintain this feature?
11407 cat >>$CONFIG_STATUS <<_ACEOF
11411 cat >>$CONFIG_STATUS <<\_ACEOF
11413 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11414 s
&@configure_input@
&$configure_input&;t t
11415 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11416 s
&@srcdir@
&$ac_srcdir&;t t
11417 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11418 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11419 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11420 s
&@builddir@
&$ac_builddir&;t t
11421 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11422 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11423 s
&@INSTALL@
&$ac_INSTALL&;t t
11424 $ac_datarootdir_hack
11425 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
11427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11428 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11430 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11431 which seems to be undefined. Please make sure it is defined." >&5
11432 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11433 which seems to be undefined. Please make sure it is defined." >&2;}
11437 -) cat "$tmp/out"; rm -f "$tmp/out";;
11438 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11447 # Transform confdefs.h into a sed script `conftest.defines', that
11448 # substitutes the proper values into config.h.in to produce config.h.
11449 rm -f conftest.defines conftest.
tail
11450 # First, append a space to every undef/define line, to ease matching.
11451 echo 's/$/ /' >conftest.defines
11452 # Then, protect against being on the right side of a sed subst, or in
11453 # an unquoted here document, in config.status. If some macros were
11454 # called several times there might be several #defines for the same
11455 # symbol, which is useless. But do not sort them, since the last
11456 # AC_DEFINE must be honored.
11457 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11458 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11459 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11460 # PARAMS is the parameter list in the macro definition--in most cases, it's
11461 # just an empty string.
11462 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11463 ac_dB
='\\)[ (].*,\\1define\\2'
11471 s/^[ ]*#[ ]*define[ ][ ]*//
11476 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11477 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11478 ' >>conftest.defines
11480 # Remove the space that was appended to ease matching.
11481 # Then replace #undef with comments. This is necessary, for
11482 # example, in the case of _POSIX_SOURCE, which is predefined and required
11483 # on some systems where configure will not decide to define it.
11484 # (The regexp can be short, since the line contains either #define or #undef.)
11486 s,^[ #]*u.*,/* & */,' >>conftest.defines
11488 # Break up conftest.defines:
11489 ac_max_sed_lines
=50
11491 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11492 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11493 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11495 ac_in
='$ac_file_inputs'
11496 ac_out
='"$tmp/out1"'
11497 ac_nxt
='"$tmp/out2"'
11501 # Write a here document:
11502 cat >>$CONFIG_STATUS <<_ACEOF
11503 # First, check the format of the line:
11504 cat >"\$tmp/defines.sed" <<\\CEOF
11505 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11506 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11510 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11512 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11513 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11514 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11515 grep . conftest.
tail >/dev
/null ||
break
11516 rm -f conftest.defines
11517 mv conftest.
tail conftest.defines
11519 rm -f conftest.defines conftest.
tail
11521 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11522 cat >>$CONFIG_STATUS <<\_ACEOF
11523 if test x
"$ac_file" != x-
; then
11524 echo "/* $configure_input */" >"$tmp/config.h"
11525 cat "$ac_result" >>"$tmp/config.h"
11526 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11527 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11528 echo "$as_me: $ac_file is unchanged" >&6;}
11531 mv "$tmp/config.h" $ac_file
11534 echo "/* $configure_input */"
11546 { (exit 0); exit 0; }
11548 chmod +x
$CONFIG_STATUS
11549 ac_clean_files
=$ac_clean_files_save
11552 # configure is writing to config.log, and then calls config.status.
11553 # config.status does its own redirection, appending to config.log.
11554 # Unfortunately, on DOS this fails, as config.log is still kept open
11555 # by configure, so config.status won't be able to write to it; its
11556 # output is simply discarded. So we exec the FD to /dev/null,
11557 # effectively closing config.log, so it can be properly (re)opened and
11558 # appended to by config.status. When coming back to configure, we
11559 # need to make the FD available again.
11560 if test "$no_create" != yes; then
11562 ac_config_status_args
=
11563 test "$silent" = yes &&
11564 ac_config_status_args
="$ac_config_status_args --quiet"
11566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11569 # would make configure fail if this is the last instruction.
11570 $ac_cs_success ||
{ (exit 1); exit 1; }
11574 if test -f .devel
; then