2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
678 HAVE_LINUX_TPACKET_AUXDATA
708 ac_precious_vars
='build_alias
719 # Initialize some variables set by options.
721 ac_init_version
=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
731 program_transform_name
=s
,x
,x
,
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir
='${exec_prefix}/bin'
746 sbindir
='${exec_prefix}/sbin'
747 libexecdir
='${exec_prefix}/libexec'
748 datarootdir
='${prefix}/share'
749 datadir
='${datarootdir}'
750 sysconfdir
='${prefix}/etc'
751 sharedstatedir
='${prefix}/com'
752 localstatedir
='${prefix}/var'
753 includedir
='${prefix}/include'
754 oldincludedir
='/usr/include'
755 docdir
='${datarootdir}/doc/${PACKAGE}'
756 infodir
='${datarootdir}/info'
761 libdir
='${exec_prefix}/lib'
762 localedir
='${datarootdir}/locale'
763 mandir
='${datarootdir}/man'
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\
$ac_option
777 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
787 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
789 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
792 -build |
--build |
--buil |
--bui |
--bu)
793 ac_prev
=build_alias
;;
794 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
795 build_alias
=$ac_optarg ;;
797 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
798 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
799 ac_prev
=cache_file
;;
800 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
801 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
802 cache_file
=$ac_optarg ;;
805 cache_file
=config.cache
;;
807 -datadir |
--datadir |
--datadi |
--datad)
809 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
810 datadir
=$ac_optarg ;;
812 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
813 |
--dataroo |
--dataro |
--datar)
814 ac_prev
=datarootdir
;;
815 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
816 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
817 datarootdir
=$ac_optarg ;;
819 -disable-* |
--disable-*)
820 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_
$ac_feature=no
;;
828 -docdir |
--docdir |
--docdi |
--doc |
--do)
830 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
833 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
835 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
838 -enable-* |
--enable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=\
$ac_optarg ;;
847 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
848 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
849 |
--exec |
--exe |
--ex)
850 ac_prev
=exec_prefix
;;
851 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
852 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
853 |
--exec=* |
--exe=* |
--ex=*)
854 exec_prefix
=$ac_optarg ;;
856 -gas |
--gas |
--ga |
--g)
857 # Obsolete; use --with-gas.
860 -help |
--help |
--hel |
--he |
-h)
862 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
863 ac_init_help
=recursive
;;
864 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
865 ac_init_help
=short
;;
867 -host |
--host |
--hos |
--ho)
868 ac_prev
=host_alias
;;
869 -host=* |
--host=* |
--hos=* |
--ho=*)
870 host_alias
=$ac_optarg ;;
872 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
874 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
876 htmldir
=$ac_optarg ;;
878 -includedir |
--includedir |
--includedi |
--included |
--include \
879 |
--includ |
--inclu |
--incl |
--inc)
880 ac_prev
=includedir
;;
881 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
882 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
883 includedir
=$ac_optarg ;;
885 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
887 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
888 infodir
=$ac_optarg ;;
890 -libdir |
--libdir |
--libdi |
--libd)
892 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
895 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
896 |
--libexe |
--libex |
--libe)
897 ac_prev
=libexecdir
;;
898 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
899 |
--libexe=* |
--libex=* |
--libe=*)
900 libexecdir
=$ac_optarg ;;
902 -localedir |
--localedir |
--localedi |
--localed |
--locale)
904 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
905 localedir
=$ac_optarg ;;
907 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
908 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
909 ac_prev
=localstatedir
;;
910 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
911 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
912 localstatedir
=$ac_optarg ;;
914 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
916 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
920 # Obsolete; use --without-fp.
923 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
924 |
--no-cr |
--no-c |
-n)
927 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
928 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
931 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
932 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
933 |
--oldin |
--oldi |
--old |
--ol |
--o)
934 ac_prev
=oldincludedir
;;
935 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
936 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
937 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
938 oldincludedir
=$ac_optarg ;;
940 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
942 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
945 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
946 |
--program-pre |
--program-pr |
--program-p)
947 ac_prev
=program_prefix
;;
948 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
949 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
950 program_prefix
=$ac_optarg ;;
952 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
953 |
--program-suf |
--program-su |
--program-s)
954 ac_prev
=program_suffix
;;
955 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
956 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
957 program_suffix
=$ac_optarg ;;
959 -program-transform-name |
--program-transform-name \
960 |
--program-transform-nam |
--program-transform-na \
961 |
--program-transform-n |
--program-transform- \
962 |
--program-transform |
--program-transfor \
963 |
--program-transfo |
--program-transf \
964 |
--program-trans |
--program-tran \
965 |
--progr-tra |
--program-tr |
--program-t)
966 ac_prev
=program_transform_name
;;
967 -program-transform-name=* |
--program-transform-name=* \
968 |
--program-transform-nam=* |
--program-transform-na=* \
969 |
--program-transform-n=* |
--program-transform-=* \
970 |
--program-transform=* |
--program-transfor=* \
971 |
--program-transfo=* |
--program-transf=* \
972 |
--program-trans=* |
--program-tran=* \
973 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
974 program_transform_name
=$ac_optarg ;;
976 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
978 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
981 -psdir |
--psdir |
--psdi |
--psd |
--ps)
983 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
986 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
987 |
-silent |
--silent |
--silen |
--sile |
--sil)
990 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
992 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
994 sbindir
=$ac_optarg ;;
996 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
997 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
998 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1000 ac_prev
=sharedstatedir
;;
1001 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1002 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1003 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1005 sharedstatedir
=$ac_optarg ;;
1007 -site |
--site |
--sit)
1009 -site=* |
--site=* |
--sit=*)
1012 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1014 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1015 srcdir
=$ac_optarg ;;
1017 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1018 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1019 ac_prev
=sysconfdir
;;
1020 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1021 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1022 sysconfdir
=$ac_optarg ;;
1024 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1025 ac_prev
=target_alias
;;
1026 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1027 target_alias
=$ac_optarg ;;
1029 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1032 -version |
--version |
--versio |
--versi |
--vers |
-V)
1033 ac_init_version
=: ;;
1036 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_
$ac_package=\
$ac_optarg ;;
1044 -without-* |
--without-*)
1045 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_
$ac_package=no
;;
1054 # Obsolete; use --with-x.
1057 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1058 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1059 ac_prev
=x_includes
;;
1060 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1061 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1062 x_includes
=$ac_optarg ;;
1064 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1065 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1066 ac_prev
=x_libraries
;;
1067 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1068 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1069 x_libraries
=$ac_optarg ;;
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1077 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\
$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096 if test -n "$ac_prev"; then
1097 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1102 # Be sure to have absolute directory names.
1103 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val
=\$
$ac_var
1110 [\\/$
]* | ?
:[\\/]* ) continue;;
1111 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1122 target
=$target_alias
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x
; then
1126 if test "x$build_alias" = x
; then
1127 cross_compiling
=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1136 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1138 test "$silent" = yes && exec 6>/dev
/null
1141 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di
=`ls -di .` &&
1143 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted
=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir
=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1183 ac_srcdir_defaulted
=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1190 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1203 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 for ac_var
in $ac_precious_vars; do
1206 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1208 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1213 # Report the --help message.
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1219 \`configure' configures this package to adapt to many kinds of systems.
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1226 Defaults for the options are specified in brackets.
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1250 For better control, use the options below.
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1277 --build=BUILD configure
for building on BUILD
[guessed
]
1278 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1279 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1283 if test -n "$ac_init_help"; then
1288 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1289 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1290 --disable-largefile omit support
for large files
1291 --disable-protochain disable
\"protochain
\" insn
1292 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1293 getaddrinfo available
]
1294 --enable-optimizer-dbg build optimizer debugging code
1295 --enable-yydebug build parser debugging code
1296 --enable-bluetooth enable bluetooth support
[default
=yes, if support
1298 --enable-can enable can support
[default
=yes, if support
1302 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1303 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1304 --without-gcc don
't use gcc
1305 --with-sita include SITA support
1306 --with-pcap=TYPE use packet capture TYPE
1307 --without-libnl disable libnl support [default=yes, on Linux, if
1309 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1310 default="yes" on BSD and Linux if present]
1311 --with-dag-includes=DIR Endace DAG include directory
1312 --with-dag-libraries=DIR
1313 Endace DAG library directory
1314 --with-septel[=DIR] include Septel support (located in directory DIR, if
1315 supplied). [default=yes, on Linux, if present]
1316 --without-flex don't use flex
1317 --without-bison don
't use bison
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1329 Use these variables to override the choices made by `configure' or to
help
1330 it to
find libraries and programs with nonstandard names
/locations.
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1339 test -d "$ac_dir" ||
continue
1343 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1345 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1350 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1353 ac_abs_top_builddir
=$ac_pwd
1354 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir
=$ac_top_build_prefix
1359 .
) # We are building in place.
1361 ac_top_srcdir
=$ac_top_builddir_sub
1362 ac_abs_top_srcdir
=$ac_pwd ;;
1363 [\\/]* | ?
:[\\/]* ) # Absolute name.
1364 ac_srcdir
=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir
=$srcdir
1366 ac_abs_top_srcdir
=$srcdir ;;
1368 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1372 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1374 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1393 generated by GNU Autoconf
2.61
1395 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1397 This configure
script is free software
; the Free Software Foundation
1398 gives unlimited permission to copy
, distribute and modify it.
1402 cat >config.log
<<_ACEOF
1403 This file contains any messages produced by compilers while
1404 running configure, to aid debugging if configure makes a mistake.
1406 It was created by $as_me, which was
1407 generated by GNU Autoconf 2.61. Invocation command line was
1419 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1425 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1428 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1432 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir
=.
1443 echo "PATH: $as_dir"
1459 # Keep a trace of the command line.
1460 # Strip out --no-create and --no-recursion so they do not pile up.
1461 # Strip out --silent because we don't want to record it for future runs.
1462 # Also quote any args containing shell meta-characters.
1463 # Make two passes to allow for proper duplicate-argument suppression.
1467 ac_must_keep_next
=false
1473 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1474 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1475 |
-silent |
--silent |
--silen |
--sile |
--sil)
1478 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1483 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true
; then
1485 ac_must_keep_next
=false
# Got value, back to normal.
1488 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1489 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1490 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1491 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1496 -* ) ac_must_keep_next
=true
;;
1499 ac_configure_args
="$ac_configure_args '$ac_arg'"
1504 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1505 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1507 # When interrupted or exit'd, cleanup temporary files, and complete
1508 # config.log. We remove comments because anyway the quotes in there
1509 # would cause problems or look ugly.
1510 # WARNING: Use '\'' to represent an apostrophe within the trap.
1511 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512 trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1518 ## ---------------- ##
1519 ## Cache variables. ##
1520 ## ---------------- ##
1523 # The following way of writing the cache mishandles newlines in values,
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555 ## ----------------- ##
1556 ## Output variables. ##
1557 ## ----------------- ##
1560 for ac_var in $ac_subst_vars
1562 eval ac_val=\$$ac_var
1564 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1566 echo "$ac_var='\''$ac_val'\''"
1570 if test -n "$ac_subst_files"; then
1572 ## ------------------- ##
1573 ## File substitutions. ##
1574 ## ------------------- ##
1577 for ac_var
in $ac_subst_files
1579 eval ac_val
=\$
$ac_var
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583 echo "$ac_var='\''$ac_val'\''"
1588 if test -s confdefs.h; then
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1606 for ac_signal
in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1612 rm -f -r conftest
* confdefs.h
1614 # Predefined preprocessor variables.
1616 cat >>confdefs.h
<<_ACEOF
1617 #define PACKAGE_NAME "$PACKAGE_NAME"
1621 cat >>confdefs.h
<<_ACEOF
1622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1626 cat >>confdefs.h
<<_ACEOF
1627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1631 cat >>confdefs.h
<<_ACEOF
1632 #define PACKAGE_STRING "$PACKAGE_STRING"
1636 cat >>confdefs.h
<<_ACEOF
1637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1641 # Let the site file select an alternate cache file if it wants to.
1642 # Prefer explicitly selected file to automatically selected ones.
1643 if test -n "$CONFIG_SITE"; then
1644 set x
"$CONFIG_SITE"
1645 elif test "x$prefix" != xNONE
; then
1646 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1648 set x
"$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656 echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1662 if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667 echo "$as_me: loading cache $cache_file" >&6;}
1669 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1670 *) .
"./$cache_file";;
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675 echo "$as_me: creating cache $cache_file" >&6;}
1679 # Check that the precious variables saved in the cache have kept the same
1681 ac_cache_corrupted
=false
1682 for ac_var
in $ac_precious_vars; do
1683 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1684 eval ac_new_set
=\
$ac_env_${ac_var}_set
1685 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1686 eval ac_new_val
=\
$ac_env_${ac_var}_value
1687 case $ac_old_set,$ac_new_set in
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted
=: ;;
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted
=: ;;
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702 echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704 echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted
=:
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1711 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 *) ac_arg
=$ac_var=$ac_new_val ;;
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1720 if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1745 ac_cpp
='$CPP $CPPFLAGS'
1746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1753 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1754 if test -f "$ac_dir/install-sh"; then
1756 ac_install_sh
="$ac_aux_dir/install-sh -c"
1758 elif test -f "$ac_dir/install.sh"; then
1760 ac_install_sh
="$ac_aux_dir/install.sh -c"
1762 elif test -f "$ac_dir/shtool"; then
1764 ac_install_sh
="$ac_aux_dir/shtool install -c"
1768 if test -z "$ac_aux_dir"; then
1769 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1770 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1771 { (exit 1); exit 1; }; }
1774 # These three variables are undocumented and unsupported,
1775 # and are intended to be withdrawn in a future Autoconf release.
1776 # They can cause serious problems if a builder's source tree is in a directory
1777 # whose full name contains unusual characters.
1778 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1779 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1780 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1783 # Make sure we can run config.sub.
1784 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1785 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1786 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1787 { (exit 1); exit 1; }; }
1789 { echo "$as_me:$LINENO: checking build system type" >&5
1790 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1791 if test "${ac_cv_build+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 ac_build_alias
=$build_alias
1795 test "x$ac_build_alias" = x
&&
1796 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1797 test "x$ac_build_alias" = x
&&
1798 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1799 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1800 { (exit 1); exit 1; }; }
1801 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1802 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1803 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1807 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1808 echo "${ECHO_T}$ac_cv_build" >&6; }
1809 case $ac_cv_build in
1811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1812 echo "$as_me: error: invalid value of canonical build" >&2;}
1813 { (exit 1); exit 1; }; };;
1816 ac_save_IFS
=$IFS; IFS
='-'
1822 # Remember, the first character of IFS is used to create $*,
1823 # except with old shells:
1826 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1829 { echo "$as_me:$LINENO: checking host system type" >&5
1830 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1831 if test "${ac_cv_host+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test "x$host_alias" = x
; then
1835 ac_cv_host
=$ac_cv_build
1837 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1838 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1839 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1840 { (exit 1); exit 1; }; }
1844 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1845 echo "${ECHO_T}$ac_cv_host" >&6; }
1848 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1849 echo "$as_me: error: invalid value of canonical host" >&2;}
1850 { (exit 1); exit 1; }; };;
1853 ac_save_IFS
=$IFS; IFS
='-'
1859 # Remember, the first character of IFS is used to create $*,
1860 # except with old shells:
1863 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1866 { echo "$as_me:$LINENO: checking target system type" >&5
1867 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1868 if test "${ac_cv_target+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test "x$target_alias" = x
; then
1872 ac_cv_target
=$ac_cv_host
1874 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1875 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1877 { (exit 1); exit 1; }; }
1881 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1882 echo "${ECHO_T}$ac_cv_target" >&6; }
1883 case $ac_cv_target in
1885 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1886 echo "$as_me: error: invalid value of canonical target" >&2;}
1887 { (exit 1); exit 1; }; };;
1889 target
=$ac_cv_target
1890 ac_save_IFS
=$IFS; IFS
='-'
1896 # Remember, the first character of IFS is used to create $*,
1897 # except with old shells:
1900 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1903 # The aliases save the names the user supplied, while $host etc.
1904 # will get canonicalized.
1905 test -n "$target_alias" &&
1906 test "$program_prefix$program_suffix$program_transform_name" = \
1908 program_prefix
=${target_alias}-
1915 # Check whether --with-gcc was given.
1916 if test "${with_gcc+set}" = set; then
1922 if test "${srcdir}" != "." ; then
1923 V_INCLS
="-I\$(srcdir)"
1925 if test "${CFLAGS+set}" = set; then
1926 LBL_CFLAGS
="$CFLAGS"
1928 if test -z "$CC" ; then
1932 # Extract the first word of "shlicc2", so it can be a program name with args.
1933 set dummy shlicc2
; ac_word
=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$SHLICC2"; then
1940 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir
=.
1947 for ac_exec_ext
in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_SHLICC2
="yes"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1960 SHLICC2
=$ac_cv_prog_SHLICC2
1961 if test -n "$SHLICC2"; then
1962 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1963 echo "${ECHO_T}$SHLICC2" >&6; }
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1970 if test $SHLICC2 = yes ; then
1977 if test -z "$CC" -a "$with_gcc" = no
; then
1982 ac_cpp
='$CPP $CPPFLAGS'
1983 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1986 if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1988 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir
=.
2002 for ac_exec_ext
in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2025 if test -z "$ac_cv_prog_CC"; then
2027 # Extract the first word of "gcc", so it can be a program name with args.
2028 set dummy gcc
; ac_word
=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir
=.
2042 for ac_exec_ext
in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_ac_ct_CC
="gcc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2063 if test "x$ac_ct_CC" = x
; then
2066 case $cross_compiling:$ac_tool_warned in
2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet. If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&5
2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2074 ac_tool_warned
=yes ;;
2082 if test -z "$CC"; then
2083 if test -n "$ac_tool_prefix"; then
2084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2085 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC
="$CC" # Let the user override the test.
2094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir
=.
2099 for ac_exec_ext
in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 if test -n "$CC"; then
2113 { echo "$as_me:$LINENO: result: $CC" >&5
2114 echo "${ECHO_T}$CC" >&6; }
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2123 if test -z "$CC"; then
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc
; ac_word
=$2
2126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC
="$CC" # Let the user override the test.
2135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2139 test -z "$as_dir" && as_dir
=.
2140 for ac_exec_ext
in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2143 ac_prog_rejected
=yes
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy
$ac_cv_prog_CC
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2163 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$CC"; then
2180 if test -n "$ac_tool_prefix"; then
2181 for ac_prog
in cl.exe
2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC
="$CC" # Let the user override the test.
2193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir
=.
2198 for ac_exec_ext
in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 if test -n "$CC"; then
2212 { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2220 test -n "$CC" && break
2223 if test -z "$CC"; then
2225 for ac_prog
in cl.exe
2227 # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy
$ac_prog; ac_word
=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$ac_ct_CC"; then
2235 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir
=.
2242 for ac_exec_ext
in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_ac_ct_CC
="$ac_prog"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2255 if test -n "$ac_ct_CC"; then
2256 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2257 echo "${ECHO_T}$ac_ct_CC" >&6; }
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2264 test -n "$ac_ct_CC" && break
2267 if test "x$ac_ct_CC" = x
; then
2270 case $cross_compiling:$ac_tool_warned in
2272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2273 whose name does not start with the host triplet. If you think this
2274 configuration is useful to you, please write to autoconf@gnu.org." >&5
2275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2276 whose name does not start with the host triplet. If you think this
2277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2278 ac_tool_warned
=yes ;;
2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: no acceptable C compiler found in \$PATH
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2293 # Provide some information about the compiler.
2294 echo "$as_me:$LINENO: checking for C compiler version" >&5
2295 ac_compiler
=`set X $ac_compile; echo $2`
2296 { (ac_try
="$ac_compiler --version >&5"
2298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_compiler --version >&5") 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306 { (ac_try="$ac_compiler -v >&5"
2308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2309 *) ac_try_echo
=$ac_try;;
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_compiler -v >&5") 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316 { (ac_try
="$ac_compiler -V >&5"
2318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compiler -V >&5") 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 ac_clean_files_save=$ac_clean_files
2343 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344 # Try to create an executable without -o first, disregard a.out.
2345 # It will help us diagnose broken compilers, and finding out an intuition
2347 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2349 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2351 # List of possible output files, starting from the most likely.
2352 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2353 # only as a last resort. b.out is created by i960 compilers.
2354 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2356 # The IRIX 6 linker writes into existing files which may not be
2357 # executable, retaining their permissions. Remove them first so a
2358 # subsequent execution test works.
2360 for ac_file in $ac_files
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2369 if { (ac_try="$ac_link_default"
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_link_default") 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2382 # so that the user can short-circuit this test for compilers unknown to
2384 for ac_file
in $ac_files ''
2386 test -f "$ac_file" ||
continue
2388 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2391 # We found the default executable, but exeext='' is most
2395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2397 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2399 # We set ac_cv_exeext here because the later test for it is not
2400 # safe: cross compilers may not add the suffix if given an `-o'
2401 # argument, so we may need to know it at that point already.
2402 # Even if this section looks crufty: it has the advantage of
2409 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2415 { echo "$as_me:$LINENO: result: $ac_file" >&5
2416 echo "${ECHO_T}$ac_file" >&6; }
2417 if test -z "$ac_file"; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.
$ac_ext >&5
2421 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: C compiler cannot create executables
2424 See \`config.log' for more details." >&2;}
2425 { (exit 77); exit 77; }; }
2428 ac_exeext
=$ac_cv_exeext
2430 # Check that the compiler produces executables we can run. If not, either
2431 # the compiler is broken, or we cross compile.
2432 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2433 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2434 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2435 # If not cross compiling, check that we can run a simple program.
2436 if test "$cross_compiling" != yes; then
2437 if { ac_try
='./$ac_file'
2438 { (case "(($ac_try" in
2439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_try") 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 if test "$cross_compiling" = maybe; then
2452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2453 If you meant to cross compile, use \`--host'.
2454 See \`config.log' for more details.
" >&5
2455 echo "$as_me: error
: cannot run C compiled programs.
2456 If you meant to cross compile
, use \
`--host'.
2457 See \`config.log
' for more details." >&2;}
2458 { (exit 1); exit 1; }; }
2462 { echo "$as_me:$LINENO: result: yes" >&5
2463 echo "${ECHO_T}yes" >&6; }
2465 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2466 ac_clean_files=$ac_clean_files_save
2467 # Check that the compiler produces executables we can run. If not, either
2468 # the compiler is broken, or we cross compile.
2469 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2470 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2471 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2472 echo "${ECHO_T}$cross_compiling" >&6; }
2474 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2475 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2476 if { (ac_try="$ac_link"
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_link") 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
2486 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2487 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2488 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2490 for ac_file
in conftest.exe conftest conftest.
*; do
2491 test -f "$ac_file" ||
continue
2493 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2494 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2507 rm -f conftest
$ac_cv_exeext
2508 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2509 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2511 rm -f conftest.
$ac_ext
2512 EXEEXT
=$ac_cv_exeext
2514 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2515 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2516 if test "${ac_cv_objext+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 cat >conftest.
$ac_ext <<_ACEOF
2522 cat confdefs.h
>>conftest.
$ac_ext
2523 cat >>conftest.
$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2534 rm -f conftest.o conftest.obj
2535 if { (ac_try
="$ac_compile"
2537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 for ac_file in conftest.o conftest.obj conftest.*; do
2546 test -f "$ac_file" || continue;
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log
' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details.
" >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6; }
2568 OBJEXT=$ac_cv_objext
2570 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached
) $ECHO_C" >&6
2575 cat >conftest.$ac_ext <<_ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2606 (exit $ac_status); } && {
2607 test -z "$ac_c_werror_flag" ||
2608 test ! -s conftest.err
2609 } && test -s conftest.$ac_objext; then
2612 echo "$as_me: failed program was
:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2622 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2624 GCC=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CFLAGS=${CFLAGS+set}
2626 ac_save_CFLAGS=$CFLAGS
2627 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2628 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_g+set}" = set; then
2630 echo $ECHO_N "(cached
) $ECHO_C" >&6
2632 ac_save_c_werror_flag=$ac_c_werror_flag
2633 ac_c_werror_flag=yes
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2670 echo "$as_me: failed program was
:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2702 (exit $ac_status); } && {
2703 test -z "$ac_c_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest.$ac_objext; then
2708 echo "$as_me: failed program was
:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 ac_c_werror_flag=$ac_save_c_werror_flag
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2747 echo "$as_me: failed program was
:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_c_werror_flag=$ac_save_c_werror_flag
2762 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2764 if test "$ac_test_CFLAGS" = set; then
2765 CFLAGS=$ac_save_CFLAGS
2766 elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2773 if test "$GCC" = yes; then
2779 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2780 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2781 if test "${ac_cv_prog_cc_c89+set}" = set; then
2782 echo $ECHO_N "(cached
) $ECHO_C" >&6
2784 ac_cv_prog_cc_c89=no
2786 cat >conftest.$ac_ext <<_ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2794 #include <sys/types.h>
2795 #include <sys/stat.h>
2796 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797 struct buf { int x; };
2798 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799 static char *e (p, i)
2805 static char *f (char * (*g) (char **, int), char **p, ...)
2810 s = g (p, va_arg (v,int));
2815 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std. */
2822 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2824 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2825 inside strings and character constants. */
2827 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2829 int test (int i, double x);
2830 struct s1 {int (*f) (int a);};
2831 struct s2 {int (*f) (double a);};
2832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2838 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2843 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2844 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2846 CC="$ac_save_CC $ac_arg"
2847 rm -f conftest.$ac_objext
2848 if { (ac_try="$ac_compile"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compile") 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2860 (exit $ac_status); } && {
2861 test -z "$ac_c_werror_flag" ||
2862 test ! -s conftest.err
2863 } && test -s conftest.$ac_objext; then
2864 ac_cv_prog_cc_c89=$ac_arg
2866 echo "$as_me: failed program was
:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2872 rm -f core conftest.err conftest.$ac_objext
2873 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2875 rm -f conftest.$ac_ext
2880 case "x
$ac_cv_prog_cc_c89" in
2882 { echo "$as_me:$LINENO: result
: none needed
" >&5
2883 echo "${ECHO_T}none needed
" >&6; } ;;
2885 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2886 echo "${ECHO_T}unsupported
" >&6; } ;;
2888 CC="$CC $ac_cv_prog_cc_c89"
2889 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test "$GCC" = yes ; then
2901 if test "$SHLICC2" = yes ; then
2902 ac_cv_lbl_gcc_vers=2
2905 { echo "$as_me:$LINENO: checking gcc version
" >&5
2906 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2907 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2908 echo $ECHO_N "(cached
) $ECHO_C" >&6
2910 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2911 sed -e '/^gcc version /!d' \
2912 -e 's/^gcc version //' \
2913 -e 's/ .*//' -e 's/^[^0-9]*//' \
2917 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2918 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2919 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2925 # On platforms where we build a shared library:
2927 # add options to generate position-independent code,
2928 # if necessary (it's the default in AIX and Darwin/OS X);
2930 # define option to set the soname of the shared library,
2931 # if the OS supports that;
2933 # add options to specify, at link time, a directory to
2934 # add to the run-time search path, if that's necessary.
2936 V_SHLIB_CMD="\$
(CC
)"
2937 V_SHLIB_OPT="-shared"
2943 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
2945 # Platforms where the linker is the GNU linker
2946 # or accepts command-line arguments like
2947 # those the GNU linker accepts.
2949 V_CCOPT="$V_CCOPT -fpic"
2950 V_SONAME_OPT="-Wl,-soname,"
2951 V_RPATH_OPT="-Wl,-rpath,"
2955 V_CCOPT="$V_CCOPT -fpic"
2957 # XXX - this assumes GCC is using the HP linker,
2958 # rather than the GNU linker, and that the "+h
"
2959 # option is used on all HP-UX platforms, both .sl
2962 V_SONAME_OPT="-Wl,+h
,"
2964 # By default, directories specifed with -L
2965 # are added to the run-time search path, so
2966 # we don't add them in pcap-config.
2971 V_CCOPT="$V_CCOPT -fpic"
2973 # XXX - this assumes GCC is using the Sun linker,
2974 # rather than the GNU linker.
2976 V_SONAME_OPT="-Wl,-h,"
2977 V_RPATH_OPT="-Wl,-R,"
2981 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2982 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2983 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2984 echo $ECHO_N "(cached
) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #include <sys/types.h>
2997 int frob(int, char *)
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_cv_lbl_cc_ansi_prototypes=yes
3021 echo "$as_me: failed program was
:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 ac_cv_lbl_cc_ansi_prototypes=no
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
3031 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3032 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3036 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
3037 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
3038 savedcflags="$CFLAGS"
3039 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3040 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3041 echo $ECHO_N "(cached
) $ECHO_C" >&6
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #include <sys/types.h>
3053 int frob(int, char *)
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3075 ac_cv_lbl_cc_hpux_cc_aa=yes
3077 echo "$as_me: failed program was
:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 ac_cv_lbl_cc_hpux_cc_aa=no
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3087 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3088 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3089 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3090 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3091 { (exit 1); exit 1; }; }
3093 CFLAGS="$savedcflags"
3094 V_CCOPT="-Aa $V_CCOPT"
3096 cat >>confdefs.h <<\_ACEOF
3097 #define _HPUX_SOURCE 1
3103 { echo "$as_me:$LINENO: checking
for ansi mode
in DEC compiler
($CC -std1)" >&5
3104 echo $ECHO_N "checking
for ansi mode
in DEC compiler
($CC -std1)...
$ECHO_C" >&6; }
3105 savedcflags="$CFLAGS"
3107 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3108 echo $ECHO_N "(cached
) $ECHO_C" >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <sys/types.h>
3120 int frob(int, char *)
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_lbl_cc_osf1_cc_std1=yes
3144 echo "$as_me: failed program was
:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_cv_lbl_cc_osf1_cc_std1=no
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3154 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3155 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3156 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3157 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3158 { (exit 1); exit 1; }; }
3160 CFLAGS="$savedcflags"
3161 V_CCOPT="-std1 $V_CCOPT"
3165 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3166 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3167 { (exit 1); exit 1; }; }
3171 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3172 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3175 # Set the appropriate compiler flags and, on platforms
3176 # where we build a shared library:
3178 # add options to generate position-independent code,
3179 # if necessary (it's the default in Darwin/OS X);
3181 # if we generate ".so
" shared libraries, define the
3182 # appropriate options for building the shared library;
3184 # add options to specify, at link time, a directory to
3185 # add to the run-time search path, if that's necessary.
3187 # Note: spaces after V_SONAME_OPT are significant; on
3188 # some platforms the soname is passed with a GCC-like
3189 # "-Wl,-soname,{soname
}" option, with the soname part
3190 # of the option, while on other platforms the C compiler
3191 # driver takes it as a regular option with the soname
3192 # following the option. The same applies to V_RPATH_OPT.
3197 V_SHLIB_CMD="\$
(CC
)"
3198 V_SHLIB_OPT="-G -bnoentry -bexpall"
3201 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3205 V_CCOPT="$V_CCOPT -fpic"
3206 V_SHLIB_CMD="\$
(CC
)"
3207 V_SHLIB_OPT="-shared"
3208 V_SONAME_OPT="-Wl,-soname,"
3209 V_RPATH_OPT="-Wl,-rpath,"
3213 V_CCOPT="$V_CCOPT +z
"
3214 V_SHLIB_CMD="\$
(LD
)"
3218 # By default, directories specifed with -L
3219 # are added to the run-time search path, so
3220 # we don't add them in pcap-config.
3225 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3230 # Presumed to be DEC OSF/1, Digital UNIX, or
3233 V_CCOPT="$V_CCOPT -g3"
3234 V_SHLIB_CMD="\$
(CC
)"
3235 V_SHLIB_OPT="-shared"
3236 V_SONAME_OPT="-soname "
3237 V_RPATH_OPT="-rpath "
3241 V_CCOPT="$V_CCOPT -Kpic"
3242 V_SHLIB_CMD="\$
(CC
)"
3249 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3250 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3251 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3252 echo $ECHO_N "(cached
) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <sys/types.h>
3264 struct a { int b; };
3265 void c(const struct a *)
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3287 ac_cv_lbl_cc_const_proto=yes
3289 echo "$as_me: failed program was
:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 ac_cv_lbl_cc_const_proto=no
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3299 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3300 if test $ac_cv_lbl_cc_const_proto = no ; then
3302 cat >>confdefs.h <<\_ACEOF
3311 { echo "$as_me:$LINENO: checking
for inline
" >&5
3312 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3313 save_CFLAGS="$CFLAGS"
3315 if test "${ac_cv_lbl_inline+set}" = set; then
3316 echo $ECHO_N "(cached
) $ECHO_C" >&6
3321 for ac_lbl_inline in inline __inline__ __inline
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #define inline $ac_lbl_inline
3330 static inline struct iltest *foo(void);
3336 static inline struct iltest *
3339 static struct iltest xxx;
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 ac_lbl_cc_inline=yes
3370 echo "$as_me: failed program was
:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 if test "$ac_lbl_cc_inline" = yes ; then
3381 if test "$ac_lbl_cc_inline" = yes ; then
3382 ac_cv_lbl_inline=$ac_lbl_inline
3386 CFLAGS="$save_CFLAGS"
3387 if test ! -z "$ac_cv_lbl_inline" ; then
3388 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3389 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3391 { echo "$as_me:$LINENO: result
: no
" >&5
3392 echo "${ECHO_T}no
" >&6; }
3395 cat >>confdefs.h <<_ACEOF
3396 #define inline $ac_cv_lbl_inline
3400 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3401 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3402 if test "${ac_cv___attribute__+set}" = set; then
3403 echo $ECHO_N "(cached
) $ECHO_C" >&6
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3415 static void foo(void) __attribute__ ((noreturn));
3424 main(int argc, char **argv)
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv___attribute__=yes
3449 echo "$as_me: failed program was
:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_cv___attribute__=no
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 if test "$ac_cv___attribute__" = "yes"; then
3460 cat >>confdefs.h <<\_ACEOF
3461 #define HAVE___ATTRIBUTE__ 1
3464 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3466 V_DEFS="$V_DEFS -D_U_=\"\""
3468 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3469 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3478 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3479 # On Suns, sometimes $CPP names a directory.
3480 if test -n "$CPP" && test -d "$CPP"; then
3483 if test -z "$CPP"; then
3484 if test "${ac_cv_prog_CPP+set}" = set; then
3485 echo $ECHO_N "(cached
) $ECHO_C" >&6
3487 # Double quotes because CPP needs to be expanded
3488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error
" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3530 echo "$as_me: failed program was
:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 # Broken: fails on valid input.
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3561 (exit $ac_status); } >/dev/null && {
3562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3565 # Broken: success on invalid input.
3568 echo "$as_me: failed program was
:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 # Passes both tests.
3576 rm -f conftest.err conftest.$ac_ext
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then
3593 { echo "$as_me:$LINENO: result
: $CPP" >&5
3594 echo "${ECHO_T}$CPP" >&6; }
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error
" is here to catch this case.
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3611 # include <limits.h>
3613 # include <assert.h>
3617 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3629 (exit $ac_status); } >/dev/null && {
3630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3635 echo "$as_me: failed program was
:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 # Broken: fails on valid input.
3642 rm -f conftest.err conftest.$ac_ext
3644 # OK, works on sane cases. Now check whether nonexistent headers
3645 # can be detected and how.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <ac_nonexistent.h>
3654 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3666 (exit $ac_status); } >/dev/null && {
3667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3670 # Broken: success on invalid input.
3673 echo "$as_me: failed program was
:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 # Passes both tests.
3681 rm -f conftest.err conftest.$ac_ext
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then
3689 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3690 See \
`config.log' for more details." >&5
3691 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3692 See \`config.log
' for more details." >&2;}
3693 { (exit 1); exit 1; }; }
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3699 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3704 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3705 if test "${ac_cv_path_GREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 # Extract the first word of "grep ggrep" to use in msg output
3709 if test -z "$GREP"; then
3710 set dummy grep ggrep; ac_prog_name=$2
3711 if test "${ac_cv_path_GREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_path_GREP_found=false
3715 # Loop through the user's path and
test for each of PROGNAME-LIST
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3717 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_prog
in grep ggrep
; do
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3725 # Check for GNU ac_path_GREP and select it if it is found.
3726 # Check for GNU $ac_path_GREP
3727 case `"$ac_path_GREP" --version 2>&1` in
3729 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'GREP' >> "conftest.nl"
3739 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3740 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3741 ac_count
=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_GREP
="$ac_path_GREP"
3745 ac_path_GREP_max
=$ac_count
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3750 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3754 $ac_path_GREP_found && break 3
3764 GREP
="$ac_cv_path_GREP"
3765 if test -z "$GREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3772 ac_cv_path_GREP
=$GREP
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3779 GREP
="$ac_cv_path_GREP"
3782 { echo "$as_me:$LINENO: checking for egrep" >&5
3783 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3788 then ac_cv_path_EGREP
="$GREP -E"
3790 # Extract the first word of "egrep" to use in msg output
3791 if test -z "$EGREP"; then
3792 set dummy
egrep; ac_prog_name
=$2
3793 if test "${ac_cv_path_EGREP+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_path_EGREP_found
=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3799 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3802 test -z "$as_dir" && as_dir
=.
3803 for ac_prog
in egrep; do
3804 for ac_exec_ext
in '' $ac_executable_extensions; do
3805 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3806 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3807 # Check for GNU ac_path_EGREP and select it if it is found.
3808 # Check for GNU $ac_path_EGREP
3809 case `"$ac_path_EGREP" --version 2>&1` in
3811 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3814 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 echo 'EGREP' >> "conftest.nl"
3821 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3822 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3823 ac_count
=`expr $ac_count + 1`
3824 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_EGREP
="$ac_path_EGREP"
3827 ac_path_EGREP_max
=$ac_count
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3832 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3836 $ac_path_EGREP_found && break 3
3846 EGREP
="$ac_cv_path_EGREP"
3847 if test -z "$EGREP"; then
3848 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3849 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3850 { (exit 1); exit 1; }; }
3854 ac_cv_path_EGREP
=$EGREP
3860 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3861 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3862 EGREP
="$ac_cv_path_EGREP"
3865 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3866 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3867 if test "${ac_cv_header_stdc+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 cat >conftest.
$ac_ext <<_ACEOF
3873 cat confdefs.h
>>conftest.
$ac_ext
3874 cat >>conftest.
$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3889 rm -f conftest.
$ac_objext
3890 if { (ac_try
="$ac_compile"
3892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_cv_header_stdc=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_header_stdc=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then
3931 ac_cv_header_stdc=no
3937 if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "free" >/dev/null 2>&1; then
3952 ac_cv_header_stdc=no
3958 if test $ac_cv_header_stdc = yes; then
3959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960 if test "$cross_compiling" = yes; then
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3971 #if ((' ' & 0x0FF) == 0x020)
3972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3975 # define ISLOWER(c) \
3976 (('a' <= (c) && (c) <= 'i') \
3977 || ('j' <= (c) && (c) <= 'r') \
3978 || ('s' <= (c) && (c) <= 'z'))
3979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987 for (i = 0; i < 256; i++)
3988 if (XOR (islower (i), ISLOWER (i))
3989 || toupper (i) != TOUPPER (i))
3994 rm -f conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3998 *) ac_try_echo
=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4005 { (case "(($ac_try" in
4006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_cv_header_stdc=no
4023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4031 if test $ac_cv_header_stdc = yes; then
4033 cat >>confdefs.h <<\_ACEOF
4034 #define STDC_HEADERS 1
4039 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4050 inttypes.h stdint.h unistd.h
4052 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4066 #include <$ac_header>
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4072 *) ac_try_echo
=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.
$ac_objext; then
4085 eval "$as_ac_Header=yes"
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.
$ac_ext >&5
4090 eval "$as_ac_Header=no"
4093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 ac_res
=`eval echo '${'$as_ac_Header'}'`
4096 { echo "$as_me:$LINENO: result: $ac_res" >&5
4097 echo "${ECHO_T}$ac_res" >&6; }
4098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099 cat >>confdefs.h
<<_ACEOF
4100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4109 for ac_header
in sys
/bitypes.h
4111 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_res
=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4122 # Is the header compilable?
4123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4125 cat >conftest.
$ac_ext <<_ACEOF
4128 cat confdefs.h
>>conftest.
$ac_ext
4129 cat >>conftest.
$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132 #include <$ac_header>
4134 rm -f conftest.
$ac_objext
4135 if { (ac_try
="$ac_compile"
4137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_header_compiler=yes
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_header_compiler=no
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4161 echo "${ECHO_T}$ac_header_compiler" >&6; }
4163 # Is the header present?
4164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <$ac_header>
4174 if { (ac_try="$ac_cpp conftest.$ac_ext"
4176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4177 *) ac_try_echo
=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1
>conftest.err
4184 cat conftest.err
>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev
/null
&& {
4187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4190 ac_header_preproc
=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.
$ac_ext >&5
4195 ac_header_preproc
=no
4198 rm -f conftest.err conftest.
$ac_ext
4199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 echo "${ECHO_T}$ac_header_preproc" >&6; }
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc
=yes
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4229 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 eval "$as_ac_Header=\$ac_header_preproc"
4234 ac_res
=`eval echo '${'$as_ac_Header'}'`
4235 { echo "$as_me:$LINENO: result: $ac_res" >&5
4236 echo "${ECHO_T}$ac_res" >&6; }
4239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4240 cat >>confdefs.h
<<_ACEOF
4241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 { echo "$as_me:$LINENO: checking for int8_t" >&5
4250 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4251 if test "${ac_cv_type_int8_t+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 $ac_includes_default
4261 #ifdef HAVE_SYS_BITYPES_H
4262 #include <sys/bitypes.h>
4265 typedef int8_t ac__type_new_;
4269 if ((ac__type_new_ *) 0)
4271 if (sizeof (ac__type_new_))
4277 rm -f conftest.
$ac_objext
4278 if { (ac_try
="$ac_compile"
4280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 ac_cv_type_int8_t=yes
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_type_int8_t=no
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4305 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4306 if test $ac_cv_type_int8_t = yes; then
4310 cat >>confdefs.h <<\_ACEOF
4311 #define int8_t signed char
4316 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4317 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4318 if test "${ac_cv_type_u_int8_t+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4328 #ifdef HAVE_SYS_BITYPES_H
4329 #include <sys/bitypes.h>
4332 typedef u_int8_t ac__type_new_;
4336 if ((ac__type_new_ *) 0)
4338 if (sizeof (ac__type_new_))
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4348 *) ac_try_echo
=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1
>conftest.err
4355 cat conftest.err
>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.
$ac_objext; then
4361 ac_cv_type_u_int8_t
=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.
$ac_ext >&5
4366 ac_cv_type_u_int8_t
=no
4369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4372 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4373 if test $ac_cv_type_u_int8_t = yes; then
4377 cat >>confdefs.h
<<\_ACEOF
4378 #define u_int8_t unsigned char
4383 { echo "$as_me:$LINENO: checking for int16_t" >&5
4384 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4385 if test "${ac_cv_type_int16_t+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat >conftest.
$ac_ext <<_ACEOF
4391 cat confdefs.h
>>conftest.
$ac_ext
4392 cat >>conftest.
$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4395 typedef int16_t ac__type_new_;
4399 if ((ac__type_new_ *) 0)
4401 if (sizeof (ac__type_new_))
4407 rm -f conftest.
$ac_objext
4408 if { (ac_try
="$ac_compile"
4410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_compile") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
4424 ac_cv_type_int16_t=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_type_int16_t=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4435 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4436 if test $ac_cv_type_int16_t = yes; then
4440 cat >>confdefs.h <<\_ACEOF
4441 #define int16_t short
4444 $ac_includes_default
4445 #ifdef HAVE_SYS_BITYPES_H
4446 #include <sys/bitypes.h>
4450 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4451 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4452 if test "${ac_cv_type_u_int16_t+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4462 #ifdef HAVE_SYS_BITYPES_H
4463 #include <sys/bitypes.h>
4466 typedef u_int16_t ac__type_new_;
4470 if ((ac__type_new_ *) 0)
4472 if (sizeof (ac__type_new_))
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4482 *) ac_try_echo
=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1
>conftest.err
4489 cat conftest.err
>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.
$ac_objext; then
4495 ac_cv_type_u_int16_t
=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 ac_cv_type_u_int16_t
=no
4503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4505 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4506 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4507 if test $ac_cv_type_u_int16_t = yes; then
4511 cat >>confdefs.h
<<\_ACEOF
4512 #define u_int16_t unsigned short
4517 { echo "$as_me:$LINENO: checking for int32_t" >&5
4518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4519 if test "${ac_cv_type_int32_t+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.
$ac_ext <<_ACEOF
4525 cat confdefs.h
>>conftest.
$ac_ext
4526 cat >>conftest.
$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 #ifdef HAVE_SYS_BITYPES_H
4530 #include <sys/bitypes.h>
4533 typedef int32_t ac__type_new_;
4537 if ((ac__type_new_ *) 0)
4539 if (sizeof (ac__type_new_))
4545 rm -f conftest.
$ac_objext
4546 if { (ac_try
="$ac_compile"
4548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest.$ac_objext; then
4562 ac_cv_type_int32_t=yes
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 ac_cv_type_int32_t=no
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4573 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4574 if test $ac_cv_type_int32_t = yes; then
4578 cat >>confdefs.h <<\_ACEOF
4584 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4585 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4586 if test "${ac_cv_type_u_int32_t+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 $ac_includes_default
4596 #ifdef HAVE_SYS_BITYPES_H
4597 #include <sys/bitypes.h>
4600 typedef u_int32_t ac__type_new_;
4604 if ((ac__type_new_ *) 0)
4606 if (sizeof (ac__type_new_))
4612 rm -f conftest.$ac_objext
4613 if { (ac_try="$ac_compile"
4615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4616 *) ac_try_echo
=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.
$ac_objext; then
4629 ac_cv_type_u_int32_t
=yes
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.
$ac_ext >&5
4634 ac_cv_type_u_int32_t
=no
4637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4640 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4641 if test $ac_cv_type_u_int32_t = yes; then
4645 cat >>confdefs.h
<<\_ACEOF
4646 #define u_int32_t unsigned int
4651 { echo "$as_me:$LINENO: checking for int64_t" >&5
4652 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4653 if test "${ac_cv_type_int64_t+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 cat >conftest.
$ac_ext <<_ACEOF
4659 cat confdefs.h
>>conftest.
$ac_ext
4660 cat >>conftest.
$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4663 #ifdef HAVE_SYS_BITYPES_H
4664 #include <sys/bitypes.h>
4667 typedef int64_t ac__type_new_;
4671 if ((ac__type_new_ *) 0)
4673 if (sizeof (ac__type_new_))
4679 rm -f conftest.
$ac_objext
4680 if { (ac_try
="$ac_compile"
4682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_compile") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && {
4693 test -z "$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 } && test -s conftest.$ac_objext; then
4696 ac_cv_type_int64_t=yes
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_cv_type_int64_t=no
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4707 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4708 if test $ac_cv_type_int64_t = yes; then
4712 cat >>confdefs.h <<\_ACEOF
4713 #define int64_t long long
4718 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4719 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4720 if test "${ac_cv_type_u_int64_t+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 #ifdef HAVE_SYS_BITYPES_H
4731 #include <sys/bitypes.h>
4734 typedef u_int64_t ac__type_new_;
4738 if ((ac__type_new_ *) 0)
4740 if (sizeof (ac__type_new_))
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4750 *) ac_try_echo
=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compile") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.
$ac_objext; then
4763 ac_cv_type_u_int64_t
=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.
$ac_ext >&5
4768 ac_cv_type_u_int64_t
=no
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4773 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4774 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4775 if test $ac_cv_type_u_int64_t = yes; then
4779 cat >>confdefs.h
<<\_ACEOF
4780 #define u_int64_t unsigned long long
4787 # Try to arrange for large file support.
4789 # Check whether --enable-largefile was given.
4790 if test "${enable_largefile+set}" = set; then
4791 enableval
=$enable_largefile;
4794 if test "$enable_largefile" != no
; then
4796 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4797 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4798 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 ac_cv_sys_largefile_CC
=no
4802 if test "$GCC" != yes; then
4805 # IRIX 6.2 and later do not support large files by default,
4806 # so use the C compiler's -n32 option if that helps.
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 /* Check that off_t can represent 2**63 - 1 correctly.
4815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4816 since some C++ compilers masquerading as C compilers
4817 incorrectly reject 9223372036854775807. */
4818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4820 && LARGE_OFF_T % 2147483647 == 1)
4830 rm -f conftest.
$ac_objext
4831 if { (ac_try
="$ac_compile"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4855 rm -f core conftest.err conftest.$ac_objext
4857 rm -f conftest.$ac_objext
4858 if { (ac_try="$ac_compile"
4860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4861 *) ac_try_echo
=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compile") 2>conftest.er1
4866 grep -v '^ *+' conftest.er1
>conftest.err
4868 cat conftest.err
>&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest.
$ac_objext; then
4874 ac_cv_sys_largefile_CC
=' -n32'; break
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.
$ac_ext >&5
4882 rm -f core conftest.err conftest.
$ac_objext
4886 rm -f conftest.
$ac_ext
4889 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4890 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4891 if test "$ac_cv_sys_largefile_CC" != no
; then
4892 CC
=$CC$ac_cv_sys_largefile_CC
4895 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4896 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4897 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 cat >conftest.
$ac_ext <<_ACEOF
4904 cat confdefs.h
>>conftest.
$ac_ext
4905 cat >>conftest.
$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <sys/types.h>
4908 /* Check that off_t can represent 2**63 - 1 correctly.
4909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4910 since some C++ compilers masquerading as C compilers
4911 incorrectly reject 9223372036854775807. */
4912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4914 && LARGE_OFF_T % 2147483647 == 1)
4924 rm -f conftest.
$ac_objext
4925 if { (ac_try
="$ac_compile"
4927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 ac_cv_sys_file_offset_bits=no; break
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #define _FILE_OFFSET_BITS 64
4957 #include <sys/types.h>
4958 /* Check that off_t can represent 2**63 - 1 correctly.
4959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4960 since some C++ compilers masquerading as C compilers
4961 incorrectly reject 9223372036854775807. */
4962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4964 && LARGE_OFF_T % 2147483647 == 1)
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4978 *) ac_try_echo
=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1
>conftest.err
4985 cat conftest.err
>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.
$ac_objext; then
4991 ac_cv_sys_file_offset_bits
=64; break
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5000 ac_cv_sys_file_offset_bits
=unknown
5004 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5005 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5006 case $ac_cv_sys_file_offset_bits in #(
5009 cat >>confdefs.h
<<_ACEOF
5010 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5015 if test $ac_cv_sys_file_offset_bits = unknown
; then
5016 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5017 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5018 if test "${ac_cv_sys_large_files+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.
$ac_ext <<_ACEOF
5025 cat confdefs.h
>>conftest.
$ac_ext
5026 cat >>conftest.
$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 /* Check that off_t can represent 2**63 - 1 correctly.
5030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5031 since some C++ compilers masquerading as C compilers
5032 incorrectly reject 9223372036854775807. */
5033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5035 && LARGE_OFF_T % 2147483647 == 1)
5045 rm -f conftest.
$ac_objext
5046 if { (ac_try
="$ac_compile"
5048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compile") 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
5062 ac_cv_sys_large_files=no; break
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #define _LARGE_FILES 1
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5095 rm -f conftest.$ac_objext
5096 if { (ac_try="$ac_compile"
5098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5099 *) ac_try_echo
=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_compile") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1
>conftest.err
5106 cat conftest.err
>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest.
$ac_objext; then
5112 ac_cv_sys_large_files
=1; break
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.
$ac_ext >&5
5120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5121 ac_cv_sys_large_files
=unknown
5125 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5127 case $ac_cv_sys_large_files in #(
5130 cat >>confdefs.h
<<_ACEOF
5131 #define _LARGE_FILES $ac_cv_sys_large_files
5139 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5140 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5141 if test "${ac_cv_sys_largefile_source+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.
$ac_ext <<_ACEOF
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5155 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5160 rm -f conftest.
$ac_objext conftest
$ac_exeext
5161 if { (ac_try
="$ac_link"
5163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest$ac_exeext &&
5177 $as_test_x conftest$ac_exeext; then
5178 ac_cv_sys_largefile_source=no; break
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 #define _LARGEFILE_SOURCE 1
5199 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (ac_try="$ac_link"
5207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5208 *) ac_try_echo
=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_link") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1
>conftest.err
5215 cat conftest.err
>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && {
5218 test -z "$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 } && test -s conftest
$ac_exeext &&
5221 $as_test_x conftest
$ac_exeext; then
5222 ac_cv_sys_largefile_source
=1; break
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.
$ac_ext >&5
5230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5231 conftest
$ac_exeext conftest.
$ac_ext
5232 ac_cv_sys_largefile_source
=unknown
5236 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5237 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5238 case $ac_cv_sys_largefile_source in #(
5241 cat >>confdefs.h
<<_ACEOF
5242 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5248 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5249 # in glibc 2.1.3, but that breaks too many other things.
5250 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5251 if test $ac_cv_sys_largefile_source != unknown
; then
5253 cat >>confdefs.h
<<\_ACEOF
5254 #define HAVE_FSEEKO 1
5264 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
5266 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 ac_res
=`eval echo '${'$as_ac_Header'}'`
5274 { echo "$as_me:$LINENO: result: $ac_res" >&5
5275 echo "${ECHO_T}$ac_res" >&6; }
5277 # Is the header compilable?
5278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5287 #include <$ac_header>
5289 rm -f conftest.
$ac_objext
5290 if { (ac_try
="$ac_compile"
5292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_header_compiler=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_header_compiler=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6; }
5318 # Is the header present?
5319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <$ac_header>
5329 if { (ac_try="$ac_cpp conftest.$ac_ext"
5331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5332 *) ac_try_echo
=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1
>conftest.err
5339 cat conftest.err
>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev
/null
&& {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5345 ac_header_preproc
=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.
$ac_ext >&5
5350 ac_header_preproc
=no
5353 rm -f conftest.err conftest.
$ac_ext
5354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 echo "${ECHO_T}$ac_header_preproc" >&6; }
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc
=yes
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 eval "$as_ac_Header=\$ac_header_preproc"
5389 ac_res
=`eval echo '${'$as_ac_Header'}'`
5390 { echo "$as_me:$LINENO: result: $ac_res" >&5
5391 echo "${ECHO_T}$ac_res" >&6; }
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h
<<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 for ac_header
in net
/pfvar.h
5406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5409 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5415 cat confdefs.h
>>conftest.
$ac_ext
5416 cat >>conftest.
$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <sys/socket.h>
5422 #include <$ac_header>
5424 rm -f conftest.
$ac_objext
5425 if { (ac_try
="$ac_compile"
5427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 eval "$as_ac_Header=yes"
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 eval "$as_ac_Header=no"
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_res=`eval echo '${'$as_ac_Header'}'`
5452 { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5463 if test "$ac_cv_header_net_pfvar_h" = yes; then
5465 # Check for various PF actions.
5467 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5468 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <sys/types.h>
5476 #include <sys/socket.h>
5478 #include <net/pfvar.h>
5482 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5491 *) ac_try_echo
=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5496 grep -v '^ *+' conftest.er1
>conftest.err
5498 cat conftest.err
>&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.
$ac_objext; then
5505 { echo "$as_me:$LINENO: result: yes" >&5
5506 echo "${ECHO_T}yes" >&6; }
5508 cat >>confdefs.h
<<\_ACEOF
5509 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.
$ac_ext >&5
5517 { echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6; }
5521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5524 for ac_header
in netinet
/if_ether.h
5526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5529 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 cat >conftest.
$ac_ext <<_ACEOF
5535 cat confdefs.h
>>conftest.
$ac_ext
5536 cat >>conftest.
$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <sys/types.h>
5539 #include <sys/socket.h>
5541 #include <$ac_header>
5543 rm -f conftest.
$ac_objext
5544 if { (ac_try
="$ac_compile"
5546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 eval "$as_ac_Header=yes"
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 eval "$as_ac_Header=no"
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_res=`eval echo '${'$as_ac_Header'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5582 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5584 # The simple test didn't work.
5585 # Do we need to include <net/if.h> first?
5586 # Unset ac_cv_header_netinet_if_ether_h so we don't
5587 # treat the previous failure as a cached value and
5588 # suppress the next test.
5590 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5591 echo "$as_me: Rechecking with some additional includes" >&6;}
5592 unset ac_cv_header_netinet_if_ether_h
5594 for ac_header in netinet/if_ether.h
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <sys/types.h>
5609 #include <sys/socket.h>
5610 #include <netinet/in.h>
5615 #include <$ac_header>
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5621 *) ac_try_echo
=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1
>conftest.err
5628 cat conftest.err
>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.
$ac_objext; then
5634 eval "$as_ac_Header=yes"
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.
$ac_ext >&5
5639 eval "$as_ac_Header=no"
5642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 ac_res
=`eval echo '${'$as_ac_Header'}'`
5645 { echo "$as_me:$LINENO: result: $ac_res" >&5
5646 echo "${ECHO_T}$ac_res" >&6; }
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648 cat >>confdefs.h
<<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 if test "$GCC" = yes ; then
5659 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5660 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5661 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5671 * This generates a "duplicate case value" when fixincludes
5674 # include <sys/types.h>
5675 # include <sys/time.h>
5676 # include <sys/ioctl.h>
5677 # ifdef HAVE_SYS_IOCCOM_H
5678 # include <sys/ioccom.h>
5691 rm -f conftest.
$ac_objext
5692 if { (ac_try
="$ac_compile"
5694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_lbl_gcc_fixincludes=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_lbl_gcc_fixincludes=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5720 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5721 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5722 # Don't cache failure
5723 unset ac_cv_lbl_gcc_fixincludes
5724 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5725 echo "$as_me: error: see the INSTALL for more info" >&2;}
5726 { (exit 1); exit 1; }; }
5732 for ac_func in strerror strlcpy
5734 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5748 #define $ac_func innocuous_$ac_func
5750 /* System header to define __stub macros and hopefully few prototypes,
5751 which can conflict with char $ac_func (); below.
5752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5753 <limits.h> exists even on freestanding compilers. */
5756 # include <limits.h>
5758 # include <assert.h>
5763 /* Override any GCC internal prototype to avoid an error.
5764 Use char because int might match the return type of a GCC
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined __stub_$ac_func || defined __stub___$ac_func
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (ac_try="$ac_link"
5788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5789 *) ac_try_echo
=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_link") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1
>conftest.err
5796 cat conftest.err
>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest
$ac_exeext &&
5802 $as_test_x conftest
$ac_exeext; then
5803 eval "$as_ac_var=yes"
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.
$ac_ext >&5
5808 eval "$as_ac_var=no"
5811 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5812 conftest
$ac_exeext conftest.
$ac_ext
5814 ac_res
=`eval echo '${'$as_ac_var'}'`
5815 { echo "$as_me:$LINENO: result: $ac_res" >&5
5816 echo "${ECHO_T}$ac_res" >&6; }
5817 if test `eval echo '${'$as_ac_var'}'` = yes; then
5818 cat >>confdefs.h
<<_ACEOF
5819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5829 for ac_func
in vsnprintf snprintf
5831 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5834 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5845 #define $ac_func innocuous_$ac_func
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char $ac_func (); below.
5849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 <limits.h> exists even on freestanding compilers. */
5853 # include <limits.h>
5855 # include <assert.h>
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5867 /* The GNU C library defines this for functions which it implements
5868 to always fail with ENOSYS. Some functions are actually named
5869 something starting with __ and the normal name is an alias. */
5870 #if defined __stub_$ac_func || defined __stub___$ac_func
5882 rm -f conftest.
$ac_objext conftest
$ac_exeext
5883 if { (ac_try
="$ac_link"
5885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_link") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && {
5896 test -z "$ac_c_werror_flag" ||
5897 test ! -s conftest.err
5898 } && test -s conftest$ac_exeext &&
5899 $as_test_x conftest$ac_exeext; then
5900 eval "$as_ac_var=yes"
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 eval "$as_ac_var=no"
5908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5909 conftest$ac_exeext conftest.$ac_ext
5911 ac_res=`eval echo '${'$as_ac_var'}'`
5912 { echo "$as_me:$LINENO: result: $ac_res" >&5
5913 echo "${ECHO_T}$ac_res" >&6; }
5914 if test `eval echo '${'$as_ac_var'}'` = yes; then
5915 cat >>confdefs.h <<_ACEOF
5916 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5924 if test $needsnprintf = yes; then
5925 case " $LIBOBJS " in
5926 *" snprintf.$ac_objext "* ) ;;
5927 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5934 # Do this before checking for ether_hostton(), as it's a
5935 # "gethostbyname() -ish function".
5938 # Most operating systems have gethostbyname() in the default searched
5939 # libraries (i.e. libc):
5940 # Some OSes (eg. Solaris) place it in libnsl
5941 # Some strange OSes (SINIX) have it in libsocket:
5942 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5943 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5944 if test "${ac_cv_search_gethostbyname+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_func_search_save_LIBS=$LIBS
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5955 /* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5961 char gethostbyname ();
5965 return gethostbyname ();
5970 for ac_lib in '' nsl socket resolv; do
5971 if test -z "$ac_lib"; then
5972 ac_res="none required"
5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (ac_try="$ac_link"
5980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5981 *) ac_try_echo
=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_link") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest
$ac_exeext &&
5994 $as_test_x conftest
$ac_exeext; then
5995 ac_cv_search_gethostbyname
=$ac_res
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6005 if test "${ac_cv_search_gethostbyname+set}" = set; then
6009 if test "${ac_cv_search_gethostbyname+set}" = set; then
6012 ac_cv_search_gethostbyname
=no
6015 LIBS
=$ac_func_search_save_LIBS
6017 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6018 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6019 ac_res
=$ac_cv_search_gethostbyname
6020 if test "$ac_res" != no
; then
6021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6025 # Unfortunately libsocket sometimes depends on libnsl and
6026 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6027 if test "$ac_cv_search_gethostbyname" = "no"
6029 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6030 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6031 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 ac_check_lib_save_LIBS
=$LIBS
6035 LIBS
="-lsocket -lnsl $LIBS"
6036 cat >conftest.
$ac_ext <<_ACEOF
6039 cat confdefs.h
>>conftest.
$ac_ext
6040 cat >>conftest.
$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6043 /* Override any GCC internal prototype to avoid an error.
6044 Use char because int might match the return type of a GCC
6045 builtin and then its argument prototype would still apply. */
6049 char gethostbyname ();
6053 return gethostbyname ();
6058 rm -f conftest.
$ac_objext conftest
$ac_exeext
6059 if { (ac_try
="$ac_link"
6061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest$ac_exeext &&
6075 $as_test_x conftest$ac_exeext; then
6076 ac_cv_lib_socket_gethostbyname=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_lib_socket_gethostbyname=no
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085 conftest$ac_exeext conftest.$ac_ext
6086 LIBS=$ac_check_lib_save_LIBS
6088 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6089 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6090 if test $ac_cv_lib_socket_gethostbyname = yes; then
6091 LIBS="-lsocket -lnsl $LIBS"
6095 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6096 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6097 if test "${ac_cv_search_socket+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_func_search_save_LIBS=$LIBS
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 /* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6123 for ac_lib in '' socket; do
6124 if test -z "$ac_lib"; then
6125 ac_res="none required"
6128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (ac_try="$ac_link"
6133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6134 *) ac_try_echo
=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1
>conftest.err
6141 cat conftest.err
>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest
$ac_exeext &&
6147 $as_test_x conftest
$ac_exeext; then
6148 ac_cv_search_socket
=$ac_res
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.
$ac_ext >&5
6156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6158 if test "${ac_cv_search_socket+set}" = set; then
6162 if test "${ac_cv_search_socket+set}" = set; then
6165 ac_cv_search_socket
=no
6168 LIBS
=$ac_func_search_save_LIBS
6170 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6171 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6172 ac_res
=$ac_cv_search_socket
6173 if test "$ac_res" != no
; then
6174 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6177 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6178 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6179 if test "${ac_cv_lib_socket_socket+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS
=$LIBS
6183 LIBS
="-lsocket -lnsl $LIBS"
6184 cat >conftest.
$ac_ext <<_ACEOF
6187 cat confdefs.h
>>conftest.
$ac_ext
6188 cat >>conftest.
$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6206 rm -f conftest.
$ac_objext conftest
$ac_exeext
6207 if { (ac_try
="$ac_link"
6209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 ac_cv_lib_socket_socket=yes
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 ac_cv_lib_socket_socket=no
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6236 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6237 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6238 if test $ac_cv_lib_socket_socket = yes; then
6239 LIBS="-lsocket -lnsl $LIBS"
6244 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6245 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6246 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6247 if test "${ac_cv_search_putmsg+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 ac_func_search_save_LIBS=$LIBS
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6258 /* Override any GCC internal prototype to avoid an error.
6259 Use char because int might match the return type of a GCC
6260 builtin and then its argument prototype would still apply. */
6273 for ac_lib in '' str; do
6274 if test -z "$ac_lib"; then
6275 ac_res="none required"
6278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6284 *) ac_try_echo
=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_link") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1
>conftest.err
6291 cat conftest.err
>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest
$ac_exeext &&
6297 $as_test_x conftest
$ac_exeext; then
6298 ac_cv_search_putmsg
=$ac_res
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6306 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6308 if test "${ac_cv_search_putmsg+set}" = set; then
6312 if test "${ac_cv_search_putmsg+set}" = set; then
6315 ac_cv_search_putmsg
=no
6318 LIBS
=$ac_func_search_save_LIBS
6320 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6321 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6322 ac_res
=$ac_cv_search_putmsg
6323 if test "$ac_res" != no
; then
6324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6331 # You are in a twisty little maze of UN*Xes, all different.
6332 # Some might not have ether_hostton().
6333 # Some might have it, but not declare it in any header file.
6334 # Some might have it, but declare it in <netinet/if_ether.h>.
6335 # Some might have it, but declare it in <netinet/ether.h>
6336 # (And some might have it but document it as something declared in
6337 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6339 # Before you is a C compiler.
6342 for ac_func
in ether_hostton
6344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6347 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 cat >conftest.
$ac_ext <<_ACEOF
6353 cat confdefs.h
>>conftest.
$ac_ext
6354 cat >>conftest.
$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358 #define $ac_func innocuous_$ac_func
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6366 # include <limits.h>
6368 # include <assert.h>
6373 /* Override any GCC internal prototype to avoid an error.
6374 Use char because int might match the return type of a GCC
6375 builtin and then its argument prototype would still apply. */
6380 /* The GNU C library defines this for functions which it implements
6381 to always fail with ENOSYS. Some functions are actually named
6382 something starting with __ and the normal name is an alias. */
6383 #if defined __stub_$ac_func || defined __stub___$ac_func
6395 rm -f conftest.
$ac_objext conftest
$ac_exeext
6396 if { (ac_try
="$ac_link"
6398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest$ac_exeext &&
6412 $as_test_x conftest$ac_exeext; then
6413 eval "$as_ac_var=yes"
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 eval "$as_ac_var=no"
6421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6422 conftest$ac_exeext conftest.$ac_ext
6424 ac_res=`eval echo '${'$as_ac_var'}'`
6425 { echo "$as_me:$LINENO: result: $ac_res" >&5
6426 echo "${ECHO_T}$ac_res" >&6; }
6427 if test `eval echo '${'$as_ac_var'}'` = yes; then
6428 cat >>confdefs.h <<_ACEOF
6429 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6435 if test "$ac_cv_func_ether_hostton" = yes; then
6437 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6439 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6441 # Yes. Does it declare ether_hostton()?
6443 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6444 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6445 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 #include <sys/socket.h>
6457 #include <netinet/in.h>
6458 #include <arpa/inet.h>
6462 #include <netinet/if_ether.h>
6468 #ifndef ether_hostton
6469 (void) ether_hostton;
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6480 *) ac_try_echo
=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1
>conftest.err
6487 cat conftest.err
>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.
$ac_objext; then
6493 ac_cv_have_decl_ether_hostton
=yes
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.
$ac_ext >&5
6498 ac_cv_have_decl_ether_hostton
=no
6501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6504 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6505 if test $ac_cv_have_decl_ether_hostton = yes; then
6508 cat >>confdefs.h
<<\_ACEOF
6509 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6519 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6521 # No, how about <netinet/ether.h>, as on Linux?
6524 for ac_header
in netinet
/ether.h
6526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6530 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_res
=`eval echo '${'$as_ac_Header'}'`
6534 { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 echo "${ECHO_T}$ac_res" >&6; }
6537 # Is the header compilable?
6538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #include <$ac_header>
6549 rm -f conftest.
$ac_objext
6550 if { (ac_try
="$ac_compile"
6552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 ac_header_compiler=yes
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_header_compiler=no
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6576 echo "${ECHO_T}$ac_header_compiler" >&6; }
6578 # Is the header present?
6579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <$ac_header>
6589 if { (ac_try="$ac_cpp conftest.$ac_ext"
6591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6592 *) ac_try_echo
=$ac_try;;
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6597 grep -v '^ *+' conftest.er1
>conftest.err
6599 cat conftest.err
>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } >/dev
/null
&& {
6602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6605 ac_header_preproc
=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.
$ac_ext >&5
6610 ac_header_preproc
=no
6613 rm -f conftest.err conftest.
$ac_ext
6614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6615 echo "${ECHO_T}$ac_header_preproc" >&6; }
6617 # So? What about this header?
6618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6624 ac_header_preproc
=yes
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6644 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 eval "$as_ac_Header=\$ac_header_preproc"
6649 ac_res
=`eval echo '${'$as_ac_Header'}'`
6650 { echo "$as_me:$LINENO: result: $ac_res" >&5
6651 echo "${ECHO_T}$ac_res" >&6; }
6654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6655 cat >>confdefs.h
<<_ACEOF
6656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663 if test "$ac_cv_header_netinet_ether_h" = yes; then
6665 # We have it - does it declare ether_hostton()?
6666 # Unset ac_cv_have_decl_ether_hostton so we don't
6667 # treat the previous failure as a cached value and
6668 # suppress the next test.
6670 unset ac_cv_have_decl_ether_hostton
6671 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6672 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6673 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.
$ac_ext <<_ACEOF
6679 cat confdefs.h
>>conftest.
$ac_ext
6680 cat >>conftest.
$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 #include <netinet/ether.h>
6689 #ifndef ether_hostton
6690 (void) ether_hostton;
6697 rm -f conftest.
$ac_objext
6698 if { (ac_try
="$ac_compile"
6700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_have_decl_ether_hostton=yes
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_have_decl_ether_hostton=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6725 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6726 if test $ac_cv_have_decl_ether_hostton = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6739 # Is ether_hostton() declared?
6741 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6743 # No, we'll have to declare it ourselves.
6744 # Do we have "struct ether_addr"?
6746 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6747 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6748 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6758 #include <sys/types.h>
6759 #include <sys/socket.h>
6760 #include <netinet/in.h>
6761 #include <arpa/inet.h>
6765 #include <netinet/if_ether.h>
6768 typedef struct ether_addr ac__type_new_;
6772 if ((ac__type_new_ *) 0)
6774 if (sizeof (ac__type_new_))
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6784 *) ac_try_echo
=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1
>conftest.err
6791 cat conftest.err
>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.
$ac_objext; then
6797 ac_cv_type_struct_ether_addr
=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6802 ac_cv_type_struct_ether_addr
=no
6805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6808 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6809 if test $ac_cv_type_struct_ether_addr = yes; then
6811 cat >>confdefs.h
<<_ACEOF
6812 #define HAVE_STRUCT_ETHER_ADDR 1
6819 cat >>confdefs.h
<<\_ACEOF
6820 #define HAVE_DECL_ETHER_HOSTTON 0
6825 cat >>confdefs.h
<<\_ACEOF
6826 #define HAVE_DECL_ETHER_HOSTTON 1
6832 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6833 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6834 # Check whether --enable-protochain was given.
6835 if test "${enable_protochain+set}" = set; then
6836 enableval
=$enable_protochain;
6839 case "x$enable_protochain" in
6840 xyes
) enable_protochain
=enabled
;;
6841 xno
) enable_protochain
=disabled
;;
6842 x
) enable_protochain
=enabled
;;
6845 if test "$enable_protochain" = "disabled"; then
6847 cat >>confdefs.h
<<\_ACEOF
6848 #define NO_PROTOCHAIN 1
6852 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6853 echo "${ECHO_T}${enable_protochain}" >&6; }
6856 # SITA support is mutually exclusive with native capture support;
6857 # "--with-sita" selects SITA support.
6860 # Check whether --with-sita was given.
6861 if test "${with_sita+set}" = set; then
6863 if test ! "x
$withval" = "xno
" ; then
6865 cat >>confdefs.h <<\_ACEOF
6869 { echo "$as_me:$LINENO: Enabling SITA ACN support
" >&5
6870 echo "$as_me: Enabling SITA ACN support
" >&6;}
6877 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6878 { { echo "$as_me:$LINENO: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&5
6879 echo "$as_me: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&2;}
6880 { (exit 1); exit 1; }; }
6883 # Check whether --with-pcap was given.
6884 if test "${with_pcap+set}" = set; then
6888 { echo "$as_me:$LINENO: checking packet capture
type" >&5
6889 echo $ECHO_N "checking packet capture
type...
$ECHO_C" >&6; }
6890 if test ! -z "$with_pcap" ; then
6892 elif test -r /dev/bpf -o -h /dev/bpf ; then
6894 # Cloning BPF device.
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_CLONING_BPF 1
6902 elif test -r /dev/bpf0 ; then
6904 elif test -r /usr/include/net/pfilt.h ; then
6906 elif test -r /dev/enet ; then
6908 elif test -r /dev/nit ; then
6910 elif test -r /usr/include/sys/net/nit.h ; then
6912 elif test -r /usr/include/linux/socket.h ; then
6914 elif test -r /usr/include/net/raw.h ; then
6916 elif test -r /usr/include/odmi.h ; then
6918 # On AIX, the BPF devices might not yet be present - they're
6919 # created the first time libpcap runs after booting.
6920 # We check for odmi.h instead.
6923 elif test -c /dev/bpf0 ; then # check again in case not readable
6925 elif test -r /usr/include/sys/dlpi.h ; then
6927 elif test -c /dev/enet ; then # check again in case not readable
6929 elif test -c /dev/nit ; then # check again in case not readable
6934 { echo "$as_me:$LINENO: result
: $V_PCAP" >&5
6935 echo "${ECHO_T}$V_PCAP" >&6; }
6938 # Do capture-mechanism-dependent tests.
6943 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6944 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6945 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6946 # private version also existed, which did not have the same APIs.
6947 # Due to a gcc bug, the default search path for 32-bit libraries does
6948 # not include /lib, we add it explicitly here.
6949 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6950 # Also, due to the bug above applications that link to libpcap with
6951 # libdlpi will have to add "-L/lib
" option to "configure
".
6953 saved_ldflags=$LDFLAGS
6954 LDFLAGS="$LIBS -L/lib
"
6955 { echo "$as_me:$LINENO: checking
for dlpi_walk
in -ldlpi" >&5
6956 echo $ECHO_N "checking
for dlpi_walk
in -ldlpi...
$ECHO_C" >&6; }
6957 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6958 echo $ECHO_N "(cached
) $ECHO_C" >&6
6960 ac_check_lib_save_LIBS=$LIBS
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6979 return dlpi_walk ();
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_link") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest$ac_exeext &&
7001 $as_test_x conftest$ac_exeext; then
7002 ac_cv_lib_dlpi_dlpi_walk=yes
7004 echo "$as_me: failed program was
:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_lib_dlpi_dlpi_walk=no
7010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7014 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dlpi_dlpi_walk" >&5
7015 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7016 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7020 cat >>confdefs.h <<\_ACEOF
7021 #define HAVE_LIBDLPI 1
7028 LDFLAGS=$saved_ldflags
7031 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7034 { echo "$as_me:$LINENO: checking whether
<sys
/dlpi.h
> is usable
" >&5
7035 echo $ECHO_N "checking whether
<sys
/dlpi.h
> is usable...
$ECHO_C" >&6; }
7036 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7037 echo $ECHO_N "(cached
) $ECHO_C" >&6
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7048 #include <sys/dlpi.h>
7053 int i = DL_PROMISC_PHYS;
7058 rm -f conftest.$ac_objext
7059 if { (ac_try="$ac_compile"
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 ac_cv_sys_dlpi_usable=yes
7077 echo "$as_me: failed program was
:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_sys_dlpi_usable=no
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 { echo "$as_me:$LINENO: result
: $ac_cv_sys_dlpi_usable" >&5
7087 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7088 if test $ac_cv_sys_dlpi_usable = no ; then
7089 { { echo "$as_me:$LINENO: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&5
7090 echo "$as_me: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&2;}
7091 { (exit 1); exit 1; }; }
7095 # Check whether we have a /dev/dlpi device or have multiple devices.
7097 { echo "$as_me:$LINENO: checking
for /dev
/dlpi device
" >&5
7098 echo $ECHO_N "checking
for /dev
/dlpi device...
$ECHO_C" >&6; }
7099 if test -c /dev/dlpi ; then
7100 { echo "$as_me:$LINENO: result
: yes" >&5
7101 echo "${ECHO_T}yes" >&6; }
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_DEV_DLPI 1
7108 { echo "$as_me:$LINENO: result
: no
" >&5
7109 echo "${ECHO_T}no
" >&6; }
7111 { echo "$as_me:$LINENO: checking
for $dir directory
" >&5
7112 echo $ECHO_N "checking
for $dir directory...
$ECHO_C" >&6; }
7113 if test -d $dir ; then
7114 { echo "$as_me:$LINENO: result
: yes" >&5
7115 echo "${ECHO_T}yes" >&6; }
7117 cat >>confdefs.h <<_ACEOF
7118 #define PCAP_DEV_PREFIX "$dir"
7122 { echo "$as_me:$LINENO: result
: no
" >&5
7123 echo "${ECHO_T}no
" >&6; }
7128 # This check is for Solaris with DLPI support for passive modes.
7129 # See dlpi(7P) for more details.
7131 { echo "$as_me:$LINENO: checking
if dl_passive_req_t struct exists
" >&5
7132 echo $ECHO_N "checking
if dl_passive_req_t struct exists...
$ECHO_C" >&6; }
7133 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7134 echo $ECHO_N "(cached
) $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7143 # include <sys/types.h>
7144 # include <sys/dlpi.h>
7148 u_int i = sizeof(dl_passive_req_t)
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7162 grep -v '^ *+' conftest.er1 >conftest.err
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_lbl_has_dl_passive_req_t=yes
7172 echo "$as_me: failed program was
:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_lbl_has_dl_passive_req_t=no
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_dl_passive_req_t" >&5
7182 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7183 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7185 cat >>confdefs.h <<\_ACEOF
7186 #define HAVE_DLPI_PASSIVE 1
7193 { echo "$as_me:$LINENO: checking Linux kernel version
" >&5
7194 echo $ECHO_N "checking Linux kernel version...
$ECHO_C" >&6; }
7195 if test "$cross_compiling" = yes; then
7196 if test "${ac_cv_linux_vers+set}" = set; then
7197 echo $ECHO_N "(cached
) $ECHO_C" >&6
7199 ac_cv_linux_vers=unknown
7203 if test "${ac_cv_linux_vers+set}" = set; then
7204 echo $ECHO_N "(cached
) $ECHO_C" >&6
7206 ac_cv_linux_vers=`uname -r 2>&1 | \
7207 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7211 { echo "$as_me:$LINENO: result
: $ac_cv_linux_vers" >&5
7212 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7213 if test $ac_cv_linux_vers = unknown ; then
7214 { { echo "$as_me:$LINENO: error
: cannot determine linux version when cross-compiling
" >&5
7215 echo "$as_me: error
: cannot determine linux version when cross-compiling
" >&2;}
7216 { (exit 1); exit 1; }; }
7218 if test $ac_cv_linux_vers -lt 2 ; then
7219 { { echo "$as_me:$LINENO: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&5
7220 echo "$as_me: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&2;}
7221 { (exit 1); exit 1; }; }
7225 # Do we have the wireless extensions?
7228 for ac_header in linux/wireless.h
7230 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7231 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7232 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7234 echo $ECHO_N "(cached
) $ECHO_C" >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7243 #include <sys/socket.h>
7244 #include <linux/if.h>
7245 #include <linux/types.h>
7248 #include <$ac_header>
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 eval "$as_ac_Header=yes"
7269 echo "$as_me: failed program was
:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 eval "$as_ac_Header=no
"
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 ac_res=`eval echo '${'$as_ac_Header'}'`
7278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7279 echo "${ECHO_T}$ac_res" >&6; }
7280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7294 # Check whether --with-libnl was given.
7295 if test "${with_libnl+set}" = set; then
7296 withval=$with_libnl; with_libnl=$withval
7300 if test x$with_libnl != xno ; then
7301 { echo "$as_me:$LINENO: checking
for nl_handle_alloc
in -lnl" >&5
7302 echo $ECHO_N "checking
for nl_handle_alloc
in -lnl...
$ECHO_C" >&6; }
7303 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7304 echo $ECHO_N "(cached
) $ECHO_C" >&6
7306 ac_check_lib_save_LIBS=$LIBS
7308 cat >conftest.$ac_ext <<_ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7321 char nl_handle_alloc ();
7325 return nl_handle_alloc ();
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext &&
7347 $as_test_x conftest$ac_exeext; then
7348 ac_cv_lib_nl_nl_handle_alloc=yes
7350 echo "$as_me: failed program was
:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_cv_lib_nl_nl_handle_alloc=no
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nl_nl_handle_alloc" >&5
7361 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7362 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_LIBNL 1
7370 if test x$with_libnl = xyes ; then
7371 { { echo "$as_me:$LINENO: error
: libnl support requested but libnl not found
" >&5
7372 echo "$as_me: error
: libnl support requested but libnl not found
" >&2;}
7373 { (exit 1); exit 1; }; }
7380 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
7381 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
7382 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7383 echo $ECHO_N "(cached
) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7392 # include <linux/if_packet.h>
7396 struct tpacket_stats stats
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7418 ac_cv_lbl_tpacket_stats=yes
7420 echo "$as_me: failed program was
:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ac_cv_lbl_tpacket_stats=no
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
7430 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7431 if test $ac_cv_lbl_tpacket_stats = yes; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_TPACKET_STATS 1
7438 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
7439 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
7440 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7441 echo $ECHO_N "(cached
) $ECHO_C" >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7450 # include <linux/if_packet.h>
7454 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7478 echo "$as_me: failed program was
:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7488 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7489 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7490 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7502 # Check whether we have the *BSD-style ioctls.
7505 for ac_header in net/if_media.h
7507 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7509 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7510 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7511 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7512 echo $ECHO_N "(cached
) $ECHO_C" >&6
7514 ac_res=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7518 # Is the header compilable?
7519 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7520 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 #include <$ac_header>
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_header_compiler=yes
7549 echo "$as_me: failed program was
:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_header_compiler=no
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7557 echo "${ECHO_T}$ac_header_compiler" >&6; }
7559 # Is the header present?
7560 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7561 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <$ac_header>
7570 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7582 (exit $ac_status); } >/dev/null && {
7583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7586 ac_header_preproc=yes
7588 echo "$as_me: failed program was
:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_header_preproc=no
7594 rm -f conftest.err conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7596 echo "${ECHO_T}$ac_header_preproc" >&6; }
7598 # So? What about this header?
7599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7601 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7602 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7603 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7605 ac_header_preproc=yes
7608 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7609 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7610 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7611 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7612 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7613 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7614 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7615 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7616 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7618 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7619 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7623 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7624 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7625 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached
) $ECHO_C" >&6
7628 eval "$as_ac_Header=\
$ac_header_preproc"
7630 ac_res=`eval echo '${'$as_ac_Header'}'`
7631 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7632 echo "${ECHO_T}$ac_res" >&6; }
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636 cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7645 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
7646 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <sys/socket.h>
7654 #include <sys/ioctl.h>
7656 #include <net/bpf.h>
7660 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7683 { echo "$as_me:$LINENO: result
: yes" >&5
7684 echo "${ECHO_T}yes" >&6; }
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_ZEROCOPY_BPF 1
7692 echo "$as_me: failed program was
:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 { echo "$as_me:$LINENO: result
: no
" >&5
7696 echo "${ECHO_T}no
" >&6; }
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 # Check whether we have struct BPF_TIMEVAL.
7704 { echo "$as_me:$LINENO: checking
for struct BPF_TIMEVAL
" >&5
7705 echo $ECHO_N "checking
for struct BPF_TIMEVAL...
$ECHO_C" >&6; }
7706 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7707 echo $ECHO_N "(cached
) $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 #include <sys/types.h>
7717 #include <sys/ioctl.h>
7718 #ifdef HAVE_SYS_IOCCOM_H
7719 #include <sys/ioccom.h>
7721 #include <net/bpf.h>
7724 typedef struct BPF_TIMEVAL ac__type_new_;
7728 if ((ac__type_new_ *) 0)
7730 if (sizeof (ac__type_new_))
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 ac_cv_type_struct_BPF_TIMEVAL=yes
7755 echo "$as_me: failed program was
:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_type_struct_BPF_TIMEVAL=no
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 { echo "$as_me:$LINENO: result
: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7764 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7765 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_STRUCT_BPF_TIMEVAL 1
7777 V_DEFS="$V_DEFS -DDAG_ONLY"
7781 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7785 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
7786 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
7787 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
7788 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
7792 if test "$V_PCAP" = null
7795 # We can't capture, so we can't open any capture
7796 # devices, so we won't return any interfaces.
7800 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
7801 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
7802 if test "${ac_cv_func_getifaddrs+set}" = set; then
7803 echo $ECHO_N "(cached
) $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7813 #define getifaddrs innocuous_getifaddrs
7815 /* System header to define __stub macros and hopefully few prototypes,
7816 which can conflict with char getifaddrs (); below.
7817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7818 <limits.h> exists even on freestanding compilers. */
7821 # include <limits.h>
7823 # include <assert.h>
7828 /* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7845 return getifaddrs ();
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext &&
7867 $as_test_x conftest$ac_exeext; then
7868 ac_cv_func_getifaddrs=yes
7870 echo "$as_me: failed program was
:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_func_getifaddrs=no
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877 conftest$ac_exeext conftest.$ac_ext
7879 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
7880 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7881 if test $ac_cv_func_getifaddrs = yes; then
7884 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
7885 # as well, just in case some platform is really weird.
7887 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7888 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7889 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7890 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7891 echo $ECHO_N "(cached
) $ECHO_C" >&6
7893 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
7894 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7896 # Is the header compilable?
7897 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
7898 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 $ac_includes_default
7906 #include <ifaddrs.h>
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_header_compiler=yes
7927 echo "$as_me: failed program was
:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_header_compiler=no
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7935 echo "${ECHO_T}$ac_header_compiler" >&6; }
7937 # Is the header present?
7938 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
7939 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <ifaddrs.h>
7948 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7956 grep -v '^ *+' conftest.er1 >conftest.err
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7960 (exit $ac_status); } >/dev/null && {
7961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7964 ac_header_preproc=yes
7966 echo "$as_me: failed program was
:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_header_preproc=no
7972 rm -f conftest.err conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7974 echo "${ECHO_T}$ac_header_preproc" >&6; }
7976 # So? What about this header?
7977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7979 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
7980 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7981 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
7982 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
7983 ac_header_preproc=yes
7986 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
7987 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
7988 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
7989 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
7990 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
7991 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
7992 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
7993 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
7994 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
7995 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
7996 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
7997 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
8001 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8002 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8003 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8004 echo $ECHO_N "(cached
) $ECHO_C" >&6
8006 ac_cv_header_ifaddrs_h=$ac_header_preproc
8008 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8009 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8012 if test $ac_cv_header_ifaddrs_h = yes; then
8015 # We have the header, so we use "getifaddrs
()" to
8016 # get the list of interfaces.
8023 # We don't have the header - give up.
8024 # XXX - we could also fall back on some other
8025 # mechanism, but, for now, this'll catch this
8026 # problem so that we can at least try to figure
8027 # out something to do on systems with "getifaddrs
()"
8028 # but without "ifaddrs.h
", if there is something
8029 # we can do on those systems.
8031 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
8032 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
8033 { (exit 1); exit 1; }; }
8042 # Well, we don't have "getifaddrs
()", so we have to use
8043 # some other mechanism; determine what that mechanism is.
8045 # The first thing we use is the type of capture mechanism,
8046 # which is somewhat of a proxy for the OS we're using.
8053 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8055 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8056 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8057 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8058 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8059 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8060 echo $ECHO_N "(cached
) $ECHO_C" >&6
8062 ac_res=`eval echo '${'$as_ac_Header'}'`
8063 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8064 echo "${ECHO_T}$ac_res" >&6; }
8066 # Is the header compilable?
8067 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8068 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 #include <$ac_header>
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8095 ac_header_compiler=yes
8097 echo "$as_me: failed program was
:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_header_compiler=no
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8105 echo "${ECHO_T}$ac_header_compiler" >&6; }
8107 # Is the header present?
8108 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8109 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8110 cat >conftest.$ac_ext <<_ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8116 #include <$ac_header>
8118 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8130 (exit $ac_status); } >/dev/null && {
8131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8134 ac_header_preproc=yes
8136 echo "$as_me: failed program was
:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_header_preproc=no
8142 rm -f conftest.err conftest.$ac_ext
8143 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8144 echo "${ECHO_T}$ac_header_preproc" >&6; }
8146 # So? What about this header?
8147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8149 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8150 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8153 ac_header_preproc=yes
8156 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8157 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8158 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8159 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8160 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8161 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8162 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8163 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8164 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8166 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8167 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8171 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8172 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached
) $ECHO_C" >&6
8176 eval "$as_ac_Header=\
$ac_header_preproc"
8178 ac_res=`eval echo '${'$as_ac_Header'}'`
8179 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8180 echo "${ECHO_T}$ac_res" >&6; }
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8193 # This might be Solaris 8 or later, with
8194 # SIOCGLIFCONF, or it might be some other OS
8195 # or some older version of Solaris, with
8198 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
8199 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
8200 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8201 echo $ECHO_N "(cached
) $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/param.h>
8210 #include <sys/file.h>
8211 #include <sys/ioctl.h>
8212 #include <sys/socket.h>
8213 #include <sys/sockio.h>
8217 ioctl(0, SIOCGLIFCONF, (char *)0);
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 ac_cv_lbl_have_siocglifconf=yes
8241 echo "$as_me: failed program was
:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_lbl_have_siocglifconf=no
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
8251 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8252 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8258 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8265 # Assume we just have SIOCGIFCONF.
8266 # (XXX - on at least later Linux kernels, there's
8267 # another mechanism, and we should be using that
8280 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
8281 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8289 #include <sys/types.h>
8290 #include <sys/socket.h>
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8319 echo "$as_me: failed program was
:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 if test "x
$have_socklen_t" = "xyes
"; then
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_SOCKLEN_T 1
8333 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
8334 echo "${ECHO_T}$have_socklen_t" >&6; }
8336 # Check whether --enable-ipv6 was given.
8337 if test "${enable_ipv6+set}" = set; then
8338 enableval=$enable_ipv6;
8340 enable_ipv6=ifavailable
8343 if test "$enable_ipv6" != "no
"; then
8344 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
8345 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
8346 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8347 echo $ECHO_N "(cached
) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8357 #define getaddrinfo innocuous_getaddrinfo
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char getaddrinfo (); below.
8361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362 <limits.h> exists even on freestanding compilers. */
8365 # include <limits.h>
8367 # include <assert.h>
8372 /* Override any GCC internal prototype to avoid an error.
8373 Use char because int might match the return type of a GCC
8374 builtin and then its argument prototype would still apply. */
8378 char getaddrinfo ();
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8389 return getaddrinfo ();
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (ac_try="$ac_link"
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_link") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest$ac_exeext &&
8411 $as_test_x conftest$ac_exeext; then
8412 ac_cv_func_getaddrinfo=yes
8414 echo "$as_me: failed program was
:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_func_getaddrinfo=no
8420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8421 conftest$ac_exeext conftest.$ac_ext
8423 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
8424 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8425 if test $ac_cv_func_getaddrinfo = yes; then
8428 cat >>confdefs.h <<\_ACEOF
8435 if test "$enable_ipv6" != "ifavailable
"; then
8436 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8437 See \`config.log' for more details.
" >&5
8438 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8439 See \`config.log' for more details.
" >&2;}
8440 { (exit 1); exit 1; }; }
8447 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
8448 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
8449 # Check whether --enable-optimizer-dbg was given.
8450 if test "${enable_optimizer_dbg+set}" = set; then
8451 enableval=$enable_optimizer_dbg;
8454 if test "$enable_optimizer_dbg" = "yes"; then
8456 cat >>confdefs.h <<\_ACEOF
8461 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
8462 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8464 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8465 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8466 # Check whether --enable-yydebug was given.
8467 if test "${enable_yydebug+set}" = set; then
8468 enableval
=$enable_yydebug;
8471 if test "$enable_yydebug" = "yes"; then
8473 cat >>confdefs.h
<<\_ACEOF
8478 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8479 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8481 { echo "$as_me:$LINENO: checking whether we have
/proc
/net
/dev
" >&5
8482 echo $ECHO_N "checking whether we have
/proc
/net
/dev...
$ECHO_C" >&6; }
8483 if test -r /proc/net/dev ; then
8484 ac_cv_lbl_proc_net_dev=yes
8486 ac_cv_lbl_proc_net_dev=no
8488 if test $ac_cv_lbl_proc_net_dev = yes; then
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_PROC_NET_DEV 1
8495 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_proc_net_dev" >&5
8496 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
8498 # Check for Endace DAG card support.
8500 # Check whether --with-dag was given.
8501 if test "${with_dag+set}" = set; then
8503 if test "$withval" = no
8505 # User doesn't want DAG support.
8507 elif test "$withval" = yes
8509 # User wants DAG support but hasn't specified a directory.
8512 # User wants DAG support and has specified a directory, so use the provided value.
8520 # Use DAG API if present, otherwise don't
8528 # Check whether --with-dag-includes was given.
8529 if test "${with_dag_includes+set}" = set; then
8530 withval=$with_dag_includes;
8531 # User wants DAG support and has specified a header directory, so use the provided value.
8533 dag_include_dir=$withval
8539 # Check whether --with-dag-libraries was given.
8540 if test "${with_dag_libraries+set}" = set; then
8541 withval=$with_dag_libraries;
8542 # User wants DAG support and has specified a library directory, so use the provided value.
8544 dag_lib_dir=$withval
8552 # We support the DAG API if we're on Linux or BSD, or if we're
8553 # building a DAG-only libpcap.
8558 # If the user explicitly requested DAG, tell them it's not
8561 # If they expressed no preference, don't include it.
8563 if test $want_dag = yes; then
8564 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
8565 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
8566 { (exit 1); exit 1; }; }
8567 elif test $want_dag = yes; then
8573 ac_cv_lbl_dag_api=no
8574 if test "$want_dag" != no; then
8576 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
8577 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
8579 # If necessary, set default paths for DAG API headers and libraries.
8580 if test -z "$dag_root"; then
8584 if test -z "$dag_include_dir"; then
8585 dag_include_dir="$dag_root/include
"
8588 if test -z "$dag_lib_dir"; then
8589 dag_lib_dir="$dag_root/lib
"
8592 if test -z "$dag_tools_dir"; then
8593 dag_tools_dir="$dag_root/tools
"
8596 if test -r $dag_include_dir/dagapi.h; then
8597 ac_cv_lbl_dag_api=yes
8599 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8600 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8603 if test $ac_cv_lbl_dag_api = yes; then
8605 { echo "$as_me:$LINENO: checking dagapi.o
" >&5
8606 echo $ECHO_N "checking dagapi.o...
$ECHO_C" >&6; }
8608 if test -r $dag_tools_dir/dagapi.o; then
8610 dagapi_obj=$dag_tools_dir/dagapi.o
8611 elif test -r $dag_lib_dir/dagapi.o; then
8613 dagapi_obj=$dag_lib_dir/dagapi.o
8614 elif test -r $dag_lib_dir/libdag.a; then
8616 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8617 if test -r ./dagapi.o; then
8618 dagapi_obj=./dagapi.o
8620 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8621 if test -r ./libdag_la-dagapi.o; then
8622 dagapi_obj=./libdag_la-dagapi.o
8627 if test $dagapi_obj = no; then
8628 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
8629 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
8630 ac_cv_lbl_dag_api=no
8632 { echo "$as_me:$LINENO: result
: yes ($dagapi_obj)" >&5
8633 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8637 if test $ac_cv_lbl_dag_api = yes; then
8639 { echo "$as_me:$LINENO: checking dagopts.o
" >&5
8640 echo $ECHO_N "checking dagopts.o...
$ECHO_C" >&6; }
8642 if test -r $dag_tools_dir/dagopts.o; then
8644 dagopts_obj=$dag_tools_dir/dagopts.o
8645 elif test -r $dag_lib_dir/dagopts.o; then
8647 dagopts_obj=$dag_lib_dir/dagopts.o
8648 elif test -r $dag_lib_dir/libdag.a; then
8650 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8651 if test -r ./dagopts.o; then
8652 dagopts_obj=./dagopts.o
8654 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8655 if test -r ./libdag_la-dagopts.o; then
8656 dagopts_obj=./libdag_la-dagopts.o
8661 if test $dagopts_obj = no; then
8662 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
8663 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
8664 ac_cv_lbl_dag_api=no
8666 { echo "$as_me:$LINENO: result
: yes ($dagopts_obj)" >&5
8667 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8671 if test $ac_cv_lbl_dag_api = yes; then
8672 # Under 2.5.x only we need to add dagreg.o.
8673 if test -r $dag_include_dir/dagreg.h; then
8674 { echo "$as_me:$LINENO: checking dagreg.o
" >&5
8675 echo $ECHO_N "checking dagreg.o...
$ECHO_C" >&6; }
8677 if test -r $dag_lib_dir/dagreg.o; then
8678 # Object file is ready and waiting.
8679 dagreg_obj=$dag_lib_dir/dagreg.o
8680 elif test -r $dag_lib_dir/libdag.a; then
8681 # Extract from libdag.a.
8682 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8683 if test -r ./dagreg.o; then
8684 dagreg_obj=./dagreg.o
8686 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8687 if test -r ./libdag_la-dagreg.o; then
8688 dagreg_obj=./libdag_la-dagreg.o
8693 if test $dagreg_obj = no; then
8694 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8695 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8696 ac_cv_lbl_dag_api=no
8698 { echo "$as_me:$LINENO: result
: yes ($dagreg_obj)" >&5
8699 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8704 if test $ac_cv_lbl_dag_api = yes; then
8705 # Under 2.5.x only we need to add dagutil.o.
8706 if test -r $dag_include_dir/dagutil.h; then
8707 { echo "$as_me:$LINENO: checking dagutil.o
" >&5
8708 echo $ECHO_N "checking dagutil.o...
$ECHO_C" >&6; }
8710 if test -r $dag_lib_dir/dagutil.o; then
8711 # Object file is ready and waiting.
8712 dagutil_obj=$dag_lib_dir/dagutil.o
8713 elif test -r $dag_lib_dir/libdag.a; then
8714 # Extract from libdag.a.
8715 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8716 if test -r ./dagutil.o; then
8717 dagutil_obj=./dagutil.o
8719 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8720 if test -r ./libdag_la-dagutil.o; then
8721 dagutil_obj=./libdag_la-dagutil.o
8726 if test $dagutil_obj = no; then
8727 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
8728 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
8729 ac_cv_lbl_dag_api=no
8731 { echo "$as_me:$LINENO: result
: yes ($dagutil_obj)" >&5
8732 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8737 if test $ac_cv_lbl_dag_api = yes; then
8738 V_INCLS="$V_INCLS -I$dag_include_dir"
8739 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8740 if test $V_PCAP != dag ; then
8744 # See if we can find a general version string.
8745 # Don't need to save and restore LIBS to prevent -ldag being
8746 # included if there's a found-action (arg 3).
8747 saved_ldflags=$LDFLAGS
8748 LDFLAGS="-L$dag_lib_dir"
8749 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
8750 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
8751 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8752 echo $ECHO_N "(cached
) $ECHO_C" >&6
8754 ac_check_lib_save_LIBS=$LIBS
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8769 char dag_attach_stream ();
8773 return dag_attach_stream ();
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (ac_try="$ac_link"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_link") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest$ac_exeext &&
8795 $as_test_x conftest$ac_exeext; then
8796 ac_cv_lib_dag_dag_attach_stream=yes
8798 echo "$as_me: failed program was
:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_cv_lib_dag_dag_attach_stream=no
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8808 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
8809 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8810 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8816 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
8817 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
8818 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8819 echo $ECHO_N "(cached
) $ECHO_C" >&6
8821 ac_check_lib_save_LIBS=$LIBS
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8836 char dag_get_erf_types ();
8840 return dag_get_erf_types ();
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext &&
8862 $as_test_x conftest$ac_exeext; then
8863 ac_cv_lib_dag_dag_get_erf_types=yes
8865 echo "$as_me: failed program was
:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_lib_dag_dag_get_erf_types=no
8871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8872 conftest$ac_exeext conftest.$ac_ext
8873 LIBS=$ac_check_lib_save_LIBS
8875 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
8876 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8877 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8880 cat >>confdefs.h <<\_ACEOF
8881 #define HAVE_DAG_GET_ERF_TYPES 1
8886 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
8887 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
8888 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8889 echo $ECHO_N "(cached
) $ECHO_C" >&6
8891 ac_check_lib_save_LIBS=$LIBS
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8900 /* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8906 char dag_get_stream_erf_types ();
8910 return dag_get_stream_erf_types ();
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_link") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext &&
8932 $as_test_x conftest$ac_exeext; then
8933 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8935 echo "$as_me: failed program was
:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_cv_lib_dag_dag_get_stream_erf_types=no
8941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LIBS=$ac_check_lib_save_LIBS
8945 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8946 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8947 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8956 LDFLAGS=$saved_ldflags
8958 if test "$dag_streams" = 1; then
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_DAG_STREAMS_API 1
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_DAG_API 1
8974 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
8975 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
8977 if test $ac_cv_lbl_dag_api = no; then
8978 { echo "$as_me:$LINENO: result
: no
" >&5
8979 echo "${ECHO_T}no
" >&6; }
8980 if test "$want_dag" = yes; then
8981 # User wanted DAG support but we couldn't find it.
8982 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
8983 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
8984 { (exit 1); exit 1; }; }
8987 if test "$V_PCAP" = dag; then
8988 # User requested "dag
" capture type but the DAG API wasn't
8990 { { 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
8991 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;}
8992 { (exit 1); exit 1; }; }
8995 { echo "$as_me:$LINENO: result
: yes" >&5
8996 echo "${ECHO_T}yes" >&6; }
9000 # Check whether --with-septel was given.
9001 if test "${with_septel+set}" = set; then
9002 withval=$with_septel;
9003 if test "$withval" = no
9006 elif test "$withval" = yes
9012 septel_root=$withval
9018 # Use Septel API if present, otherwise don't
9020 want_septel=ifpresent
9021 septel_root=./../septel
9025 ac_cv_lbl_septel_api=no
9029 # We support the Septel API if we're on Linux, or if we're building
9030 # a Septel-only libpcap.
9035 # If the user explicitly requested Septel, tell them it's not
9038 # If they expressed no preference, don't include it.
9040 if test $want_septel = yes; then
9041 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
9042 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
9043 { (exit 1); exit 1; }; }
9044 elif test $want_septel = yes; then
9050 if test "$with_septel" != no; then
9051 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
9052 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
9054 if test -z "$septel_root"; then
9055 septel_root=$srcdir/../septel
9058 septel_tools_dir="$septel_root"
9059 septel_include_dir="$septel_root/INC
"
9061 ac_cv_lbl_septel_api=no
9062 if test -r "$septel_include_dir/msg.h
"; then
9063 V_INCLS="$V_INCLS -I$septel_include_dir"
9064 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
"
9065 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
"
9067 if test "$V_PCAP" != septel ; then
9068 SSRC="pcap-septel.c
"
9070 ac_cv_lbl_septel_api=yes
9073 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
9074 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9075 if test $ac_cv_lbl_septel_api = no; then
9076 if test "$want_septel" = yes; then
9077 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
9078 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
9079 { (exit 1); exit 1; }; }
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_SEPTEL_API 1
9090 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9091 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
9092 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
9093 { (exit 1); exit 1; }; }
9098 # Check whether --with-flex was given.
9099 if test "${with_flex+set}" = set; then
9104 # Check whether --with-bison was given.
9105 if test "${with_bison+set}" = set; then
9106 withval=$with_bison;
9109 if test "$with_flex" = no ; then
9114 # Extract the first word of "$ac_prog", so it can be a program name with args.
9115 set dummy $ac_prog; ac_word=$2
9116 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9117 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9118 if test "${ac_cv_prog_V_LEX+set}" = set; then
9119 echo $ECHO_N "(cached
) $ECHO_C" >&6
9121 if test -n "$V_LEX"; then
9122 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_prog_V_LEX="$ac_prog"
9132 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9141 V_LEX=$ac_cv_prog_V_LEX
9142 if test -n "$V_LEX"; then
9143 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
9144 echo "${ECHO_T}$V_LEX" >&6; }
9146 { echo "$as_me:$LINENO: result
: no
" >&5
9147 echo "${ECHO_T}no
" >&6; }
9151 test -n "$V_LEX" && break
9153 test -n "$V_LEX" || V_LEX="lex"
9156 if test "$V_LEX" = flex ; then
9157 # The -V flag was added in 2.4
9158 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
9159 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
9160 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9161 echo $ECHO_N "(cached
) $ECHO_C" >&6
9163 if flex -V >/dev/null 2>&1; then
9164 ac_cv_lbl_flex_v24=yes
9166 ac_cv_lbl_flex_v24=no
9170 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
9171 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9172 if test $ac_cv_lbl_flex_v24 = no ; then
9173 s="2.4 or higher required
"
9174 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
9175 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
9179 if test "$with_bison" = no ; then
9182 for ac_prog in bison
9184 # Extract the first word of "$ac_prog", so it can be a program name with args.
9185 set dummy $ac_prog; ac_word=$2
9186 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9187 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9188 if test "${ac_cv_prog_V_YACC+set}" = set; then
9189 echo $ECHO_N "(cached
) $ECHO_C" >&6
9191 if test -n "$V_YACC"; then
9192 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_V_YACC="$ac_prog"
9202 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9211 V_YACC=$ac_cv_prog_V_YACC
9212 if test -n "$V_YACC"; then
9213 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
9214 echo "${ECHO_T}$V_YACC" >&6; }
9216 { echo "$as_me:$LINENO: result
: no
" >&5
9217 echo "${ECHO_T}no
" >&6; }
9221 test -n "$V_YACC" && break
9223 test -n "$V_YACC" || V_YACC="yacc"
9226 if test "$V_YACC" = bison ; then
9229 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9230 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
9231 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
9235 if test "$V_LEX" = flex -a -n "pcap_
" ; then
9236 V_LEX="$V_LEX -Ppcap_"
9237 V_YACC="$V_YACC -p pcap_
"
9239 if test "$V_LEX" = lex ; then
9240 # Some versions of lex can't handle the definitions section of scanner.l .
9241 # Try lexing it and complain if it can't deal.
9242 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
9243 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
9244 if test "${tcpdump_cv_capable_lex+set}" = set; then
9245 echo $ECHO_N "(cached
) $ECHO_C" >&6
9247 if lex -t scanner.l > /dev/null 2>&1; then
9248 tcpdump_cv_capable_lex=yes
9250 tcpdump_cv_capable_lex=insufficient
9253 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
9254 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9255 if test $tcpdump_cv_capable_lex = insufficient ; then
9256 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
9257 libpcap. flex is a lex replacement that has many advantages, including
9258 being able to compile libpcap. For more information, see
9259 http://www.gnu.org/software/flex/flex.html ." >&5
9260 echo "$as_me: error: Your operating system's
lex is insufficient to compile
9261 libpcap. flex is a
lex replacement that has many advantages
, including
9262 being able to compile libpcap. For
more information
, see
9263 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
9264 { (exit 1); exit 1; }; }
9269 # Assume, by default, no support for shared libraries and V7/BSD convention
9270 # for man pages (file formats in section 5, miscellaneous info in section 7).
9271 # Individual cases can override this.
9280 cat >>confdefs.h <<\_ACEOF
9286 # AIX makes it fun to build shared and static libraries,
9287 # because they're *both* ".a
" archive libraries. We
9288 # build the static library for the benefit of the traditional
9289 # scheme of building libpcap and tcpdump in subdirectories of
9290 # the same directory, with tcpdump statically linked with the
9291 # libpcap in question, but we also build a shared library as
9292 # "libpcap.shareda
" and install *it*, rather than the static
9293 # library, as "libpcap.a
".
9301 # If we're using DLPI, applications will need to
9302 # use /lib/pse.exp if present, as we use the
9305 pseexe="/lib
/pse.exp
"
9306 { echo "$as_me:$LINENO: checking
for $pseexe" >&5
9307 echo $ECHO_N "checking
for $pseexe...
$ECHO_C" >&6; }
9308 if test -f $pseexe ; then
9309 { echo "$as_me:$LINENO: result
: yes" >&5
9310 echo "${ECHO_T}yes" >&6; }
9317 # If we're using BPF, we need "-lodm" and "-lcfg", as
9318 # we use them to load the BPF module.
9327 V_CCOPT="$V_CCOPT -fno-common"
9332 cat >>confdefs.h <<\_ACEOF
9333 #define HAVE_HPUX9 1
9338 # Use System V conventions for man pages.
9347 # Use System V conventions for man pages.
9356 # Use System V conventions for man pages.
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_HPUX10_20_OR_LATER 1
9368 if test "`uname -m`" = "ia64
"; then
9375 # "-b" builds a shared library; "+h
" sets the soname.
9381 # Use System V conventions for man pages.
9389 # Use System V conventions for man pages.
9395 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9399 # Compiler assumed to be GCC; run-time linker may require a -R
9402 if test "$libdir" != "/usr
/lib
"; then
9403 V_RFLAGS=-Wl,-R$libdir
9411 # Use System V conventions for man pages.
9418 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
9419 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
9420 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9421 echo $ECHO_N "(cached
) $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9438 rm -f conftest.$ac_objext
9439 if { (ac_try="$ac_compile"
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_compile") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest.$ac_objext; then
9455 ac_cv_cc_sinix_defined=yes
9457 echo "$as_me: failed program was
:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_cc_sinix_defined=no
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
9467 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9468 if test $ac_cv_cc_sinix_defined = no ; then
9470 cat >>confdefs.h <<\_ACEOF
9479 cat >>confdefs.h <<\_ACEOF
9480 #define HAVE_SOLARIS 1
9486 # Use System V conventions for man pages.
9493 if test -n "$ac_tool_prefix"; then
9494 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
9495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9496 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9497 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9498 if test "${ac_cv_prog_RANLIB+set}" = set; then
9499 echo $ECHO_N "(cached
) $ECHO_C" >&6
9501 if test -n "$RANLIB"; then
9502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
9512 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9521 RANLIB=$ac_cv_prog_RANLIB
9522 if test -n "$RANLIB"; then
9523 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
9524 echo "${ECHO_T}$RANLIB" >&6; }
9526 { echo "$as_me:$LINENO: result
: no
" >&5
9527 echo "${ECHO_T}no
" >&6; }
9532 if test -z "$ac_cv_prog_RANLIB"; then
9533 ac_ct_RANLIB=$RANLIB
9534 # Extract the first word of "ranlib
", so it can be a program name with args.
9535 set dummy ranlib; ac_word=$2
9536 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9537 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9539 echo $ECHO_N "(cached
) $ECHO_C" >&6
9541 if test -n "$ac_ct_RANLIB"; then
9542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_ac_ct_RANLIB="ranlib
"
9552 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9562 if test -n "$ac_ct_RANLIB"; then
9563 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
9564 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9566 { echo "$as_me:$LINENO: result
: no
" >&5
9567 echo "${ECHO_T}no
" >&6; }
9570 if test "x
$ac_ct_RANLIB" = x; then
9573 case $cross_compiling:$ac_tool_warned in
9575 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9576 whose name does not start with the
host triplet. If you think this
9577 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9578 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9579 whose name does not start with the
host triplet. If you think this
9580 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9581 ac_tool_warned=yes ;;
9583 RANLIB=$ac_ct_RANLIB
9586 RANLIB="$ac_cv_prog_RANLIB"
9591 if test "${LBL_CFLAGS+set}" = set; then
9592 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9594 if test -f .devel ; then
9595 if test "$GCC" = yes ; then
9596 if test "${LBL_CFLAGS+set}" != set; then
9597 if test "$ac_cv_prog_cc_g" = yes ; then
9598 V_CCOPT="-g $V_CCOPT"
9600 V_CCOPT="$V_CCOPT -Wall"
9601 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9602 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9609 V_CCOPT="$V_CCOPT -n32"
9616 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9618 if test -f $name ; then
9619 ln -s $name os-proto.h
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_OS_PROTO_H 1
9626 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
9627 echo "$as_me: WARNING: can't
find $name" >&2;}
9631 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
9632 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
9633 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9634 echo $ECHO_N "(cached
) $ECHO_C" >&6
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 # include <sys/types.h>
9644 # include <sys/socket.h>
9648 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9670 ac_cv_lbl_sockaddr_has_sa_len=yes
9672 echo "$as_me: failed program was
:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_lbl_sockaddr_has_sa_len=no
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9682 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9683 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_SOCKADDR_SA_LEN 1
9691 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
9692 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
9693 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9694 echo $ECHO_N "(cached
) $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9703 # include <sys/types.h>
9704 # include <sys/socket.h>
9708 u_int i = sizeof (struct sockaddr_storage)
9713 rm -f conftest.$ac_objext
9714 if { (ac_try="$ac_compile"
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_compile") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest.$ac_objext; then
9730 ac_cv_lbl_has_sockaddr_storage=yes
9732 echo "$as_me: failed program was
:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_lbl_has_sockaddr_storage=no
9738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
9742 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9743 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_SOCKADDR_STORAGE 1
9751 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
9752 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
9753 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9754 echo $ECHO_N "(cached
) $ECHO_C" >&6
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9763 # include <sys/types.h>
9764 # include <sys/dlpi.h>
9765 # include <sys/dlpi_ext.h>
9769 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
9791 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9793 echo "$as_me: failed program was
:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9803 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9804 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9812 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
9813 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
9814 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9815 echo $ECHO_N "(cached
) $ECHO_C" >&6
9820 # These are CPU types where:
9822 # the CPU faults on an unaligned access, but at least some
9823 # OSes that support that CPU catch the fault and simulate
9824 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9825 # the simulation is slow, so we don't want to use it;
9827 # the CPU, I infer (from the old
9829 # XXX: should also check that they don't do weird things (like on arm)
9831 # comment) doesn't fault on unaligned accesses, but doesn't
9832 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9834 # for whatever reason, the test program doesn't work
9835 # (this has been claimed to be the case for several of those
9836 # CPUs - I don't know what the problem is; the problem
9837 # was reported as "the
test program dumps core
" for SuperH,
9838 # but that's what the test program is *supposed* to do -
9839 # it dumps core before it writes anything, so the test
9840 # for an empty output file should find an empty output
9841 # file and conclude that unaligned accesses don't work).
9843 # This run-time test won't work if you're cross-compiling, so
9844 # in order to support cross-compiling for a particular CPU,
9845 # we have to wire in the list of CPU types anyway, as far as
9846 # I know, so perhaps we should just have a set of CPUs on
9847 # which we know it doesn't work, a set of CPUs on which we
9848 # know it does work, and have the script just fail on other
9849 # cpu types and update it when such a failure occurs.
9851 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9852 ac_cv_lbl_unaligned_fail=yes
9856 cat >conftest.c <<EOF
9857 # include <sys/types.h>
9858 # include <sys/wait.h>
9860 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9865 /* avoid "core dumped
" message */
9871 pid = waitpid(pid, &status, 0);
9874 exit(!WIFEXITED(status));
9877 i = *(unsigned int *)&a[1];
9882 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9883 conftest.c $LIBS >/dev/null 2>&1
9884 if test ! -x conftest ; then
9885 ac_cv_lbl_unaligned_fail=yes
9887 ./conftest >conftest.out
9888 if test ! -s conftest.out ; then
9889 ac_cv_lbl_unaligned_fail=yes
9891 ac_cv_lbl_unaligned_fail=no
9894 rm -f conftest* core core.conftest
9899 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
9900 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9901 if test $ac_cv_lbl_unaligned_fail = yes ; then
9903 cat >>confdefs.h <<\_ACEOF
9910 # Makefile.in includes rules to generate version.h, so we assume
9911 # that it will be generated if autoconf is used.
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_VERSION_H 1
9920 ln -s ${srcdir}/bpf/net net
9940 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
9941 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
9945 cat >>confdefs.h <<\_ACEOF
9946 #define PCAP_SUPPORT_USB 1
9949 USB_SRC=pcap-usb-linux.c
9950 { echo "$as_me:$LINENO: result
: yes" >&5
9951 echo "${ECHO_T}yes" >&6; }
9952 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9953 if test $? -ne 0 ; then
9954 ac_usb_dev_name="usbmon
"
9957 cat >>confdefs.h <<_ACEOF
9958 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
9961 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
9962 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
9964 for ac_header in linux/usbdevice_fs.h
9966 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9967 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9968 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9969 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9970 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9971 echo $ECHO_N "(cached
) $ECHO_C" >&6
9973 ac_res=`eval echo '${'$as_ac_Header'}'`
9974 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9975 echo "${ECHO_T}$ac_res" >&6; }
9977 # Is the header compilable?
9978 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9979 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 #include <$ac_header>
9989 rm -f conftest.$ac_objext
9990 if { (ac_try="$ac_compile"
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_compile") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest.$ac_objext; then
10006 ac_header_compiler=yes
10008 echo "$as_me: failed program was
:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_header_compiler=no
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10016 echo "${ECHO_T}$ac_header_compiler" >&6; }
10018 # Is the header present?
10019 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10020 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <$ac_header>
10029 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1 >conftest.err
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10041 (exit $ac_status); } >/dev/null && {
10042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10045 ac_header_preproc=yes
10047 echo "$as_me: failed program was
:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_header_preproc=no
10053 rm -f conftest.err conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10055 echo "${ECHO_T}$ac_header_preproc" >&6; }
10057 # So? What about this header?
10058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10060 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10061 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10062 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10064 ac_header_preproc=yes
10067 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10068 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10069 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10070 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10071 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10072 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10073 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10074 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10075 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10077 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10078 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10082 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10083 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10085 echo $ECHO_N "(cached
) $ECHO_C" >&6
10087 eval "$as_ac_Header=\
$ac_header_preproc"
10089 ac_res=`eval echo '${'$as_ac_Header'}'`
10090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10091 echo "${ECHO_T}$ac_res" >&6; }
10094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10103 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10105 # OK, does it define bRequestType? Older versions of the kernel
10106 # define fields with names like "requesttype
, "request", and
10107 # "value", rather than "bRequestType", "bRequest", and
10110 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10111 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10112 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.
$ac_ext <<_ACEOF
10118 cat confdefs.h
>>conftest.
$ac_ext
10119 cat >>conftest.
$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10122 $ac_includes_default
10123 #ifdef HAVE_SYS_BITYPES_H
10124 #include <sys/bitypes.h>
10126 # include <linux/usbdevice_fs.h>
10130 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10135 rm -f conftest.
$ac_objext
10136 if { (ac_try
="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10164 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10165 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10167 cat >>confdefs.h <<\_ACEOF
10168 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10175 { echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6; }
10182 # Check whether --enable-bluetooth was given.
10183 if test "${enable_bluetooth+set}" = set; then
10184 enableval=$enable_bluetooth;
10186 enable_bluetooth=yes
10190 if test "x$enable_bluetooth" != "xno" ; then
10193 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10194 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10195 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10196 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10200 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10202 # Is the header compilable?
10203 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10204 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 $ac_includes_default
10212 #include <bluetooth/bluetooth.h>
10214 rm -f conftest.$ac_objext
10215 if { (ac_try="$ac_compile"
10216 case "(($ac_try" in
10217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10218 *) ac_try_echo
=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_compile") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1
>conftest.err
10225 cat conftest.err
>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest.
$ac_objext; then
10231 ac_header_compiler
=yes
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10236 ac_header_compiler
=no
10239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6; }
10243 # Is the header present?
10244 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10245 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10246 cat >conftest.
$ac_ext <<_ACEOF
10249 cat confdefs.h
>>conftest.
$ac_ext
10250 cat >>conftest.
$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <bluetooth/bluetooth.h>
10254 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10255 case "(($ac_try" in
10256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev/null && {
10267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10270 ac_header_preproc=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_header_preproc=no
10278 rm -f conftest.err conftest.$ac_ext
10279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 echo "${ECHO_T}$ac_header_preproc" >&6; }
10282 # So? What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10286 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10288 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10289 ac_header_preproc=yes
10292 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10293 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10295 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10297 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10299 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10301 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10303 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10307 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10308 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10309 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10314 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10315 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10318 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define PCAP_SUPPORT_BT 1
10325 BT_SRC=pcap-bt-linux.c
10326 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10327 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10330 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10331 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10338 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
10339 echo "$as_me: no Bluetooth sniffing support" >&6;}
10346 # Check whether --enable-can was given.
10347 if test "${enable_can+set}" = set; then
10348 enableval=$enable_can;
10354 if test "x$enable_can" != "xno" ; then
10357 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10358 { echo "$as_me:$LINENO: checking for linux/can/version.h" >&5
10359 echo $ECHO_N "checking for linux/can/version.h... $ECHO_C" >&6; }
10360 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_version_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_linux_can_version_h" >&6; }
10366 # Is the header compilable?
10367 { echo "$as_me:$LINENO: checking linux/can/version.h usability" >&5
10368 echo $ECHO_N "checking linux/can/version.h usability... $ECHO_C" >&6; }
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <linux/can/version.h>
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10382 *) ac_try_echo
=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10387 grep -v '^ *+' conftest.er1
>conftest.err
10389 cat conftest.err
>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest.
$ac_objext; then
10395 ac_header_compiler
=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.
$ac_ext >&5
10400 ac_header_compiler
=no
10403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10405 echo "${ECHO_T}$ac_header_compiler" >&6; }
10407 # Is the header present?
10408 { echo "$as_me:$LINENO: checking linux/can/version.h presence" >&5
10409 echo $ECHO_N "checking linux/can/version.h presence... $ECHO_C" >&6; }
10410 cat >conftest.
$ac_ext <<_ACEOF
10413 cat confdefs.h
>>conftest.
$ac_ext
10414 cat >>conftest.
$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 #include <linux/can/version.h>
10418 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10419 case "(($ac_try" in
10420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } >/dev/null && {
10431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10434 ac_header_preproc=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_header_preproc=no
10442 rm -f conftest.err conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10444 echo "${ECHO_T}$ac_header_preproc" >&6; }
10446 # So? What about this header?
10447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10449 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10450 echo "$as_me: WARNING: linux/can/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: proceeding with the compiler's result" >&5
10452 echo "$as_me: WARNING: linux/can/version.h: proceeding with the compiler's result" >&2;}
10453 ac_header_preproc=yes
10456 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: present but cannot be compiled" >&5
10457 echo "$as_me: WARNING: linux/can/version.h: present but cannot be compiled" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: check for missing prerequisite headers?" >&5
10459 echo "$as_me: WARNING: linux/can/version.h: check for missing prerequisite headers?" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: see the Autoconf documentation" >&5
10461 echo "$as_me: WARNING: linux/can/version.h: see the Autoconf documentation" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: section \"Present But Cannot Be Compiled\"" >&5
10463 echo "$as_me: WARNING: linux/can/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: proceeding with the preprocessor's result" >&5
10465 echo "$as_me: WARNING: linux/can/version.h: proceeding with the preprocessor's result" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: in the future, the compiler will take precedence" >&5
10467 echo "$as_me: WARNING: linux/can/version.h: in the future, the compiler will take precedence" >&2;}
10471 { echo "$as_me:$LINENO: checking for linux/can/version.h" >&5
10472 echo $ECHO_N "checking for linux/can/version.h... $ECHO_C" >&6; }
10473 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 ac_cv_header_linux_can_version_h=$ac_header_preproc
10478 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_version_h" >&5
10479 echo "${ECHO_T}$ac_cv_header_linux_can_version_h" >&6; }
10482 if test $ac_cv_header_linux_can_version_h = yes; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define PCAP_SUPPORT_CAN 1
10488 CAN_SRC=pcap-can-linux.c
10489 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10490 echo "$as_me: CAN sniffing is supported" >&6;}
10492 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10493 echo "$as_me: CAN sniffing is not supported" >&6;}
10499 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10500 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10507 # Find a good install program. We prefer a C program (faster),
10508 # so one script is as good as another. But avoid the broken or
10509 # incompatible versions:
10510 # SysV /etc/install, /usr/sbin/install
10511 # SunOS /usr/etc/install
10512 # IRIX /sbin/install
10514 # AmigaOS /C/install, which installs bootblocks on floppy discs
10515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10518 # OS/2's system install, which has a completely different semantic
10519 # ./install, which can be erroneously created by make from ./install.sh.
10520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10522 if test -z "$INSTALL"; then
10523 if test "${ac_cv_path_install+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10530 test -z "$as_dir" && as_dir=.
10531 # Account for people who put trailing slashes in PATH elements.
10533 ./ | .// | /cC/* | \
10534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10535 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10538 # OSF1 and SCO ODT 3.0 have their own names for install.
10539 # Don't use installbsd from OSF since it installs stuff as root
10541 for ac_prog in ginstall scoinst install; do
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10544 if test $ac_prog = install &&
10545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10546 # AIX install. It has an incompatible calling convention.
10548 elif test $ac_prog = install &&
10549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10550 # program-specific install script used by HP pwplus--don't use.
10553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10566 if test "${ac_cv_path_install+set}" = set; then
10567 INSTALL=$ac_cv_path_install
10569 # As a last resort, use the slow shell script. Don't cache a
10570 # value for INSTALL within a source directory, because that will
10571 # break other packages using the cache if that directory is
10572 # removed, or if the value is a relative name.
10573 INSTALL=$ac_install_sh
10576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10577 echo "${ECHO_T}$INSTALL" >&6; }
10579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10580 # It thinks the first close brace ends the variable substitution.
10581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10588 ac_config_headers="$ac_config_headers config.h"
10591 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10593 cat >confcache <<\_ACEOF
10594 # This file is a shell script that caches the results of configure
10595 # tests run on this system so they can be shared between configure
10596 # scripts and configure runs, see configure's option --config-cache.
10597 # It is not useful on other systems. If it contains results you don't
10598 # want to keep, you may remove or edit it.
10600 # config.status only pays attention to the cache file if you give it
10601 # the --recheck option to rerun configure.
10603 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10605 # following values.
10609 # The following way of writing the cache mishandles newlines in values,
10610 # but we know of no workaround that is simple, portable, and efficient.
10611 # So, we kill variables containing newlines.
10612 # Ultrix sh set writes to stderr and can't be redirected directly,
10613 # and sets the high bit in the cache file unless we assign to the vars.
10615 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10616 eval ac_val
=\$
$ac_var
10620 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10621 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10624 _ | IFS | as_nl
) ;; #(
10625 *) $as_unset $ac_var ;;
10631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10632 *${as_nl}ac_space
=\
*)
10633 # `set' does not quote correctly, so add quotes (double-quote
10634 # substitution turns \\\\ into \\, and sed turns \\ into \).
10637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10640 # `set' quotes correctly as required by POSIX, so do not add quotes.
10641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10654 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10655 if test -w "$cache_file"; then
10656 test "x$cache_file" != "x/dev/null" &&
10657 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10658 echo "$as_me: updating cache $cache_file" >&6;}
10659 cat confcache
>$cache_file
10661 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10662 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10667 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10668 # Let make expand exec_prefix.
10669 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10671 DEFS
=-DHAVE_CONFIG_H
10675 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10676 # 1. Remove the extension, and $U if already installed.
10677 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10678 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10680 # will be set to the directory where LIBOBJS objects are built.
10681 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10682 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10684 LIBOBJS
=$ac_libobjs
10686 LTLIBOBJS
=$ac_ltlibobjs
10690 : ${CONFIG_STATUS=./config.status}
10691 ac_clean_files_save
=$ac_clean_files
10692 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10693 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10694 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10695 cat >$CONFIG_STATUS <<_ACEOF
10697 # Generated by $as_me.
10698 # Run this file to recreate the current configuration.
10699 # Compiler output produced by configure, useful for debugging
10700 # configure, is in config.log if it exists.
10703 ac_cs_recheck=false
10705 SHELL=\${CONFIG_SHELL-$SHELL}
10708 cat >>$CONFIG_STATUS <<\_ACEOF
10709 ## --------------------- ##
10710 ## M4sh Initialization. ##
10711 ## --------------------- ##
10713 # Be more Bourne compatible
10714 DUALCASE
=1; export DUALCASE
# for MKS sh
10715 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10718 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10719 # is contrary to our usage. Disable this feature.
10720 alias -g '${1+"$@"}'='"$@"'
10721 setopt NO_GLOB_SUBST
10723 case `(set -o) 2>/dev/null` in
10724 *posix
*) set -o posix
;;
10733 # Avoid depending upon Character Ranges.
10734 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10735 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10736 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10737 as_cr_digits
='0123456789'
10738 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10740 # The user is always right.
10741 if test "${PATH_SEPARATOR+set}" != set; then
10742 echo "#! /bin/sh" >conf$$.sh
10743 echo "exit 0" >>conf$$.sh
10745 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10753 # Support unset when possible.
10754 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10762 # We need space, tab and new line, in precisely that order. Quoting is
10763 # there to prevent editors from complaining about space-tab.
10764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10765 # splitting by setting IFS to empty value.)
10770 # Find who we are. Look in the path if we contain no directory separator.
10772 *[\\/]* ) as_myself
=$0 ;;
10773 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10774 for as_dir
in $PATH
10777 test -z "$as_dir" && as_dir
=.
10778 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10784 # We did not find ourselves, most probably we were run as `sh COMMAND'
10785 # in which case we are not to be found in the path.
10786 if test "x$as_myself" = x
; then
10789 if test ! -f "$as_myself"; then
10790 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10791 { (exit 1); exit 1; }
10794 # Work around bugs in pre-3.0 UWIN ksh.
10795 for as_var
in ENV MAIL MAILPATH
10796 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10804 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10805 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10806 LC_TELEPHONE LC_TIME
10808 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10809 eval $as_var=C
; export $as_var
10811 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10815 # Required to use basename.
10816 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10817 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10823 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10824 as_basename
=basename
10830 # Name of the executable.
10831 as_me
=`$as_basename -- "$0" ||
10832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10833 X"$0" : 'X\(//\)$' \| \
10834 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10836 sed '/^.*\/\([^/][^/]*\)\/*$/{
10855 as_lineno_1
=$LINENO
10856 as_lineno_2
=$LINENO
10857 test "x$as_lineno_1" != "x$as_lineno_2" &&
10858 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10860 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10861 # uniformly replaced by the line number. The first 'sed' inserts a
10862 # line-number line after each line using $LINENO; the second 'sed'
10863 # does the real work. The second script uses 'N' to pair each
10864 # line-number line with the line containing $LINENO, and appends
10865 # trailing '-' during substitution so that $LINENO is not a special
10866 # case at line end.
10867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10868 # scripts with optimization help from Paolo Bonzini. Blame Lee
10869 # E. McMahon (1931-1989) for sed's syntax. :-)
10881 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10884 ' >$as_me.lineno
&&
10885 chmod +x
"$as_me.lineno" ||
10886 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10887 { (exit 1); exit 1; }; }
10889 # Don't try to exec as it changes $[0], causing all sort of problems
10890 # (the dirname of $[0] is not the place where we might find the
10891 # original and so on. Autoconf is especially sensitive to this).
10892 .
"./$as_me.lineno"
10893 # Exit status is that of the last command.
10898 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10904 ECHO_C
= ECHO_N
= ECHO_T
=
10905 case `echo -n x` in
10907 case `echo 'x\c'` in
10908 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10915 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10916 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10922 rm -f conf$$ conf$$.exe conf$$.
file
10923 if test -d conf$$.dir
; then
10924 rm -f conf$$.dir
/conf$$.
file
10930 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10932 # ... but there are two gotchas:
10933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10935 # In both cases, we have to default to `cp -p'.
10936 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10938 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10943 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10944 rmdir conf$$.dir
2>/dev
/null
10946 if mkdir
-p .
2>/dev
/null
; then
10949 test -d .
/-p && rmdir .
/-p
10953 if test -x / >/dev
/null
2>&1; then
10954 as_test_x
='test -x'
10956 if ls -dL / >/dev
/null
2>&1; then
10963 if test -d "$1"; then
10969 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10970 ???[sx]*):;;*)false;;esac;fi
10974 as_executable_p
=$as_test_x
10976 # Sed expression to map a string onto a valid CPP name.
10977 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10979 # Sed expression to map a string onto a valid variable name.
10980 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10985 # Save the log message, to keep $[0] and so on meaningful, and to
10986 # report actual input values of CONFIG_FILES etc. instead of their
10987 # values after options handling.
10989 This file was extended by $as_me, which was
10990 generated by GNU Autoconf 2.61. Invocation command line was
10992 CONFIG_FILES = $CONFIG_FILES
10993 CONFIG_HEADERS = $CONFIG_HEADERS
10994 CONFIG_LINKS = $CONFIG_LINKS
10995 CONFIG_COMMANDS = $CONFIG_COMMANDS
10998 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11003 cat >>$CONFIG_STATUS <<_ACEOF
11004 # Files that config.status was made for.
11005 config_files="$ac_config_files"
11006 config_headers="$ac_config_headers"
11010 cat >>$CONFIG_STATUS <<\_ACEOF
11012 \`$as_me' instantiates files from templates according to the
11013 current configuration.
11015 Usage: $0 [OPTIONS] [FILE]...
11017 -h, --help print this help, then exit
11018 -V, --version print version number and configuration settings, then exit
11019 -q, --quiet do not print progress messages
11020 -d, --debug don't remove temporary files
11021 --recheck update $as_me by reconfiguring in the same conditions
11022 --file=FILE[:TEMPLATE]
11023 instantiate the configuration file FILE
11024 --header=FILE[:TEMPLATE]
11025 instantiate the configuration header FILE
11027 Configuration files:
11030 Configuration headers:
11033 Report bugs to <bug-autoconf@gnu.org>."
11036 cat >>$CONFIG_STATUS <<_ACEOF
11039 configured by $0, generated by GNU Autoconf 2.61,
11040 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11042 Copyright (C) 2006 Free Software Foundation, Inc.
11043 This config.status script is free software; the Free Software Foundation
11044 gives unlimited permission to copy, distribute and modify it."
11051 cat >>$CONFIG_STATUS <<\_ACEOF
11052 # If no file are specified by the user, then we need to provide default
11053 # value. By we need to know if files were specified by the user.
11059 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11060 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11071 # Handling of the options.
11072 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11074 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11075 echo "$ac_cs_version"; exit ;;
11076 --debug |
--debu |
--deb |
--de |
--d |
-d )
11078 --file |
--fil |
--fi |
--f )
11080 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11081 ac_need_defaults
=false
;;
11082 --header |
--heade |
--head |
--hea )
11084 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11085 ac_need_defaults
=false
;;
11087 # Conflict between --help and --header
11088 { echo "$as_me: error: ambiguous option: $1
11089 Try \`$0 --help' for more information." >&2
11090 { (exit 1); exit 1; }; };;
11091 --help |
--hel |
-h )
11092 echo "$ac_cs_usage"; exit ;;
11093 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11094 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11097 # This is an error.
11098 -*) { echo "$as_me: error: unrecognized option: $1
11099 Try \`$0 --help' for more information." >&2
11100 { (exit 1); exit 1; }; } ;;
11102 *) ac_config_targets
="$ac_config_targets $1"
11103 ac_need_defaults
=false
;;
11109 ac_configure_extra_args
=
11111 if $ac_cs_silent; then
11113 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11117 cat >>$CONFIG_STATUS <<_ACEOF
11118 if \$ac_cs_recheck; then
11119 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11120 CONFIG_SHELL=$SHELL
11121 export CONFIG_SHELL
11122 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11126 cat >>$CONFIG_STATUS <<\_ACEOF
11130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11131 ## Running $as_me. ##
11137 cat >>$CONFIG_STATUS <<_ACEOF
11140 cat >>$CONFIG_STATUS <<\_ACEOF
11142 # Handling of arguments.
11143 for ac_config_target
in $ac_config_targets
11145 case $ac_config_target in
11146 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11147 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11148 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11149 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11150 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11151 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11152 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11153 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11154 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11155 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11156 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11157 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11159 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11160 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11161 { (exit 1); exit 1; }; };;
11166 # If the user did not use the arguments to specify the items to instantiate,
11167 # then the envvar interface is used. Set only those that are not.
11168 # We use the long form for the default assignment because of an extremely
11169 # bizarre bug on SunOS 4.1.3.
11170 if $ac_need_defaults; then
11171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11175 # Have a temporary directory for convenience. Make it in the build tree
11176 # simply because there is no reason against having it here, and in addition,
11177 # creating and moving files from /tmp can sometimes cause problems.
11178 # Hook for its removal unless debugging.
11179 # Note that there is a small window in which the directory will not be cleaned:
11180 # after its creation but before its name has been assigned to `$tmp'.
11184 trap 'exit_status=$?
11185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11187 trap '{ (exit 1); exit 1; }' 1 2 13 15
11189 # Create a (secure) tmp directory for tmp files.
11192 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11193 test -n "$tmp" && test -d "$tmp"
11196 tmp
=.
/conf$$
-$RANDOM
11197 (umask 077 && mkdir
"$tmp")
11200 echo "$me: cannot create a temporary directory in ." >&2
11201 { (exit 1); exit 1; }
11205 # Set up the sed scripts for CONFIG_FILES section.
11208 # No need to generate the scripts if there are no CONFIG_FILES.
11209 # This happens for instance when ./config.status config.h
11210 if test -n "$CONFIG_FILES"; then
11217 for ac_last_try
in false false false false false
:; do
11218 cat >conf$
$subs.
sed <<_ACEOF
11219 SHELL!$SHELL$ac_delim
11220 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11221 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11222 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11223 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11224 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11225 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11226 exec_prefix!$exec_prefix$ac_delim
11227 prefix!$prefix$ac_delim
11228 program_transform_name!$program_transform_name$ac_delim
11229 bindir!$bindir$ac_delim
11230 sbindir!$sbindir$ac_delim
11231 libexecdir!$libexecdir$ac_delim
11232 datarootdir!$datarootdir$ac_delim
11233 datadir!$datadir$ac_delim
11234 sysconfdir!$sysconfdir$ac_delim
11235 sharedstatedir!$sharedstatedir$ac_delim
11236 localstatedir!$localstatedir$ac_delim
11237 includedir!$includedir$ac_delim
11238 oldincludedir!$oldincludedir$ac_delim
11239 docdir!$docdir$ac_delim
11240 infodir!$infodir$ac_delim
11241 htmldir!$htmldir$ac_delim
11242 dvidir!$dvidir$ac_delim
11243 pdfdir!$pdfdir$ac_delim
11244 psdir!$psdir$ac_delim
11245 libdir!$libdir$ac_delim
11246 localedir!$localedir$ac_delim
11247 mandir!$mandir$ac_delim
11248 DEFS!$DEFS$ac_delim
11249 ECHO_C!$ECHO_C$ac_delim
11250 ECHO_N!$ECHO_N$ac_delim
11251 ECHO_T!$ECHO_T$ac_delim
11252 LIBS!$LIBS$ac_delim
11253 build_alias!$build_alias$ac_delim
11254 host_alias!$host_alias$ac_delim
11255 target_alias!$target_alias$ac_delim
11256 build!$build$ac_delim
11257 build_cpu!$build_cpu$ac_delim
11258 build_vendor!$build_vendor$ac_delim
11259 build_os!$build_os$ac_delim
11260 host!$host$ac_delim
11261 host_cpu!$host_cpu$ac_delim
11262 host_vendor!$host_vendor$ac_delim
11263 host_os!$host_os$ac_delim
11264 target!$target$ac_delim
11265 target_cpu!$target_cpu$ac_delim
11266 target_vendor!$target_vendor$ac_delim
11267 target_os!$target_os$ac_delim
11268 SHLICC2!$SHLICC2$ac_delim
11270 CFLAGS!$CFLAGS$ac_delim
11271 LDFLAGS!$LDFLAGS$ac_delim
11272 CPPFLAGS!$CPPFLAGS$ac_delim
11273 ac_ct_CC!$ac_ct_CC$ac_delim
11274 EXEEXT!$EXEEXT$ac_delim
11275 OBJEXT!$OBJEXT$ac_delim
11277 GREP!$GREP$ac_delim
11278 EGREP!$EGREP$ac_delim
11279 LIBOBJS!$LIBOBJS$ac_delim
11280 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11281 V_LEX!$V_LEX$ac_delim
11282 V_YACC!$V_YACC$ac_delim
11283 RANLIB!$RANLIB$ac_delim
11284 V_CCOPT!$V_CCOPT$ac_delim
11285 V_DEFS!$V_DEFS$ac_delim
11286 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11287 V_INCLS!$V_INCLS$ac_delim
11288 V_PCAP!$V_PCAP$ac_delim
11289 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11290 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11291 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11292 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11293 ADDLOBJS!$ADDLOBJS$ac_delim
11294 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11295 SSRC!$SSRC$ac_delim
11296 DYEXT!$DYEXT$ac_delim
11297 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11298 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11299 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11300 USB_SRC!$USB_SRC$ac_delim
11301 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11302 BT_SRC!$BT_SRC$ac_delim
11303 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11304 CAN_SRC!$CAN_SRC$ac_delim
11305 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11306 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11307 INSTALL_DATA!$INSTALL_DATA$ac_delim
11308 LTLIBOBJS!$LTLIBOBJS$ac_delim
11311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
11313 elif $ac_last_try; then
11314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11316 { (exit 1); exit 1; }; }
11318 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
11322 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11323 if test -n "$ac_eof"; then
11324 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
11325 ac_eof
=`expr $ac_eof + 1`
11328 cat >>$CONFIG_STATUS <<_ACEOF
11329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11334 s/^/s,@/; s/!/@,|#_!!_#|/
11337 s/'"$ac_delim"'$/,g/; t
11339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11340 ' >>$CONFIG_STATUS <conf$
$subs.
sed
11341 rm -f conf$
$subs.
sed
11342 cat >>$CONFIG_STATUS <<_ACEOF
11349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11351 # trailing colons and then remove the whole line if VPATH becomes empty
11352 # (actually we leave an empty line to preserve line numbers).
11353 if test "x$srcdir" = x.
; then
11354 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11355 s/:*\$(srcdir):*/:/
11356 s/:*\${srcdir}:*/:/
11358 s/^\([^=]*=[ ]*\):*/\1/
11364 cat >>$CONFIG_STATUS <<\_ACEOF
11365 fi # test -n "$CONFIG_FILES"
11368 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
11371 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11373 case $ac_mode$ac_tag in
11375 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11376 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11377 { (exit 1); exit 1; }; };;
11378 :[FH
]-) ac_tag
=-:-;;
11379 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11396 -) ac_f
="$tmp/stdin";;
11397 *) # Look for the file first in the build tree, then in the source tree
11398 # (if the path is not absolute). The absolute path cannot be DOS-style,
11399 # because $ac_f cannot contain `:'.
11403 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11405 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11406 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11407 { (exit 1); exit 1; }; };;
11409 ac_file_inputs
="$ac_file_inputs $ac_f"
11412 # Let's still pretend it is `configure' which instantiates (i.e., don't
11413 # use $as_me), people would be surprised to read:
11414 # /* config.h. Generated by config.status. */
11415 configure_input
="Generated from "`IFS=:
11416 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11417 if test x
"$ac_file" != x-
; then
11418 configure_input
="$ac_file. $configure_input"
11419 { echo "$as_me:$LINENO: creating $ac_file" >&5
11420 echo "$as_me: creating $ac_file" >&6;}
11424 *:-:* |
*:-) cat >"$tmp/stdin";;
11429 ac_dir
=`$as_dirname -- "$ac_file" ||
11430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431 X"$ac_file" : 'X\(//\)[^/]' \| \
11432 X"$ac_file" : 'X\(//\)$' \| \
11433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11439 /^X\(\/\/\)[^/].*/{
11454 -*) as_dir
=.
/$as_dir;;
11456 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
11460 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11461 *) as_qdir
=$as_dir;;
11463 as_dirs
="'$as_qdir' $as_dirs"
11464 as_dir
=`$as_dirname -- "$as_dir" ||
11465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11466 X"$as_dir" : 'X\(//\)[^/]' \| \
11467 X"$as_dir" : 'X\(//\)$' \| \
11468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11474 /^X\(\/\/\)[^/].*/{
11487 test -d "$as_dir" && break
11489 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11490 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11491 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11492 { (exit 1); exit 1; }; }; }
11496 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11498 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11499 # A ".." for each directory in $ac_dir_suffix.
11500 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11501 case $ac_top_builddir_sub in
11502 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11503 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11506 ac_abs_top_builddir
=$ac_pwd
11507 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11508 # for backward compatibility:
11509 ac_top_builddir
=$ac_top_build_prefix
11512 .
) # We are building in place.
11514 ac_top_srcdir
=$ac_top_builddir_sub
11515 ac_abs_top_srcdir
=$ac_pwd ;;
11516 [\\/]* | ?
:[\\/]* ) # Absolute name.
11517 ac_srcdir
=$srcdir$ac_dir_suffix;
11518 ac_top_srcdir
=$srcdir
11519 ac_abs_top_srcdir
=$srcdir ;;
11520 *) # Relative name.
11521 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11522 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11523 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11525 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11535 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11536 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11540 cat >>$CONFIG_STATUS <<\_ACEOF
11541 # If the template does not know about datarootdir, expand it.
11542 # FIXME: This hack should be removed a few years after 2.60.
11543 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11545 case `sed -n '/datarootdir/ {
11554 ' $ac_file_inputs` in
11555 *datarootdir
*) ac_datarootdir_seen
=yes;;
11556 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11557 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11558 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11560 cat >>$CONFIG_STATUS <<_ACEOF
11561 ac_datarootdir_hack='
11562 s&@datadir@&$datadir&g
11563 s&@docdir@&$docdir&g
11564 s&@infodir@&$infodir&g
11565 s&@localedir@&$localedir&g
11566 s&@mandir@&$mandir&g
11567 s&\\\${datarootdir}&$datarootdir&g' ;;
11571 # Neutralize VPATH when `$srcdir' = `.'.
11572 # Shell code in configure.ac might set extrasub.
11573 # FIXME: do we really want to maintain this feature?
11574 cat >>$CONFIG_STATUS <<_ACEOF
11578 cat >>$CONFIG_STATUS <<\_ACEOF
11580 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11581 s
&@configure_input@
&$configure_input&;t t
11582 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11583 s
&@srcdir@
&$ac_srcdir&;t t
11584 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11585 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11586 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11587 s
&@builddir@
&$ac_builddir&;t t
11588 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11589 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11590 s
&@INSTALL@
&$ac_INSTALL&;t t
11591 $ac_datarootdir_hack
11592 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
11594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11597 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11598 which seems to be undefined. Please make sure it is defined." >&5
11599 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11600 which seems to be undefined. Please make sure it is defined." >&2;}
11604 -) cat "$tmp/out"; rm -f "$tmp/out";;
11605 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11614 # Transform confdefs.h into a sed script `conftest.defines', that
11615 # substitutes the proper values into config.h.in to produce config.h.
11616 rm -f conftest.defines conftest.
tail
11617 # First, append a space to every undef/define line, to ease matching.
11618 echo 's/$/ /' >conftest.defines
11619 # Then, protect against being on the right side of a sed subst, or in
11620 # an unquoted here document, in config.status. If some macros were
11621 # called several times there might be several #defines for the same
11622 # symbol, which is useless. But do not sort them, since the last
11623 # AC_DEFINE must be honored.
11624 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11625 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11626 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11627 # PARAMS is the parameter list in the macro definition--in most cases, it's
11628 # just an empty string.
11629 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11630 ac_dB
='\\)[ (].*,\\1define\\2'
11638 s/^[ ]*#[ ]*define[ ][ ]*//
11643 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11644 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11645 ' >>conftest.defines
11647 # Remove the space that was appended to ease matching.
11648 # Then replace #undef with comments. This is necessary, for
11649 # example, in the case of _POSIX_SOURCE, which is predefined and required
11650 # on some systems where configure will not decide to define it.
11651 # (The regexp can be short, since the line contains either #define or #undef.)
11653 s,^[ #]*u.*,/* & */,' >>conftest.defines
11655 # Break up conftest.defines:
11656 ac_max_sed_lines
=50
11658 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11659 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11660 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11662 ac_in
='$ac_file_inputs'
11663 ac_out
='"$tmp/out1"'
11664 ac_nxt
='"$tmp/out2"'
11668 # Write a here document:
11669 cat >>$CONFIG_STATUS <<_ACEOF
11670 # First, check the format of the line:
11671 cat >"\$tmp/defines.sed" <<\\CEOF
11672 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11673 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11677 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11679 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11680 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11681 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11682 grep . conftest.
tail >/dev
/null ||
break
11683 rm -f conftest.defines
11684 mv conftest.
tail conftest.defines
11686 rm -f conftest.defines conftest.
tail
11688 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11689 cat >>$CONFIG_STATUS <<\_ACEOF
11690 if test x
"$ac_file" != x-
; then
11691 echo "/* $configure_input */" >"$tmp/config.h"
11692 cat "$ac_result" >>"$tmp/config.h"
11693 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11694 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11695 echo "$as_me: $ac_file is unchanged" >&6;}
11698 mv "$tmp/config.h" $ac_file
11701 echo "/* $configure_input */"
11713 { (exit 0); exit 0; }
11715 chmod +x
$CONFIG_STATUS
11716 ac_clean_files
=$ac_clean_files_save
11719 # configure is writing to config.log, and then calls config.status.
11720 # config.status does its own redirection, appending to config.log.
11721 # Unfortunately, on DOS this fails, as config.log is still kept open
11722 # by configure, so config.status won't be able to write to it; its
11723 # output is simply discarded. So we exec the FD to /dev/null,
11724 # effectively closing config.log, so it can be properly (re)opened and
11725 # appended to by config.status. When coming back to configure, we
11726 # need to make the FD available again.
11727 if test "$no_create" != yes; then
11729 ac_config_status_args
=
11730 test "$silent" = yes &&
11731 ac_config_status_args
="$ac_config_status_args --quiet"
11733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11736 # would make configure fail if this is the last instruction.
11737 $ac_cs_success ||
{ (exit 1); exit 1; }
11741 if test -f .devel
; then