2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
678 HAVE_LINUX_TPACKET_AUXDATA
709 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=no
;;
829 -docdir |
--docdir |
--docdi |
--doc |
--do)
831 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
834 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
836 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
839 -enable-* |
--enable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=\
$ac_optarg ;;
848 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
849 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
850 |
--exec |
--exe |
--ex)
851 ac_prev
=exec_prefix
;;
852 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
853 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
854 |
--exec=* |
--exe=* |
--ex=*)
855 exec_prefix
=$ac_optarg ;;
857 -gas |
--gas |
--ga |
--g)
858 # Obsolete; use --with-gas.
861 -help |
--help |
--hel |
--he |
-h)
863 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
864 ac_init_help
=recursive
;;
865 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
866 ac_init_help
=short
;;
868 -host |
--host |
--hos |
--ho)
869 ac_prev
=host_alias
;;
870 -host=* |
--host=* |
--hos=* |
--ho=*)
871 host_alias
=$ac_optarg ;;
873 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
875 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
877 htmldir
=$ac_optarg ;;
879 -includedir |
--includedir |
--includedi |
--included |
--include \
880 |
--includ |
--inclu |
--incl |
--inc)
881 ac_prev
=includedir
;;
882 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
883 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
884 includedir
=$ac_optarg ;;
886 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
888 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
889 infodir
=$ac_optarg ;;
891 -libdir |
--libdir |
--libdi |
--libd)
893 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
896 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
897 |
--libexe |
--libex |
--libe)
898 ac_prev
=libexecdir
;;
899 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
900 |
--libexe=* |
--libex=* |
--libe=*)
901 libexecdir
=$ac_optarg ;;
903 -localedir |
--localedir |
--localedi |
--localed |
--locale)
905 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
906 localedir
=$ac_optarg ;;
908 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
909 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
910 ac_prev
=localstatedir
;;
911 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
912 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
913 localstatedir
=$ac_optarg ;;
915 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
917 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
921 # Obsolete; use --without-fp.
924 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
925 |
--no-cr |
--no-c |
-n)
928 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
929 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
932 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
933 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
934 |
--oldin |
--oldi |
--old |
--ol |
--o)
935 ac_prev
=oldincludedir
;;
936 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
937 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
938 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
939 oldincludedir
=$ac_optarg ;;
941 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
943 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
946 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
947 |
--program-pre |
--program-pr |
--program-p)
948 ac_prev
=program_prefix
;;
949 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
950 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
951 program_prefix
=$ac_optarg ;;
953 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
954 |
--program-suf |
--program-su |
--program-s)
955 ac_prev
=program_suffix
;;
956 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
957 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
958 program_suffix
=$ac_optarg ;;
960 -program-transform-name |
--program-transform-name \
961 |
--program-transform-nam |
--program-transform-na \
962 |
--program-transform-n |
--program-transform- \
963 |
--program-transform |
--program-transfor \
964 |
--program-transfo |
--program-transf \
965 |
--program-trans |
--program-tran \
966 |
--progr-tra |
--program-tr |
--program-t)
967 ac_prev
=program_transform_name
;;
968 -program-transform-name=* |
--program-transform-name=* \
969 |
--program-transform-nam=* |
--program-transform-na=* \
970 |
--program-transform-n=* |
--program-transform-=* \
971 |
--program-transform=* |
--program-transfor=* \
972 |
--program-transfo=* |
--program-transf=* \
973 |
--program-trans=* |
--program-tran=* \
974 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
975 program_transform_name
=$ac_optarg ;;
977 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
979 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
982 -psdir |
--psdir |
--psdi |
--psd |
--ps)
984 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
988 |
-silent |
--silent |
--silen |
--sile |
--sil)
991 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
993 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
995 sbindir
=$ac_optarg ;;
997 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
998 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
999 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1001 ac_prev
=sharedstatedir
;;
1002 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1003 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1004 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1006 sharedstatedir
=$ac_optarg ;;
1008 -site |
--site |
--sit)
1010 -site=* |
--site=* |
--sit=*)
1013 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1015 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1016 srcdir
=$ac_optarg ;;
1018 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1019 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1020 ac_prev
=sysconfdir
;;
1021 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1022 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1023 sysconfdir
=$ac_optarg ;;
1025 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1026 ac_prev
=target_alias
;;
1027 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1028 target_alias
=$ac_optarg ;;
1030 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1033 -version |
--version |
--versio |
--versi |
--vers |
-V)
1034 ac_init_version
=: ;;
1037 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=\
$ac_optarg ;;
1045 -without-* |
--without-*)
1046 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_
$ac_package=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val
=\$
$ac_var
1111 [\\/$
]* | ?
:[\\/]* ) continue;;
1112 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target
=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x
; then
1127 if test "x$build_alias" = x
; then
1128 cross_compiling
=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1139 test "$silent" = yes && exec 6>/dev
/null
1142 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di
=`ls -di .` &&
1144 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted
=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir
=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1184 ac_srcdir_defaulted
=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1204 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 for ac_var
in $ac_precious_vars; do
1207 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1209 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1220 \`configure' configures this package to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1278 --build=BUILD configure
for building on BUILD
[guessed
]
1279 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1280 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1284 if test -n "$ac_init_help"; then
1289 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1290 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1291 --disable-largefile omit support
for large files
1292 --disable-protochain disable
\"protochain
\" insn
1293 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1294 getaddrinfo available
]
1295 --enable-optimizer-dbg build optimizer debugging code
1296 --enable-yydebug build parser debugging code
1297 --disable-universal don
't build universal on OS X
1298 --enable-bluetooth enable Bluetooth support [default=yes, if support
1300 --enable-can enable CAN support [default=yes, if support
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --without-gcc don't use gcc
1307 --with-sita include SITA support
1308 --with-pcap=TYPE use packet capture TYPE
1309 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1311 --with-dag[=DIR
] include Endace DAG support
["yes", "no" or DIR
;
1312 default
="yes" on BSD and Linux
if present
]
1313 --with-dag-includes=DIR Endace DAG include directory
1314 --with-dag-libraries=DIR
1315 Endace DAG library directory
1316 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1317 supplied
).
[default
=yes, on Linux
, if present
]
1318 --with-snf[=DIR
] include Myricom SNF support
["yes", "no" or DIR
;
1319 default
="yes" on BSD and Linux
if present
]
1320 --with-snf-includes=DIR Myricom SNF include directory
1321 --with-snf-libraries=DIR
1322 Myricom SNF library directory
1323 --without-flex don
't use flex
1324 --without-bison don't use bison
1326 Some influential environment variables
:
1327 CC C compiler
command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1330 nonstandard directory
<lib dir
>
1331 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1332 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1333 you have headers
in a nonstandard directory
<include dir
>
1336 Use these variables to override the choices made by
`configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1366 .) # We are building in place.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1400 generated by GNU Autoconf 2.61
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1426 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1427 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1428 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1429 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1430 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1432 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1433 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1435 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1436 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1437 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1438 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1439 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1440 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1441 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1474 ac_must_keep_next=false
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1485 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 -* ) ac_must_keep_next=true ;;
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1530 # The following way of writing the cache mishandles newlines in values,
1532 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1533 eval ac_val=\$$ac_var
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1547 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1567 for ac_var in $ac_subst_vars
1569 eval ac_val=\$$ac_var
1571 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 echo "$ac_var='\''$ac_val'\''"
1577 if test -n "$ac_subst_files"; then
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1584 for ac_var in $ac_subst_files
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1595 if test -s confdefs.h; then
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1621 # Predefined preprocessor variables.
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1686 # Check that the precious variables saved in the cache have kept the same
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1697 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1701 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1708 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1709 echo "$as_me: former value
: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1711 echo "$as_me: current value
: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1729 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1730 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761 if test -f "$ac_dir/install-sh"; then
1763 ac_install_sh="$ac_aux_dir/install-sh -c"
1765 elif test -f "$ac_dir/install.sh"; then
1767 ac_install_sh="$ac_aux_dir/install.sh -c"
1769 elif test -f "$ac_dir/shtool"; then
1771 ac_install_sh="$ac_aux_dir/shtool install -c"
1775 if test -z "$ac_aux_dir"; then
1776 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778 { (exit 1); exit 1; }; }
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1790 # Make sure we can run config.sub.
1791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1792 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1794 { (exit 1); exit 1; }; }
1796 { echo "$as_me:$LINENO: checking build system type" >&5
1797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_build+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 ac_build_alias=$build_alias
1802 test "x$ac_build_alias" = x &&
1803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1804 test "x$ac_build_alias" = x &&
1805 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1807 { (exit 1); exit 1; }; }
1808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1815 echo "${ECHO_T}$ac_cv_build" >&6; }
1816 case $ac_cv_build in
1818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1819 echo "$as_me: error: invalid value of canonical build" >&2;}
1820 { (exit 1); exit 1; }; };;
1823 ac_save_IFS=$IFS; IFS='-'
1829 # Remember, the first character of IFS is used to create $*,
1830 # except with old shells:
1833 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1836 { echo "$as_me:$LINENO: checking host system type" >&5
1837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1838 if test "${ac_cv_host+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test "x$host_alias" = x; then
1842 ac_cv_host=$ac_cv_build
1844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1847 { (exit 1); exit 1; }; }
1851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1852 echo "${ECHO_T}$ac_cv_host" >&6; }
1855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1856 echo "$as_me: error: invalid value of canonical host" >&2;}
1857 { (exit 1); exit 1; }; };;
1860 ac_save_IFS=$IFS; IFS='-'
1866 # Remember, the first character of IFS is used to create $*,
1867 # except with old shells:
1870 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1873 { echo "$as_me:$LINENO: checking target system type" >&5
1874 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1875 if test "${ac_cv_target+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test "x$target_alias" = x; then
1879 ac_cv_target=$ac_cv_host
1881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1888 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1889 echo "${ECHO_T}$ac_cv_target" >&6; }
1890 case $ac_cv_target in
1892 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1893 echo "$as_me: error: invalid value of canonical target" >&2;}
1894 { (exit 1); exit 1; }; };;
1896 target=$ac_cv_target
1897 ac_save_IFS=$IFS; IFS='-'
1903 # Remember, the first character of IFS is used to create $*,
1904 # except with old shells:
1907 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
1910 # The aliases save the names the user supplied, while $host etc.
1911 # will get canonicalized.
1912 test -n "$target_alias" &&
1913 test "$program_prefix$program_suffix$program_transform_name" = \
1915 program_prefix=${target_alias}-
1923 # Check whether --with-gcc was given.
1924 if test "${with_gcc+set}" = set; then
1930 if test "${srcdir}" != "." ; then
1931 V_INCLS="-I\$(srcdir)"
1933 if test "${CFLAGS+set}" = set; then
1934 LBL_CFLAGS="$CFLAGS"
1936 if test -z "$CC" ; then
1940 # Extract the first word of "shlicc2", so it can be a program name with args.
1941 set dummy shlicc2; ac_word=$2
1942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1944 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$SHLICC2"; then
1948 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1957 ac_cv_prog_SHLICC2="yes"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1968 SHLICC2=$ac_cv_prog_SHLICC2
1969 if test -n "$SHLICC2"; then
1970 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1971 echo "${ECHO_T}$SHLICC2" >&6; }
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1978 if test $SHLICC2 = yes ; then
1985 if test -z "$CC" -a "$with_gcc" = no ; then
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 if test -n "$CC"; then
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2034 if test -z "$ac_cv_prog_CC"; then
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2072 if test "x$ac_ct_CC" = x; then
2075 case $cross_compiling:$ac_tool_warned in
2077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&5
2080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2083 ac_tool_warned=yes ;;
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2132 if test -z "$CC"; then
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152 ac_prog_rejected=yes
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test $ac_prog_rejected = yes; then
2164 # We found a bogon in the path, so make sure we never use it.
2165 set dummy $ac_cv_prog_CC
2167 if test $# != 0; then
2168 # We chose a different compiler from the bogus one.
2169 # However, it has the same basename, so the bogon will be chosen
2170 # first if we set CC to just the basename; use the full file name.
2172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 for ac_prog in cl.exe
2192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2229 test -n "$CC" && break
2232 if test -z "$CC"; then
2234 for ac_prog in cl.exe
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_ac_ct_CC="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$ac_ct_CC" && break
2276 if test "x$ac_ct_CC" = x; then
2279 case $cross_compiling:$ac_tool_warned in
2281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2282 whose name does not start with the host triplet. If you think this
2283 configuration is useful to you, please write to autoconf@gnu.org." >&5
2284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2285 whose name does not start with the host triplet. If you think this
2286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2287 ac_tool_warned=yes ;;
2296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2297 See \`config.log
' for more details." >&5
2298 echo "$as_me: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details.
" >&2;}
2300 { (exit 1); exit 1; }; }
2302 # Provide some information about the compiler.
2303 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2304 ac_compiler=`set X $ac_compile; echo $2`
2305 { (ac_try="$ac_compiler --version >&5"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compiler --version >&5") 2>&5
2313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2314 (exit $ac_status); }
2315 { (ac_try="$ac_compiler -v >&5"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compiler -v >&5") 2>&5
2323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try="$ac_compiler -V >&5"
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compiler -V >&5") 2>&5
2333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2334 (exit $ac_status); }
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 ac_clean_files_save=$ac_clean_files
2352 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2353 # Try to create an executable without -o first, disregard a.out.
2354 # It will help us diagnose broken compilers, and finding out an intuition
2356 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2357 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2358 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360 # List of possible output files, starting from the most likely.
2361 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2362 # only as a last resort. b.out is created by i960 compilers.
2363 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2365 # The IRIX 6 linker writes into existing files which may not be
2366 # executable, retaining their permissions. Remove them first so a
2367 # subsequent execution test works.
2369 for ac_file in $ac_files
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2378 if { (ac_try="$ac_link_default"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_link_default") 2>&5
2386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2391 # so that the user can short-circuit this test for compilers unknown to
2393 for ac_file in $ac_files ''
2395 test -f "$ac_file" || continue
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2400 # We found the default executable, but exeext='' is most
2404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 # We set ac_cv_exeext here because the later test for it is not
2409 # safe: cross compilers may not add the suffix if given an `-o'
2410 # argument, so we may need to know it at that point already.
2411 # Even if this section looks crufty: it has the advantage of
2418 test "$ac_cv_exeext" = no && ac_cv_exeext=
2424 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2425 echo "${ECHO_T}$ac_file" >&6; }
2426 if test -z "$ac_file"; then
2427 echo "$as_me: failed program was
:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2431 See \
`config.log' for more details." >&5
2432 echo "$as_me: error: C compiler cannot create executables
2433 See \`config.log
' for more details." >&2;}
2434 { (exit 77); exit 77; }; }
2437 ac_exeext=$ac_cv_exeext
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='.
/$ac_file'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 if test "$cross_compiling" = maybe; then
2461 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \
`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details.
" >&2;}
2467 { (exit 1); exit 1; }; }
2471 { echo "$as_me:$LINENO: result
: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2479 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2483 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2484 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link") 2>&5
2493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2499 for ac_file in conftest.exe conftest conftest.*; do
2500 test -f "$ac_file" || continue
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2510 See \
`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log
' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's
/^
/|
/' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details.
" >&5
2568 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2569 See \
`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2606 *) ac_try_echo
=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_compile") 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } && {
2616 test -z "$ac_c_werror_flag" ||
2617 test ! -s conftest.err
2618 } && test -s conftest.
$ac_objext; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.
$ac_ext >&5
2627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2628 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2633 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS
=${CFLAGS+set}
2635 ac_save_CFLAGS
=$CFLAGS
2636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_save_c_werror_flag
=$ac_c_werror_flag
2642 ac_c_werror_flag
=yes
2645 cat >conftest.
$ac_ext <<_ACEOF
2648 cat confdefs.h
>>conftest.
$ac_ext
2649 cat >>conftest.
$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2660 rm -f conftest.
$ac_objext
2661 if { (ac_try
="$ac_compile"
2663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.$ac_objext; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2702 *) ac_try_echo
=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1
>conftest.err
2709 cat conftest.err
>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.
$ac_objext; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2720 ac_c_werror_flag
=$ac_save_c_werror_flag
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.
$ac_objext
2738 if { (ac_try
="$ac_compile"
2740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2773 if test "$ac_test_CFLAGS" = set; then
2774 CFLAGS=$ac_save_CFLAGS
2775 elif test $ac_cv_prog_cc_g = yes; then
2776 if test "$GCC" = yes; then
2782 if test "$GCC" = yes; then
2788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_c89+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 ac_cv_prog_cc_c89=no
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2803 #include <sys/types.h>
2804 #include <sys/stat.h>
2805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2806 struct buf { int x; };
2807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808 static char *e (p, i)
2814 static char *f (char * (*g) (char **, int), char **p, ...)
2819 s = g (p, va_arg (v,int));
2824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2825 function prototypes and stuff, but not '\xHH' hex character constants.
2826 These don't provoke an error unfortunately, instead are silently treated
2827 as 'x'. The following induces an error, until -std is added to get
2828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2829 array size at least. It's necessary to write '\x00'==0 to get something
2830 that's true only with -std. */
2831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2834 inside strings and character constants. */
2836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2838 int test (int i, double x);
2839 struct s1 {int (*f) (int a);};
2840 struct s2 {int (*f) (double a);};
2841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855 CC="$ac_save_CC $ac_arg"
2856 rm -f conftest.$ac_objext
2857 if { (ac_try="$ac_compile"
2859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2860 *) ac_try_echo
=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compile") 2>conftest.er1
2865 grep -v '^ *+' conftest.er1
>conftest.err
2867 cat conftest.err
>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && {
2870 test -z "$ac_c_werror_flag" ||
2871 test ! -s conftest.err
2872 } && test -s conftest.
$ac_objext; then
2873 ac_cv_prog_cc_c89
=$ac_arg
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.
$ac_ext >&5
2881 rm -f core conftest.err conftest.
$ac_objext
2882 test "x$ac_cv_prog_cc_c89" != "xno" && break
2884 rm -f conftest.
$ac_ext
2889 case "x$ac_cv_prog_cc_c89" in
2891 { echo "$as_me:$LINENO: result: none needed" >&5
2892 echo "${ECHO_T}none needed" >&6; } ;;
2894 { echo "$as_me:$LINENO: result: unsupported" >&5
2895 echo "${ECHO_T}unsupported" >&6; } ;;
2897 CC
="$CC $ac_cv_prog_cc_c89"
2898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2904 ac_cpp
='$CPP $CPPFLAGS'
2905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2913 if test "$GCC" = yes ; then
2914 if test "$SHLICC2" = yes ; then
2915 ac_cv_lbl_gcc_vers
=2
2918 { echo "$as_me:$LINENO: checking gcc version" >&5
2919 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2920 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2924 sed -e '/^gcc version /!d' \
2925 -e 's/^gcc version //' \
2926 -e 's/ .*//' -e 's/^[^0-9]*//' \
2930 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2931 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2932 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2937 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2938 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2939 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <sys/types.h>
2953 int frob(int, char *)
2958 rm -f conftest.
$ac_objext
2959 if { (ac_try
="$ac_compile"
2961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_lbl_cc_ansi_prototypes=yes
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2980 ac_cv_lbl_cc_ansi_prototypes=no
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2987 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2988 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2992 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2993 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2994 savedcflags="$CFLAGS"
2995 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2996 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <sys/types.h>
3009 int frob(int, char *)
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3018 *) ac_try_echo
=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1
>conftest.err
3025 cat conftest.err
>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.
$ac_objext; then
3031 ac_cv_lbl_cc_hpux_cc_aa
=yes
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.
$ac_ext >&5
3036 ac_cv_lbl_cc_hpux_cc_aa
=no
3039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3042 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3043 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3044 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
3045 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3046 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3047 { (exit 1); exit 1; }; }
3049 CFLAGS
="$savedcflags"
3050 V_CCOPT
="-Aa $V_CCOPT"
3052 cat >>confdefs.h
<<\_ACEOF
3053 #define _HPUX_SOURCE 1
3059 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3060 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3061 savedcflags
="$CFLAGS"
3063 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 cat >conftest.
$ac_ext <<_ACEOF
3069 cat confdefs.h
>>conftest.
$ac_ext
3070 cat >>conftest.
$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <sys/types.h>
3076 int frob(int, char *)
3081 rm -f conftest.
$ac_objext
3082 if { (ac_try
="$ac_compile"
3084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_lbl_cc_osf1_cc_std1=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_cv_lbl_cc_osf1_cc_std1=no
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3110 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3111 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3112 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3113 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3114 { (exit 1); exit 1; }; }
3116 CFLAGS="$savedcflags"
3117 V_CCOPT="-std1 $V_CCOPT"
3121 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3122 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3123 { (exit 1); exit 1; }; }
3127 V_INCLS="$V_INCLS -I/usr/local/include"
3128 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3133 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3138 # Presumed to be DEC OSF/1, Digital UNIX, or
3141 V_CCOPT="$V_CCOPT -g3"
3145 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3146 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3147 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <sys/types.h>
3160 struct a { int b; };
3161 void c(const struct a *)
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3170 *) ac_try_echo
=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3175 grep -v '^ *+' conftest.er1
>conftest.err
3177 cat conftest.err
>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.
$ac_objext; then
3183 ac_cv_lbl_cc_const_proto
=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.
$ac_ext >&5
3188 ac_cv_lbl_cc_const_proto
=no
3191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3194 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3195 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3196 if test $ac_cv_lbl_cc_const_proto = no
; then
3198 cat >>confdefs.h
<<\_ACEOF
3208 if test "$GCC" = yes ; then
3210 # On platforms where we build a shared library:
3212 # add options to generate position-independent code,
3213 # if necessary (it's the default in AIX and Darwin/OS X);
3215 # define option to set the soname of the shared library,
3216 # if the OS supports that;
3218 # add options to specify, at link time, a directory to
3219 # add to the run-time search path, if that's necessary.
3221 V_SHLIB_CMD
="\$(CC)"
3222 V_SHLIB_OPT
="-shared"
3228 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*|osf
*)
3230 # Platforms where the linker is the GNU linker
3231 # or accepts command-line arguments like
3232 # those the GNU linker accepts.
3234 # Some instruction sets require -fPIC on some
3235 # operating systems. Check for them. If you
3236 # have a combination that requires it, add it
3251 V_CCOPT
="$V_CCOPT $PIC_OPT"
3252 V_SONAME_OPT
="-Wl,-soname,"
3253 V_RPATH_OPT
="-Wl,-rpath,"
3257 V_CCOPT
="$V_CCOPT -fpic"
3259 # XXX - this assumes GCC is using the HP linker,
3260 # rather than the GNU linker, and that the "+h"
3261 # option is used on all HP-UX platforms, both .sl
3264 V_SONAME_OPT
="-Wl,+h,"
3266 # By default, directories specifed with -L
3267 # are added to the run-time search path, so
3268 # we don't add them in pcap-config.
3273 V_CCOPT
="$V_CCOPT -fpic"
3275 # XXX - this assumes GCC is using the Sun linker,
3276 # rather than the GNU linker.
3278 V_SONAME_OPT
="-Wl,-h,"
3279 V_RPATH_OPT
="-Wl,-R,"
3284 # Set the appropriate compiler flags and, on platforms
3285 # where we build a shared library:
3287 # add options to generate position-independent code,
3288 # if necessary (it's the default in Darwin/OS X);
3290 # if we generate ".so" shared libraries, define the
3291 # appropriate options for building the shared library;
3293 # add options to specify, at link time, a directory to
3294 # add to the run-time search path, if that's necessary.
3296 # Note: spaces after V_SONAME_OPT are significant; on
3297 # some platforms the soname is passed with a GCC-like
3298 # "-Wl,-soname,{soname}" option, with the soname part
3299 # of the option, while on other platforms the C compiler
3300 # driver takes it as a regular option with the soname
3301 # following the option. The same applies to V_RPATH_OPT.
3306 V_SHLIB_CMD
="\$(CC)"
3307 V_SHLIB_OPT
="-G -bnoentry -bexpall"
3310 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*)
3314 V_CCOPT
="$V_CCOPT -fpic"
3315 V_SHLIB_CMD
="\$(CC)"
3316 V_SHLIB_OPT
="-shared"
3317 V_SONAME_OPT
="-Wl,-soname,"
3318 V_RPATH_OPT
="-Wl,-rpath,"
3322 V_CCOPT
="$V_CCOPT +z"
3323 V_SHLIB_CMD
="\$(LD)"
3327 # By default, directories specifed with -L
3328 # are added to the run-time search path, so
3329 # we don't add them in pcap-config.
3335 # Presumed to be DEC OSF/1, Digital UNIX, or
3338 V_SHLIB_CMD
="\$(CC)"
3339 V_SHLIB_OPT
="-shared"
3340 V_SONAME_OPT
="-soname "
3341 V_RPATH_OPT
="-rpath "
3345 V_CCOPT
="$V_CCOPT -Kpic"
3346 V_SHLIB_CMD
="\$(CC)"
3354 { echo "$as_me:$LINENO: checking for inline" >&5
3355 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3356 save_CFLAGS
="$CFLAGS"
3358 if test "${ac_cv_lbl_inline+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 for ac_lbl_inline
in inline __inline__ __inline
3366 cat >conftest.
$ac_ext <<_ACEOF
3369 cat confdefs.h
>>conftest.
$ac_ext
3370 cat >>conftest.
$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #define inline $ac_lbl_inline
3373 static inline struct iltest *foo(void);
3379 static inline struct iltest *
3382 static struct iltest xxx;
3394 rm -f conftest.
$ac_objext
3395 if { (ac_try
="$ac_compile"
3397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_lbl_cc_inline=yes
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test "$ac_lbl_cc_inline" = yes ; then
3424 if test "$ac_lbl_cc_inline" = yes ; then
3425 ac_cv_lbl_inline=$ac_lbl_inline
3429 CFLAGS="$save_CFLAGS"
3430 if test ! -z "$ac_cv_lbl_inline" ; then
3431 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3432 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3434 { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3438 cat >>confdefs.h <<_ACEOF
3439 #define inline $ac_cv_lbl_inline
3443 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3444 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3445 if test "${ac_cv___attribute__+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3458 static void foo(void) __attribute__ ((noreturn));
3467 main(int argc, char **argv)
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3477 *) ac_try_echo
=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1
>conftest.err
3484 cat conftest.err
>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.
$ac_objext; then
3490 ac_cv___attribute__
=yes
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.
$ac_ext >&5
3495 ac_cv___attribute__
=no
3498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3501 if test "$ac_cv___attribute__" = "yes"; then
3503 cat >>confdefs.h
<<\_ACEOF
3504 #define HAVE___ATTRIBUTE__ 1
3507 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3509 V_DEFS
="$V_DEFS -D_U_=\"\""
3511 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3512 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3516 ac_cpp
='$CPP $CPPFLAGS'
3517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3520 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3522 # On Suns, sometimes $CPP names a directory.
3523 if test -n "$CPP" && test -d "$CPP"; then
3526 if test -z "$CPP"; then
3527 if test "${ac_cv_prog_CPP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 # Double quotes because CPP needs to be expanded
3531 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534 for ac_c_preproc_warn_flag
in '' yes
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat >conftest.
$ac_ext <<_ACEOF
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3549 # include <limits.h>
3551 # include <assert.h>
3555 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null && {
3568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 # Broken: fails on valid input.
3580 rm -f conftest.err conftest.$ac_ext
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <ac_nonexistent.h>
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1
>conftest.err
3602 cat conftest.err
>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev
/null
&& {
3605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3608 # Broken: success on invalid input.
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.
$ac_ext >&5
3614 # Passes both tests.
3619 rm -f conftest.err conftest.
$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.
$ac_ext
3624 if $ac_preproc_ok; then
3636 { echo "$as_me:$LINENO: result: $CPP" >&5
3637 echo "${ECHO_T}$CPP" >&6; }
3639 for ac_c_preproc_warn_flag
in '' yes
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.
$ac_ext <<_ACEOF
3650 cat confdefs.h
>>conftest.
$ac_ext
3651 cat >>conftest.
$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3654 # include <limits.h>
3656 # include <assert.h>
3660 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 # Broken: fails on valid input.
3685 rm -f conftest.err conftest.$ac_ext
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3700 *) ac_try_echo
=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev
/null
&& {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.
$ac_ext >&5
3719 # Passes both tests.
3724 rm -f conftest.err conftest.
$ac_ext
3727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728 rm -f conftest.err conftest.
$ac_ext
3729 if $ac_preproc_ok; then
3732 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&5
3734 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }
3740 ac_cpp
='$CPP $CPPFLAGS'
3741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3747 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_GREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 # Extract the first word of "grep ggrep" to use in msg output
3752 if test -z "$GREP"; then
3753 set dummy
grep ggrep
; ac_prog_name
=$2
3754 if test "${ac_cv_path_GREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_path_GREP_found
=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_prog
in grep ggrep
; do
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3768 # Check for GNU ac_path_GREP and select it if it is found.
3769 # Check for GNU $ac_path_GREP
3770 case `"$ac_path_GREP" --version 2>&1` in
3772 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'GREP' >> "conftest.nl"
3782 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3783 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3784 ac_count
=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_GREP
="$ac_path_GREP"
3788 ac_path_GREP_max
=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3793 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3797 $ac_path_GREP_found && break 3
3807 GREP
="$ac_cv_path_GREP"
3808 if test -z "$GREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3815 ac_cv_path_GREP
=$GREP
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3822 GREP
="$ac_cv_path_GREP"
3825 { echo "$as_me:$LINENO: checking for egrep" >&5
3826 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3831 then ac_cv_path_EGREP
="$GREP -E"
3833 # Extract the first word of "egrep" to use in msg output
3834 if test -z "$EGREP"; then
3835 set dummy
egrep; ac_prog_name
=$2
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_path_EGREP_found
=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3845 test -z "$as_dir" && as_dir
=.
3846 for ac_prog
in egrep; do
3847 for ac_exec_ext
in '' $ac_executable_extensions; do
3848 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3849 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3850 # Check for GNU ac_path_EGREP and select it if it is found.
3851 # Check for GNU $ac_path_EGREP
3852 case `"$ac_path_EGREP" --version 2>&1` in
3854 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3857 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 echo 'EGREP' >> "conftest.nl"
3864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3865 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3866 ac_count
=`expr $ac_count + 1`
3867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_EGREP
="$ac_path_EGREP"
3870 ac_path_EGREP_max
=$ac_count
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3875 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3879 $ac_path_EGREP_found && break 3
3889 EGREP
="$ac_cv_path_EGREP"
3890 if test -z "$EGREP"; then
3891 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3897 ac_cv_path_EGREP
=$EGREP
3903 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3904 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3905 EGREP
="$ac_cv_path_EGREP"
3908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3932 rm -f conftest.
$ac_objext
3933 if { (ac_try
="$ac_compile"
3935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3949 ac_cv_header_stdc=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_cv_header_stdc=no
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_header_stdc = yes; then
3960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "memchr" >/dev/null 2>&1; then
3974 ac_cv_header_stdc=no
3980 if test $ac_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "free" >/dev/null 2>&1; then
3995 ac_cv_header_stdc=no
4001 if test $ac_cv_header_stdc = yes; then
4002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4003 if test "$cross_compiling" = yes; then
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4014 #if ((' ' & 0x0FF) == 0x020)
4015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4018 # define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
4037 rm -f conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4041 *) ac_try_echo
=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_header_stdc=no
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4074 if test $ac_cv_header_stdc = yes; then
4076 cat >>confdefs.h <<\_ACEOF
4077 #define STDC_HEADERS 1
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093 inttypes.h stdint.h unistd.h
4095 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4109 #include <$ac_header>
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4115 *) ac_try_echo
=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1
>conftest.err
4122 cat conftest.err
>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.
$ac_objext; then
4128 eval "$as_ac_Header=yes"
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 eval "$as_ac_Header=no"
4136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4138 ac_res
=`eval echo '${'$as_ac_Header'}'`
4139 { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 echo "${ECHO_T}$ac_res" >&6; }
4141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h
<<_ACEOF
4143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152 for ac_header
in sys
/bitypes.h
4154 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_res
=`eval echo '${'$as_ac_Header'}'`
4162 { echo "$as_me:$LINENO: result: $ac_res" >&5
4163 echo "${ECHO_T}$ac_res" >&6; }
4165 # Is the header compilable?
4166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4168 cat >conftest.
$ac_ext <<_ACEOF
4171 cat confdefs.h
>>conftest.
$ac_ext
4172 cat >>conftest.
$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4175 #include <$ac_header>
4177 rm -f conftest.
$ac_objext
4178 if { (ac_try
="$ac_compile"
4180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_header_compiler=yes
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_header_compiler=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4204 echo "${ECHO_T}$ac_header_compiler" >&6; }
4206 # Is the header present?
4207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <$ac_header>
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4220 *) ac_try_echo
=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1
>conftest.err
4227 cat conftest.err
>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev
/null
&& {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4233 ac_header_preproc
=yes
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4238 ac_header_preproc
=no
4241 rm -f conftest.err conftest.
$ac_ext
4242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4243 echo "${ECHO_T}$ac_header_preproc" >&6; }
4245 # So? What about this header?
4246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4252 ac_header_preproc
=yes
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 eval "$as_ac_Header=\$ac_header_preproc"
4277 ac_res
=`eval echo '${'$as_ac_Header'}'`
4278 { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h
<<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 { echo "$as_me:$LINENO: checking for int8_t" >&5
4293 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_int8_t+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 #ifdef HAVE_SYS_BITYPES_H
4305 #include <sys/bitypes.h>
4308 typedef int8_t ac__type_new_;
4312 if ((ac__type_new_ *) 0)
4314 if (sizeof (ac__type_new_))
4320 rm -f conftest.
$ac_objext
4321 if { (ac_try
="$ac_compile"
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_type_int8_t=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_type_int8_t=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4349 if test $ac_cv_type_int8_t = yes; then
4353 cat >>confdefs.h <<\_ACEOF
4354 #define int8_t signed char
4359 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4360 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4361 if test "${ac_cv_type_u_int8_t+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 #ifdef HAVE_SYS_BITYPES_H
4372 #include <sys/bitypes.h>
4375 typedef u_int8_t ac__type_new_;
4379 if ((ac__type_new_ *) 0)
4381 if (sizeof (ac__type_new_))
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4391 *) ac_try_echo
=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1
>conftest.err
4398 cat conftest.err
>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.
$ac_objext; then
4404 ac_cv_type_u_int8_t
=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.
$ac_ext >&5
4409 ac_cv_type_u_int8_t
=no
4412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4414 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4415 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4416 if test $ac_cv_type_u_int8_t = yes; then
4420 cat >>confdefs.h
<<\_ACEOF
4421 #define u_int8_t unsigned char
4426 { echo "$as_me:$LINENO: checking for int16_t" >&5
4427 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4428 if test "${ac_cv_type_int16_t+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4438 typedef int16_t ac__type_new_;
4442 if ((ac__type_new_ *) 0)
4444 if (sizeof (ac__type_new_))
4450 rm -f conftest.
$ac_objext
4451 if { (ac_try
="$ac_compile"
4453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4467 ac_cv_type_int16_t=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_cv_type_int16_t=no
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4478 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4479 if test $ac_cv_type_int16_t = yes; then
4483 cat >>confdefs.h <<\_ACEOF
4484 #define int16_t short
4487 $ac_includes_default
4488 #ifdef HAVE_SYS_BITYPES_H
4489 #include <sys/bitypes.h>
4493 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4494 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4495 if test "${ac_cv_type_u_int16_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4505 #ifdef HAVE_SYS_BITYPES_H
4506 #include <sys/bitypes.h>
4509 typedef u_int16_t ac__type_new_;
4513 if ((ac__type_new_ *) 0)
4515 if (sizeof (ac__type_new_))
4521 rm -f conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4525 *) ac_try_echo
=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_compile") 2>conftest.er1
4530 grep -v '^ *+' conftest.er1
>conftest.err
4532 cat conftest.err
>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && {
4535 test -z "$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 } && test -s conftest.
$ac_objext; then
4538 ac_cv_type_u_int16_t
=yes
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4543 ac_cv_type_u_int16_t
=no
4546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4548 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4549 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4550 if test $ac_cv_type_u_int16_t = yes; then
4554 cat >>confdefs.h
<<\_ACEOF
4555 #define u_int16_t unsigned short
4560 { echo "$as_me:$LINENO: checking for int32_t" >&5
4561 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4562 if test "${ac_cv_type_int32_t+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.
$ac_ext <<_ACEOF
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 #ifdef HAVE_SYS_BITYPES_H
4573 #include <sys/bitypes.h>
4576 typedef int32_t ac__type_new_;
4580 if ((ac__type_new_ *) 0)
4582 if (sizeof (ac__type_new_))
4588 rm -f conftest.
$ac_objext
4589 if { (ac_try
="$ac_compile"
4591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_type_int32_t=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_type_int32_t=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4616 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4617 if test $ac_cv_type_int32_t = yes; then
4621 cat >>confdefs.h <<\_ACEOF
4627 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4628 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_u_int32_t+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 #ifdef HAVE_SYS_BITYPES_H
4640 #include <sys/bitypes.h>
4643 typedef u_int32_t ac__type_new_;
4647 if ((ac__type_new_ *) 0)
4649 if (sizeof (ac__type_new_))
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4659 *) ac_try_echo
=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.
$ac_objext; then
4672 ac_cv_type_u_int32_t
=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 ac_cv_type_u_int32_t
=no
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4683 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4684 if test $ac_cv_type_u_int32_t = yes; then
4688 cat >>confdefs.h
<<\_ACEOF
4689 #define u_int32_t unsigned int
4694 { echo "$as_me:$LINENO: checking for int64_t" >&5
4695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4696 if test "${ac_cv_type_int64_t+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #ifdef HAVE_SYS_BITYPES_H
4707 #include <sys/bitypes.h>
4710 typedef int64_t ac__type_new_;
4714 if ((ac__type_new_ *) 0)
4716 if (sizeof (ac__type_new_))
4722 rm -f conftest.
$ac_objext
4723 if { (ac_try
="$ac_compile"
4725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 ac_cv_type_int64_t=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_cv_type_int64_t=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4750 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4751 if test $ac_cv_type_int64_t = yes; then
4755 cat >>confdefs.h <<\_ACEOF
4756 #define int64_t long long
4761 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4762 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4763 if test "${ac_cv_type_u_int64_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #ifdef HAVE_SYS_BITYPES_H
4774 #include <sys/bitypes.h>
4777 typedef u_int64_t ac__type_new_;
4781 if ((ac__type_new_ *) 0)
4783 if (sizeof (ac__type_new_))
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4793 *) ac_try_echo
=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.
$ac_objext; then
4806 ac_cv_type_u_int64_t
=yes
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4811 ac_cv_type_u_int64_t
=no
4814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4817 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4818 if test $ac_cv_type_u_int64_t = yes; then
4822 cat >>confdefs.h
<<\_ACEOF
4823 #define u_int64_t unsigned long long
4830 # Try to arrange for large file support.
4832 # Check whether --enable-largefile was given.
4833 if test "${enable_largefile+set}" = set; then
4834 enableval
=$enable_largefile;
4837 if test "$enable_largefile" != no
; then
4839 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4840 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4841 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_cv_sys_largefile_CC
=no
4845 if test "$GCC" != yes; then
4848 # IRIX 6.2 and later do not support large files by default,
4849 # so use the C compiler's -n32 option if that helps.
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #include <sys/types.h>
4857 /* Check that off_t can represent 2**63 - 1 correctly.
4858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4859 since some C++ compilers masquerading as C compilers
4860 incorrectly reject 9223372036854775807. */
4861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4863 && LARGE_OFF_T % 2147483647 == 1)
4873 rm -f conftest.
$ac_objext
4874 if { (ac_try
="$ac_compile"
4876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4898 rm -f core conftest.err conftest.$ac_objext
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4904 *) ac_try_echo
=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1
>conftest.err
4911 cat conftest.err
>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.
$ac_objext; then
4917 ac_cv_sys_largefile_CC
=' -n32'; break
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.
$ac_ext >&5
4925 rm -f core conftest.err conftest.
$ac_objext
4929 rm -f conftest.
$ac_ext
4932 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4934 if test "$ac_cv_sys_largefile_CC" != no
; then
4935 CC
=$CC$ac_cv_sys_largefile_CC
4938 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 cat >conftest.
$ac_ext <<_ACEOF
4947 cat confdefs.h
>>conftest.
$ac_ext
4948 cat >>conftest.
$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4967 rm -f conftest.
$ac_objext
4968 if { (ac_try
="$ac_compile"
4970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4984 ac_cv_sys_file_offset_bits=no; break
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #define _FILE_OFFSET_BITS 64
5000 #include <sys/types.h>
5001 /* Check that off_t can represent 2**63 - 1 correctly.
5002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5003 since some C++ compilers masquerading as C compilers
5004 incorrectly reject 9223372036854775807. */
5005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5007 && LARGE_OFF_T % 2147483647 == 1)
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5021 *) ac_try_echo
=$ac_try;;
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.
$ac_objext; then
5034 ac_cv_sys_file_offset_bits
=64; break
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.
$ac_ext >&5
5042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5043 ac_cv_sys_file_offset_bits
=unknown
5047 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5048 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5049 case $ac_cv_sys_file_offset_bits in #(
5052 cat >>confdefs.h
<<_ACEOF
5053 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058 if test $ac_cv_sys_file_offset_bits = unknown
; then
5059 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5060 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5061 if test "${ac_cv_sys_large_files+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5068 cat confdefs.h
>>conftest.
$ac_ext
5069 cat >>conftest.
$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5088 rm -f conftest.
$ac_objext
5089 if { (ac_try
="$ac_compile"
5091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_compile") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_objext; then
5105 ac_cv_sys_large_files=no; break
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #define _LARGE_FILES 1
5121 #include <sys/types.h>
5122 /* Check that off_t can represent 2**63 - 1 correctly.
5123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5124 since some C++ compilers masquerading as C compilers
5125 incorrectly reject 9223372036854775807. */
5126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5128 && LARGE_OFF_T % 2147483647 == 1)
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5142 *) ac_try_echo
=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1
>conftest.err
5149 cat conftest.err
>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.
$ac_objext; then
5155 ac_cv_sys_large_files
=1; break
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5164 ac_cv_sys_large_files
=unknown
5168 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5169 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5170 case $ac_cv_sys_large_files in #(
5173 cat >>confdefs.h
<<_ACEOF
5174 #define _LARGE_FILES $ac_cv_sys_large_files
5182 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5183 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5184 if test "${ac_cv_sys_largefile_source+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 cat >conftest.
$ac_ext <<_ACEOF
5191 cat confdefs.h
>>conftest.
$ac_ext
5192 cat >>conftest.
$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5198 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5203 rm -f conftest.
$ac_objext conftest
$ac_exeext
5204 if { (ac_try
="$ac_link"
5206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest$ac_exeext &&
5220 $as_test_x conftest$ac_exeext; then
5221 ac_cv_sys_largefile_source=no; break
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230 conftest$ac_exeext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #define _LARGEFILE_SOURCE 1
5242 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (ac_try="$ac_link"
5250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5251 *) ac_try_echo
=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1
>conftest.err
5258 cat conftest.err
>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest
$ac_exeext &&
5264 $as_test_x conftest
$ac_exeext; then
5265 ac_cv_sys_largefile_source
=1; break
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.
$ac_ext >&5
5273 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5274 conftest
$ac_exeext conftest.
$ac_ext
5275 ac_cv_sys_largefile_source
=unknown
5279 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5281 case $ac_cv_sys_largefile_source in #(
5284 cat >>confdefs.h
<<_ACEOF
5285 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5291 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5292 # in glibc 2.1.3, but that breaks too many other things.
5293 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5294 if test $ac_cv_sys_largefile_source != unknown
; then
5296 cat >>confdefs.h
<<\_ACEOF
5297 #define HAVE_FSEEKO 1
5307 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
5309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_res
=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.
$ac_objext
5333 if { (ac_try
="$ac_compile"
5335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5375 *) ac_try_echo
=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1
>conftest.err
5382 cat conftest.err
>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev
/null
&& {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5388 ac_header_preproc
=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.
$ac_ext >&5
5393 ac_header_preproc
=no
5396 rm -f conftest.err conftest.
$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc
=yes
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 eval "$as_ac_Header=\$ac_header_preproc"
5432 ac_res
=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h
<<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 for ac_header
in net
/pfvar.h
5449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/socket.h>
5465 #include <$ac_header>
5467 rm -f conftest.
$ac_objext
5468 if { (ac_try
="$ac_compile"
5470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 eval "$as_ac_Header=yes"
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 eval "$as_ac_Header=no"
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5506 if test "$ac_cv_header_net_pfvar_h" = yes; then
5508 # Check for various PF actions.
5510 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5511 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 #include <sys/socket.h>
5521 #include <net/pfvar.h>
5525 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5534 *) ac_try_echo
=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1
>conftest.err
5541 cat conftest.err
>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.
$ac_objext; then
5548 { echo "$as_me:$LINENO: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6; }
5551 cat >>confdefs.h
<<\_ACEOF
5552 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5567 for ac_header
in netinet
/if_ether.h
5569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5572 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 #include <sys/socket.h>
5584 #include <$ac_header>
5586 rm -f conftest.
$ac_objext
5587 if { (ac_try
="$ac_compile"
5589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 eval "$as_ac_Header=yes"
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 eval "$as_ac_Header=no"
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5625 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5627 # The simple test didn't work.
5628 # Do we need to include <net/if.h> first?
5629 # Unset ac_cv_header_netinet_if_ether_h so we don't
5630 # treat the previous failure as a cached value and
5631 # suppress the next test.
5633 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5634 echo "$as_me: Rechecking with some additional includes" >&6;}
5635 unset ac_cv_header_netinet_if_ether_h
5637 for ac_header in netinet/if_ether.h
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <sys/types.h>
5652 #include <sys/socket.h>
5653 #include <netinet/in.h>
5658 #include <$ac_header>
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5664 *) ac_try_echo
=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.
$ac_objext; then
5677 eval "$as_ac_Header=yes"
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5682 eval "$as_ac_Header=no"
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 ac_res
=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h
<<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5701 if test "$GCC" = yes ; then
5702 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5703 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5704 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 * This generates a "duplicate case value" when fixincludes
5717 # include <sys/types.h>
5718 # include <sys/time.h>
5719 # include <sys/ioctl.h>
5720 # ifdef HAVE_SYS_IOCCOM_H
5721 # include <sys/ioccom.h>
5734 rm -f conftest.
$ac_objext
5735 if { (ac_try
="$ac_compile"
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_lbl_gcc_fixincludes=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_lbl_gcc_fixincludes=no
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5763 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5764 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5765 # Don't cache failure
5766 unset ac_cv_lbl_gcc_fixincludes
5767 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5768 echo "$as_me: error: see the INSTALL for more info" >&2;}
5769 { (exit 1); exit 1; }; }
5775 for ac_func in strerror strlcpy
5777 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5799 # include <limits.h>
5801 # include <assert.h>
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5832 *) ac_try_echo
=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest
$ac_exeext &&
5845 $as_test_x conftest
$ac_exeext; then
5846 eval "$as_ac_var=yes"
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 eval "$as_ac_var=no"
5854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5855 conftest
$ac_exeext conftest.
$ac_ext
5857 ac_res
=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h
<<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5872 for ac_func
in vsnprintf snprintf
5874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5877 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5888 #define $ac_func innocuous_$ac_func
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func (); below.
5892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 <limits.h> exists even on freestanding compilers. */
5896 # include <limits.h>
5898 # include <assert.h>
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined __stub_$ac_func || defined __stub___$ac_func
5925 rm -f conftest.
$ac_objext conftest
$ac_exeext
5926 if { (ac_try
="$ac_link"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 eval "$as_ac_var=yes"
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 eval "$as_ac_var=no"
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext conftest.$ac_ext
5954 ac_res=`eval echo '${'$as_ac_var'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5967 if test $needsnprintf = yes; then
5968 case " $LIBOBJS " in
5969 *" snprintf.$ac_objext "* ) ;;
5970 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5977 # Do this before checking for ether_hostton(), as it's a
5978 # "gethostbyname() -ish function".
5981 # Most operating systems have gethostbyname() in the default searched
5982 # libraries (i.e. libc):
5983 # Some OSes (eg. Solaris) place it in libnsl
5984 # Some strange OSes (SINIX) have it in libsocket:
5985 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5986 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5987 if test "${ac_cv_search_gethostbyname+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_func_search_save_LIBS=$LIBS
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6004 char gethostbyname ();
6008 return gethostbyname ();
6013 for ac_lib in '' nsl socket resolv; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6024 *) ac_try_echo
=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1
>conftest.err
6031 cat conftest.err
>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest
$ac_exeext &&
6037 $as_test_x conftest
$ac_exeext; then
6038 ac_cv_search_gethostbyname
=$ac_res
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6046 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6048 if test "${ac_cv_search_gethostbyname+set}" = set; then
6052 if test "${ac_cv_search_gethostbyname+set}" = set; then
6055 ac_cv_search_gethostbyname
=no
6058 LIBS
=$ac_func_search_save_LIBS
6060 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6061 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6062 ac_res
=$ac_cv_search_gethostbyname
6063 if test "$ac_res" != no
; then
6064 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6068 # Unfortunately libsocket sometimes depends on libnsl and
6069 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6070 if test "$ac_cv_search_gethostbyname" = "no"
6072 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6073 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6074 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_check_lib_save_LIBS
=$LIBS
6078 LIBS
="-lsocket -lnsl $LIBS"
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6086 /* Override any GCC internal prototype to avoid an error.
6087 Use char because int might match the return type of a GCC
6088 builtin and then its argument prototype would still apply. */
6092 char gethostbyname ();
6096 return gethostbyname ();
6101 rm -f conftest.
$ac_objext conftest
$ac_exeext
6102 if { (ac_try
="$ac_link"
6104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_lib_socket_gethostbyname=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_lib_socket_gethostbyname=no
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6131 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6132 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6133 if test $ac_cv_lib_socket_gethostbyname = yes; then
6134 LIBS="-lsocket -lnsl $LIBS"
6138 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6140 if test "${ac_cv_search_socket+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_func_search_save_LIBS=$LIBS
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6166 for ac_lib in '' socket; do
6167 if test -z "$ac_lib"; then
6168 ac_res="none required"
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6177 *) ac_try_echo
=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest
$ac_exeext &&
6190 $as_test_x conftest
$ac_exeext; then
6191 ac_cv_search_socket
=$ac_res
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.
$ac_ext >&5
6199 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6201 if test "${ac_cv_search_socket+set}" = set; then
6205 if test "${ac_cv_search_socket+set}" = set; then
6208 ac_cv_search_socket
=no
6211 LIBS
=$ac_func_search_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6214 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6215 ac_res
=$ac_cv_search_socket
6216 if test "$ac_res" != no
; then
6217 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6220 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6221 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_socket_socket+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_check_lib_save_LIBS
=$LIBS
6226 LIBS
="-lsocket -lnsl $LIBS"
6227 cat >conftest.
$ac_ext <<_ACEOF
6230 cat confdefs.h
>>conftest.
$ac_ext
6231 cat >>conftest.
$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6249 rm -f conftest.
$ac_objext conftest
$ac_exeext
6250 if { (ac_try
="$ac_link"
6252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest$ac_exeext &&
6266 $as_test_x conftest$ac_exeext; then
6267 ac_cv_lib_socket_socket=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_lib_socket_socket=no
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6280 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6281 if test $ac_cv_lib_socket_socket = yes; then
6282 LIBS="-lsocket -lnsl $LIBS"
6287 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6288 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6289 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6290 if test "${ac_cv_search_putmsg+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_func_search_save_LIBS=$LIBS
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6301 /* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6316 for ac_lib in '' str; do
6317 if test -z "$ac_lib"; then
6318 ac_res="none required"
6321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6327 *) ac_try_echo
=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1
>conftest.err
6334 cat conftest.err
>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest
$ac_exeext &&
6340 $as_test_x conftest
$ac_exeext; then
6341 ac_cv_search_putmsg
=$ac_res
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6351 if test "${ac_cv_search_putmsg+set}" = set; then
6355 if test "${ac_cv_search_putmsg+set}" = set; then
6358 ac_cv_search_putmsg
=no
6361 LIBS
=$ac_func_search_save_LIBS
6363 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6364 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6365 ac_res
=$ac_cv_search_putmsg
6366 if test "$ac_res" != no
; then
6367 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6374 # You are in a twisty little maze of UN*Xes, all different.
6375 # Some might not have ether_hostton().
6376 # Some might have it, but not declare it in any header file.
6377 # Some might have it, but declare it in <netinet/if_ether.h>.
6378 # Some might have it, but declare it in <netinet/ether.h>
6379 # (And some might have it but document it as something declared in
6380 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6382 # Before you is a C compiler.
6385 for ac_func
in ether_hostton
6387 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.
$ac_ext <<_ACEOF
6396 cat confdefs.h
>>conftest.
$ac_ext
6397 cat >>conftest.
$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6438 rm -f conftest.
$ac_objext conftest
$ac_exeext
6439 if { (ac_try
="$ac_link"
6441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 eval "$as_ac_var=yes"
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 eval "$as_ac_var=no"
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6478 if test "$ac_cv_func_ether_hostton" = yes; then
6480 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6482 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6484 # Yes. Does it declare ether_hostton()?
6486 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6487 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6488 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netinet/in.h>
6501 #include <arpa/inet.h>
6505 #include <netinet/if_ether.h>
6511 #ifndef ether_hostton
6512 (void) ether_hostton;
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6523 *) ac_try_echo
=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6528 grep -v '^ *+' conftest.er1
>conftest.err
6530 cat conftest.err
>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.
$ac_objext; then
6536 ac_cv_have_decl_ether_hostton
=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.
$ac_ext >&5
6541 ac_cv_have_decl_ether_hostton
=no
6544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6547 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6548 if test $ac_cv_have_decl_ether_hostton = yes; then
6551 cat >>confdefs.h
<<\_ACEOF
6552 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6562 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6564 # No, how about <netinet/ether.h>, as on Linux?
6567 for ac_header
in netinet
/ether.h
6569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_res
=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6580 # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.
$ac_ext <<_ACEOF
6586 cat confdefs.h
>>conftest.
$ac_ext
6587 cat >>conftest.
$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6592 rm -f conftest.
$ac_objext
6593 if { (ac_try
="$ac_compile"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_header_compiler=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_compiler=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <$ac_header>
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6635 *) ac_try_echo
=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1
>conftest.err
6642 cat conftest.err
>&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev
/null
&& {
6645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6648 ac_header_preproc
=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.
$ac_ext >&5
6653 ac_header_preproc
=no
6656 rm -f conftest.err conftest.
$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc
=yes
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 eval "$as_ac_Header=\$ac_header_preproc"
6692 ac_res
=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h
<<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 if test "$ac_cv_header_netinet_ether_h" = yes; then
6708 # We have it - does it declare ether_hostton()?
6709 # Unset ac_cv_have_decl_ether_hostton so we don't
6710 # treat the previous failure as a cached value and
6711 # suppress the next test.
6713 unset ac_cv_have_decl_ether_hostton
6714 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6715 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6716 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 cat >conftest.
$ac_ext <<_ACEOF
6722 cat confdefs.h
>>conftest.
$ac_ext
6723 cat >>conftest.
$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 #include <netinet/ether.h>
6732 #ifndef ether_hostton
6733 (void) ether_hostton;
6740 rm -f conftest.
$ac_objext
6741 if { (ac_try
="$ac_compile"
6743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 ac_cv_have_decl_ether_hostton=yes
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 ac_cv_have_decl_ether_hostton=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6768 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6769 if test $ac_cv_have_decl_ether_hostton = yes; then
6772 cat >>confdefs.h <<\_ACEOF
6773 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6782 # Is ether_hostton() declared?
6784 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6786 # No, we'll have to declare it ourselves.
6787 # Do we have "struct ether_addr"?
6789 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6790 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6791 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <sys/socket.h>
6803 #include <netinet/in.h>
6804 #include <arpa/inet.h>
6808 #include <netinet/if_ether.h>
6811 typedef struct ether_addr ac__type_new_;
6815 if ((ac__type_new_ *) 0)
6817 if (sizeof (ac__type_new_))
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6827 *) ac_try_echo
=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1
>conftest.err
6834 cat conftest.err
>&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.
$ac_objext; then
6840 ac_cv_type_struct_ether_addr
=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.
$ac_ext >&5
6845 ac_cv_type_struct_ether_addr
=no
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6851 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6852 if test $ac_cv_type_struct_ether_addr = yes; then
6854 cat >>confdefs.h
<<_ACEOF
6855 #define HAVE_STRUCT_ETHER_ADDR 1
6862 cat >>confdefs.h
<<\_ACEOF
6863 #define HAVE_DECL_ETHER_HOSTTON 0
6868 cat >>confdefs.h
<<\_ACEOF
6869 #define HAVE_DECL_ETHER_HOSTTON 1
6875 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6876 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6877 # Check whether --enable-protochain was given.
6878 if test "${enable_protochain+set}" = set; then
6879 enableval
=$enable_protochain;
6882 case "x$enable_protochain" in
6883 xyes
) enable_protochain
=enabled
;;
6884 xno
) enable_protochain
=disabled
;;
6885 x
) enable_protochain
=enabled
;;
6888 if test "$enable_protochain" = "disabled"; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define NO_PROTOCHAIN 1
6895 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6896 echo "${ECHO_T}${enable_protochain}" >&6; }
6899 # SITA support is mutually exclusive with native capture support;
6900 # "--with-sita" selects SITA support.
6903 # Check whether --with-sita was given.
6904 if test "${with_sita+set}" = set; then
6906 if test ! "x
$withval" = "xno
" ; then
6908 cat >>confdefs.h <<\_ACEOF
6912 { echo "$as_me:$LINENO: Enabling SITA ACN support
" >&5
6913 echo "$as_me: Enabling SITA ACN support
" >&6;}
6920 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6921 { { echo "$as_me:$LINENO: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&5
6922 echo "$as_me: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&2;}
6923 { (exit 1); exit 1; }; }
6926 # Check whether --with-pcap was given.
6927 if test "${with_pcap+set}" = set; then
6931 { echo "$as_me:$LINENO: checking packet capture
type" >&5
6932 echo $ECHO_N "checking packet capture
type...
$ECHO_C" >&6; }
6933 if test ! -z "$with_pcap" ; then
6935 elif test -r /dev/bpf -o -h /dev/bpf ; then
6937 # Cloning BPF device.
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_CLONING_BPF 1
6945 elif test -r /dev/bpf0 ; then
6947 elif test -r /usr/include/net/pfilt.h ; then
6949 elif test -r /dev/enet ; then
6951 elif test -r /dev/nit ; then
6953 elif test -r /usr/include/sys/net/nit.h ; then
6955 elif test -r /usr/include/linux/socket.h ; then
6957 elif test -r /usr/include/net/raw.h ; then
6959 elif test -r /usr/include/odmi.h ; then
6961 # On AIX, the BPF devices might not yet be present - they're
6962 # created the first time libpcap runs after booting.
6963 # We check for odmi.h instead.
6966 elif test -c /dev/bpf0 ; then # check again in case not readable
6968 elif test -r /usr/include/sys/dlpi.h ; then
6970 elif test -c /dev/enet ; then # check again in case not readable
6972 elif test -c /dev/nit ; then # check again in case not readable
6977 { echo "$as_me:$LINENO: result
: $V_PCAP" >&5
6978 echo "${ECHO_T}$V_PCAP" >&6; }
6981 # Do capture-mechanism-dependent tests.
6986 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6987 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6988 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6989 # private version also existed, which did not have the same APIs.
6990 # Due to a gcc bug, the default search path for 32-bit libraries does
6991 # not include /lib, we add it explicitly here.
6992 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6993 # Also, due to the bug above applications that link to libpcap with
6994 # libdlpi will have to add "-L/lib
" option to "configure
".
6996 saved_ldflags=$LDFLAGS
6997 LDFLAGS="$LIBS -L/lib
"
6998 { echo "$as_me:$LINENO: checking
for dlpi_walk
in -ldlpi" >&5
6999 echo $ECHO_N "checking
for dlpi_walk
in -ldlpi...
$ECHO_C" >&6; }
7000 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7001 echo $ECHO_N "(cached
) $ECHO_C" >&6
7003 ac_check_lib_save_LIBS=$LIBS
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7012 /* Override any GCC internal prototype to avoid an error.
7013 Use char because int might match the return type of a GCC
7014 builtin and then its argument prototype would still apply. */
7022 return dlpi_walk ();
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (ac_try="$ac_link"
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_link") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest$ac_exeext &&
7044 $as_test_x conftest$ac_exeext; then
7045 ac_cv_lib_dlpi_dlpi_walk=yes
7047 echo "$as_me: failed program was
:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_lib_dlpi_dlpi_walk=no
7053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7054 conftest$ac_exeext conftest.$ac_ext
7055 LIBS=$ac_check_lib_save_LIBS
7057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dlpi_dlpi_walk" >&5
7058 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7059 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_LIBDLPI 1
7071 LDFLAGS=$saved_ldflags
7074 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7077 { echo "$as_me:$LINENO: checking whether
<sys
/dlpi.h
> is usable
" >&5
7078 echo $ECHO_N "checking whether
<sys
/dlpi.h
> is usable...
$ECHO_C" >&6; }
7079 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7080 echo $ECHO_N "(cached
) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 #include <sys/types.h>
7090 #include <sys/time.h>
7091 #include <sys/dlpi.h>
7096 int i = DL_PROMISC_PHYS;
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_sys_dlpi_usable=yes
7120 echo "$as_me: failed program was
:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_sys_dlpi_usable=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 { echo "$as_me:$LINENO: result
: $ac_cv_sys_dlpi_usable" >&5
7130 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7131 if test $ac_cv_sys_dlpi_usable = no ; then
7132 { { echo "$as_me:$LINENO: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&5
7133 echo "$as_me: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&2;}
7134 { (exit 1); exit 1; }; }
7138 # Check whether we have a /dev/dlpi device or have multiple devices.
7140 { echo "$as_me:$LINENO: checking
for /dev
/dlpi device
" >&5
7141 echo $ECHO_N "checking
for /dev
/dlpi device...
$ECHO_C" >&6; }
7142 if test -c /dev/dlpi ; then
7143 { echo "$as_me:$LINENO: result
: yes" >&5
7144 echo "${ECHO_T}yes" >&6; }
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DEV_DLPI 1
7151 { echo "$as_me:$LINENO: result
: no
" >&5
7152 echo "${ECHO_T}no
" >&6; }
7154 { echo "$as_me:$LINENO: checking
for $dir directory
" >&5
7155 echo $ECHO_N "checking
for $dir directory...
$ECHO_C" >&6; }
7156 if test -d $dir ; then
7157 { echo "$as_me:$LINENO: result
: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7160 cat >>confdefs.h <<_ACEOF
7161 #define PCAP_DEV_PREFIX "$dir"
7165 { echo "$as_me:$LINENO: result
: no
" >&5
7166 echo "${ECHO_T}no
" >&6; }
7171 # This check is for Solaris with DLPI support for passive modes.
7172 # See dlpi(7P) for more details.
7174 { echo "$as_me:$LINENO: checking
if dl_passive_req_t struct exists
" >&5
7175 echo $ECHO_N "checking
if dl_passive_req_t struct exists...
$ECHO_C" >&6; }
7176 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7177 echo $ECHO_N "(cached
) $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7186 # include <sys/types.h>
7187 # include <sys/dlpi.h>
7191 u_int i = sizeof(dl_passive_req_t)
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_lbl_has_dl_passive_req_t=yes
7215 echo "$as_me: failed program was
:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_lbl_has_dl_passive_req_t=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_dl_passive_req_t" >&5
7225 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7226 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_DLPI_PASSIVE 1
7236 { echo "$as_me:$LINENO: checking Linux kernel version
" >&5
7237 echo $ECHO_N "checking Linux kernel version...
$ECHO_C" >&6; }
7238 if test "$cross_compiling" = yes; then
7239 if test "${ac_cv_linux_vers+set}" = set; then
7240 echo $ECHO_N "(cached
) $ECHO_C" >&6
7242 ac_cv_linux_vers=unknown
7246 if test "${ac_cv_linux_vers+set}" = set; then
7247 echo $ECHO_N "(cached
) $ECHO_C" >&6
7249 ac_cv_linux_vers=`uname -r 2>&1 | \
7250 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7254 { echo "$as_me:$LINENO: result
: $ac_cv_linux_vers" >&5
7255 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7256 if test $ac_cv_linux_vers = unknown ; then
7257 { { echo "$as_me:$LINENO: error
: cannot determine linux version when cross-compiling
" >&5
7258 echo "$as_me: error
: cannot determine linux version when cross-compiling
" >&2;}
7259 { (exit 1); exit 1; }; }
7261 if test $ac_cv_linux_vers -lt 2 ; then
7262 { { echo "$as_me:$LINENO: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&5
7263 echo "$as_me: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&2;}
7264 { (exit 1); exit 1; }; }
7268 # Do we have the wireless extensions?
7271 for ac_header in linux/wireless.h
7273 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7274 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7275 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7277 echo $ECHO_N "(cached
) $ECHO_C" >&6
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7286 #include <sys/socket.h>
7287 #include <linux/if.h>
7288 #include <linux/types.h>
7291 #include <$ac_header>
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 eval "$as_ac_Header=yes"
7312 echo "$as_me: failed program was
:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 eval "$as_ac_Header=no
"
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 ac_res=`eval echo '${'$as_ac_Header'}'`
7321 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7322 echo "${ECHO_T}$ac_res" >&6; }
7323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7337 # Check whether --with-libnl was given.
7338 if test "${with_libnl+set}" = set; then
7339 withval=$with_libnl; with_libnl=$withval
7343 if test x$with_libnl != xno ; then
7344 { echo "$as_me:$LINENO: checking
for nl_handle_alloc
in -lnl" >&5
7345 echo $ECHO_N "checking
for nl_handle_alloc
in -lnl...
$ECHO_C" >&6; }
7346 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7347 echo $ECHO_N "(cached
) $ECHO_C" >&6
7349 ac_check_lib_save_LIBS=$LIBS
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7358 /* Override any GCC internal prototype to avoid an error.
7359 Use char because int might match the return type of a GCC
7360 builtin and then its argument prototype would still apply. */
7364 char nl_handle_alloc ();
7368 return nl_handle_alloc ();
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (ac_try="$ac_link"
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_link") 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest$ac_exeext &&
7390 $as_test_x conftest$ac_exeext; then
7391 ac_cv_lib_nl_nl_handle_alloc=yes
7393 echo "$as_me: failed program was
:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 ac_cv_lib_nl_nl_handle_alloc=no
7399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7400 conftest$ac_exeext conftest.$ac_ext
7401 LIBS=$ac_check_lib_save_LIBS
7403 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nl_nl_handle_alloc" >&5
7404 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7405 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7408 cat >>confdefs.h <<\_ACEOF
7409 #define HAVE_LIBNL 1
7413 if test x$with_libnl = xyes ; then
7414 { { echo "$as_me:$LINENO: error
: libnl support requested but libnl not found
" >&5
7415 echo "$as_me: error
: libnl support requested but libnl not found
" >&2;}
7416 { (exit 1); exit 1; }; }
7423 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
7424 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
7425 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7426 echo $ECHO_N "(cached
) $ECHO_C" >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7435 # include <linux/if_packet.h>
7439 struct tpacket_stats stats
7444 rm -f conftest.$ac_objext
7445 if { (ac_try="$ac_compile"
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_compile") 2>conftest.er1
7453 grep -v '^ *+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest.$ac_objext; then
7461 ac_cv_lbl_tpacket_stats=yes
7463 echo "$as_me: failed program was
:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_cv_lbl_tpacket_stats=no
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
7473 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7474 if test $ac_cv_lbl_tpacket_stats = yes; then
7476 cat >>confdefs.h <<\_ACEOF
7477 #define HAVE_TPACKET_STATS 1
7481 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
7482 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
7483 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7484 echo $ECHO_N "(cached
) $ECHO_C" >&6
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 # include <linux/if_packet.h>
7497 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7521 echo "$as_me: failed program was
:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7531 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7532 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7533 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7545 # Check whether we have the *BSD-style ioctls.
7548 for ac_header in net/if_media.h
7550 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7551 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7555 echo $ECHO_N "(cached
) $ECHO_C" >&6
7557 ac_res=`eval echo '${'$as_ac_Header'}'`
7558 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7561 # Is the header compilable?
7562 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7563 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #include <$ac_header>
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7592 echo "$as_me: failed program was
:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7604 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <$ac_header>
7613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7625 (exit $ac_status); } >/dev/null && {
7626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7629 ac_header_preproc=yes
7631 echo "$as_me: failed program was
:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_header_preproc=no
7637 rm -f conftest.err conftest.$ac_ext
7638 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7639 echo "${ECHO_T}$ac_header_preproc" >&6; }
7641 # So? What about this header?
7642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7645 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7648 ac_header_preproc=yes
7651 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7652 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7653 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7654 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7655 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7656 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7657 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7658 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7659 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7661 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7662 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7666 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7667 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7669 echo $ECHO_N "(cached
) $ECHO_C" >&6
7671 eval "$as_ac_Header=\
$ac_header_preproc"
7673 ac_res=`eval echo '${'$as_ac_Header'}'`
7674 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7675 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7688 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
7689 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <sys/socket.h>
7697 #include <sys/ioctl.h>
7699 #include <net/bpf.h>
7703 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7726 { echo "$as_me:$LINENO: result
: yes" >&5
7727 echo "${ECHO_T}yes" >&6; }
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_ZEROCOPY_BPF 1
7735 echo "$as_me: failed program was
:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7738 { echo "$as_me:$LINENO: result
: no
" >&5
7739 echo "${ECHO_T}no
" >&6; }
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 # Check whether we have struct BPF_TIMEVAL.
7747 { echo "$as_me:$LINENO: checking
for struct BPF_TIMEVAL
" >&5
7748 echo $ECHO_N "checking
for struct BPF_TIMEVAL...
$ECHO_C" >&6; }
7749 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7750 echo $ECHO_N "(cached
) $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/ioctl.h>
7761 #ifdef HAVE_SYS_IOCCOM_H
7762 #include <sys/ioccom.h>
7764 #include <net/bpf.h>
7767 typedef struct BPF_TIMEVAL ac__type_new_;
7771 if ((ac__type_new_ *) 0)
7773 if (sizeof (ac__type_new_))
7779 rm -f conftest.$ac_objext
7780 if { (ac_try="$ac_compile"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compile") 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest.$ac_objext; then
7796 ac_cv_type_struct_BPF_TIMEVAL=yes
7798 echo "$as_me: failed program was
:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_type_struct_BPF_TIMEVAL=no
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 { echo "$as_me:$LINENO: result
: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7807 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7808 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_STRUCT_BPF_TIMEVAL 1
7820 V_DEFS="$V_DEFS -DDAG_ONLY"
7824 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7828 V_DEFS="$V_DEFS -DSNF_ONLY"
7832 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
7833 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
7834 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
7835 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
7839 if test "$V_PCAP" = null
7842 # We can't capture, so we can't open any capture
7843 # devices, so we won't return any interfaces.
7847 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
7848 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
7849 if test "${ac_cv_func_getifaddrs+set}" = set; then
7850 echo $ECHO_N "(cached
) $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7860 #define getifaddrs innocuous_getifaddrs
7862 /* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char getifaddrs (); below.
7864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865 <limits.h> exists even on freestanding compilers. */
7868 # include <limits.h>
7870 # include <assert.h>
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7882 /* The GNU C library defines this for functions which it implements
7883 to always fail with ENOSYS. Some functions are actually named
7884 something starting with __ and the normal name is an alias. */
7885 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7892 return getifaddrs ();
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext &&
7914 $as_test_x conftest$ac_exeext; then
7915 ac_cv_func_getifaddrs=yes
7917 echo "$as_me: failed program was
:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_cv_func_getifaddrs=no
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7926 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
7927 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7928 if test $ac_cv_func_getifaddrs = yes; then
7931 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
7932 # as well, just in case some platform is really weird.
7934 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7935 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7936 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7937 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7938 echo $ECHO_N "(cached
) $ECHO_C" >&6
7940 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
7941 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7943 # Is the header compilable?
7944 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
7945 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #include <ifaddrs.h>
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_header_compiler=yes
7974 echo "$as_me: failed program was
:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_header_compiler=no
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6; }
7984 # Is the header present?
7985 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
7986 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <ifaddrs.h>
7995 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8007 (exit $ac_status); } >/dev/null && {
8008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8011 ac_header_preproc=yes
8013 echo "$as_me: failed program was
:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_header_preproc=no
8019 rm -f conftest.err conftest.$ac_ext
8020 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6; }
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8026 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
8027 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
8029 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
8030 ac_header_preproc=yes
8033 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
8034 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
8035 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
8036 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
8037 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
8038 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
8039 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
8040 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
8041 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
8042 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
8043 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
8044 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
8048 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8049 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8050 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8051 echo $ECHO_N "(cached
) $ECHO_C" >&6
8053 ac_cv_header_ifaddrs_h=$ac_header_preproc
8055 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8056 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8059 if test $ac_cv_header_ifaddrs_h = yes; then
8062 # We have the header, so we use "getifaddrs
()" to
8063 # get the list of interfaces.
8070 # We don't have the header - give up.
8071 # XXX - we could also fall back on some other
8072 # mechanism, but, for now, this'll catch this
8073 # problem so that we can at least try to figure
8074 # out something to do on systems with "getifaddrs
()"
8075 # but without "ifaddrs.h
", if there is something
8076 # we can do on those systems.
8078 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
8079 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
8080 { (exit 1); exit 1; }; }
8089 # Well, we don't have "getifaddrs
()", so we have to use
8090 # some other mechanism; determine what that mechanism is.
8092 # The first thing we use is the type of capture mechanism,
8093 # which is somewhat of a proxy for the OS we're using.
8100 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8102 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8107 echo $ECHO_N "(cached
) $ECHO_C" >&6
8109 ac_res=`eval echo '${'$as_ac_Header'}'`
8110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8111 echo "${ECHO_T}$ac_res" >&6; }
8113 # Is the header compilable?
8114 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8115 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 $ac_includes_default
8123 #include <$ac_header>
8125 rm -f conftest.$ac_objext
8126 if { (ac_try="$ac_compile"
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_compile") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest.$ac_objext; then
8142 ac_header_compiler=yes
8144 echo "$as_me: failed program was
:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8147 ac_header_compiler=no
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8152 echo "${ECHO_T}$ac_header_compiler" >&6; }
8154 # Is the header present?
8155 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8156 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 #include <$ac_header>
8165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8177 (exit $ac_status); } >/dev/null && {
8178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8181 ac_header_preproc=yes
8183 echo "$as_me: failed program was
:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_header_preproc=no
8189 rm -f conftest.err conftest.$ac_ext
8190 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6; }
8193 # So? What about this header?
8194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8196 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8197 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8200 ac_header_preproc=yes
8203 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8204 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8205 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8206 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8207 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8208 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8209 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8210 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8213 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8214 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached
) $ECHO_C" >&6
8223 eval "$as_ac_Header=\
$ac_header_preproc"
8225 ac_res=`eval echo '${'$as_ac_Header'}'`
8226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8227 echo "${ECHO_T}$ac_res" >&6; }
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8240 # This might be Solaris 8 or later, with
8241 # SIOCGLIFCONF, or it might be some other OS
8242 # or some older version of Solaris, with
8245 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
8246 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
8247 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8248 echo $ECHO_N "(cached
) $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 #include <sys/param.h>
8257 #include <sys/file.h>
8258 #include <sys/ioctl.h>
8259 #include <sys/socket.h>
8260 #include <sys/sockio.h>
8264 ioctl(0, SIOCGLIFCONF, (char *)0);
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest.$ac_objext; then
8286 ac_cv_lbl_have_siocglifconf=yes
8288 echo "$as_me: failed program was
:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8291 ac_cv_lbl_have_siocglifconf=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
8298 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8299 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8305 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8312 # Assume we just have SIOCGIFCONF.
8313 # (XXX - on at least later Linux kernels, there's
8314 # another mechanism, and we should be using that
8327 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
8328 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8336 #include <sys/types.h>
8337 #include <sys/socket.h>
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8366 echo "$as_me: failed program was
:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 if test "x
$have_socklen_t" = "xyes
"; then
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_SOCKLEN_T 1
8380 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
8381 echo "${ECHO_T}$have_socklen_t" >&6; }
8383 # Check whether --enable-ipv6 was given.
8384 if test "${enable_ipv6+set}" = set; then
8385 enableval=$enable_ipv6;
8387 enable_ipv6=ifavailable
8390 if test "$enable_ipv6" != "no
"; then
8391 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
8392 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
8393 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8394 echo $ECHO_N "(cached
) $ECHO_C" >&6
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8404 #define getaddrinfo innocuous_getaddrinfo
8406 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char getaddrinfo (); below.
8408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8409 <limits.h> exists even on freestanding compilers. */
8412 # include <limits.h>
8414 # include <assert.h>
8419 /* Override any GCC internal prototype to avoid an error.
8420 Use char because int might match the return type of a GCC
8421 builtin and then its argument prototype would still apply. */
8425 char getaddrinfo ();
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8436 return getaddrinfo ();
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_link") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest$ac_exeext &&
8458 $as_test_x conftest$ac_exeext; then
8459 ac_cv_func_getaddrinfo=yes
8461 echo "$as_me: failed program was
:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_func_getaddrinfo=no
8467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468 conftest$ac_exeext conftest.$ac_ext
8470 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
8471 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8472 if test $ac_cv_func_getaddrinfo = yes; then
8475 cat >>confdefs.h <<\_ACEOF
8482 if test "$enable_ipv6" != "ifavailable
"; then
8483 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8484 See \`config.log' for more details.
" >&5
8485 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8486 See \`config.log' for more details.
" >&2;}
8487 { (exit 1); exit 1; }; }
8494 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
8495 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
8496 # Check whether --enable-optimizer-dbg was given.
8497 if test "${enable_optimizer_dbg+set}" = set; then
8498 enableval=$enable_optimizer_dbg;
8501 if test "$enable_optimizer_dbg" = "yes"; then
8503 cat >>confdefs.h <<\_ACEOF
8508 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
8509 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8511 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8512 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8513 # Check whether --enable-yydebug was given.
8514 if test "${enable_yydebug+set}" = set; then
8515 enableval
=$enable_yydebug;
8518 if test "$enable_yydebug" = "yes"; then
8520 cat >>confdefs.h
<<\_ACEOF
8525 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8526 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8528 # Check for Endace DAG card support.
8530 # Check whether --with-dag was given.
8531 if test "${with_dag+set}" = set; then
8533 if test "$withval" = no
8535 # User doesn't want DAG support.
8537 elif test "$withval" = yes
8539 # User wants DAG support but hasn't specified a directory.
8542 # User wants DAG support and has specified a directory, so use the provided value.
8550 # Use DAG API if present, otherwise don't
8558 # Check whether --with-dag-includes was given.
8559 if test "${with_dag_includes+set}" = set; then
8560 withval=$with_dag_includes;
8561 # User wants DAG support and has specified a header directory, so use the provided value.
8563 dag_include_dir=$withval
8569 # Check whether --with-dag-libraries was given.
8570 if test "${with_dag_libraries+set}" = set; then
8571 withval=$with_dag_libraries;
8572 # User wants DAG support and has specified a library directory, so use the provided value.
8574 dag_lib_dir=$withval
8582 # We support the DAG API if we're on Linux or BSD, or if we're
8583 # building a DAG-only libpcap.
8588 # If the user explicitly requested DAG, tell them it's not
8591 # If they expressed no preference, don't include it.
8593 if test $want_dag = yes; then
8594 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
8595 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
8596 { (exit 1); exit 1; }; }
8597 elif test $want_dag = yes; then
8603 ac_cv_lbl_dag_api=no
8604 if test "$want_dag" != no; then
8606 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
8607 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
8609 # If necessary, set default paths for DAG API headers and libraries.
8610 if test -z "$dag_root"; then
8614 if test -z "$dag_include_dir"; then
8615 dag_include_dir="$dag_root/include
"
8618 if test -z "$dag_lib_dir"; then
8619 dag_lib_dir="$dag_root/lib
"
8622 if test -z "$dag_tools_dir"; then
8623 dag_tools_dir="$dag_root/tools
"
8626 if test -r $dag_include_dir/dagapi.h; then
8627 ac_cv_lbl_dag_api=yes
8629 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8630 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8633 if test $ac_cv_lbl_dag_api = yes; then
8635 { echo "$as_me:$LINENO: checking dagapi.o
" >&5
8636 echo $ECHO_N "checking dagapi.o...
$ECHO_C" >&6; }
8638 if test -r $dag_tools_dir/dagapi.o; then
8640 dagapi_obj=$dag_tools_dir/dagapi.o
8641 elif test -r $dag_lib_dir/dagapi.o; then
8643 dagapi_obj=$dag_lib_dir/dagapi.o
8644 elif test -r $dag_lib_dir/libdag.a; then
8646 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8647 if test -r ./dagapi.o; then
8648 dagapi_obj=./dagapi.o
8650 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8651 if test -r ./libdag_la-dagapi.o; then
8652 dagapi_obj=./libdag_la-dagapi.o
8657 if test $dagapi_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 ($dagapi_obj)" >&5
8663 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8667 if test $ac_cv_lbl_dag_api = yes; then
8669 { echo "$as_me:$LINENO: checking dagopts.o
" >&5
8670 echo $ECHO_N "checking dagopts.o...
$ECHO_C" >&6; }
8672 if test -r $dag_tools_dir/dagopts.o; then
8674 dagopts_obj=$dag_tools_dir/dagopts.o
8675 elif test -r $dag_lib_dir/dagopts.o; then
8677 dagopts_obj=$dag_lib_dir/dagopts.o
8678 elif test -r $dag_lib_dir/libdag.a; then
8680 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8681 if test -r ./dagopts.o; then
8682 dagopts_obj=./dagopts.o
8684 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8685 if test -r ./libdag_la-dagopts.o; then
8686 dagopts_obj=./libdag_la-dagopts.o
8691 if test $dagopts_obj = no; then
8692 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
8693 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
8694 ac_cv_lbl_dag_api=no
8696 { echo "$as_me:$LINENO: result
: yes ($dagopts_obj)" >&5
8697 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8701 if test $ac_cv_lbl_dag_api = yes; then
8702 # Under 2.5.x only we need to add dagreg.o.
8703 if test -r $dag_include_dir/dagreg.h; then
8704 { echo "$as_me:$LINENO: checking dagreg.o
" >&5
8705 echo $ECHO_N "checking dagreg.o...
$ECHO_C" >&6; }
8707 if test -r $dag_lib_dir/dagreg.o; then
8708 # Object file is ready and waiting.
8709 dagreg_obj=$dag_lib_dir/dagreg.o
8710 elif test -r $dag_lib_dir/libdag.a; then
8711 # Extract from libdag.a.
8712 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8713 if test -r ./dagreg.o; then
8714 dagreg_obj=./dagreg.o
8716 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8717 if test -r ./libdag_la-dagreg.o; then
8718 dagreg_obj=./libdag_la-dagreg.o
8723 if test $dagreg_obj = no; then
8724 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8725 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8726 ac_cv_lbl_dag_api=no
8728 { echo "$as_me:$LINENO: result
: yes ($dagreg_obj)" >&5
8729 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8734 if test $ac_cv_lbl_dag_api = yes; then
8735 # Under 2.5.x only we need to add dagutil.o.
8736 if test -r $dag_include_dir/dagutil.h; then
8737 { echo "$as_me:$LINENO: checking dagutil.o
" >&5
8738 echo $ECHO_N "checking dagutil.o...
$ECHO_C" >&6; }
8740 if test -r $dag_lib_dir/dagutil.o; then
8741 # Object file is ready and waiting.
8742 dagutil_obj=$dag_lib_dir/dagutil.o
8743 elif test -r $dag_lib_dir/libdag.a; then
8744 # Extract from libdag.a.
8745 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8746 if test -r ./dagutil.o; then
8747 dagutil_obj=./dagutil.o
8749 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8750 if test -r ./libdag_la-dagutil.o; then
8751 dagutil_obj=./libdag_la-dagutil.o
8756 if test $dagutil_obj = no; then
8757 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8758 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8759 ac_cv_lbl_dag_api=no
8761 { echo "$as_me:$LINENO: result
: yes ($dagutil_obj)" >&5
8762 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8767 if test $ac_cv_lbl_dag_api = yes; then
8768 V_INCLS="$V_INCLS -I$dag_include_dir"
8769 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8770 if test $V_PCAP != dag ; then
8774 # See if we can find a general version string.
8775 # Don't need to save and restore LIBS to prevent -ldag being
8776 # included if there's a found-action (arg 3).
8777 saved_ldflags=$LDFLAGS
8778 LDFLAGS="-L$dag_lib_dir"
8779 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
8780 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
8781 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8782 echo $ECHO_N "(cached
) $ECHO_C" >&6
8784 ac_check_lib_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8799 char dag_attach_stream ();
8803 return dag_attach_stream ();
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (ac_try="$ac_link"
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_link") 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest$ac_exeext &&
8825 $as_test_x conftest$ac_exeext; then
8826 ac_cv_lib_dag_dag_attach_stream=yes
8828 echo "$as_me: failed program was
:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_lib_dag_dag_attach_stream=no
8834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS=$ac_check_lib_save_LIBS
8838 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
8839 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8840 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8846 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
8847 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
8848 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8849 echo $ECHO_N "(cached
) $ECHO_C" >&6
8851 ac_check_lib_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8866 char dag_get_erf_types ();
8870 return dag_get_erf_types ();
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest$ac_exeext &&
8892 $as_test_x conftest$ac_exeext; then
8893 ac_cv_lib_dag_dag_get_erf_types=yes
8895 echo "$as_me: failed program was
:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_lib_dag_dag_get_erf_types=no
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8905 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
8906 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8907 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_DAG_GET_ERF_TYPES 1
8916 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
8917 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
8918 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8919 echo $ECHO_N "(cached
) $ECHO_C" >&6
8921 ac_check_lib_save_LIBS=$LIBS
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8936 char dag_get_stream_erf_types ();
8940 return dag_get_stream_erf_types ();
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_link") 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest$ac_exeext &&
8962 $as_test_x conftest$ac_exeext; then
8963 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8965 echo "$as_me: failed program was
:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 ac_cv_lib_dag_dag_get_stream_erf_types=no
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_lib_save_LIBS
8975 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8976 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8977 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8986 LDFLAGS=$saved_ldflags
8988 if test "$dag_streams" = 1; then
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_DAG_STREAMS_API 1
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_DAG_API 1
9004 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
9005 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
9007 if test $ac_cv_lbl_dag_api = no; then
9008 { echo "$as_me:$LINENO: result
: no
" >&5
9009 echo "${ECHO_T}no
" >&6; }
9010 if test "$want_dag" = yes; then
9011 # User wanted DAG support but we couldn't find it.
9012 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
9013 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
9014 { (exit 1); exit 1; }; }
9017 if test "$V_PCAP" = dag; then
9018 # User requested "dag
" capture type but the DAG API wasn't
9020 { { 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
9021 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;}
9022 { (exit 1); exit 1; }; }
9025 { echo "$as_me:$LINENO: result
: yes" >&5
9026 echo "${ECHO_T}yes" >&6; }
9030 # Check whether --with-septel was given.
9031 if test "${with_septel+set}" = set; then
9032 withval=$with_septel;
9033 if test "$withval" = no
9036 elif test "$withval" = yes
9042 septel_root=$withval
9048 # Use Septel API if present, otherwise don't
9050 want_septel=ifpresent
9051 septel_root=./../septel
9055 ac_cv_lbl_septel_api=no
9059 # We support the Septel API if we're on Linux, or if we're building
9060 # a Septel-only libpcap.
9065 # If the user explicitly requested Septel, tell them it's not
9068 # If they expressed no preference, don't include it.
9070 if test $want_septel = yes; then
9071 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
9072 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
9073 { (exit 1); exit 1; }; }
9074 elif test $want_septel = yes; then
9080 if test "$with_septel" != no; then
9081 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
9082 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
9084 if test -z "$septel_root"; then
9085 septel_root=$srcdir/../septel
9088 septel_tools_dir="$septel_root"
9089 septel_include_dir="$septel_root/INC
"
9091 ac_cv_lbl_septel_api=no
9092 if test -r "$septel_include_dir/msg.h
"; then
9093 V_INCLS="$V_INCLS -I$septel_include_dir"
9094 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
"
9095 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
"
9097 if test "$V_PCAP" != septel ; then
9098 SSRC="pcap-septel.c
"
9100 ac_cv_lbl_septel_api=yes
9103 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
9104 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9105 if test $ac_cv_lbl_septel_api = no; then
9106 if test "$want_septel" = yes; then
9107 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
9108 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
9109 { (exit 1); exit 1; }; }
9113 cat >>confdefs.h <<\_ACEOF
9114 #define HAVE_SEPTEL_API 1
9120 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9121 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
9122 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
9123 { (exit 1); exit 1; }; }
9126 # Check for Myricom SNF support.
9128 # Check whether --with-snf was given.
9129 if test "${with_snf+set}" = set; then
9131 if test "$withval" = no
9133 # User explicitly doesn't want SNF
9135 elif test "$withval" = yes
9137 # User wants SNF support but hasn't specific a directory.
9140 # User wants SNF support with a specified directory.
9148 # Use Sniffer API if present, otherwise don't
9156 # Check whether --with-snf-includes was given.
9157 if test "${with_snf_includes+set}" = set; then
9158 withval=$with_snf_includes;
9159 # User wants SNF with specific header directory
9161 snf_include_dir=$withval
9167 # Check whether --with-snf-libraries was given.
9168 if test "${with_snf_libraries+set}" = set; then
9169 withval=$with_snf_libraries;
9170 # User wants SNF with specific lib directory
9172 snf_lib_dir=$withval
9180 # We support the Sniffer API if we're on BSD, Linux, or if we're
9181 # building a Sniffer-only libpcap.
9186 # If the user explicitly requested Sniffer, tell them it's not
9189 # If they expressed no preference, don't include it.
9191 if test $want_snf = yes; then
9192 { { echo "$as_me:$LINENO: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&5
9193 echo "$as_me: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&2;}
9194 { (exit 1); exit 1; }; }
9195 elif test $want_snf = yes; then
9201 ac_cv_lbl_snf_api=no
9202 if test "$with_snf" != no; then
9204 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API
" >&5
9205 echo $ECHO_N "checking whether we have Myricom Sniffer API...
$ECHO_C" >&6; }
9207 if test -z "$snf_root"; then
9211 if test -z "$snf_include_dir"; then
9212 snf_include_dir="$snf_root/include
"
9215 if test -z "$snf_lib_dir"; then
9216 snf_lib_dir="$snf_root/lib
"
9219 if test -f "$snf_include_dir/snf.h
"; then
9220 ac_cv_lbl_snf_api=yes
9222 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_snf_api ($snf_root)" >&5
9223 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9225 if test $ac_cv_lbl_snf_api = no; then
9226 if test "$want_snf" = yes; then
9227 { { echo "$as_me:$LINENO: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&5
9228 echo "$as_me: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&2;}
9229 { (exit 1); exit 1; }; }
9232 saved_ldflags=$LDFLAGS
9233 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9234 { echo "$as_me:$LINENO: checking
for snf_init
in -lsnf" >&5
9235 echo $ECHO_N "checking
for snf_init
in -lsnf...
$ECHO_C" >&6; }
9236 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9237 echo $ECHO_N "(cached
) $ECHO_C" >&6
9239 ac_check_lib_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest$ac_exeext &&
9280 $as_test_x conftest$ac_exeext; then
9281 ac_cv_lib_snf_snf_init=yes
9283 echo "$as_me: failed program was
:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_snf_snf_init=no
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9293 { echo "$as_me:$LINENO: result
: $ac_cv_lib_snf_snf_init" >&5
9294 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9295 if test $ac_cv_lib_snf_snf_init = yes; then
9296 ac_cv_lbl_snf_api="yes"
9298 ac_cv_lbl_snf_api="no
"
9301 LDFLAGS="$saved_ldflags"
9303 if test $ac_cv_lbl_snf_api = no; then
9304 if test "$want_snf" = yes; then
9305 { { echo "$as_me:$LINENO: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&5
9306 echo "$as_me: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&2;}
9307 { (exit 1); exit 1; }; }
9310 V_INCLS="$V_INCLS -I$snf_include_dir"
9312 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9313 if test "$V_PCAP" != snf ; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_SNF_API 1
9325 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9326 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&5
9327 echo "$as_me: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&2;}
9328 { (exit 1); exit 1; }; }
9332 # Check whether --with-flex was given.
9333 if test "${with_flex+set}" = set; then
9338 # Check whether --with-bison was given.
9339 if test "${with_bison+set}" = set; then
9340 withval=$with_bison;
9343 if test "$with_flex" = no ; then
9348 # Extract the first word of "$ac_prog", so it can be a program name with args.
9349 set dummy $ac_prog; ac_word=$2
9350 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9351 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9352 if test "${ac_cv_prog_V_LEX+set}" = set; then
9353 echo $ECHO_N "(cached
) $ECHO_C" >&6
9355 if test -n "$V_LEX"; then
9356 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_prog_V_LEX="$ac_prog"
9366 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9375 V_LEX=$ac_cv_prog_V_LEX
9376 if test -n "$V_LEX"; then
9377 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
9378 echo "${ECHO_T}$V_LEX" >&6; }
9380 { echo "$as_me:$LINENO: result
: no
" >&5
9381 echo "${ECHO_T}no
" >&6; }
9385 test -n "$V_LEX" && break
9387 test -n "$V_LEX" || V_LEX="lex"
9390 if test "$V_LEX" = flex ; then
9391 # The -V flag was added in 2.4
9392 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
9393 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
9394 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9395 echo $ECHO_N "(cached
) $ECHO_C" >&6
9397 if flex -V >/dev/null 2>&1; then
9398 ac_cv_lbl_flex_v24=yes
9400 ac_cv_lbl_flex_v24=no
9404 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
9405 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9406 if test $ac_cv_lbl_flex_v24 = no ; then
9407 s="2.4 or higher required
"
9408 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
9409 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
9413 if test "$with_bison" = no ; then
9416 for ac_prog in bison
9418 # Extract the first word of "$ac_prog", so it can be a program name with args.
9419 set dummy $ac_prog; ac_word=$2
9420 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9421 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9422 if test "${ac_cv_prog_V_YACC+set}" = set; then
9423 echo $ECHO_N "(cached
) $ECHO_C" >&6
9425 if test -n "$V_YACC"; then
9426 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_V_YACC="$ac_prog"
9436 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9445 V_YACC=$ac_cv_prog_V_YACC
9446 if test -n "$V_YACC"; then
9447 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
9448 echo "${ECHO_T}$V_YACC" >&6; }
9450 { echo "$as_me:$LINENO: result
: no
" >&5
9451 echo "${ECHO_T}no
" >&6; }
9455 test -n "$V_YACC" && break
9457 test -n "$V_YACC" || V_YACC="yacc"
9460 if test "$V_YACC" = bison ; then
9463 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9464 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
9465 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
9469 if test "$V_LEX" = flex -a -n "pcap_
" ; then
9470 V_LEX="$V_LEX -Ppcap_"
9471 V_YACC="$V_YACC -p pcap_
"
9473 if test "$V_LEX" = lex ; then
9474 # Some versions of lex can't handle the definitions section of scanner.l .
9475 # Try lexing it and complain if it can't deal.
9476 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
9477 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
9478 if test "${tcpdump_cv_capable_lex+set}" = set; then
9479 echo $ECHO_N "(cached
) $ECHO_C" >&6
9481 if lex -t scanner.l > /dev/null 2>&1; then
9482 tcpdump_cv_capable_lex=yes
9484 tcpdump_cv_capable_lex=insufficient
9487 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
9488 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9489 if test $tcpdump_cv_capable_lex = insufficient ; then
9490 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
9491 libpcap. flex is a lex replacement that has many advantages, including
9492 being able to compile libpcap. For more information, see
9493 http://www.gnu.org/software/flex/flex.html ." >&5
9494 echo "$as_me: error: Your operating system's
lex is insufficient to compile
9495 libpcap. flex is a
lex replacement that has many advantages
, including
9496 being able to compile libpcap. For
more information
, see
9497 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
9498 { (exit 1); exit 1; }; }
9503 # Assume, by default, no support for shared libraries and V7/BSD convention
9504 # for man pages (file formats in section 5, miscellaneous info in section 7).
9505 # Individual cases can override this.
9514 cat >>confdefs.h <<\_ACEOF
9520 # AIX makes it fun to build shared and static libraries,
9521 # because they're *both* ".a
" archive libraries. We
9522 # build the static library for the benefit of the traditional
9523 # scheme of building libpcap and tcpdump in subdirectories of
9524 # the same directory, with tcpdump statically linked with the
9525 # libpcap in question, but we also build a shared library as
9526 # "libpcap.shareda
" and install *it*, rather than the static
9527 # library, as "libpcap.a
".
9535 # If we're using DLPI, applications will need to
9536 # use /lib/pse.exp if present, as we use the
9539 pseexe="/lib
/pse.exp
"
9540 { echo "$as_me:$LINENO: checking
for $pseexe" >&5
9541 echo $ECHO_N "checking
for $pseexe...
$ECHO_C" >&6; }
9542 if test -f $pseexe ; then
9543 { echo "$as_me:$LINENO: result
: yes" >&5
9544 echo "${ECHO_T}yes" >&6; }
9551 # If we're using BPF, we need "-lodm" and "-lcfg", as
9552 # we use them to load the BPF module.
9561 V_CCOPT="$V_CCOPT -fno-common"
9562 # Check whether --enable-universal was given.
9563 if test "${enable_universal+set}" = set; then
9564 enableval=$enable_universal;
9567 if test "$enable_universal" != "no
"; then
9572 # Leopard. Build for 32-bit PowerPC, 64-bit
9573 # PowerPC, x86, and x86-64, with 32-bit PowerPC
9574 # first. (That's what Apple does.)
9576 V_CCOPT="$V_CCOPT -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
9577 LDFLAGS="$LDFLAGS -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
9582 # Snow Leopard. Build for x86-64, x86, and
9583 # 32-bit PowerPC, with x86-64 first. (That's
9584 # what Apple does, even though Snow Leopard
9585 # doesn't run on PPC, so PPC libpcap runs under
9586 # Rosetta, and Rosetta doesn't support BPF
9587 # ioctls, so PPC programs can't do live
9590 V_CCOPT="$V_CCOPT -arch x86_64
-arch i386
-arch ppc
"
9591 LDFLAGS="$LDFLAGS -arch x86_64
-arch i386
-arch ppc
"
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_HPUX9 1
9605 # Use System V conventions for man pages.
9614 # Use System V conventions for man pages.
9623 # Use System V conventions for man pages.
9631 cat >>confdefs.h <<\_ACEOF
9632 #define HAVE_HPUX10_20_OR_LATER 1
9635 if test "`uname -m`" = "ia64
"; then
9642 # "-b" builds a shared library; "+h
" sets the soname.
9648 # Use System V conventions for man pages.
9656 # Use System V conventions for man pages.
9662 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9666 # Compiler assumed to be GCC; run-time linker may require a -R
9669 if test "$libdir" != "/usr
/lib
"; then
9670 V_RFLAGS=-Wl,-R$libdir
9678 # Use System V conventions for man pages.
9685 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
9686 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
9687 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9688 echo $ECHO_N "(cached
) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.$ac_objext; then
9722 ac_cv_cc_sinix_defined=yes
9724 echo "$as_me: failed program was
:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_cv_cc_sinix_defined=no
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
9734 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9735 if test $ac_cv_cc_sinix_defined = no ; then
9737 cat >>confdefs.h <<\_ACEOF
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_SOLARIS 1
9753 # Use System V conventions for man pages.
9760 if test -n "$ac_tool_prefix"; then
9761 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
9762 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9763 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9764 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9765 if test "${ac_cv_prog_RANLIB+set}" = set; then
9766 echo $ECHO_N "(cached
) $ECHO_C" >&6
9768 if test -n "$RANLIB"; then
9769 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
9779 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9788 RANLIB=$ac_cv_prog_RANLIB
9789 if test -n "$RANLIB"; then
9790 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
9791 echo "${ECHO_T}$RANLIB" >&6; }
9793 { echo "$as_me:$LINENO: result
: no
" >&5
9794 echo "${ECHO_T}no
" >&6; }
9799 if test -z "$ac_cv_prog_RANLIB"; then
9800 ac_ct_RANLIB=$RANLIB
9801 # Extract the first word of "ranlib
", so it can be a program name with args.
9802 set dummy ranlib; ac_word=$2
9803 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9804 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9805 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9806 echo $ECHO_N "(cached
) $ECHO_C" >&6
9808 if test -n "$ac_ct_RANLIB"; then
9809 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_ac_ct_RANLIB="ranlib
"
9819 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9828 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9829 if test -n "$ac_ct_RANLIB"; then
9830 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
9831 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9833 { echo "$as_me:$LINENO: result
: no
" >&5
9834 echo "${ECHO_T}no
" >&6; }
9837 if test "x
$ac_ct_RANLIB" = x; then
9840 case $cross_compiling:$ac_tool_warned in
9842 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9843 whose name does not start with the
host triplet. If you think this
9844 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9845 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9846 whose name does not start with the
host triplet. If you think this
9847 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9848 ac_tool_warned=yes ;;
9850 RANLIB=$ac_ct_RANLIB
9853 RANLIB="$ac_cv_prog_RANLIB"
9856 if test -n "$ac_tool_prefix"; then
9857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9858 set dummy ${ac_tool_prefix}ar; ac_word=$2
9859 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9860 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9861 if test "${ac_cv_prog_AR+set}" = set; then
9862 echo $ECHO_N "(cached
) $ECHO_C" >&6
9864 if test -n "$AR"; then
9865 ac_cv_prog_AR="$AR" # Let the user override the test.
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_prog_AR="${ac_tool_prefix}ar"
9875 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9885 if test -n "$AR"; then
9886 { echo "$as_me:$LINENO: result
: $AR" >&5
9887 echo "${ECHO_T}$AR" >&6; }
9889 { echo "$as_me:$LINENO: result
: no
" >&5
9890 echo "${ECHO_T}no
" >&6; }
9895 if test -z "$ac_cv_prog_AR"; then
9897 # Extract the first word of "ar", so it can be a program name with args.
9898 set dummy ar; ac_word=$2
9899 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9900 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9902 echo $ECHO_N "(cached
) $ECHO_C" >&6
9904 if test -n "$ac_ct_AR"; then
9905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_prog_ac_ct_AR="ar"
9915 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9925 if test -n "$ac_ct_AR"; then
9926 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
9927 echo "${ECHO_T}$ac_ct_AR" >&6; }
9929 { echo "$as_me:$LINENO: result
: no
" >&5
9930 echo "${ECHO_T}no
" >&6; }
9933 if test "x
$ac_ct_AR" = x; then
9936 case $cross_compiling:$ac_tool_warned in
9938 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9939 whose name does not start with the
host triplet. If you think this
9940 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9941 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9942 whose name does not start with the
host triplet. If you think this
9943 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9944 ac_tool_warned=yes ;;
9954 if test "${LBL_CFLAGS+set}" = set; then
9955 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9957 if test -f .devel ; then
9958 if test "$GCC" = yes ; then
9959 if test "${LBL_CFLAGS+set}" != set; then
9960 if test "$ac_cv_prog_cc_g" = yes ; then
9961 V_CCOPT="-g $V_CCOPT"
9963 V_CCOPT="$V_CCOPT -Wall"
9964 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9965 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9972 V_CCOPT="$V_CCOPT -n32"
9979 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9981 if test -f $name ; then
9982 ln -s $name os-proto.h
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_OS_PROTO_H 1
9989 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
9990 echo "$as_me: WARNING: can't
find $name" >&2;}
9994 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
9995 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
9996 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9997 echo $ECHO_N "(cached
) $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10006 # include <sys/types.h>
10007 # include <sys/socket.h>
10011 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10016 rm -f conftest.$ac_objext
10017 if { (ac_try="$ac_compile"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_compile") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10029 (exit $ac_status); } && {
10030 test -z "$ac_c_werror_flag" ||
10031 test ! -s conftest.err
10032 } && test -s conftest.$ac_objext; then
10033 ac_cv_lbl_sockaddr_has_sa_len=yes
10035 echo "$as_me: failed program was
:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_lbl_sockaddr_has_sa_len=no
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10045 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10046 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_SOCKADDR_SA_LEN 1
10054 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
10055 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
10056 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10057 echo $ECHO_N "(cached
) $ECHO_C" >&6
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 # include <sys/types.h>
10067 # include <sys/socket.h>
10071 u_int i = sizeof (struct sockaddr_storage)
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10093 ac_cv_lbl_has_sockaddr_storage=yes
10095 echo "$as_me: failed program was
:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_lbl_has_sockaddr_storage=no
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
10105 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10106 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_SOCKADDR_STORAGE 1
10114 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
10115 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
10116 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10117 echo $ECHO_N "(cached
) $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 # include <sys/types.h>
10127 # include <sys/dlpi.h>
10128 # include <sys/dlpi_ext.h>
10132 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10156 echo "$as_me: failed program was
:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10166 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10167 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10175 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
10176 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
10177 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10178 echo $ECHO_N "(cached
) $ECHO_C" >&6
10180 case "$host_cpu" in
10183 # These are CPU types where:
10185 # the CPU faults on an unaligned access, but at least some
10186 # OSes that support that CPU catch the fault and simulate
10187 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10188 # the simulation is slow, so we don't want to use it;
10190 # the CPU, I infer (from the old
10192 # XXX: should also check that they don't do weird things (like on arm)
10194 # comment) doesn't fault on unaligned accesses, but doesn't
10195 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10197 # for whatever reason, the test program doesn't work
10198 # (this has been claimed to be the case for several of those
10199 # CPUs - I don't know what the problem is; the problem
10200 # was reported as "the
test program dumps core
" for SuperH,
10201 # but that's what the test program is *supposed* to do -
10202 # it dumps core before it writes anything, so the test
10203 # for an empty output file should find an empty output
10204 # file and conclude that unaligned accesses don't work).
10206 # This run-time test won't work if you're cross-compiling, so
10207 # in order to support cross-compiling for a particular CPU,
10208 # we have to wire in the list of CPU types anyway, as far as
10209 # I know, so perhaps we should just have a set of CPUs on
10210 # which we know it doesn't work, a set of CPUs on which we
10211 # know it does work, and have the script just fail on other
10212 # cpu types and update it when such a failure occurs.
10214 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10215 ac_cv_lbl_unaligned_fail=yes
10219 cat >conftest.c <<EOF
10220 # include <sys/types.h>
10221 # include <sys/wait.h>
10222 # include <stdio.h>
10223 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10228 /* avoid "core dumped
" message */
10234 pid = waitpid(pid, &status, 0);
10237 exit(!WIFEXITED(status));
10240 i = *(unsigned int *)&a[1];
10245 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10246 conftest.c $LIBS >/dev/null 2>&1
10247 if test ! -x conftest ; then
10248 ac_cv_lbl_unaligned_fail=yes
10250 ./conftest >conftest.out
10251 if test ! -s conftest.out ; then
10252 ac_cv_lbl_unaligned_fail=yes
10254 ac_cv_lbl_unaligned_fail=no
10257 rm -f -r conftest* core core.conftest
10262 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
10263 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10264 if test $ac_cv_lbl_unaligned_fail = yes ; then
10266 cat >>confdefs.h <<\_ACEOF
10267 #define LBL_ALIGN 1
10273 # Makefile.in includes rules to generate version.h, so we assume
10274 # that it will be generated if autoconf is used.
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_VERSION_H 1
10283 ln -s ${srcdir}/bpf/net net
10303 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
10304 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
10308 cat >>confdefs.h <<\_ACEOF
10309 #define PCAP_SUPPORT_USB 1
10312 USB_SRC=pcap-usb-linux.c
10313 { echo "$as_me:$LINENO: result
: yes" >&5
10314 echo "${ECHO_T}yes" >&6; }
10315 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10316 if test $? -ne 0 ; then
10317 ac_usb_dev_name="usbmon
"
10320 cat >>confdefs.h <<_ACEOF
10321 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
10324 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
10325 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
10327 for ac_header in linux/usbdevice_fs.h
10329 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10331 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10332 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10333 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10334 echo $ECHO_N "(cached
) $ECHO_C" >&6
10336 ac_res=`eval echo '${'$as_ac_Header'}'`
10337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10338 echo "${ECHO_T}$ac_res" >&6; }
10340 # Is the header compilable?
10341 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10342 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 $ac_includes_default
10350 #include <$ac_header>
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10361 grep -v '^ *+' conftest.er1 >conftest.err
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10371 echo "$as_me: failed program was
:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_header_compiler=no
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10379 echo "${ECHO_T}$ac_header_compiler" >&6; }
10381 # Is the header present?
10382 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10383 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 #include <$ac_header>
10392 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10408 ac_header_preproc=yes
10410 echo "$as_me: failed program was
:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_header_preproc=no
10416 rm -f conftest.err conftest.$ac_ext
10417 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6; }
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10423 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10424 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10427 ac_header_preproc=yes
10430 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10431 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10432 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10433 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10434 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10435 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10436 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10437 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10440 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10441 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10445 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10446 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10447 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10448 echo $ECHO_N "(cached
) $ECHO_C" >&6
10450 eval "$as_ac_Header=\
$ac_header_preproc"
10452 ac_res=`eval echo '${'$as_ac_Header'}'`
10453 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10454 echo "${ECHO_T}$ac_res" >&6; }
10457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10466 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10468 # OK, does it define bRequestType? Older versions of the kernel
10469 # define fields with names like "requesttype
, "request", and
10470 # "value", rather than "bRequestType", "bRequest", and
10473 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10474 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10475 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 cat >conftest.
$ac_ext <<_ACEOF
10481 cat confdefs.h
>>conftest.
$ac_ext
10482 cat >>conftest.
$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 $ac_includes_default
10486 #ifdef HAVE_SYS_BITYPES_H
10487 #include <sys/bitypes.h>
10489 # include <linux/usbdevice_fs.h>
10493 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10498 rm -f conftest.
$ac_objext
10499 if { (ac_try
="$ac_compile"
10500 case "(($ac_try" in
10501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_compile") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest.$ac_objext; then
10515 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10527 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10528 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10530 cat >>confdefs.h <<\_ACEOF
10531 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10538 { echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6; }
10545 # Check whether --enable-bluetooth was given.
10546 if test "${enable_bluetooth+set}" = set; then
10547 enableval=$enable_bluetooth;
10549 enable_bluetooth=yes
10553 if test "x$enable_bluetooth" != "xno" ; then
10556 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10557 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10558 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10559 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10565 # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10567 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 $ac_includes_default
10575 #include <bluetooth/bluetooth.h>
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10581 *) ac_try_echo
=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1
>conftest.err
10588 cat conftest.err
>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.
$ac_objext; then
10594 ac_header_compiler
=yes
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.
$ac_ext >&5
10599 ac_header_compiler
=no
10602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10604 echo "${ECHO_T}$ac_header_compiler" >&6; }
10606 # Is the header present?
10607 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10608 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10609 cat >conftest.
$ac_ext <<_ACEOF
10612 cat confdefs.h
>>conftest.
$ac_ext
10613 cat >>conftest.
$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <bluetooth/bluetooth.h>
10617 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10618 case "(($ac_try" in
10619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null && {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10633 ac_header_preproc=yes
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_header_preproc=no
10641 rm -f conftest.err conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 echo "${ECHO_T}$ac_header_preproc" >&6; }
10645 # So? What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10648 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10649 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10651 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10655 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10656 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10658 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10660 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10662 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10664 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10666 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10670 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10671 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10672 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10677 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10678 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10681 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10684 cat >>confdefs.h <<\_ACEOF
10685 #define PCAP_SUPPORT_BT 1
10688 BT_SRC=pcap-bt-linux.c
10689 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10690 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10693 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10694 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10701 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
10702 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10709 # Check whether --enable-can was given.
10710 if test "${enable_can+set}" = set; then
10711 enableval=$enable_can;
10717 if test "x$enable_can" != "xno" ; then
10720 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
10721 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
10722 if test "${ac_cv_header_linux_can_h+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 #include <sys/socket.h>
10734 #include <linux/can.h>
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10740 *) ac_try_echo
=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_compile") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1
>conftest.err
10747 cat conftest.err
>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && {
10750 test -z "$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 } && test -s conftest.
$ac_objext; then
10753 ac_cv_header_linux_can_h
=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.
$ac_ext >&5
10758 ac_cv_header_linux_can_h
=no
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
10764 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
10765 if test $ac_cv_header_linux_can_h = yes; then
10767 cat >>confdefs.h
<<\_ACEOF
10768 #define PCAP_SUPPORT_CAN 1
10771 CAN_SRC
=pcap-can-linux.c
10772 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10773 echo "$as_me: CAN sniffing is supported" >&6;}
10775 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10776 echo "$as_me: CAN sniffing is not supported" >&6;}
10782 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10783 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10793 for ac_header
in linux
/net_tstamp.h
10795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 ac_res
=`eval echo '${'$as_ac_Header'}'`
10803 { echo "$as_me:$LINENO: result: $ac_res" >&5
10804 echo "${ECHO_T}$ac_res" >&6; }
10806 # Is the header compilable?
10807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10809 cat >conftest.
$ac_ext <<_ACEOF
10812 cat confdefs.h
>>conftest.
$ac_ext
10813 cat >>conftest.
$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 #include <$ac_header>
10818 rm -f conftest.
$ac_objext
10819 if { (ac_try
="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
10835 ac_header_compiler=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_header_compiler=no
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 echo "${ECHO_T}$ac_header_compiler" >&6; }
10847 # Is the header present?
10848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <$ac_header>
10858 if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10861 *) ac_try_echo
=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10866 grep -v '^ *+' conftest.er1
>conftest.err
10868 cat conftest.err
>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } >/dev
/null
&& {
10871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10874 ac_header_preproc
=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.
$ac_ext >&5
10879 ac_header_preproc
=no
10882 rm -f conftest.err conftest.
$ac_ext
10883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884 echo "${ECHO_T}$ac_header_preproc" >&6; }
10886 # So? What about this header?
10887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc
=yes
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 eval "$as_ac_Header=\$ac_header_preproc"
10918 ac_res
=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h
<<_ACEOF
10925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10934 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
10935 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
10939 # Find a good install program. We prefer a C program (faster),
10940 # so one script is as good as another. But avoid the broken or
10941 # incompatible versions:
10942 # SysV /etc/install, /usr/sbin/install
10943 # SunOS /usr/etc/install
10944 # IRIX /sbin/install
10946 # AmigaOS /C/install, which installs bootblocks on floppy discs
10947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10950 # OS/2's system install, which has a completely different semantic
10951 # ./install, which can be erroneously created by make from ./install.sh.
10952 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10954 if test -z "$INSTALL"; then
10955 if test "${ac_cv_path_install+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10959 for as_dir
in $PATH
10962 test -z "$as_dir" && as_dir
=.
10963 # Account for people who put trailing slashes in PATH elements.
10965 .
/ | .
// |
/cC
/* | \
10966 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
10967 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
10970 # OSF1 and SCO ODT 3.0 have their own names for install.
10971 # Don't use installbsd from OSF since it installs stuff as root
10973 for ac_prog
in ginstall scoinst
install; do
10974 for ac_exec_ext
in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10976 if test $ac_prog = install &&
10977 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
10978 # AIX install. It has an incompatible calling convention.
10980 elif test $ac_prog = install &&
10981 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
10982 # program-specific install script used by HP pwplus--don't use.
10985 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
10998 if test "${ac_cv_path_install+set}" = set; then
10999 INSTALL
=$ac_cv_path_install
11001 # As a last resort, use the slow shell script. Don't cache a
11002 # value for INSTALL within a source directory, because that will
11003 # break other packages using the cache if that directory is
11004 # removed, or if the value is a relative name.
11005 INSTALL
=$ac_install_sh
11008 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11009 echo "${ECHO_T}$INSTALL" >&6; }
11011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11012 # It thinks the first close brace ends the variable substitution.
11013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11017 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11020 ac_config_headers
="$ac_config_headers config.h"
11023 ac_config_files
="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11025 cat >confcache
<<\_ACEOF
11026 # This file is a shell script that caches the results of configure
11027 # tests run on this system so they can be shared between configure
11028 # scripts and configure runs, see configure's option --config-cache.
11029 # It is not useful on other systems. If it contains results you don't
11030 # want to keep, you may remove or edit it.
11032 # config.status only pays attention to the cache file if you give it
11033 # the --recheck option to rerun configure.
11035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11037 # following values.
11041 # The following way of writing the cache mishandles newlines in values,
11042 # but we know of no workaround that is simple, portable, and efficient.
11043 # So, we kill variables containing newlines.
11044 # Ultrix sh set writes to stderr and can't be redirected directly,
11045 # and sets the high bit in the cache file unless we assign to the vars.
11047 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11048 eval ac_val
=\$
$ac_var
11052 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11053 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11056 _ | IFS | as_nl
) ;; #(
11057 *) $as_unset $ac_var ;;
11063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11064 *${as_nl}ac_space
=\
*)
11065 # `set' does not quote correctly, so add quotes (double-quote
11066 # substitution turns \\\\ into \\, and sed turns \\ into \).
11069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11072 # `set' quotes correctly as required by POSIX, so do not add quotes.
11073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11086 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11087 if test -w "$cache_file"; then
11088 test "x$cache_file" != "x/dev/null" &&
11089 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11090 echo "$as_me: updating cache $cache_file" >&6;}
11091 cat confcache
>$cache_file
11093 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11094 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11099 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11100 # Let make expand exec_prefix.
11101 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11103 DEFS
=-DHAVE_CONFIG_H
11107 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11108 # 1. Remove the extension, and $U if already installed.
11109 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11110 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11112 # will be set to the directory where LIBOBJS objects are built.
11113 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11114 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11116 LIBOBJS
=$ac_libobjs
11118 LTLIBOBJS
=$ac_ltlibobjs
11122 : ${CONFIG_STATUS=./config.status}
11123 ac_clean_files_save
=$ac_clean_files
11124 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11125 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11126 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11127 cat >$CONFIG_STATUS <<_ACEOF
11129 # Generated by $as_me.
11130 # Run this file to recreate the current configuration.
11131 # Compiler output produced by configure, useful for debugging
11132 # configure, is in config.log if it exists.
11135 ac_cs_recheck=false
11137 SHELL=\${CONFIG_SHELL-$SHELL}
11140 cat >>$CONFIG_STATUS <<\_ACEOF
11141 ## --------------------- ##
11142 ## M4sh Initialization. ##
11143 ## --------------------- ##
11145 # Be more Bourne compatible
11146 DUALCASE
=1; export DUALCASE
# for MKS sh
11147 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11151 # is contrary to our usage. Disable this feature.
11152 alias -g '${1+"$@"}'='"$@"'
11153 setopt NO_GLOB_SUBST
11155 case `(set -o) 2>/dev/null` in
11156 *posix
*) set -o posix
;;
11165 # Avoid depending upon Character Ranges.
11166 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11167 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11168 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11169 as_cr_digits
='0123456789'
11170 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11172 # The user is always right.
11173 if test "${PATH_SEPARATOR+set}" != set; then
11174 echo "#! /bin/sh" >conf$$.sh
11175 echo "exit 0" >>conf$$.sh
11177 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11185 # Support unset when possible.
11186 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11194 # We need space, tab and new line, in precisely that order. Quoting is
11195 # there to prevent editors from complaining about space-tab.
11196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197 # splitting by setting IFS to empty value.)
11202 # Find who we are. Look in the path if we contain no directory separator.
11204 *[\\/]* ) as_myself
=$0 ;;
11205 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11206 for as_dir
in $PATH
11209 test -z "$as_dir" && as_dir
=.
11210 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11216 # We did not find ourselves, most probably we were run as `sh COMMAND'
11217 # in which case we are not to be found in the path.
11218 if test "x$as_myself" = x
; then
11221 if test ! -f "$as_myself"; then
11222 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11223 { (exit 1); exit 1; }
11226 # Work around bugs in pre-3.0 UWIN ksh.
11227 for as_var
in ENV MAIL MAILPATH
11228 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11238 LC_TELEPHONE LC_TIME
11240 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11241 eval $as_var=C
; export $as_var
11243 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11247 # Required to use basename.
11248 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11249 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11255 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11256 as_basename
=basename
11262 # Name of the executable.
11263 as_me
=`$as_basename -- "$0" ||
11264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11265 X"$0" : 'X\(//\)$' \| \
11266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11268 sed '/^.*\/\([^/][^/]*\)\/*$/{
11287 as_lineno_1
=$LINENO
11288 as_lineno_2
=$LINENO
11289 test "x$as_lineno_1" != "x$as_lineno_2" &&
11290 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
11292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11293 # uniformly replaced by the line number. The first 'sed' inserts a
11294 # line-number line after each line using $LINENO; the second 'sed'
11295 # does the real work. The second script uses 'N' to pair each
11296 # line-number line with the line containing $LINENO, and appends
11297 # trailing '-' during substitution so that $LINENO is not a special
11298 # case at line end.
11299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11300 # scripts with optimization help from Paolo Bonzini. Blame Lee
11301 # E. McMahon (1931-1989) for sed's syntax. :-)
11313 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11316 ' >$as_me.lineno
&&
11317 chmod +x
"$as_me.lineno" ||
11318 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11319 { (exit 1); exit 1; }; }
11321 # Don't try to exec as it changes $[0], causing all sort of problems
11322 # (the dirname of $[0] is not the place where we might find the
11323 # original and so on. Autoconf is especially sensitive to this).
11324 .
"./$as_me.lineno"
11325 # Exit status is that of the last command.
11330 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11336 ECHO_C
= ECHO_N
= ECHO_T
=
11337 case `echo -n x` in
11339 case `echo 'x\c'` in
11340 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11347 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11348 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11354 rm -f conf$$ conf$$.exe conf$$.
file
11355 if test -d conf$$.dir
; then
11356 rm -f conf$$.dir
/conf$$.
file
11362 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11364 # ... but there are two gotchas:
11365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11367 # In both cases, we have to default to `cp -p'.
11368 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11370 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11375 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11376 rmdir conf$$.dir
2>/dev
/null
11378 if mkdir
-p .
2>/dev
/null
; then
11381 test -d .
/-p && rmdir .
/-p
11385 if test -x / >/dev
/null
2>&1; then
11386 as_test_x
='test -x'
11388 if ls -dL / >/dev
/null
2>&1; then
11395 if test -d "$1"; then
11401 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11402 ???[sx]*):;;*)false;;esac;fi
11406 as_executable_p
=$as_test_x
11408 # Sed expression to map a string onto a valid CPP name.
11409 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11411 # Sed expression to map a string onto a valid variable name.
11412 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11417 # Save the log message, to keep $[0] and so on meaningful, and to
11418 # report actual input values of CONFIG_FILES etc. instead of their
11419 # values after options handling.
11421 This file was extended by $as_me, which was
11422 generated by GNU Autoconf 2.61. Invocation command line was
11424 CONFIG_FILES = $CONFIG_FILES
11425 CONFIG_HEADERS = $CONFIG_HEADERS
11426 CONFIG_LINKS = $CONFIG_LINKS
11427 CONFIG_COMMANDS = $CONFIG_COMMANDS
11430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11435 cat >>$CONFIG_STATUS <<_ACEOF
11436 # Files that config.status was made for.
11437 config_files="$ac_config_files"
11438 config_headers="$ac_config_headers"
11442 cat >>$CONFIG_STATUS <<\_ACEOF
11444 \`$as_me' instantiates files from templates according to the
11445 current configuration.
11447 Usage: $0 [OPTIONS] [FILE]...
11449 -h, --help print this help, then exit
11450 -V, --version print version number and configuration settings, then exit
11451 -q, --quiet do not print progress messages
11452 -d, --debug don't remove temporary files
11453 --recheck update $as_me by reconfiguring in the same conditions
11454 --file=FILE[:TEMPLATE]
11455 instantiate the configuration file FILE
11456 --header=FILE[:TEMPLATE]
11457 instantiate the configuration header FILE
11459 Configuration files:
11462 Configuration headers:
11465 Report bugs to <bug-autoconf@gnu.org>."
11468 cat >>$CONFIG_STATUS <<_ACEOF
11471 configured by $0, generated by GNU Autoconf 2.61,
11472 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11474 Copyright (C) 2006 Free Software Foundation, Inc.
11475 This config.status script is free software; the Free Software Foundation
11476 gives unlimited permission to copy, distribute and modify it."
11483 cat >>$CONFIG_STATUS <<\_ACEOF
11484 # If no file are specified by the user, then we need to provide default
11485 # value. By we need to know if files were specified by the user.
11491 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11492 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11503 # Handling of the options.
11504 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11506 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11507 echo "$ac_cs_version"; exit ;;
11508 --debug |
--debu |
--deb |
--de |
--d |
-d )
11510 --file |
--fil |
--fi |
--f )
11512 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11513 ac_need_defaults
=false
;;
11514 --header |
--heade |
--head |
--hea )
11516 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11517 ac_need_defaults
=false
;;
11519 # Conflict between --help and --header
11520 { echo "$as_me: error: ambiguous option: $1
11521 Try \`$0 --help' for more information." >&2
11522 { (exit 1); exit 1; }; };;
11523 --help |
--hel |
-h )
11524 echo "$ac_cs_usage"; exit ;;
11525 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11526 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11529 # This is an error.
11530 -*) { echo "$as_me: error: unrecognized option: $1
11531 Try \`$0 --help' for more information." >&2
11532 { (exit 1); exit 1; }; } ;;
11534 *) ac_config_targets
="$ac_config_targets $1"
11535 ac_need_defaults
=false
;;
11541 ac_configure_extra_args
=
11543 if $ac_cs_silent; then
11545 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11549 cat >>$CONFIG_STATUS <<_ACEOF
11550 if \$ac_cs_recheck; then
11551 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11552 CONFIG_SHELL=$SHELL
11553 export CONFIG_SHELL
11554 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11558 cat >>$CONFIG_STATUS <<\_ACEOF
11562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11563 ## Running $as_me. ##
11569 cat >>$CONFIG_STATUS <<_ACEOF
11572 cat >>$CONFIG_STATUS <<\_ACEOF
11574 # Handling of arguments.
11575 for ac_config_target
in $ac_config_targets
11577 case $ac_config_target in
11578 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11579 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11580 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11581 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11582 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11583 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11584 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11585 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11586 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11587 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11588 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11589 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11590 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11591 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11592 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11596 { (exit 1); exit 1; }; };;
11601 # If the user did not use the arguments to specify the items to instantiate,
11602 # then the envvar interface is used. Set only those that are not.
11603 # We use the long form for the default assignment because of an extremely
11604 # bizarre bug on SunOS 4.1.3.
11605 if $ac_need_defaults; then
11606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11610 # Have a temporary directory for convenience. Make it in the build tree
11611 # simply because there is no reason against having it here, and in addition,
11612 # creating and moving files from /tmp can sometimes cause problems.
11613 # Hook for its removal unless debugging.
11614 # Note that there is a small window in which the directory will not be cleaned:
11615 # after its creation but before its name has been assigned to `$tmp'.
11619 trap 'exit_status=$?
11620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11622 trap '{ (exit 1); exit 1; }' 1 2 13 15
11624 # Create a (secure) tmp directory for tmp files.
11627 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11628 test -n "$tmp" && test -d "$tmp"
11631 tmp
=.
/conf$$
-$RANDOM
11632 (umask 077 && mkdir
"$tmp")
11635 echo "$me: cannot create a temporary directory in ." >&2
11636 { (exit 1); exit 1; }
11640 # Set up the sed scripts for CONFIG_FILES section.
11643 # No need to generate the scripts if there are no CONFIG_FILES.
11644 # This happens for instance when ./config.status config.h
11645 if test -n "$CONFIG_FILES"; then
11652 for ac_last_try
in false false false false false
:; do
11653 cat >conf$
$subs.
sed <<_ACEOF
11654 SHELL!$SHELL$ac_delim
11655 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11656 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11657 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11658 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11659 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11660 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11661 exec_prefix!$exec_prefix$ac_delim
11662 prefix!$prefix$ac_delim
11663 program_transform_name!$program_transform_name$ac_delim
11664 bindir!$bindir$ac_delim
11665 sbindir!$sbindir$ac_delim
11666 libexecdir!$libexecdir$ac_delim
11667 datarootdir!$datarootdir$ac_delim
11668 datadir!$datadir$ac_delim
11669 sysconfdir!$sysconfdir$ac_delim
11670 sharedstatedir!$sharedstatedir$ac_delim
11671 localstatedir!$localstatedir$ac_delim
11672 includedir!$includedir$ac_delim
11673 oldincludedir!$oldincludedir$ac_delim
11674 docdir!$docdir$ac_delim
11675 infodir!$infodir$ac_delim
11676 htmldir!$htmldir$ac_delim
11677 dvidir!$dvidir$ac_delim
11678 pdfdir!$pdfdir$ac_delim
11679 psdir!$psdir$ac_delim
11680 libdir!$libdir$ac_delim
11681 localedir!$localedir$ac_delim
11682 mandir!$mandir$ac_delim
11683 DEFS!$DEFS$ac_delim
11684 ECHO_C!$ECHO_C$ac_delim
11685 ECHO_N!$ECHO_N$ac_delim
11686 ECHO_T!$ECHO_T$ac_delim
11687 LIBS!$LIBS$ac_delim
11688 build_alias!$build_alias$ac_delim
11689 host_alias!$host_alias$ac_delim
11690 target_alias!$target_alias$ac_delim
11691 build!$build$ac_delim
11692 build_cpu!$build_cpu$ac_delim
11693 build_vendor!$build_vendor$ac_delim
11694 build_os!$build_os$ac_delim
11695 host!$host$ac_delim
11696 host_cpu!$host_cpu$ac_delim
11697 host_vendor!$host_vendor$ac_delim
11698 host_os!$host_os$ac_delim
11699 target!$target$ac_delim
11700 target_cpu!$target_cpu$ac_delim
11701 target_vendor!$target_vendor$ac_delim
11702 target_os!$target_os$ac_delim
11703 SHLICC2!$SHLICC2$ac_delim
11705 CFLAGS!$CFLAGS$ac_delim
11706 LDFLAGS!$LDFLAGS$ac_delim
11707 CPPFLAGS!$CPPFLAGS$ac_delim
11708 ac_ct_CC!$ac_ct_CC$ac_delim
11709 EXEEXT!$EXEEXT$ac_delim
11710 OBJEXT!$OBJEXT$ac_delim
11712 GREP!$GREP$ac_delim
11713 EGREP!$EGREP$ac_delim
11714 LIBOBJS!$LIBOBJS$ac_delim
11715 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11716 V_LEX!$V_LEX$ac_delim
11717 V_YACC!$V_YACC$ac_delim
11718 RANLIB!$RANLIB$ac_delim
11720 V_CCOPT!$V_CCOPT$ac_delim
11721 V_DEFS!$V_DEFS$ac_delim
11722 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11723 V_INCLS!$V_INCLS$ac_delim
11724 V_PCAP!$V_PCAP$ac_delim
11725 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11726 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11727 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11728 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11729 ADDLOBJS!$ADDLOBJS$ac_delim
11730 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11731 SSRC!$SSRC$ac_delim
11732 DYEXT!$DYEXT$ac_delim
11733 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11734 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11735 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11736 USB_SRC!$USB_SRC$ac_delim
11737 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11738 BT_SRC!$BT_SRC$ac_delim
11739 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11740 CAN_SRC!$CAN_SRC$ac_delim
11741 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11742 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11743 INSTALL_DATA!$INSTALL_DATA$ac_delim
11744 LTLIBOBJS!$LTLIBOBJS$ac_delim
11747 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
11749 elif $ac_last_try; then
11750 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11752 { (exit 1); exit 1; }; }
11754 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
11758 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11759 if test -n "$ac_eof"; then
11760 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
11761 ac_eof
=`expr $ac_eof + 1`
11764 cat >>$CONFIG_STATUS <<_ACEOF
11765 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11770 s/^/s,@/; s/!/@,|#_!!_#|/
11773 s/'"$ac_delim"'$/,g/; t
11775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11776 ' >>$CONFIG_STATUS <conf$
$subs.
sed
11777 rm -f conf$
$subs.
sed
11778 cat >>$CONFIG_STATUS <<_ACEOF
11785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11787 # trailing colons and then remove the whole line if VPATH becomes empty
11788 # (actually we leave an empty line to preserve line numbers).
11789 if test "x$srcdir" = x.
; then
11790 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11791 s/:*\$(srcdir):*/:/
11792 s/:*\${srcdir}:*/:/
11794 s/^\([^=]*=[ ]*\):*/\1/
11800 cat >>$CONFIG_STATUS <<\_ACEOF
11801 fi # test -n "$CONFIG_FILES"
11804 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
11807 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11809 case $ac_mode$ac_tag in
11811 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11812 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11813 { (exit 1); exit 1; }; };;
11814 :[FH
]-) ac_tag
=-:-;;
11815 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11832 -) ac_f
="$tmp/stdin";;
11833 *) # Look for the file first in the build tree, then in the source tree
11834 # (if the path is not absolute). The absolute path cannot be DOS-style,
11835 # because $ac_f cannot contain `:'.
11839 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11841 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11842 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11843 { (exit 1); exit 1; }; };;
11845 ac_file_inputs
="$ac_file_inputs $ac_f"
11848 # Let's still pretend it is `configure' which instantiates (i.e., don't
11849 # use $as_me), people would be surprised to read:
11850 # /* config.h. Generated by config.status. */
11851 configure_input
="Generated from "`IFS=:
11852 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11853 if test x
"$ac_file" != x-
; then
11854 configure_input
="$ac_file. $configure_input"
11855 { echo "$as_me:$LINENO: creating $ac_file" >&5
11856 echo "$as_me: creating $ac_file" >&6;}
11860 *:-:* |
*:-) cat >"$tmp/stdin";;
11865 ac_dir
=`$as_dirname -- "$ac_file" ||
11866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11867 X"$ac_file" : 'X\(//\)[^/]' \| \
11868 X"$ac_file" : 'X\(//\)$' \| \
11869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11875 /^X\(\/\/\)[^/].*/{
11890 -*) as_dir
=.
/$as_dir;;
11892 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
11896 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11897 *) as_qdir
=$as_dir;;
11899 as_dirs
="'$as_qdir' $as_dirs"
11900 as_dir
=`$as_dirname -- "$as_dir" ||
11901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11902 X"$as_dir" : 'X\(//\)[^/]' \| \
11903 X"$as_dir" : 'X\(//\)$' \| \
11904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11910 /^X\(\/\/\)[^/].*/{
11923 test -d "$as_dir" && break
11925 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11926 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11927 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11928 { (exit 1); exit 1; }; }; }
11932 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11934 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11935 # A ".." for each directory in $ac_dir_suffix.
11936 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11937 case $ac_top_builddir_sub in
11938 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11939 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11942 ac_abs_top_builddir
=$ac_pwd
11943 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11944 # for backward compatibility:
11945 ac_top_builddir
=$ac_top_build_prefix
11948 .
) # We are building in place.
11950 ac_top_srcdir
=$ac_top_builddir_sub
11951 ac_abs_top_srcdir
=$ac_pwd ;;
11952 [\\/]* | ?
:[\\/]* ) # Absolute name.
11953 ac_srcdir
=$srcdir$ac_dir_suffix;
11954 ac_top_srcdir
=$srcdir
11955 ac_abs_top_srcdir
=$srcdir ;;
11956 *) # Relative name.
11957 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11958 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11959 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11961 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11971 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11972 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11976 cat >>$CONFIG_STATUS <<\_ACEOF
11977 # If the template does not know about datarootdir, expand it.
11978 # FIXME: This hack should be removed a few years after 2.60.
11979 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11981 case `sed -n '/datarootdir/ {
11990 ' $ac_file_inputs` in
11991 *datarootdir
*) ac_datarootdir_seen
=yes;;
11992 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11993 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11994 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11996 cat >>$CONFIG_STATUS <<_ACEOF
11997 ac_datarootdir_hack='
11998 s&@datadir@&$datadir&g
11999 s&@docdir@&$docdir&g
12000 s&@infodir@&$infodir&g
12001 s&@localedir@&$localedir&g
12002 s&@mandir@&$mandir&g
12003 s&\\\${datarootdir}&$datarootdir&g' ;;
12007 # Neutralize VPATH when `$srcdir' = `.'.
12008 # Shell code in configure.ac might set extrasub.
12009 # FIXME: do we really want to maintain this feature?
12010 cat >>$CONFIG_STATUS <<_ACEOF
12014 cat >>$CONFIG_STATUS <<\_ACEOF
12016 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12017 s
&@configure_input@
&$configure_input&;t t
12018 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12019 s
&@srcdir@
&$ac_srcdir&;t t
12020 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12021 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12022 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12023 s
&@builddir@
&$ac_builddir&;t t
12024 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12025 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12026 s
&@INSTALL@
&$ac_INSTALL&;t t
12027 $ac_datarootdir_hack
12028 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
12030 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12031 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12032 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12033 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12034 which seems to be undefined. Please make sure it is defined." >&5
12035 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12036 which seems to be undefined. Please make sure it is defined." >&2;}
12040 -) cat "$tmp/out"; rm -f "$tmp/out";;
12041 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12050 # Transform confdefs.h into a sed script `conftest.defines', that
12051 # substitutes the proper values into config.h.in to produce config.h.
12052 rm -f conftest.defines conftest.
tail
12053 # First, append a space to every undef/define line, to ease matching.
12054 echo 's/$/ /' >conftest.defines
12055 # Then, protect against being on the right side of a sed subst, or in
12056 # an unquoted here document, in config.status. If some macros were
12057 # called several times there might be several #defines for the same
12058 # symbol, which is useless. But do not sort them, since the last
12059 # AC_DEFINE must be honored.
12060 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12061 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12062 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12063 # PARAMS is the parameter list in the macro definition--in most cases, it's
12064 # just an empty string.
12065 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12066 ac_dB
='\\)[ (].*,\\1define\\2'
12074 s/^[ ]*#[ ]*define[ ][ ]*//
12079 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12080 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12081 ' >>conftest.defines
12083 # Remove the space that was appended to ease matching.
12084 # Then replace #undef with comments. This is necessary, for
12085 # example, in the case of _POSIX_SOURCE, which is predefined and required
12086 # on some systems where configure will not decide to define it.
12087 # (The regexp can be short, since the line contains either #define or #undef.)
12089 s,^[ #]*u.*,/* & */,' >>conftest.defines
12091 # Break up conftest.defines:
12092 ac_max_sed_lines
=50
12094 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12095 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12096 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12098 ac_in
='$ac_file_inputs'
12099 ac_out
='"$tmp/out1"'
12100 ac_nxt
='"$tmp/out2"'
12104 # Write a here document:
12105 cat >>$CONFIG_STATUS <<_ACEOF
12106 # First, check the format of the line:
12107 cat >"\$tmp/defines.sed" <<\\CEOF
12108 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12109 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12113 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12115 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12116 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12117 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12118 grep . conftest.
tail >/dev
/null ||
break
12119 rm -f conftest.defines
12120 mv conftest.
tail conftest.defines
12122 rm -f conftest.defines conftest.
tail
12124 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12125 cat >>$CONFIG_STATUS <<\_ACEOF
12126 if test x
"$ac_file" != x-
; then
12127 echo "/* $configure_input */" >"$tmp/config.h"
12128 cat "$ac_result" >>"$tmp/config.h"
12129 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12130 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12131 echo "$as_me: $ac_file is unchanged" >&6;}
12134 mv "$tmp/config.h" $ac_file
12137 echo "/* $configure_input */"
12149 { (exit 0); exit 0; }
12151 chmod +x
$CONFIG_STATUS
12152 ac_clean_files
=$ac_clean_files_save
12155 # configure is writing to config.log, and then calls config.status.
12156 # config.status does its own redirection, appending to config.log.
12157 # Unfortunately, on DOS this fails, as config.log is still kept open
12158 # by configure, so config.status won't be able to write to it; its
12159 # output is simply discarded. So we exec the FD to /dev/null,
12160 # effectively closing config.log, so it can be properly (re)opened and
12161 # appended to by config.status. When coming back to configure, we
12162 # need to make the FD available again.
12163 if test "$no_create" != yes; then
12165 ac_config_status_args
=
12166 test "$silent" = yes &&
12167 ac_config_status_args
="$ac_config_status_args --quiet"
12169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12172 # would make configure fail if this is the last instruction.
12173 $ac_cs_success ||
{ (exit 1); exit 1; }
12177 if test -f .devel
; then