2 # From configure.in Revision: 1.138.2.1 .
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
700 ac_precious_vars
='build_alias
711 # Initialize some variables set by options.
713 ac_init_version
=false
714 # The variables have the same names as the options, with
715 # dashes changed to underlines.
723 program_transform_name
=s
,x
,x
,
731 # Installation directory options.
732 # These are left unexpanded so users can "make install exec_prefix=/foo"
733 # and all the variables that are supposed to be based on exec_prefix
734 # by default will actually change.
735 # Use braces instead of parens because sh, perl, etc. also accept them.
736 # (The list follows the same order as the GNU Coding Standards.)
737 bindir
='${exec_prefix}/bin'
738 sbindir
='${exec_prefix}/sbin'
739 libexecdir
='${exec_prefix}/libexec'
740 datarootdir
='${prefix}/share'
741 datadir
='${datarootdir}'
742 sysconfdir
='${prefix}/etc'
743 sharedstatedir
='${prefix}/com'
744 localstatedir
='${prefix}/var'
745 includedir
='${prefix}/include'
746 oldincludedir
='/usr/include'
747 docdir
='${datarootdir}/doc/${PACKAGE}'
748 infodir
='${datarootdir}/info'
753 libdir
='${exec_prefix}/lib'
754 localedir
='${datarootdir}/locale'
755 mandir
='${datarootdir}/man'
761 # If the previous option needs an argument, assign it.
762 if test -n "$ac_prev"; then
763 eval $ac_prev=\
$ac_option
769 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 # Accept the important Cygnus configure options, so we can diagnose typos.
775 case $ac_dashdash$ac_option in
779 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
781 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
784 -build |
--build |
--buil |
--bui |
--bu)
785 ac_prev
=build_alias
;;
786 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
787 build_alias
=$ac_optarg ;;
789 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
790 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
791 ac_prev
=cache_file
;;
792 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
793 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
794 cache_file
=$ac_optarg ;;
797 cache_file
=config.cache
;;
799 -datadir |
--datadir |
--datadi |
--datad)
801 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
802 datadir
=$ac_optarg ;;
804 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
805 |
--dataroo |
--dataro |
--datar)
806 ac_prev
=datarootdir
;;
807 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
808 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
809 datarootdir
=$ac_optarg ;;
811 -disable-* |
--disable-*)
812 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
815 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816 { (exit 1); exit 1; }; }
817 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
818 eval enable_
$ac_feature=no
;;
820 -docdir |
--docdir |
--docdi |
--doc |
--do)
822 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
825 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
827 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
830 -enable-* |
--enable-*)
831 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
834 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835 { (exit 1); exit 1; }; }
836 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
837 eval enable_
$ac_feature=\
$ac_optarg ;;
839 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
840 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
841 |
--exec |
--exe |
--ex)
842 ac_prev
=exec_prefix
;;
843 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
844 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
845 |
--exec=* |
--exe=* |
--ex=*)
846 exec_prefix
=$ac_optarg ;;
848 -gas |
--gas |
--ga |
--g)
849 # Obsolete; use --with-gas.
852 -help |
--help |
--hel |
--he |
-h)
854 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
855 ac_init_help
=recursive
;;
856 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
857 ac_init_help
=short
;;
859 -host |
--host |
--hos |
--ho)
860 ac_prev
=host_alias
;;
861 -host=* |
--host=* |
--hos=* |
--ho=*)
862 host_alias
=$ac_optarg ;;
864 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
866 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
868 htmldir
=$ac_optarg ;;
870 -includedir |
--includedir |
--includedi |
--included |
--include \
871 |
--includ |
--inclu |
--incl |
--inc)
872 ac_prev
=includedir
;;
873 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
874 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
875 includedir
=$ac_optarg ;;
877 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
879 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
880 infodir
=$ac_optarg ;;
882 -libdir |
--libdir |
--libdi |
--libd)
884 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
887 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
888 |
--libexe |
--libex |
--libe)
889 ac_prev
=libexecdir
;;
890 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
891 |
--libexe=* |
--libex=* |
--libe=*)
892 libexecdir
=$ac_optarg ;;
894 -localedir |
--localedir |
--localedi |
--localed |
--locale)
896 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
897 localedir
=$ac_optarg ;;
899 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
900 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
901 ac_prev
=localstatedir
;;
902 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
903 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
904 localstatedir
=$ac_optarg ;;
906 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
908 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
912 # Obsolete; use --without-fp.
915 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
916 |
--no-cr |
--no-c |
-n)
919 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
920 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
923 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
924 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
925 |
--oldin |
--oldi |
--old |
--ol |
--o)
926 ac_prev
=oldincludedir
;;
927 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
928 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
929 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
930 oldincludedir
=$ac_optarg ;;
932 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
934 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
937 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
938 |
--program-pre |
--program-pr |
--program-p)
939 ac_prev
=program_prefix
;;
940 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
941 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
942 program_prefix
=$ac_optarg ;;
944 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
945 |
--program-suf |
--program-su |
--program-s)
946 ac_prev
=program_suffix
;;
947 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
948 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
949 program_suffix
=$ac_optarg ;;
951 -program-transform-name |
--program-transform-name \
952 |
--program-transform-nam |
--program-transform-na \
953 |
--program-transform-n |
--program-transform- \
954 |
--program-transform |
--program-transfor \
955 |
--program-transfo |
--program-transf \
956 |
--program-trans |
--program-tran \
957 |
--progr-tra |
--program-tr |
--program-t)
958 ac_prev
=program_transform_name
;;
959 -program-transform-name=* |
--program-transform-name=* \
960 |
--program-transform-nam=* |
--program-transform-na=* \
961 |
--program-transform-n=* |
--program-transform-=* \
962 |
--program-transform=* |
--program-transfor=* \
963 |
--program-transfo=* |
--program-transf=* \
964 |
--program-trans=* |
--program-tran=* \
965 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
966 program_transform_name
=$ac_optarg ;;
968 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
970 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
973 -psdir |
--psdir |
--psdi |
--psd |
--ps)
975 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
978 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
979 |
-silent |
--silent |
--silen |
--sile |
--sil)
982 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
984 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
986 sbindir
=$ac_optarg ;;
988 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
989 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
990 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
992 ac_prev
=sharedstatedir
;;
993 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
994 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
995 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
997 sharedstatedir
=$ac_optarg ;;
999 -site |
--site |
--sit)
1001 -site=* |
--site=* |
--sit=*)
1004 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1006 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1007 srcdir
=$ac_optarg ;;
1009 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1010 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1011 ac_prev
=sysconfdir
;;
1012 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1013 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1014 sysconfdir
=$ac_optarg ;;
1016 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1017 ac_prev
=target_alias
;;
1018 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1019 target_alias
=$ac_optarg ;;
1021 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1024 -version |
--version |
--versio |
--versi |
--vers |
-V)
1025 ac_init_version
=: ;;
1028 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1031 { echo "$as_me: error: invalid package name: $ac_package" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1034 eval with_
$ac_package=\
$ac_optarg ;;
1036 -without-* |
--without-*)
1037 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=no
;;
1046 # Obsolete; use --with-x.
1049 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1050 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1051 ac_prev
=x_includes
;;
1052 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1053 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1054 x_includes
=$ac_optarg ;;
1056 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1057 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1058 ac_prev
=x_libraries
;;
1059 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1060 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1061 x_libraries
=$ac_optarg ;;
1063 -*) { echo "$as_me: error: unrecognized option: $ac_option
1064 Try \`$0 --help' for more information." >&2
1065 { (exit 1); exit 1; }; }
1069 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1073 { (exit 1); exit 1; }; }
1074 eval $ac_envvar=\
$ac_optarg
1075 export $ac_envvar ;;
1078 # FIXME: should be removed in autoconf 3.0.
1079 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1080 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1082 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088 if test -n "$ac_prev"; then
1089 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1090 { echo "$as_me: error: missing argument to $ac_option" >&2
1091 { (exit 1); exit 1; }; }
1094 # Be sure to have absolute directory names.
1095 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1096 datadir sysconfdir sharedstatedir localstatedir includedir \
1097 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1098 libdir localedir mandir
1100 eval ac_val
=\$
$ac_var
1102 [\\/$
]* | ?
:[\\/]* ) continue;;
1103 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1105 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1106 { (exit 1); exit 1; }; }
1109 # There might be people who depend on the old broken behavior: `$host'
1110 # used to hold the argument of --host etc.
1111 # FIXME: To remove some day.
1114 target
=$target_alias
1116 # FIXME: To remove some day.
1117 if test "x$host_alias" != x
; then
1118 if test "x$build_alias" = x
; then
1119 cross_compiling
=maybe
1120 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1121 If a cross compiler is detected then cross compile mode will be used." >&2
1122 elif test "x$build_alias" != "x$host_alias"; then
1128 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1130 test "$silent" = yes && exec 6>/dev
/null
1133 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1134 ac_ls_di
=`ls -di .` &&
1135 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1136 { echo "$as_me: error: Working directory cannot be determined" >&2
1137 { (exit 1); exit 1; }; }
1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139 { echo "$as_me: error: pwd does not report name of working directory" >&2
1140 { (exit 1); exit 1; }; }
1143 # Find the source files, if location was not specified.
1144 if test -z "$srcdir"; then
1145 ac_srcdir_defaulted
=yes
1146 # Try the directory containing this script, then the parent directory.
1147 ac_confdir
=`$as_dirname -- "$0" ||
1148 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1149 X"$0" : 'X\(//\)[^/]' \| \
1150 X"$0" : 'X\(//\)$' \| \
1151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171 if test ! -r "$srcdir/$ac_unique_file"; then
1175 ac_srcdir_defaulted
=no
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1179 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1180 { (exit 1); exit 1; }; }
1182 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1184 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1185 { (exit 1); exit 1; }; }
1187 # When building in place, set srcdir=.
1188 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191 # Remove unnecessary trailing slashes from srcdir.
1192 # Double slashes in file names in object file debugging info
1193 # mess up M-x gdb in Emacs.
1195 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 for ac_var
in $ac_precious_vars; do
1198 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1199 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1200 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1201 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1205 # Report the --help message.
1207 if test "$ac_init_help" = "long"; then
1208 # Omit some internal or obsolete options to make the list less imposing.
1209 # This message is too long to be a string in the A/UX 3.1 sh.
1211 \`configure' configures this package to adapt to many kinds of systems.
1213 Usage: $0 [OPTION]... [VAR=VALUE]...
1215 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216 VAR=VALUE. See below for descriptions of some of the useful variables.
1218 Defaults for the options are specified in brackets.
1221 -h, --help display this help and exit
1222 --help=short display options specific to this package
1223 --help=recursive display the short help of all the included packages
1224 -V, --version display version information and exit
1225 -q, --quiet, --silent do not print \`checking...' messages
1226 --cache-file=FILE cache test results in FILE [disabled]
1227 -C, --config-cache alias for \`--cache-file=config.cache'
1228 -n, --no-create do not create output files
1229 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231 Installation directories:
1232 --prefix=PREFIX install architecture-independent files in PREFIX
1233 [$ac_default_prefix]
1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1237 By default, \`make install' will install all the files in
1238 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1239 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240 for instance \`--prefix=\$HOME'.
1242 For better control, use the options below.
1244 Fine tuning of the installation directories:
1245 --bindir=DIR user executables [EPREFIX/bin]
1246 --sbindir=DIR system admin executables [EPREFIX/sbin]
1247 --libexecdir=DIR program executables [EPREFIX/libexec]
1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1251 --libdir=DIR object code libraries [EPREFIX/lib]
1252 --includedir=DIR C header files [PREFIX/include]
1253 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1256 --infodir=DIR info documentation [DATAROOTDIR/info]
1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1258 --mandir=DIR man documentation [DATAROOTDIR/man]
1259 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1260 --htmldir=DIR html documentation [DOCDIR]
1261 --dvidir=DIR dvi documentation [DOCDIR]
1262 --pdfdir=DIR pdf documentation [DOCDIR]
1263 --psdir=DIR ps documentation [DOCDIR]
1269 --build=BUILD configure
for building on BUILD
[guessed
]
1270 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1271 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1275 if test -n "$ac_init_help"; then
1280 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1281 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1282 --disable-protochain disable
\"protochain
\" insn
1283 --enable-ipv6 build IPv6-capable version
1284 --enable-optimizer-dbg build optimizer debugging code
1285 --enable-yydebug build parser debugging code
1288 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1289 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1290 --without-gcc don
't use gcc
1291 --with-pcap=TYPE use packet capture TYPE
1292 --with-sita include SITA support
1293 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1294 --with-dag-includes=DIR Endace DAG include directory
1295 --with-dag-libraries=DIR Endace DAG library directory
1296 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
1297 --without-flex don't use flex
1298 --without-bison don
't use bison
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1310 Use these variables to override the choices made by `configure' or to
help
1311 it to
find libraries and programs with nonstandard names
/locations.
1317 if test "$ac_init_help" = "recursive"; then
1318 # If there are subdirs, report their specific --help.
1319 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1320 test -d "$ac_dir" ||
continue
1324 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1326 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1327 # A ".." for each directory in $ac_dir_suffix.
1328 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1329 case $ac_top_builddir_sub in
1330 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1331 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1334 ac_abs_top_builddir
=$ac_pwd
1335 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1336 # for backward compatibility:
1337 ac_top_builddir
=$ac_top_build_prefix
1340 .
) # We are building in place.
1342 ac_top_srcdir
=$ac_top_builddir_sub
1343 ac_abs_top_srcdir
=$ac_pwd ;;
1344 [\\/]* | ?
:[\\/]* ) # Absolute name.
1345 ac_srcdir
=$srcdir$ac_dir_suffix;
1346 ac_top_srcdir
=$srcdir
1347 ac_abs_top_srcdir
=$srcdir ;;
1349 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1350 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1351 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1353 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1355 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1356 # Check for guested configure.
1357 if test -f "$ac_srcdir/configure.gnu"; then
1359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1360 elif test -f "$ac_srcdir/configure"; then
1362 $SHELL "$ac_srcdir/configure" --help=recursive
1364 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1370 test -n "$ac_init_help" && exit $ac_status
1371 if $ac_init_version; then
1374 generated by GNU Autoconf
2.61
1376 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1377 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1378 This configure
script is free software
; the Free Software Foundation
1379 gives unlimited permission to copy
, distribute and modify it.
1383 cat >config.log
<<_ACEOF
1384 This file contains any messages produced by compilers while
1385 running configure, to aid debugging if configure makes a mistake.
1387 It was created by $as_me, which was
1388 generated by GNU Autoconf 2.61. Invocation command line was
1400 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1401 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1402 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1403 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1404 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1406 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1407 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1409 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1410 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1411 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1412 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1413 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1414 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1415 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1423 test -z "$as_dir" && as_dir
=.
1424 echo "PATH: $as_dir"
1440 # Keep a trace of the command line.
1441 # Strip out --no-create and --no-recursion so they do not pile up.
1442 # Strip out --silent because we don't want to record it for future runs.
1443 # Also quote any args containing shell meta-characters.
1444 # Make two passes to allow for proper duplicate-argument suppression.
1448 ac_must_keep_next
=false
1454 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1455 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1456 |
-silent |
--silent |
--silen |
--sile |
--sil)
1459 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1464 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1465 if test $ac_must_keep_next = true
; then
1466 ac_must_keep_next
=false
# Got value, back to normal.
1469 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1470 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1471 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1472 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1473 case "$ac_configure_args0 " in
1474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1477 -* ) ac_must_keep_next
=true
;;
1480 ac_configure_args
="$ac_configure_args '$ac_arg'"
1485 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1486 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1488 # When interrupted or exit'd, cleanup temporary files, and complete
1489 # config.log. We remove comments because anyway the quotes in there
1490 # would cause problems or look ugly.
1491 # WARNING: Use '\'' to represent an apostrophe within the trap.
1492 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1493 trap 'exit_status=$?
1494 # Save into config.log some information that might help in debugging.
1499 ## ---------------- ##
1500 ## Cache variables. ##
1501 ## ---------------- ##
1504 # The following way of writing the cache mishandles newlines in values,
1506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1507 eval ac_val=\$$ac_var
1511 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1512 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1515 _ | IFS | as_nl) ;; #(
1516 *) $as_unset $ac_var ;;
1521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1522 *${as_nl}ac_space=\ *)
1524 "s/'\''/'\''\\\\'\'''\''/g;
1525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1536 ## ----------------- ##
1537 ## Output variables. ##
1538 ## ----------------- ##
1541 for ac_var in $ac_subst_vars
1543 eval ac_val=\$$ac_var
1545 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1547 echo "$ac_var='\''$ac_val'\''"
1551 if test -n "$ac_subst_files"; then
1553 ## ------------------- ##
1554 ## File substitutions. ##
1555 ## ------------------- ##
1558 for ac_var
in $ac_subst_files
1560 eval ac_val
=\$
$ac_var
1562 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564 echo "$ac_var='\''$ac_val'\''"
1569 if test -s confdefs.h; then
1579 test "$ac_signal" != 0 &&
1580 echo "$as_me: caught signal $ac_signal"
1581 echo "$as_me: exit $exit_status"
1583 rm -f core *.core core.conftest.* &&
1584 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1587 for ac_signal
in 1 2 13 15; do
1588 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1592 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1593 rm -f -r conftest
* confdefs.h
1595 # Predefined preprocessor variables.
1597 cat >>confdefs.h
<<_ACEOF
1598 #define PACKAGE_NAME "$PACKAGE_NAME"
1602 cat >>confdefs.h
<<_ACEOF
1603 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1607 cat >>confdefs.h
<<_ACEOF
1608 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1612 cat >>confdefs.h
<<_ACEOF
1613 #define PACKAGE_STRING "$PACKAGE_STRING"
1617 cat >>confdefs.h
<<_ACEOF
1618 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1622 # Let the site file select an alternate cache file if it wants to.
1623 # Prefer explicitly selected file to automatically selected ones.
1624 if test -n "$CONFIG_SITE"; then
1625 set x
"$CONFIG_SITE"
1626 elif test "x$prefix" != xNONE
; then
1627 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1629 set x
"$ac_default_prefix/share/config.site" \
1630 "$ac_default_prefix/etc/config.site"
1635 if test -r "$ac_site_file"; then
1636 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1637 echo "$as_me: loading site script $ac_site_file" >&6;}
1638 sed 's/^/| /' "$ac_site_file" >&5
1643 if test -r "$cache_file"; then
1644 # Some versions of bash will fail to source /dev/null (special
1645 # files actually), so we avoid doing that.
1646 if test -f "$cache_file"; then
1647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1648 echo "$as_me: loading cache $cache_file" >&6;}
1650 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1651 *) .
"./$cache_file";;
1655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1656 echo "$as_me: creating cache $cache_file" >&6;}
1660 # Check that the precious variables saved in the cache have kept the same
1662 ac_cache_corrupted
=false
1663 for ac_var
in $ac_precious_vars; do
1664 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1665 eval ac_new_set
=\
$ac_env_${ac_var}_set
1666 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1667 eval ac_new_val
=\
$ac_env_${ac_var}_value
1668 case $ac_old_set,$ac_new_set in
1670 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1671 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1672 ac_cache_corrupted
=: ;;
1674 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1675 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1676 ac_cache_corrupted
=: ;;
1679 if test "x$ac_old_val" != "x$ac_new_val"; then
1680 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1681 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1682 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1683 echo "$as_me: former value: $ac_old_val" >&2;}
1684 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1685 echo "$as_me: current value: $ac_new_val" >&2;}
1686 ac_cache_corrupted
=:
1689 # Pass precious variables to config.status.
1690 if test "$ac_new_set" = set; then
1692 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1693 *) ac_arg
=$ac_var=$ac_new_val ;;
1695 case " $ac_configure_args " in
1696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1697 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1701 if $ac_cache_corrupted; then
1702 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1703 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1704 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1705 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1706 { (exit 1); exit 1; }; }
1726 ac_cpp
='$CPP $CPPFLAGS'
1727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1734 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1735 if test -f "$ac_dir/install-sh"; then
1737 ac_install_sh
="$ac_aux_dir/install-sh -c"
1739 elif test -f "$ac_dir/install.sh"; then
1741 ac_install_sh
="$ac_aux_dir/install.sh -c"
1743 elif test -f "$ac_dir/shtool"; then
1745 ac_install_sh
="$ac_aux_dir/shtool install -c"
1749 if test -z "$ac_aux_dir"; then
1750 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1751 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1752 { (exit 1); exit 1; }; }
1755 # These three variables are undocumented and unsupported,
1756 # and are intended to be withdrawn in a future Autoconf release.
1757 # They can cause serious problems if a builder's source tree is in a directory
1758 # whose full name contains unusual characters.
1759 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1760 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1761 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1764 # Make sure we can run config.sub.
1765 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1767 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1768 { (exit 1); exit 1; }; }
1770 { echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1772 if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 ac_build_alias
=$build_alias
1776 test "x$ac_build_alias" = x
&&
1777 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1778 test "x$ac_build_alias" = x
&&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1784 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1788 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6; }
1790 case $ac_cv_build in
1792 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1793 echo "$as_me: error: invalid value of canonical build" >&2;}
1794 { (exit 1); exit 1; }; };;
1797 ac_save_IFS
=$IFS; IFS
='-'
1803 # Remember, the first character of IFS is used to create $*,
1804 # except with old shells:
1807 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1810 { echo "$as_me:$LINENO: checking host system type" >&5
1811 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1812 if test "${ac_cv_host+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test "x$host_alias" = x
; then
1816 ac_cv_host
=$ac_cv_build
1818 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1825 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1826 echo "${ECHO_T}$ac_cv_host" >&6; }
1829 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1830 echo "$as_me: error: invalid value of canonical host" >&2;}
1831 { (exit 1); exit 1; }; };;
1834 ac_save_IFS
=$IFS; IFS
='-'
1840 # Remember, the first character of IFS is used to create $*,
1841 # except with old shells:
1844 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1847 { echo "$as_me:$LINENO: checking target system type" >&5
1848 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1849 if test "${ac_cv_target+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test "x$target_alias" = x
; then
1853 ac_cv_target
=$ac_cv_host
1855 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1856 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1857 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1858 { (exit 1); exit 1; }; }
1862 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1863 echo "${ECHO_T}$ac_cv_target" >&6; }
1864 case $ac_cv_target in
1866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1867 echo "$as_me: error: invalid value of canonical target" >&2;}
1868 { (exit 1); exit 1; }; };;
1870 target
=$ac_cv_target
1871 ac_save_IFS
=$IFS; IFS
='-'
1877 # Remember, the first character of IFS is used to create $*,
1878 # except with old shells:
1881 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1884 # The aliases save the names the user supplied, while $host etc.
1885 # will get canonicalized.
1886 test -n "$target_alias" &&
1887 test "$program_prefix$program_suffix$program_transform_name" = \
1889 program_prefix
=${target_alias}-
1896 # Check whether --with-gcc was given.
1897 if test "${with_gcc+set}" = set; then
1903 if test "${srcdir}" != "." ; then
1904 V_INCLS
="-I\$(srcdir)"
1906 if test "${CFLAGS+set}" = set; then
1907 LBL_CFLAGS
="$CFLAGS"
1909 if test -z "$CC" ; then
1910 case "$target_os" in
1913 # Extract the first word of "shlicc2", so it can be a program name with args.
1914 set dummy shlicc2
; ac_word
=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$SHLICC2"; then
1921 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir
=.
1928 for ac_exec_ext
in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_SHLICC2
="yes"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1941 SHLICC2
=$ac_cv_prog_SHLICC2
1942 if test -n "$SHLICC2"; then
1943 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1944 echo "${ECHO_T}$SHLICC2" >&6; }
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1951 if test $SHLICC2 = yes ; then
1958 if test -z "$CC" -a "$with_gcc" = no
; then
1963 ac_cpp
='$CPP $CPPFLAGS'
1964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1969 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC
="$CC" # Let the user override the test.
1978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir
=.
1983 for ac_exec_ext
in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2006 if test -z "$ac_cv_prog_CC"; then
2008 # Extract the first word of "gcc", so it can be a program name with args.
2009 set dummy gcc
; ac_word
=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$ac_ct_CC"; then
2016 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 for ac_exec_ext
in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_ac_ct_CC
="gcc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2044 if test "x$ac_ct_CC" = x
; then
2047 case $cross_compiling:$ac_tool_warned in
2049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2050 whose name does not start with the host triplet. If you think this
2051 configuration is useful to you, please write to autoconf@gnu.org." >&5
2052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet. If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2055 ac_tool_warned
=yes ;;
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2066 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC
="$CC" # Let the user override the test.
2075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir
=.
2080 for ac_exec_ext
in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2104 if test -z "$CC"; then
2105 # Extract the first word of "cc", so it can be a program name with args.
2106 set dummy cc
; ac_word
=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC
="$CC" # Let the user override the test.
2116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir
=.
2121 for ac_exec_ext
in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2124 ac_prog_rejected
=yes
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 if test $ac_prog_rejected = yes; then
2136 # We found a bogon in the path, so make sure we never use it.
2137 set dummy
$ac_cv_prog_CC
2139 if test $# != 0; then
2140 # We chose a different compiler from the bogus one.
2141 # However, it has the same basename, so the bogon will be chosen
2142 # first if we set CC to just the basename; use the full file name.
2144 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2150 if test -n "$CC"; then
2151 { echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6; }
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog
in cl.exe
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC
="$CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 if test -n "$CC"; then
2193 { echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6; }
2196 { echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6; }
2201 test -n "$CC" && break
2204 if test -z "$CC"; then
2206 for ac_prog
in cl.exe
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy
$ac_prog; ac_word
=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir
=.
2223 for ac_exec_ext
in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_ac_ct_CC
="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$ac_ct_CC" && break
2248 if test "x$ac_ct_CC" = x
; then
2251 case $cross_compiling:$ac_tool_warned in
2253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2254 whose name does not start with the host triplet. If you think this
2255 configuration is useful to you, please write to autoconf@gnu.org." >&5
2256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet. If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2259 ac_tool_warned
=yes ;;
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO: checking for C compiler version" >&5
2276 ac_compiler
=`set X $ac_compile; echo $2`
2277 { (ac_try
="$ac_compiler --version >&5"
2279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283 (eval "$ac_compiler --version >&5") 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2287 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 ac_clean_files_save=$ac_clean_files
2324 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2325 # Try to create an executable without -o first, disregard a.out.
2326 # It will help us diagnose broken compilers, and finding out an intuition
2328 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2329 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2330 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2332 # List of possible output files, starting from the most likely.
2333 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2334 # only as a last resort. b.out is created by i960 compilers.
2335 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2337 # The IRIX 6 linker writes into existing files which may not be
2338 # executable, retaining their permissions. Remove them first so a
2339 # subsequent execution test works.
2341 for ac_file in $ac_files
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2350 if { (ac_try="$ac_link_default"
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_link_default") 2>&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2361 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2362 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2363 # so that the user can short-circuit this test for compilers unknown to
2365 for ac_file
in $ac_files ''
2367 test -f "$ac_file" ||
continue
2369 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2372 # We found the default executable, but exeext='' is most
2376 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2378 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380 # We set ac_cv_exeext here because the later test for it is not
2381 # safe: cross compilers may not add the suffix if given an `-o'
2382 # argument, so we may need to know it at that point already.
2383 # Even if this section looks crufty: it has the advantage of
2390 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2396 { echo "$as_me:$LINENO: result: $ac_file" >&5
2397 echo "${ECHO_T}$ac_file" >&6; }
2398 if test -z "$ac_file"; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.
$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext
=$ac_cv_exeext
2411 # Check that the compiler produces executables we can run. If not, either
2412 # the compiler is broken, or we cross compile.
2413 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2414 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2415 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2416 # If not cross compiling, check that we can run a simple program.
2417 if test "$cross_compiling" != yes; then
2418 if { ac_try
='./$ac_file'
2419 { (case "(($ac_try" in
2420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_try") 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2430 if test "$cross_compiling" = maybe; then
2433 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details.
" >&5
2436 echo "$as_me: error
: cannot run C compiled programs.
2437 If you meant to cross compile
, use \
`--host'.
2438 See \`config.log
' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2443 { echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6; }
2446 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2447 ac_clean_files=$ac_clean_files_save
2448 # Check that the compiler produces executables we can run. If not, either
2449 # the compiler is broken, or we cross compile.
2450 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2451 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2452 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2453 echo "${ECHO_T}$cross_compiling" >&6; }
2455 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2456 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2457 if { (ac_try="$ac_link"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_link") 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; then
2467 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2468 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2469 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2471 for ac_file
in conftest.exe conftest conftest.
*; do
2472 test -f "$ac_file" ||
continue
2474 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2475 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2488 rm -f conftest
$ac_cv_exeext
2489 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2490 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2492 rm -f conftest.
$ac_ext
2493 EXEEXT
=$ac_cv_exeext
2495 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2496 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2497 if test "${ac_cv_objext+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 cat >conftest.
$ac_ext <<_ACEOF
2503 cat confdefs.h
>>conftest.
$ac_ext
2504 cat >>conftest.
$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2515 rm -f conftest.o conftest.obj
2516 if { (ac_try
="$ac_compile"
2518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 for ac_file in conftest.o conftest.obj conftest.*; do
2527 test -f "$ac_file" || continue;
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log
' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details.
" >&2;}
2542 { (exit 1); exit 1; }; }
2545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2547 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2548 echo "${ECHO_T}$ac_cv_objext" >&6; }
2549 OBJEXT=$ac_cv_objext
2551 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2552 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2554 echo $ECHO_N "(cached
) $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2593 echo "$as_me: failed program was
:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2603 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2604 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2605 GCC=`test $ac_compiler_gnu = yes && echo yes`
2606 ac_test_CFLAGS=${CFLAGS+set}
2607 ac_save_CFLAGS=$CFLAGS
2608 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2609 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2610 if test "${ac_cv_prog_cc_g+set}" = set; then
2611 echo $ECHO_N "(cached
) $ECHO_C" >&6
2613 ac_save_c_werror_flag=$ac_c_werror_flag
2614 ac_c_werror_flag=yes
2617 cat >conftest.$ac_ext <<_ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2632 rm -f conftest.$ac_objext
2633 if { (ac_try="$ac_compile"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compile") 2>conftest.er1
2641 grep -v '^ *+' conftest.er1 >conftest.err
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2645 (exit $ac_status); } && {
2646 test -z "$ac_c_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest.$ac_objext; then
2651 echo "$as_me: failed program was
:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2683 (exit $ac_status); } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest.$ac_objext; then
2689 echo "$as_me: failed program was
:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2692 ac_c_werror_flag=$ac_save_c_werror_flag
2694 cat >conftest.$ac_ext <<_ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
2728 echo "$as_me: failed program was
:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_c_werror_flag=$ac_save_c_werror_flag
2743 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2754 if test "$GCC" = yes; then
2760 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2761 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2762 if test "${ac_cv_prog_cc_c89+set}" = set; then
2763 echo $ECHO_N "(cached
) $ECHO_C" >&6
2765 ac_cv_prog_cc_c89=no
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2791 s = g (p, va_arg (v,int));
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2797 function prototypes and stuff, but not '\xHH' hex character constants.
2798 These don't provoke an error unfortunately, instead are silently treated
2799 as 'x'. The following induces an error, until -std is added to get
2800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2801 array size at least. It's necessary to write '\x00'==0 to get something
2802 that's true only with -std. */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2806 inside strings and character constants. */
2808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2810 int test (int i, double x);
2811 struct s1 {int (*f) (int a);};
2812 struct s2 {int (*f) (double a);};
2813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 CC="$ac_save_CC $ac_arg"
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 ac_cv_prog_cc_c89=$ac_arg
2847 echo "$as_me: failed program was
:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f core conftest.err conftest.$ac_objext
2854 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2856 rm -f conftest.$ac_ext
2861 case "x
$ac_cv_prog_cc_c89" in
2863 { echo "$as_me:$LINENO: result
: none needed
" >&5
2864 echo "${ECHO_T}none needed
" >&6; } ;;
2866 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2867 echo "${ECHO_T}unsupported
" >&6; } ;;
2869 CC="$CC $ac_cv_prog_cc_c89"
2870 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test "$GCC" = yes ; then
2882 if test "$SHLICC2" = yes ; then
2883 ac_cv_lbl_gcc_vers=2
2886 { echo "$as_me:$LINENO: checking gcc version
" >&5
2887 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2888 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2889 echo $ECHO_N "(cached
) $ECHO_C" >&6
2891 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2892 sed -e '/^gcc version /!d' \
2893 -e 's/^gcc version //' \
2894 -e 's/ .*//' -e 's/^[^0-9]*//' \
2898 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2899 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2900 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2905 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2906 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2907 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2908 echo $ECHO_N "(cached
) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 #include <sys/types.h>
2921 int frob(int, char *)
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_cv_lbl_cc_ansi_prototypes=yes
2945 echo "$as_me: failed program was
:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 ac_cv_lbl_cc_ansi_prototypes=no
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2955 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2956 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2957 case "$target_os" in
2960 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2961 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2962 savedcflags="$CFLAGS"
2963 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2964 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2965 echo $ECHO_N "(cached
) $ECHO_C" >&6
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <sys/types.h>
2977 int frob(int, char *)
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 ac_cv_lbl_cc_hpux_cc_aa=yes
3001 echo "$as_me: failed program was
:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 ac_cv_lbl_cc_hpux_cc_aa=no
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3011 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3012 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3013 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3014 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3015 { (exit 1); exit 1; }; }
3017 CFLAGS="$savedcflags"
3018 V_CCOPT="-Aa $V_CCOPT"
3020 cat >>confdefs.h <<\_ACEOF
3021 #define _HPUX_SOURCE 1
3027 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3028 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3029 { (exit 1); exit 1; }; }
3033 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3034 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3036 case "$target_os" in
3039 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3043 V_CCOPT="$V_CCOPT -std1 -g3"
3047 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3048 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3049 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3050 echo $ECHO_N "(cached
) $ECHO_C" >&6
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <sys/types.h>
3062 struct a { int b; };
3063 void c(const struct a *)
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3081 (exit $ac_status); } && {
3082 test -z "$ac_c_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest.$ac_objext; then
3085 ac_cv_lbl_cc_const_proto=yes
3087 echo "$as_me: failed program was
:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 ac_cv_lbl_cc_const_proto=no
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3097 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3098 if test $ac_cv_lbl_cc_const_proto = no ; then
3099 cat >>confdefs.h <<\_ACEOF
3108 { echo "$as_me:$LINENO: checking
for inline
" >&5
3109 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3110 save_CFLAGS="$CFLAGS"
3112 if test "${ac_cv_lbl_inline+set}" = set; then
3113 echo $ECHO_N "(cached
) $ECHO_C" >&6
3118 for ac_lbl_inline in inline __inline__ __inline
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #define inline $ac_lbl_inline
3127 static inline struct iltest *foo(void);
3133 static inline struct iltest *
3136 static struct iltest xxx;
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_lbl_cc_inline=yes
3167 echo "$as_me: failed program was
:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 if test "$ac_lbl_cc_inline" = yes ; then
3178 if test "$ac_lbl_cc_inline" = yes ; then
3179 ac_cv_lbl_inline=$ac_lbl_inline
3183 CFLAGS="$save_CFLAGS"
3184 if test ! -z "$ac_cv_lbl_inline" ; then
3185 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3186 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3188 { echo "$as_me:$LINENO: result
: no
" >&5
3189 echo "${ECHO_T}no
" >&6; }
3192 cat >>confdefs.h <<_ACEOF
3193 #define inline $ac_cv_lbl_inline
3197 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3198 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3199 if test "${ac_cv___attribute__+set}" = set; then
3200 echo $ECHO_N "(cached
) $ECHO_C" >&6
3203 cat >conftest.$ac_ext <<_ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3212 static void foo(void) __attribute__ ((noreturn));
3221 main(int argc, char **argv)
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3240 (exit $ac_status); } && {
3241 test -z "$ac_c_werror_flag" ||
3242 test ! -s conftest.err
3243 } && test -s conftest.$ac_objext; then
3244 ac_cv___attribute__=yes
3246 echo "$as_me: failed program was
:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 ac_cv___attribute__=no
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 if test "$ac_cv___attribute__" = "yes"; then
3257 cat >>confdefs.h <<\_ACEOF
3258 #define HAVE___ATTRIBUTE__ 1
3261 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3263 V_DEFS="$V_DEFS -D_U_=\"\""
3265 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3266 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3269 { echo "$as_me:$LINENO: checking
for u_int8_t using
$CC" >&5
3270 echo $ECHO_N "checking
for u_int8_t using
$CC...
$ECHO_C" >&6; }
3271 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3272 echo $ECHO_N "(cached
) $ECHO_C" >&6
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3281 # include "confdefs.h
"
3282 # include <sys/types.h>
3284 # include <stdlib.h>
3285 # include <stddef.h>
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_lbl_have_u_int8_t=yes
3314 echo "$as_me: failed program was
:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 ac_cv_lbl_have_u_int8_t=no
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int8_t" >&5
3324 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3325 if test $ac_cv_lbl_have_u_int8_t = no ; then
3327 cat >>confdefs.h <<\_ACEOF
3328 #define u_int8_t u_char
3332 { echo "$as_me:$LINENO: checking
for u_int16_t using
$CC" >&5
3333 echo $ECHO_N "checking
for u_int16_t using
$CC...
$ECHO_C" >&6; }
3334 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3335 echo $ECHO_N "(cached
) $ECHO_C" >&6
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3344 # include "confdefs.h
"
3345 # include <sys/types.h>
3347 # include <stdlib.h>
3348 # include <stddef.h>
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3375 ac_cv_lbl_have_u_int16_t=yes
3377 echo "$as_me: failed program was
:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 ac_cv_lbl_have_u_int16_t=no
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int16_t" >&5
3387 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3388 if test $ac_cv_lbl_have_u_int16_t = no ; then
3390 cat >>confdefs.h <<\_ACEOF
3391 #define u_int16_t u_short
3395 { echo "$as_me:$LINENO: checking
for u_int32_t using
$CC" >&5
3396 echo $ECHO_N "checking
for u_int32_t using
$CC...
$ECHO_C" >&6; }
3397 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3398 echo $ECHO_N "(cached
) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3407 # include "confdefs.h
"
3408 # include <sys/types.h>
3410 # include <stdlib.h>
3411 # include <stddef.h>
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 ac_cv_lbl_have_u_int32_t=yes
3440 echo "$as_me: failed program was
:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_cv_lbl_have_u_int32_t=no
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int32_t" >&5
3450 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3451 if test $ac_cv_lbl_have_u_int32_t = no ; then
3453 cat >>confdefs.h <<\_ACEOF
3454 #define u_int32_t u_int
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3465 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3466 # On Suns, sometimes $CPP names a directory.
3467 if test -n "$CPP" && test -d "$CPP"; then
3470 if test -z "$CPP"; then
3471 if test "${ac_cv_prog_CPP+set}" = set; then
3472 echo $ECHO_N "(cached
) $ECHO_C" >&6
3474 # Double quotes because CPP needs to be expanded
3475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3478 for ac_c_preproc_warn_flag in '' yes
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error
" is here to catch this case.
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3493 # include <limits.h>
3495 # include <assert.h>
3499 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3517 echo "$as_me: failed program was
:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 # Broken: fails on valid input.
3524 rm -f conftest.err conftest.$ac_ext
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <ac_nonexistent.h>
3536 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3552 # Broken: success on invalid input.
3555 echo "$as_me: failed program was
:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # Passes both tests.
3563 rm -f conftest.err conftest.$ac_ext
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.err conftest.$ac_ext
3568 if $ac_preproc_ok; then
3580 { echo "$as_me:$LINENO: result
: $CPP" >&5
3581 echo "${ECHO_T}$CPP" >&6; }
3583 for ac_c_preproc_warn_flag in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error
" is here to catch this case.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 # include <limits.h>
3600 # include <assert.h>
3604 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
3617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3622 echo "$as_me: failed program was
:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Broken: fails on valid input.
3629 rm -f conftest.err conftest.$ac_ext
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3641 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3653 (exit $ac_status); } >/dev/null && {
3654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3657 # Broken: success on invalid input.
3660 echo "$as_me: failed program was
:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3668 rm -f conftest.err conftest.$ac_ext
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3676 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3677 See \
`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log
' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3686 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and
test for each of PROGNAME-LIST
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_prog
in grep ggrep
; do
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3716 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3727 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3728 ac_count
=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP
="$ac_path_GREP"
3732 ac_path_GREP_max
=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3741 $ac_path_GREP_found && break 3
3751 GREP
="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_GREP
=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP
="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3775 then ac_cv_path_EGREP
="$GREP -E"
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy
egrep; ac_prog_name
=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_path_EGREP_found
=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_prog
in egrep; do
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3810 ac_count
=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP
="$ac_path_EGREP"
3814 ac_path_EGREP_max
=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3823 $ac_path_EGREP_found && break 3
3833 EGREP
="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3841 ac_cv_path_EGREP
=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP
="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext
3877 if { (ac_try
="$ac_compile"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_cv_header_stdc=yes
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 ac_cv_header_stdc=no
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 if test $ac_cv_header_stdc = yes; then
3904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "memchr" >/dev/null 2>&1; then
3918 ac_cv_header_stdc=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "free" >/dev/null 2>&1; then
3939 ac_cv_header_stdc=no
3945 if test $ac_cv_header_stdc = yes; then
3946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3947 if test "$cross_compiling" = yes; then
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3958 #if ((' ' & 0x0FF) == 0x020)
3959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 # define ISLOWER(c) \
3963 (('a' <= (c) && (c) <= 'i') \
3964 || ('j' <= (c) && (c) <= 'r') \
3965 || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3974 for (i = 0; i < 256; i++)
3975 if (XOR (islower (i), ISLOWER (i))
3976 || toupper (i) != TOUPPER (i))
3981 rm -f conftest$ac_exeext
3982 if { (ac_try="$ac_link"
3984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3985 *) ac_try_echo
=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_link") 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3992 { (case "(($ac_try" in
3993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_try") 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4003 echo "$as_me: program exited with status $ac_status" >&5
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4008 ac_cv_header_stdc=no
4010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4018 if test $ac_cv_header_stdc = yes; then
4020 cat >>confdefs.h <<\_ACEOF
4021 #define STDC_HEADERS 1
4026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4037 inttypes.h stdint.h unistd.h
4039 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_includes_default
4053 #include <$ac_header>
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4059 *) ac_try_echo
=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1
>conftest.err
4066 cat conftest.err
>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.
$ac_objext; then
4072 eval "$as_ac_Header=yes"
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.
$ac_ext >&5
4077 eval "$as_ac_Header=no"
4080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4082 ac_res
=`eval echo '${'$as_ac_Header'}'`
4083 { echo "$as_me:$LINENO: result: $ac_res" >&5
4084 echo "${ECHO_T}$ac_res" >&6; }
4085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4086 cat >>confdefs.h
<<_ACEOF
4087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
4101 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4102 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4105 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 ac_res
=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4112 # Is the header compilable?
4113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4115 cat >conftest.
$ac_ext <<_ACEOF
4118 cat confdefs.h
>>conftest.
$ac_ext
4119 cat >>conftest.
$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 $ac_includes_default
4122 #include <$ac_header>
4124 rm -f conftest.
$ac_objext
4125 if { (ac_try
="$ac_compile"
4127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 } && test -s conftest.$ac_objext; then
4141 ac_header_compiler=yes
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 ac_header_compiler=no
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4151 echo "${ECHO_T}$ac_header_compiler" >&6; }
4153 # Is the header present?
4154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <$ac_header>
4164 if { (ac_try="$ac_cpp conftest.$ac_ext"
4166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4167 *) ac_try_echo
=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1
>conftest.err
4174 cat conftest.err
>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev
/null
&& {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4180 ac_header_preproc
=yes
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.
$ac_ext >&5
4185 ac_header_preproc
=no
4188 rm -f conftest.err conftest.
$ac_ext
4189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4190 echo "${ECHO_T}$ac_header_preproc" >&6; }
4192 # So? What about this header?
4193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4199 ac_header_preproc
=yes
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 eval "$as_ac_Header=\$ac_header_preproc"
4224 ac_res
=`eval echo '${'$as_ac_Header'}'`
4225 { echo "$as_me:$LINENO: result: $ac_res" >&5
4226 echo "${ECHO_T}$ac_res" >&6; }
4229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230 cat >>confdefs.h
<<_ACEOF
4231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 for ac_header
in net
/pfvar.h
4241 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4244 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4250 cat confdefs.h
>>conftest.
$ac_ext
4251 cat >>conftest.
$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <sys/types.h>
4254 #include <sys/socket.h>
4257 #include <$ac_header>
4259 rm -f conftest.
$ac_objext
4260 if { (ac_try
="$ac_compile"
4262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest.$ac_objext; then
4276 eval "$as_ac_Header=yes"
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 eval "$as_ac_Header=no"
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 ac_res=`eval echo '${'$as_ac_Header'}'`
4287 { echo "$as_me:$LINENO: result: $ac_res" >&5
4288 echo "${ECHO_T}$ac_res" >&6; }
4289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4290 cat >>confdefs.h <<_ACEOF
4291 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4299 for ac_header in netinet/if_ether.h
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <sys/types.h>
4314 #include <sys/socket.h>
4316 #include <$ac_header>
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4322 *) ac_try_echo
=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_compile") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1
>conftest.err
4329 cat conftest.err
>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && {
4332 test -z "$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 } && test -s conftest.
$ac_objext; then
4335 eval "$as_ac_Header=yes"
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.
$ac_ext >&5
4340 eval "$as_ac_Header=no"
4343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4345 ac_res
=`eval echo '${'$as_ac_Header'}'`
4346 { echo "$as_me:$LINENO: result: $ac_res" >&5
4347 echo "${ECHO_T}$ac_res" >&6; }
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349 cat >>confdefs.h
<<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4359 # The simple test didn't work.
4360 # Do we need to include <net/if.h> first?
4361 # Unset ac_cv_header_netinet_if_ether_h so we don't
4362 # treat the previous failure as a cached value and
4363 # suppress the next test.
4365 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4366 echo "$as_me: Rechecking with some additional includes" >&6;}
4367 unset ac_cv_header_netinet_if_ether_h
4369 for ac_header
in netinet
/if_ether.h
4371 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4374 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.
$ac_ext <<_ACEOF
4380 cat confdefs.h
>>conftest.
$ac_ext
4381 cat >>conftest.
$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/socket.h>
4385 #include <netinet/in.h>
4390 #include <$ac_header>
4392 rm -f conftest.
$ac_objext
4393 if { (ac_try
="$ac_compile"
4395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest.$ac_objext; then
4409 eval "$as_ac_Header=yes"
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 eval "$as_ac_Header=no"
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 ac_res=`eval echo '${'$as_ac_Header'}'`
4420 { echo "$as_me:$LINENO: result: $ac_res" >&5
4421 echo "${ECHO_T}$ac_res" >&6; }
4422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4423 cat >>confdefs.h <<_ACEOF
4424 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4433 if test "$GCC" = yes ; then
4434 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
4435 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
4436 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 * This generates a "duplicate case value" when fixincludes
4449 # include <sys/types.h>
4450 # include <sys/time.h>
4451 # include <sys/ioctl.h>
4452 # ifdef HAVE_SYS_IOCCOM_H
4453 # include <sys/ioccom.h>
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4470 *) ac_try_echo
=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1
>conftest.err
4477 cat conftest.err
>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.
$ac_objext; then
4483 ac_cv_lbl_gcc_fixincludes
=yes
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_cv_lbl_gcc_fixincludes
=no
4491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4494 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
4495 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
4496 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4497 # Don't cache failure
4498 unset ac_cv_lbl_gcc_fixincludes
4499 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
4500 echo "$as_me: error: see the INSTALL for more info" >&2;}
4501 { (exit 1); exit 1; }; }
4507 for ac_func
in strerror strlcpy
4509 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4512 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.
$ac_ext <<_ACEOF
4518 cat confdefs.h
>>conftest.
$ac_ext
4519 cat >>conftest.
$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4523 #define $ac_func innocuous_$ac_func
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func (); below.
4527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 <limits.h> exists even on freestanding compilers. */
4531 # include <limits.h>
4533 # include <assert.h>
4538 /* Override any GCC internal prototype to avoid an error.
4539 Use char because int might match the return type of a GCC
4540 builtin and then its argument prototype would still apply. */
4545 /* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548 #if defined __stub_$ac_func || defined __stub___$ac_func
4560 rm -f conftest.
$ac_objext conftest
$ac_exeext
4561 if { (ac_try
="$ac_link"
4563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_link") 2>conftest.er1
4569 grep -v '^ *+' conftest.er1 >conftest.err
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } && {
4574 test -z "$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 } && test -s conftest$ac_exeext &&
4577 $as_test_x conftest$ac_exeext; then
4578 eval "$as_ac_var=yes"
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 eval "$as_ac_var=no"
4586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4587 conftest$ac_exeext conftest.$ac_ext
4589 ac_res=`eval echo '${'$as_ac_var'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591 echo "${ECHO_T}$ac_res" >&6; }
4592 if test `eval echo '${'$as_ac_var'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
4604 for ac_func in vsnprintf snprintf
4606 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
4607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4620 #define $ac_func innocuous_$ac_func
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char $ac_func (); below.
4624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4625 <limits.h> exists even on freestanding compilers. */
4628 # include <limits.h>
4630 # include <assert.h>
4635 /* Override any GCC internal prototype to avoid an error.
4636 Use char because int might match the return type of a GCC
4637 builtin and then its argument prototype would still apply. */
4642 /* The GNU C library defines this for functions which it implements
4643 to always fail with ENOSYS. Some functions are actually named
4644 something starting with __ and the normal name is an alias. */
4645 #if defined __stub_$ac_func || defined __stub___$ac_func
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (ac_try="$ac_link"
4660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4661 *) ac_try_echo
=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_link") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1
>conftest.err
4668 cat conftest.err
>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest
$ac_exeext &&
4674 $as_test_x conftest
$ac_exeext; then
4675 eval "$as_ac_var=yes"
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4680 eval "$as_ac_var=no"
4683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4684 conftest
$ac_exeext conftest.
$ac_ext
4686 ac_res
=`eval echo '${'$as_ac_var'}'`
4687 { echo "$as_me:$LINENO: result: $ac_res" >&5
4688 echo "${ECHO_T}$ac_res" >&6; }
4689 if test `eval echo '${'$as_ac_var'}'` = yes; then
4690 cat >>confdefs.h
<<_ACEOF
4691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4699 if test $needsnprintf = yes; then
4700 case " $LIBOBJS " in
4701 *" snprintf.$ac_objext "* ) ;;
4702 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4709 # Do this before checking for ether_hostton(), as it's a
4710 # "gethostbyname() -ish function".
4713 # Most operating systems have gethostbyname() in the default searched
4714 # libraries (i.e. libc):
4715 # Some OSes (eg. Solaris) place it in libnsl
4716 # Some strange OSes (SINIX) have it in libsocket:
4717 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4718 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_gethostbyname+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_func_search_save_LIBS
=$LIBS
4723 cat >conftest.
$ac_ext <<_ACEOF
4726 cat confdefs.h
>>conftest.
$ac_ext
4727 cat >>conftest.
$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4736 char gethostbyname ();
4740 return gethostbyname ();
4745 for ac_lib
in '' nsl socket resolv
; do
4746 if test -z "$ac_lib"; then
4747 ac_res
="none required"
4750 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4752 rm -f conftest.
$ac_objext conftest
$ac_exeext
4753 if { (ac_try
="$ac_link"
4755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770 ac_cv_search_gethostbyname=$ac_res
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780 if test "${ac_cv_search_gethostbyname+set}" = set; then
4784 if test "${ac_cv_search_gethostbyname+set}" = set; then
4787 ac_cv_search_gethostbyname=no
4790 LIBS=$ac_func_search_save_LIBS
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4793 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4794 ac_res=$ac_cv_search_gethostbyname
4795 if test "$ac_res" != no; then
4796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4800 # Unfortunately libsocket sometimes depends on libnsl and
4801 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4802 if test "$ac_cv_search_gethostbyname" = "no"
4804 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 ac_check_lib_save_LIBS=$LIBS
4810 LIBS="-lsocket -lnsl $LIBS"
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4818 /* Override any GCC internal prototype to avoid an error.
4819 Use char because int might match the return type of a GCC
4820 builtin and then its argument prototype would still apply. */
4824 char gethostbyname ();
4828 return gethostbyname ();
4833 rm -f conftest.$ac_objext conftest$ac_exeext
4834 if { (ac_try="$ac_link"
4836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4837 *) ac_try_echo
=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_link") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1
>conftest.err
4844 cat conftest.err
>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest
$ac_exeext &&
4850 $as_test_x conftest
$ac_exeext; then
4851 ac_cv_lib_socket_gethostbyname
=yes
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.
$ac_ext >&5
4856 ac_cv_lib_socket_gethostbyname
=no
4859 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4860 conftest
$ac_exeext conftest.
$ac_ext
4861 LIBS
=$ac_check_lib_save_LIBS
4863 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4864 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4865 if test $ac_cv_lib_socket_gethostbyname = yes; then
4866 LIBS
="-lsocket -lnsl $LIBS"
4870 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4871 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4872 if test "${ac_cv_search_socket+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_func_search_save_LIBS
=$LIBS
4876 cat >conftest.
$ac_ext <<_ACEOF
4879 cat confdefs.h
>>conftest.
$ac_ext
4880 cat >>conftest.
$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 /* Override any GCC internal prototype to avoid an error.
4884 Use char because int might match the return type of a GCC
4885 builtin and then its argument prototype would still apply. */
4898 for ac_lib
in '' socket
; do
4899 if test -z "$ac_lib"; then
4900 ac_res
="none required"
4903 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4905 rm -f conftest.
$ac_objext conftest
$ac_exeext
4906 if { (ac_try
="$ac_link"
4908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_link") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest$ac_exeext &&
4922 $as_test_x conftest$ac_exeext; then
4923 ac_cv_search_socket=$ac_res
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4933 if test "${ac_cv_search_socket+set}" = set; then
4937 if test "${ac_cv_search_socket+set}" = set; then
4940 ac_cv_search_socket=no
4943 LIBS=$ac_func_search_save_LIBS
4945 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4946 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4947 ac_res=$ac_cv_search_socket
4948 if test "$ac_res" != no; then
4949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4952 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4953 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4954 if test "${ac_cv_lib_socket_socket+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 ac_check_lib_save_LIBS=$LIBS
4958 LIBS="-lsocket -lnsl $LIBS"
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4966 /* Override any GCC internal prototype to avoid an error.
4967 Use char because int might match the return type of a GCC
4968 builtin and then its argument prototype would still apply. */
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (ac_try="$ac_link"
4984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4985 *) ac_try_echo
=$ac_try;;
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_link") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1
>conftest.err
4992 cat conftest.err
>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest
$ac_exeext &&
4998 $as_test_x conftest
$ac_exeext; then
4999 ac_cv_lib_socket_socket
=yes
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.
$ac_ext >&5
5004 ac_cv_lib_socket_socket
=no
5007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5008 conftest
$ac_exeext conftest.
$ac_ext
5009 LIBS
=$ac_check_lib_save_LIBS
5011 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5012 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5013 if test $ac_cv_lib_socket_socket = yes; then
5014 LIBS
="-lsocket -lnsl $LIBS"
5019 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5020 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5021 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5022 if test "${ac_cv_search_putmsg+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 ac_func_search_save_LIBS
=$LIBS
5026 cat >conftest.
$ac_ext <<_ACEOF
5029 cat confdefs.h
>>conftest.
$ac_ext
5030 cat >>conftest.
$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 /* Override any GCC internal prototype to avoid an error.
5034 Use char because int might match the return type of a GCC
5035 builtin and then its argument prototype would still apply. */
5048 for ac_lib
in '' str
; do
5049 if test -z "$ac_lib"; then
5050 ac_res
="none required"
5053 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5055 rm -f conftest.
$ac_objext conftest
$ac_exeext
5056 if { (ac_try
="$ac_link"
5058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_link") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest$ac_exeext &&
5072 $as_test_x conftest$ac_exeext; then
5073 ac_cv_search_putmsg=$ac_res
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5083 if test "${ac_cv_search_putmsg+set}" = set; then
5087 if test "${ac_cv_search_putmsg+set}" = set; then
5090 ac_cv_search_putmsg=no
5093 LIBS=$ac_func_search_save_LIBS
5095 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5096 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5097 ac_res=$ac_cv_search_putmsg
5098 if test "$ac_res" != no; then
5099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5106 # You are in a twisty little maze of UN*Xes, all different.
5107 # Some might not have ether_hostton().
5108 # Some might have it, but not declare it in any header file.
5109 # Some might have it, but declare it in <netinet/if_ether.h>.
5110 # Some might have it, but declare it in <netinet/ether.h>
5111 # (And some might have it but document it as something declared in
5112 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5114 # Before you is a C compiler.
5117 for ac_func in ether_hostton
5119 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5133 #define $ac_func innocuous_$ac_func
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char $ac_func (); below.
5137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 <limits.h> exists even on freestanding compilers. */
5141 # include <limits.h>
5143 # include <assert.h>
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5155 /* The GNU C library defines this for functions which it implements
5156 to always fail with ENOSYS. Some functions are actually named
5157 something starting with __ and the normal name is an alias. */
5158 #if defined __stub_$ac_func || defined __stub___$ac_func
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (ac_try="$ac_link"
5173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5174 *) ac_try_echo
=$ac_try;;
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_link") 2>conftest.er1
5179 grep -v '^ *+' conftest.er1
>conftest.err
5181 cat conftest.err
>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && {
5184 test -z "$ac_c_werror_flag" ||
5185 test ! -s conftest.err
5186 } && test -s conftest
$ac_exeext &&
5187 $as_test_x conftest
$ac_exeext; then
5188 eval "$as_ac_var=yes"
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.
$ac_ext >&5
5193 eval "$as_ac_var=no"
5196 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5197 conftest
$ac_exeext conftest.
$ac_ext
5199 ac_res
=`eval echo '${'$as_ac_var'}'`
5200 { echo "$as_me:$LINENO: result: $ac_res" >&5
5201 echo "${ECHO_T}$ac_res" >&6; }
5202 if test `eval echo '${'$as_ac_var'}'` = yes; then
5203 cat >>confdefs.h
<<_ACEOF
5204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5210 if test "$ac_cv_func_ether_hostton" = yes; then
5212 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5214 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5216 # Yes. Does it declare ether_hostton()?
5218 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5219 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5220 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 cat >conftest.
$ac_ext <<_ACEOF
5226 cat confdefs.h
>>conftest.
$ac_ext
5227 cat >>conftest.
$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 #include <sys/socket.h>
5232 #include <netinet/in.h>
5233 #include <arpa/inet.h>
5237 #include <netinet/if_ether.h>
5243 #ifndef ether_hostton
5244 (void) ether_hostton;
5251 rm -f conftest.
$ac_objext
5252 if { (ac_try
="$ac_compile"
5254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_cv_have_decl_ether_hostton=yes
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_cv_have_decl_ether_hostton=no
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5279 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5280 if test $ac_cv_have_decl_ether_hostton = yes; then
5283 cat >>confdefs.h <<\_ACEOF
5284 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5294 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5296 # No, how about <netinet/ether.h>, as on Linux?
5299 for ac_header in netinet/ether.h
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310 echo "${ECHO_T}$ac_res" >&6; }
5312 # Is the header compilable?
5313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5328 *) ac_try_echo
=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1
>conftest.err
5335 cat conftest.err
>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.
$ac_objext; then
5341 ac_header_compiler
=yes
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.
$ac_ext >&5
5346 ac_header_compiler
=no
5349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5351 echo "${ECHO_T}$ac_header_compiler" >&6; }
5353 # Is the header present?
5354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5356 cat >conftest.
$ac_ext <<_ACEOF
5359 cat confdefs.h
>>conftest.
$ac_ext
5360 cat >>conftest.
$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <$ac_header>
5364 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null && {
5377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5380 ac_header_preproc=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_header_preproc=no
5388 rm -f conftest.err conftest.$ac_ext
5389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6; }
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc=yes
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 eval "$as_ac_Header=\$ac_header_preproc"
5424 ac_res=`eval echo '${'$as_ac_Header'}'`
5425 { echo "$as_me:$LINENO: result: $ac_res" >&5
5426 echo "${ECHO_T}$ac_res" >&6; }
5429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5438 if test "$ac_cv_header_netinet_ether_h" = yes; then
5440 # We have it - does it declare ether_hostton()?
5441 # Unset ac_cv_have_decl_ether_hostton so we don't
5442 # treat the previous failure as a cached value and
5443 # suppress the next test.
5445 unset ac_cv_have_decl_ether_hostton
5446 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5447 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5448 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5458 #include <netinet/ether.h>
5464 #ifndef ether_hostton
5465 (void) ether_hostton;
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5476 *) ac_try_echo
=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5481 grep -v '^ *+' conftest.er1
>conftest.err
5483 cat conftest.err
>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_c_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.
$ac_objext; then
5489 ac_cv_have_decl_ether_hostton
=yes
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.
$ac_ext >&5
5494 ac_cv_have_decl_ether_hostton
=no
5497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5500 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5501 if test $ac_cv_have_decl_ether_hostton = yes; then
5504 cat >>confdefs.h
<<\_ACEOF
5505 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5514 # Is ether_hostton() declared?
5516 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5518 # No, we'll have to declare it ourselves.
5519 # Do we have "struct ether_addr"?
5521 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5522 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
5523 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat >conftest.
$ac_ext <<_ACEOF
5529 cat confdefs.h
>>conftest.
$ac_ext
5530 cat >>conftest.
$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 #include <sys/socket.h>
5535 #include <netinet/in.h>
5536 #include <arpa/inet.h>
5540 #include <netinet/if_ether.h>
5543 typedef struct ether_addr ac__type_new_;
5547 if ((ac__type_new_ *) 0)
5549 if (sizeof (ac__type_new_))
5555 rm -f conftest.
$ac_objext
5556 if { (ac_try
="$ac_compile"
5558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_cv_type_struct_ether_addr=yes
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_cv_type_struct_ether_addr=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5583 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
5584 if test $ac_cv_type_struct_ether_addr = yes; then
5586 cat >>confdefs.h <<_ACEOF
5587 #define HAVE_STRUCT_ETHER_ADDR 1
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_DECL_ETHER_HOSTTON 0
5600 cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_DECL_ETHER_HOSTTON 1
5607 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5608 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
5609 # Check whether --enable-protochain was given.
5610 if test "${enable_protochain+set}" = set; then
5611 enableval=$enable_protochain;
5614 case "x$enable_protochain" in
5615 xyes) enable_protochain=enabled ;;
5616 xno) enable_protochain=disabled ;;
5617 x) enable_protochain=enabled ;;
5620 if test "$enable_protochain" = "disabled"; then
5622 cat >>confdefs.h <<\_ACEOF
5623 #define NO_PROTOCHAIN 1
5627 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5628 echo "${ECHO_T}${enable_protochain}" >&6; }
5630 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5631 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5632 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5633 { (exit 1); exit 1; }; }
5636 # Check whether --with-pcap was given.
5637 if test "${with_pcap+set}" = set; then
5641 { echo "$as_me:$LINENO: checking packet capture type" >&5
5642 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
5643 if test ! -z "$with_pcap" ; then
5645 elif test -r /dev/bpf ; then
5647 # Cloning BPF device.
5651 cat >>confdefs.h <<\_ACEOF
5652 #define HAVE_CLONING_BPF 1
5655 elif test -r /dev/bpf0 ; then
5657 elif test -r /usr/include/net/pfilt.h ; then
5659 elif test -r /dev/enet ; then
5661 elif test -r /dev/nit ; then
5663 elif test -r /usr/include/sys/net/nit.h ; then
5665 elif test -r /usr/include/linux/socket.h ; then
5667 elif test -r /usr/include/net/raw.h ; then
5669 elif test -r /usr/include/odmi.h ; then
5671 # On AIX, the BPF devices might not yet be present - they're
5672 # created the first time libpcap runs after booting.
5673 # We check for odmi.h instead.
5676 elif test -r /usr/include/sys/dlpi.h ; then
5678 elif test -c /dev/bpf0 ; then # check again in case not readable
5680 elif test -c /dev/enet ; then # check again in case not readable
5682 elif test -c /dev/nit ; then # check again in case not readable
5687 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
5688 echo "${ECHO_T}$V_PCAP" >&6; }
5690 if test "$V_PCAP" = null
5693 # We can't capture, so we can't open any capture
5694 # devices, so we won't return any interfaces.
5698 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
5699 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
5700 if test "${ac_cv_func_getifaddrs+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5711 #define getifaddrs innocuous_getifaddrs
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char getifaddrs (); below.
5715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716 <limits.h> exists even on freestanding compilers. */
5719 # include <limits.h>
5721 # include <assert.h>
5726 /* Override any GCC internal prototype to avoid an error.
5727 Use char because int might match the return type of a GCC
5728 builtin and then its argument prototype would still apply. */
5733 /* The GNU C library defines this for functions which it implements
5734 to always fail with ENOSYS. Some functions are actually named
5735 something starting with __ and the normal name is an alias. */
5736 #if defined __stub_getifaddrs || defined __stub___getifaddrs
5743 return getifaddrs ();
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (ac_try="$ac_link"
5751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5752 *) ac_try_echo
=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_link") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest
$ac_exeext &&
5765 $as_test_x conftest
$ac_exeext; then
5766 ac_cv_func_getifaddrs
=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.
$ac_ext >&5
5771 ac_cv_func_getifaddrs
=no
5774 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5775 conftest
$ac_exeext conftest.
$ac_ext
5777 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5778 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
5779 if test $ac_cv_func_getifaddrs = yes; then
5782 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5783 # as well, just in case some platform is really weird.
5785 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5786 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5787 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5788 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5792 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5794 # Is the header compilable?
5795 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5796 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <ifaddrs.h>
5806 rm -f conftest.
$ac_objext
5807 if { (ac_try
="$ac_compile"
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_header_compiler=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_header_compiler=no
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6; }
5835 # Is the header present?
5836 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5837 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <ifaddrs.h>
5846 if { (ac_try="$ac_cpp conftest.$ac_ext"
5848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5849 *) ac_try_echo
=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1
>conftest.err
5856 cat conftest.err
>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev
/null
&& {
5859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5862 ac_header_preproc
=yes
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.
$ac_ext >&5
5867 ac_header_preproc
=no
5870 rm -f conftest.err conftest.
$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5872 echo "${ECHO_T}$ac_header_preproc" >&6; }
5874 # So? What about this header?
5875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5877 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5878 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5880 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5881 ac_header_preproc
=yes
5884 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5885 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5887 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5889 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5891 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5893 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5895 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5899 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5900 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5901 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_cv_header_ifaddrs_h
=$ac_header_preproc
5906 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5907 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5910 if test $ac_cv_header_ifaddrs_h = yes; then
5913 # We have the header, so we use "getifaddrs()" to
5914 # get the list of interfaces.
5921 # We don't have the header - give up.
5922 # XXX - we could also fall back on some other
5923 # mechanism, but, for now, this'll catch this
5924 # problem so that we can at least try to figure
5925 # out something to do on systems with "getifaddrs()"
5926 # but without "ifaddrs.h", if there is something
5927 # we can do on those systems.
5929 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5930 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5931 { (exit 1); exit 1; }; }
5940 # Well, we don't have "getifaddrs()", so we have to use
5941 # some other mechanism; determine what that mechanism is.
5943 # The first thing we use is the type of capture mechanism,
5944 # which is somewhat of a proxy for the OS we're using.
5950 # This might be Solaris 8 or later, with
5951 # SIOCGLIFCONF, or it might be some other OS
5952 # or some older version of Solaris, with
5955 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5956 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
5957 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cat >conftest.
$ac_ext <<_ACEOF
5963 cat confdefs.h
>>conftest.
$ac_ext
5964 cat >>conftest.
$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <sys/param.h>
5967 #include <sys/file.h>
5968 #include <sys/ioctl.h>
5969 #include <sys/socket.h>
5970 #include <sys/sockio.h>
5974 ioctl(0, SIOCGLIFCONF, (char *)0);
5979 rm -f conftest.
$ac_objext
5980 if { (ac_try
="$ac_compile"
5982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
5996 ac_cv_lbl_have_siocglifconf=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_lbl_have_siocglifconf=no
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
6008 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
6009 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6018 # Assume we just have SIOCGIFCONF.
6019 # (XXX - on at least later Linux kernels, there's
6020 # another mechanism, and we should be using that
6030 { echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
6031 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6; }
6032 # Check whether --enable-ipv6 was given.
6033 if test "${enable_ipv6+set}" = set; then
6034 enableval=$enable_ipv6;
6037 if test "$enable_ipv6" = "yes"; then
6039 cat >>confdefs.h <<\_ACEOF
6044 { echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
6045 echo "${ECHO_T}${enable_ipv6-no}" >&6; }
6047 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
6048 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
6049 # Check whether --enable-optimizer-dbg was given.
6050 if test "${enable_optimizer_dbg+set}" = set; then
6051 enableval=$enable_optimizer_dbg;
6054 if test "$enable_optimizer_dbg" = "yes"; then
6056 cat >>confdefs.h <<\_ACEOF
6061 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
6062 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
6064 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
6065 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
6066 # Check whether --enable-yydebug was given.
6067 if test "${enable_yydebug+set}" = set; then
6068 enableval=$enable_yydebug;
6071 if test "$enable_yydebug" = "yes"; then
6073 cat >>confdefs.h <<\_ACEOF
6078 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
6079 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
6086 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 ac_res=`eval echo '${'$as_ac_Header'}'`
6096 { echo "$as_me:$LINENO: result: $ac_res" >&5
6097 echo "${ECHO_T}$ac_res" >&6; }
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <$ac_header>
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6115 *) ac_try_echo
=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1
>conftest.err
6122 cat conftest.err
>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.
$ac_objext; then
6128 ac_header_compiler
=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.
$ac_ext >&5
6133 ac_header_compiler
=no
6136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <$ac_header>
6151 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6167 ac_header_preproc=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 eval "$as_ac_Header=\$ac_header_preproc"
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6225 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6226 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6227 if test -c /dev/dlpi ; then
6228 { echo "$as_me:$LINENO: result: yes" >&5
6229 echo "${ECHO_T}yes" >&6; }
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_DEV_DLPI 1
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6239 { echo "$as_me:$LINENO: checking for $dir directory" >&5
6240 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6241 if test -d $dir ; then
6242 { echo "$as_me:$LINENO: result: yes" >&5
6243 echo "${ECHO_T}yes" >&6; }
6245 cat >>confdefs.h <<_ACEOF
6246 #define PCAP_DEV_PREFIX "$dir"
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6257 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
6258 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6259 if test "$cross_compiling" = yes; then
6260 if test "${ac_cv_linux_vers+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 ac_cv_linux_vers=unknown
6267 if test "${ac_cv_linux_vers+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 ac_cv_linux_vers=`uname
-r 2>&1 | \
6271 sed -n -e '$s/.* //' -e '$s/\..*//p'`
6275 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6276 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6277 if test $ac_cv_linux_vers = unknown ; then
6278 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6279 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6280 { (exit 1); exit 1; }; }
6282 if test $ac_cv_linux_vers -lt 2 ; then
6283 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6284 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6285 { (exit 1); exit 1; }; }
6287 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6288 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6289 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6299 # include <linux/if_packet.h>
6303 struct tpacket_stats stats
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6312 *) ac_try_echo
=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.
$ac_objext; then
6325 ac_cv_lbl_tpacket_stats
=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.
$ac_ext >&5
6330 ac_cv_lbl_tpacket_stats
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6336 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6337 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6338 if test $ac_cv_lbl_tpacket_stats = yes; then
6340 cat >>confdefs.h
<<\_ACEOF
6341 #define HAVE_TPACKET_STATS 1
6346 # Check whether --with-sita was given.
6347 if test "${with_sita+set}" = set; then
6350 cat >>confdefs.h
<<\_ACEOF
6355 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6356 echo "$as_me: Enabling SITA ACN support" >&6;}
6364 V_DEFS
="$V_DEFS -DDAG_ONLY"
6368 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6372 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
6373 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
6375 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6380 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
6381 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
6382 if test -r /proc
/net
/dev
; then
6383 ac_cv_lbl_proc_net_dev
=yes
6385 ac_cv_lbl_proc_net_dev
=no
6387 if test $ac_cv_lbl_proc_net_dev = yes; then
6389 cat >>confdefs.h
<<\_ACEOF
6390 #define HAVE_PROC_NET_DEV 1
6394 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
6395 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
6397 # Check for Endace DAG card support.
6399 # Check whether --with-dag was given.
6400 if test "${with_dag+set}" = set; then
6402 if test "$withval" = no
6404 # User doesn't want DAG support.
6406 elif test "$withval" = yes
6408 # User wants DAG support but hasn't specified a directory.
6411 # User wants DAG support and has specified a directory, so use the provided value.
6419 # Use DAG API if present, otherwise don't
6427 # Check whether --with-dag-includes was given.
6428 if test "${with_dag_includes+set}" = set; then
6429 withval
=$with_dag_includes;
6430 # User wants DAG support and has specified a header directory, so use the provided value.
6432 dag_include_dir
=$withval
6438 # Check whether --with-dag-libraries was given.
6439 if test "${with_dag_libraries+set}" = set; then
6440 withval
=$with_dag_libraries;
6441 # User wants DAG support and has specified a library directory, so use the provided value.
6443 dag_lib_dir
=$withval
6451 # We support the DAG API if we're on Linux or BSD, or if we're
6452 # building a DAG-only libpcap.
6457 # If the user explicitly requested DAG, tell them it's not
6460 # If they expressed no preference, don't include it.
6462 if test $want_dag = yes; then
6463 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6464 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6465 { (exit 1); exit 1; }; }
6466 elif test $want_dag = yes; then
6472 ac_cv_lbl_dag_api
=no
6473 if test "$want_dag" != no
; then
6475 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6476 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
6478 # If necessary, set default paths for DAG API headers and libraries.
6479 if test -z "$dag_root"; then
6483 if test -z "$dag_include_dir"; then
6484 dag_include_dir
="$dag_root/include"
6487 if test -z "$dag_lib_dir"; then
6488 dag_lib_dir
="$dag_root/lib"
6491 if test -z "$dag_tools_dir"; then
6492 dag_tools_dir
="$dag_root/tools"
6495 if test -r $dag_include_dir/dagapi.h
; then
6496 ac_cv_lbl_dag_api
=yes
6498 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6499 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6502 if test $ac_cv_lbl_dag_api = yes; then
6504 { echo "$as_me:$LINENO: checking dagapi.o" >&5
6505 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
6507 if test -r $dag_tools_dir/dagapi.o
; then
6509 dagapi_obj
=$dag_tools_dir/dagapi.o
6510 elif test -r $dag_lib_dir/dagapi.o
; then
6512 dagapi_obj
=$dag_lib_dir/dagapi.o
6513 elif test -r $dag_lib_dir/libdag.a
; then
6515 ar x
$dag_lib_dir/libdag.a dagapi.o
6516 if test -r .
/dagapi.o
; then
6517 dagapi_obj
=.
/dagapi.o
6519 ar x
$dag_lib_dir/libdag.a libdag_la-dagapi.o
6520 if test -r .
/libdag_la-dagapi.o
; then
6521 dagapi_obj
=.
/libdag_la-dagapi.o
6526 if test $dagapi_obj = no
; then
6527 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6528 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6529 ac_cv_lbl_dag_api
=no
6531 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6532 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
6536 if test $ac_cv_lbl_dag_api = yes; then
6538 { echo "$as_me:$LINENO: checking dagopts.o" >&5
6539 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
6541 if test -r $dag_tools_dir/dagopts.o
; then
6543 dagopts_obj
=$dag_tools_dir/dagopts.o
6544 elif test -r $dag_lib_dir/dagopts.o
; then
6546 dagopts_obj
=$dag_lib_dir/dagopts.o
6547 elif test -r $dag_lib_dir/libdag.a
; then
6549 ar x
$dag_lib_dir/libdag.a dagopts.o
6550 if test -r .
/dagopts.o
; then
6551 dagopts_obj
=.
/dagopts.o
6553 ar x
$dag_lib_dir/libdag.a libdag_la-dagopts.o
6554 if test -r .
/libdag_la-dagopts.o
; then
6555 dagopts_obj
=.
/libdag_la-dagopts.o
6560 if test $dagopts_obj = no
; then
6561 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6562 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6563 ac_cv_lbl_dag_api
=no
6565 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6566 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
6570 if test $ac_cv_lbl_dag_api = yes; then
6571 # Under 2.5.x only we need to add dagreg.o.
6572 if test -r $dag_include_dir/dagreg.h
; then
6573 { echo "$as_me:$LINENO: checking dagreg.o" >&5
6574 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
6576 if test -r $dag_lib_dir/dagreg.o
; then
6577 # Object file is ready and waiting.
6578 dagreg_obj
=$dag_lib_dir/dagreg.o
6579 elif test -r $dag_lib_dir/libdag.a
; then
6580 # Extract from libdag.a.
6581 ar x
$dag_lib_dir/libdag.a dagreg.o
6582 if test -r .
/dagreg.o
; then
6583 dagreg_obj
=.
/dagreg.o
6585 ar x
$dag_lib_dir/libdag.a libdag_la-dagreg.o
6586 if test -r .
/libdag_la-dagreg.o
; then
6587 dagreg_obj
=.
/libdag_la-dagreg.o
6592 if test $dagreg_obj = no
; then
6593 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
6594 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
6595 ac_cv_lbl_dag_api
=no
6597 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6598 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
6603 if test $ac_cv_lbl_dag_api = yes; then
6604 V_INCLS
="$V_INCLS -I$dag_include_dir"
6605 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6606 if test $V_PCAP != dag
; then
6610 # See if we can find a general version string.
6611 # Don't need to save and restore LIBS to prevent -ldag being
6612 # included if there's a found-action (arg 3).
6613 saved_ldflags
=$LDFLAGS
6614 LDFLAGS
="-L$dag_lib_dir"
6615 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6616 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
6617 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_check_lib_save_LIBS
=$LIBS
6622 cat >conftest.
$ac_ext <<_ACEOF
6625 cat confdefs.h
>>conftest.
$ac_ext
6626 cat >>conftest.
$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6635 char dag_attach_stream ();
6639 return dag_attach_stream ();
6644 rm -f conftest.
$ac_objext conftest
$ac_exeext
6645 if { (ac_try
="$ac_link"
6647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>conftest.er1
6653 grep -v '^ *+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest$ac_exeext &&
6661 $as_test_x conftest$ac_exeext; then
6662 ac_cv_lib_dag_dag_attach_stream=yes
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_lib_dag_dag_attach_stream=no
6670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LIBS=$ac_check_lib_save_LIBS
6674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6675 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
6676 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6682 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6683 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
6684 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_check_lib_save_LIBS=$LIBS
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6696 /* Override any GCC internal prototype to avoid an error.
6697 Use char because int might match the return type of a GCC
6698 builtin and then its argument prototype would still apply. */
6702 char dag_get_erf_types ();
6706 return dag_get_erf_types ();
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (ac_try="$ac_link"
6714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6715 *) ac_try_echo
=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_link") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1
>conftest.err
6722 cat conftest.err
>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest
$ac_exeext &&
6728 $as_test_x conftest
$ac_exeext; then
6729 ac_cv_lib_dag_dag_get_erf_types
=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.
$ac_ext >&5
6734 ac_cv_lib_dag_dag_get_erf_types
=no
6737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6738 conftest
$ac_exeext conftest.
$ac_ext
6739 LIBS
=$ac_check_lib_save_LIBS
6741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6742 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6743 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6746 cat >>confdefs.h
<<\_ACEOF
6747 #define HAVE_DAG_GET_ERF_TYPES 1
6752 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
6753 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
6754 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_check_lib_save_LIBS
=$LIBS
6759 cat >conftest.
$ac_ext <<_ACEOF
6762 cat confdefs.h
>>conftest.
$ac_ext
6763 cat >>conftest.
$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6766 /* Override any GCC internal prototype to avoid an error.
6767 Use char because int might match the return type of a GCC
6768 builtin and then its argument prototype would still apply. */
6772 char dag_get_stream_erf_types ();
6776 return dag_get_stream_erf_types ();
6781 rm -f conftest.
$ac_objext conftest
$ac_exeext
6782 if { (ac_try
="$ac_link"
6784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_link") 2>conftest.er1
6790 grep -v '^ *+' conftest.er1 >conftest.err
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest$ac_exeext &&
6798 $as_test_x conftest$ac_exeext; then
6799 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_lib_dag_dag_get_stream_erf_types=no
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6812 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6813 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
6822 LDFLAGS=$saved_ldflags
6824 if test "$dag_version" = 2.5.x; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_DAG_STREAMS_API 1
6833 # See if we can find a specific version string.
6834 { echo "$as_me:$LINENO: checking the DAG API version" >&5
6835 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6; }
6836 if test -r "$dag_root/VERSION"; then
6837 dag_version="`cat $dag_root/VERSION
`"
6839 { echo "$as_me:$LINENO: result: $dag_version" >&5
6840 echo "${ECHO_T}$dag_version" >&6; }
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DAG_API 1
6848 if test $ac_cv_lbl_dag_api = no; then
6849 if test "$want_dag" = yes; then
6850 # User wanted DAG support but we couldn't find it.
6851 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6852 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6853 { (exit 1); exit 1; }; }
6856 if test "$V_PCAP" = dag; then
6857 # User requested "dag" capture type but the DAG API wasn't
6859 { { 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
6860 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;}
6861 { (exit 1); exit 1; }; }
6866 # Check whether --with-septel was given.
6867 if test "${with_septel+set}" = set; then
6868 withval=$with_septel;
6869 if test "$withval" = no
6872 elif test "$withval" = yes
6878 septel_root=$withval
6884 # Use Septel API if present, otherwise don't
6886 want_septel=ifpresent
6887 septel_root=./../septel
6891 ac_cv_lbl_septel_api=no
6895 # We support the Septel API if we're on Linux, or if we're building
6896 # a Septel-only libpcap.
6901 # If the user explicitly requested Septel, tell them it's not
6904 # If they expressed no preference, don't include it.
6906 if test $want_septel = yes; then
6907 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6908 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6909 { (exit 1); exit 1; }; }
6910 elif test $want_septel = yes; then
6916 if test "$with_septel" != no; then
6917 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6918 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
6920 if test -z "$septel_root"; then
6921 septel_root=$srcdir/../septel
6925 septel_tools_dir="$septel_root"
6926 septel_include_dir="$septel_root/INC"
6927 DEF="-DHAVE_SEPTEL_API"
6929 ac_cv_lbl_septel_api=no
6930 if test -r "$septel_include_dir/msg.h"; then
6931 V_INCLS="$V_INCLS -I$septel_include_dir"
6932 V_DEFS="$V_DEFS $DEF"
6933 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 "
6935 if test "$V_PCAP" != septel ; then
6936 SSRC="pcap-septel.c"
6939 ac_cv_lbl_septel_api=yes
6942 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6943 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
6944 if test $ac_cv_lbl_septel_api = no; then
6945 if test "$want_septel" = yes; then
6946 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6947 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6948 { (exit 1); exit 1; }; }
6952 cat >>confdefs.h <<\_ACEOF
6953 #define HAVE_SEPTEL_API 1
6959 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6960 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6961 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6962 { (exit 1); exit 1; }; }
6967 # Check whether --with-flex was given.
6968 if test "${with_flex+set}" = set; then
6973 # Check whether --with-bison was given.
6974 if test "${with_bison+set}" = set; then
6975 withval=$with_bison;
6978 if test "$with_flex" = no ; then
6983 # Extract the first word of "$ac_prog", so it can be a program name with args.
6984 set dummy $ac_prog; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_V_LEX+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 if test -n "$V_LEX"; then
6991 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_V_LEX="$ac_prog"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 V_LEX=$ac_cv_prog_V_LEX
7011 if test -n "$V_LEX"; then
7012 { echo "$as_me:$LINENO: result: $V_LEX" >&5
7013 echo "${ECHO_T}$V_LEX" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7020 test -n "$V_LEX" && break
7022 test -n "$V_LEX" || V_LEX="lex"
7025 if test "$V_LEX" = flex ; then
7026 # The -V flag was added in 2.4
7027 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
7028 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
7029 if test "${ac_cv_lbl_flex_v24+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 if flex -V >/dev/null 2>&1; then
7033 ac_cv_lbl_flex_v24=yes
7035 ac_cv_lbl_flex_v24=no
7039 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
7040 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
7041 if test $ac_cv_lbl_flex_v24 = no ; then
7042 s="2.4 or higher required"
7043 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
7044 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
7048 if test "$with_bison" = no ; then
7051 for ac_prog in bison
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_prog_V_YACC+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 if test -n "$V_YACC"; then
7061 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_V_YACC="$ac_prog"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 V_YACC=$ac_cv_prog_V_YACC
7081 if test -n "$V_YACC"; then
7082 { echo "$as_me:$LINENO: result: $V_YACC" >&5
7083 echo "${ECHO_T}$V_YACC" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 test -n "$V_YACC" && break
7092 test -n "$V_YACC" || V_YACC="yacc"
7095 if test "$V_YACC" = bison ; then
7098 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
7099 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
7100 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
7104 if test "$V_LEX" = flex -a -n "pcap_" ; then
7105 V_LEX="$V_LEX -Ppcap_"
7106 V_YACC="$V_YACC -p pcap_"
7108 if test "$V_LEX" = lex ; then
7109 # Some versions of lex can't handle the definitions section of scanner.l .
7110 # Try lexing it and complain if it can't deal.
7111 { echo "$as_me:$LINENO: checking for capable lex" >&5
7112 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
7113 if test "${tcpdump_cv_capable_lex+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 if lex -t scanner.l > /dev/null 2>&1; then
7117 tcpdump_cv_capable_lex=yes
7119 tcpdump_cv_capable_lex=insufficient
7122 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
7123 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
7124 if test $tcpdump_cv_capable_lex = insufficient ; then
7125 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
7126 libpcap. flex is a lex replacement that has many advantages, including
7127 being able to compile libpcap. For more information, see
7128 http://www.gnu.org/software/flex/flex.html ." >&5
7129 echo "$as_me: error: Your operating system's lex is insufficient to compile
7130 libpcap. flex is a lex replacement that has many advantages, including
7131 being able to compile libpcap. For more information, see
7132 http://www.gnu.org/software/flex/flex.html ." >&2;}
7133 { (exit 1); exit 1; }; }
7142 cat >>confdefs.h <<\_ACEOF
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_HPUX9 1
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_HPUX10_20_OR_LATER 1
7171 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
7172 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
7173 if test "${ac_cv_cc_sinix_defined+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7195 *) ac_try_echo
=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1
>conftest.err
7202 cat conftest.err
>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.
$ac_objext; then
7208 ac_cv_cc_sinix_defined
=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.
$ac_ext >&5
7213 ac_cv_cc_sinix_defined
=no
7216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7219 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
7220 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
7221 if test $ac_cv_cc_sinix_defined = no
; then
7223 cat >>confdefs.h
<<\_ACEOF
7232 cat >>confdefs.h
<<\_ACEOF
7233 #define HAVE_SOLARIS 1
7240 V_CCOPT
="$V_CCOPT -fno-common"
7244 V_CCOPT
="$V_CCOPT -fPIC"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7251 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_RANLIB+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 if test -n "$RANLIB"; then
7258 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir
=.
7265 for ac_exec_ext
in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 RANLIB
=$ac_cv_prog_RANLIB
7278 if test -n "$RANLIB"; then
7279 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7280 echo "${ECHO_T}$RANLIB" >&6; }
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7288 if test -z "$ac_cv_prog_RANLIB"; then
7289 ac_ct_RANLIB
=$RANLIB
7290 # Extract the first word of "ranlib", so it can be a program name with args.
7291 set dummy ranlib
; ac_word
=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test -n "$ac_ct_RANLIB"; then
7298 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir
=.
7305 for ac_exec_ext
in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7318 if test -n "$ac_ct_RANLIB"; then
7319 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7320 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7322 { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7326 if test "x$ac_ct_RANLIB" = x
; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned
=yes ;;
7339 RANLIB
=$ac_ct_RANLIB
7342 RANLIB
="$ac_cv_prog_RANLIB"
7347 if test "${LBL_CFLAGS+set}" = set; then
7348 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
7350 if test -f .devel
; then
7351 if test "$GCC" = yes ; then
7352 if test "${LBL_CFLAGS+set}" != set; then
7353 if test "$ac_cv_prog_cc_g" = yes ; then
7354 V_CCOPT
="-g $V_CCOPT"
7356 V_CCOPT
="$V_CCOPT -Wall"
7357 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7358 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
7362 case "$target_os" in
7365 V_CCOPT
="$V_CCOPT -n32"
7372 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7374 if test -f $name ; then
7375 ln -s $name os-proto.h
7377 cat >>confdefs.h
<<\_ACEOF
7378 #define HAVE_OS_PROTO_H 1
7382 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
7383 echo "$as_me: WARNING: can't find $name" >&2;}
7387 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
7388 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
7389 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 cat >conftest.
$ac_ext <<_ACEOF
7395 cat confdefs.h
>>conftest.
$ac_ext
7396 cat >>conftest.
$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7399 # include <sys/types.h>
7400 # include <sys/socket.h>
7404 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7409 rm -f conftest.
$ac_objext
7410 if { (ac_try
="$ac_compile"
7412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 ac_cv_lbl_sockaddr_has_sa_len=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_lbl_sockaddr_has_sa_len=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7438 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7439 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_SOCKADDR_SA_LEN 1
7447 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
7448 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
7449 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7459 # include <sys/types.h>
7460 # include <sys/socket.h>
7464 u_int i = sizeof (struct sockaddr_storage)
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7473 *) ac_try_echo
=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.
$ac_objext; then
7486 ac_cv_lbl_has_sockaddr_storage
=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7491 ac_cv_lbl_has_sockaddr_storage
=no
7494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7497 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7498 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
7499 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7501 cat >>confdefs.h
<<\_ACEOF
7502 #define HAVE_SOCKADDR_STORAGE 1
7507 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7508 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
7509 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 cat >conftest.
$ac_ext <<_ACEOF
7515 cat confdefs.h
>>conftest.
$ac_ext
7516 cat >>conftest.
$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7519 # include <sys/types.h>
7520 # include <sys/dlpi.h>
7521 # include <sys/dlpi_ext.h>
7525 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7530 rm -f conftest.
$ac_objext
7531 if { (ac_try
="$ac_compile"
7533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7559 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7560 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7568 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7569 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
7570 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 # These are CPU types where:
7578 # the CPU faults on an unaligned access, but at least some
7579 # OSes that support that CPU catch the fault and simulate
7580 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7581 # the simulation is slow, so we don't want to use it;
7583 # the CPU, I infer (from the old
7585 # XXX: should also check that they don't do weird things (like on arm)
7587 # comment) doesn't fault on unaligned accesses, but doesn't
7588 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7590 # for whatever reason, the test program doesn't work
7591 # (this has been claimed to be the case for several of those
7592 # CPUs - I don't know what the problem is; the problem
7593 # was reported as "the test program dumps core" for SuperH,
7594 # but that's what the test program is *supposed* to do -
7595 # it dumps core before it writes anything, so the test
7596 # for an empty output file should find an empty output
7597 # file and conclude that unaligned accesses don't work).
7599 # This run-time test won't work if you're cross-compiling, so
7600 # in order to support cross-compiling for a particular CPU,
7601 # we have to wire in the list of CPU types anyway, as far as
7602 # I know, so perhaps we should just have a set of CPUs on
7603 # which we know it doesn't work, a set of CPUs on which we
7604 # know it does work, and have the script just fail on other
7605 # cpu types and update it when such a failure occurs.
7607 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
7608 ac_cv_lbl_unaligned_fail=yes
7612 cat >conftest.c <<EOF
7613 # include <sys/types.h>
7614 # include <sys/wait.h>
7616 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7621 /* avoid "core dumped" message */
7627 pid = waitpid(pid, &status, 0);
7630 exit(!WIFEXITED(status));
7633 i = *(unsigned int *)&a[1];
7638 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7639 conftest.c $LIBS >/dev/null 2>&1
7640 if test ! -x conftest ; then
7641 ac_cv_lbl_unaligned_fail=yes
7643 ./conftest >conftest.out
7644 if test ! -s conftest.out ; then
7645 ac_cv_lbl_unaligned_fail=yes
7647 ac_cv_lbl_unaligned_fail=no
7650 rm -f conftest* core core.conftest
7655 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7656 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
7657 if test $ac_cv_lbl_unaligned_fail = yes ; then
7659 cat >>confdefs.h <<\_ACEOF
7666 # Makefile.in includes rules to generate version.h, so we assume
7667 # that it will be generated if autoconf is used.
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_VERSION_H 1
7676 ln -s ${srcdir}/bpf/net net
7691 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
7692 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
7696 cat >>confdefs.h <<\_ACEOF
7697 #define PCAP_SUPPORT_USB 1
7700 USB_SRC=pcap-usb-linux.c
7701 { echo "$as_me:$LINENO: result: yes" >&5
7702 echo "${ECHO_T}yes" >&6; }
7703 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
7704 if test $? -ne 0 ; then
7705 ac_usb_dev_name="usbmon"
7708 cat >>confdefs.h <<_ACEOF
7709 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7712 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7713 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7716 { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7725 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7726 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7727 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
7728 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7732 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
7734 # Is the header compilable?
7735 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
7736 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7744 #include <bluetooth/bluetooth.h>
7746 rm -f conftest.$ac_objext
7747 if { (ac_try="$ac_compile"
7749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7750 *) ac_try_echo
=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_compile") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1
>conftest.err
7757 cat conftest.err
>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest.
$ac_objext; then
7763 ac_header_compiler
=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.
$ac_ext >&5
7768 ac_header_compiler
=no
7771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7773 echo "${ECHO_T}$ac_header_compiler" >&6; }
7775 # Is the header present?
7776 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
7777 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
7778 cat >conftest.
$ac_ext <<_ACEOF
7781 cat confdefs.h
>>conftest.
$ac_ext
7782 cat >>conftest.
$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <bluetooth/bluetooth.h>
7786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } >/dev/null && {
7799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7802 ac_header_preproc=yes
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_header_preproc=no
7810 rm -f conftest.err conftest.$ac_ext
7811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7812 echo "${ECHO_T}$ac_header_preproc" >&6; }
7814 # So? What about this header?
7815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7817 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
7818 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
7820 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
7821 ac_header_preproc=yes
7824 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
7829 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
7831 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
7833 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
7835 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
7839 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7840 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
7841 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
7846 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7847 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
7850 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define PCAP_SUPPORT_BT 1
7857 BT_SRC=pcap-bt-linux.c
7858 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
7859 echo "$as_me: Bluetooth sniffing is supported" >&6;}
7862 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7863 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7870 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
7871 echo "$as_me: no Bluetooth sniffing support" >&6;}
7877 # Find a good install program. We prefer a C program (faster),
7878 # so one script is as good as another. But avoid the broken or
7879 # incompatible versions:
7880 # SysV /etc/install, /usr/sbin/install
7881 # SunOS /usr/etc/install
7882 # IRIX /sbin/install
7884 # AmigaOS /C/install, which installs bootblocks on floppy discs
7885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7888 # OS/2's system install, which has a completely different semantic
7889 # ./install, which can be erroneously created by make from ./install.sh.
7890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7892 if test -z "$INSTALL"; then
7893 if test "${ac_cv_path_install+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 # Account for people who put trailing slashes in PATH elements.
7903 ./ | .// | /cC/* | \
7904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7908 # OSF1 and SCO ODT 3.0 have their own names for install.
7909 # Don't use installbsd from OSF since it installs stuff as root
7911 for ac_prog in ginstall scoinst install; do
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7914 if test $ac_prog = install &&
7915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7916 # AIX install. It has an incompatible calling convention.
7918 elif test $ac_prog = install &&
7919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7920 # program-specific install script used by HP pwplus--don't use.
7923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936 if test "${ac_cv_path_install+set}" = set; then
7937 INSTALL=$ac_cv_path_install
7939 # As a last resort, use the slow shell script. Don't cache a
7940 # value for INSTALL within a source directory, because that will
7941 # break other packages using the cache if that directory is
7942 # removed, or if the value is a relative name.
7943 INSTALL=$ac_install_sh
7946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7947 echo "${ECHO_T}$INSTALL" >&6; }
7949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7950 # It thinks the first close brace ends the variable substitution.
7951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7958 ac_config_headers="$ac_config_headers config.h"
7961 ac_config_files="$ac_config_files Makefile"
7963 cat >confcache <<\_ACEOF
7964 # This file is a shell script that caches the results of configure
7965 # tests run on this system so they can be shared between configure
7966 # scripts and configure runs, see configure's option --config-cache.
7967 # It is not useful on other systems. If it contains results you don't
7968 # want to keep, you may remove or edit it.
7970 # config.status only pays attention to the cache file if you give it
7971 # the --recheck option to rerun configure.
7973 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
7974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7979 # The following way of writing the cache mishandles newlines in values,
7980 # but we know of no workaround that is simple, portable, and efficient.
7981 # So, we kill variables containing newlines.
7982 # Ultrix sh set writes to stderr and can't be redirected directly,
7983 # and sets the high bit in the cache file unless we assign to the vars.
7985 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7986 eval ac_val
=\$
$ac_var
7990 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7994 _ | IFS | as_nl
) ;; #(
7995 *) $as_unset $ac_var ;;
8001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8002 *${as_nl}ac_space
=\
*)
8003 # `set' does not quote correctly, so add quotes (double-quote
8004 # substitution turns \\\\ into \\, and sed turns \\ into \).
8007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8010 # `set' quotes correctly as required by POSIX, so do not add quotes.
8011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8024 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8025 if test -w "$cache_file"; then
8026 test "x$cache_file" != "x/dev/null" &&
8027 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8028 echo "$as_me: updating cache $cache_file" >&6;}
8029 cat confcache
>$cache_file
8031 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8037 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8038 # Let make expand exec_prefix.
8039 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8041 DEFS
=-DHAVE_CONFIG_H
8045 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8046 # 1. Remove the extension, and $U if already installed.
8047 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8048 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8050 # will be set to the directory where LIBOBJS objects are built.
8051 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8052 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8056 LTLIBOBJS
=$ac_ltlibobjs
8060 : ${CONFIG_STATUS=./config.status}
8061 ac_clean_files_save
=$ac_clean_files
8062 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8065 cat >$CONFIG_STATUS <<_ACEOF
8067 # Generated by $as_me.
8068 # Run this file to recreate the current configuration.
8069 # Compiler output produced by configure, useful for debugging
8070 # configure, is in config.log if it exists.
8075 SHELL=\${CONFIG_SHELL-$SHELL}
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8079 ## --------------------- ##
8080 ## M4sh Initialization. ##
8081 ## --------------------- ##
8083 # Be more Bourne compatible
8084 DUALCASE
=1; export DUALCASE
# for MKS sh
8085 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8089 # is contrary to our usage. Disable this feature.
8090 alias -g '${1+"$@"}'='"$@"'
8091 setopt NO_GLOB_SUBST
8093 case `(set -o) 2>/dev/null` in
8094 *posix
*) set -o posix
;;
8103 # Avoid depending upon Character Ranges.
8104 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8105 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8106 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8107 as_cr_digits
='0123456789'
8108 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8110 # The user is always right.
8111 if test "${PATH_SEPARATOR+set}" != set; then
8112 echo "#! /bin/sh" >conf$$.sh
8113 echo "exit 0" >>conf$$.sh
8115 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8123 # Support unset when possible.
8124 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8132 # We need space, tab and new line, in precisely that order. Quoting is
8133 # there to prevent editors from complaining about space-tab.
8134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8135 # splitting by setting IFS to empty value.)
8140 # Find who we are. Look in the path if we contain no directory separator.
8142 *[\\/]* ) as_myself
=$0 ;;
8143 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir
=.
8148 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8154 # We did not find ourselves, most probably we were run as `sh COMMAND'
8155 # in which case we are not to be found in the path.
8156 if test "x$as_myself" = x
; then
8159 if test ! -f "$as_myself"; then
8160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8161 { (exit 1); exit 1; }
8164 # Work around bugs in pre-3.0 UWIN ksh.
8165 for as_var
in ENV MAIL MAILPATH
8166 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8176 LC_TELEPHONE LC_TIME
8178 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8179 eval $as_var=C
; export $as_var
8181 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8185 # Required to use basename.
8186 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8187 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8193 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8194 as_basename
=basename
8200 # Name of the executable.
8201 as_me
=`$as_basename -- "$0" ||
8202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8203 X"$0" : 'X\(//\)$' \| \
8204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8206 sed '/^.*\/\([^/][^/]*\)\/*$/{
8227 test "x$as_lineno_1" != "x$as_lineno_2" &&
8228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8231 # uniformly replaced by the line number. The first 'sed' inserts a
8232 # line-number line after each line using $LINENO; the second 'sed'
8233 # does the real work. The second script uses 'N' to pair each
8234 # line-number line with the line containing $LINENO, and appends
8235 # trailing '-' during substitution so that $LINENO is not a special
8237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8238 # scripts with optimization help from Paolo Bonzini. Blame Lee
8239 # E. McMahon (1931-1989) for sed's syntax. :-)
8251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8255 chmod +x
"$as_me.lineno" ||
8256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8257 { (exit 1); exit 1; }; }
8259 # Don't try to exec as it changes $[0], causing all sort of problems
8260 # (the dirname of $[0] is not the place where we might find the
8261 # original and so on. Autoconf is especially sensitive to this).
8263 # Exit status is that of the last command.
8268 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8274 ECHO_C
= ECHO_N
= ECHO_T
=
8277 case `echo 'x\c'` in
8278 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8285 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8286 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8292 rm -f conf$$ conf$$.exe conf$$.
file
8293 if test -d conf$$.dir
; then
8294 rm -f conf$$.dir
/conf$$.
file
8300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8302 # ... but there are two gotchas:
8303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8305 # In both cases, we have to default to `cp -p'.
8306 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8313 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8314 rmdir conf$$.dir
2>/dev
/null
8316 if mkdir
-p .
2>/dev
/null
; then
8319 test -d .
/-p && rmdir .
/-p
8323 if test -x / >/dev
/null
2>&1; then
8326 if ls -dL / >/dev
/null
2>&1; then
8333 if test -d "$1"; then
8339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8340 ???[sx]*):;;*)false;;esac;fi
8344 as_executable_p
=$as_test_x
8346 # Sed expression to map a string onto a valid CPP name.
8347 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8349 # Sed expression to map a string onto a valid variable name.
8350 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8355 # Save the log message, to keep $[0] and so on meaningful, and to
8356 # report actual input values of CONFIG_FILES etc. instead of their
8357 # values after options handling.
8359 This file was extended by $as_me, which was
8360 generated by GNU Autoconf 2.61. Invocation command line was
8362 CONFIG_FILES = $CONFIG_FILES
8363 CONFIG_HEADERS = $CONFIG_HEADERS
8364 CONFIG_LINKS = $CONFIG_LINKS
8365 CONFIG_COMMANDS = $CONFIG_COMMANDS
8368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8373 cat >>$CONFIG_STATUS <<_ACEOF
8374 # Files that config.status was made for.
8375 config_files="$ac_config_files"
8376 config_headers="$ac_config_headers"
8380 cat >>$CONFIG_STATUS <<\_ACEOF
8382 \`$as_me' instantiates files from templates according to the
8383 current configuration.
8385 Usage: $0 [OPTIONS] [FILE]...
8387 -h, --help print this help, then exit
8388 -V, --version print version number and configuration settings, then exit
8389 -q, --quiet do not print progress messages
8390 -d, --debug don't remove temporary files
8391 --recheck update $as_me by reconfiguring in the same conditions
8392 --file=FILE[:TEMPLATE]
8393 instantiate the configuration file FILE
8394 --header=FILE[:TEMPLATE]
8395 instantiate the configuration header FILE
8397 Configuration files:
8400 Configuration headers:
8403 Report bugs to <bug-autoconf@gnu.org>."
8406 cat >>$CONFIG_STATUS <<_ACEOF
8409 configured by $0, generated by GNU Autoconf 2.61,
8410 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8412 Copyright (C) 2006 Free Software Foundation, Inc.
8413 This config.status script is free software; the Free Software Foundation
8414 gives unlimited permission to copy, distribute and modify it."
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8422 # If no file are specified by the user, then we need to provide default
8423 # value. By we need to know if files were specified by the user.
8429 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8430 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8441 # Handling of the options.
8442 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8444 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8445 echo "$ac_cs_version"; exit ;;
8446 --debug |
--debu |
--deb |
--de |
--d |
-d )
8448 --file |
--fil |
--fi |
--f )
8450 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8451 ac_need_defaults
=false
;;
8452 --header |
--heade |
--head |
--hea )
8454 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8455 ac_need_defaults
=false
;;
8457 # Conflict between --help and --header
8458 { echo "$as_me: error: ambiguous option: $1
8459 Try \`$0 --help' for more information." >&2
8460 { (exit 1); exit 1; }; };;
8461 --help |
--hel |
-h )
8462 echo "$ac_cs_usage"; exit ;;
8463 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8464 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8468 -*) { echo "$as_me: error: unrecognized option: $1
8469 Try \`$0 --help' for more information." >&2
8470 { (exit 1); exit 1; }; } ;;
8472 *) ac_config_targets
="$ac_config_targets $1"
8473 ac_need_defaults
=false
;;
8479 ac_configure_extra_args
=
8481 if $ac_cs_silent; then
8483 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8487 cat >>$CONFIG_STATUS <<_ACEOF
8488 if \$ac_cs_recheck; then
8489 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8492 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8496 cat >>$CONFIG_STATUS <<\_ACEOF
8500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8501 ## Running $as_me. ##
8507 cat >>$CONFIG_STATUS <<_ACEOF
8510 cat >>$CONFIG_STATUS <<\_ACEOF
8512 # Handling of arguments.
8513 for ac_config_target
in $ac_config_targets
8515 case $ac_config_target in
8516 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8517 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8521 { (exit 1); exit 1; }; };;
8526 # If the user did not use the arguments to specify the items to instantiate,
8527 # then the envvar interface is used. Set only those that are not.
8528 # We use the long form for the default assignment because of an extremely
8529 # bizarre bug on SunOS 4.1.3.
8530 if $ac_need_defaults; then
8531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8535 # Have a temporary directory for convenience. Make it in the build tree
8536 # simply because there is no reason against having it here, and in addition,
8537 # creating and moving files from /tmp can sometimes cause problems.
8538 # Hook for its removal unless debugging.
8539 # Note that there is a small window in which the directory will not be cleaned:
8540 # after its creation but before its name has been assigned to `$tmp'.
8544 trap 'exit_status=$?
8545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8547 trap '{ (exit 1); exit 1; }' 1 2 13 15
8549 # Create a (secure) tmp directory for tmp files.
8552 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8553 test -n "$tmp" && test -d "$tmp"
8556 tmp
=.
/conf$$
-$RANDOM
8557 (umask 077 && mkdir
"$tmp")
8560 echo "$me: cannot create a temporary directory in ." >&2
8561 { (exit 1); exit 1; }
8565 # Set up the sed scripts for CONFIG_FILES section.
8568 # No need to generate the scripts if there are no CONFIG_FILES.
8569 # This happens for instance when ./config.status config.h
8570 if test -n "$CONFIG_FILES"; then
8577 for ac_last_try
in false false false false false
:; do
8578 cat >conf$
$subs.
sed <<_ACEOF
8579 SHELL!$SHELL$ac_delim
8580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8586 exec_prefix!$exec_prefix$ac_delim
8587 prefix!$prefix$ac_delim
8588 program_transform_name!$program_transform_name$ac_delim
8589 bindir!$bindir$ac_delim
8590 sbindir!$sbindir$ac_delim
8591 libexecdir!$libexecdir$ac_delim
8592 datarootdir!$datarootdir$ac_delim
8593 datadir!$datadir$ac_delim
8594 sysconfdir!$sysconfdir$ac_delim
8595 sharedstatedir!$sharedstatedir$ac_delim
8596 localstatedir!$localstatedir$ac_delim
8597 includedir!$includedir$ac_delim
8598 oldincludedir!$oldincludedir$ac_delim
8599 docdir!$docdir$ac_delim
8600 infodir!$infodir$ac_delim
8601 htmldir!$htmldir$ac_delim
8602 dvidir!$dvidir$ac_delim
8603 pdfdir!$pdfdir$ac_delim
8604 psdir!$psdir$ac_delim
8605 libdir!$libdir$ac_delim
8606 localedir!$localedir$ac_delim
8607 mandir!$mandir$ac_delim
8609 ECHO_C!$ECHO_C$ac_delim
8610 ECHO_N!$ECHO_N$ac_delim
8611 ECHO_T!$ECHO_T$ac_delim
8613 build_alias!$build_alias$ac_delim
8614 host_alias!$host_alias$ac_delim
8615 target_alias!$target_alias$ac_delim
8616 build!$build$ac_delim
8617 build_cpu!$build_cpu$ac_delim
8618 build_vendor!$build_vendor$ac_delim
8619 build_os!$build_os$ac_delim
8621 host_cpu!$host_cpu$ac_delim
8622 host_vendor!$host_vendor$ac_delim
8623 host_os!$host_os$ac_delim
8624 target!$target$ac_delim
8625 target_cpu!$target_cpu$ac_delim
8626 target_vendor!$target_vendor$ac_delim
8627 target_os!$target_os$ac_delim
8628 SHLICC2!$SHLICC2$ac_delim
8630 CFLAGS!$CFLAGS$ac_delim
8631 LDFLAGS!$LDFLAGS$ac_delim
8632 CPPFLAGS!$CPPFLAGS$ac_delim
8633 ac_ct_CC!$ac_ct_CC$ac_delim
8634 EXEEXT!$EXEEXT$ac_delim
8635 OBJEXT!$OBJEXT$ac_delim
8638 EGREP!$EGREP$ac_delim
8639 LIBOBJS!$LIBOBJS$ac_delim
8640 V_LEX!$V_LEX$ac_delim
8641 V_YACC!$V_YACC$ac_delim
8642 RANLIB!$RANLIB$ac_delim
8643 V_CCOPT!$V_CCOPT$ac_delim
8644 V_DEFS!$V_DEFS$ac_delim
8645 V_INCLS!$V_INCLS$ac_delim
8646 V_LIBS!$V_LIBS$ac_delim
8647 V_PCAP!$V_PCAP$ac_delim
8648 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
8649 V_RANLIB!$V_RANLIB$ac_delim
8651 DYEXT!$DYEXT$ac_delim
8652 DAGLIBS!$DAGLIBS$ac_delim
8653 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
8654 USB_SRC!$USB_SRC$ac_delim
8655 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
8656 BT_SRC!$BT_SRC$ac_delim
8657 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8658 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8659 INSTALL_DATA!$INSTALL_DATA$ac_delim
8660 LTLIBOBJS!$LTLIBOBJS$ac_delim
8663 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
8665 elif $ac_last_try; then
8666 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8667 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8668 { (exit 1); exit 1; }; }
8670 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8674 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8675 if test -n "$ac_eof"; then
8676 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8677 ac_eof
=`expr $ac_eof + 1`
8680 cat >>$CONFIG_STATUS <<_ACEOF
8681 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8685 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8686 s/^/s,@/; s/!/@,|#_!!_#|/
8689 s/'"$ac_delim"'$/,g/; t
8691 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8692 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8693 rm -f conf$
$subs.
sed
8694 cat >>$CONFIG_STATUS <<_ACEOF
8701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8703 # trailing colons and then remove the whole line if VPATH becomes empty
8704 # (actually we leave an empty line to preserve line numbers).
8705 if test "x$srcdir" = x.
; then
8706 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8710 s/^\([^=]*=[ ]*\):*/\1/
8716 cat >>$CONFIG_STATUS <<\_ACEOF
8717 fi # test -n "$CONFIG_FILES"
8720 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
8723 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8725 case $ac_mode$ac_tag in
8727 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8728 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8729 { (exit 1); exit 1; }; };;
8730 :[FH
]-) ac_tag
=-:-;;
8731 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8748 -) ac_f
="$tmp/stdin";;
8749 *) # Look for the file first in the build tree, then in the source tree
8750 # (if the path is not absolute). The absolute path cannot be DOS-style,
8751 # because $ac_f cannot contain `:'.
8755 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8757 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8758 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8759 { (exit 1); exit 1; }; };;
8761 ac_file_inputs
="$ac_file_inputs $ac_f"
8764 # Let's still pretend it is `configure' which instantiates (i.e., don't
8765 # use $as_me), people would be surprised to read:
8766 # /* config.h. Generated by config.status. */
8767 configure_input
="Generated from "`IFS=:
8768 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8769 if test x
"$ac_file" != x-
; then
8770 configure_input
="$ac_file. $configure_input"
8771 { echo "$as_me:$LINENO: creating $ac_file" >&5
8772 echo "$as_me: creating $ac_file" >&6;}
8776 *:-:* |
*:-) cat >"$tmp/stdin";;
8781 ac_dir
=`$as_dirname -- "$ac_file" ||
8782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8783 X"$ac_file" : 'X\(//\)[^/]' \| \
8784 X"$ac_file" : 'X\(//\)$' \| \
8785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8806 -*) as_dir
=.
/$as_dir;;
8808 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
8812 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8813 *) as_qdir
=$as_dir;;
8815 as_dirs
="'$as_qdir' $as_dirs"
8816 as_dir
=`$as_dirname -- "$as_dir" ||
8817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8818 X"$as_dir" : 'X\(//\)[^/]' \| \
8819 X"$as_dir" : 'X\(//\)$' \| \
8820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8839 test -d "$as_dir" && break
8841 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8842 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8843 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8844 { (exit 1); exit 1; }; }; }
8848 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8850 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8851 # A ".." for each directory in $ac_dir_suffix.
8852 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8853 case $ac_top_builddir_sub in
8854 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8855 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8858 ac_abs_top_builddir
=$ac_pwd
8859 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8860 # for backward compatibility:
8861 ac_top_builddir
=$ac_top_build_prefix
8864 .
) # We are building in place.
8866 ac_top_srcdir
=$ac_top_builddir_sub
8867 ac_abs_top_srcdir
=$ac_pwd ;;
8868 [\\/]* | ?
:[\\/]* ) # Absolute name.
8869 ac_srcdir
=$srcdir$ac_dir_suffix;
8870 ac_top_srcdir
=$srcdir
8871 ac_abs_top_srcdir
=$srcdir ;;
8873 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8874 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8875 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8877 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8887 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8888 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8892 cat >>$CONFIG_STATUS <<\_ACEOF
8893 # If the template does not know about datarootdir, expand it.
8894 # FIXME: This hack should be removed a few years after 2.60.
8895 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8897 case `sed -n '/datarootdir/ {
8906 ' $ac_file_inputs` in
8907 *datarootdir
*) ac_datarootdir_seen
=yes;;
8908 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8909 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8910 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8912 cat >>$CONFIG_STATUS <<_ACEOF
8913 ac_datarootdir_hack='
8914 s&@datadir@&$datadir&g
8915 s&@docdir@&$docdir&g
8916 s&@infodir@&$infodir&g
8917 s&@localedir@&$localedir&g
8918 s&@mandir@&$mandir&g
8919 s&\\\${datarootdir}&$datarootdir&g' ;;
8923 # Neutralize VPATH when `$srcdir' = `.'.
8924 # Shell code in configure.ac might set extrasub.
8925 # FIXME: do we really want to maintain this feature?
8926 cat >>$CONFIG_STATUS <<_ACEOF
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8932 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8933 s
&@configure_input@
&$configure_input&;t t
8934 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8935 s
&@srcdir@
&$ac_srcdir&;t t
8936 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8937 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8938 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8939 s
&@builddir@
&$ac_builddir&;t t
8940 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8941 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8942 s
&@INSTALL@
&$ac_INSTALL&;t t
8943 $ac_datarootdir_hack
8944 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
8946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8949 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8950 which seems to be undefined. Please make sure it is defined." >&5
8951 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8952 which seems to be undefined. Please make sure it is defined." >&2;}
8956 -) cat "$tmp/out"; rm -f "$tmp/out";;
8957 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8966 # Transform confdefs.h into a sed script `conftest.defines', that
8967 # substitutes the proper values into config.h.in to produce config.h.
8968 rm -f conftest.defines conftest.
tail
8969 # First, append a space to every undef/define line, to ease matching.
8970 echo 's/$/ /' >conftest.defines
8971 # Then, protect against being on the right side of a sed subst, or in
8972 # an unquoted here document, in config.status. If some macros were
8973 # called several times there might be several #defines for the same
8974 # symbol, which is useless. But do not sort them, since the last
8975 # AC_DEFINE must be honored.
8976 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
8977 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8978 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8979 # PARAMS is the parameter list in the macro definition--in most cases, it's
8980 # just an empty string.
8981 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8982 ac_dB
='\\)[ (].*,\\1define\\2'
8990 s/^[ ]*#[ ]*define[ ][ ]*//
8995 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8996 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8997 ' >>conftest.defines
8999 # Remove the space that was appended to ease matching.
9000 # Then replace #undef with comments. This is necessary, for
9001 # example, in the case of _POSIX_SOURCE, which is predefined and required
9002 # on some systems where configure will not decide to define it.
9003 # (The regexp can be short, since the line contains either #define or #undef.)
9005 s,^[ #]*u.*,/* & */,' >>conftest.defines
9007 # Break up conftest.defines:
9010 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9011 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9012 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9014 ac_in
='$ac_file_inputs'
9015 ac_out
='"$tmp/out1"'
9016 ac_nxt
='"$tmp/out2"'
9020 # Write a here document:
9021 cat >>$CONFIG_STATUS <<_ACEOF
9022 # First, check the format of the line:
9023 cat >"\$tmp/defines.sed" <<\\CEOF
9024 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9025 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9029 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9031 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9032 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9033 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9034 grep . conftest.
tail >/dev
/null ||
break
9035 rm -f conftest.defines
9036 mv conftest.
tail conftest.defines
9038 rm -f conftest.defines conftest.
tail
9040 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9041 cat >>$CONFIG_STATUS <<\_ACEOF
9042 if test x
"$ac_file" != x-
; then
9043 echo "/* $configure_input */" >"$tmp/config.h"
9044 cat "$ac_result" >>"$tmp/config.h"
9045 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9047 echo "$as_me: $ac_file is unchanged" >&6;}
9050 mv "$tmp/config.h" $ac_file
9053 echo "/* $configure_input */"
9065 { (exit 0); exit 0; }
9067 chmod +x
$CONFIG_STATUS
9068 ac_clean_files
=$ac_clean_files_save
9071 # configure is writing to config.log, and then calls config.status.
9072 # config.status does its own redirection, appending to config.log.
9073 # Unfortunately, on DOS this fails, as config.log is still kept open
9074 # by configure, so config.status won't be able to write to it; its
9075 # output is simply discarded. So we exec the FD to /dev/null,
9076 # effectively closing config.log, so it can be properly (re)opened and
9077 # appended to by config.status. When coming back to configure, we
9078 # need to make the FD available again.
9079 if test "$no_create" != yes; then
9081 ac_config_status_args
=
9082 test "$silent" = yes &&
9083 ac_config_status_args
="$ac_config_status_args --quiet"
9085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9088 # would make configure fail if this is the last instruction.
9089 $ac_cs_success ||
{ (exit 1); exit 1; }
9093 if test -f .devel
; then