2 # From configure.in Revision: 1.167 .
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
703 ac_precious_vars
='build_alias
714 # Initialize some variables set by options.
716 ac_init_version
=false
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
726 program_transform_name
=s
,x
,x
,
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir
='${exec_prefix}/bin'
741 sbindir
='${exec_prefix}/sbin'
742 libexecdir
='${exec_prefix}/libexec'
743 datarootdir
='${prefix}/share'
744 datadir
='${datarootdir}'
745 sysconfdir
='${prefix}/etc'
746 sharedstatedir
='${prefix}/com'
747 localstatedir
='${prefix}/var'
748 includedir
='${prefix}/include'
749 oldincludedir
='/usr/include'
750 docdir
='${datarootdir}/doc/${PACKAGE}'
751 infodir
='${datarootdir}/info'
756 libdir
='${exec_prefix}/lib'
757 localedir
='${datarootdir}/locale'
758 mandir
='${datarootdir}/man'
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\
$ac_option
772 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 # Accept the important Cygnus configure options, so we can diagnose typos.
778 case $ac_dashdash$ac_option in
782 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
784 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
787 -build |
--build |
--buil |
--bui |
--bu)
788 ac_prev
=build_alias
;;
789 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
790 build_alias
=$ac_optarg ;;
792 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
793 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
794 ac_prev
=cache_file
;;
795 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
796 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
797 cache_file
=$ac_optarg ;;
800 cache_file
=config.cache
;;
802 -datadir |
--datadir |
--datadi |
--datad)
804 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
805 datadir
=$ac_optarg ;;
807 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
808 |
--dataroo |
--dataro |
--datar)
809 ac_prev
=datarootdir
;;
810 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
811 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
812 datarootdir
=$ac_optarg ;;
814 -disable-* |
--disable-*)
815 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
818 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
819 { (exit 1); exit 1; }; }
820 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
821 eval enable_
$ac_feature=no
;;
823 -docdir |
--docdir |
--docdi |
--doc |
--do)
825 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
828 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
830 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
833 -enable-* |
--enable-*)
834 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838 { (exit 1); exit 1; }; }
839 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
840 eval enable_
$ac_feature=\
$ac_optarg ;;
842 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
843 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
844 |
--exec |
--exe |
--ex)
845 ac_prev
=exec_prefix
;;
846 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
847 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
848 |
--exec=* |
--exe=* |
--ex=*)
849 exec_prefix
=$ac_optarg ;;
851 -gas |
--gas |
--ga |
--g)
852 # Obsolete; use --with-gas.
855 -help |
--help |
--hel |
--he |
-h)
857 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
858 ac_init_help
=recursive
;;
859 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
860 ac_init_help
=short
;;
862 -host |
--host |
--hos |
--ho)
863 ac_prev
=host_alias
;;
864 -host=* |
--host=* |
--hos=* |
--ho=*)
865 host_alias
=$ac_optarg ;;
867 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
869 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
871 htmldir
=$ac_optarg ;;
873 -includedir |
--includedir |
--includedi |
--included |
--include \
874 |
--includ |
--inclu |
--incl |
--inc)
875 ac_prev
=includedir
;;
876 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
877 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
878 includedir
=$ac_optarg ;;
880 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
882 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
883 infodir
=$ac_optarg ;;
885 -libdir |
--libdir |
--libdi |
--libd)
887 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
890 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
891 |
--libexe |
--libex |
--libe)
892 ac_prev
=libexecdir
;;
893 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
894 |
--libexe=* |
--libex=* |
--libe=*)
895 libexecdir
=$ac_optarg ;;
897 -localedir |
--localedir |
--localedi |
--localed |
--locale)
899 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
900 localedir
=$ac_optarg ;;
902 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
903 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
904 ac_prev
=localstatedir
;;
905 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
906 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
907 localstatedir
=$ac_optarg ;;
909 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
911 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
915 # Obsolete; use --without-fp.
918 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
919 |
--no-cr |
--no-c |
-n)
922 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
923 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
926 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
927 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
928 |
--oldin |
--oldi |
--old |
--ol |
--o)
929 ac_prev
=oldincludedir
;;
930 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
931 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
932 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
933 oldincludedir
=$ac_optarg ;;
935 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
937 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
940 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
941 |
--program-pre |
--program-pr |
--program-p)
942 ac_prev
=program_prefix
;;
943 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
944 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
945 program_prefix
=$ac_optarg ;;
947 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
948 |
--program-suf |
--program-su |
--program-s)
949 ac_prev
=program_suffix
;;
950 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
951 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
952 program_suffix
=$ac_optarg ;;
954 -program-transform-name |
--program-transform-name \
955 |
--program-transform-nam |
--program-transform-na \
956 |
--program-transform-n |
--program-transform- \
957 |
--program-transform |
--program-transfor \
958 |
--program-transfo |
--program-transf \
959 |
--program-trans |
--program-tran \
960 |
--progr-tra |
--program-tr |
--program-t)
961 ac_prev
=program_transform_name
;;
962 -program-transform-name=* |
--program-transform-name=* \
963 |
--program-transform-nam=* |
--program-transform-na=* \
964 |
--program-transform-n=* |
--program-transform-=* \
965 |
--program-transform=* |
--program-transfor=* \
966 |
--program-transfo=* |
--program-transf=* \
967 |
--program-trans=* |
--program-tran=* \
968 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
969 program_transform_name
=$ac_optarg ;;
971 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
973 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
976 -psdir |
--psdir |
--psdi |
--psd |
--ps)
978 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
981 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
982 |
-silent |
--silent |
--silen |
--sile |
--sil)
985 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
987 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
989 sbindir
=$ac_optarg ;;
991 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
992 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
993 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
995 ac_prev
=sharedstatedir
;;
996 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
997 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
998 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1000 sharedstatedir
=$ac_optarg ;;
1002 -site |
--site |
--sit)
1004 -site=* |
--site=* |
--sit=*)
1007 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1009 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1010 srcdir
=$ac_optarg ;;
1012 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1013 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1014 ac_prev
=sysconfdir
;;
1015 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1016 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1017 sysconfdir
=$ac_optarg ;;
1019 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1020 ac_prev
=target_alias
;;
1021 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1022 target_alias
=$ac_optarg ;;
1024 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1027 -version |
--version |
--versio |
--versi |
--vers |
-V)
1028 ac_init_version
=: ;;
1031 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1034 { echo "$as_me: error: invalid package name: $ac_package" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1037 eval with_
$ac_package=\
$ac_optarg ;;
1039 -without-* |
--without-*)
1040 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1043 { echo "$as_me: error: invalid package name: $ac_package" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1046 eval with_
$ac_package=no
;;
1049 # Obsolete; use --with-x.
1052 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1053 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1054 ac_prev
=x_includes
;;
1055 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1056 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1057 x_includes
=$ac_optarg ;;
1059 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1060 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1061 ac_prev
=x_libraries
;;
1062 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1063 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1064 x_libraries
=$ac_optarg ;;
1066 -*) { echo "$as_me: error: unrecognized option: $ac_option
1067 Try \`$0 --help' for more information." >&2
1068 { (exit 1); exit 1; }; }
1072 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1076 { (exit 1); exit 1; }; }
1077 eval $ac_envvar=\
$ac_optarg
1078 export $ac_envvar ;;
1081 # FIXME: should be removed in autoconf 3.0.
1082 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 if test -n "$ac_prev"; then
1092 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1093 { echo "$as_me: error: missing argument to $ac_option" >&2
1094 { (exit 1); exit 1; }; }
1097 # Be sure to have absolute directory names.
1098 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val
=\$
$ac_var
1105 [\\/$
]* | ?
:[\\/]* ) continue;;
1106 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1108 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1109 { (exit 1); exit 1; }; }
1112 # There might be people who depend on the old broken behavior: `$host'
1113 # used to hold the argument of --host etc.
1114 # FIXME: To remove some day.
1117 target
=$target_alias
1119 # FIXME: To remove some day.
1120 if test "x$host_alias" != x
; then
1121 if test "x$build_alias" = x
; then
1122 cross_compiling
=maybe
1123 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1124 If a cross compiler is detected then cross compile mode will be used." >&2
1125 elif test "x$build_alias" != "x$host_alias"; then
1131 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1133 test "$silent" = yes && exec 6>/dev
/null
1136 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1137 ac_ls_di
=`ls -di .` &&
1138 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1139 { echo "$as_me: error: Working directory cannot be determined" >&2
1140 { (exit 1); exit 1; }; }
1141 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142 { echo "$as_me: error: pwd does not report name of working directory" >&2
1143 { (exit 1); exit 1; }; }
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148 ac_srcdir_defaulted
=yes
1149 # Try the directory containing this script, then the parent directory.
1150 ac_confdir
=`$as_dirname -- "$0" ||
1151 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152 X"$0" : 'X\(//\)[^/]' \| \
1153 X"$0" : 'X\(//\)$' \| \
1154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1178 ac_srcdir_defaulted
=no
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1182 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1183 { (exit 1); exit 1; }; }
1185 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1187 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1188 { (exit 1); exit 1; }; }
1190 # When building in place, set srcdir=.
1191 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 # Remove unnecessary trailing slashes from srcdir.
1195 # Double slashes in file names in object file debugging info
1196 # mess up M-x gdb in Emacs.
1198 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1200 for ac_var
in $ac_precious_vars; do
1201 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1202 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1203 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1204 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1208 # Report the --help message.
1210 if test "$ac_init_help" = "long"; then
1211 # Omit some internal or obsolete options to make the list less imposing.
1212 # This message is too long to be a string in the A/UX 3.1 sh.
1214 \`configure' configures this package to adapt to many kinds of systems.
1216 Usage: $0 [OPTION]... [VAR=VALUE]...
1218 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219 VAR=VALUE. See below for descriptions of some of the useful variables.
1221 Defaults for the options are specified in brackets.
1224 -h, --help display this help and exit
1225 --help=short display options specific to this package
1226 --help=recursive display the short help of all the included packages
1227 -V, --version display version information and exit
1228 -q, --quiet, --silent do not print \`checking...' messages
1229 --cache-file=FILE cache test results in FILE [disabled]
1230 -C, --config-cache alias for \`--cache-file=config.cache'
1231 -n, --no-create do not create output files
1232 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1234 Installation directories:
1235 --prefix=PREFIX install architecture-independent files in PREFIX
1236 [$ac_default_prefix]
1237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 By default, \`make install' will install all the files in
1241 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1242 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243 for instance \`--prefix=\$HOME'.
1245 For better control, use the options below.
1247 Fine tuning of the installation directories:
1248 --bindir=DIR user executables [EPREFIX/bin]
1249 --sbindir=DIR system admin executables [EPREFIX/sbin]
1250 --libexecdir=DIR program executables [EPREFIX/libexec]
1251 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1252 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1253 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1254 --libdir=DIR object code libraries [EPREFIX/lib]
1255 --includedir=DIR C header files [PREFIX/include]
1256 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1257 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1258 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1259 --infodir=DIR info documentation [DATAROOTDIR/info]
1260 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1261 --mandir=DIR man documentation [DATAROOTDIR/man]
1262 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1263 --htmldir=DIR html documentation [DOCDIR]
1264 --dvidir=DIR dvi documentation [DOCDIR]
1265 --pdfdir=DIR pdf documentation [DOCDIR]
1266 --psdir=DIR ps documentation [DOCDIR]
1272 --build=BUILD configure
for building on BUILD
[guessed
]
1273 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1274 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1278 if test -n "$ac_init_help"; then
1283 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1284 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1285 --disable-largefile omit support
for large files
1286 --disable-protochain disable
\"protochain
\" insn
1287 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1288 getaddrinfo available
]
1289 --enable-optimizer-dbg build optimizer debugging code
1290 --enable-yydebug build parser debugging code
1291 --enable-bluetooth enable bluetooth support
[default
=yes, if support
1295 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1296 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1297 --without-gcc don
't use gcc
1298 --with-sita include SITA support
1299 --with-pcap=TYPE use packet capture TYPE
1300 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1301 default="yes" on BSD and Linux if present]
1302 --with-dag-includes=DIR Endace DAG include directory
1303 --with-dag-libraries=DIR
1304 Endace DAG library directory
1305 --with-septel[=DIR] include Septel support (located in directory DIR, if
1306 supplied). [default=yes, on Linux, if present]
1307 --without-flex don't use flex
1308 --without-bison don
't use bison
1310 Some influential environment variables:
1311 CC C compiler command
1312 CFLAGS C compiler flags
1313 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1314 nonstandard directory <lib dir>
1315 LIBS libraries to pass to the linker, e.g. -l<library>
1316 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317 you have headers in a nonstandard directory <include dir>
1320 Use these variables to override the choices made by `configure' or to
help
1321 it to
find libraries and programs with nonstandard names
/locations.
1327 if test "$ac_init_help" = "recursive"; then
1328 # If there are subdirs, report their specific --help.
1329 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1330 test -d "$ac_dir" ||
continue
1334 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1336 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1337 # A ".." for each directory in $ac_dir_suffix.
1338 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1339 case $ac_top_builddir_sub in
1340 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1341 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1344 ac_abs_top_builddir
=$ac_pwd
1345 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1346 # for backward compatibility:
1347 ac_top_builddir
=$ac_top_build_prefix
1350 .
) # We are building in place.
1352 ac_top_srcdir
=$ac_top_builddir_sub
1353 ac_abs_top_srcdir
=$ac_pwd ;;
1354 [\\/]* | ?
:[\\/]* ) # Absolute name.
1355 ac_srcdir
=$srcdir$ac_dir_suffix;
1356 ac_top_srcdir
=$srcdir
1357 ac_abs_top_srcdir
=$srcdir ;;
1359 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1360 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1361 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1363 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1365 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1366 # Check for guested configure.
1367 if test -f "$ac_srcdir/configure.gnu"; then
1369 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1370 elif test -f "$ac_srcdir/configure"; then
1372 $SHELL "$ac_srcdir/configure" --help=recursive
1374 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1380 test -n "$ac_init_help" && exit $ac_status
1381 if $ac_init_version; then
1384 generated by GNU Autoconf
2.61
1386 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1387 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1388 This configure
script is free software
; the Free Software Foundation
1389 gives unlimited permission to copy
, distribute and modify it.
1393 cat >config.log
<<_ACEOF
1394 This file contains any messages produced by compilers while
1395 running configure, to aid debugging if configure makes a mistake.
1397 It was created by $as_me, which was
1398 generated by GNU Autoconf 2.61. Invocation command line was
1410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir
=.
1434 echo "PATH: $as_dir"
1450 # Keep a trace of the command line.
1451 # Strip out --no-create and --no-recursion so they do not pile up.
1452 # Strip out --silent because we don't want to record it for future runs.
1453 # Also quote any args containing shell meta-characters.
1454 # Make two passes to allow for proper duplicate-argument suppression.
1458 ac_must_keep_next
=false
1464 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1466 |
-silent |
--silent |
--silen |
--sile |
--sil)
1469 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1474 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1475 if test $ac_must_keep_next = true
; then
1476 ac_must_keep_next
=false
# Got value, back to normal.
1479 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1480 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1481 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1482 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1483 case "$ac_configure_args0 " in
1484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487 -* ) ac_must_keep_next
=true
;;
1490 ac_configure_args
="$ac_configure_args '$ac_arg'"
1495 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1496 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1498 # When interrupted or exit'd, cleanup temporary files, and complete
1499 # config.log. We remove comments because anyway the quotes in there
1500 # would cause problems or look ugly.
1501 # WARNING: Use '\'' to represent an apostrophe within the trap.
1502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503 trap 'exit_status=$?
1504 # Save into config.log some information that might help in debugging.
1509 ## ---------------- ##
1510 ## Cache variables. ##
1511 ## ---------------- ##
1514 # The following way of writing the cache mishandles newlines in values,
1516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1517 eval ac_val=\$$ac_var
1521 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1522 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1525 _ | IFS | as_nl) ;; #(
1526 *) $as_unset $ac_var ;;
1531 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532 *${as_nl}ac_space=\ *)
1534 "s/'\''/'\''\\\\'\'''\''/g;
1535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1546 ## ----------------- ##
1547 ## Output variables. ##
1548 ## ----------------- ##
1551 for ac_var in $ac_subst_vars
1553 eval ac_val=\$$ac_var
1555 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557 echo "$ac_var='\''$ac_val'\''"
1561 if test -n "$ac_subst_files"; then
1563 ## ------------------- ##
1564 ## File substitutions. ##
1565 ## ------------------- ##
1568 for ac_var
in $ac_subst_files
1570 eval ac_val
=\$
$ac_var
1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 echo "$ac_var='\''$ac_val'\''"
1579 if test -s confdefs.h; then
1589 test "$ac_signal" != 0 &&
1590 echo "$as_me: caught signal $ac_signal"
1591 echo "$as_me: exit $exit_status"
1593 rm -f core *.core core.conftest.* &&
1594 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1597 for ac_signal
in 1 2 13 15; do
1598 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1603 rm -f -r conftest
* confdefs.h
1605 # Predefined preprocessor variables.
1607 cat >>confdefs.h
<<_ACEOF
1608 #define PACKAGE_NAME "$PACKAGE_NAME"
1612 cat >>confdefs.h
<<_ACEOF
1613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1617 cat >>confdefs.h
<<_ACEOF
1618 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1622 cat >>confdefs.h
<<_ACEOF
1623 #define PACKAGE_STRING "$PACKAGE_STRING"
1627 cat >>confdefs.h
<<_ACEOF
1628 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1632 # Let the site file select an alternate cache file if it wants to.
1633 # Prefer explicitly selected file to automatically selected ones.
1634 if test -n "$CONFIG_SITE"; then
1635 set x
"$CONFIG_SITE"
1636 elif test "x$prefix" != xNONE
; then
1637 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1639 set x
"$ac_default_prefix/share/config.site" \
1640 "$ac_default_prefix/etc/config.site"
1645 if test -r "$ac_site_file"; then
1646 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1647 echo "$as_me: loading site script $ac_site_file" >&6;}
1648 sed 's/^/| /' "$ac_site_file" >&5
1653 if test -r "$cache_file"; then
1654 # Some versions of bash will fail to source /dev/null (special
1655 # files actually), so we avoid doing that.
1656 if test -f "$cache_file"; then
1657 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1658 echo "$as_me: loading cache $cache_file" >&6;}
1660 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1661 *) .
"./$cache_file";;
1665 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1666 echo "$as_me: creating cache $cache_file" >&6;}
1670 # Check that the precious variables saved in the cache have kept the same
1672 ac_cache_corrupted
=false
1673 for ac_var
in $ac_precious_vars; do
1674 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1675 eval ac_new_set
=\
$ac_env_${ac_var}_set
1676 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1677 eval ac_new_val
=\
$ac_env_${ac_var}_value
1678 case $ac_old_set,$ac_new_set in
1680 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1681 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1682 ac_cache_corrupted
=: ;;
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1686 ac_cache_corrupted
=: ;;
1689 if test "x$ac_old_val" != "x$ac_new_val"; then
1690 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1691 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1692 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1693 echo "$as_me: former value: $ac_old_val" >&2;}
1694 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1695 echo "$as_me: current value: $ac_new_val" >&2;}
1696 ac_cache_corrupted
=:
1699 # Pass precious variables to config.status.
1700 if test "$ac_new_set" = set; then
1702 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 *) ac_arg
=$ac_var=$ac_new_val ;;
1705 case " $ac_configure_args " in
1706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1707 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1711 if $ac_cache_corrupted; then
1712 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1713 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1714 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1715 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1716 { (exit 1); exit 1; }; }
1736 ac_cpp
='$CPP $CPPFLAGS'
1737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1744 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1745 if test -f "$ac_dir/install-sh"; then
1747 ac_install_sh
="$ac_aux_dir/install-sh -c"
1749 elif test -f "$ac_dir/install.sh"; then
1751 ac_install_sh
="$ac_aux_dir/install.sh -c"
1753 elif test -f "$ac_dir/shtool"; then
1755 ac_install_sh
="$ac_aux_dir/shtool install -c"
1759 if test -z "$ac_aux_dir"; then
1760 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1761 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1762 { (exit 1); exit 1; }; }
1765 # These three variables are undocumented and unsupported,
1766 # and are intended to be withdrawn in a future Autoconf release.
1767 # They can cause serious problems if a builder's source tree is in a directory
1768 # whose full name contains unusual characters.
1769 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1770 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1771 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1774 # Make sure we can run config.sub.
1775 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1776 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1777 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1778 { (exit 1); exit 1; }; }
1780 { echo "$as_me:$LINENO: checking build system type" >&5
1781 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1782 if test "${ac_cv_build+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 ac_build_alias
=$build_alias
1786 test "x$ac_build_alias" = x
&&
1787 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1788 test "x$ac_build_alias" = x
&&
1789 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1790 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1791 { (exit 1); exit 1; }; }
1792 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1793 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1794 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1795 { (exit 1); exit 1; }; }
1798 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1799 echo "${ECHO_T}$ac_cv_build" >&6; }
1800 case $ac_cv_build in
1802 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1803 echo "$as_me: error: invalid value of canonical build" >&2;}
1804 { (exit 1); exit 1; }; };;
1807 ac_save_IFS
=$IFS; IFS
='-'
1813 # Remember, the first character of IFS is used to create $*,
1814 # except with old shells:
1817 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1820 { echo "$as_me:$LINENO: checking host system type" >&5
1821 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1822 if test "${ac_cv_host+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test "x$host_alias" = x
; then
1826 ac_cv_host
=$ac_cv_build
1828 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1829 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1830 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1831 { (exit 1); exit 1; }; }
1835 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1836 echo "${ECHO_T}$ac_cv_host" >&6; }
1839 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1840 echo "$as_me: error: invalid value of canonical host" >&2;}
1841 { (exit 1); exit 1; }; };;
1844 ac_save_IFS
=$IFS; IFS
='-'
1850 # Remember, the first character of IFS is used to create $*,
1851 # except with old shells:
1854 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1857 { echo "$as_me:$LINENO: checking target system type" >&5
1858 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1859 if test "${ac_cv_target+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test "x$target_alias" = x
; then
1863 ac_cv_target
=$ac_cv_host
1865 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1866 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1867 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1868 { (exit 1); exit 1; }; }
1872 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1873 echo "${ECHO_T}$ac_cv_target" >&6; }
1874 case $ac_cv_target in
1876 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1877 echo "$as_me: error: invalid value of canonical target" >&2;}
1878 { (exit 1); exit 1; }; };;
1880 target
=$ac_cv_target
1881 ac_save_IFS
=$IFS; IFS
='-'
1887 # Remember, the first character of IFS is used to create $*,
1888 # except with old shells:
1891 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1894 # The aliases save the names the user supplied, while $host etc.
1895 # will get canonicalized.
1896 test -n "$target_alias" &&
1897 test "$program_prefix$program_suffix$program_transform_name" = \
1899 program_prefix
=${target_alias}-
1906 # Check whether --with-gcc was given.
1907 if test "${with_gcc+set}" = set; then
1913 if test "${srcdir}" != "." ; then
1914 V_INCLS
="-I\$(srcdir)"
1916 if test "${CFLAGS+set}" = set; then
1917 LBL_CFLAGS
="$CFLAGS"
1919 if test -z "$CC" ; then
1923 # Extract the first word of "shlicc2", so it can be a program name with args.
1924 set dummy shlicc2
; ac_word
=$2
1925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1927 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$SHLICC2"; then
1931 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir
=.
1938 for ac_exec_ext
in '' $ac_executable_extensions; do
1939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1940 ac_cv_prog_SHLICC2
="yes"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1951 SHLICC2
=$ac_cv_prog_SHLICC2
1952 if test -n "$SHLICC2"; then
1953 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1954 echo "${ECHO_T}$SHLICC2" >&6; }
1956 { echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6; }
1961 if test $SHLICC2 = yes ; then
1968 if test -z "$CC" -a "$with_gcc" = no
; then
1973 ac_cpp
='$CPP $CPPFLAGS'
1974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1977 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1979 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC
="$CC" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 for ac_exec_ext
in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2016 if test -z "$ac_cv_prog_CC"; then
2018 # Extract the first word of "gcc", so it can be a program name with args.
2019 set dummy gcc
; ac_word
=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir
=.
2033 for ac_exec_ext
in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC
="gcc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
2050 { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2054 if test "x$ac_ct_CC" = x
; then
2057 case $cross_compiling:$ac_tool_warned in
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet. If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned
=yes ;;
2073 if test -z "$CC"; then
2074 if test -n "$ac_tool_prefix"; then
2075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2076 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC
="$CC" # Let the user override the test.
2085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir
=.
2090 for ac_exec_ext
in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test -n "$CC"; then
2104 { echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2114 if test -z "$CC"; then
2115 # Extract the first word of "cc", so it can be a program name with args.
2116 set dummy cc
; ac_word
=$2
2117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC
="$CC" # Let the user override the test.
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2134 ac_prog_rejected
=yes
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 if test $ac_prog_rejected = yes; then
2146 # We found a bogon in the path, so make sure we never use it.
2147 set dummy
$ac_cv_prog_CC
2149 if test $# != 0; then
2150 # We chose a different compiler from the bogus one.
2151 # However, it has the same basename, so the bogon will be chosen
2152 # first if we set CC to just the basename; use the full file name.
2154 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2160 if test -n "$CC"; then
2161 { echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6; }
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2170 if test -z "$CC"; then
2171 if test -n "$ac_tool_prefix"; then
2172 for ac_prog
in cl.exe
2174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2175 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC
="$CC" # Let the user override the test.
2184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir
=.
2189 for ac_exec_ext
in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 if test -n "$CC"; then
2203 { echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6; }
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2211 test -n "$CC" && break
2214 if test -z "$CC"; then
2216 for ac_prog
in cl.exe
2218 # Extract the first word of "$ac_prog", so it can be a program name with args.
2219 set dummy
$ac_prog; ac_word
=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$ac_ct_CC"; then
2226 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir
=.
2233 for ac_exec_ext
in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_ac_ct_CC
="$ac_prog"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2246 if test -n "$ac_ct_CC"; then
2247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248 echo "${ECHO_T}$ac_ct_CC" >&6; }
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2255 test -n "$ac_ct_CC" && break
2258 if test "x$ac_ct_CC" = x
; then
2261 case $cross_compiling:$ac_tool_warned in
2263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2264 whose name does not start with the host triplet. If you think this
2265 configuration is useful to you, please write to autoconf@gnu.org." >&5
2266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2267 whose name does not start with the host triplet. If you think this
2268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2269 ac_tool_warned
=yes ;;
2278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: no acceptable C compiler found in \$PATH
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2284 # Provide some information about the compiler.
2285 echo "$as_me:$LINENO: checking for C compiler version" >&5
2286 ac_compiler
=`set X $ac_compile; echo $2`
2287 { (ac_try
="$ac_compiler --version >&5"
2289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compiler --version >&5") 2>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }
2297 { (ac_try="$ac_compiler -v >&5"
2299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2300 *) ac_try_echo
=$ac_try;;
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_compiler -v >&5") 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307 { (ac_try
="$ac_compiler -V >&5"
2309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313 (eval "$ac_compiler -V >&5") 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2318 cat >conftest.$ac_ext <<_ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2333 ac_clean_files_save=$ac_clean_files
2334 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2335 # Try to create an executable without -o first, disregard a.out.
2336 # It will help us diagnose broken compilers, and finding out an intuition
2338 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2339 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2340 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2342 # List of possible output files, starting from the most likely.
2343 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2344 # only as a last resort. b.out is created by i960 compilers.
2345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2347 # The IRIX 6 linker writes into existing files which may not be
2348 # executable, retaining their permissions. Remove them first so a
2349 # subsequent execution test works.
2351 for ac_file in $ac_files
2354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2360 if { (ac_try="$ac_link_default"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link_default") 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2373 # so that the user can short-circuit this test for compilers unknown to
2375 for ac_file
in $ac_files ''
2377 test -f "$ac_file" ||
continue
2379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2382 # We found the default executable, but exeext='' is most
2386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2388 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390 # We set ac_cv_exeext here because the later test for it is not
2391 # safe: cross compilers may not add the suffix if given an `-o'
2392 # argument, so we may need to know it at that point already.
2393 # Even if this section looks crufty: it has the advantage of
2400 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2406 { echo "$as_me:$LINENO: result: $ac_file" >&5
2407 echo "${ECHO_T}$ac_file" >&6; }
2408 if test -z "$ac_file"; then
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.
$ac_ext >&5
2412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&2;}
2416 { (exit 77); exit 77; }; }
2419 ac_exeext
=$ac_cv_exeext
2421 # Check that the compiler produces executables we can run. If not, either
2422 # the compiler is broken, or we cross compile.
2423 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426 # If not cross compiling, check that we can run a simple program.
2427 if test "$cross_compiling" != yes; then
2428 if { ac_try
='./$ac_file'
2429 { (case "(($ac_try" in
2430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_try") 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2440 if test "$cross_compiling" = maybe; then
2443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details.
" >&5
2446 echo "$as_me: error
: cannot run C compiled programs.
2447 If you meant to cross compile
, use \
`--host'.
2448 See \`config.log
' for more details." >&2;}
2449 { (exit 1); exit 1; }; }
2453 { echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6; }
2456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 # Check that the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2462 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463 echo "${ECHO_T}$cross_compiling" >&6; }
2465 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2467 if { (ac_try="$ac_link"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_link") 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; then
2477 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2478 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2479 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2481 for ac_file
in conftest.exe conftest conftest.
*; do
2482 test -f "$ac_file" ||
continue
2484 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2485 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2491 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2494 See \`config.log' for more details." >&2;}
2495 { (exit 1); exit 1; }; }
2498 rm -f conftest
$ac_cv_exeext
2499 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2500 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2502 rm -f conftest.
$ac_ext
2503 EXEEXT
=$ac_cv_exeext
2505 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2506 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2507 if test "${ac_cv_objext+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.
$ac_ext <<_ACEOF
2513 cat confdefs.h
>>conftest.
$ac_ext
2514 cat >>conftest.
$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.o conftest.obj
2526 if { (ac_try
="$ac_compile"
2528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_compile") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 for ac_file in conftest.o conftest.obj conftest.*; do
2537 test -f "$ac_file" || continue;
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2549 See \`config.log
' for more details." >&5
2550 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2551 See \`config.log' for more details.
" >&2;}
2552 { (exit 1); exit 1; }; }
2555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2557 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2558 echo "${ECHO_T}$ac_cv_objext" >&6; }
2559 OBJEXT=$ac_cv_objext
2561 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2562 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2563 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2564 echo $ECHO_N "(cached
) $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2597 (exit $ac_status); } && {
2598 test -z "$ac_c_werror_flag" ||
2599 test ! -s conftest.err
2600 } && test -s conftest.$ac_objext; then
2603 echo "$as_me: failed program was
:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2613 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2614 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2615 GCC=`test $ac_compiler_gnu = yes && echo yes`
2616 ac_test_CFLAGS=${CFLAGS+set}
2617 ac_save_CFLAGS=$CFLAGS
2618 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2619 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2620 if test "${ac_cv_prog_cc_g+set}" = set; then
2621 echo $ECHO_N "(cached
) $ECHO_C" >&6
2623 ac_save_c_werror_flag=$ac_c_werror_flag
2624 ac_c_werror_flag=yes
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.$ac_objext; then
2661 echo "$as_me: failed program was
:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (ac_try="$ac_compile"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2689 grep -v '^ *+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2699 echo "$as_me: failed program was
:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2702 ac_c_werror_flag=$ac_save_c_werror_flag
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2719 rm -f conftest.$ac_objext
2720 if { (ac_try="$ac_compile"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compile") 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2732 (exit $ac_status); } && {
2733 test -z "$ac_c_werror_flag" ||
2734 test ! -s conftest.err
2735 } && test -s conftest.$ac_objext; then
2738 echo "$as_me: failed program was
:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2753 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2755 if test "$ac_test_CFLAGS" = set; then
2756 CFLAGS=$ac_save_CFLAGS
2757 elif test $ac_cv_prog_cc_g = yes; then
2758 if test "$GCC" = yes; then
2764 if test "$GCC" = yes; then
2770 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2771 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2772 if test "${ac_cv_prog_cc_c89+set}" = set; then
2773 echo $ECHO_N "(cached
) $ECHO_C" >&6
2775 ac_cv_prog_cc_c89=no
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2785 #include <sys/types.h>
2786 #include <sys/stat.h>
2787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2788 struct buf { int x; };
2789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2790 static char *e (p, i)
2796 static char *f (char * (*g) (char **, int), char **p, ...)
2801 s = g (p, va_arg (v,int));
2806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2807 function prototypes and stuff, but not '\xHH' hex character constants.
2808 These don't provoke an error unfortunately, instead are silently treated
2809 as 'x'. The following induces an error, until -std is added to get
2810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2811 array size at least. It's necessary to write '\x00'==0 to get something
2812 that's true only with -std. */
2813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2816 inside strings and character constants. */
2818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2820 int test (int i, double x);
2821 struct s1 {int (*f) (int a);};
2822 struct s2 {int (*f) (double a);};
2823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2837 CC="$ac_save_CC $ac_arg"
2838 rm -f conftest.$ac_objext
2839 if { (ac_try="$ac_compile"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compile") 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
2855 ac_cv_prog_cc_c89=$ac_arg
2857 echo "$as_me: failed program was
:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f core conftest.err conftest.$ac_objext
2864 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2866 rm -f conftest.$ac_ext
2871 case "x
$ac_cv_prog_cc_c89" in
2873 { echo "$as_me:$LINENO: result
: none needed
" >&5
2874 echo "${ECHO_T}none needed
" >&6; } ;;
2876 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2877 echo "${ECHO_T}unsupported
" >&6; } ;;
2879 CC="$CC $ac_cv_prog_cc_c89"
2880 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test "$GCC" = yes ; then
2892 if test "$SHLICC2" = yes ; then
2893 ac_cv_lbl_gcc_vers=2
2896 { echo "$as_me:$LINENO: checking gcc version
" >&5
2897 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2898 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2899 echo $ECHO_N "(cached
) $ECHO_C" >&6
2901 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2902 sed -e '/^gcc version /!d' \
2903 -e 's/^gcc version //' \
2904 -e 's/ .*//' -e 's/^[^0-9]*//' \
2908 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2909 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2910 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2915 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2916 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2917 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2918 echo $ECHO_N "(cached
) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <sys/types.h>
2931 int frob(int, char *)
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2953 ac_cv_lbl_cc_ansi_prototypes=yes
2955 echo "$as_me: failed program was
:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_cv_lbl_cc_ansi_prototypes=no
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2965 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2966 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2970 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2971 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2972 savedcflags="$CFLAGS"
2973 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2974 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2975 echo $ECHO_N "(cached
) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <sys/types.h>
2987 int frob(int, char *)
2992 rm -f conftest.$ac_objext
2993 if { (ac_try="$ac_compile"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3005 (exit $ac_status); } && {
3006 test -z "$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 } && test -s conftest.$ac_objext; then
3009 ac_cv_lbl_cc_hpux_cc_aa=yes
3011 echo "$as_me: failed program was
:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 ac_cv_lbl_cc_hpux_cc_aa=no
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3021 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3022 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3023 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3024 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3025 { (exit 1); exit 1; }; }
3027 CFLAGS="$savedcflags"
3028 V_CCOPT="-Aa $V_CCOPT"
3030 cat >>confdefs.h <<\_ACEOF
3031 #define _HPUX_SOURCE 1
3037 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3038 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3039 { (exit 1); exit 1; }; }
3043 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3044 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3049 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3053 V_CCOPT="$V_CCOPT -std1 -g3"
3057 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3058 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3059 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3060 echo $ECHO_N "(cached
) $ECHO_C" >&6
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <sys/types.h>
3072 struct a { int b; };
3073 void c(const struct a *)
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3095 ac_cv_lbl_cc_const_proto=yes
3097 echo "$as_me: failed program was
:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 ac_cv_lbl_cc_const_proto=no
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3107 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3108 if test $ac_cv_lbl_cc_const_proto = no ; then
3109 cat >>confdefs.h <<\_ACEOF
3118 { echo "$as_me:$LINENO: checking
for inline
" >&5
3119 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3120 save_CFLAGS="$CFLAGS"
3122 if test "${ac_cv_lbl_inline+set}" = set; then
3123 echo $ECHO_N "(cached
) $ECHO_C" >&6
3128 for ac_lbl_inline in inline __inline__ __inline
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #define inline $ac_lbl_inline
3137 static inline struct iltest *foo(void);
3143 static inline struct iltest *
3146 static struct iltest xxx;
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_lbl_cc_inline=yes
3177 echo "$as_me: failed program was
:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 if test "$ac_lbl_cc_inline" = yes ; then
3188 if test "$ac_lbl_cc_inline" = yes ; then
3189 ac_cv_lbl_inline=$ac_lbl_inline
3193 CFLAGS="$save_CFLAGS"
3194 if test ! -z "$ac_cv_lbl_inline" ; then
3195 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3196 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3198 { echo "$as_me:$LINENO: result
: no
" >&5
3199 echo "${ECHO_T}no
" >&6; }
3202 cat >>confdefs.h <<_ACEOF
3203 #define inline $ac_cv_lbl_inline
3207 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3208 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3209 if test "${ac_cv___attribute__+set}" = set; then
3210 echo $ECHO_N "(cached
) $ECHO_C" >&6
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3222 static void foo(void) __attribute__ ((noreturn));
3231 main(int argc, char **argv)
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 ac_cv___attribute__=yes
3256 echo "$as_me: failed program was
:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_cv___attribute__=no
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 if test "$ac_cv___attribute__" = "yes"; then
3267 cat >>confdefs.h <<\_ACEOF
3268 #define HAVE___ATTRIBUTE__ 1
3271 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3273 V_DEFS="$V_DEFS -D_U_=\"\""
3275 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3276 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3279 { echo "$as_me:$LINENO: checking
for u_int8_t using
$CC" >&5
3280 echo $ECHO_N "checking
for u_int8_t using
$CC...
$ECHO_C" >&6; }
3281 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3282 echo $ECHO_N "(cached
) $ECHO_C" >&6
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3291 # include "confdefs.h
"
3292 # include <sys/types.h>
3294 # include <stdlib.h>
3295 # include <stddef.h>
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_lbl_have_u_int8_t=yes
3324 echo "$as_me: failed program was
:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv_lbl_have_u_int8_t=no
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int8_t" >&5
3334 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3335 if test $ac_cv_lbl_have_u_int8_t = no ; then
3337 cat >>confdefs.h <<\_ACEOF
3338 #define u_int8_t u_char
3342 { echo "$as_me:$LINENO: checking
for u_int16_t using
$CC" >&5
3343 echo $ECHO_N "checking
for u_int16_t using
$CC...
$ECHO_C" >&6; }
3344 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3345 echo $ECHO_N "(cached
) $ECHO_C" >&6
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include "confdefs.h
"
3355 # include <sys/types.h>
3357 # include <stdlib.h>
3358 # include <stddef.h>
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3381 (exit $ac_status); } && {
3382 test -z "$ac_c_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
3385 ac_cv_lbl_have_u_int16_t=yes
3387 echo "$as_me: failed program was
:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 ac_cv_lbl_have_u_int16_t=no
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int16_t" >&5
3397 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3398 if test $ac_cv_lbl_have_u_int16_t = no ; then
3400 cat >>confdefs.h <<\_ACEOF
3401 #define u_int16_t u_short
3405 { echo "$as_me:$LINENO: checking
for u_int32_t using
$CC" >&5
3406 echo $ECHO_N "checking
for u_int32_t using
$CC...
$ECHO_C" >&6; }
3407 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3408 echo $ECHO_N "(cached
) $ECHO_C" >&6
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3417 # include "confdefs.h
"
3418 # include <sys/types.h>
3420 # include <stdlib.h>
3421 # include <stddef.h>
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_cv_lbl_have_u_int32_t=yes
3450 echo "$as_me: failed program was
:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_cv_lbl_have_u_int32_t=no
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int32_t" >&5
3460 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3461 if test $ac_cv_lbl_have_u_int32_t = no ; then
3463 cat >>confdefs.h <<\_ACEOF
3464 #define u_int32_t u_int
3468 { echo "$as_me:$LINENO: checking
for u_int64_t using
$CC" >&5
3469 echo $ECHO_N "checking
for u_int64_t using
$CC...
$ECHO_C" >&6; }
3470 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
3471 echo $ECHO_N "(cached
) $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3480 # include "confdefs.h
"
3481 # include <sys/types.h>
3483 # include <stdlib.h>
3484 # include <stddef.h>
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3507 (exit $ac_status); } && {
3508 test -z "$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 } && test -s conftest.$ac_objext; then
3511 ac_cv_lbl_have_u_int64_t=yes
3513 echo "$as_me: failed program was
:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_lbl_have_u_int64_t=no
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int64_t" >&5
3523 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6; }
3524 if test $ac_cv_lbl_have_u_int64_t = no ; then
3526 cat >>confdefs.h <<\_ACEOF
3527 #define u_int64_t unsigned long long
3533 # Try to arrange for large file support.
3535 # Check whether --enable-largefile was given.
3536 if test "${enable_largefile+set}" = set; then
3537 enableval=$enable_largefile;
3540 if test "$enable_largefile" != no; then
3542 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3543 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3544 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3545 echo $ECHO_N "(cached
) $ECHO_C" >&6
3547 ac_cv_sys_largefile_CC=no
3548 if test "$GCC" != yes; then
3551 # IRIX 6.2 and later do not support large files by default,
3552 # so use the C compiler's -n32 option if that helps.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 /* Check that off_t can represent 2**63 - 1 correctly.
3561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3562 since some C++ compilers masquerading as C compilers
3563 incorrectly reject 9223372036854775807. */
3564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3566 && LARGE_OFF_T % 2147483647 == 1)
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 ac_cv_sys_largefile_CC=' -n32'; break
3622 echo "$as_me: failed program was
:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3628 rm -f core conftest.err conftest.$ac_objext
3632 rm -f conftest.$ac_ext
3635 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3636 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3637 if test "$ac_cv_sys_largefile_CC" != no; then
3638 CC=$CC$ac_cv_sys_largefile_CC
3641 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3642 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3643 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3644 echo $ECHO_N "(cached
) $ECHO_C" >&6
3647 cat >conftest.$ac_ext <<_ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #include <sys/types.h>
3654 /* Check that off_t can represent 2**63 - 1 correctly.
3655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3656 since some C++ compilers masquerading as C compilers
3657 incorrectly reject 9223372036854775807. */
3658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3660 && LARGE_OFF_T % 2147483647 == 1)
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest.$ac_objext; then
3687 ac_cv_sys_file_offset_bits=no; break
3689 echo "$as_me: failed program was
:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #define _FILE_OFFSET_BITS 64
3703 #include <sys/types.h>
3704 /* Check that off_t can represent 2**63 - 1 correctly.
3705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3706 since some C++ compilers masquerading as C compilers
3707 incorrectly reject 9223372036854775807. */
3708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3710 && LARGE_OFF_T % 2147483647 == 1)
3720 rm -f conftest.$ac_objext
3721 if { (ac_try="$ac_compile"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3729 grep -v '^ *+' conftest.er1 >conftest.err
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3737 ac_cv_sys_file_offset_bits=64; break
3739 echo "$as_me: failed program was
:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_sys_file_offset_bits=unknown
3750 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3751 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3752 case $ac_cv_sys_file_offset_bits in #(
3755 cat >>confdefs.h <<_ACEOF
3756 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3761 if test $ac_cv_sys_file_offset_bits = unknown; then
3762 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3763 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3764 if test "${ac_cv_sys_large_files+set}" = set; then
3765 echo $ECHO_N "(cached
) $ECHO_C" >&6
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777 since some C++ compilers masquerading as C compilers
3778 incorrectly reject 9223372036854775807. */
3779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781 && LARGE_OFF_T % 2147483647 == 1)
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3808 ac_cv_sys_large_files=no; break
3810 echo "$as_me: failed program was
:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #define _LARGE_FILES 1
3824 #include <sys/types.h>
3825 /* Check that off_t can represent 2**63 - 1 correctly.
3826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3827 since some C++ compilers masquerading as C compilers
3828 incorrectly reject 9223372036854775807. */
3829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3831 && LARGE_OFF_T % 2147483647 == 1)
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3858 ac_cv_sys_large_files=1; break
3860 echo "$as_me: failed program was
:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_cv_sys_large_files=unknown
3871 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3872 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3873 case $ac_cv_sys_large_files in #(
3876 cat >>confdefs.h <<_ACEOF
3877 #define _LARGE_FILES $ac_cv_sys_large_files
3885 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
3886 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
3887 if test "${ac_cv_sys_largefile_source+set}" = set; then
3888 echo $ECHO_N "(cached
) $ECHO_C" >&6
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3901 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3906 rm -f conftest.$ac_objext conftest$ac_exeext
3907 if { (ac_try="$ac_link"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_link") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest$ac_exeext &&
3923 $as_test_x conftest$ac_exeext; then
3924 ac_cv_sys_largefile_source=no; break
3926 echo "$as_me: failed program was
:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933 conftest$ac_exeext conftest.$ac_ext
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #define _LARGEFILE_SOURCE 1
3945 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_link") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest$ac_exeext &&
3967 $as_test_x conftest$ac_exeext; then
3968 ac_cv_sys_largefile_source=1; break
3970 echo "$as_me: failed program was
:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977 conftest$ac_exeext conftest.$ac_ext
3978 ac_cv_sys_largefile_source=unknown
3982 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
3983 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
3984 case $ac_cv_sys_largefile_source in #(
3987 cat >>confdefs.h <<_ACEOF
3988 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3994 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3995 # in glibc 2.1.3, but that breaks too many other things.
3996 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3997 if test $ac_cv_sys_largefile_source != unknown; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define HAVE_FSEEKO 1
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4012 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4013 # On Suns, sometimes $CPP names a directory.
4014 if test -n "$CPP" && test -d "$CPP"; then
4017 if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached
) $ECHO_C" >&6
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4025 for ac_c_preproc_warn_flag in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error
" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4040 # include <limits.h>
4042 # include <assert.h>
4046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4058 (exit $ac_status); } >/dev/null && {
4059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4064 echo "$as_me: failed program was
:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 # Broken: fails on valid input.
4071 rm -f conftest.err conftest.$ac_ext
4073 # OK, works on sane cases. Now check whether nonexistent headers
4074 # can be detected and how.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4083 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4095 (exit $ac_status); } >/dev/null && {
4096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4099 # Broken: success on invalid input.
4102 echo "$as_me: failed program was
:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 # Passes both tests.
4110 rm -f conftest.err conftest.$ac_ext
4113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114 rm -f conftest.err conftest.$ac_ext
4115 if $ac_preproc_ok; then
4127 { echo "$as_me:$LINENO: result
: $CPP" >&5
4128 echo "${ECHO_T}$CPP" >&6; }
4130 for ac_c_preproc_warn_flag in '' yes
4132 # Use a header file that comes with gcc, so configuring glibc
4133 # with a fresh cross-compiler works.
4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 # <limits.h> exists even on freestanding compilers.
4136 # On the NeXT, cc -E runs the code through the compiler's parser,
4137 # not just through cpp. "Syntax error
" is here to catch this case.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4145 # include <limits.h>
4147 # include <assert.h>
4151 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4163 (exit $ac_status); } >/dev/null && {
4164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4169 echo "$as_me: failed program was
:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 # Broken: fails on valid input.
4176 rm -f conftest.err conftest.$ac_ext
4178 # OK, works on sane cases. Now check whether nonexistent headers
4179 # can be detected and how.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4188 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4200 (exit $ac_status); } >/dev/null && {
4201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4204 # Broken: success on invalid input.
4207 echo "$as_me: failed program was
:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 # Passes both tests.
4215 rm -f conftest.err conftest.$ac_ext
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then
4223 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4224 See \
`config.log' for more details." >&5
4225 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log
' for more details." >&2;}
4227 { (exit 1); exit 1; }; }
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4233 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4238 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4239 if test "${ac_cv_path_GREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 # Extract the first word of "grep ggrep" to use in msg output
4243 if test -z "$GREP"; then
4244 set dummy grep ggrep; ac_prog_name=$2
4245 if test "${ac_cv_path_GREP+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_path_GREP_found=false
4249 # Loop through the user's path and
test for each of PROGNAME-LIST
4250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4251 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4254 test -z "$as_dir" && as_dir
=.
4255 for ac_prog
in grep ggrep
; do
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4258 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4259 # Check for GNU ac_path_GREP and select it if it is found.
4260 # Check for GNU $ac_path_GREP
4261 case `"$ac_path_GREP" --version 2>&1` in
4263 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4266 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 echo 'GREP' >> "conftest.nl"
4273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4274 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4275 ac_count
=`expr $ac_count + 1`
4276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_GREP
="$ac_path_GREP"
4279 ac_path_GREP_max
=$ac_count
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4284 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4288 $ac_path_GREP_found && break 3
4298 GREP
="$ac_cv_path_GREP"
4299 if test -z "$GREP"; then
4300 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4301 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4302 { (exit 1); exit 1; }; }
4306 ac_cv_path_GREP
=$GREP
4311 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4312 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4313 GREP
="$ac_cv_path_GREP"
4316 { echo "$as_me:$LINENO: checking for egrep" >&5
4317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4318 if test "${ac_cv_path_EGREP+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4322 then ac_cv_path_EGREP
="$GREP -E"
4324 # Extract the first word of "egrep" to use in msg output
4325 if test -z "$EGREP"; then
4326 set dummy
egrep; ac_prog_name
=$2
4327 if test "${ac_cv_path_EGREP+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_path_EGREP_found
=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4333 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4336 test -z "$as_dir" && as_dir
=.
4337 for ac_prog
in egrep; do
4338 for ac_exec_ext
in '' $ac_executable_extensions; do
4339 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4340 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4341 # Check for GNU ac_path_EGREP and select it if it is found.
4342 # Check for GNU $ac_path_EGREP
4343 case `"$ac_path_EGREP" --version 2>&1` in
4345 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4348 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 echo 'EGREP' >> "conftest.nl"
4355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4356 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4357 ac_count
=`expr $ac_count + 1`
4358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_EGREP
="$ac_path_EGREP"
4361 ac_path_EGREP_max
=$ac_count
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4366 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4370 $ac_path_EGREP_found && break 3
4380 EGREP
="$ac_cv_path_EGREP"
4381 if test -z "$EGREP"; then
4382 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4383 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4384 { (exit 1); exit 1; }; }
4388 ac_cv_path_EGREP
=$EGREP
4394 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4395 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4396 EGREP
="$ac_cv_path_EGREP"
4399 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4401 if test "${ac_cv_header_stdc+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4423 rm -f conftest.
$ac_objext
4424 if { (ac_try
="$ac_compile"
4426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest.$ac_objext; then
4440 ac_cv_header_stdc=yes
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_cv_header_stdc=no
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 if test $ac_cv_header_stdc = yes; then
4451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "memchr" >/dev/null 2>&1; then
4465 ac_cv_header_stdc=no
4471 if test $ac_cv_header_stdc = yes; then
4472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "free" >/dev/null 2>&1; then
4486 ac_cv_header_stdc=no
4492 if test $ac_cv_header_stdc = yes; then
4493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494 if test "$cross_compiling" = yes; then
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4505 #if ((' ' & 0x0FF) == 0x020)
4506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4509 # define ISLOWER(c) \
4510 (('a' <= (c) && (c) <= 'i') \
4511 || ('j' <= (c) && (c) <= 'r') \
4512 || ('s' <= (c) && (c) <= 'z'))
4513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i))
4523 || toupper (i) != TOUPPER (i))
4528 rm -f conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4532 *) ac_try_echo
=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_link") 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4539 { (case "(($ac_try" in
4540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4550 echo "$as_me: program exited with status $ac_status" >&5
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_cv_header_stdc=no
4557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4565 if test $ac_cv_header_stdc = yes; then
4567 cat >>confdefs.h <<\_ACEOF
4568 #define STDC_HEADERS 1
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584 inttypes.h stdint.h unistd.h
4586 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4600 #include <$ac_header>
4602 rm -f conftest.$ac_objext
4603 if { (ac_try="$ac_compile"
4605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4606 *) ac_try_echo
=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_compile") 2>conftest.er1
4611 grep -v '^ *+' conftest.er1
>conftest.err
4613 cat conftest.err
>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest.
$ac_objext; then
4619 eval "$as_ac_Header=yes"
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4624 eval "$as_ac_Header=no"
4627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4629 ac_res
=`eval echo '${'$as_ac_Header'}'`
4630 { echo "$as_me:$LINENO: result: $ac_res" >&5
4631 echo "${ECHO_T}$ac_res" >&6; }
4632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4633 cat >>confdefs.h
<<_ACEOF
4634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4646 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
4648 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4652 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_res
=`eval echo '${'$as_ac_Header'}'`
4656 { echo "$as_me:$LINENO: result: $ac_res" >&5
4657 echo "${ECHO_T}$ac_res" >&6; }
4659 # Is the header compilable?
4660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4662 cat >conftest.
$ac_ext <<_ACEOF
4665 cat confdefs.h
>>conftest.
$ac_ext
4666 cat >>conftest.
$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4669 #include <$ac_header>
4671 rm -f conftest.
$ac_objext
4672 if { (ac_try
="$ac_compile"
4674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_compile") 2>conftest.er1
4680 grep -v '^ *+' conftest.er1 >conftest.err
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && {
4685 test -z "$ac_c_werror_flag" ||
4686 test ! -s conftest.err
4687 } && test -s conftest.$ac_objext; then
4688 ac_header_compiler=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_header_compiler=no
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4698 echo "${ECHO_T}$ac_header_compiler" >&6; }
4700 # Is the header present?
4701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 #include <$ac_header>
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4714 *) ac_try_echo
=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1
>conftest.err
4721 cat conftest.err
>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev
/null
&& {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4727 ac_header_preproc
=yes
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.
$ac_ext >&5
4732 ac_header_preproc
=no
4735 rm -f conftest.err conftest.
$ac_ext
4736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 echo "${ECHO_T}$ac_header_preproc" >&6; }
4739 # So? What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc
=yes
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4766 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 eval "$as_ac_Header=\$ac_header_preproc"
4771 ac_res
=`eval echo '${'$as_ac_Header'}'`
4772 { echo "$as_me:$LINENO: result: $ac_res" >&5
4773 echo "${ECHO_T}$ac_res" >&6; }
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h
<<_ACEOF
4778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 for ac_header
in net
/pfvar.h
4788 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4791 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 cat >conftest.
$ac_ext <<_ACEOF
4797 cat confdefs.h
>>conftest.
$ac_ext
4798 cat >>conftest.
$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 #include <sys/socket.h>
4804 #include <$ac_header>
4806 rm -f conftest.
$ac_objext
4807 if { (ac_try
="$ac_compile"
4809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_compile") 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && {
4820 test -z "$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 } && test -s conftest.$ac_objext; then
4823 eval "$as_ac_Header=yes"
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 eval "$as_ac_Header=no"
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_res=`eval echo '${'$as_ac_Header'}'`
4834 { echo "$as_me:$LINENO: result: $ac_res" >&5
4835 echo "${ECHO_T}$ac_res" >&6; }
4836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4837 cat >>confdefs.h <<_ACEOF
4838 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4845 if test "$ac_cv_header_net_pfvar_h" = yes; then
4847 # Check for various PF actions.
4849 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4850 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <sys/types.h>
4858 #include <sys/socket.h>
4860 #include <net/pfvar.h>
4864 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4869 rm -f conftest.$ac_objext
4870 if { (ac_try="$ac_compile"
4872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4873 *) ac_try_echo
=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.
$ac_objext; then
4887 { echo "$as_me:$LINENO: result: yes" >&5
4888 echo "${ECHO_T}yes" >&6; }
4890 cat >>confdefs.h
<<\_ACEOF
4891 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 for ac_header
in netinet
/if_ether.h
4908 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4911 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <sys/types.h>
4921 #include <sys/socket.h>
4923 #include <$ac_header>
4925 rm -f conftest.
$ac_objext
4926 if { (ac_try
="$ac_compile"
4928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 eval "$as_ac_Header=yes"
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 eval "$as_ac_Header=no"
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_res=`eval echo '${'$as_ac_Header'}'`
4953 { echo "$as_me:$LINENO: result: $ac_res" >&5
4954 echo "${ECHO_T}$ac_res" >&6; }
4955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4956 cat >>confdefs.h <<_ACEOF
4957 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4964 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4966 # The simple test didn't work.
4967 # Do we need to include <net/if.h> first?
4968 # Unset ac_cv_header_netinet_if_ether_h so we don't
4969 # treat the previous failure as a cached value and
4970 # suppress the next test.
4972 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4973 echo "$as_me: Rechecking with some additional includes" >&6;}
4974 unset ac_cv_header_netinet_if_ether_h
4976 for ac_header in netinet/if_ether.h
4978 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <sys/types.h>
4991 #include <sys/socket.h>
4992 #include <netinet/in.h>
4997 #include <$ac_header>
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5003 *) ac_try_echo
=$ac_try;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1
>conftest.err
5010 cat conftest.err
>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.
$ac_objext; then
5016 eval "$as_ac_Header=yes"
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.
$ac_ext >&5
5021 eval "$as_ac_Header=no"
5024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5026 ac_res
=`eval echo '${'$as_ac_Header'}'`
5027 { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5030 cat >>confdefs.h
<<_ACEOF
5031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040 if test "$GCC" = yes ; then
5041 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5042 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5043 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 cat >conftest.
$ac_ext <<_ACEOF
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5053 * This generates a "duplicate case value" when fixincludes
5056 # include <sys/types.h>
5057 # include <sys/time.h>
5058 # include <sys/ioctl.h>
5059 # ifdef HAVE_SYS_IOCCOM_H
5060 # include <sys/ioccom.h>
5073 rm -f conftest.
$ac_objext
5074 if { (ac_try
="$ac_compile"
5076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 ac_cv_lbl_gcc_fixincludes=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_cv_lbl_gcc_fixincludes=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5102 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5103 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5104 # Don't cache failure
5105 unset ac_cv_lbl_gcc_fixincludes
5106 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5107 echo "$as_me: error: see the INSTALL for more info" >&2;}
5108 { (exit 1); exit 1; }; }
5114 for ac_func in strerror strlcpy
5116 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5130 #define $ac_func innocuous_$ac_func
5132 /* System header to define __stub macros and hopefully few prototypes,
5133 which can conflict with char $ac_func (); below.
5134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 <limits.h> exists even on freestanding compilers. */
5138 # include <limits.h>
5140 # include <assert.h>
5145 /* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5152 /* The GNU C library defines this for functions which it implements
5153 to always fail with ENOSYS. Some functions are actually named
5154 something starting with __ and the normal name is an alias. */
5155 #if defined __stub_$ac_func || defined __stub___$ac_func
5167 rm -f conftest.$ac_objext conftest$ac_exeext
5168 if { (ac_try="$ac_link"
5170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5171 *) ac_try_echo
=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_link") 2>conftest.er1
5176 grep -v '^ *+' conftest.er1
>conftest.err
5178 cat conftest.err
>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && {
5181 test -z "$ac_c_werror_flag" ||
5182 test ! -s conftest.err
5183 } && test -s conftest
$ac_exeext &&
5184 $as_test_x conftest
$ac_exeext; then
5185 eval "$as_ac_var=yes"
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.
$ac_ext >&5
5190 eval "$as_ac_var=no"
5193 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5194 conftest
$ac_exeext conftest.
$ac_ext
5196 ac_res
=`eval echo '${'$as_ac_var'}'`
5197 { echo "$as_me:$LINENO: result: $ac_res" >&5
5198 echo "${ECHO_T}$ac_res" >&6; }
5199 if test `eval echo '${'$as_ac_var'}'` = yes; then
5200 cat >>confdefs.h
<<_ACEOF
5201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5211 for ac_func
in vsnprintf snprintf
5213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5216 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.
$ac_ext <<_ACEOF
5222 cat confdefs.h
>>conftest.
$ac_ext
5223 cat >>conftest.
$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5227 #define $ac_func innocuous_$ac_func
5229 /* System header to define __stub macros and hopefully few prototypes,
5230 which can conflict with char $ac_func (); below.
5231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5232 <limits.h> exists even on freestanding compilers. */
5235 # include <limits.h>
5237 # include <assert.h>
5242 /* Override any GCC internal prototype to avoid an error.
5243 Use char because int might match the return type of a GCC
5244 builtin and then its argument prototype would still apply. */
5249 /* The GNU C library defines this for functions which it implements
5250 to always fail with ENOSYS. Some functions are actually named
5251 something starting with __ and the normal name is an alias. */
5252 #if defined __stub_$ac_func || defined __stub___$ac_func
5264 rm -f conftest.
$ac_objext conftest
$ac_exeext
5265 if { (ac_try
="$ac_link"
5267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest$ac_exeext &&
5281 $as_test_x conftest$ac_exeext; then
5282 eval "$as_ac_var=yes"
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 eval "$as_ac_var=no"
5290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5291 conftest$ac_exeext conftest.$ac_ext
5293 ac_res=`eval echo '${'$as_ac_var'}'`
5294 { echo "$as_me:$LINENO: result: $ac_res" >&5
5295 echo "${ECHO_T}$ac_res" >&6; }
5296 if test `eval echo '${'$as_ac_var'}'` = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5306 if test $needsnprintf = yes; then
5307 case " $LIBOBJS " in
5308 *" snprintf.$ac_objext "* ) ;;
5309 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5316 # Do this before checking for ether_hostton(), as it's a
5317 # "gethostbyname() -ish function".
5320 # Most operating systems have gethostbyname() in the default searched
5321 # libraries (i.e. libc):
5322 # Some OSes (eg. Solaris) place it in libnsl
5323 # Some strange OSes (SINIX) have it in libsocket:
5324 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5325 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5326 if test "${ac_cv_search_gethostbyname+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 ac_func_search_save_LIBS=$LIBS
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5337 /* Override any GCC internal prototype to avoid an error.
5338 Use char because int might match the return type of a GCC
5339 builtin and then its argument prototype would still apply. */
5343 char gethostbyname ();
5347 return gethostbyname ();
5352 for ac_lib in '' nsl socket resolv; do
5353 if test -z "$ac_lib"; then
5354 ac_res="none required"
5357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (ac_try="$ac_link"
5362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5363 *) ac_try_echo
=$ac_try;;
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_link") 2>conftest.er1
5368 grep -v '^ *+' conftest.er1
>conftest.err
5370 cat conftest.err
>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest
$ac_exeext &&
5376 $as_test_x conftest
$ac_exeext; then
5377 ac_cv_search_gethostbyname
=$ac_res
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.
$ac_ext >&5
5385 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5387 if test "${ac_cv_search_gethostbyname+set}" = set; then
5391 if test "${ac_cv_search_gethostbyname+set}" = set; then
5394 ac_cv_search_gethostbyname
=no
5397 LIBS
=$ac_func_search_save_LIBS
5399 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5400 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5401 ac_res
=$ac_cv_search_gethostbyname
5402 if test "$ac_res" != no
; then
5403 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5407 # Unfortunately libsocket sometimes depends on libnsl and
5408 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5409 if test "$ac_cv_search_gethostbyname" = "no"
5411 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5412 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5413 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_check_lib_save_LIBS
=$LIBS
5417 LIBS
="-lsocket -lnsl $LIBS"
5418 cat >conftest.
$ac_ext <<_ACEOF
5421 cat confdefs.h
>>conftest.
$ac_ext
5422 cat >>conftest.
$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5425 /* Override any GCC internal prototype to avoid an error.
5426 Use char because int might match the return type of a GCC
5427 builtin and then its argument prototype would still apply. */
5431 char gethostbyname ();
5435 return gethostbyname ();
5440 rm -f conftest.
$ac_objext conftest
$ac_exeext
5441 if { (ac_try
="$ac_link"
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_link") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_c_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest$ac_exeext &&
5457 $as_test_x conftest$ac_exeext; then
5458 ac_cv_lib_socket_gethostbyname=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_cv_lib_socket_gethostbyname=no
5466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5471 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5472 if test $ac_cv_lib_socket_gethostbyname = yes; then
5473 LIBS="-lsocket -lnsl $LIBS"
5477 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5478 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5479 if test "${ac_cv_search_socket+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_func_search_save_LIBS=$LIBS
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5490 /* Override any GCC internal prototype to avoid an error.
5491 Use char because int might match the return type of a GCC
5492 builtin and then its argument prototype would still apply. */
5505 for ac_lib in '' socket; do
5506 if test -z "$ac_lib"; then
5507 ac_res="none required"
5510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5516 *) ac_try_echo
=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_link") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1
>conftest.err
5523 cat conftest.err
>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest
$ac_exeext &&
5529 $as_test_x conftest
$ac_exeext; then
5530 ac_cv_search_socket
=$ac_res
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.
$ac_ext >&5
5538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5540 if test "${ac_cv_search_socket+set}" = set; then
5544 if test "${ac_cv_search_socket+set}" = set; then
5547 ac_cv_search_socket
=no
5550 LIBS
=$ac_func_search_save_LIBS
5552 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5553 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5554 ac_res
=$ac_cv_search_socket
5555 if test "$ac_res" != no
; then
5556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5559 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5560 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5561 if test "${ac_cv_lib_socket_socket+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_check_lib_save_LIBS
=$LIBS
5565 LIBS
="-lsocket -lnsl $LIBS"
5566 cat >conftest.
$ac_ext <<_ACEOF
5569 cat confdefs.h
>>conftest.
$ac_ext
5570 cat >>conftest.
$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5573 /* Override any GCC internal prototype to avoid an error.
5574 Use char because int might match the return type of a GCC
5575 builtin and then its argument prototype would still apply. */
5588 rm -f conftest.
$ac_objext conftest
$ac_exeext
5589 if { (ac_try
="$ac_link"
5591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_link") 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_c_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest$ac_exeext &&
5605 $as_test_x conftest$ac_exeext; then
5606 ac_cv_lib_socket_socket=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_lib_socket_socket=no
5614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5615 conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5619 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5620 if test $ac_cv_lib_socket_socket = yes; then
5621 LIBS="-lsocket -lnsl $LIBS"
5626 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5627 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5628 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5629 if test "${ac_cv_search_putmsg+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 ac_func_search_save_LIBS=$LIBS
5633 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5640 /* Override any GCC internal prototype to avoid an error.
5641 Use char because int might match the return type of a GCC
5642 builtin and then its argument prototype would still apply. */
5655 for ac_lib in '' str; do
5656 if test -z "$ac_lib"; then
5657 ac_res="none required"
5660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (ac_try="$ac_link"
5665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5666 *) ac_try_echo
=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_link") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1
>conftest.err
5673 cat conftest.err
>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest
$ac_exeext &&
5679 $as_test_x conftest
$ac_exeext; then
5680 ac_cv_search_putmsg
=$ac_res
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.
$ac_ext >&5
5688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5690 if test "${ac_cv_search_putmsg+set}" = set; then
5694 if test "${ac_cv_search_putmsg+set}" = set; then
5697 ac_cv_search_putmsg
=no
5700 LIBS
=$ac_func_search_save_LIBS
5702 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5703 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5704 ac_res
=$ac_cv_search_putmsg
5705 if test "$ac_res" != no
; then
5706 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5713 # You are in a twisty little maze of UN*Xes, all different.
5714 # Some might not have ether_hostton().
5715 # Some might have it, but not declare it in any header file.
5716 # Some might have it, but declare it in <netinet/if_ether.h>.
5717 # Some might have it, but declare it in <netinet/ether.h>
5718 # (And some might have it but document it as something declared in
5719 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5721 # Before you is a C compiler.
5724 for ac_func
in ether_hostton
5726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5729 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 cat >conftest.
$ac_ext <<_ACEOF
5735 cat confdefs.h
>>conftest.
$ac_ext
5736 cat >>conftest.
$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5740 #define $ac_func innocuous_$ac_func
5742 /* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func (); below.
5744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 <limits.h> exists even on freestanding compilers. */
5748 # include <limits.h>
5750 # include <assert.h>
5755 /* Override any GCC internal prototype to avoid an error.
5756 Use char because int might match the return type of a GCC
5757 builtin and then its argument prototype would still apply. */
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined __stub_$ac_func || defined __stub___$ac_func
5777 rm -f conftest.
$ac_objext conftest
$ac_exeext
5778 if { (ac_try
="$ac_link"
5780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_link") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest$ac_exeext &&
5794 $as_test_x conftest$ac_exeext; then
5795 eval "$as_ac_var=yes"
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 eval "$as_ac_var=no"
5803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5804 conftest$ac_exeext conftest.$ac_ext
5806 ac_res=`eval echo '${'$as_ac_var'}'`
5807 { echo "$as_me:$LINENO: result: $ac_res" >&5
5808 echo "${ECHO_T}$ac_res" >&6; }
5809 if test `eval echo '${'$as_ac_var'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5817 if test "$ac_cv_func_ether_hostton" = yes; then
5819 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5821 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5823 # Yes. Does it declare ether_hostton()?
5825 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5826 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5827 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5837 #include <sys/types.h>
5838 #include <sys/socket.h>
5839 #include <netinet/in.h>
5840 #include <arpa/inet.h>
5844 #include <netinet/if_ether.h>
5850 #ifndef ether_hostton
5851 (void) ether_hostton;
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.
$ac_objext; then
5875 ac_cv_have_decl_ether_hostton
=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 ac_cv_have_decl_ether_hostton
=no
5883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5885 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5886 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5887 if test $ac_cv_have_decl_ether_hostton = yes; then
5890 cat >>confdefs.h
<<\_ACEOF
5891 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5901 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5903 # No, how about <netinet/ether.h>, as on Linux?
5906 for ac_header
in netinet
/ether.h
5908 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5912 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 ac_res
=`eval echo '${'$as_ac_Header'}'`
5916 { echo "$as_me:$LINENO: result: $ac_res" >&5
5917 echo "${ECHO_T}$ac_res" >&6; }
5919 # Is the header compilable?
5920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5922 cat >conftest.
$ac_ext <<_ACEOF
5925 cat confdefs.h
>>conftest.
$ac_ext
5926 cat >>conftest.
$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5929 #include <$ac_header>
5931 rm -f conftest.
$ac_objext
5932 if { (ac_try
="$ac_compile"
5934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_compile") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest.$ac_objext; then
5948 ac_header_compiler=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_compiler=no
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5958 echo "${ECHO_T}$ac_header_compiler" >&6; }
5960 # Is the header present?
5961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <$ac_header>
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5974 *) ac_try_echo
=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev
/null
&& {
5984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5987 ac_header_preproc
=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.
$ac_ext >&5
5992 ac_header_preproc
=no
5995 rm -f conftest.err conftest.
$ac_ext
5996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6; }
5999 # So? What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006 ac_header_preproc
=yes
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 eval "$as_ac_Header=\$ac_header_preproc"
6031 ac_res
=`eval echo '${'$as_ac_Header'}'`
6032 { echo "$as_me:$LINENO: result: $ac_res" >&5
6033 echo "${ECHO_T}$ac_res" >&6; }
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 if test "$ac_cv_header_netinet_ether_h" = yes; then
6047 # We have it - does it declare ether_hostton()?
6048 # Unset ac_cv_have_decl_ether_hostton so we don't
6049 # treat the previous failure as a cached value and
6050 # suppress the next test.
6052 unset ac_cv_have_decl_ether_hostton
6053 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6054 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6055 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.
$ac_ext <<_ACEOF
6061 cat confdefs.h
>>conftest.
$ac_ext
6062 cat >>conftest.
$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6065 #include <netinet/ether.h>
6071 #ifndef ether_hostton
6072 (void) ether_hostton;
6079 rm -f conftest.
$ac_objext
6080 if { (ac_try
="$ac_compile"
6082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6088 grep -v '^ *+' conftest.er1 >conftest.err
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_c_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 ac_cv_have_decl_ether_hostton=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_have_decl_ether_hostton=no
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6107 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6108 if test $ac_cv_have_decl_ether_hostton = yes; then
6111 cat >>confdefs.h <<\_ACEOF
6112 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6121 # Is ether_hostton() declared?
6123 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6125 # No, we'll have to declare it ourselves.
6126 # Do we have "struct ether_addr"?
6128 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6129 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6130 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 #include <sys/socket.h>
6142 #include <netinet/in.h>
6143 #include <arpa/inet.h>
6147 #include <netinet/if_ether.h>
6150 typedef struct ether_addr ac__type_new_;
6154 if ((ac__type_new_ *) 0)
6156 if (sizeof (ac__type_new_))
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6166 *) ac_try_echo
=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1
>conftest.err
6173 cat conftest.err
>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.
$ac_objext; then
6179 ac_cv_type_struct_ether_addr
=yes
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6184 ac_cv_type_struct_ether_addr
=no
6187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6189 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6190 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6191 if test $ac_cv_type_struct_ether_addr = yes; then
6193 cat >>confdefs.h
<<_ACEOF
6194 #define HAVE_STRUCT_ETHER_ADDR 1
6201 cat >>confdefs.h
<<\_ACEOF
6202 #define HAVE_DECL_ETHER_HOSTTON 0
6207 cat >>confdefs.h
<<\_ACEOF
6208 #define HAVE_DECL_ETHER_HOSTTON 1
6214 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6215 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6216 # Check whether --enable-protochain was given.
6217 if test "${enable_protochain+set}" = set; then
6218 enableval
=$enable_protochain;
6221 case "x$enable_protochain" in
6222 xyes
) enable_protochain
=enabled
;;
6223 xno
) enable_protochain
=disabled
;;
6224 x
) enable_protochain
=enabled
;;
6227 if test "$enable_protochain" = "disabled"; then
6229 cat >>confdefs.h
<<\_ACEOF
6230 #define NO_PROTOCHAIN 1
6234 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6235 echo "${ECHO_T}${enable_protochain}" >&6; }
6238 # SITA support is mutually exclusive with native capture support;
6239 # "--with-sita" selects SITA support.
6242 # Check whether --with-sita was given.
6243 if test "${with_sita+set}" = set; then
6245 if test ! "x
$withval" = "xno
" ; then
6247 cat >>confdefs.h <<\_ACEOF
6251 { echo "$as_me:$LINENO: Enabling SITA ACN support
" >&5
6252 echo "$as_me: Enabling SITA ACN support
" >&6;}
6259 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6260 { { echo "$as_me:$LINENO: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&5
6261 echo "$as_me: error
: pcap
type not determined when cross-compiling
; use
--with-pcap=...
" >&2;}
6262 { (exit 1); exit 1; }; }
6265 # Check whether --with-pcap was given.
6266 if test "${with_pcap+set}" = set; then
6270 { echo "$as_me:$LINENO: checking packet capture
type" >&5
6271 echo $ECHO_N "checking packet capture
type...
$ECHO_C" >&6; }
6272 if test ! -z "$with_pcap" ; then
6274 elif test -r /dev/bpf ; then
6276 # Cloning BPF device.
6280 cat >>confdefs.h <<\_ACEOF
6281 #define HAVE_CLONING_BPF 1
6284 elif test -r /dev/bpf0 ; then
6286 elif test -r /usr/include/net/pfilt.h ; then
6288 elif test -r /dev/enet ; then
6290 elif test -r /dev/nit ; then
6292 elif test -r /usr/include/sys/net/nit.h ; then
6294 elif test -r /usr/include/linux/socket.h ; then
6296 elif test -r /usr/include/net/raw.h ; then
6298 elif test -r /usr/include/odmi.h ; then
6300 # On AIX, the BPF devices might not yet be present - they're
6301 # created the first time libpcap runs after booting.
6302 # We check for odmi.h instead.
6305 elif test -r /usr/include/sys/dlpi.h ; then
6307 elif test -c /dev/bpf0 ; then # check again in case not readable
6309 elif test -c /dev/enet ; then # check again in case not readable
6311 elif test -c /dev/nit ; then # check again in case not readable
6316 { echo "$as_me:$LINENO: result
: $V_PCAP" >&5
6317 echo "${ECHO_T}$V_PCAP" >&6; }
6320 # Do capture-mechanism-dependent tests.
6325 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6326 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6327 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6328 # private version also existed, which did not have the same APIs.
6329 # Due to a gcc bug, the default search path for 32-bit libraries does
6330 # not include /lib, we add it explicitly here.
6331 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6332 # Also, due to the bug above applications that link to libpcap with
6333 # libdlpi will have to add "-L/lib
" option to "configure
".
6335 saved_ldflags=$LDFLAGS
6336 LDFLAGS="$LIBS -L/lib
"
6337 { echo "$as_me:$LINENO: checking
for dlpi_walk
in -ldlpi" >&5
6338 echo $ECHO_N "checking
for dlpi_walk
in -ldlpi...
$ECHO_C" >&6; }
6339 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6340 echo $ECHO_N "(cached
) $ECHO_C" >&6
6342 ac_check_lib_save_LIBS=$LIBS
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 /* Override any GCC internal prototype to avoid an error.
6352 Use char because int might match the return type of a GCC
6353 builtin and then its argument prototype would still apply. */
6361 return dlpi_walk ();
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest$ac_exeext &&
6383 $as_test_x conftest$ac_exeext; then
6384 ac_cv_lib_dlpi_dlpi_walk=yes
6386 echo "$as_me: failed program was
:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_cv_lib_dlpi_dlpi_walk=no
6392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6393 conftest$ac_exeext conftest.$ac_ext
6394 LIBS=$ac_check_lib_save_LIBS
6396 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dlpi_dlpi_walk" >&5
6397 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6398 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
6402 cat >>confdefs.h <<\_ACEOF
6403 #define HAVE_LIBDLPI 1
6410 LDFLAGS=$saved_ldflags
6413 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6416 { echo "$as_me:$LINENO: checking whether
<sys
/dlpi.h
> is usable
" >&5
6417 echo $ECHO_N "checking whether
<sys
/dlpi.h
> is usable...
$ECHO_C" >&6; }
6418 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
6419 echo $ECHO_N "(cached
) $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6428 #include <sys/types.h>
6429 #include <sys/time.h>
6430 #include <sys/dlpi.h>
6435 int i = DL_PROMISC_PHYS;
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 ac_cv_sys_dlpi_usable=yes
6459 echo "$as_me: failed program was
:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 ac_cv_sys_dlpi_usable=no
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 { echo "$as_me:$LINENO: result
: $ac_cv_sys_dlpi_usable" >&5
6469 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
6470 if test $ac_cv_sys_dlpi_usable = no ; then
6471 { { echo "$as_me:$LINENO: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&5
6472 echo "$as_me: error
: <sys
/dlpi.h
> is not usable on this system
; it probably has a non-standard DLPI
" >&2;}
6473 { (exit 1); exit 1; }; }
6477 # Check whether we have a /dev/dlpi device or have multiple devices.
6479 { echo "$as_me:$LINENO: checking
for /dev
/dlpi device
" >&5
6480 echo $ECHO_N "checking
for /dev
/dlpi device...
$ECHO_C" >&6; }
6481 if test -c /dev/dlpi ; then
6482 { echo "$as_me:$LINENO: result
: yes" >&5
6483 echo "${ECHO_T}yes" >&6; }
6485 cat >>confdefs.h <<\_ACEOF
6486 #define HAVE_DEV_DLPI 1
6490 { echo "$as_me:$LINENO: result
: no
" >&5
6491 echo "${ECHO_T}no
" >&6; }
6493 { echo "$as_me:$LINENO: checking
for $dir directory
" >&5
6494 echo $ECHO_N "checking
for $dir directory...
$ECHO_C" >&6; }
6495 if test -d $dir ; then
6496 { echo "$as_me:$LINENO: result
: yes" >&5
6497 echo "${ECHO_T}yes" >&6; }
6499 cat >>confdefs.h <<_ACEOF
6500 #define PCAP_DEV_PREFIX "$dir"
6504 { echo "$as_me:$LINENO: result
: no
" >&5
6505 echo "${ECHO_T}no
" >&6; }
6510 # This check is for Solaris with DLPI support for passive modes.
6511 # See dlpi(7P) for more details.
6513 { echo "$as_me:$LINENO: checking
if dl_passive_req_t struct exists
" >&5
6514 echo $ECHO_N "checking
if dl_passive_req_t struct exists...
$ECHO_C" >&6; }
6515 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
6516 echo $ECHO_N "(cached
) $ECHO_C" >&6
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 # include <sys/types.h>
6526 # include <sys/dlpi.h>
6530 u_int i = sizeof(dl_passive_req_t)
6535 rm -f conftest.$ac_objext
6536 if { (ac_try="$ac_compile"
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_compile") 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest.$ac_objext; then
6552 ac_cv_lbl_has_dl_passive_req_t=yes
6554 echo "$as_me: failed program was
:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_cv_lbl_has_dl_passive_req_t=no
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_dl_passive_req_t" >&5
6564 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
6565 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_DLPI_PASSIVE 1
6575 { echo "$as_me:$LINENO: checking Linux kernel version
" >&5
6576 echo $ECHO_N "checking Linux kernel version...
$ECHO_C" >&6; }
6577 if test "$cross_compiling" = yes; then
6578 if test "${ac_cv_linux_vers+set}" = set; then
6579 echo $ECHO_N "(cached
) $ECHO_C" >&6
6581 ac_cv_linux_vers=unknown
6585 if test "${ac_cv_linux_vers+set}" = set; then
6586 echo $ECHO_N "(cached
) $ECHO_C" >&6
6588 ac_cv_linux_vers=`uname -r 2>&1 | \
6589 sed -n -e '$s/.* //' -e '$s/\..*//p'`
6593 { echo "$as_me:$LINENO: result
: $ac_cv_linux_vers" >&5
6594 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6595 if test $ac_cv_linux_vers = unknown ; then
6596 { { echo "$as_me:$LINENO: error
: cannot determine linux version when cross-compiling
" >&5
6597 echo "$as_me: error
: cannot determine linux version when cross-compiling
" >&2;}
6598 { (exit 1); exit 1; }; }
6600 if test $ac_cv_linux_vers -lt 2 ; then
6601 { { echo "$as_me:$LINENO: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&5
6602 echo "$as_me: error
: version
2 or higher required
; see the INSTALL doc
for more info
" >&2;}
6603 { (exit 1); exit 1; }; }
6606 for ac_header in linux/wireless.h
6608 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6612 echo $ECHO_N "(cached
) $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6621 #include <sys/socket.h>
6622 #include <linux/if.h>
6623 #include <linux/types.h>
6626 #include <$ac_header>
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 eval "$as_ac_Header=yes"
6647 echo "$as_me: failed program was
:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 eval "$as_ac_Header=no
"
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 ac_res=`eval echo '${'$as_ac_Header'}'`
6656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6657 echo "${ECHO_T}$ac_res" >&6; }
6658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6659 cat >>confdefs.h <<_ACEOF
6660 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6667 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
6668 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
6669 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6670 echo $ECHO_N "(cached
) $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 # include <linux/if_packet.h>
6683 struct tpacket_stats stats
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 ac_cv_lbl_tpacket_stats=yes
6707 echo "$as_me: failed program was
:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 ac_cv_lbl_tpacket_stats=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
6717 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6718 if test $ac_cv_lbl_tpacket_stats = yes; then
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_TPACKET_STATS 1
6725 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
6726 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
6727 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6728 echo $ECHO_N "(cached
) $ECHO_C" >&6
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6737 # include <linux/if_packet.h>
6741 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6746 rm -f conftest.$ac_objext
6747 if { (ac_try="$ac_compile"
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_compile") 2>conftest.er1
6755 grep -v '^ *+' conftest.er1 >conftest.err
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6759 (exit $ac_status); } && {
6760 test -z "$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 } && test -s conftest.$ac_objext; then
6763 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6765 echo "$as_me: failed program was
:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6775 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6776 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6777 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
6789 # Check whether we have the *BSD-style ioctls.
6792 for ac_header in net/if_media.h
6794 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6795 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6796 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6797 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6799 echo $ECHO_N "(cached
) $ECHO_C" >&6
6801 ac_res=`eval echo '${'$as_ac_Header'}'`
6802 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6803 echo "${ECHO_T}$ac_res" >&6; }
6805 # Is the header compilable?
6806 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
6807 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6815 #include <$ac_header>
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_header_compiler=yes
6836 echo "$as_me: failed program was
:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_header_compiler=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
6844 echo "${ECHO_T}$ac_header_compiler" >&6; }
6846 # Is the header present?
6847 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
6848 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <$ac_header>
6857 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6865 grep -v '^ *+' conftest.er1 >conftest.err
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6869 (exit $ac_status); } >/dev/null && {
6870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6873 ac_header_preproc=yes
6875 echo "$as_me: failed program was
:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_header_preproc=no
6881 rm -f conftest.err conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
6883 echo "${ECHO_T}$ac_header_preproc" >&6; }
6885 # So? What about this header?
6886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6888 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
6889 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
6890 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
6891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
6892 ac_header_preproc=yes
6895 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
6896 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
6897 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
6898 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
6899 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
6900 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
6901 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
6902 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
6903 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
6904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
6905 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
6906 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
6910 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6911 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6912 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6913 echo $ECHO_N "(cached
) $ECHO_C" >&6
6915 eval "$as_ac_Header=\
$ac_header_preproc"
6917 ac_res=`eval echo '${'$as_ac_Header'}'`
6918 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6919 echo "${ECHO_T}$ac_res" >&6; }
6922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6923 cat >>confdefs.h <<_ACEOF
6924 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6932 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
6933 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 #include <sys/socket.h>
6941 #include <sys/ioctl.h>
6943 #include <net/bpf.h>
6947 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
6952 rm -f conftest.$ac_objext
6953 if { (ac_try="$ac_compile"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_compile") 2>conftest.er1
6961 grep -v '^ *+' conftest.er1 >conftest.err
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest.$ac_objext; then
6970 { echo "$as_me:$LINENO: result
: yes" >&5
6971 echo "${ECHO_T}yes" >&6; }
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_ZEROCOPY_BPF 1
6979 echo "$as_me: failed program was
:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 { echo "$as_me:$LINENO: result
: no
" >&5
6983 echo "${ECHO_T}no
" >&6; }
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 V_DEFS="$V_DEFS -DDAG_ONLY"
6994 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6998 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
6999 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
7000 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
7001 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
7005 if test "$V_PCAP" = null
7008 # We can't capture, so we can't open any capture
7009 # devices, so we won't return any interfaces.
7013 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
7014 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
7015 if test "${ac_cv_func_getifaddrs+set}" = set; then
7016 echo $ECHO_N "(cached
) $ECHO_C" >&6
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7026 #define getifaddrs innocuous_getifaddrs
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char getifaddrs (); below.
7030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031 <limits.h> exists even on freestanding compilers. */
7034 # include <limits.h>
7036 # include <assert.h>
7041 /* Override any GCC internal prototype to avoid an error.
7042 Use char because int might match the return type of a GCC
7043 builtin and then its argument prototype would still apply. */
7048 /* The GNU C library defines this for functions which it implements
7049 to always fail with ENOSYS. Some functions are actually named
7050 something starting with __ and the normal name is an alias. */
7051 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7058 return getifaddrs ();
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (ac_try="$ac_link"
7066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067 *) ac_try_echo=$ac_try;;
7069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7070 (eval "$ac_link") 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7076 (exit $ac_status); } && {
7077 test -z "$ac_c_werror_flag" ||
7078 test ! -s conftest.err
7079 } && test -s conftest$ac_exeext &&
7080 $as_test_x conftest$ac_exeext; then
7081 ac_cv_func_getifaddrs=yes
7083 echo "$as_me: failed program was
:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_func_getifaddrs=no
7089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7090 conftest$ac_exeext conftest.$ac_ext
7092 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
7093 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7094 if test $ac_cv_func_getifaddrs = yes; then
7097 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
7098 # as well, just in case some platform is really weird.
7100 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7101 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7102 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7103 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7104 echo $ECHO_N "(cached
) $ECHO_C" >&6
7106 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
7107 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7109 # Is the header compilable?
7110 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
7111 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
7112 cat >conftest.$ac_ext <<_ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 #include <ifaddrs.h>
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_header_compiler=yes
7140 echo "$as_me: failed program was
:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_header_compiler=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7148 echo "${ECHO_T}$ac_header_compiler" >&6; }
7150 # Is the header present?
7151 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
7152 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <ifaddrs.h>
7161 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7173 (exit $ac_status); } >/dev/null && {
7174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7177 ac_header_preproc=yes
7179 echo "$as_me: failed program was
:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_header_preproc=no
7185 rm -f conftest.err conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7187 echo "${ECHO_T}$ac_header_preproc" >&6; }
7189 # So? What about this header?
7190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
7193 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7194 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
7195 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
7196 ac_header_preproc=yes
7199 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
7200 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
7201 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
7202 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
7203 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
7204 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
7205 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
7206 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
7207 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
7208 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
7209 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
7210 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
7214 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
7215 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
7216 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7217 echo $ECHO_N "(cached
) $ECHO_C" >&6
7219 ac_cv_header_ifaddrs_h=$ac_header_preproc
7221 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
7222 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7225 if test $ac_cv_header_ifaddrs_h = yes; then
7228 # We have the header, so we use "getifaddrs
()" to
7229 # get the list of interfaces.
7236 # We don't have the header - give up.
7237 # XXX - we could also fall back on some other
7238 # mechanism, but, for now, this'll catch this
7239 # problem so that we can at least try to figure
7240 # out something to do on systems with "getifaddrs
()"
7241 # but without "ifaddrs.h
", if there is something
7242 # we can do on those systems.
7244 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
7245 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
7246 { (exit 1); exit 1; }; }
7255 # Well, we don't have "getifaddrs
()", so we have to use
7256 # some other mechanism; determine what that mechanism is.
7258 # The first thing we use is the type of capture mechanism,
7259 # which is somewhat of a proxy for the OS we're using.
7266 for ac_header in sys/bufmod.h sys/dlpi_ext.h
7268 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7270 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7271 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7273 echo $ECHO_N "(cached
) $ECHO_C" >&6
7275 ac_res=`eval echo '${'$as_ac_Header'}'`
7276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7277 echo "${ECHO_T}$ac_res" >&6; }
7279 # Is the header compilable?
7280 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7281 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7289 #include <$ac_header>
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_header_compiler=yes
7310 echo "$as_me: failed program was
:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_header_compiler=no
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7318 echo "${ECHO_T}$ac_header_compiler" >&6; }
7320 # Is the header present?
7321 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7322 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <$ac_header>
7331 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
7344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7347 ac_header_preproc=yes
7349 echo "$as_me: failed program was
:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_header_preproc=no
7355 rm -f conftest.err conftest.$ac_ext
7356 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7357 echo "${ECHO_T}$ac_header_preproc" >&6; }
7359 # So? What about this header?
7360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7362 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7363 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7364 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7366 ac_header_preproc=yes
7369 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7370 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7371 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7372 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7373 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7374 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7375 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7376 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7377 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7379 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7380 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7387 echo $ECHO_N "(cached
) $ECHO_C" >&6
7389 eval "$as_ac_Header=\
$ac_header_preproc"
7391 ac_res=`eval echo '${'$as_ac_Header'}'`
7392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7393 echo "${ECHO_T}$ac_res" >&6; }
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7406 # This might be Solaris 8 or later, with
7407 # SIOCGLIFCONF, or it might be some other OS
7408 # or some older version of Solaris, with
7411 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
7412 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
7413 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
7414 echo $ECHO_N "(cached
) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #include <sys/param.h>
7423 #include <sys/file.h>
7424 #include <sys/ioctl.h>
7425 #include <sys/socket.h>
7426 #include <sys/sockio.h>
7430 ioctl(0, SIOCGLIFCONF, (char *)0);
7435 rm -f conftest.$ac_objext
7436 if { (ac_try="$ac_compile"
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 ac_cv_lbl_have_siocglifconf=yes
7454 echo "$as_me: failed program was
:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 ac_cv_lbl_have_siocglifconf=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
7464 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
7465 if test $ac_cv_lbl_have_siocglifconf = yes ; then
7471 # Needed for common functions used by pcap-[dlpi,libdlpi].c
7478 # Assume we just have SIOCGIFCONF.
7479 # (XXX - on at least later Linux kernels, there's
7480 # another mechanism, and we should be using that
7493 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
7494 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 #include <sys/types.h>
7503 #include <sys/socket.h>
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7522 grep -v '^ *+' conftest.er1 >conftest.err
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_c_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7532 echo "$as_me: failed program was
:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 if test "x
$have_socklen_t" = "xyes
"; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_SOCKLEN_T 1
7546 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
7547 echo "${ECHO_T}$have_socklen_t" >&6; }
7549 # Check whether --enable-ipv6 was given.
7550 if test "${enable_ipv6+set}" = set; then
7551 enableval=$enable_ipv6;
7553 enable_ipv6=ifavailable
7556 if test "$enable_ipv6" != "no
"; then
7557 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
7558 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
7559 if test "${ac_cv_func_getaddrinfo+set}" = set; then
7560 echo $ECHO_N "(cached
) $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 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
7569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7570 #define getaddrinfo innocuous_getaddrinfo
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char getaddrinfo (); below.
7574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7575 <limits.h> exists even on freestanding compilers. */
7578 # include <limits.h>
7580 # include <assert.h>
7585 /* Override any GCC internal prototype to avoid an error.
7586 Use char because int might match the return type of a GCC
7587 builtin and then its argument prototype would still apply. */
7591 char getaddrinfo ();
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
7602 return getaddrinfo ();
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (ac_try="$ac_link"
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_link") 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest$ac_exeext &&
7624 $as_test_x conftest$ac_exeext; then
7625 ac_cv_func_getaddrinfo=yes
7627 echo "$as_me: failed program was
:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_cv_func_getaddrinfo=no
7633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7634 conftest$ac_exeext conftest.$ac_ext
7636 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
7637 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
7638 if test $ac_cv_func_getaddrinfo = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7648 if test "$enable_ipv6" != "ifavailable
"; then
7649 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
7650 See \`config.log' for more details.
" >&5
7651 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
7652 See \`config.log' for more details.
" >&2;}
7653 { (exit 1); exit 1; }; }
7660 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
7661 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
7662 # Check whether --enable-optimizer-dbg was given.
7663 if test "${enable_optimizer_dbg+set}" = set; then
7664 enableval=$enable_optimizer_dbg;
7667 if test "$enable_optimizer_dbg" = "yes"; then
7669 cat >>confdefs.h <<\_ACEOF
7674 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
7675 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
7677 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
7678 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
7679 # Check whether --enable-yydebug was given.
7680 if test "${enable_yydebug+set}" = set; then
7681 enableval
=$enable_yydebug;
7684 if test "$enable_yydebug" = "yes"; then
7686 cat >>confdefs.h
<<\_ACEOF
7691 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
7692 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
7694 { echo "$as_me:$LINENO: checking whether we have
/proc
/net
/dev
" >&5
7695 echo $ECHO_N "checking whether we have
/proc
/net
/dev...
$ECHO_C" >&6; }
7696 if test -r /proc/net/dev ; then
7697 ac_cv_lbl_proc_net_dev=yes
7699 ac_cv_lbl_proc_net_dev=no
7701 if test $ac_cv_lbl_proc_net_dev = yes; then
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_PROC_NET_DEV 1
7708 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_proc_net_dev" >&5
7709 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
7711 # Check for Endace DAG card support.
7713 # Check whether --with-dag was given.
7714 if test "${with_dag+set}" = set; then
7716 if test "$withval" = no
7718 # User doesn't want DAG support.
7720 elif test "$withval" = yes
7722 # User wants DAG support but hasn't specified a directory.
7725 # User wants DAG support and has specified a directory, so use the provided value.
7733 # Use DAG API if present, otherwise don't
7741 # Check whether --with-dag-includes was given.
7742 if test "${with_dag_includes+set}" = set; then
7743 withval=$with_dag_includes;
7744 # User wants DAG support and has specified a header directory, so use the provided value.
7746 dag_include_dir=$withval
7752 # Check whether --with-dag-libraries was given.
7753 if test "${with_dag_libraries+set}" = set; then
7754 withval=$with_dag_libraries;
7755 # User wants DAG support and has specified a library directory, so use the provided value.
7757 dag_lib_dir=$withval
7765 # We support the DAG API if we're on Linux or BSD, or if we're
7766 # building a DAG-only libpcap.
7771 # If the user explicitly requested DAG, tell them it's not
7774 # If they expressed no preference, don't include it.
7776 if test $want_dag = yes; then
7777 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
7778 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
7779 { (exit 1); exit 1; }; }
7780 elif test $want_dag = yes; then
7786 ac_cv_lbl_dag_api=no
7787 if test "$want_dag" != no; then
7789 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
7790 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
7792 # If necessary, set default paths for DAG API headers and libraries.
7793 if test -z "$dag_root"; then
7797 if test -z "$dag_include_dir"; then
7798 dag_include_dir="$dag_root/include
"
7801 if test -z "$dag_lib_dir"; then
7802 dag_lib_dir="$dag_root/lib
"
7805 if test -z "$dag_tools_dir"; then
7806 dag_tools_dir="$dag_root/tools
"
7809 if test -r $dag_include_dir/dagapi.h; then
7810 ac_cv_lbl_dag_api=yes
7812 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
7813 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
7816 if test $ac_cv_lbl_dag_api = yes; then
7818 { echo "$as_me:$LINENO: checking dagapi.o
" >&5
7819 echo $ECHO_N "checking dagapi.o...
$ECHO_C" >&6; }
7821 if test -r $dag_tools_dir/dagapi.o; then
7823 dagapi_obj=$dag_tools_dir/dagapi.o
7824 elif test -r $dag_lib_dir/dagapi.o; then
7826 dagapi_obj=$dag_lib_dir/dagapi.o
7827 elif test -r $dag_lib_dir/libdag.a; then
7829 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
7830 if test -r ./dagapi.o; then
7831 dagapi_obj=./dagapi.o
7833 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
7834 if test -r ./libdag_la-dagapi.o; then
7835 dagapi_obj=./libdag_la-dagapi.o
7840 if test $dagapi_obj = no; then
7841 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
7842 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
7843 ac_cv_lbl_dag_api=no
7845 { echo "$as_me:$LINENO: result
: yes ($dagapi_obj)" >&5
7846 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
7850 if test $ac_cv_lbl_dag_api = yes; then
7852 { echo "$as_me:$LINENO: checking dagopts.o
" >&5
7853 echo $ECHO_N "checking dagopts.o...
$ECHO_C" >&6; }
7855 if test -r $dag_tools_dir/dagopts.o; then
7857 dagopts_obj=$dag_tools_dir/dagopts.o
7858 elif test -r $dag_lib_dir/dagopts.o; then
7860 dagopts_obj=$dag_lib_dir/dagopts.o
7861 elif test -r $dag_lib_dir/libdag.a; then
7863 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
7864 if test -r ./dagopts.o; then
7865 dagopts_obj=./dagopts.o
7867 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
7868 if test -r ./libdag_la-dagopts.o; then
7869 dagopts_obj=./libdag_la-dagopts.o
7874 if test $dagopts_obj = no; then
7875 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&5
7876 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a
)" >&6; }
7877 ac_cv_lbl_dag_api=no
7879 { echo "$as_me:$LINENO: result
: yes ($dagopts_obj)" >&5
7880 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
7884 if test $ac_cv_lbl_dag_api = yes; then
7885 # Under 2.5.x only we need to add dagreg.o.
7886 if test -r $dag_include_dir/dagreg.h; then
7887 { echo "$as_me:$LINENO: checking dagreg.o
" >&5
7888 echo $ECHO_N "checking dagreg.o...
$ECHO_C" >&6; }
7890 if test -r $dag_lib_dir/dagreg.o; then
7891 # Object file is ready and waiting.
7892 dagreg_obj=$dag_lib_dir/dagreg.o
7893 elif test -r $dag_lib_dir/libdag.a; then
7894 # Extract from libdag.a.
7895 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
7896 if test -r ./dagreg.o; then
7897 dagreg_obj=./dagreg.o
7899 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
7900 if test -r ./libdag_la-dagreg.o; then
7901 dagreg_obj=./libdag_la-dagreg.o
7906 if test $dagreg_obj = no; then
7907 { echo "$as_me:$LINENO: result
: no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&5
7908 echo "${ECHO_T}no
(checked
$dag_lib_dir $dag_lib_dir/libdag.a
)" >&6; }
7909 ac_cv_lbl_dag_api=no
7911 { echo "$as_me:$LINENO: result
: yes ($dagreg_obj)" >&5
7912 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
7917 if test $ac_cv_lbl_dag_api = yes; then
7918 V_INCLS="$V_INCLS -I$dag_include_dir"
7919 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
7920 if test $V_PCAP != dag ; then
7924 # See if we can find a general version string.
7925 # Don't need to save and restore LIBS to prevent -ldag being
7926 # included if there's a found-action (arg 3).
7927 saved_ldflags=$LDFLAGS
7928 LDFLAGS="-L$dag_lib_dir"
7929 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
7930 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
7931 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
7932 echo $ECHO_N "(cached
) $ECHO_C" >&6
7934 ac_check_lib_save_LIBS=$LIBS
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7943 /* Override any GCC internal prototype to avoid an error.
7944 Use char because int might match the return type of a GCC
7945 builtin and then its argument prototype would still apply. */
7949 char dag_attach_stream ();
7953 return dag_attach_stream ();
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (ac_try="$ac_link"
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_link") 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest$ac_exeext &&
7975 $as_test_x conftest$ac_exeext; then
7976 ac_cv_lib_dag_dag_attach_stream=yes
7978 echo "$as_me: failed program was
:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_lib_dag_dag_attach_stream=no
7984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7985 conftest$ac_exeext conftest.$ac_ext
7986 LIBS=$ac_check_lib_save_LIBS
7988 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
7989 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
7990 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
7996 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
7997 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
7998 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
7999 echo $ECHO_N "(cached
) $ECHO_C" >&6
8001 ac_check_lib_save_LIBS=$LIBS
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8010 /* Override any GCC internal prototype to avoid an error.
8011 Use char because int might match the return type of a GCC
8012 builtin and then its argument prototype would still apply. */
8016 char dag_get_erf_types ();
8020 return dag_get_erf_types ();
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (ac_try="$ac_link"
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_link") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest$ac_exeext &&
8042 $as_test_x conftest$ac_exeext; then
8043 ac_cv_lib_dag_dag_get_erf_types=yes
8045 echo "$as_me: failed program was
:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_lib_dag_dag_get_erf_types=no
8051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8052 conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8055 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
8056 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8057 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_DAG_GET_ERF_TYPES 1
8066 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
8067 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
8068 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8069 echo $ECHO_N "(cached
) $ECHO_C" >&6
8071 ac_check_lib_save_LIBS=$LIBS
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8080 /* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8086 char dag_get_stream_erf_types ();
8090 return dag_get_stream_erf_types ();
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (ac_try="$ac_link"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_link") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest$ac_exeext &&
8112 $as_test_x conftest$ac_exeext; then
8113 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8115 echo "$as_me: failed program was
:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_cv_lib_dag_dag_get_stream_erf_types=no
8121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8122 conftest$ac_exeext conftest.$ac_ext
8123 LIBS=$ac_check_lib_save_LIBS
8125 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8126 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8127 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8130 cat >>confdefs.h <<\_ACEOF
8131 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8136 LDFLAGS=$saved_ldflags
8138 if test "$dag_streams" = 1; then
8140 cat >>confdefs.h <<\_ACEOF
8141 #define HAVE_DAG_STREAMS_API 1
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_DAG_API 1
8154 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
8155 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
8157 if test $ac_cv_lbl_dag_api = no; then
8158 { echo "$as_me:$LINENO: result
: no
" >&5
8159 echo "${ECHO_T}no
" >&6; }
8160 if test "$want_dag" = yes; then
8161 # User wanted DAG support but we couldn't find it.
8162 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
8163 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
8164 { (exit 1); exit 1; }; }
8167 if test "$V_PCAP" = dag; then
8168 # User requested "dag
" capture type but the DAG API wasn't
8170 { { 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
8171 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;}
8172 { (exit 1); exit 1; }; }
8175 { echo "$as_me:$LINENO: result
: yes" >&5
8176 echo "${ECHO_T}yes" >&6; }
8180 # Check whether --with-septel was given.
8181 if test "${with_septel+set}" = set; then
8182 withval=$with_septel;
8183 if test "$withval" = no
8186 elif test "$withval" = yes
8192 septel_root=$withval
8198 # Use Septel API if present, otherwise don't
8200 want_septel=ifpresent
8201 septel_root=./../septel
8205 ac_cv_lbl_septel_api=no
8209 # We support the Septel API if we're on Linux, or if we're building
8210 # a Septel-only libpcap.
8215 # If the user explicitly requested Septel, tell them it's not
8218 # If they expressed no preference, don't include it.
8220 if test $want_septel = yes; then
8221 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
8222 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
8223 { (exit 1); exit 1; }; }
8224 elif test $want_septel = yes; then
8230 if test "$with_septel" != no; then
8231 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
8232 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
8234 if test -z "$septel_root"; then
8235 septel_root=$srcdir/../septel
8239 septel_tools_dir="$septel_root"
8240 septel_include_dir="$septel_root/INC
"
8241 DEF="-DHAVE_SEPTEL_API"
8243 ac_cv_lbl_septel_api=no
8244 if test -r "$septel_include_dir/msg.h
"; then
8245 V_INCLS="$V_INCLS -I$septel_include_dir"
8246 V_DEFS="$V_DEFS $DEF"
8247 V_LIBS="$V_LIBS $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
"
8249 if test "$V_PCAP" != septel ; then
8250 SSRC="pcap-septel.c
"
8253 ac_cv_lbl_septel_api=yes
8256 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
8257 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
8258 if test $ac_cv_lbl_septel_api = no; then
8259 if test "$want_septel" = yes; then
8260 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
8261 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
8262 { (exit 1); exit 1; }; }
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_SEPTEL_API 1
8273 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
8274 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
8275 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
8276 { (exit 1); exit 1; }; }
8281 # Check whether --with-flex was given.
8282 if test "${with_flex+set}" = set; then
8287 # Check whether --with-bison was given.
8288 if test "${with_bison+set}" = set; then
8289 withval=$with_bison;
8292 if test "$with_flex" = no ; then
8297 # Extract the first word of "$ac_prog", so it can be a program name with args.
8298 set dummy $ac_prog; ac_word=$2
8299 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8300 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8301 if test "${ac_cv_prog_V_LEX+set}" = set; then
8302 echo $ECHO_N "(cached
) $ECHO_C" >&6
8304 if test -n "$V_LEX"; then
8305 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_V_LEX="$ac_prog"
8315 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8324 V_LEX=$ac_cv_prog_V_LEX
8325 if test -n "$V_LEX"; then
8326 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
8327 echo "${ECHO_T}$V_LEX" >&6; }
8329 { echo "$as_me:$LINENO: result
: no
" >&5
8330 echo "${ECHO_T}no
" >&6; }
8334 test -n "$V_LEX" && break
8336 test -n "$V_LEX" || V_LEX="lex"
8339 if test "$V_LEX" = flex ; then
8340 # The -V flag was added in 2.4
8341 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
8342 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
8343 if test "${ac_cv_lbl_flex_v24+set}" = set; then
8344 echo $ECHO_N "(cached
) $ECHO_C" >&6
8346 if flex -V >/dev/null 2>&1; then
8347 ac_cv_lbl_flex_v24=yes
8349 ac_cv_lbl_flex_v24=no
8353 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
8354 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
8355 if test $ac_cv_lbl_flex_v24 = no ; then
8356 s="2.4 or higher required
"
8357 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
8358 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
8362 if test "$with_bison" = no ; then
8365 for ac_prog in bison
8367 # Extract the first word of "$ac_prog", so it can be a program name with args.
8368 set dummy $ac_prog; ac_word=$2
8369 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8370 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8371 if test "${ac_cv_prog_V_YACC+set}" = set; then
8372 echo $ECHO_N "(cached
) $ECHO_C" >&6
8374 if test -n "$V_YACC"; then
8375 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_V_YACC="$ac_prog"
8385 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8394 V_YACC=$ac_cv_prog_V_YACC
8395 if test -n "$V_YACC"; then
8396 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
8397 echo "${ECHO_T}$V_YACC" >&6; }
8399 { echo "$as_me:$LINENO: result
: no
" >&5
8400 echo "${ECHO_T}no
" >&6; }
8404 test -n "$V_YACC" && break
8406 test -n "$V_YACC" || V_YACC="yacc"
8409 if test "$V_YACC" = bison ; then
8412 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
8413 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
8414 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
8418 if test "$V_LEX" = flex -a -n "pcap_
" ; then
8419 V_LEX="$V_LEX -Ppcap_"
8420 V_YACC="$V_YACC -p pcap_
"
8422 if test "$V_LEX" = lex ; then
8423 # Some versions of lex can't handle the definitions section of scanner.l .
8424 # Try lexing it and complain if it can't deal.
8425 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
8426 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
8427 if test "${tcpdump_cv_capable_lex+set}" = set; then
8428 echo $ECHO_N "(cached
) $ECHO_C" >&6
8430 if lex -t scanner.l > /dev/null 2>&1; then
8431 tcpdump_cv_capable_lex=yes
8433 tcpdump_cv_capable_lex=insufficient
8436 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
8437 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
8438 if test $tcpdump_cv_capable_lex = insufficient ; then
8439 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
8440 libpcap. flex is a lex replacement that has many advantages, including
8441 being able to compile libpcap. For more information, see
8442 http://www.gnu.org/software/flex/flex.html ." >&5
8443 echo "$as_me: error: Your operating system's
lex is insufficient to compile
8444 libpcap. flex is a
lex replacement that has many advantages
, including
8445 being able to compile libpcap. For
more information
, see
8446 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
8447 { (exit 1); exit 1; }; }
8452 # Assume a.out/ELF convention for shared library names (".so
"), and
8453 # V7/BSD convention for man pages (file formats in section 5,
8454 # miscellaneous info in section 7).
8463 cat >>confdefs.h <<\_ACEOF
8468 # We need "-lodm" and "-lcfg", as libpcap requires them on
8470 DEPLIBS="-lodm -lcfg"
8475 V_CCOPT="$V_CCOPT -fno-common"
8480 cat >>confdefs.h <<\_ACEOF
8481 #define HAVE_HPUX9 1
8486 # Use System V conventions for man pages.
8495 # Use System V conventions for man pages.
8504 # Use System V conventions for man pages.
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_HPUX10_20_OR_LATER 1
8518 # Use System V conventions for man pages.
8526 # Use System V conventions for man pages.
8533 V_CCOPT="$V_CCOPT -fPIC"
8538 # Use System V conventions for man pages.
8545 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
8546 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
8547 if test "${ac_cv_cc_sinix_defined+set}" = set; then
8548 echo $ECHO_N "(cached
) $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8565 rm -f conftest.$ac_objext
8566 if { (ac_try="$ac_compile"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_cc_sinix_defined=yes
8584 echo "$as_me: failed program was
:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_cc_sinix_defined=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
8594 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
8595 if test $ac_cv_cc_sinix_defined = no ; then
8597 cat >>confdefs.h <<\_ACEOF
8606 cat >>confdefs.h <<\_ACEOF
8607 #define HAVE_SOLARIS 1
8612 # Use System V conventions for man pages.
8619 if test -n "$ac_tool_prefix"; then
8620 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
8621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8622 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8623 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8624 if test "${ac_cv_prog_RANLIB+set}" = set; then
8625 echo $ECHO_N "(cached
) $ECHO_C" >&6
8627 if test -n "$RANLIB"; then
8628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
8638 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8647 RANLIB=$ac_cv_prog_RANLIB
8648 if test -n "$RANLIB"; then
8649 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
8650 echo "${ECHO_T}$RANLIB" >&6; }
8652 { echo "$as_me:$LINENO: result
: no
" >&5
8653 echo "${ECHO_T}no
" >&6; }
8658 if test -z "$ac_cv_prog_RANLIB"; then
8659 ac_ct_RANLIB=$RANLIB
8660 # Extract the first word of "ranlib
", so it can be a program name with args.
8661 set dummy ranlib; ac_word=$2
8662 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8663 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8665 echo $ECHO_N "(cached
) $ECHO_C" >&6
8667 if test -n "$ac_ct_RANLIB"; then
8668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8677 ac_cv_prog_ac_ct_RANLIB="ranlib
"
8678 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8688 if test -n "$ac_ct_RANLIB"; then
8689 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
8690 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8692 { echo "$as_me:$LINENO: result
: no
" >&5
8693 echo "${ECHO_T}no
" >&6; }
8696 if test "x
$ac_ct_RANLIB" = x; then
8699 case $cross_compiling:$ac_tool_warned in
8701 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
8702 whose name does not start with the
host triplet. If you think this
8703 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
8704 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
8705 whose name does not start with the
host triplet. If you think this
8706 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
8707 ac_tool_warned=yes ;;
8709 RANLIB=$ac_ct_RANLIB
8712 RANLIB="$ac_cv_prog_RANLIB"
8717 if test "${LBL_CFLAGS+set}" = set; then
8718 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8720 if test -f .devel ; then
8721 if test "$GCC" = yes ; then
8722 if test "${LBL_CFLAGS+set}" != set; then
8723 if test "$ac_cv_prog_cc_g" = yes ; then
8724 V_CCOPT="-g $V_CCOPT"
8726 V_CCOPT="$V_CCOPT -Wall"
8727 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8728 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
8735 V_CCOPT="$V_CCOPT -n32"
8742 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8744 if test -f $name ; then
8745 ln -s $name os-proto.h
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_OS_PROTO_H 1
8752 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
8753 echo "$as_me: WARNING: can't
find $name" >&2;}
8757 { echo "$as_me:$LINENO: checking
if sockaddr struct has sa_len member
" >&5
8758 echo $ECHO_N "checking
if sockaddr struct has sa_len member...
$ECHO_C" >&6; }
8759 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8760 echo $ECHO_N "(cached
) $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 # include <sys/types.h>
8770 # include <sys/socket.h>
8774 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8779 rm -f conftest.$ac_objext
8780 if { (ac_try="$ac_compile"
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 ac_cv_lbl_sockaddr_has_sa_len=yes
8798 echo "$as_me: failed program was
:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_cv_lbl_sockaddr_has_sa_len=no
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8808 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8809 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_SOCKADDR_SA_LEN 1
8817 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
8818 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
8819 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
8820 echo $ECHO_N "(cached
) $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 # include <sys/types.h>
8830 # include <sys/socket.h>
8834 u_int i = sizeof (struct sockaddr_storage)
8839 rm -f conftest.$ac_objext
8840 if { (ac_try="$ac_compile"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 ac_cv_lbl_has_sockaddr_storage=yes
8858 echo "$as_me: failed program was
:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lbl_has_sockaddr_storage=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
8868 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
8869 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_SOCKADDR_STORAGE 1
8877 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
8878 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
8879 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
8880 echo $ECHO_N "(cached
) $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 # include <sys/types.h>
8890 # include <sys/dlpi.h>
8891 # include <sys/dlpi_ext.h>
8895 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8919 echo "$as_me: failed program was
:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8929 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8930 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
8938 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
8939 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
8940 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
8941 echo $ECHO_N "(cached
) $ECHO_C" >&6
8946 # These are CPU types where:
8948 # the CPU faults on an unaligned access, but at least some
8949 # OSes that support that CPU catch the fault and simulate
8950 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8951 # the simulation is slow, so we don't want to use it;
8953 # the CPU, I infer (from the old
8955 # XXX: should also check that they don't do weird things (like on arm)
8957 # comment) doesn't fault on unaligned accesses, but doesn't
8958 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8960 # for whatever reason, the test program doesn't work
8961 # (this has been claimed to be the case for several of those
8962 # CPUs - I don't know what the problem is; the problem
8963 # was reported as "the
test program dumps core
" for SuperH,
8964 # but that's what the test program is *supposed* to do -
8965 # it dumps core before it writes anything, so the test
8966 # for an empty output file should find an empty output
8967 # file and conclude that unaligned accesses don't work).
8969 # This run-time test won't work if you're cross-compiling, so
8970 # in order to support cross-compiling for a particular CPU,
8971 # we have to wire in the list of CPU types anyway, as far as
8972 # I know, so perhaps we should just have a set of CPUs on
8973 # which we know it doesn't work, a set of CPUs on which we
8974 # know it does work, and have the script just fail on other
8975 # cpu types and update it when such a failure occurs.
8977 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8978 ac_cv_lbl_unaligned_fail=yes
8982 cat >conftest.c <<EOF
8983 # include <sys/types.h>
8984 # include <sys/wait.h>
8986 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8991 /* avoid "core dumped
" message */
8997 pid = waitpid(pid, &status, 0);
9000 exit(!WIFEXITED(status));
9003 i = *(unsigned int *)&a[1];
9008 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9009 conftest.c $LIBS >/dev/null 2>&1
9010 if test ! -x conftest ; then
9011 ac_cv_lbl_unaligned_fail=yes
9013 ./conftest >conftest.out
9014 if test ! -s conftest.out ; then
9015 ac_cv_lbl_unaligned_fail=yes
9017 ac_cv_lbl_unaligned_fail=no
9020 rm -f conftest* core core.conftest
9025 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
9026 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9027 if test $ac_cv_lbl_unaligned_fail = yes ; then
9029 cat >>confdefs.h <<\_ACEOF
9036 # Makefile.in includes rules to generate version.h, so we assume
9037 # that it will be generated if autoconf is used.
9040 cat >>confdefs.h <<\_ACEOF
9041 #define HAVE_VERSION_H 1
9046 ln -s ${srcdir}/bpf/net net
9063 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
9064 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
9068 cat >>confdefs.h <<\_ACEOF
9069 #define PCAP_SUPPORT_USB 1
9072 USB_SRC=pcap-usb-linux.c
9073 { echo "$as_me:$LINENO: result
: yes" >&5
9074 echo "${ECHO_T}yes" >&6; }
9075 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9076 if test $? -ne 0 ; then
9077 ac_usb_dev_name="usbmon
"
9080 cat >>confdefs.h <<_ACEOF
9081 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
9084 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
9085 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
9088 { echo "$as_me:$LINENO: result
: no
" >&5
9089 echo "${ECHO_T}no
" >&6; }
9095 # Check whether --enable-bluetooth was given.
9096 if test "${enable_bluetooth+set}" = set; then
9097 enableval=$enable_bluetooth;
9099 enable_bluetooth=yes
9103 if test "x
$enable_bluetooth" != "xno
" ; then
9106 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9107 { echo "$as_me:$LINENO: checking
for bluetooth
/bluetooth.h
" >&5
9108 echo $ECHO_N "checking
for bluetooth
/bluetooth.h...
$ECHO_C" >&6; }
9109 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9110 echo $ECHO_N "(cached
) $ECHO_C" >&6
9112 { echo "$as_me:$LINENO: result
: $ac_cv_header_bluetooth_bluetooth_h" >&5
9113 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9115 # Is the header compilable?
9116 { echo "$as_me:$LINENO: checking bluetooth
/bluetooth.h usability
" >&5
9117 echo $ECHO_N "checking bluetooth
/bluetooth.h usability...
$ECHO_C" >&6; }
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 #include <bluetooth/bluetooth.h>
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compile") 2>conftest.er1
9136 grep -v '^ *+' conftest.er1 >conftest.err
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest.$ac_objext; then
9144 ac_header_compiler=yes
9146 echo "$as_me: failed program was
:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_header_compiler=no
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9154 echo "${ECHO_T}$ac_header_compiler" >&6; }
9156 # Is the header present?
9157 { echo "$as_me:$LINENO: checking bluetooth
/bluetooth.h presence
" >&5
9158 echo $ECHO_N "checking bluetooth
/bluetooth.h presence...
$ECHO_C" >&6; }
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <bluetooth/bluetooth.h>
9167 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9179 (exit $ac_status); } >/dev/null && {
9180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9183 ac_header_preproc=yes
9185 echo "$as_me: failed program was
:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_header_preproc=no
9191 rm -f conftest.err conftest.$ac_ext
9192 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9193 echo "${ECHO_T}$ac_header_preproc" >&6; }
9195 # So? What about this header?
9196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9198 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
9199 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9200 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: proceeding with the compiler
's result" >&5
9201 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result
" >&2;}
9202 ac_header_preproc=yes
9205 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: present but cannot be compiled
" >&5
9206 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: present but cannot be compiled
" >&2;}
9207 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: check
for missing prerequisite headers?
" >&5
9208 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: check
for missing prerequisite headers?
" >&2;}
9209 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: see the Autoconf documentation
" >&5
9210 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: see the Autoconf documentation
" >&2;}
9211 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: section
\"Present But Cannot Be Compiled
\"" >&5
9212 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
9213 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: proceeding with the preprocessor
's result" >&5
9214 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result
" >&2;}
9215 { echo "$as_me:$LINENO: WARNING
: bluetooth
/bluetooth.h
: in the future
, the compiler will take precedence
" >&5
9216 echo "$as_me: WARNING
: bluetooth
/bluetooth.h
: in the future
, the compiler will take precedence
" >&2;}
9220 { echo "$as_me:$LINENO: checking
for bluetooth
/bluetooth.h
" >&5
9221 echo $ECHO_N "checking
for bluetooth
/bluetooth.h...
$ECHO_C" >&6; }
9222 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9223 echo $ECHO_N "(cached
) $ECHO_C" >&6
9225 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
9227 { echo "$as_me:$LINENO: result
: $ac_cv_header_bluetooth_bluetooth_h" >&5
9228 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9231 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
9234 cat >>confdefs.h <<\_ACEOF
9235 #define PCAP_SUPPORT_BT 1
9238 BT_SRC=pcap-bt-linux.c
9239 { echo "$as_me:$LINENO: Bluetooth sniffing is supported
" >&5
9240 echo "$as_me: Bluetooth sniffing is supported
" >&6;}
9243 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported
; install bluez-lib devel to
enable it
" >&5
9244 echo "$as_me: Bluetooth sniffing is not supported
; install bluez-lib devel to
enable it
" >&6;}
9251 { echo "$as_me:$LINENO: no Bluetooth sniffing support
" >&5
9252 echo "$as_me: no Bluetooth sniffing support
" >&6;}
9259 # Find a good install program. We prefer a C program (faster),
9260 # so one script is as good as another. But avoid the broken or
9261 # incompatible versions:
9262 # SysV /etc/install, /usr/sbin/install
9263 # SunOS /usr/etc/install
9264 # IRIX /sbin/install
9266 # AmigaOS /C/install, which installs bootblocks on floppy discs
9267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
9270 # OS/2's system install, which has a completely different semantic
9271 # ./install, which can be erroneously created by make from ./install.sh.
9272 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
9273 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
9274 if test -z "$INSTALL"; then
9275 if test "${ac_cv_path_install+set}" = set; then
9276 echo $ECHO_N "(cached
) $ECHO_C" >&6
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 test -z "$as_dir" && as_dir=.
9283 # Account for people who put trailing slashes in PATH elements.
9285 ./ | .// | /cC/* | \
9286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9290 # OSF1 and SCO ODT 3.0 have their own names for install.
9291 # Don't use installbsd from OSF since it installs stuff as root
9293 for ac_prog in ginstall scoinst install; do
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9296 if test $ac_prog = install &&
9297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9298 # AIX install. It has an incompatible calling convention.
9300 elif test $ac_prog = install &&
9301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9302 # program-specific install script used by HP pwplus--don't use.
9305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9318 if test "${ac_cv_path_install+set}" = set; then
9319 INSTALL=$ac_cv_path_install
9321 # As a last resort, use the slow shell script. Don't cache a
9322 # value for INSTALL within a source directory, because that will
9323 # break other packages using the cache if that directory is
9324 # removed, or if the value is a relative name.
9325 INSTALL=$ac_install_sh
9328 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
9329 echo "${ECHO_T}$INSTALL" >&6; }
9331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9332 # It thinks the first close brace ends the variable substitution.
9333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9340 ac_config_headers="$ac_config_headers config.h
"
9343 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
"
9345 cat >confcache <<\_ACEOF
9346 # This file is a shell script that caches the results of configure
9347 # tests run on this system so they can be shared between configure
9348 # scripts and configure runs, see configure's option --config-cache.
9349 # It is not useful on other systems. If it contains results you don't
9350 # want to keep, you may remove or edit it.
9352 # config.status only pays attention to the cache file if you give it
9353 # the --recheck option to rerun configure.
9355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9361 # The following way of writing the cache mishandles newlines in values,
9362 # but we know of no workaround that is simple, portable, and efficient.
9363 # So, we kill variables containing newlines.
9364 # Ultrix sh set writes to stderr and can't be redirected directly,
9365 # and sets the high bit in the cache file unless we assign to the vars.
9367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9368 eval ac_val=\$$ac_var
9372 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
9373 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
9376 _ | IFS | as_nl) ;; #(
9377 *) $as_unset $ac_var ;;
9383 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9384 *${as_nl}ac_space=\ *)
9385 # `set' does not quote correctly, so add quotes (double-quote
9386 # substitution turns \\\\ into \\, and sed turns \\ into \).
9389 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
9392 # `set' quotes correctly as required by POSIX, so do not add quotes.
9393 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
9402 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9404 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9406 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9407 if test -w "$cache_file"; then
9408 test "x
$cache_file" != "x
/dev
/null
" &&
9409 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
9410 echo "$as_me: updating cache
$cache_file" >&6;}
9411 cat confcache >$cache_file
9413 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
9414 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
9419 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
9420 # Let make expand exec_prefix.
9421 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
9423 DEFS=-DHAVE_CONFIG_H
9427 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
9428 # 1. Remove the extension, and $U if already installed.
9429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9430 ac_i=`echo "$ac_i" | sed "$ac_script"`
9431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9432 # will be set to the directory where LIBOBJS objects are built.
9433 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
9434 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
9438 LTLIBOBJS=$ac_ltlibobjs
9442 : ${CONFIG_STATUS=./config.status}
9443 ac_clean_files_save=$ac_clean_files
9444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9445 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
9446 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
9447 cat >$CONFIG_STATUS <<_ACEOF
9449 # Generated by $as_me.
9450 # Run this file to recreate the current configuration.
9451 # Compiler output produced by configure, useful for debugging
9452 # configure, is in config.log if it exists.
9457 SHELL=\${CONFIG_SHELL-$SHELL}
9460 cat >>$CONFIG_STATUS <<\_ACEOF
9461 ## --------------------- ##
9462 ## M4sh Initialization. ##
9463 ## --------------------- ##
9465 # Be more Bourne compatible
9466 DUALCASE=1; export DUALCASE # for MKS sh
9467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9471 # is contrary to our usage. Disable this feature.
9472 alias -g '${1+"$@"}'='"$@
"'
9473 setopt NO_GLOB_SUBST
9475 case `(set -o) 2>/dev/null` in
9476 *posix*) set -o posix ;;
9485 # Avoid depending upon Character Ranges.
9486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9489 as_cr_digits='0123456789'
9490 as_cr_alnum=$as_cr_Letters$as_cr_digits
9492 # The user is always right.
9493 if test "${PATH_SEPARATOR+set}" != set; then
9494 echo "#! /bin/sh" >conf$$.sh
9495 echo "exit 0" >>conf$$.sh
9497 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9505 # Support unset when possible.
9506 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9514 # We need space, tab and new line, in precisely that order. Quoting is
9515 # there to prevent editors from complaining about space-tab.
9516 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9517 # splitting by setting IFS to empty value.)
9522 # Find who we are. Look in the path if we contain no directory separator.
9524 *[\\/]* ) as_myself
=$0 ;;
9525 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9529 test -z "$as_dir" && as_dir
=.
9530 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9536 # We did not find ourselves, most probably we were run as `sh COMMAND'
9537 # in which case we are not to be found in the path.
9538 if test "x$as_myself" = x
; then
9541 if test ! -f "$as_myself"; then
9542 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9543 { (exit 1); exit 1; }
9546 # Work around bugs in pre-3.0 UWIN ksh.
9547 for as_var
in ENV MAIL MAILPATH
9548 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
9556 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9557 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9558 LC_TELEPHONE LC_TIME
9560 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9561 eval $as_var=C
; export $as_var
9563 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
9567 # Required to use basename.
9568 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9569 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9575 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9576 as_basename
=basename
9582 # Name of the executable.
9583 as_me
=`$as_basename -- "$0" ||
9584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9585 X"$0" : 'X\(//\)$' \| \
9586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9588 sed '/^.*\/\([^/][^/]*\)\/*$/{
9609 test "x$as_lineno_1" != "x$as_lineno_2" &&
9610 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
9612 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9613 # uniformly replaced by the line number. The first 'sed' inserts a
9614 # line-number line after each line using $LINENO; the second 'sed'
9615 # does the real work. The second script uses 'N' to pair each
9616 # line-number line with the line containing $LINENO, and appends
9617 # trailing '-' during substitution so that $LINENO is not a special
9619 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9620 # scripts with optimization help from Paolo Bonzini. Blame Lee
9621 # E. McMahon (1931-1989) for sed's syntax. :-)
9633 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9637 chmod +x
"$as_me.lineno" ||
9638 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9639 { (exit 1); exit 1; }; }
9641 # Don't try to exec as it changes $[0], causing all sort of problems
9642 # (the dirname of $[0] is not the place where we might find the
9643 # original and so on. Autoconf is especially sensitive to this).
9645 # Exit status is that of the last command.
9650 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9656 ECHO_C
= ECHO_N
= ECHO_T
=
9659 case `echo 'x\c'` in
9660 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9667 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9668 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9674 rm -f conf$$ conf$$.exe conf$$.
file
9675 if test -d conf$$.dir
; then
9676 rm -f conf$$.dir
/conf$$.
file
9682 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9684 # ... but there are two gotchas:
9685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9687 # In both cases, we have to default to `cp -p'.
9688 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9690 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9695 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9696 rmdir conf$$.dir
2>/dev
/null
9698 if mkdir
-p .
2>/dev
/null
; then
9701 test -d .
/-p && rmdir .
/-p
9705 if test -x / >/dev
/null
2>&1; then
9708 if ls -dL / >/dev
/null
2>&1; then
9715 if test -d "$1"; then
9721 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9722 ???[sx]*):;;*)false;;esac;fi
9726 as_executable_p
=$as_test_x
9728 # Sed expression to map a string onto a valid CPP name.
9729 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9731 # Sed expression to map a string onto a valid variable name.
9732 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9737 # Save the log message, to keep $[0] and so on meaningful, and to
9738 # report actual input values of CONFIG_FILES etc. instead of their
9739 # values after options handling.
9741 This file was extended by $as_me, which was
9742 generated by GNU Autoconf 2.61. Invocation command line was
9744 CONFIG_FILES = $CONFIG_FILES
9745 CONFIG_HEADERS = $CONFIG_HEADERS
9746 CONFIG_LINKS = $CONFIG_LINKS
9747 CONFIG_COMMANDS = $CONFIG_COMMANDS
9750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9755 cat >>$CONFIG_STATUS <<_ACEOF
9756 # Files that config.status was made for.
9757 config_files="$ac_config_files"
9758 config_headers="$ac_config_headers"
9762 cat >>$CONFIG_STATUS <<\_ACEOF
9764 \`$as_me' instantiates files from templates according to the
9765 current configuration.
9767 Usage: $0 [OPTIONS] [FILE]...
9769 -h, --help print this help, then exit
9770 -V, --version print version number and configuration settings, then exit
9771 -q, --quiet do not print progress messages
9772 -d, --debug don't remove temporary files
9773 --recheck update $as_me by reconfiguring in the same conditions
9774 --file=FILE[:TEMPLATE]
9775 instantiate the configuration file FILE
9776 --header=FILE[:TEMPLATE]
9777 instantiate the configuration header FILE
9779 Configuration files:
9782 Configuration headers:
9785 Report bugs to <bug-autoconf@gnu.org>."
9788 cat >>$CONFIG_STATUS <<_ACEOF
9791 configured by $0, generated by GNU Autoconf 2.61,
9792 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9794 Copyright (C) 2006 Free Software Foundation, Inc.
9795 This config.status script is free software; the Free Software Foundation
9796 gives unlimited permission to copy, distribute and modify it."
9803 cat >>$CONFIG_STATUS <<\_ACEOF
9804 # If no file are specified by the user, then we need to provide default
9805 # value. By we need to know if files were specified by the user.
9811 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9812 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9823 # Handling of the options.
9824 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9826 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9827 echo "$ac_cs_version"; exit ;;
9828 --debug |
--debu |
--deb |
--de |
--d |
-d )
9830 --file |
--fil |
--fi |
--f )
9832 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9833 ac_need_defaults
=false
;;
9834 --header |
--heade |
--head |
--hea )
9836 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9837 ac_need_defaults
=false
;;
9839 # Conflict between --help and --header
9840 { echo "$as_me: error: ambiguous option: $1
9841 Try \`$0 --help' for more information." >&2
9842 { (exit 1); exit 1; }; };;
9843 --help |
--hel |
-h )
9844 echo "$ac_cs_usage"; exit ;;
9845 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9846 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9850 -*) { echo "$as_me: error: unrecognized option: $1
9851 Try \`$0 --help' for more information." >&2
9852 { (exit 1); exit 1; }; } ;;
9854 *) ac_config_targets
="$ac_config_targets $1"
9855 ac_need_defaults
=false
;;
9861 ac_configure_extra_args
=
9863 if $ac_cs_silent; then
9865 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9869 cat >>$CONFIG_STATUS <<_ACEOF
9870 if \$ac_cs_recheck; then
9871 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9874 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9878 cat >>$CONFIG_STATUS <<\_ACEOF
9882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9883 ## Running $as_me. ##
9889 cat >>$CONFIG_STATUS <<_ACEOF
9892 cat >>$CONFIG_STATUS <<\_ACEOF
9894 # Handling of arguments.
9895 for ac_config_target
in $ac_config_targets
9897 case $ac_config_target in
9898 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9899 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9900 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9901 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9902 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9903 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9904 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9905 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9906 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9907 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9908 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9909 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9911 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9912 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9913 { (exit 1); exit 1; }; };;
9918 # If the user did not use the arguments to specify the items to instantiate,
9919 # then the envvar interface is used. Set only those that are not.
9920 # We use the long form for the default assignment because of an extremely
9921 # bizarre bug on SunOS 4.1.3.
9922 if $ac_need_defaults; then
9923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9927 # Have a temporary directory for convenience. Make it in the build tree
9928 # simply because there is no reason against having it here, and in addition,
9929 # creating and moving files from /tmp can sometimes cause problems.
9930 # Hook for its removal unless debugging.
9931 # Note that there is a small window in which the directory will not be cleaned:
9932 # after its creation but before its name has been assigned to `$tmp'.
9936 trap 'exit_status=$?
9937 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9939 trap '{ (exit 1); exit 1; }' 1 2 13 15
9941 # Create a (secure) tmp directory for tmp files.
9944 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9945 test -n "$tmp" && test -d "$tmp"
9948 tmp
=.
/conf$$
-$RANDOM
9949 (umask 077 && mkdir
"$tmp")
9952 echo "$me: cannot create a temporary directory in ." >&2
9953 { (exit 1); exit 1; }
9957 # Set up the sed scripts for CONFIG_FILES section.
9960 # No need to generate the scripts if there are no CONFIG_FILES.
9961 # This happens for instance when ./config.status config.h
9962 if test -n "$CONFIG_FILES"; then
9969 for ac_last_try
in false false false false false
:; do
9970 cat >conf$
$subs.
sed <<_ACEOF
9971 SHELL!$SHELL$ac_delim
9972 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9973 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9974 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9975 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9976 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9977 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9978 exec_prefix!$exec_prefix$ac_delim
9979 prefix!$prefix$ac_delim
9980 program_transform_name!$program_transform_name$ac_delim
9981 bindir!$bindir$ac_delim
9982 sbindir!$sbindir$ac_delim
9983 libexecdir!$libexecdir$ac_delim
9984 datarootdir!$datarootdir$ac_delim
9985 datadir!$datadir$ac_delim
9986 sysconfdir!$sysconfdir$ac_delim
9987 sharedstatedir!$sharedstatedir$ac_delim
9988 localstatedir!$localstatedir$ac_delim
9989 includedir!$includedir$ac_delim
9990 oldincludedir!$oldincludedir$ac_delim
9991 docdir!$docdir$ac_delim
9992 infodir!$infodir$ac_delim
9993 htmldir!$htmldir$ac_delim
9994 dvidir!$dvidir$ac_delim
9995 pdfdir!$pdfdir$ac_delim
9996 psdir!$psdir$ac_delim
9997 libdir!$libdir$ac_delim
9998 localedir!$localedir$ac_delim
9999 mandir!$mandir$ac_delim
10000 DEFS!$DEFS$ac_delim
10001 ECHO_C!$ECHO_C$ac_delim
10002 ECHO_N!$ECHO_N$ac_delim
10003 ECHO_T!$ECHO_T$ac_delim
10004 LIBS!$LIBS$ac_delim
10005 build_alias!$build_alias$ac_delim
10006 host_alias!$host_alias$ac_delim
10007 target_alias!$target_alias$ac_delim
10008 build!$build$ac_delim
10009 build_cpu!$build_cpu$ac_delim
10010 build_vendor!$build_vendor$ac_delim
10011 build_os!$build_os$ac_delim
10012 host!$host$ac_delim
10013 host_cpu!$host_cpu$ac_delim
10014 host_vendor!$host_vendor$ac_delim
10015 host_os!$host_os$ac_delim
10016 target!$target$ac_delim
10017 target_cpu!$target_cpu$ac_delim
10018 target_vendor!$target_vendor$ac_delim
10019 target_os!$target_os$ac_delim
10020 SHLICC2!$SHLICC2$ac_delim
10022 CFLAGS!$CFLAGS$ac_delim
10023 LDFLAGS!$LDFLAGS$ac_delim
10024 CPPFLAGS!$CPPFLAGS$ac_delim
10025 ac_ct_CC!$ac_ct_CC$ac_delim
10026 EXEEXT!$EXEEXT$ac_delim
10027 OBJEXT!$OBJEXT$ac_delim
10029 GREP!$GREP$ac_delim
10030 EGREP!$EGREP$ac_delim
10031 LIBOBJS!$LIBOBJS$ac_delim
10032 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
10033 V_LEX!$V_LEX$ac_delim
10034 V_YACC!$V_YACC$ac_delim
10035 RANLIB!$RANLIB$ac_delim
10036 V_CCOPT!$V_CCOPT$ac_delim
10037 V_DEFS!$V_DEFS$ac_delim
10038 V_INCLS!$V_INCLS$ac_delim
10039 V_LIBS!$V_LIBS$ac_delim
10040 V_PCAP!$V_PCAP$ac_delim
10041 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
10042 SSRC!$SSRC$ac_delim
10043 DYEXT!$DYEXT$ac_delim
10044 DAGLIBS!$DAGLIBS$ac_delim
10045 DEPLIBS!$DEPLIBS$ac_delim
10046 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
10047 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
10048 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
10049 USB_SRC!$USB_SRC$ac_delim
10050 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
10051 BT_SRC!$BT_SRC$ac_delim
10052 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10053 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10054 INSTALL_DATA!$INSTALL_DATA$ac_delim
10055 LTLIBOBJS!$LTLIBOBJS$ac_delim
10058 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
10060 elif $ac_last_try; then
10061 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10062 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10063 { (exit 1); exit 1; }; }
10065 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10069 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10070 if test -n "$ac_eof"; then
10071 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10072 ac_eof
=`expr $ac_eof + 1`
10075 cat >>$CONFIG_STATUS <<_ACEOF
10076 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10080 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10081 s/^/s,@/; s/!/@,|#_!!_#|/
10084 s/'"$ac_delim"'$/,g/; t
10086 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10087 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10088 rm -f conf$
$subs.
sed
10089 cat >>$CONFIG_STATUS <<_ACEOF
10096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10098 # trailing colons and then remove the whole line if VPATH becomes empty
10099 # (actually we leave an empty line to preserve line numbers).
10100 if test "x$srcdir" = x.
; then
10101 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10102 s/:*\$(srcdir):*/:/
10103 s/:*\${srcdir}:*/:/
10105 s/^\([^=]*=[ ]*\):*/\1/
10111 cat >>$CONFIG_STATUS <<\_ACEOF
10112 fi # test -n "$CONFIG_FILES"
10115 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10118 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10120 case $ac_mode$ac_tag in
10122 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10123 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10124 { (exit 1); exit 1; }; };;
10125 :[FH
]-) ac_tag
=-:-;;
10126 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10143 -) ac_f
="$tmp/stdin";;
10144 *) # Look for the file first in the build tree, then in the source tree
10145 # (if the path is not absolute). The absolute path cannot be DOS-style,
10146 # because $ac_f cannot contain `:'.
10150 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10152 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10153 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10154 { (exit 1); exit 1; }; };;
10156 ac_file_inputs
="$ac_file_inputs $ac_f"
10159 # Let's still pretend it is `configure' which instantiates (i.e., don't
10160 # use $as_me), people would be surprised to read:
10161 # /* config.h. Generated by config.status. */
10162 configure_input
="Generated from "`IFS=:
10163 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10164 if test x
"$ac_file" != x-
; then
10165 configure_input
="$ac_file. $configure_input"
10166 { echo "$as_me:$LINENO: creating $ac_file" >&5
10167 echo "$as_me: creating $ac_file" >&6;}
10171 *:-:* |
*:-) cat >"$tmp/stdin";;
10176 ac_dir
=`$as_dirname -- "$ac_file" ||
10177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10178 X"$ac_file" : 'X\(//\)[^/]' \| \
10179 X"$ac_file" : 'X\(//\)$' \| \
10180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10186 /^X\(\/\/\)[^/].*/{
10201 -*) as_dir
=.
/$as_dir;;
10203 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
10207 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10208 *) as_qdir
=$as_dir;;
10210 as_dirs
="'$as_qdir' $as_dirs"
10211 as_dir
=`$as_dirname -- "$as_dir" ||
10212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10213 X"$as_dir" : 'X\(//\)[^/]' \| \
10214 X"$as_dir" : 'X\(//\)$' \| \
10215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10221 /^X\(\/\/\)[^/].*/{
10234 test -d "$as_dir" && break
10236 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10237 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10238 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10239 { (exit 1); exit 1; }; }; }
10243 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10245 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10246 # A ".." for each directory in $ac_dir_suffix.
10247 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10248 case $ac_top_builddir_sub in
10249 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10250 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10253 ac_abs_top_builddir
=$ac_pwd
10254 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10255 # for backward compatibility:
10256 ac_top_builddir
=$ac_top_build_prefix
10259 .
) # We are building in place.
10261 ac_top_srcdir
=$ac_top_builddir_sub
10262 ac_abs_top_srcdir
=$ac_pwd ;;
10263 [\\/]* | ?
:[\\/]* ) # Absolute name.
10264 ac_srcdir
=$srcdir$ac_dir_suffix;
10265 ac_top_srcdir
=$srcdir
10266 ac_abs_top_srcdir
=$srcdir ;;
10267 *) # Relative name.
10268 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10269 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10270 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10272 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10282 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10283 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10287 cat >>$CONFIG_STATUS <<\_ACEOF
10288 # If the template does not know about datarootdir, expand it.
10289 # FIXME: This hack should be removed a few years after 2.60.
10290 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10292 case `sed -n '/datarootdir/ {
10301 ' $ac_file_inputs` in
10302 *datarootdir
*) ac_datarootdir_seen
=yes;;
10303 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10304 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10305 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10307 cat >>$CONFIG_STATUS <<_ACEOF
10308 ac_datarootdir_hack='
10309 s&@datadir@&$datadir&g
10310 s&@docdir@&$docdir&g
10311 s&@infodir@&$infodir&g
10312 s&@localedir@&$localedir&g
10313 s&@mandir@&$mandir&g
10314 s&\\\${datarootdir}&$datarootdir&g' ;;
10318 # Neutralize VPATH when `$srcdir' = `.'.
10319 # Shell code in configure.ac might set extrasub.
10320 # FIXME: do we really want to maintain this feature?
10321 cat >>$CONFIG_STATUS <<_ACEOF
10325 cat >>$CONFIG_STATUS <<\_ACEOF
10327 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10328 s
&@configure_input@
&$configure_input&;t t
10329 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10330 s
&@srcdir@
&$ac_srcdir&;t t
10331 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10332 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10333 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10334 s
&@builddir@
&$ac_builddir&;t t
10335 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10336 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10337 s
&@INSTALL@
&$ac_INSTALL&;t t
10338 $ac_datarootdir_hack
10339 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
10341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10342 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
10343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
10344 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10345 which seems to be undefined. Please make sure it is defined." >&5
10346 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10347 which seems to be undefined. Please make sure it is defined." >&2;}
10351 -) cat "$tmp/out"; rm -f "$tmp/out";;
10352 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10361 # Transform confdefs.h into a sed script `conftest.defines', that
10362 # substitutes the proper values into config.h.in to produce config.h.
10363 rm -f conftest.defines conftest.
tail
10364 # First, append a space to every undef/define line, to ease matching.
10365 echo 's/$/ /' >conftest.defines
10366 # Then, protect against being on the right side of a sed subst, or in
10367 # an unquoted here document, in config.status. If some macros were
10368 # called several times there might be several #defines for the same
10369 # symbol, which is useless. But do not sort them, since the last
10370 # AC_DEFINE must be honored.
10371 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
10372 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10373 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10374 # PARAMS is the parameter list in the macro definition--in most cases, it's
10375 # just an empty string.
10376 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10377 ac_dB
='\\)[ (].*,\\1define\\2'
10385 s/^[ ]*#[ ]*define[ ][ ]*//
10390 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10391 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10392 ' >>conftest.defines
10394 # Remove the space that was appended to ease matching.
10395 # Then replace #undef with comments. This is necessary, for
10396 # example, in the case of _POSIX_SOURCE, which is predefined and required
10397 # on some systems where configure will not decide to define it.
10398 # (The regexp can be short, since the line contains either #define or #undef.)
10400 s,^[ #]*u.*,/* & */,' >>conftest.defines
10402 # Break up conftest.defines:
10403 ac_max_sed_lines
=50
10405 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10406 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10407 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10409 ac_in
='$ac_file_inputs'
10410 ac_out
='"$tmp/out1"'
10411 ac_nxt
='"$tmp/out2"'
10415 # Write a here document:
10416 cat >>$CONFIG_STATUS <<_ACEOF
10417 # First, check the format of the line:
10418 cat >"\$tmp/defines.sed" <<\\CEOF
10419 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10420 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10424 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
10426 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10427 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
10428 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
10429 grep . conftest.
tail >/dev
/null ||
break
10430 rm -f conftest.defines
10431 mv conftest.
tail conftest.defines
10433 rm -f conftest.defines conftest.
tail
10435 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10436 cat >>$CONFIG_STATUS <<\_ACEOF
10437 if test x
"$ac_file" != x-
; then
10438 echo "/* $configure_input */" >"$tmp/config.h"
10439 cat "$ac_result" >>"$tmp/config.h"
10440 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
10441 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10442 echo "$as_me: $ac_file is unchanged" >&6;}
10445 mv "$tmp/config.h" $ac_file
10448 echo "/* $configure_input */"
10460 { (exit 0); exit 0; }
10462 chmod +x
$CONFIG_STATUS
10463 ac_clean_files
=$ac_clean_files_save
10466 # configure is writing to config.log, and then calls config.status.
10467 # config.status does its own redirection, appending to config.log.
10468 # Unfortunately, on DOS this fails, as config.log is still kept open
10469 # by configure, so config.status won't be able to write to it; its
10470 # output is simply discarded. So we exec the FD to /dev/null,
10471 # effectively closing config.log, so it can be properly (re)opened and
10472 # appended to by config.status. When coming back to configure, we
10473 # need to make the FD available again.
10474 if test "$no_create" != yes; then
10476 ac_config_status_args
=
10477 test "$silent" = yes &&
10478 ac_config_status_args
="$ac_config_status_args --quiet"
10480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10483 # would make configure fail if this is the last instruction.
10484 $ac_cs_success ||
{ (exit 1); exit 1; }
10488 if test -f .devel
; then