2 # From configure.in Revision: 1.138.2.22 .
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
702 ac_precious_vars='build_alias
713 # Initialize some variables set by options.
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
725 program_transform_name=s,x,x,
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE}'
750 infodir='${datarootdir}/info'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 # Accept the important Cygnus configure options, so we can diagnose typos.
777 case $ac_dashdash$ac_option in
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
799 cache_file=config.cache ;;
801 -datadir | --datadir | --datadi | --datad)
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
813 -disable-* | --disable-*)
814 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818 { (exit 1); exit 1; }; }
819 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820 eval enable_$ac_feature=no ;;
822 -docdir | --docdir | --docdi | --doc | --do)
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 -enable-* | --enable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839 eval enable_$ac_feature=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036 eval with_$ac_package=\$ac_optarg ;;
1038 -without-* | --without-*)
1039 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 eval with_$ac_package=no ;;
1048 # Obsolete; use --with-x.
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1065 -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067 { (exit 1); exit 1; }; }
1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075 { (exit 1); exit 1; }; }
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1080 # FIXME: should be removed in autoconf 3.0.
1081 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 { echo "$as_me: error: missing argument to $ac_option" >&2
1093 { (exit 1); exit 1; }; }
1096 # Be sure to have absolute directory names.
1097 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098 datadir sysconfdir sharedstatedir localstatedir includedir \
1099 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100 libdir localedir mandir
1102 eval ac_val=\$$ac_var
1104 [\\/$]* | ?:[\\/]* ) continue;;
1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108 { (exit 1); exit 1; }; }
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1116 target=$target_alias
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120 if test "x$build_alias" = x; then
1121 cross_compiling=maybe
1122 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123 If a cross compiler is detected then cross compile mode will be used." >&2
1124 elif test "x$build_alias" != "x$host_alias"; then
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132 test "$silent" = yes && exec 6>/dev/null
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138 { echo "$as_me: error: Working directory cannot be determined" >&2
1139 { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 { echo "$as_me: error: pwd does not report name of working directory" >&2
1142 { (exit 1); exit 1; }; }
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$0" : 'X\(//\)[^/]' \| \
1152 X"$0" : 'X\(//\)$' \| \
1153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1177 ac_srcdir_defaulted=no
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182 { (exit 1); exit 1; }; }
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187 { (exit 1); exit 1; }; }
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199 for ac_var in $ac_precious_vars; do
1200 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201 eval ac_env_${ac_var}_value=\$${ac_var}
1202 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 # Report the --help message.
1209 if test "$ac_init_help" = "long"; then
1210 # Omit some internal or obsolete options to make the list less imposing.
1211 # This message is too long to be a string in the A/UX 3.1 sh.
1213 \`configure' configures this package to adapt to many kinds of systems.
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE. See below for descriptions of some of the useful variables.
1220 Defaults for the options are specified in brackets.
1223 -h, --help display this help and exit
1224 --help=short display options specific to this package
1225 --help=recursive display the short help of all the included packages
1226 -V, --version display version information and exit
1227 -q, --quiet, --silent do not print \`checking...' messages
1228 --cache-file=FILE cache test results in FILE [disabled]
1229 -C, --config-cache alias for \`--cache-file=config.cache'
1230 -n, --no-create do not create output files
1231 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1233 Installation directories:
1234 --prefix=PREFIX install architecture-independent files in PREFIX
1235 [$ac_default_prefix]
1236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1244 For better control, use the options below.
1246 Fine tuning of the installation directories:
1247 --bindir=DIR user executables [EPREFIX/bin]
1248 --sbindir=DIR system admin executables [EPREFIX/sbin]
1249 --libexecdir=DIR program executables [EPREFIX/libexec]
1250 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253 --libdir=DIR object code libraries [EPREFIX/lib]
1254 --includedir=DIR C header files [PREFIX/include]
1255 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1256 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258 --infodir=DIR info documentation [DATAROOTDIR/info]
1259 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260 --mandir=DIR man documentation [DATAROOTDIR/man]
1261 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1262 --htmldir=DIR html documentation [DOCDIR]
1263 --dvidir=DIR dvi documentation [DOCDIR]
1264 --pdfdir=DIR pdf documentation [DOCDIR]
1265 --psdir=DIR ps documentation [DOCDIR]
1271 --build=BUILD configure for building on BUILD [guessed]
1272 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1273 --target=TARGET configure for building compilers for TARGET [HOST]
1277 if test -n "$ac_init_help"; then
1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 --disable-largefile omit support for large files
1285 --disable-protochain disable \"protochain\" insn
1286 --enable-ipv6 build IPv6-capable version [default=yes, if getaddrinfo available]
1287 --enable-optimizer-dbg build optimizer debugging code
1288 --enable-yydebug build parser debugging code
1291 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1292 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1293 --without-gcc don't use gcc
1294 --with-sita include SITA support
1295 --with-pcap=TYPE use packet capture TYPE
1296 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1297 --with-dag-includes=DIR Endace DAG include directory
1298 --with-dag-libraries=DIR Endace DAG library directory
1299 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
1300 --without-flex don't use flex
1301 --without-bison don't use bison
1303 Some influential environment variables:
1304 CC C compiler command
1305 CFLAGS C compiler flags
1306 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1307 nonstandard directory <lib dir>
1308 LIBS libraries to pass to the linker, e.g. -l<library>
1309 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1310 you have headers in a nonstandard directory <include dir>
1313 Use these variables to override the choices made by `configure' or to help
1314 it to find libraries and programs with nonstandard names/locations.
1320 if test "$ac_init_help" = "recursive"; then
1321 # If there are subdirs, report their specific --help.
1322 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1323 test -d "$ac_dir" || continue
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1343 .) # We are building in place.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1367 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1377 generated by GNU Autoconf 2.61
1379 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1380 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1386 cat >config.log <<_ACEOF
1387 This file contains any messages produced by compilers while
1388 running configure, to aid debugging if configure makes a mistake.
1390 It was created by $as_me, which was
1391 generated by GNU Autoconf 2.61. Invocation command line was
1403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1412 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1413 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1415 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1416 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1417 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1418 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir=.
1427 echo "PATH: $as_dir"
1443 # Keep a trace of the command line.
1444 # Strip out --no-create and --no-recursion so they do not pile up.
1445 # Strip out --silent because we don't want to record it for future runs.
1446 # Also quote any args containing shell meta-characters.
1447 # Make two passes to allow for proper duplicate-argument suppression.
1451 ac_must_keep_next=false
1457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1459 | -silent | --silent | --silen | --sile | --sil)
1462 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1467 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1468 if test $ac_must_keep_next = true; then
1469 ac_must_keep_next=false # Got value, back to normal.
1472 *=* | --config-cache | -C | -disable-* | --disable-* \
1473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1475 | -with-* | --with-* | -without-* | --without-* | --x)
1476 case "$ac_configure_args0 " in
1477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1480 -* ) ac_must_keep_next=true ;;
1483 ac_configure_args="$ac_configure_args '$ac_arg'"
1488 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1489 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1491 # When interrupted or exit'd, cleanup temporary files, and complete
1492 # config.log. We remove comments because anyway the quotes in there
1493 # would cause problems or look ugly.
1494 # WARNING: Use '\'' to represent an apostrophe within the trap.
1495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1496 trap 'exit_status=$?
1497 # Save into config.log some information that might help in debugging.
1502 ## ---------------- ##
1503 ## Cache variables. ##
1504 ## ---------------- ##
1507 # The following way of writing the cache mishandles newlines in values,
1509 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1510 eval ac_val=\$$ac_var
1514 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1515 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1518 _ | IFS | as_nl) ;; #(
1519 *) $as_unset $ac_var ;;
1524 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1525 *${as_nl}ac_space=\ *)
1527 "s/'\''/'\''\\\\'\'''\''/g;
1528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1539 ## ----------------- ##
1540 ## Output variables. ##
1541 ## ----------------- ##
1544 for ac_var in $ac_subst_vars
1546 eval ac_val=\$$ac_var
1548 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 echo "$ac_var='\''$ac_val'\''"
1554 if test -n "$ac_subst_files"; then
1556 ## ------------------- ##
1557 ## File substitutions. ##
1558 ## ------------------- ##
1561 for ac_var in $ac_subst_files
1563 eval ac_val=\$$ac_var
1565 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1567 echo "$ac_var='\''$ac_val'\''"
1572 if test -s confdefs.h; then
1582 test "$ac_signal" != 0 &&
1583 echo "$as_me: caught signal $ac_signal"
1584 echo "$as_me: exit $exit_status"
1586 rm -f core *.core core.conftest.* &&
1587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1590 for ac_signal in 1 2 13 15; do
1591 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1596 rm -f -r conftest* confdefs.h
1598 # Predefined preprocessor variables.
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_NAME "$PACKAGE_NAME"
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_STRING "$PACKAGE_STRING"
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1625 # Let the site file select an alternate cache file if it wants to.
1626 # Prefer explicitly selected file to automatically selected ones.
1627 if test -n "$CONFIG_SITE"; then
1628 set x "$CONFIG_SITE"
1629 elif test "x$prefix" != xNONE; then
1630 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1632 set x "$ac_default_prefix/share/config.site" \
1633 "$ac_default_prefix/etc/config.site"
1638 if test -r "$ac_site_file"; then
1639 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1640 echo "$as_me: loading site script $ac_site_file" >&6;}
1641 sed 's/^/| /' "$ac_site_file" >&5
1646 if test -r "$cache_file"; then
1647 # Some versions of bash will fail to source /dev/null (special
1648 # files actually), so we avoid doing that.
1649 if test -f "$cache_file"; then
1650 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1651 echo "$as_me: loading cache $cache_file" >&6;}
1653 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1654 *) . "./$cache_file";;
1658 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1659 echo "$as_me: creating cache $cache_file" >&6;}
1663 # Check that the precious variables saved in the cache have kept the same
1665 ac_cache_corrupted=false
1666 for ac_var in $ac_precious_vars; do
1667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1668 eval ac_new_set=\$ac_env_${ac_var}_set
1669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1670 eval ac_new_val=\$ac_env_${ac_var}_value
1671 case $ac_old_set,$ac_new_set in
1673 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1675 ac_cache_corrupted=: ;;
1677 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1678 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1679 ac_cache_corrupted=: ;;
1682 if test "x$ac_old_val" != "x$ac_new_val"; then
1683 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1684 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1685 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1686 echo "$as_me: former value: $ac_old_val" >&2;}
1687 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1688 echo "$as_me: current value: $ac_new_val" >&2;}
1689 ac_cache_corrupted=:
1692 # Pass precious variables to config.status.
1693 if test "$ac_new_set" = set; then
1695 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 *) ac_arg=$ac_var=$ac_new_val ;;
1698 case " $ac_configure_args " in
1699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1700 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1704 if $ac_cache_corrupted; then
1705 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1706 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1707 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1708 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1709 { (exit 1); exit 1; }; }
1729 ac_cpp='$CPP $CPPFLAGS'
1730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1738 if test -f "$ac_dir/install-sh"; then
1740 ac_install_sh="$ac_aux_dir/install-sh -c"
1742 elif test -f "$ac_dir/install.sh"; then
1744 ac_install_sh="$ac_aux_dir/install.sh -c"
1746 elif test -f "$ac_dir/shtool"; then
1748 ac_install_sh="$ac_aux_dir/shtool install -c"
1752 if test -z "$ac_aux_dir"; then
1753 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1754 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1755 { (exit 1); exit 1; }; }
1758 # These three variables are undocumented and unsupported,
1759 # and are intended to be withdrawn in a future Autoconf release.
1760 # They can cause serious problems if a builder's source tree is in a directory
1761 # whose full name contains unusual characters.
1762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1767 # Make sure we can run config.sub.
1768 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1769 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1770 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1771 { (exit 1); exit 1; }; }
1773 { echo "$as_me:$LINENO: checking build system type" >&5
1774 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1775 if test "${ac_cv_build+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 ac_build_alias=$build_alias
1779 test "x$ac_build_alias" = x &&
1780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1781 test "x$ac_build_alias" = x &&
1782 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784 { (exit 1); exit 1; }; }
1785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1786 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1787 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1791 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792 echo "${ECHO_T}$ac_cv_build" >&6; }
1793 case $ac_cv_build in
1795 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1796 echo "$as_me: error: invalid value of canonical build" >&2;}
1797 { (exit 1); exit 1; }; };;
1800 ac_save_IFS=$IFS; IFS='-'
1806 # Remember, the first character of IFS is used to create $*,
1807 # except with old shells:
1810 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1813 { echo "$as_me:$LINENO: checking host system type" >&5
1814 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1815 if test "${ac_cv_host+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test "x$host_alias" = x; then
1819 ac_cv_host=$ac_cv_build
1821 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1828 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1829 echo "${ECHO_T}$ac_cv_host" >&6; }
1832 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1833 echo "$as_me: error: invalid value of canonical host" >&2;}
1834 { (exit 1); exit 1; }; };;
1837 ac_save_IFS=$IFS; IFS='-'
1843 # Remember, the first character of IFS is used to create $*,
1844 # except with old shells:
1847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1850 { echo "$as_me:$LINENO: checking target system type" >&5
1851 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1852 if test "${ac_cv_target+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test "x$target_alias" = x; then
1856 ac_cv_target=$ac_cv_host
1858 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1861 { (exit 1); exit 1; }; }
1865 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1866 echo "${ECHO_T}$ac_cv_target" >&6; }
1867 case $ac_cv_target in
1869 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1870 echo "$as_me: error: invalid value of canonical target" >&2;}
1871 { (exit 1); exit 1; }; };;
1873 target=$ac_cv_target
1874 ac_save_IFS=$IFS; IFS='-'
1880 # Remember, the first character of IFS is used to create $*,
1881 # except with old shells:
1884 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1887 # The aliases save the names the user supplied, while $host etc.
1888 # will get canonicalized.
1889 test -n "$target_alias" &&
1890 test "$program_prefix$program_suffix$program_transform_name" = \
1892 program_prefix=${target_alias}-
1899 # Check whether --with-gcc was given.
1900 if test "${with_gcc+set}" = set; then
1906 if test "${srcdir}" != "." ; then
1907 V_INCLS="-I\$(srcdir)"
1909 if test "${CFLAGS+set}" = set; then
1910 LBL_CFLAGS="$CFLAGS"
1912 if test -z "$CC" ; then
1916 # Extract the first word of "shlicc2", so it can be a program name with args.
1917 set dummy shlicc2; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$SHLICC2"; then
1924 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_SHLICC2="yes"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1944 SHLICC2=$ac_cv_prog_SHLICC2
1945 if test -n "$SHLICC2"; then
1946 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1947 echo "${ECHO_T}$SHLICC2" >&6; }
1949 { echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6; }
1954 if test $SHLICC2 = yes ; then
1961 if test -z "$CC" -a "$with_gcc" = no ; then
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2003 { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2009 if test -z "$ac_cv_prog_CC"; then
2011 # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_ac_ct_CC="gcc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2047 if test "x$ac_ct_CC" = x; then
2050 case $cross_compiling:$ac_tool_warned in
2052 { echo "$as_me:$LINENO: 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." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet. If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned=yes ;;
2066 if test -z "$CC"; then
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2107 if test -z "$CC"; then
2108 # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127 ac_prog_rejected=yes
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy $ac_cv_prog_CC
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153 if test -n "$CC"; then
2154 { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2157 { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl.exe
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2204 test -n "$CC" && break
2207 if test -z "$CC"; then
2209 for ac_prog in cl.exe
2211 # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_ac_ct_CC="$ac_prog"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2248 test -n "$ac_ct_CC" && break
2251 if test "x$ac_ct_CC" = x; then
2254 case $cross_compiling:$ac_tool_warned in
2256 { echo "$as_me:$LINENO: 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." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet. If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO: checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (ac_try="$ac_compiler --version >&5"
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286 (eval "$ac_compiler --version >&5") 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (ac_try="$ac_compiler -v >&5"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_compiler -v >&5") 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2300 { (ac_try="$ac_compiler -V >&5"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_compiler -V >&5") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2331 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2335 # List of possible output files, starting from the most likely.
2336 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337 # only as a last resort. b.out is created by i960 compilers.
2338 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2340 # The IRIX 6 linker writes into existing files which may not be
2341 # executable, retaining their permissions. Remove them first so a
2342 # subsequent execution test works.
2344 for ac_file in $ac_files
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2353 if { (ac_try="$ac_link_default"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_link_default") 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2366 # so that the user can short-circuit this test for compilers unknown to
2368 for ac_file in $ac_files ''
2370 test -f "$ac_file" || continue
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2375 # We found the default executable, but exeext='' is most
2379 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # We set ac_cv_exeext here because the later test for it is not
2384 # safe: cross compilers may not add the suffix if given an `-o'
2385 # argument, so we may need to know it at that point already.
2386 # Even if this section looks crufty: it has the advantage of
2393 test "$ac_cv_exeext" = no && ac_cv_exeext=
2399 { echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6; }
2401 if test -z "$ac_file"; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409 { (exit 77); exit 77; }; }
2412 ac_exeext=$ac_cv_exeext
2414 # Check that the compiler produces executables we can run. If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421 if { ac_try='./$ac_file'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 if test "$cross_compiling" = maybe; then
2436 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2449 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450 ac_clean_files=$ac_clean_files_save
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456 echo "${ECHO_T}$cross_compiling" >&6; }
2458 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460 if { (ac_try="$ac_link"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_link") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2474 for ac_file in conftest.exe conftest conftest.*; do
2475 test -f "$ac_file" || continue
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest$ac_cv_exeext
2492 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2495 rm -f conftest.$ac_ext
2496 EXEEXT=$ac_cv_exeext
2498 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 if test "${ac_cv_objext+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.o conftest.obj
2519 if { (ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 for ac_file in conftest.o conftest.obj conftest.*; do
2530 test -f "$ac_file" || continue;
2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&2;}
2545 { (exit 1); exit 1; }; }
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6; }
2552 OBJEXT=$ac_cv_objext
2554 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 ac_save_c_werror_flag=$ac_c_werror_flag
2617 ac_c_werror_flag=yes
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compile") 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } && {
2649 test -z "$ac_c_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest.$ac_objext; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compile") 2>conftest.er1
2682 grep -v '^ *+' conftest.er1 >conftest.err
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } && {
2687 test -z "$ac_c_werror_flag" ||
2688 test ! -s conftest.err
2689 } && test -s conftest.$ac_objext; then
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 ac_c_werror_flag=$ac_save_c_werror_flag
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compile") 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } && {
2726 test -z "$ac_c_werror_flag" ||
2727 test ! -s conftest.err
2728 } && test -s conftest.$ac_objext; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_c_werror_flag=$ac_save_c_werror_flag
2746 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748 if test "$ac_test_CFLAGS" = set; then
2749 CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751 if test "$GCC" = yes; then
2757 if test "$GCC" = yes; then
2763 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_cc_c89+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 ac_cv_prog_cc_c89=no
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2794 s = g (p, va_arg (v,int));
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2800 function prototypes and stuff, but not '\xHH' hex character constants.
2801 These don't provoke an error unfortunately, instead are silently treated
2802 as 'x'. The following induces an error, until -std is added to get
2803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2804 array size at least. It's necessary to write '\x00'==0 to get something
2805 that's true only with -std. */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809 inside strings and character constants. */
2811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 ac_cv_prog_cc_c89=$ac_arg
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f core conftest.err conftest.$ac_objext
2857 test "x$ac_cv_prog_cc_c89" != "xno" && break
2859 rm -f conftest.$ac_ext
2864 case "x$ac_cv_prog_cc_c89" in
2866 { echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6; } ;;
2869 { echo "$as_me:$LINENO: result: unsupported" >&5
2870 echo "${ECHO_T}unsupported" >&6; } ;;
2872 CC="$CC $ac_cv_prog_cc_c89"
2873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 if test "$GCC" = yes ; then
2885 if test "$SHLICC2" = yes ; then
2886 ac_cv_lbl_gcc_vers=2
2889 { echo "$as_me:$LINENO: checking gcc version" >&5
2890 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2891 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2895 sed -e '/^gcc version /!d' \
2896 -e 's/^gcc version //' \
2897 -e 's/ .*//' -e 's/^[^0-9]*//' \
2901 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2902 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2903 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2908 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2909 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2910 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <sys/types.h>
2924 int frob(int, char *)
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2946 ac_cv_lbl_cc_ansi_prototypes=yes
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_cv_lbl_cc_ansi_prototypes=no
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2958 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2959 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2963 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2964 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2965 savedcflags="$CFLAGS"
2966 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2967 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 #include <sys/types.h>
2980 int frob(int, char *)
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_cv_lbl_cc_hpux_cc_aa=yes
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 ac_cv_lbl_cc_hpux_cc_aa=no
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3014 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3015 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3016 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3017 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3018 { (exit 1); exit 1; }; }
3020 CFLAGS="$savedcflags"
3021 V_CCOPT="-Aa $V_CCOPT"
3023 cat >>confdefs.h <<\_ACEOF
3024 #define _HPUX_SOURCE 1
3030 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032 { (exit 1); exit 1; }; }
3036 V_INCLS="$V_INCLS -I/usr/local/include"
3037 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3042 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3046 V_CCOPT="$V_CCOPT -std1 -g3"
3050 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3051 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3052 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 #include <sys/types.h>
3065 struct a { int b; };
3066 void c(const struct a *)
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3088 ac_cv_lbl_cc_const_proto=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 ac_cv_lbl_cc_const_proto=no
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3100 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3101 if test $ac_cv_lbl_cc_const_proto = no ; then
3102 cat >>confdefs.h <<\_ACEOF
3111 { echo "$as_me:$LINENO: checking for inline" >&5
3112 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3113 save_CFLAGS="$CFLAGS"
3115 if test "${ac_cv_lbl_inline+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 for ac_lbl_inline in inline __inline__ __inline
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #define inline $ac_lbl_inline
3130 static inline struct iltest *foo(void);
3136 static inline struct iltest *
3139 static struct iltest xxx;
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3168 ac_lbl_cc_inline=yes
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 if test "$ac_lbl_cc_inline" = yes ; then
3181 if test "$ac_lbl_cc_inline" = yes ; then
3182 ac_cv_lbl_inline=$ac_lbl_inline
3186 CFLAGS="$save_CFLAGS"
3187 if test ! -z "$ac_cv_lbl_inline" ; then
3188 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3189 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3195 cat >>confdefs.h <<_ACEOF
3196 #define inline $ac_cv_lbl_inline
3200 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3201 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3202 if test "${ac_cv___attribute__+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3215 static void foo(void) __attribute__ ((noreturn));
3224 main(int argc, char **argv)
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3247 ac_cv___attribute__=yes
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv___attribute__=no
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 if test "$ac_cv___attribute__" = "yes"; then
3260 cat >>confdefs.h <<\_ACEOF
3261 #define HAVE___ATTRIBUTE__ 1
3264 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3266 V_DEFS="$V_DEFS -D_U_=\"\""
3268 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3269 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3272 { echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
3273 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6; }
3274 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3284 # include "confdefs.h"
3285 # include <sys/types.h>
3287 # include <stdlib.h>
3288 # include <stddef.h>
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_cv_lbl_have_u_int8_t=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cv_lbl_have_u_int8_t=no
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
3327 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3328 if test $ac_cv_lbl_have_u_int8_t = no ; then
3330 cat >>confdefs.h <<\_ACEOF
3331 #define u_int8_t u_char
3335 { echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
3336 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6; }
3337 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3347 # include "confdefs.h"
3348 # include <sys/types.h>
3350 # include <stdlib.h>
3351 # include <stddef.h>
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_lbl_have_u_int16_t=yes
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_cv_lbl_have_u_int16_t=no
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
3390 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3391 if test $ac_cv_lbl_have_u_int16_t = no ; then
3393 cat >>confdefs.h <<\_ACEOF
3394 #define u_int16_t u_short
3398 { echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
3399 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6; }
3400 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3410 # include "confdefs.h"
3411 # include <sys/types.h>
3413 # include <stdlib.h>
3414 # include <stddef.h>
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3441 ac_cv_lbl_have_u_int32_t=yes
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 ac_cv_lbl_have_u_int32_t=no
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3453 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3454 if test $ac_cv_lbl_have_u_int32_t = no ; then
3456 cat >>confdefs.h <<\_ACEOF
3457 #define u_int32_t u_int
3461 { echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
3462 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6; }
3463 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 # include "confdefs.h"
3474 # include <sys/types.h>
3476 # include <stdlib.h>
3477 # include <stddef.h>
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3504 ac_cv_lbl_have_u_int64_t=yes
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 ac_cv_lbl_have_u_int64_t=no
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
3516 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6; }
3517 if test $ac_cv_lbl_have_u_int64_t = no ; then
3519 cat >>confdefs.h <<\_ACEOF
3520 #define u_int64_t unsigned long long
3526 # Try to arrange for large file support.
3528 # Check whether --enable-largefile was given.
3529 if test "${enable_largefile+set}" = set; then
3530 enableval=$enable_largefile;
3533 if test "$enable_largefile" != no; then
3535 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3536 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3537 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 ac_cv_sys_largefile_CC=no
3541 if test "$GCC" != yes; then
3544 # IRIX 6.2 and later do not support large files by default,
3545 # so use the C compiler's -n32 option if that helps.
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <sys/types.h>
3553 /* Check that off_t can represent 2**63 - 1 correctly.
3554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3555 since some C++ compilers masquerading as C compilers
3556 incorrectly reject 9223372036854775807. */
3557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3559 && LARGE_OFF_T % 2147483647 == 1)
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3596 rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_sys_largefile_CC=' -n32'; break
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext
3625 rm -f conftest.$ac_ext
3628 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3629 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3630 if test "$ac_cv_sys_largefile_CC" != no; then
3631 CC=$CC$ac_cv_sys_largefile_CC
3634 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3635 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3636 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <sys/types.h>
3647 /* Check that off_t can represent 2**63 - 1 correctly.
3648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649 since some C++ compilers masquerading as C compilers
3650 incorrectly reject 9223372036854775807. */
3651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653 && LARGE_OFF_T % 2147483647 == 1)
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_cv_sys_file_offset_bits=no; break
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #define _FILE_OFFSET_BITS 64
3696 #include <sys/types.h>
3697 /* Check that off_t can represent 2**63 - 1 correctly.
3698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3699 since some C++ compilers masquerading as C compilers
3700 incorrectly reject 9223372036854775807. */
3701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3703 && LARGE_OFF_T % 2147483647 == 1)
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
3730 ac_cv_sys_file_offset_bits=64; break
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cv_sys_file_offset_bits=unknown
3743 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3744 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3745 case $ac_cv_sys_file_offset_bits in #(
3748 cat >>confdefs.h <<_ACEOF
3749 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3754 if test $ac_cv_sys_file_offset_bits = unknown; then
3755 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3756 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3757 if test "${ac_cv_sys_large_files+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <sys/types.h>
3768 /* Check that off_t can represent 2**63 - 1 correctly.
3769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770 since some C++ compilers masquerading as C compilers
3771 incorrectly reject 9223372036854775807. */
3772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774 && LARGE_OFF_T % 2147483647 == 1)
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_compile") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } && {
3798 test -z "$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3800 } && test -s conftest.$ac_objext; then
3801 ac_cv_sys_large_files=no; break
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #define _LARGE_FILES 1
3817 #include <sys/types.h>
3818 /* Check that off_t can represent 2**63 - 1 correctly.
3819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3820 since some C++ compilers masquerading as C compilers
3821 incorrectly reject 9223372036854775807. */
3822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3824 && LARGE_OFF_T % 2147483647 == 1)
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_compile") 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } && {
3848 test -z "$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 } && test -s conftest.$ac_objext; then
3851 ac_cv_sys_large_files=1; break
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_sys_large_files=unknown
3864 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3865 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3866 case $ac_cv_sys_large_files in #(
3869 cat >>confdefs.h <<_ACEOF
3870 #define _LARGE_FILES $ac_cv_sys_large_files
3878 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3879 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
3880 if test "${ac_cv_sys_largefile_source+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3894 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_link") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest$ac_exeext &&
3916 $as_test_x conftest$ac_exeext; then
3917 ac_cv_sys_largefile_source=no; break
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926 conftest$ac_exeext conftest.$ac_ext
3927 cat >conftest.$ac_ext <<_ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #define _LARGEFILE_SOURCE 1
3938 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3943 rm -f conftest.$ac_objext conftest$ac_exeext
3944 if { (ac_try="$ac_link"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_link") 2>conftest.er1
3952 grep -v '^ *+' conftest.er1 >conftest.err
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && {
3957 test -z "$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 } && test -s conftest$ac_exeext &&
3960 $as_test_x conftest$ac_exeext; then
3961 ac_cv_sys_largefile_source=1; break
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3970 conftest$ac_exeext conftest.$ac_ext
3971 ac_cv_sys_largefile_source=unknown
3975 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
3976 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
3977 case $ac_cv_sys_largefile_source in #(
3980 cat >>confdefs.h <<_ACEOF
3981 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3987 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3988 # in glibc 2.1.3, but that breaks too many other things.
3989 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3990 if test $ac_cv_sys_largefile_source != unknown; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define HAVE_FSEEKO 1
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4006 # On Suns, sometimes $CPP names a directory.
4007 if test -n "$CPP" && test -d "$CPP"; then
4010 if test -z "$CPP"; then
4011 if test "${ac_cv_prog_CPP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 # Double quotes because CPP needs to be expanded
4015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4018 for ac_c_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4033 # include <limits.h>
4035 # include <assert.h>
4039 if { (ac_try="$ac_cpp conftest.$ac_ext"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null && {
4052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 # Broken: fails on valid input.
4064 rm -f conftest.err conftest.$ac_ext
4066 # OK, works on sane cases. Now check whether nonexistent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4092 # Broken: success on invalid input.
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Passes both tests.
4103 rm -f conftest.err conftest.$ac_ext
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4120 { echo "$as_me:$LINENO: result: $CPP" >&5
4121 echo "${ECHO_T}$CPP" >&6; }
4123 for ac_c_preproc_warn_flag in '' yes
4125 # Use a header file that comes with gcc, so configuring glibc
4126 # with a fresh cross-compiler works.
4127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128 # <limits.h> exists even on freestanding compilers.
4129 # On the NeXT, cc -E runs the code through the compiler's parser,
4130 # not just through cpp. "Syntax error" is here to catch this case.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4138 # include <limits.h>
4140 # include <assert.h>
4144 if { (ac_try="$ac_cpp conftest.$ac_ext"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null && {
4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 # Broken: fails on valid input.
4169 rm -f conftest.err conftest.$ac_ext
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <ac_nonexistent.h>
4181 if { (ac_try="$ac_cpp conftest.$ac_ext"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4197 # Broken: success on invalid input.
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 # Passes both tests.
4208 rm -f conftest.err conftest.$ac_ext
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4216 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4217 See \`config.log' for more details." >&5
4218 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&2;}
4220 { (exit 1); exit 1; }; }
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4231 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4232 if test "${ac_cv_path_GREP+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 # Extract the first word of "grep ggrep" to use in msg output
4236 if test -z "$GREP"; then
4237 set dummy grep ggrep; ac_prog_name=$2
4238 if test "${ac_cv_path_GREP+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_path_GREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in grep ggrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252 # Check for GNU ac_path_GREP and select it if it is found.
4253 # Check for GNU $ac_path_GREP
4254 case `"$ac_path_GREP" --version 2>&1` in
4256 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 echo 'GREP' >> "conftest.nl"
4266 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 ac_count=`expr $ac_count + 1`
4269 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_GREP="$ac_path_GREP"
4272 ac_path_GREP_max=$ac_count
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 $ac_path_GREP_found && break 3
4291 GREP="$ac_cv_path_GREP"
4292 if test -z "$GREP"; then
4293 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4294 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4295 { (exit 1); exit 1; }; }
4299 ac_cv_path_GREP=$GREP
4304 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4305 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4309 { echo "$as_me:$LINENO: checking for egrep" >&5
4310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4311 if test "${ac_cv_path_EGREP+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315 then ac_cv_path_EGREP="$GREP -E"
4317 # Extract the first word of "egrep" to use in msg output
4318 if test -z "$EGREP"; then
4319 set dummy egrep; ac_prog_name=$2
4320 if test "${ac_cv_path_EGREP+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 ac_count=`expr $ac_count + 1`
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 $ac_path_EGREP_found && break 3
4373 EGREP="$ac_cv_path_EGREP"
4374 if test -z "$EGREP"; then
4375 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4376 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4377 { (exit 1); exit 1; }; }
4381 ac_cv_path_EGREP=$EGREP
4387 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4388 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4389 EGREP="$ac_cv_path_EGREP"
4392 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4394 if test "${ac_cv_header_stdc+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_compile") 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && {
4430 test -z "$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 } && test -s conftest.$ac_objext; then
4433 ac_cv_header_stdc=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_header_stdc=no
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 if test $ac_cv_header_stdc = yes; then
4444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455 $EGREP "memchr" >/dev/null 2>&1; then
4458 ac_cv_header_stdc=no
4464 if test $ac_cv_header_stdc = yes; then
4465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 $EGREP "free" >/dev/null 2>&1; then
4479 ac_cv_header_stdc=no
4485 if test $ac_cv_header_stdc = yes; then
4486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487 if test "$cross_compiling" = yes; then
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4498 #if ((' ' & 0x0FF) == 0x020)
4499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4502 # define ISLOWER(c) \
4503 (('a' <= (c) && (c) <= 'i') \
4504 || ('j' <= (c) && (c) <= 'r') \
4505 || ('s' <= (c) && (c) <= 'z'))
4506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4514 for (i = 0; i < 256; i++)
4515 if (XOR (islower (i), ISLOWER (i))
4516 || toupper (i) != TOUPPER (i))
4521 rm -f conftest$ac_exeext
4522 if { (ac_try="$ac_link"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_link") 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532 { (case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_try") 2>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 echo "$as_me: program exited with status $ac_status" >&5
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4548 ac_cv_header_stdc=no
4550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4557 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4558 if test $ac_cv_header_stdc = yes; then
4560 cat >>confdefs.h <<\_ACEOF
4561 #define STDC_HEADERS 1
4566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4593 #include <$ac_header>
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 eval "$as_ac_Header=yes"
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 eval "$as_ac_Header=no"
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_res=`eval echo '${'$as_ac_Header'}'`
4623 { echo "$as_me:$LINENO: result: $ac_res" >&5
4624 echo "${ECHO_T}$ac_res" >&6; }
4625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 ac_res=`eval echo '${'$as_ac_Header'}'`
4649 { echo "$as_me:$LINENO: result: $ac_res" >&5
4650 echo "${ECHO_T}$ac_res" >&6; }
4652 # Is the header compilable?
4653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4662 #include <$ac_header>
4664 rm -f conftest.$ac_objext
4665 if { (ac_try="$ac_compile"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_compile") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4681 ac_header_compiler=yes
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_header_compiler=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691 echo "${ECHO_T}$ac_header_compiler" >&6; }
4693 # Is the header present?
4694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 #include <$ac_header>
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } >/dev/null && {
4717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4720 ac_header_preproc=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ac_header_preproc=no
4728 rm -f conftest.err conftest.$ac_ext
4729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730 echo "${ECHO_T}$ac_header_preproc" >&6; }
4732 # So? What about this header?
4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739 ac_header_preproc=yes
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 eval "$as_ac_Header=\$ac_header_preproc"
4764 ac_res=`eval echo '${'$as_ac_Header'}'`
4765 { echo "$as_me:$LINENO: result: $ac_res" >&5
4766 echo "${ECHO_T}$ac_res" >&6; }
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 for ac_header in net/pfvar.h
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <sys/types.h>
4794 #include <sys/socket.h>
4797 #include <$ac_header>
4799 rm -f conftest.$ac_objext
4800 if { (ac_try="$ac_compile"
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 eval "$as_ac_Header=yes"
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 eval "$as_ac_Header=no"
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_res=`eval echo '${'$as_ac_Header'}'`
4827 { echo "$as_me:$LINENO: result: $ac_res" >&5
4828 echo "${ECHO_T}$ac_res" >&6; }
4829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4830 cat >>confdefs.h <<_ACEOF
4831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 if test "$ac_cv_header_net_pfvar_h" = yes; then
4840 # Check for various PF actions.
4842 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4843 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 #include <sys/socket.h>
4853 #include <net/pfvar.h>
4857 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4880 { echo "$as_me:$LINENO: result: yes" >&5
4881 echo "${ECHO_T}yes" >&6; }
4883 cat >>confdefs.h <<\_ACEOF
4884 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 for ac_header in netinet/if_ether.h
4901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <sys/types.h>
4914 #include <sys/socket.h>
4916 #include <$ac_header>
4918 rm -f conftest.$ac_objext
4919 if { (ac_try="$ac_compile"
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_compile") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest.$ac_objext; then
4935 eval "$as_ac_Header=yes"
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 eval "$as_ac_Header=no"
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 ac_res=`eval echo '${'$as_ac_Header'}'`
4946 { echo "$as_me:$LINENO: result: $ac_res" >&5
4947 echo "${ECHO_T}$ac_res" >&6; }
4948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949 cat >>confdefs.h <<_ACEOF
4950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4957 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4959 # The simple test didn't work.
4960 # Do we need to include <net/if.h> first?
4961 # Unset ac_cv_header_netinet_if_ether_h so we don't
4962 # treat the previous failure as a cached value and
4963 # suppress the next test.
4965 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4966 echo "$as_me: Rechecking with some additional includes" >&6;}
4967 unset ac_cv_header_netinet_if_ether_h
4969 for ac_header in netinet/if_ether.h
4971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <sys/types.h>
4984 #include <sys/socket.h>
4985 #include <netinet/in.h>
4990 #include <$ac_header>
4992 rm -f conftest.$ac_objext
4993 if { (ac_try="$ac_compile"
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 eval "$as_ac_Header=yes"
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 eval "$as_ac_Header=no"
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_res=`eval echo '${'$as_ac_Header'}'`
5020 { echo "$as_me:$LINENO: result: $ac_res" >&5
5021 echo "${ECHO_T}$ac_res" >&6; }
5022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5023 cat >>confdefs.h <<_ACEOF
5024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033 if test "$GCC" = yes ; then
5034 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5035 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5036 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5046 * This generates a "duplicate case value" when fixincludes
5049 # include <sys/types.h>
5050 # include <sys/time.h>
5051 # include <sys/ioctl.h>
5052 # ifdef HAVE_SYS_IOCCOM_H
5053 # include <sys/ioccom.h>
5066 rm -f conftest.$ac_objext
5067 if { (ac_try="$ac_compile"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5083 ac_cv_lbl_gcc_fixincludes=yes
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ac_cv_lbl_gcc_fixincludes=no
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5095 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5096 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5097 # Don't cache failure
5098 unset ac_cv_lbl_gcc_fixincludes
5099 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5100 echo "$as_me: error: see the INSTALL for more info" >&2;}
5101 { (exit 1); exit 1; }; }
5107 for ac_func in strerror strlcpy
5109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5123 #define $ac_func innocuous_$ac_func
5125 /* System header to define __stub macros and hopefully few prototypes,
5126 which can conflict with char $ac_func (); below.
5127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5128 <limits.h> exists even on freestanding compilers. */
5131 # include <limits.h>
5133 # include <assert.h>
5138 /* Override any GCC internal prototype to avoid an error.
5139 Use char because int might match the return type of a GCC
5140 builtin and then its argument prototype would still apply. */
5145 /* The GNU C library defines this for functions which it implements
5146 to always fail with ENOSYS. Some functions are actually named
5147 something starting with __ and the normal name is an alias. */
5148 #if defined __stub_$ac_func || defined __stub___$ac_func
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest$ac_exeext &&
5177 $as_test_x conftest$ac_exeext; then
5178 eval "$as_ac_var=yes"
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 eval "$as_ac_var=no"
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
5189 ac_res=`eval echo '${'$as_ac_var'}'`
5190 { echo "$as_me:$LINENO: result: $ac_res" >&5
5191 echo "${ECHO_T}$ac_res" >&6; }
5192 if test `eval echo '${'$as_ac_var'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5204 for ac_func in vsnprintf snprintf
5206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5220 #define $ac_func innocuous_$ac_func
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func (); below.
5224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 <limits.h> exists even on freestanding compilers. */
5228 # include <limits.h>
5230 # include <assert.h>
5235 /* Override any GCC internal prototype to avoid an error.
5236 Use char because int might match the return type of a GCC
5237 builtin and then its argument prototype would still apply. */
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined __stub_$ac_func || defined __stub___$ac_func
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest$ac_exeext &&
5274 $as_test_x conftest$ac_exeext; then
5275 eval "$as_ac_var=yes"
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 eval "$as_ac_var=no"
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284 conftest$ac_exeext conftest.$ac_ext
5286 ac_res=`eval echo '${'$as_ac_var'}'`
5287 { echo "$as_me:$LINENO: result: $ac_res" >&5
5288 echo "${ECHO_T}$ac_res" >&6; }
5289 if test `eval echo '${'$as_ac_var'}'` = yes; then
5290 cat >>confdefs.h <<_ACEOF
5291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5299 if test $needsnprintf = yes; then
5300 case " $LIBOBJS " in
5301 *" snprintf.$ac_objext "* ) ;;
5302 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5309 # Do this before checking for ether_hostton(), as it's a
5310 # "gethostbyname() -ish function".
5313 # Most operating systems have gethostbyname() in the default searched
5314 # libraries (i.e. libc):
5315 # Some OSes (eg. Solaris) place it in libnsl
5316 # Some strange OSes (SINIX) have it in libsocket:
5317 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5318 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5319 if test "${ac_cv_search_gethostbyname+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 ac_func_search_save_LIBS=$LIBS
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5330 /* Override any GCC internal prototype to avoid an error.
5331 Use char because int might match the return type of a GCC
5332 builtin and then its argument prototype would still apply. */
5336 char gethostbyname ();
5340 return gethostbyname ();
5345 for ac_lib in '' nsl socket resolv; do
5346 if test -z "$ac_lib"; then
5347 ac_res="none required"
5350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5352 rm -f conftest.$ac_objext conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_link") 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } && {
5366 test -z "$ac_c_werror_flag" ||
5367 test ! -s conftest.err
5368 } && test -s conftest$ac_exeext &&
5369 $as_test_x conftest$ac_exeext; then
5370 ac_cv_search_gethostbyname=$ac_res
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5380 if test "${ac_cv_search_gethostbyname+set}" = set; then
5384 if test "${ac_cv_search_gethostbyname+set}" = set; then
5387 ac_cv_search_gethostbyname=no
5390 LIBS=$ac_func_search_save_LIBS
5392 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5393 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5394 ac_res=$ac_cv_search_gethostbyname
5395 if test "$ac_res" != no; then
5396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5400 # Unfortunately libsocket sometimes depends on libnsl and
5401 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5402 if test "$ac_cv_search_gethostbyname" = "no"
5404 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5405 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5406 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_check_lib_save_LIBS=$LIBS
5410 LIBS="-lsocket -lnsl $LIBS"
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5418 /* Override any GCC internal prototype to avoid an error.
5419 Use char because int might match the return type of a GCC
5420 builtin and then its argument prototype would still apply. */
5424 char gethostbyname ();
5428 return gethostbyname ();
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (ac_try="$ac_link"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_link") 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_c_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest$ac_exeext &&
5450 $as_test_x conftest$ac_exeext; then
5451 ac_cv_lib_socket_gethostbyname=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_cv_lib_socket_gethostbyname=no
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5463 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5464 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5465 if test $ac_cv_lib_socket_gethostbyname = yes; then
5466 LIBS="-lsocket -lnsl $LIBS"
5470 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5471 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5472 if test "${ac_cv_search_socket+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 ac_func_search_save_LIBS=$LIBS
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 /* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5498 for ac_lib in '' socket; do
5499 if test -z "$ac_lib"; then
5500 ac_res="none required"
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5505 rm -f conftest.$ac_objext conftest$ac_exeext
5506 if { (ac_try="$ac_link"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_link") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && {
5519 test -z "$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 } && test -s conftest$ac_exeext &&
5522 $as_test_x conftest$ac_exeext; then
5523 ac_cv_search_socket=$ac_res
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5533 if test "${ac_cv_search_socket+set}" = set; then
5537 if test "${ac_cv_search_socket+set}" = set; then
5540 ac_cv_search_socket=no
5543 LIBS=$ac_func_search_save_LIBS
5545 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5546 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5547 ac_res=$ac_cv_search_socket
5548 if test "$ac_res" != no; then
5549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5552 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5553 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5554 if test "${ac_cv_lib_socket_socket+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_check_lib_save_LIBS=$LIBS
5558 LIBS="-lsocket -lnsl $LIBS"
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5566 /* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_link") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest$ac_exeext &&
5598 $as_test_x conftest$ac_exeext; then
5599 ac_cv_lib_socket_socket=yes
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 ac_cv_lib_socket_socket=no
5607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5608 conftest$ac_exeext conftest.$ac_ext
5609 LIBS=$ac_check_lib_save_LIBS
5611 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5612 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5613 if test $ac_cv_lib_socket_socket = yes; then
5614 LIBS="-lsocket -lnsl $LIBS"
5619 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5620 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5621 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5622 if test "${ac_cv_search_putmsg+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 ac_func_search_save_LIBS=$LIBS
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5633 /* Override any GCC internal prototype to avoid an error.
5634 Use char because int might match the return type of a GCC
5635 builtin and then its argument prototype would still apply. */
5648 for ac_lib in '' str; do
5649 if test -z "$ac_lib"; then
5650 ac_res="none required"
5653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (ac_try="$ac_link"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_link") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest$ac_exeext &&
5672 $as_test_x conftest$ac_exeext; then
5673 ac_cv_search_putmsg=$ac_res
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5683 if test "${ac_cv_search_putmsg+set}" = set; then
5687 if test "${ac_cv_search_putmsg+set}" = set; then
5690 ac_cv_search_putmsg=no
5693 LIBS=$ac_func_search_save_LIBS
5695 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5696 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5697 ac_res=$ac_cv_search_putmsg
5698 if test "$ac_res" != no; then
5699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5706 # You are in a twisty little maze of UN*Xes, all different.
5707 # Some might not have ether_hostton().
5708 # Some might have it, but not declare it in any header file.
5709 # Some might have it, but declare it in <netinet/if_ether.h>.
5710 # Some might have it, but declare it in <netinet/ether.h>
5711 # (And some might have it but document it as something declared in
5712 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5714 # Before you is a C compiler.
5717 for ac_func in ether_hostton
5719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5733 #define $ac_func innocuous_$ac_func
5735 /* System header to define __stub macros and hopefully few prototypes,
5736 which can conflict with char $ac_func (); below.
5737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738 <limits.h> exists even on freestanding compilers. */
5741 # include <limits.h>
5743 # include <assert.h>
5748 /* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */
5755 /* The GNU C library defines this for functions which it implements
5756 to always fail with ENOSYS. Some functions are actually named
5757 something starting with __ and the normal name is an alias. */
5758 #if defined __stub_$ac_func || defined __stub___$ac_func
5770 rm -f conftest.$ac_objext conftest$ac_exeext
5771 if { (ac_try="$ac_link"
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_link") 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest$ac_exeext &&
5787 $as_test_x conftest$ac_exeext; then
5788 eval "$as_ac_var=yes"
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_var=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5797 conftest$ac_exeext conftest.$ac_ext
5799 ac_res=`eval echo '${'$as_ac_var'}'`
5800 { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5802 if test `eval echo '${'$as_ac_var'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5810 if test "$ac_cv_func_ether_hostton" = yes; then
5812 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5814 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5816 # Yes. Does it declare ether_hostton()?
5818 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5819 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5820 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <sys/socket.h>
5832 #include <netinet/in.h>
5833 #include <arpa/inet.h>
5837 #include <netinet/if_ether.h>
5843 #ifndef ether_hostton
5844 (void) ether_hostton;
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
5868 ac_cv_have_decl_ether_hostton=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_cv_have_decl_ether_hostton=no
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5879 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5880 if test $ac_cv_have_decl_ether_hostton = yes; then
5883 cat >>confdefs.h <<\_ACEOF
5884 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5894 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5896 # No, how about <netinet/ether.h>, as on Linux?
5899 for ac_header in netinet/ether.h
5901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_res=`eval echo '${'$as_ac_Header'}'`
5909 { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5912 # Is the header compilable?
5913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5915 cat >conftest.$ac_ext <<_ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5922 #include <$ac_header>
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.$ac_objext; then
5941 ac_header_compiler=yes
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_header_compiler=no
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5951 echo "${ECHO_T}$ac_header_compiler" >&6; }
5953 # Is the header present?
5954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <$ac_header>
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5980 ac_header_preproc=yes
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 ac_header_preproc=no
5988 rm -f conftest.err conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5990 echo "${ECHO_T}$ac_header_preproc" >&6; }
5992 # So? What about this header?
5993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5999 ac_header_preproc=yes
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 eval "$as_ac_Header=\$ac_header_preproc"
6024 ac_res=`eval echo '${'$as_ac_Header'}'`
6025 { echo "$as_me:$LINENO: result: $ac_res" >&5
6026 echo "${ECHO_T}$ac_res" >&6; }
6029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030 cat >>confdefs.h <<_ACEOF
6031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 if test "$ac_cv_header_netinet_ether_h" = yes; then
6040 # We have it - does it declare ether_hostton()?
6041 # Unset ac_cv_have_decl_ether_hostton so we don't
6042 # treat the previous failure as a cached value and
6043 # suppress the next test.
6045 unset ac_cv_have_decl_ether_hostton
6046 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6047 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6048 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6058 #include <netinet/ether.h>
6064 #ifndef ether_hostton
6065 (void) ether_hostton;
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6089 ac_cv_have_decl_ether_hostton=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_have_decl_ether_hostton=no
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6100 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6101 if test $ac_cv_have_decl_ether_hostton = yes; then
6104 cat >>confdefs.h <<\_ACEOF
6105 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6114 # Is ether_hostton() declared?
6116 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6118 # No, we'll have to declare it ourselves.
6119 # Do we have "struct ether_addr"?
6121 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6122 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6123 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 #include <sys/socket.h>
6135 #include <netinet/in.h>
6136 #include <arpa/inet.h>
6140 #include <netinet/if_ether.h>
6143 typedef struct ether_addr ac__type_new_;
6147 if ((ac__type_new_ *) 0)
6149 if (sizeof (ac__type_new_))
6155 rm -f conftest.$ac_objext
6156 if { (ac_try="$ac_compile"
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compile") 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest.$ac_objext; then
6172 ac_cv_type_struct_ether_addr=yes
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_cv_type_struct_ether_addr=no
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6183 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6184 if test $ac_cv_type_struct_ether_addr = yes; then
6186 cat >>confdefs.h <<_ACEOF
6187 #define HAVE_STRUCT_ETHER_ADDR 1
6194 cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_DECL_ETHER_HOSTTON 0
6200 cat >>confdefs.h <<\_ACEOF
6201 #define HAVE_DECL_ETHER_HOSTTON 1
6207 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6208 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6209 # Check whether --enable-protochain was given.
6210 if test "${enable_protochain+set}" = set; then
6211 enableval=$enable_protochain;
6214 case "x$enable_protochain" in
6215 xyes) enable_protochain=enabled ;;
6216 xno) enable_protochain=disabled ;;
6217 x) enable_protochain=enabled ;;
6220 if test "$enable_protochain" = "disabled"; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define NO_PROTOCHAIN 1
6227 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6228 echo "${ECHO_T}${enable_protochain}" >&6; }
6231 # SITA support is mutually exclusive with native capture support;
6232 # "--with-sita" selects SITA support.
6235 # Check whether --with-sita was given.
6236 if test "${with_sita+set}" = set; then
6239 cat >>confdefs.h <<\_ACEOF
6243 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6244 echo "$as_me: Enabling SITA ACN support" >&6;}
6250 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6251 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6252 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6253 { (exit 1); exit 1; }; }
6256 # Check whether --with-pcap was given.
6257 if test "${with_pcap+set}" = set; then
6261 { echo "$as_me:$LINENO: checking packet capture type" >&5
6262 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6263 if test ! -z "$with_pcap" ; then
6265 elif test -r /dev/bpf ; then
6267 # Cloning BPF device.
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_CLONING_BPF 1
6275 elif test -r /dev/bpf0 ; then
6277 elif test -r /usr/include/net/pfilt.h ; then
6279 elif test -r /dev/enet ; then
6281 elif test -r /dev/nit ; then
6283 elif test -r /usr/include/sys/net/nit.h ; then
6285 elif test -r /usr/include/linux/socket.h ; then
6287 elif test -r /usr/include/net/raw.h ; then
6289 elif test -r /usr/include/odmi.h ; then
6291 # On AIX, the BPF devices might not yet be present - they're
6292 # created the first time libpcap runs after booting.
6293 # We check for odmi.h instead.
6296 elif test -r /usr/include/sys/dlpi.h ; then
6298 elif test -c /dev/bpf0 ; then # check again in case not readable
6300 elif test -c /dev/enet ; then # check again in case not readable
6302 elif test -c /dev/nit ; then # check again in case not readable
6307 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6308 echo "${ECHO_T}$V_PCAP" >&6; }
6311 # Do capture-mechanism-dependent tests.
6316 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6317 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6318 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6319 # private version also existed, which did not have the same APIs.
6320 # Due to a gcc bug, the default search path for 32-bit libraries does
6321 # not include /lib, we add it explicitly here.
6322 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6323 # Also, due to the bug above applications that link to libpcap with
6324 # libdlpi will have to add "-L/lib" option to "configure".
6326 saved_ldflags=$LDFLAGS
6327 LDFLAGS="$LIBS -L/lib"
6328 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6329 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6330 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 ac_check_lib_save_LIBS=$LIBS
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 /* Override any GCC internal prototype to avoid an error.
6343 Use char because int might match the return type of a GCC
6344 builtin and then its argument prototype would still apply. */
6352 return dlpi_walk ();
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (ac_try="$ac_link"
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_link") 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest$ac_exeext &&
6374 $as_test_x conftest$ac_exeext; then
6375 ac_cv_lib_dlpi_dlpi_walk=yes
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_lib_dlpi_dlpi_walk=no
6383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6384 conftest$ac_exeext conftest.$ac_ext
6385 LIBS=$ac_check_lib_save_LIBS
6387 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6388 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6389 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
6393 cat >>confdefs.h <<\_ACEOF
6394 #define HAVE_LIBDLPI 1
6401 LDFLAGS=$saved_ldflags
6404 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6407 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
6408 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
6409 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 cat >conftest.$ac_ext <<_ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/time.h>
6421 #include <sys/dlpi.h>
6426 int i = DL_PROMISC_PHYS;
6431 rm -f conftest.$ac_objext
6432 if { (ac_try="$ac_compile"
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6440 grep -v '^ *+' conftest.er1 >conftest.err
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } && {
6445 test -z "$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 } && test -s conftest.$ac_objext; then
6448 ac_cv_sys_dlpi_usable=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_sys_dlpi_usable=no
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
6460 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
6461 if test $ac_cv_sys_dlpi_usable = no ; then
6462 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
6463 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
6464 { (exit 1); exit 1; }; }
6468 # Check whether we have a /dev/dlpi device or have multiple devices.
6470 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6471 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6472 if test -c /dev/dlpi ; then
6473 { echo "$as_me:$LINENO: result: yes" >&5
6474 echo "${ECHO_T}yes" >&6; }
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_DEV_DLPI 1
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6484 { echo "$as_me:$LINENO: checking for $dir directory" >&5
6485 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6486 if test -d $dir ; then
6487 { echo "$as_me:$LINENO: result: yes" >&5
6488 echo "${ECHO_T}yes" >&6; }
6490 cat >>confdefs.h <<_ACEOF
6491 #define PCAP_DEV_PREFIX "$dir"
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6501 # This check is for Solaris with DLPI support for passive modes.
6502 # See dlpi(7P) for more details.
6504 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
6505 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
6506 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6516 # include <sys/types.h>
6517 # include <sys/dlpi.h>
6521 u_int i = sizeof(dl_passive_req_t)
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest.$ac_objext; then
6543 ac_cv_lbl_has_dl_passive_req_t=yes
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_cv_lbl_has_dl_passive_req_t=no
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
6555 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
6556 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_DLPI_PASSIVE 1
6566 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
6567 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6568 if test "$cross_compiling" = yes; then
6569 if test "${ac_cv_linux_vers+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_linux_vers=unknown
6576 if test "${ac_cv_linux_vers+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 ac_cv_linux_vers=`uname -r 2>&1 | \
6580 sed -n -e '$s/.* //' -e '$s/\..*//p'`
6584 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6585 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6586 if test $ac_cv_linux_vers = unknown ; then
6587 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6588 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6589 { (exit 1); exit 1; }; }
6591 if test $ac_cv_linux_vers -lt 2 ; then
6592 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6593 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6594 { (exit 1); exit 1; }; }
6597 for ac_header in linux/wireless.h
6599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 cat >conftest.$ac_ext <<_ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6612 #include <sys/socket.h>
6614 #include <linux/types.h>
6617 #include <$ac_header>
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 eval "$as_ac_Header=yes"
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 eval "$as_ac_Header=no"
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 ac_res=`eval echo '${'$as_ac_Header'}'`
6647 { echo "$as_me:$LINENO: result: $ac_res" >&5
6648 echo "${ECHO_T}$ac_res" >&6; }
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650 cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_res=`eval echo '${'$as_ac_Header'}'`
6668 { echo "$as_me:$LINENO: result: $ac_res" >&5
6669 echo "${ECHO_T}$ac_res" >&6; }
6671 # Is the header compilable?
6672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6674 cat >conftest.$ac_ext <<_ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6681 #include <$ac_header>
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6700 ac_header_compiler=yes
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 ac_header_compiler=no
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6710 echo "${ECHO_T}$ac_header_compiler" >&6; }
6712 # Is the header present?
6713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <$ac_header>
6723 if { (ac_try="$ac_cpp conftest.$ac_ext"
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev/null && {
6736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6739 ac_header_preproc=yes
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_header_preproc=no
6747 rm -f conftest.err conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6749 echo "${ECHO_T}$ac_header_preproc" >&6; }
6751 # So? What about this header?
6752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6758 ac_header_preproc=yes
6761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 eval "$as_ac_Header=\$ac_header_preproc"
6783 ac_res=`eval echo '${'$as_ac_Header'}'`
6784 { echo "$as_me:$LINENO: result: $ac_res" >&5
6785 echo "${ECHO_T}$ac_res" >&6; }
6788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6797 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6798 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6799 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 # include <linux/if_packet.h>
6813 struct tpacket_stats stats
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 ac_cv_lbl_tpacket_stats=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_lbl_tpacket_stats=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6847 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6848 if test $ac_cv_lbl_tpacket_stats = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_TPACKET_STATS 1
6855 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6856 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
6857 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6867 # include <linux/if_packet.h>
6871 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6905 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6906 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
6917 # Check whether we have the *BSD-style ioctls.
6920 for ac_header in net/if_media.h
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 ac_res=`eval echo '${'$as_ac_Header'}'`
6930 { echo "$as_me:$LINENO: result: $ac_res" >&5
6931 echo "${ECHO_T}$ac_res" >&6; }
6933 # Is the header compilable?
6934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 #include <$ac_header>
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_compile") 2>conftest.er1
6954 grep -v '^ *+' conftest.er1 >conftest.err
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && {
6959 test -z "$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6961 } && test -s conftest.$ac_objext; then
6962 ac_header_compiler=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 ac_header_compiler=no
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6972 echo "${ECHO_T}$ac_header_compiler" >&6; }
6974 # Is the header present?
6975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 #include <$ac_header>
6985 if { (ac_try="$ac_cpp conftest.$ac_ext"
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } >/dev/null && {
6998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7001 ac_header_preproc=yes
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 ac_header_preproc=no
7009 rm -f conftest.err conftest.$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7011 echo "${ECHO_T}$ac_header_preproc" >&6; }
7013 # So? What about this header?
7014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7020 ac_header_preproc=yes
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 eval "$as_ac_Header=\$ac_header_preproc"
7045 ac_res=`eval echo '${'$as_ac_Header'}'`
7046 { echo "$as_me:$LINENO: result: $ac_res" >&5
7047 echo "${ECHO_T}$ac_res" >&6; }
7050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7061 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <sys/socket.h>
7069 #include <sys/ioctl.h>
7071 #include <net/bpf.h>
7075 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7098 { echo "$as_me:$LINENO: result: yes" >&5
7099 echo "${ECHO_T}yes" >&6; }
7101 cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_ZEROCOPY_BPF 1
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 V_DEFS="$V_DEFS -DDAG_ONLY"
7122 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7126 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7127 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7129 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7133 if test "$V_PCAP" = null
7136 # We can't capture, so we can't open any capture
7137 # devices, so we won't return any interfaces.
7141 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7142 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7143 if test "${ac_cv_func_getifaddrs+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7154 #define getifaddrs innocuous_getifaddrs
7156 /* System header to define __stub macros and hopefully few prototypes,
7157 which can conflict with char getifaddrs (); below.
7158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7159 <limits.h> exists even on freestanding compilers. */
7162 # include <limits.h>
7164 # include <assert.h>
7169 /* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7186 return getifaddrs ();
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (ac_try="$ac_link"
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_link") 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_exeext &&
7208 $as_test_x conftest$ac_exeext; then
7209 ac_cv_func_getifaddrs=yes
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_cv_func_getifaddrs=no
7217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218 conftest$ac_exeext conftest.$ac_ext
7220 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7221 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7222 if test $ac_cv_func_getifaddrs = yes; then
7225 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7226 # as well, just in case some platform is really weird.
7228 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7229 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7230 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7231 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7235 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7237 # Is the header compilable?
7238 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7239 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 $ac_includes_default
7247 #include <ifaddrs.h>
7249 rm -f conftest.$ac_objext
7250 if { (ac_try="$ac_compile"
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_compile") 2>conftest.er1
7258 grep -v '^ *+' conftest.er1 >conftest.err
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest.$ac_objext; then
7266 ac_header_compiler=yes
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_header_compiler=no
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7276 echo "${ECHO_T}$ac_header_compiler" >&6; }
7278 # Is the header present?
7279 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7280 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 #include <ifaddrs.h>
7289 if { (ac_try="$ac_cpp conftest.$ac_ext"
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } >/dev/null && {
7302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7305 ac_header_preproc=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_header_preproc=no
7313 rm -f conftest.err conftest.$ac_ext
7314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7315 echo "${ECHO_T}$ac_header_preproc" >&6; }
7317 # So? What about this header?
7318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7320 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7321 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
7323 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
7324 ac_header_preproc=yes
7327 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
7328 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
7330 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
7332 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
7334 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
7338 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
7342 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7343 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7344 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_header_ifaddrs_h=$ac_header_preproc
7349 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7350 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7353 if test $ac_cv_header_ifaddrs_h = yes; then
7356 # We have the header, so we use "getifaddrs()" to
7357 # get the list of interfaces.
7364 # We don't have the header - give up.
7365 # XXX - we could also fall back on some other
7366 # mechanism, but, for now, this'll catch this
7367 # problem so that we can at least try to figure
7368 # out something to do on systems with "getifaddrs()"
7369 # but without "ifaddrs.h", if there is something
7370 # we can do on those systems.
7372 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
7373 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
7374 { (exit 1); exit 1; }; }
7383 # Well, we don't have "getifaddrs()", so we have to use
7384 # some other mechanism; determine what that mechanism is.
7386 # The first thing we use is the type of capture mechanism,
7387 # which is somewhat of a proxy for the OS we're using.
7394 for ac_header in sys/bufmod.h sys/dlpi_ext.h
7396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_res=`eval echo '${'$as_ac_Header'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7407 # Is the header compilable?
7408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7410 cat >conftest.$ac_ext <<_ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 $ac_includes_default
7417 #include <$ac_header>
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7436 ac_header_compiler=yes
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_header_compiler=no
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446 echo "${ECHO_T}$ac_header_compiler" >&6; }
7448 # Is the header present?
7449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <$ac_header>
7459 if { (ac_try="$ac_cpp conftest.$ac_ext"
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null && {
7472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7475 ac_header_preproc=yes
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ac_header_preproc=no
7483 rm -f conftest.err conftest.$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485 echo "${ECHO_T}$ac_header_preproc" >&6; }
7487 # So? What about this header?
7488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494 ac_header_preproc=yes
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 eval "$as_ac_Header=\$ac_header_preproc"
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520 { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 # This might be Solaris 8 or later, with
7535 # SIOCGLIFCONF, or it might be some other OS
7536 # or some older version of Solaris, with
7539 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
7540 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
7541 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <sys/param.h>
7551 #include <sys/file.h>
7552 #include <sys/ioctl.h>
7553 #include <sys/socket.h>
7554 #include <sys/sockio.h>
7558 ioctl(0, SIOCGLIFCONF, (char *)0);
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7572 grep -v '^ *+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 ac_cv_lbl_have_siocglifconf=yes
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_cv_lbl_have_siocglifconf=no
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
7592 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
7593 if test $ac_cv_lbl_have_siocglifconf = yes ; then
7599 # Needed for common functions used by pcap-[dlpi,libdlpi].c
7606 # Assume we just have SIOCGIFCONF.
7607 # (XXX - on at least later Linux kernels, there's
7608 # another mechanism, and we should be using that
7621 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7622 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7630 #include <sys/types.h>
7631 #include <sys/socket.h>
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 if test "x$have_socklen_t" = "xyes"; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_SOCKLEN_T 1
7674 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
7675 echo "${ECHO_T}$have_socklen_t" >&6; }
7677 # Check whether --enable-ipv6 was given.
7678 if test "${enable_ipv6+set}" = set; then
7679 enableval=$enable_ipv6;
7681 enable_ipv6=ifavailable
7684 if test "$enable_ipv6" != "no"; then
7685 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
7686 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
7687 if test "${ac_cv_func_getaddrinfo+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
7697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7698 #define getaddrinfo innocuous_getaddrinfo
7700 /* System header to define __stub macros and hopefully few prototypes,
7701 which can conflict with char getaddrinfo (); below.
7702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7703 <limits.h> exists even on freestanding compilers. */
7706 # include <limits.h>
7708 # include <assert.h>
7713 /* Override any GCC internal prototype to avoid an error.
7714 Use char because int might match the return type of a GCC
7715 builtin and then its argument prototype would still apply. */
7719 char getaddrinfo ();
7720 /* The GNU C library defines this for functions which it implements
7721 to always fail with ENOSYS. Some functions are actually named
7722 something starting with __ and the normal name is an alias. */
7723 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
7730 return getaddrinfo ();
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_link") 2>conftest.er1
7744 grep -v '^ *+' conftest.er1 >conftest.err
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest$ac_exeext &&
7752 $as_test_x conftest$ac_exeext; then
7753 ac_cv_func_getaddrinfo=yes
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_func_getaddrinfo=no
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762 conftest$ac_exeext conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
7765 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
7766 if test $ac_cv_func_getaddrinfo = yes; then
7769 cat >>confdefs.h <<\_ACEOF
7776 if test "$enable_ipv6" != "ifavailable"; then
7777 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
7778 See \`config.log' for more details." >&5
7779 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
7780 See \`config.log' for more details." >&2;}
7781 { (exit 1); exit 1; }; }
7788 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
7789 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
7790 # Check whether --enable-optimizer-dbg was given.
7791 if test "${enable_optimizer_dbg+set}" = set; then
7792 enableval=$enable_optimizer_dbg;
7795 if test "$enable_optimizer_dbg" = "yes"; then
7797 cat >>confdefs.h <<\_ACEOF
7802 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
7803 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
7805 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
7806 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
7807 # Check whether --enable-yydebug was given.
7808 if test "${enable_yydebug+set}" = set; then
7809 enableval=$enable_yydebug;
7812 if test "$enable_yydebug" = "yes"; then
7814 cat >>confdefs.h <<\_ACEOF
7819 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
7820 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
7822 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
7823 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
7824 if test -r /proc/net/dev ; then
7825 ac_cv_lbl_proc_net_dev=yes
7827 ac_cv_lbl_proc_net_dev=no
7829 if test $ac_cv_lbl_proc_net_dev = yes; then
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_PROC_NET_DEV 1
7836 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
7837 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
7839 # Check for Endace DAG card support.
7841 # Check whether --with-dag was given.
7842 if test "${with_dag+set}" = set; then
7844 if test "$withval" = no
7846 # User doesn't want DAG support.
7848 elif test "$withval" = yes
7850 # User wants DAG support but hasn't specified a directory.
7853 # User wants DAG support and has specified a directory, so use the provided value.
7861 # Use DAG API if present, otherwise don't
7869 # Check whether --with-dag-includes was given.
7870 if test "${with_dag_includes+set}" = set; then
7871 withval=$with_dag_includes;
7872 # User wants DAG support and has specified a header directory, so use the provided value.
7874 dag_include_dir=$withval
7880 # Check whether --with-dag-libraries was given.
7881 if test "${with_dag_libraries+set}" = set; then
7882 withval=$with_dag_libraries;
7883 # User wants DAG support and has specified a library directory, so use the provided value.
7885 dag_lib_dir=$withval
7893 # We support the DAG API if we're on Linux or BSD, or if we're
7894 # building a DAG-only libpcap.
7899 # If the user explicitly requested DAG, tell them it's not
7902 # If they expressed no preference, don't include it.
7904 if test $want_dag = yes; then
7905 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
7906 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
7907 { (exit 1); exit 1; }; }
7908 elif test $want_dag = yes; then
7914 ac_cv_lbl_dag_api=no
7915 if test "$want_dag" != no; then
7917 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
7918 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
7920 # If necessary, set default paths for DAG API headers and libraries.
7921 if test -z "$dag_root"; then
7925 if test -z "$dag_include_dir"; then
7926 dag_include_dir="$dag_root/include"
7929 if test -z "$dag_lib_dir"; then
7930 dag_lib_dir="$dag_root/lib"
7933 if test -z "$dag_tools_dir"; then
7934 dag_tools_dir="$dag_root/tools"
7937 if test -r $dag_include_dir/dagapi.h; then
7938 ac_cv_lbl_dag_api=yes
7940 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
7941 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
7944 if test $ac_cv_lbl_dag_api = yes; then
7946 { echo "$as_me:$LINENO: checking dagapi.o" >&5
7947 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
7949 if test -r $dag_tools_dir/dagapi.o; then
7951 dagapi_obj=$dag_tools_dir/dagapi.o
7952 elif test -r $dag_lib_dir/dagapi.o; then
7954 dagapi_obj=$dag_lib_dir/dagapi.o
7955 elif test -r $dag_lib_dir/libdag.a; then
7957 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
7958 if test -r ./dagapi.o; then
7959 dagapi_obj=./dagapi.o
7961 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
7962 if test -r ./libdag_la-dagapi.o; then
7963 dagapi_obj=./libdag_la-dagapi.o
7968 if test $dagapi_obj = no; then
7969 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
7970 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
7971 ac_cv_lbl_dag_api=no
7973 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
7974 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
7978 if test $ac_cv_lbl_dag_api = yes; then
7980 { echo "$as_me:$LINENO: checking dagopts.o" >&5
7981 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
7983 if test -r $dag_tools_dir/dagopts.o; then
7985 dagopts_obj=$dag_tools_dir/dagopts.o
7986 elif test -r $dag_lib_dir/dagopts.o; then
7988 dagopts_obj=$dag_lib_dir/dagopts.o
7989 elif test -r $dag_lib_dir/libdag.a; then
7991 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
7992 if test -r ./dagopts.o; then
7993 dagopts_obj=./dagopts.o
7995 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
7996 if test -r ./libdag_la-dagopts.o; then
7997 dagopts_obj=./libdag_la-dagopts.o
8002 if test $dagopts_obj = no; then
8003 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8004 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8005 ac_cv_lbl_dag_api=no
8007 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8008 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8012 if test $ac_cv_lbl_dag_api = yes; then
8013 # Under 2.5.x only we need to add dagreg.o.
8014 if test -r $dag_include_dir/dagreg.h; then
8015 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8016 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8018 if test -r $dag_lib_dir/dagreg.o; then
8019 # Object file is ready and waiting.
8020 dagreg_obj=$dag_lib_dir/dagreg.o
8021 elif test -r $dag_lib_dir/libdag.a; then
8022 # Extract from libdag.a.
8023 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8024 if test -r ./dagreg.o; then
8025 dagreg_obj=./dagreg.o
8027 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8028 if test -r ./libdag_la-dagreg.o; then
8029 dagreg_obj=./libdag_la-dagreg.o
8034 if test $dagreg_obj = no; then
8035 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8036 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8037 ac_cv_lbl_dag_api=no
8039 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8040 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8045 if test $ac_cv_lbl_dag_api = yes; then
8046 V_INCLS="$V_INCLS -I$dag_include_dir"
8047 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
8048 if test $V_PCAP != dag ; then
8052 # See if we can find a general version string.
8053 # Don't need to save and restore LIBS to prevent -ldag being
8054 # included if there's a found-action (arg 3).
8055 saved_ldflags=$LDFLAGS
8056 LDFLAGS="-L$dag_lib_dir"
8057 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8058 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8059 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 ac_check_lib_save_LIBS=$LIBS
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8077 char dag_attach_stream ();
8081 return dag_attach_stream ();
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_link") 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext &&
8103 $as_test_x conftest$ac_exeext; then
8104 ac_cv_lib_dag_dag_attach_stream=yes
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_cv_lib_dag_dag_attach_stream=no
8112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LIBS=$ac_check_lib_save_LIBS
8116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8117 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8118 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8124 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8125 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8126 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 ac_check_lib_save_LIBS=$LIBS
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8138 /* Override any GCC internal prototype to avoid an error.
8139 Use char because int might match the return type of a GCC
8140 builtin and then its argument prototype would still apply. */
8144 char dag_get_erf_types ();
8148 return dag_get_erf_types ();
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest$ac_exeext &&
8170 $as_test_x conftest$ac_exeext; then
8171 ac_cv_lib_dag_dag_get_erf_types=yes
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_cv_lib_dag_dag_get_erf_types=no
8179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180 conftest$ac_exeext conftest.$ac_ext
8181 LIBS=$ac_check_lib_save_LIBS
8183 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8184 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8185 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8188 cat >>confdefs.h <<\_ACEOF
8189 #define HAVE_DAG_GET_ERF_TYPES 1
8194 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8195 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8196 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_check_lib_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8208 /* Override any GCC internal prototype to avoid an error.
8209 Use char because int might match the return type of a GCC
8210 builtin and then its argument prototype would still apply. */
8214 char dag_get_stream_erf_types ();
8218 return dag_get_stream_erf_types ();
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1 >conftest.err
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext &&
8240 $as_test_x conftest$ac_exeext; then
8241 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8246 ac_cv_lib_dag_dag_get_stream_erf_types=no
8249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8250 conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8254 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8255 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8264 LDFLAGS=$saved_ldflags
8266 if test "$dag_streams" = 1; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_DAG_STREAMS_API 1
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_DAG_API 1
8282 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8283 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8285 if test $ac_cv_lbl_dag_api = no; then
8286 { echo "$as_me:$LINENO: result: no" >&5
8287 echo "${ECHO_T}no" >&6; }
8288 if test "$want_dag" = yes; then
8289 # User wanted DAG support but we couldn't find it.
8290 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8291 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8292 { (exit 1); exit 1; }; }
8295 if test "$V_PCAP" = dag; then
8296 # User requested "dag" capture type but the DAG API wasn't
8298 { { 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
8299 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;}
8300 { (exit 1); exit 1; }; }
8303 { echo "$as_me:$LINENO: result: yes" >&5
8304 echo "${ECHO_T}yes" >&6; }
8308 # Check whether --with-septel was given.
8309 if test "${with_septel+set}" = set; then
8310 withval=$with_septel;
8311 if test "$withval" = no
8314 elif test "$withval" = yes
8320 septel_root=$withval
8326 # Use Septel API if present, otherwise don't
8328 want_septel=ifpresent
8329 septel_root=./../septel
8333 ac_cv_lbl_septel_api=no
8337 # We support the Septel API if we're on Linux, or if we're building
8338 # a Septel-only libpcap.
8343 # If the user explicitly requested Septel, tell them it's not
8346 # If they expressed no preference, don't include it.
8348 if test $want_septel = yes; then
8349 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
8350 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
8351 { (exit 1); exit 1; }; }
8352 elif test $want_septel = yes; then
8358 if test "$with_septel" != no; then
8359 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
8360 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
8362 if test -z "$septel_root"; then
8363 septel_root=$srcdir/../septel
8367 septel_tools_dir="$septel_root"
8368 septel_include_dir="$septel_root/INC"
8369 DEF="-DHAVE_SEPTEL_API"
8371 ac_cv_lbl_septel_api=no
8372 if test -r "$septel_include_dir/msg.h"; then
8373 V_INCLS="$V_INCLS -I$septel_include_dir"
8374 V_DEFS="$V_DEFS $DEF"
8375 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 "
8377 if test "$V_PCAP" != septel ; then
8378 SSRC="pcap-septel.c"
8381 ac_cv_lbl_septel_api=yes
8384 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
8385 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
8386 if test $ac_cv_lbl_septel_api = no; then
8387 if test "$want_septel" = yes; then
8388 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
8389 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
8390 { (exit 1); exit 1; }; }
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_SEPTEL_API 1
8401 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
8402 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
8403 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
8404 { (exit 1); exit 1; }; }
8409 # Check whether --with-flex was given.
8410 if test "${with_flex+set}" = set; then
8415 # Check whether --with-bison was given.
8416 if test "${with_bison+set}" = set; then
8417 withval=$with_bison;
8420 if test "$with_flex" = no ; then
8425 # Extract the first word of "$ac_prog", so it can be a program name with args.
8426 set dummy $ac_prog; ac_word=$2
8427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8429 if test "${ac_cv_prog_V_LEX+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 if test -n "$V_LEX"; then
8433 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_prog_V_LEX="$ac_prog"
8443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 V_LEX=$ac_cv_prog_V_LEX
8453 if test -n "$V_LEX"; then
8454 { echo "$as_me:$LINENO: result: $V_LEX" >&5
8455 echo "${ECHO_T}$V_LEX" >&6; }
8457 { echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6; }
8462 test -n "$V_LEX" && break
8464 test -n "$V_LEX" || V_LEX="lex"
8467 if test "$V_LEX" = flex ; then
8468 # The -V flag was added in 2.4
8469 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
8470 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
8471 if test "${ac_cv_lbl_flex_v24+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 if flex -V >/dev/null 2>&1; then
8475 ac_cv_lbl_flex_v24=yes
8477 ac_cv_lbl_flex_v24=no
8481 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
8482 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
8483 if test $ac_cv_lbl_flex_v24 = no ; then
8484 s="2.4 or higher required"
8485 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
8486 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
8490 if test "$with_bison" = no ; then
8493 for ac_prog in bison
8495 # Extract the first word of "$ac_prog", so it can be a program name with args.
8496 set dummy $ac_prog; ac_word=$2
8497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8499 if test "${ac_cv_prog_V_YACC+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 if test -n "$V_YACC"; then
8503 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_prog_V_YACC="$ac_prog"
8513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 V_YACC=$ac_cv_prog_V_YACC
8523 if test -n "$V_YACC"; then
8524 { echo "$as_me:$LINENO: result: $V_YACC" >&5
8525 echo "${ECHO_T}$V_YACC" >&6; }
8527 { echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6; }
8532 test -n "$V_YACC" && break
8534 test -n "$V_YACC" || V_YACC="yacc"
8537 if test "$V_YACC" = bison ; then
8540 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
8541 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
8542 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
8546 if test "$V_LEX" = flex -a -n "pcap_" ; then
8547 V_LEX="$V_LEX -Ppcap_"
8548 V_YACC="$V_YACC -p pcap_"
8550 if test "$V_LEX" = lex ; then
8551 # Some versions of lex can't handle the definitions section of scanner.l .
8552 # Try lexing it and complain if it can't deal.
8553 { echo "$as_me:$LINENO: checking for capable lex" >&5
8554 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
8555 if test "${tcpdump_cv_capable_lex+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 if lex -t scanner.l > /dev/null 2>&1; then
8559 tcpdump_cv_capable_lex=yes
8561 tcpdump_cv_capable_lex=insufficient
8564 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
8565 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
8566 if test $tcpdump_cv_capable_lex = insufficient ; then
8567 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
8568 libpcap. flex is a lex replacement that has many advantages, including
8569 being able to compile libpcap. For more information, see
8570 http://www.gnu.org/software/flex/flex.html ." >&5
8571 echo "$as_me: error: Your operating system's lex is insufficient to compile
8572 libpcap. flex is a lex replacement that has many advantages, including
8573 being able to compile libpcap. For more information, see
8574 http://www.gnu.org/software/flex/flex.html ." >&2;}
8575 { (exit 1); exit 1; }; }
8580 # Assume a.out/ELF convention for shared library names (".so"), and
8581 # V7/BSD convention for man pages (file formats in section 5,
8582 # miscellaneous info in section 7).
8591 cat >>confdefs.h <<\_ACEOF
8596 # We need "-lodm" and "-lcfg", as libpcap requires them on
8598 DEPLIBS="-lodm -lcfg"
8603 V_CCOPT="$V_CCOPT -fno-common"
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_HPUX9 1
8614 # Use System V conventions for man pages.
8623 # Use System V conventions for man pages.
8632 # Use System V conventions for man pages.
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_HPUX10_20_OR_LATER 1
8646 # Use System V conventions for man pages.
8654 # Use System V conventions for man pages.
8661 V_CCOPT="$V_CCOPT -fPIC"
8666 # Use System V conventions for man pages.
8673 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
8674 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
8675 if test "${ac_cv_cc_sinix_defined+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_cc_sinix_defined=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_cc_sinix_defined=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
8722 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
8723 if test $ac_cv_cc_sinix_defined = no ; then
8725 cat >>confdefs.h <<\_ACEOF
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_SOLARIS 1
8740 # Use System V conventions for man pages.
8747 if test -n "$ac_tool_prefix"; then
8748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8752 if test "${ac_cv_prog_RANLIB+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 if test -n "$RANLIB"; then
8756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 RANLIB=$ac_cv_prog_RANLIB
8776 if test -n "$RANLIB"; then
8777 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8778 echo "${ECHO_T}$RANLIB" >&6; }
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8786 if test -z "$ac_cv_prog_RANLIB"; then
8787 ac_ct_RANLIB=$RANLIB
8788 # Extract the first word of "ranlib", so it can be a program name with args.
8789 set dummy ranlib; ac_word=$2
8790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 if test -n "$ac_ct_RANLIB"; then
8796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805 ac_cv_prog_ac_ct_RANLIB="ranlib"
8806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8816 if test -n "$ac_ct_RANLIB"; then
8817 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8818 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8820 { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8824 if test "x$ac_ct_RANLIB" = x; then
8827 case $cross_compiling:$ac_tool_warned in
8829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8830 whose name does not start with the host triplet. If you think this
8831 configuration is useful to you, please write to autoconf@gnu.org." >&5
8832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8833 whose name does not start with the host triplet. If you think this
8834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8835 ac_tool_warned=yes ;;
8837 RANLIB=$ac_ct_RANLIB
8840 RANLIB="$ac_cv_prog_RANLIB"
8845 if test "${LBL_CFLAGS+set}" = set; then
8846 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8848 if test -f .devel ; then
8849 if test "$GCC" = yes ; then
8850 if test "${LBL_CFLAGS+set}" != set; then
8851 if test "$ac_cv_prog_cc_g" = yes ; then
8852 V_CCOPT="-g $V_CCOPT"
8854 V_CCOPT="$V_CCOPT -Wall"
8855 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8856 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
8863 V_CCOPT="$V_CCOPT -n32"
8870 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8872 if test -f $name ; then
8873 ln -s $name os-proto.h
8875 cat >>confdefs.h <<\_ACEOF
8876 #define HAVE_OS_PROTO_H 1
8880 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
8881 echo "$as_me: WARNING: can't find $name" >&2;}
8885 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8886 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8887 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 # include <sys/types.h>
8898 # include <sys/socket.h>
8902 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.$ac_objext; then
8924 ac_cv_lbl_sockaddr_has_sa_len=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_lbl_sockaddr_has_sa_len=no
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8936 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8937 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_SOCKADDR_SA_LEN 1
8945 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
8946 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
8947 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8957 # include <sys/types.h>
8958 # include <sys/socket.h>
8962 u_int i = sizeof (struct sockaddr_storage)
8967 rm -f conftest.$ac_objext
8968 if { (ac_try="$ac_compile"
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_compile") 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest.$ac_objext; then
8984 ac_cv_lbl_has_sockaddr_storage=yes
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 ac_cv_lbl_has_sockaddr_storage=no
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8996 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
8997 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8999 cat >>confdefs.h <<\_ACEOF
9000 #define HAVE_SOCKADDR_STORAGE 1
9005 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9006 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9007 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 # include <sys/types.h>
9018 # include <sys/dlpi.h>
9019 # include <sys/dlpi_ext.h>
9023 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9037 grep -v '^ *+' conftest.er1 >conftest.err
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } && {
9042 test -z "$ac_c_werror_flag" ||
9043 test ! -s conftest.err
9044 } && test -s conftest.$ac_objext; then
9045 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9057 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9058 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9066 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9067 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
9068 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 # These are CPU types where:
9076 # the CPU faults on an unaligned access, but at least some
9077 # OSes that support that CPU catch the fault and simulate
9078 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9079 # the simulation is slow, so we don't want to use it;
9081 # the CPU, I infer (from the old
9083 # XXX: should also check that they don't do weird things (like on arm)
9085 # comment) doesn't fault on unaligned accesses, but doesn't
9086 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9088 # for whatever reason, the test program doesn't work
9089 # (this has been claimed to be the case for several of those
9090 # CPUs - I don't know what the problem is; the problem
9091 # was reported as "the test program dumps core" for SuperH,
9092 # but that's what the test program is *supposed* to do -
9093 # it dumps core before it writes anything, so the test
9094 # for an empty output file should find an empty output
9095 # file and conclude that unaligned accesses don't work).
9097 # This run-time test won't work if you're cross-compiling, so
9098 # in order to support cross-compiling for a particular CPU,
9099 # we have to wire in the list of CPU types anyway, as far as
9100 # I know, so perhaps we should just have a set of CPUs on
9101 # which we know it doesn't work, a set of CPUs on which we
9102 # know it does work, and have the script just fail on other
9103 # cpu types and update it when such a failure occurs.
9105 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9106 ac_cv_lbl_unaligned_fail=yes
9110 cat >conftest.c <<EOF
9111 # include <sys/types.h>
9112 # include <sys/wait.h>
9114 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9119 /* avoid "core dumped" message */
9125 pid = waitpid(pid, &status, 0);
9128 exit(!WIFEXITED(status));
9131 i = *(unsigned int *)&a[1];
9136 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9137 conftest.c $LIBS >/dev/null 2>&1
9138 if test ! -x conftest ; then
9139 ac_cv_lbl_unaligned_fail=yes
9141 ./conftest >conftest.out
9142 if test ! -s conftest.out ; then
9143 ac_cv_lbl_unaligned_fail=yes
9145 ac_cv_lbl_unaligned_fail=no
9148 rm -f conftest* core core.conftest
9153 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9154 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9155 if test $ac_cv_lbl_unaligned_fail = yes ; then
9157 cat >>confdefs.h <<\_ACEOF
9164 # Makefile.in includes rules to generate version.h, so we assume
9165 # that it will be generated if autoconf is used.
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_VERSION_H 1
9174 ln -s ${srcdir}/bpf/net net
9191 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
9192 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
9196 cat >>confdefs.h <<\_ACEOF
9197 #define PCAP_SUPPORT_USB 1
9200 USB_SRC=pcap-usb-linux.c
9201 { echo "$as_me:$LINENO: result: yes" >&5
9202 echo "${ECHO_T}yes" >&6; }
9203 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9204 if test $? -ne 0 ; then
9205 ac_usb_dev_name="usbmon"
9208 cat >>confdefs.h <<_ACEOF
9209 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9212 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9213 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9216 { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9225 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9226 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9227 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9228 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9234 # Is the header compilable?
9235 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
9236 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 $ac_includes_default
9244 #include <bluetooth/bluetooth.h>
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_header_compiler=yes
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 ac_header_compiler=no
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273 echo "${ECHO_T}$ac_header_compiler" >&6; }
9275 # Is the header present?
9276 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
9277 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <bluetooth/bluetooth.h>
9286 if { (ac_try="$ac_cpp conftest.$ac_ext"
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9294 grep -v '^ *+' conftest.er1 >conftest.err
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } >/dev/null && {
9299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9302 ac_header_preproc=yes
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_header_preproc=no
9310 rm -f conftest.err conftest.$ac_ext
9311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9312 echo "${ECHO_T}$ac_header_preproc" >&6; }
9314 # So? What about this header?
9315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9317 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
9318 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
9320 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
9321 ac_header_preproc=yes
9324 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
9325 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
9327 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
9329 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
9331 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
9333 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
9335 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
9339 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9340 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9341 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
9346 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9347 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9350 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
9353 cat >>confdefs.h <<\_ACEOF
9354 #define PCAP_SUPPORT_BT 1
9357 BT_SRC=pcap-bt-linux.c
9358 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
9359 echo "$as_me: Bluetooth sniffing is supported" >&6;}
9362 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9363 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9370 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
9371 echo "$as_me: no Bluetooth sniffing support" >&6;}
9377 # Find a good install program. We prefer a C program (faster),
9378 # so one script is as good as another. But avoid the broken or
9379 # incompatible versions:
9380 # SysV /etc/install, /usr/sbin/install
9381 # SunOS /usr/etc/install
9382 # IRIX /sbin/install
9384 # AmigaOS /C/install, which installs bootblocks on floppy discs
9385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9388 # OS/2's system install, which has a completely different semantic
9389 # ./install, which can be erroneously created by make from ./install.sh.
9390 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9392 if test -z "$INSTALL"; then
9393 if test "${ac_cv_path_install+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 test -z "$as_dir" && as_dir=.
9401 # Account for people who put trailing slashes in PATH elements.
9403 ./ | .// | /cC/* | \
9404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9408 # OSF1 and SCO ODT 3.0 have their own names for install.
9409 # Don't use installbsd from OSF since it installs stuff as root
9411 for ac_prog in ginstall scoinst install; do
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9414 if test $ac_prog = install &&
9415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9416 # AIX install. It has an incompatible calling convention.
9418 elif test $ac_prog = install &&
9419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9420 # program-specific install script used by HP pwplus--don't use.
9423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9436 if test "${ac_cv_path_install+set}" = set; then
9437 INSTALL=$ac_cv_path_install
9439 # As a last resort, use the slow shell script. Don't cache a
9440 # value for INSTALL within a source directory, because that will
9441 # break other packages using the cache if that directory is
9442 # removed, or if the value is a relative name.
9443 INSTALL=$ac_install_sh
9446 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9447 echo "${ECHO_T}$INSTALL" >&6; }
9449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9450 # It thinks the first close brace ends the variable substitution.
9451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9458 ac_config_headers="$ac_config_headers config.h"
9461 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
9463 cat >confcache <<\_ACEOF
9464 # This file is a shell script that caches the results of configure
9465 # tests run on this system so they can be shared between configure
9466 # scripts and configure runs, see configure's option --config-cache.
9467 # It is not useful on other systems. If it contains results you don't
9468 # want to keep, you may remove or edit it.
9470 # config.status only pays attention to the cache file if you give it
9471 # the --recheck option to rerun configure.
9473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9479 # The following way of writing the cache mishandles newlines in values,
9480 # but we know of no workaround that is simple, portable, and efficient.
9481 # So, we kill variables containing newlines.
9482 # Ultrix sh set writes to stderr and can't be redirected directly,
9483 # and sets the high bit in the cache file unless we assign to the vars.
9485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9486 eval ac_val=\$$ac_var
9490 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9491 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9494 _ | IFS | as_nl) ;; #(
9495 *) $as_unset $ac_var ;;
9501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9502 *${as_nl}ac_space=\ *)
9503 # `set' does not quote correctly, so add quotes (double-quote
9504 # substitution turns \\\\ into \\, and sed turns \\ into \).
9507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9510 # `set' quotes correctly as required by POSIX, so do not add quotes.
9511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9525 if test -w "$cache_file"; then
9526 test "x$cache_file" != "x/dev/null" &&
9527 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9528 echo "$as_me: updating cache $cache_file" >&6;}
9529 cat confcache >$cache_file
9531 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9532 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9538 # Let make expand exec_prefix.
9539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9541 DEFS=-DHAVE_CONFIG_H
9545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9546 # 1. Remove the extension, and $U if already installed.
9547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9548 ac_i=`echo "$ac_i" | sed "$ac_script"`
9549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9550 # will be set to the directory where LIBOBJS objects are built.
9551 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9552 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9556 LTLIBOBJS=$ac_ltlibobjs
9560 : ${CONFIG_STATUS=./config.status}
9561 ac_clean_files_save=$ac_clean_files
9562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9564 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9565 cat >$CONFIG_STATUS <<_ACEOF
9567 # Generated by $as_me.
9568 # Run this file to recreate the current configuration.
9569 # Compiler output produced by configure, useful for debugging
9570 # configure, is in config.log if it exists.
9575 SHELL=\${CONFIG_SHELL-$SHELL}
9578 cat >>$CONFIG_STATUS <<\_ACEOF
9579 ## --------------------- ##
9580 ## M4sh Initialization. ##
9581 ## --------------------- ##
9583 # Be more Bourne compatible
9584 DUALCASE=1; export DUALCASE # for MKS sh
9585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9588 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9589 # is contrary to our usage. Disable this feature.
9590 alias -g '${1+"$@"}'='"$@"'
9591 setopt NO_GLOB_SUBST
9593 case `(set -o) 2>/dev/null` in
9594 *posix*) set -o posix ;;
9603 # Avoid depending upon Character Ranges.
9604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9607 as_cr_digits='0123456789'
9608 as_cr_alnum=$as_cr_Letters$as_cr_digits
9610 # The user is always right.
9611 if test "${PATH_SEPARATOR+set}" != set; then
9612 echo "#! /bin/sh" >conf$$.sh
9613 echo "exit 0" >>conf$$.sh
9615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9623 # Support unset when possible.
9624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9632 # We need space, tab and new line, in precisely that order. Quoting is
9633 # there to prevent editors from complaining about space-tab.
9634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9635 # splitting by setting IFS to empty value.)
9640 # Find who we are. Look in the path if we contain no directory separator.
9642 *[\\/]* ) as_myself=$0 ;;
9643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir=.
9648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9654 # We did not find ourselves, most probably we were run as `sh COMMAND'
9655 # in which case we are not to be found in the path.
9656 if test "x$as_myself" = x; then
9659 if test ! -f "$as_myself"; then
9660 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9661 { (exit 1); exit 1; }
9664 # Work around bugs in pre-3.0 UWIN ksh.
9665 for as_var in ENV MAIL MAILPATH
9666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9676 LC_TELEPHONE LC_TIME
9678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9679 eval $as_var=C; export $as_var
9681 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9685 # Required to use basename.
9686 if expr a : '\(a\)' >/dev/null 2>&1 &&
9687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9694 as_basename=basename
9700 # Name of the executable.
9701 as_me=`$as_basename -- "$0" ||
9702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9703 X"$0" : 'X\(//\)$' \| \
9704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9706 sed '/^.*\/\([^/][^/]*\)\/*$/{
9727 test "x$as_lineno_1" != "x$as_lineno_2" &&
9728 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9731 # uniformly replaced by the line number. The first 'sed' inserts a
9732 # line-number line after each line using $LINENO; the second 'sed'
9733 # does the real work. The second script uses 'N' to pair each
9734 # line-number line with the line containing $LINENO, and appends
9735 # trailing '-' during substitution so that $LINENO is not a special
9737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9738 # scripts with optimization help from Paolo Bonzini. Blame Lee
9739 # E. McMahon (1931-1989) for sed's syntax. :-)
9751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9755 chmod +x "$as_me.lineno" ||
9756 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9757 { (exit 1); exit 1; }; }
9759 # Don't try to exec as it changes $[0], causing all sort of problems
9760 # (the dirname of $[0] is not the place where we might find the
9761 # original and so on. Autoconf is especially sensitive to this).
9763 # Exit status is that of the last command.
9768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9774 ECHO_C= ECHO_N= ECHO_T=
9777 case `echo 'x\c'` in
9778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9785 if expr a : '\(a\)' >/dev/null 2>&1 &&
9786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9792 rm -f conf$$ conf$$.exe conf$$.file
9793 if test -d conf$$.dir; then
9794 rm -f conf$$.dir/conf$$.file
9800 if ln -s conf$$.file conf$$ 2>/dev/null; then
9802 # ... but there are two gotchas:
9803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9805 # In both cases, we have to default to `cp -p'.
9806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9808 elif ln conf$$.file conf$$ 2>/dev/null; then
9813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9814 rmdir conf$$.dir 2>/dev/null
9816 if mkdir -p . 2>/dev/null; then
9819 test -d ./-p && rmdir ./-p
9823 if test -x / >/dev/null 2>&1; then
9826 if ls -dL / >/dev/null 2>&1; then
9833 if test -d "$1"; then
9839 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9840 ???[sx]*):;;*)false;;esac;fi
9844 as_executable_p=$as_test_x
9846 # Sed expression to map a string onto a valid CPP name.
9847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9849 # Sed expression to map a string onto a valid variable name.
9850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9855 # Save the log message, to keep $[0] and so on meaningful, and to
9856 # report actual input values of CONFIG_FILES etc. instead of their
9857 # values after options handling.
9859 This file was extended by $as_me, which was
9860 generated by GNU Autoconf 2.61. Invocation command line was
9862 CONFIG_FILES = $CONFIG_FILES
9863 CONFIG_HEADERS = $CONFIG_HEADERS
9864 CONFIG_LINKS = $CONFIG_LINKS
9865 CONFIG_COMMANDS = $CONFIG_COMMANDS
9868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9873 cat >>$CONFIG_STATUS <<_ACEOF
9874 # Files that config.status was made for.
9875 config_files="$ac_config_files"
9876 config_headers="$ac_config_headers"
9880 cat >>$CONFIG_STATUS <<\_ACEOF
9882 \`$as_me' instantiates files from templates according to the
9883 current configuration.
9885 Usage: $0 [OPTIONS] [FILE]...
9887 -h, --help print this help, then exit
9888 -V, --version print version number and configuration settings, then exit
9889 -q, --quiet do not print progress messages
9890 -d, --debug don't remove temporary files
9891 --recheck update $as_me by reconfiguring in the same conditions
9892 --file=FILE[:TEMPLATE]
9893 instantiate the configuration file FILE
9894 --header=FILE[:TEMPLATE]
9895 instantiate the configuration header FILE
9897 Configuration files:
9900 Configuration headers:
9903 Report bugs to <bug-autoconf@gnu.org>."
9906 cat >>$CONFIG_STATUS <<_ACEOF
9909 configured by $0, generated by GNU Autoconf 2.61,
9910 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9912 Copyright (C) 2006 Free Software Foundation, Inc.
9913 This config.status script is free software; the Free Software Foundation
9914 gives unlimited permission to copy, distribute and modify it."
9921 cat >>$CONFIG_STATUS <<\_ACEOF
9922 # If no file are specified by the user, then we need to provide default
9923 # value. By we need to know if files were specified by the user.
9929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9941 # Handling of the options.
9942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9945 echo "$ac_cs_version"; exit ;;
9946 --debug | --debu | --deb | --de | --d | -d )
9948 --file | --fil | --fi | --f )
9950 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9951 ac_need_defaults=false;;
9952 --header | --heade | --head | --hea )
9954 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9955 ac_need_defaults=false;;
9957 # Conflict between --help and --header
9958 { echo "$as_me: error: ambiguous option: $1
9959 Try \`$0 --help' for more information." >&2
9960 { (exit 1); exit 1; }; };;
9961 --help | --hel | -h )
9962 echo "$ac_cs_usage"; exit ;;
9963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9964 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9968 -*) { echo "$as_me: error: unrecognized option: $1
9969 Try \`$0 --help' for more information." >&2
9970 { (exit 1); exit 1; }; } ;;
9972 *) ac_config_targets="$ac_config_targets $1"
9973 ac_need_defaults=false ;;
9979 ac_configure_extra_args=
9981 if $ac_cs_silent; then
9983 ac_configure_extra_args="$ac_configure_extra_args --silent"
9987 cat >>$CONFIG_STATUS <<_ACEOF
9988 if \$ac_cs_recheck; then
9989 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9992 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9996 cat >>$CONFIG_STATUS <<\_ACEOF
10000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10001 ## Running $as_me. ##
10007 cat >>$CONFIG_STATUS <<_ACEOF
10010 cat >>$CONFIG_STATUS <<\_ACEOF
10012 # Handling of arguments.
10013 for ac_config_target in $ac_config_targets
10015 case $ac_config_target in
10016 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10018 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10019 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10020 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10021 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10022 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10023 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10024 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10025 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10026 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10027 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10031 { (exit 1); exit 1; }; };;
10036 # If the user did not use the arguments to specify the items to instantiate,
10037 # then the envvar interface is used. Set only those that are not.
10038 # We use the long form for the default assignment because of an extremely
10039 # bizarre bug on SunOS 4.1.3.
10040 if $ac_need_defaults; then
10041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10045 # Have a temporary directory for convenience. Make it in the build tree
10046 # simply because there is no reason against having it here, and in addition,
10047 # creating and moving files from /tmp can sometimes cause problems.
10048 # Hook for its removal unless debugging.
10049 # Note that there is a small window in which the directory will not be cleaned:
10050 # after its creation but before its name has been assigned to `$tmp'.
10054 trap 'exit_status=$?
10055 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10057 trap '{ (exit 1); exit 1; }' 1 2 13 15
10059 # Create a (secure) tmp directory for tmp files.
10062 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10063 test -n "$tmp" && test -d "$tmp"
10066 tmp=./conf$$-$RANDOM
10067 (umask 077 && mkdir "$tmp")
10070 echo "$me: cannot create a temporary directory in ." >&2
10071 { (exit 1); exit 1; }
10075 # Set up the sed scripts for CONFIG_FILES section.
10078 # No need to generate the scripts if there are no CONFIG_FILES.
10079 # This happens for instance when ./config.status config.h
10080 if test -n "$CONFIG_FILES"; then
10087 for ac_last_try in false false false false false :; do
10088 cat >conf$$subs.sed <<_ACEOF
10089 SHELL!$SHELL$ac_delim
10090 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10091 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10092 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10093 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10094 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10095 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10096 exec_prefix!$exec_prefix$ac_delim
10097 prefix!$prefix$ac_delim
10098 program_transform_name!$program_transform_name$ac_delim
10099 bindir!$bindir$ac_delim
10100 sbindir!$sbindir$ac_delim
10101 libexecdir!$libexecdir$ac_delim
10102 datarootdir!$datarootdir$ac_delim
10103 datadir!$datadir$ac_delim
10104 sysconfdir!$sysconfdir$ac_delim
10105 sharedstatedir!$sharedstatedir$ac_delim
10106 localstatedir!$localstatedir$ac_delim
10107 includedir!$includedir$ac_delim
10108 oldincludedir!$oldincludedir$ac_delim
10109 docdir!$docdir$ac_delim
10110 infodir!$infodir$ac_delim
10111 htmldir!$htmldir$ac_delim
10112 dvidir!$dvidir$ac_delim
10113 pdfdir!$pdfdir$ac_delim
10114 psdir!$psdir$ac_delim
10115 libdir!$libdir$ac_delim
10116 localedir!$localedir$ac_delim
10117 mandir!$mandir$ac_delim
10118 DEFS!$DEFS$ac_delim
10119 ECHO_C!$ECHO_C$ac_delim
10120 ECHO_N!$ECHO_N$ac_delim
10121 ECHO_T!$ECHO_T$ac_delim
10122 LIBS!$LIBS$ac_delim
10123 build_alias!$build_alias$ac_delim
10124 host_alias!$host_alias$ac_delim
10125 target_alias!$target_alias$ac_delim
10126 build!$build$ac_delim
10127 build_cpu!$build_cpu$ac_delim
10128 build_vendor!$build_vendor$ac_delim
10129 build_os!$build_os$ac_delim
10130 host!$host$ac_delim
10131 host_cpu!$host_cpu$ac_delim
10132 host_vendor!$host_vendor$ac_delim
10133 host_os!$host_os$ac_delim
10134 target!$target$ac_delim
10135 target_cpu!$target_cpu$ac_delim
10136 target_vendor!$target_vendor$ac_delim
10137 target_os!$target_os$ac_delim
10138 SHLICC2!$SHLICC2$ac_delim
10140 CFLAGS!$CFLAGS$ac_delim
10141 LDFLAGS!$LDFLAGS$ac_delim
10142 CPPFLAGS!$CPPFLAGS$ac_delim
10143 ac_ct_CC!$ac_ct_CC$ac_delim
10144 EXEEXT!$EXEEXT$ac_delim
10145 OBJEXT!$OBJEXT$ac_delim
10147 GREP!$GREP$ac_delim
10148 EGREP!$EGREP$ac_delim
10149 LIBOBJS!$LIBOBJS$ac_delim
10150 V_LEX!$V_LEX$ac_delim
10151 V_YACC!$V_YACC$ac_delim
10152 RANLIB!$RANLIB$ac_delim
10153 V_CCOPT!$V_CCOPT$ac_delim
10154 V_DEFS!$V_DEFS$ac_delim
10155 V_INCLS!$V_INCLS$ac_delim
10156 V_LIBS!$V_LIBS$ac_delim
10157 V_PCAP!$V_PCAP$ac_delim
10158 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
10159 SSRC!$SSRC$ac_delim
10160 DYEXT!$DYEXT$ac_delim
10161 DAGLIBS!$DAGLIBS$ac_delim
10162 DEPLIBS!$DEPLIBS$ac_delim
10163 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
10164 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
10165 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
10166 USB_SRC!$USB_SRC$ac_delim
10167 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
10168 BT_SRC!$BT_SRC$ac_delim
10169 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10170 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10171 INSTALL_DATA!$INSTALL_DATA$ac_delim
10172 LTLIBOBJS!$LTLIBOBJS$ac_delim
10175 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
10177 elif $ac_last_try; then
10178 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10179 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10180 { (exit 1); exit 1; }; }
10182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10186 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10187 if test -n "$ac_eof"; then
10188 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10189 ac_eof=`expr $ac_eof + 1`
10192 cat >>$CONFIG_STATUS <<_ACEOF
10193 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10197 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10198 s/^/s,@/; s/!/@,|#_!!_#|/
10201 s/'"$ac_delim"'$/,g/; t
10203 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10204 ' >>$CONFIG_STATUS <conf$$subs.sed
10205 rm -f conf$$subs.sed
10206 cat >>$CONFIG_STATUS <<_ACEOF
10213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10215 # trailing colons and then remove the whole line if VPATH becomes empty
10216 # (actually we leave an empty line to preserve line numbers).
10217 if test "x$srcdir" = x.; then
10218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10219 s/:*\$(srcdir):*/:/
10220 s/:*\${srcdir}:*/:/
10222 s/^\([^=]*=[ ]*\):*/\1/
10228 cat >>$CONFIG_STATUS <<\_ACEOF
10229 fi # test -n "$CONFIG_FILES"
10232 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10235 :[FHLC]) ac_mode=$ac_tag; continue;;
10237 case $ac_mode$ac_tag in
10239 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10240 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10241 { (exit 1); exit 1; }; };;
10242 :[FH]-) ac_tag=-:-;;
10243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10260 -) ac_f="$tmp/stdin";;
10261 *) # Look for the file first in the build tree, then in the source tree
10262 # (if the path is not absolute). The absolute path cannot be DOS-style,
10263 # because $ac_f cannot contain `:'.
10267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10269 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10270 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10271 { (exit 1); exit 1; }; };;
10273 ac_file_inputs="$ac_file_inputs $ac_f"
10276 # Let's still pretend it is `configure' which instantiates (i.e., don't
10277 # use $as_me), people would be surprised to read:
10278 # /* config.h. Generated by config.status. */
10279 configure_input="Generated from "`IFS=:
10280 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10281 if test x"$ac_file" != x-; then
10282 configure_input="$ac_file. $configure_input"
10283 { echo "$as_me:$LINENO: creating $ac_file" >&5
10284 echo "$as_me: creating $ac_file" >&6;}
10288 *:-:* | *:-) cat >"$tmp/stdin";;
10293 ac_dir=`$as_dirname -- "$ac_file" ||
10294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10295 X"$ac_file" : 'X\(//\)[^/]' \| \
10296 X"$ac_file" : 'X\(//\)$' \| \
10297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10303 /^X\(\/\/\)[^/].*/{
10318 -*) as_dir=./$as_dir;;
10320 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10324 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10325 *) as_qdir=$as_dir;;
10327 as_dirs="'$as_qdir' $as_dirs"
10328 as_dir=`$as_dirname -- "$as_dir" ||
10329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10330 X"$as_dir" : 'X\(//\)[^/]' \| \
10331 X"$as_dir" : 'X\(//\)$' \| \
10332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10338 /^X\(\/\/\)[^/].*/{
10351 test -d "$as_dir" && break
10353 test -z "$as_dirs" || eval "mkdir $as_dirs"
10354 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10355 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10356 { (exit 1); exit 1; }; }; }
10360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10363 # A ".." for each directory in $ac_dir_suffix.
10364 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10365 case $ac_top_builddir_sub in
10366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10370 ac_abs_top_builddir=$ac_pwd
10371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10372 # for backward compatibility:
10373 ac_top_builddir=$ac_top_build_prefix
10376 .) # We are building in place.
10378 ac_top_srcdir=$ac_top_builddir_sub
10379 ac_abs_top_srcdir=$ac_pwd ;;
10380 [\\/]* | ?:[\\/]* ) # Absolute name.
10381 ac_srcdir=$srcdir$ac_dir_suffix;
10382 ac_top_srcdir=$srcdir
10383 ac_abs_top_srcdir=$srcdir ;;
10384 *) # Relative name.
10385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10386 ac_top_srcdir=$ac_top_build_prefix$srcdir
10387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10404 cat >>$CONFIG_STATUS <<\_ACEOF
10405 # If the template does not know about datarootdir, expand it.
10406 # FIXME: This hack should be removed a few years after 2.60.
10407 ac_datarootdir_hack=; ac_datarootdir_seen=
10409 case `sed -n '/datarootdir/ {
10418 ' $ac_file_inputs` in
10419 *datarootdir*) ac_datarootdir_seen=yes;;
10420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10421 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10422 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10424 cat >>$CONFIG_STATUS <<_ACEOF
10425 ac_datarootdir_hack='
10426 s&@datadir@&$datadir&g
10427 s&@docdir@&$docdir&g
10428 s&@infodir@&$infodir&g
10429 s&@localedir@&$localedir&g
10430 s&@mandir@&$mandir&g
10431 s&\\\${datarootdir}&$datarootdir&g' ;;
10435 # Neutralize VPATH when `$srcdir' = `.'.
10436 # Shell code in configure.ac might set extrasub.
10437 # FIXME: do we really want to maintain this feature?
10438 cat >>$CONFIG_STATUS <<_ACEOF
10442 cat >>$CONFIG_STATUS <<\_ACEOF
10444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10445 s&@configure_input@&$configure_input&;t t
10446 s&@top_builddir@&$ac_top_builddir_sub&;t t
10447 s&@srcdir@&$ac_srcdir&;t t
10448 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10449 s&@top_srcdir@&$ac_top_srcdir&;t t
10450 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10451 s&@builddir@&$ac_builddir&;t t
10452 s&@abs_builddir@&$ac_abs_builddir&;t t
10453 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10454 s&@INSTALL@&$ac_INSTALL&;t t
10455 $ac_datarootdir_hack
10456 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10461 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10462 which seems to be undefined. Please make sure it is defined." >&5
10463 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10464 which seems to be undefined. Please make sure it is defined." >&2;}
10468 -) cat "$tmp/out"; rm -f "$tmp/out";;
10469 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10478 # Transform confdefs.h into a sed script `conftest.defines', that
10479 # substitutes the proper values into config.h.in to produce config.h.
10480 rm -f conftest.defines conftest.tail
10481 # First, append a space to every undef/define line, to ease matching.
10482 echo 's/$/ /' >conftest.defines
10483 # Then, protect against being on the right side of a sed subst, or in
10484 # an unquoted here document, in config.status. If some macros were
10485 # called several times there might be several #defines for the same
10486 # symbol, which is useless. But do not sort them, since the last
10487 # AC_DEFINE must be honored.
10488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10489 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10490 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10491 # PARAMS is the parameter list in the macro definition--in most cases, it's
10492 # just an empty string.
10493 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10494 ac_dB='\\)[ (].*,\\1define\\2'
10502 s/^[ ]*#[ ]*define[ ][ ]*//
10507 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10508 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10509 ' >>conftest.defines
10511 # Remove the space that was appended to ease matching.
10512 # Then replace #undef with comments. This is necessary, for
10513 # example, in the case of _POSIX_SOURCE, which is predefined and required
10514 # on some systems where configure will not decide to define it.
10515 # (The regexp can be short, since the line contains either #define or #undef.)
10517 s,^[ #]*u.*,/* & */,' >>conftest.defines
10519 # Break up conftest.defines:
10520 ac_max_sed_lines=50
10522 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10523 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10524 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10526 ac_in='$ac_file_inputs'
10527 ac_out='"$tmp/out1"'
10528 ac_nxt='"$tmp/out2"'
10532 # Write a here document:
10533 cat >>$CONFIG_STATUS <<_ACEOF
10534 # First, check the format of the line:
10535 cat >"\$tmp/defines.sed" <<\\CEOF
10536 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10537 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10541 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10543 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10544 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10545 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10546 grep . conftest.tail >/dev/null || break
10547 rm -f conftest.defines
10548 mv conftest.tail conftest.defines
10550 rm -f conftest.defines conftest.tail
10552 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10553 cat >>$CONFIG_STATUS <<\_ACEOF
10554 if test x"$ac_file" != x-; then
10555 echo "/* $configure_input */" >"$tmp/config.h"
10556 cat "$ac_result" >>"$tmp/config.h"
10557 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10558 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10559 echo "$as_me: $ac_file is unchanged" >&6;}
10562 mv "$tmp/config.h" $ac_file
10565 echo "/* $configure_input */"
10577 { (exit 0); exit 0; }
10579 chmod +x $CONFIG_STATUS
10580 ac_clean_files=$ac_clean_files_save
10583 # configure is writing to config.log, and then calls config.status.
10584 # config.status does its own redirection, appending to config.log.
10585 # Unfortunately, on DOS this fails, as config.log is still kept open
10586 # by configure, so config.status won't be able to write to it; its
10587 # output is simply discarded. So we exec the FD to /dev/null,
10588 # effectively closing config.log, so it can be properly (re)opened and
10589 # appended to by config.status. When coming back to configure, we
10590 # need to make the FD available again.
10591 if test "$no_create" != yes; then
10593 ac_config_status_args=
10594 test "$silent" = yes &&
10595 ac_config_status_args="$ac_config_status_args --quiet"
10597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10600 # would make configure fail if this is the last instruction.
10601 $ac_cs_success || { (exit 1); exit 1; }
10605 if test -f .devel ; then