2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="tcpdump.c"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
690 ac_precious_vars
='build_alias
701 # Initialize some variables set by options.
703 ac_init_version
=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
713 program_transform_name
=s
,x
,x
,
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir
='${exec_prefix}/bin'
728 sbindir
='${exec_prefix}/sbin'
729 libexecdir
='${exec_prefix}/libexec'
730 datarootdir
='${prefix}/share'
731 datadir
='${datarootdir}'
732 sysconfdir
='${prefix}/etc'
733 sharedstatedir
='${prefix}/com'
734 localstatedir
='${prefix}/var'
735 includedir
='${prefix}/include'
736 oldincludedir
='/usr/include'
737 docdir
='${datarootdir}/doc/${PACKAGE}'
738 infodir
='${datarootdir}/info'
743 libdir
='${exec_prefix}/lib'
744 localedir
='${datarootdir}/locale'
745 mandir
='${datarootdir}/man'
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\
$ac_option
759 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
769 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
771 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
774 -build |
--build |
--buil |
--bui |
--bu)
775 ac_prev
=build_alias
;;
776 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
777 build_alias
=$ac_optarg ;;
779 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
780 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
781 ac_prev
=cache_file
;;
782 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
783 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
784 cache_file
=$ac_optarg ;;
787 cache_file
=config.cache
;;
789 -datadir |
--datadir |
--datadi |
--datad)
791 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
792 datadir
=$ac_optarg ;;
794 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
795 |
--dataroo |
--dataro |
--datar)
796 ac_prev
=datarootdir
;;
797 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
798 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
799 datarootdir
=$ac_optarg ;;
801 -disable-* |
--disable-*)
802 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_
$ac_feature=no
;;
810 -docdir |
--docdir |
--docdi |
--doc |
--do)
812 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
815 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
817 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
820 -enable-* |
--enable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=\
$ac_optarg ;;
829 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
830 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
831 |
--exec |
--exe |
--ex)
832 ac_prev
=exec_prefix
;;
833 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
834 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
835 |
--exec=* |
--exe=* |
--ex=*)
836 exec_prefix
=$ac_optarg ;;
838 -gas |
--gas |
--ga |
--g)
839 # Obsolete; use --with-gas.
842 -help |
--help |
--hel |
--he |
-h)
844 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
845 ac_init_help
=recursive
;;
846 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
847 ac_init_help
=short
;;
849 -host |
--host |
--hos |
--ho)
850 ac_prev
=host_alias
;;
851 -host=* |
--host=* |
--hos=* |
--ho=*)
852 host_alias
=$ac_optarg ;;
854 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
856 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
858 htmldir
=$ac_optarg ;;
860 -includedir |
--includedir |
--includedi |
--included |
--include \
861 |
--includ |
--inclu |
--incl |
--inc)
862 ac_prev
=includedir
;;
863 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
864 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
865 includedir
=$ac_optarg ;;
867 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
869 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
870 infodir
=$ac_optarg ;;
872 -libdir |
--libdir |
--libdi |
--libd)
874 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
877 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
878 |
--libexe |
--libex |
--libe)
879 ac_prev
=libexecdir
;;
880 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
881 |
--libexe=* |
--libex=* |
--libe=*)
882 libexecdir
=$ac_optarg ;;
884 -localedir |
--localedir |
--localedi |
--localed |
--locale)
886 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
887 localedir
=$ac_optarg ;;
889 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
890 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
891 ac_prev
=localstatedir
;;
892 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
893 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
894 localstatedir
=$ac_optarg ;;
896 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
898 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
902 # Obsolete; use --without-fp.
905 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
906 |
--no-cr |
--no-c |
-n)
909 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
910 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
913 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
914 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
915 |
--oldin |
--oldi |
--old |
--ol |
--o)
916 ac_prev
=oldincludedir
;;
917 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
918 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
919 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
920 oldincludedir
=$ac_optarg ;;
922 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
924 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
927 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
928 |
--program-pre |
--program-pr |
--program-p)
929 ac_prev
=program_prefix
;;
930 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
931 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
932 program_prefix
=$ac_optarg ;;
934 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
935 |
--program-suf |
--program-su |
--program-s)
936 ac_prev
=program_suffix
;;
937 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
938 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
939 program_suffix
=$ac_optarg ;;
941 -program-transform-name |
--program-transform-name \
942 |
--program-transform-nam |
--program-transform-na \
943 |
--program-transform-n |
--program-transform- \
944 |
--program-transform |
--program-transfor \
945 |
--program-transfo |
--program-transf \
946 |
--program-trans |
--program-tran \
947 |
--progr-tra |
--program-tr |
--program-t)
948 ac_prev
=program_transform_name
;;
949 -program-transform-name=* |
--program-transform-name=* \
950 |
--program-transform-nam=* |
--program-transform-na=* \
951 |
--program-transform-n=* |
--program-transform-=* \
952 |
--program-transform=* |
--program-transfor=* \
953 |
--program-transfo=* |
--program-transf=* \
954 |
--program-trans=* |
--program-tran=* \
955 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
956 program_transform_name
=$ac_optarg ;;
958 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
960 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
963 -psdir |
--psdir |
--psdi |
--psd |
--ps)
965 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
969 |
-silent |
--silent |
--silen |
--sile |
--sil)
972 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
974 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
976 sbindir
=$ac_optarg ;;
978 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
979 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
980 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
982 ac_prev
=sharedstatedir
;;
983 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
984 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
985 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
987 sharedstatedir
=$ac_optarg ;;
989 -site |
--site |
--sit)
991 -site=* |
--site=* |
--sit=*)
994 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
996 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
999 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1000 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1001 ac_prev
=sysconfdir
;;
1002 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1003 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1004 sysconfdir
=$ac_optarg ;;
1006 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1007 ac_prev
=target_alias
;;
1008 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1009 target_alias
=$ac_optarg ;;
1011 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1014 -version |
--version |
--versio |
--versi |
--vers |
-V)
1015 ac_init_version
=: ;;
1018 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_
$ac_package=\
$ac_optarg ;;
1026 -without-* |
--without-*)
1027 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_
$ac_package=no
;;
1036 # Obsolete; use --with-x.
1039 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1040 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1041 ac_prev
=x_includes
;;
1042 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1043 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1044 x_includes
=$ac_optarg ;;
1046 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1047 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1048 ac_prev
=x_libraries
;;
1049 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1050 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1051 x_libraries
=$ac_optarg ;;
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1059 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\
$ac_optarg
1065 export $ac_envvar ;;
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1078 if test -n "$ac_prev"; then
1079 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1084 # Be sure to have absolute directory names.
1085 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1090 eval ac_val
=\$
$ac_var
1092 [\\/$
]* | ?
:[\\/]* ) continue;;
1093 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1104 target
=$target_alias
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x
; then
1108 if test "x$build_alias" = x
; then
1109 cross_compiling
=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1118 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1120 test "$silent" = yes && exec 6>/dev
/null
1123 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di
=`ls -di .` &&
1125 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted
=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir
=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1165 ac_srcdir_defaulted
=no
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1172 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1185 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 for ac_var
in $ac_precious_vars; do
1188 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1190 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1195 # Report the --help message.
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1201 \`configure' configures this package to adapt to many kinds of systems.
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1208 Defaults for the options are specified in brackets.
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1232 For better control, use the options below.
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1259 --build=BUILD configure
for building on BUILD
[guessed
]
1260 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1264 if test -n "$ac_init_help"; then
1269 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1270 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1271 --disable-universal don
't build universal on OS X
1272 --enable-smb enable possibly-buggy SMB printer default=yes
1273 --disable-smb disable possibly-buggy SMB printer
1274 --enable-ipv6 enable ipv6 (with ipv4) support
1275 --disable-ipv6 disable ipv6 support
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --without-gcc don't use gcc
1281 --with-smi link with libsmi
(allows to load MIBs on the fly to decode SNMP packets. default
=yes
1282 --without-smi don
't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1285 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1297 Use these variables to override the choices made by `configure' or to
help
1298 it to
find libraries and programs with nonstandard names
/locations.
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1307 test -d "$ac_dir" ||
continue
1311 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1313 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1318 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1321 ac_abs_top_builddir
=$ac_pwd
1322 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir
=$ac_top_build_prefix
1327 .
) # We are building in place.
1329 ac_top_srcdir
=$ac_top_builddir_sub
1330 ac_abs_top_srcdir
=$ac_pwd ;;
1331 [\\/]* | ?
:[\\/]* ) # Absolute name.
1332 ac_srcdir
=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir
=$srcdir
1334 ac_abs_top_srcdir
=$srcdir ;;
1336 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1340 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1361 generated by GNU Autoconf
2.61
1363 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1365 This configure
script is free software
; the Free Software Foundation
1366 gives unlimited permission to copy
, distribute and modify it.
1370 cat >config.log
<<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir
=.
1411 echo "PATH: $as_dir"
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_must_keep_next
=false
1441 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1442 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1443 |
-silent |
--silent |
--silen |
--sile |
--sil)
1446 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1449 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1451 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true
; then
1453 ac_must_keep_next
=false
# Got value, back to normal.
1456 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1457 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1458 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1459 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1464 -* ) ac_must_keep_next
=true
;;
1467 ac_configure_args
="$ac_configure_args '$ac_arg'"
1472 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1473 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1491 # The following way of writing the cache mishandles newlines in values,
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1528 for ac_var in $ac_subst_vars
1530 eval ac_val=\$$ac_var
1532 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534 echo "$ac_var='\''$ac_val'\''"
1538 if test -n "$ac_subst_files"; then
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1545 for ac_var
in $ac_subst_files
1547 eval ac_val
=\$
$ac_var
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 echo "$ac_var='\''$ac_val'\''"
1556 if test -s confdefs.h; then
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1574 for ac_signal
in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest
* confdefs.h
1582 # Predefined preprocessor variables.
1584 cat >>confdefs.h
<<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1589 cat >>confdefs.h
<<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1594 cat >>confdefs.h
<<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1599 cat >>confdefs.h
<<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 cat >>confdefs.h
<<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x
"$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE
; then
1614 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1616 set x
"$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1637 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1638 *) .
"./$cache_file";;
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1647 # Check that the precious variables saved in the cache have kept the same
1649 ac_cache_corrupted
=false
1650 for ac_var
in $ac_precious_vars; do
1651 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1652 eval ac_new_set
=\
$ac_env_${ac_var}_set
1653 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1654 eval ac_new_val
=\
$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted
=: ;;
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted
=: ;;
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted
=:
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1679 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg
=$ac_var=$ac_new_val ;;
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1713 ac_cpp
='$CPP $CPPFLAGS'
1714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1721 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1724 ac_install_sh
="$ac_aux_dir/install-sh -c"
1726 elif test -f "$ac_dir/install.sh"; then
1728 ac_install_sh
="$ac_aux_dir/install.sh -c"
1730 elif test -f "$ac_dir/shtool"; then
1732 ac_install_sh
="$ac_aux_dir/shtool install -c"
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 ac_build_alias
=$build_alias
1763 test "x$ac_build_alias" = x
&&
1764 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x
&&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1784 ac_save_IFS
=$IFS; IFS
='-'
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1794 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test "x$host_alias" = x
; then
1803 ac_cv_host
=$ac_cv_build
1805 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1821 ac_save_IFS
=$IFS; IFS
='-'
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1831 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1848 if test "${srcdir}" != "." ; then
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS
="$CFLAGS"
1854 if test -z "$CC" ; then
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2
; ac_word
=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2
="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1886 SHLICC2
=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1896 if test $SHLICC2 = yes ; then
1903 if test -z "$CC" -a "$with_gcc" = no
; then
1909 ac_cpp
='$CPP $CPPFLAGS'
1910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC
="$CC" # Let the user override the test.
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir
=.
1929 for ac_exec_ext
in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc
; ac_word
=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC
="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1990 if test "x$ac_ct_CC" = x
; then
1993 case $cross_compiling:$ac_tool_warned in
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned
=yes ;;
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy
${ac_tool_prefix}cc
; 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_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC
="$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_CC
="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc
; ac_word
=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC
="$CC" # Let the user override the test.
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 for ac_exec_ext
in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected
=yes
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy
$ac_cv_prog_CC
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2090 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
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; }
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog
in cl.exe
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC
="$CC" # Let the user override the test.
2120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir
=.
2125 for ac_exec_ext
in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$CC" && break
2150 if test -z "$CC"; then
2152 for ac_prog
in cl.exe
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy
$ac_prog; ac_word
=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_exec_ext
in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC
="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$ac_ct_CC" && break
2194 if test "x$ac_ct_CC" = x
; then
2197 case $cross_compiling:$ac_tool_warned in
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned
=yes ;;
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler
=`set X $ac_compile; echo $2`
2223 { (ac_try
="$ac_compiler --version >&5"
2225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2236 *) ac_try_echo
=$ac_try;;
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try
="$ac_compiler -V >&5"
2245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2287 for ac_file in $ac_files
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2296 if { (ac_try="$ac_link_default"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2311 for ac_file
in $ac_files ''
2313 test -f "$ac_file" ||
continue
2315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2318 # We found the default executable, but exeext='' is most
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2324 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2336 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.
$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2355 ac_exeext
=$ac_cv_exeext
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try
='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2376 if test "$cross_compiling" = maybe; then
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details.
" >&5
2382 echo "$as_me: error
: cannot run C compiled programs.
2383 If you meant to cross compile
, use \
`--host'.
2384 See \`config.log
' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2417 for ac_file
in conftest.exe conftest conftest.
*; do
2418 test -f "$ac_file" ||
continue
2420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2421 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2434 rm -f conftest
$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2438 rm -f conftest.
$ac_ext
2439 EXEEXT
=$ac_cv_exeext
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 cat >conftest.
$ac_ext <<_ACEOF
2449 cat confdefs.h
>>conftest.
$ac_ext
2450 cat >>conftest.
$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try
="$ac_compile"
2464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log
' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details.
" >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached
) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2539 echo "$as_me: failed program was
:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2555 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached
) $ECHO_C" >&6
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2597 echo "$as_me: failed program was
:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 echo "$as_me: failed program was
:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2674 echo "$as_me: failed program was
:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2689 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2700 if test "$GCC" = yes; then
2706 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2707 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached
) $ECHO_C" >&6
2711 ac_cv_prog_cc_c89=no
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2737 s = g (p, va_arg (v,int));
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2793 echo "$as_me: failed program was
:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2802 rm -f conftest.$ac_ext
2807 case "x
$ac_cv_prog_cc_c89" in
2809 { echo "$as_me:$LINENO: result
: none needed
" >&5
2810 echo "${ECHO_T}none needed
" >&6; } ;;
2812 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2813 echo "${ECHO_T}unsupported
" >&6; } ;;
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2836 { echo "$as_me:$LINENO: checking gcc version
" >&5
2837 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached
) $ECHO_C" >&6
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2848 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2856 # -Werror forces warnings to be errors.
2858 ac_lbl_cc_force_warning_errors=-Werror
2860 V_INCLS="$V_INCLS -I/usr
/local
/include
"
2861 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
2867 # This is assumed either to be GCC or clang, both
2868 # of which use -Werror to force warnings to be errors.
2870 ac_lbl_cc_force_warning_errors=-Werror
2875 # HP C, which is what we presume we're using, doesn't
2876 # exit with a non-zero exit status if we hand it an
2877 # invalid -W flag, can't be forced to do so even with
2878 # +We, and doesn't handle GCC-style -W flags, so we
2879 # don't want to try using GCC-style -W flags.
2881 ac_lbl_cc_dont_try_gcc_dashW=yes
2886 # MIPS C, which is what we presume we're using, doesn't
2887 # necessarily exit with a non-zero exit status if we
2888 # hand it an invalid -W flag, can't be forced to do
2889 # so, and doesn't handle GCC-style -W flags, so we
2890 # don't want to try using GCC-style -W flags.
2892 ac_lbl_cc_dont_try_gcc_dashW=yes
2893 V_CCOPT="$V_CCOPT -xansi -signed -O"
2898 # Presumed to be DEC OSF/1, Digital UNIX, or
2901 # The DEC C compiler, which is what we presume we're
2902 # using, doesn't exit with a non-zero exit status if we
2903 # hand it an invalid -W flag, can't be forced to do
2904 # so, and doesn't handle GCC-style -W flags, so we
2905 # don't want to try using GCC-style -W flags.
2907 ac_lbl_cc_dont_try_gcc_dashW=yes
2908 V_CCOPT="$V_CCOPT -O"
2913 # Assumed to be Sun C, which requires -errwarn to force
2914 # warnings to be treated as errors.
2916 ac_lbl_cc_force_warning_errors=-errwarn
2920 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
2921 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
2922 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2923 echo $ECHO_N "(cached
) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <sys/types.h>
2936 struct a { int b; };
2937 void c(const struct a *)
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2959 ac_cv_lbl_cc_const_proto=yes
2961 echo "$as_me: failed program was
:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 ac_cv_lbl_cc_const_proto=no
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
2971 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
2972 if test $ac_cv_lbl_cc_const_proto = no ; then
2974 cat >>confdefs.h <<\_ACEOF
2983 { echo "$as_me:$LINENO: checking
for inline
" >&5
2984 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
2985 save_CFLAGS="$CFLAGS"
2987 if test "${ac_cv_lbl_inline+set}" = set; then
2988 echo $ECHO_N "(cached
) $ECHO_C" >&6
2993 for ac_lbl_inline in inline __inline__ __inline
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #define inline $ac_lbl_inline
3002 static inline struct iltest *foo(void);
3008 static inline struct iltest *
3011 static struct iltest xxx;
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 ac_lbl_cc_inline=yes
3042 echo "$as_me: failed program was
:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 if test "$ac_lbl_cc_inline" = yes ; then
3053 if test "$ac_lbl_cc_inline" = yes ; then
3054 ac_cv_lbl_inline=$ac_lbl_inline
3058 CFLAGS="$save_CFLAGS"
3059 if test ! -z "$ac_cv_lbl_inline" ; then
3060 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3061 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3063 { echo "$as_me:$LINENO: result
: no
" >&5
3064 echo "${ECHO_T}no
" >&6; }
3067 cat >>confdefs.h <<_ACEOF
3068 #define inline $ac_cv_lbl_inline
3072 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3073 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3074 if test "${ac_cv___attribute__+set}" = set; then
3075 echo $ECHO_N "(cached
) $ECHO_C" >&6
3078 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3088 static void foo(void) __attribute__ ((noreturn));
3097 main(int argc, char **argv)
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3120 ac_cv___attribute__=yes
3122 echo "$as_me: failed program was
:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 ac_cv___attribute__=no
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 if test "$ac_cv___attribute__" = "yes"; then
3133 cat >>confdefs.h <<\_ACEOF
3134 #define HAVE___ATTRIBUTE__ 1
3139 # We can't use __attribute__, so we can't use __attribute__((unused)),
3140 # so we define _U_ to an empty string.
3142 V_DEFS="$V_DEFS -D_U_=\"\""
3144 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3145 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3147 if test "$ac_cv___attribute__" = "yes"; then
3149 { echo "$as_me:$LINENO: checking whether __attribute__
((unused
)) can be used without warnings
" >&5
3150 echo $ECHO_N "checking whether __attribute__
((unused
)) can be used without warnings...
$ECHO_C" >&6; }
3151 if test "${ac_cv___attribute___unused+set}" = set; then
3152 echo $ECHO_N "(cached
) $ECHO_C" >&6
3155 save_CFLAGS="$CFLAGS"
3156 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3157 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3169 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3171 printf("Hello
, world
!\n");
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv___attribute___unused=yes
3195 echo "$as_me: failed program was
:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_cv___attribute___unused=no
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 CFLAGS="$save_CFLAGS"
3205 if test "$ac_cv___attribute___unused" = "yes"; then
3206 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3208 V_DEFS="$V_DEFS -D_U_=\"\""
3210 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___unused" >&5
3211 echo "${ECHO_T}$ac_cv___attribute___unused" >&6; }
3214 { echo "$as_me:$LINENO: checking whether __attribute__
((noreturn
)) can be applied to
function pointers without warnings
" >&5
3215 echo $ECHO_N "checking whether __attribute__
((noreturn
)) can be applied to
function pointers without warnings...
$ECHO_C" >&6; }
3216 if test "${ac_cv___attribute___noreturn_function_pointer+set}" = set; then
3217 echo $ECHO_N "(cached
) $ECHO_C" >&6
3220 save_CFLAGS="$CFLAGS"
3221 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3222 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3232 extern int (*foo)(int i)
3233 __attribute__ ((noreturn));
3236 main(int argc, char **argv)
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3251 grep -v '^ *+' conftest.er1 >conftest.err
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3259 ac_cv___attribute___noreturn_function_pointer=yes
3261 echo "$as_me: failed program was
:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_cv___attribute___noreturn_function_pointer=no
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 CFLAGS="$save_CFLAGS"
3271 if test "$ac_cv___attribute___noreturn_function_pointer" = "yes"; then
3273 cat >>confdefs.h <<\_ACEOF
3274 #define __ATTRIBUTE___NORETURN_OK_FOR_FUNCTION_POINTERS 1
3278 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___noreturn_function_pointer" >&5
3279 echo "${ECHO_T}$ac_cv___attribute___noreturn_function_pointer" >&6; }
3282 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be used without warnings
" >&5
3283 echo $ECHO_N "checking whether __attribute__
((format
)) can be used without warnings...
$ECHO_C" >&6; }
3284 if test "${ac_cv___attribute___format+set}" = set; then
3285 echo $ECHO_N "(cached
) $ECHO_C" >&6
3288 save_CFLAGS="$CFLAGS"
3289 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3290 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3300 extern int foo(const char *fmt, ...)
3301 __attribute__ ((format (printf, 1, 2)));
3304 main(int argc, char **argv)
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3327 ac_cv___attribute___format=yes
3329 echo "$as_me: failed program was
:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 ac_cv___attribute___format=no
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 CFLAGS="$save_CFLAGS"
3339 if test "$ac_cv___attribute___format" = "yes"; then
3341 cat >>confdefs.h <<\_ACEOF
3342 #define __ATTRIBUTE___FORMAT_OK 1
3346 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format" >&5
3347 echo "${ECHO_T}$ac_cv___attribute___format" >&6; }
3349 if test "$ac_cv___attribute___format" = "yes"; then
3351 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3352 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3353 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3354 echo $ECHO_N "(cached
) $ECHO_C" >&6
3357 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3367 extern int (*foo)(const char *fmt, ...)
3368 __attribute__ ((format (printf, 1, 2)));
3371 main(int argc, char **argv)
3373 (*foo)("%s
", "test");
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv___attribute___format_function_pointer=yes
3396 echo "$as_me: failed program was
:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 ac_cv___attribute___format_function_pointer=no
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3407 cat >>confdefs.h <<\_ACEOF
3408 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3412 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3413 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3428 if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached
) $ECHO_C" >&6
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3436 for ac_c_preproc_warn_flag in '' yes
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error
" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3451 # include <limits.h>
3453 # include <assert.h>
3457 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3469 (exit $ac_status); } >/dev/null && {
3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3475 echo "$as_me: failed program was
:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Broken: fails on valid input.
3482 rm -f conftest.err conftest.$ac_ext
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <ac_nonexistent.h>
3494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3510 # Broken: success on invalid input.
3513 echo "$as_me: failed program was
:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Passes both tests.
3521 rm -f conftest.err conftest.$ac_ext
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then
3538 { echo "$as_me:$LINENO: result
: $CPP" >&5
3539 echo "${ECHO_T}$CPP" >&6; }
3541 for ac_c_preproc_warn_flag in '' yes
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error
" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 # include <limits.h>
3558 # include <assert.h>
3562 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3580 echo "$as_me: failed program was
:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 # Broken: fails on valid input.
3587 rm -f conftest.err conftest.$ac_ext
3589 # OK, works on sane cases. Now check whether nonexistent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3599 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3615 # Broken: success on invalid input.
3618 echo "$as_me: failed program was
:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 # Passes both tests.
3626 rm -f conftest.err conftest.$ac_ext
3629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630 rm -f conftest.err conftest.$ac_ext
3631 if $ac_preproc_ok; then
3634 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3635 See \
`config.log' for more details." >&5
3636 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log
' for more details." >&2;}
3638 { (exit 1); exit 1; }; }
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3644 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3649 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3650 if test "${ac_cv_path_GREP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 # Extract the first word of "grep ggrep" to use in msg output
3654 if test -z "$GREP"; then
3655 set dummy grep ggrep; ac_prog_name=$2
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 ac_path_GREP_found=false
3660 # Loop through the user's path and
test for each of PROGNAME-LIST
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_prog
in grep ggrep
; do
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3669 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3670 # Check for GNU ac_path_GREP and select it if it is found.
3671 # Check for GNU $ac_path_GREP
3672 case `"$ac_path_GREP" --version 2>&1` in
3674 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3677 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 echo 'GREP' >> "conftest.nl"
3684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3685 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3686 ac_count
=`expr $ac_count + 1`
3687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_GREP
="$ac_path_GREP"
3690 ac_path_GREP_max
=$ac_count
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3695 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3699 $ac_path_GREP_found && break 3
3709 GREP
="$ac_cv_path_GREP"
3710 if test -z "$GREP"; then
3711 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3712 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3713 { (exit 1); exit 1; }; }
3717 ac_cv_path_GREP
=$GREP
3722 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3723 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3724 GREP
="$ac_cv_path_GREP"
3727 { echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3729 if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3733 then ac_cv_path_EGREP
="$GREP -E"
3735 # Extract the first word of "egrep" to use in msg output
3736 if test -z "$EGREP"; then
3737 set dummy
egrep; ac_prog_name
=$2
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 ac_path_EGREP_found
=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_prog
in egrep; do
3749 for ac_exec_ext
in '' $ac_executable_extensions; do
3750 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3751 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3752 # Check for GNU ac_path_EGREP and select it if it is found.
3753 # Check for GNU $ac_path_EGREP
3754 case `"$ac_path_EGREP" --version 2>&1` in
3756 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3759 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 echo 'EGREP' >> "conftest.nl"
3766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3767 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3768 ac_count
=`expr $ac_count + 1`
3769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_EGREP
="$ac_path_EGREP"
3772 ac_path_EGREP_max
=$ac_count
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3777 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3781 $ac_path_EGREP_found && break 3
3791 EGREP
="$ac_cv_path_EGREP"
3792 if test -z "$EGREP"; then
3793 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3794 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3795 { (exit 1); exit 1; }; }
3799 ac_cv_path_EGREP
=$EGREP
3805 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3806 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3807 EGREP
="$ac_cv_path_EGREP"
3810 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3812 if test "${ac_cv_header_stdc+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.
$ac_ext <<_ACEOF
3818 cat confdefs.h
>>conftest.
$ac_ext
3819 cat >>conftest.
$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
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_header_stdc=yes
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_cv_header_stdc=no
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 if test $ac_cv_header_stdc = yes; then
3862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "memchr" >/dev/null 2>&1; then
3876 ac_cv_header_stdc=no
3882 if test $ac_cv_header_stdc = yes; then
3883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "free" >/dev/null 2>&1; then
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3905 if test "$cross_compiling" = yes; then
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3916 #if ((' ' & 0x0FF) == 0x020)
3917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920 # define ISLOWER(c) \
3921 (('a' <= (c) && (c) <= 'i') \
3922 || ('j' <= (c) && (c) <= 'r') \
3923 || ('s' <= (c) && (c) <= 'z'))
3924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 for (i = 0; i < 256; i++)
3933 if (XOR (islower (i), ISLOWER (i))
3934 || toupper (i) != TOUPPER (i))
3939 rm -f conftest$ac_exeext
3940 if { (ac_try="$ac_link"
3942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3943 *) ac_try_echo
=$ac_try;;
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_link") 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3950 { (case "(($ac_try" in
3951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_try") 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3961 echo "$as_me: program exited with status $ac_status" >&5
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3966 ac_cv_header_stdc=no
3968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3974 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3975 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3976 if test $ac_cv_header_stdc = yes; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define STDC_HEADERS 1
3984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3994 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3995 inttypes.h stdint.h unistd.h
3997 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4011 #include <$ac_header>
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4017 *) ac_try_echo
=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1
>conftest.err
4024 cat conftest.err
>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.
$ac_objext; then
4030 eval "$as_ac_Header=yes"
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.
$ac_ext >&5
4035 eval "$as_ac_Header=no"
4038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4040 ac_res
=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h
<<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057 for ac_header
in fcntl.h rpc
/rpc.h rpc
/rpcent.h netdnet
/dnetdb.h
4059 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_res
=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4070 # Is the header compilable?
4071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4073 cat >conftest.
$ac_ext <<_ACEOF
4076 cat confdefs.h
>>conftest.
$ac_ext
4077 cat >>conftest.
$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4080 #include <$ac_header>
4082 rm -f conftest.
$ac_objext
4083 if { (ac_try
="$ac_compile"
4085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_header_compiler=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_header_compiler=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6; }
4111 # Is the header present?
4112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <$ac_header>
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4125 *) ac_try_echo
=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1
>conftest.err
4132 cat conftest.err
>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev
/null
&& {
4135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4138 ac_header_preproc
=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.
$ac_ext >&5
4143 ac_header_preproc
=no
4146 rm -f conftest.err conftest.
$ac_ext
4147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6; }
4150 # So? What about this header?
4151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4157 ac_header_preproc
=yes
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4177 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 eval "$as_ac_Header=\$ac_header_preproc"
4182 ac_res
=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184 echo "${ECHO_T}$ac_res" >&6; }
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h
<<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4197 for ac_header
in net
/pfvar.h
4199 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4202 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.
$ac_ext <<_ACEOF
4208 cat confdefs.h
>>conftest.
$ac_ext
4209 cat >>conftest.
$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 #include <sys/socket.h>
4215 #include <$ac_header>
4217 rm -f conftest.
$ac_objext
4218 if { (ac_try
="$ac_compile"
4220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_compile") 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest.$ac_objext; then
4234 eval "$as_ac_Header=yes"
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 eval "$as_ac_Header=no"
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_res=`eval echo '${'$as_ac_Header'}'`
4245 { echo "$as_me:$LINENO: result: $ac_res" >&5
4246 echo "${ECHO_T}$ac_res" >&6; }
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248 cat >>confdefs.h <<_ACEOF
4249 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4256 if test "$ac_cv_header_net_pfvar_h" = yes; then
4257 LOCALSRC="print-pflog.c $LOCALSRC"
4260 for ac_header in netinet/if_ether.h
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4275 #include <sys/socket.h>
4277 #include <$ac_header>
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4288 grep -v '^ *+' conftest.er1
>conftest.err
4290 cat conftest.err
>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.
$ac_objext; then
4296 eval "$as_ac_Header=yes"
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4301 eval "$as_ac_Header=no"
4304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4306 ac_res
=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h
<<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4320 # The simple test didn't work.
4321 # Do we need to include <net/if.h> first?
4322 # Unset ac_cv_header_netinet_if_ether_h so we don't
4323 # treat the previous failure as a cached value and
4324 # suppress the next test.
4326 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4327 echo "$as_me: Rechecking with some additional includes" >&6;}
4328 unset ac_cv_header_netinet_if_ether_h
4330 for ac_header
in netinet
/if_ether.h
4332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4335 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 cat >conftest.
$ac_ext <<_ACEOF
4341 cat confdefs.h
>>conftest.
$ac_ext
4342 cat >>conftest.
$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4345 #include <sys/socket.h>
4346 #include <netinet/in.h>
4351 #include <$ac_header>
4353 rm -f conftest.
$ac_objext
4354 if { (ac_try
="$ac_compile"
4356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4370 eval "$as_ac_Header=yes"
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 eval "$as_ac_Header=no"
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382 echo "${ECHO_T}$ac_res" >&6; }
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4394 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4396 if test "${ac_cv_header_time+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <sys/types.h>
4406 #include <sys/time.h>
4412 if ((struct tm *) 0)
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4422 *) ac_try_echo
=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1
>conftest.err
4429 cat conftest.err
>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.
$ac_objext; then
4435 ac_cv_header_time
=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.
$ac_ext >&5
4440 ac_cv_header_time
=no
4443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4445 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4446 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4447 if test $ac_cv_header_time = yes; then
4449 cat >>confdefs.h
<<\_ACEOF
4450 #define TIME_WITH_SYS_TIME 1
4459 # Check whether --enable-universal was given.
4460 if test "${enable_universal+set}" = set; then
4461 enableval
=$enable_universal;
4464 if test "$enable_universal" != "no"; then
4469 # Leopard. Build for x86 and 32-bit PowerPC, with
4470 # x86 first. (That's what Apple does.)
4472 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4473 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4478 # Snow Leopard. Build for x86-64 and x86, with
4479 # x86-64 first. (That's what Apple does.)
4481 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4482 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4489 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4490 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4491 if test "$cross_compiling" = yes; then
4492 if test "${ac_cv_linux_vers+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 ac_cv_linux_vers
=unknown
4499 if test "${ac_cv_linux_vers+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 ac_cv_linux_vers
=`uname -r 2>&1 | \
4503 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4507 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4508 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4509 if test $ac_cv_linux_vers = unknown
; then
4510 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4511 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4512 { (exit 1); exit 1; }; }
4514 if test $ac_cv_linux_vers -lt 2 ; then
4515 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4516 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4517 { (exit 1); exit 1; }; }
4527 # Check whether --with-smi was given.
4528 if test "${with_smi+set}" = set; then
4535 if test "x$with_smi" != "xno" ; then
4537 for ac_header
in smi.h
4539 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 ac_res
=`eval echo '${'$as_ac_Header'}'`
4547 { echo "$as_me:$LINENO: result: $ac_res" >&5
4548 echo "${ECHO_T}$ac_res" >&6; }
4550 # Is the header compilable?
4551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4553 cat >conftest.
$ac_ext <<_ACEOF
4556 cat confdefs.h
>>conftest.
$ac_ext
4557 cat >>conftest.
$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4560 #include <$ac_header>
4562 rm -f conftest.
$ac_objext
4563 if { (ac_try
="$ac_compile"
4565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_compile") 2>conftest.er1
4571 grep -v '^ *+' conftest.er1 >conftest.err
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_c_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest.$ac_objext; then
4579 ac_header_compiler=yes
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_header_compiler=no
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589 echo "${ECHO_T}$ac_header_compiler" >&6; }
4591 # Is the header present?
4592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <$ac_header>
4602 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4605 *) ac_try_echo
=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4610 grep -v '^ *+' conftest.er1
>conftest.err
4612 cat conftest.err
>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev
/null
&& {
4615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4618 ac_header_preproc
=yes
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.
$ac_ext >&5
4623 ac_header_preproc
=no
4626 rm -f conftest.err conftest.
$ac_ext
4627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4628 echo "${ECHO_T}$ac_header_preproc" >&6; }
4630 # So? What about this header?
4631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4637 ac_header_preproc
=yes
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 eval "$as_ac_Header=\$ac_header_preproc"
4662 ac_res
=`eval echo '${'$as_ac_Header'}'`
4663 { echo "$as_me:$LINENO: result: $ac_res" >&5
4664 echo "${ECHO_T}$ac_res" >&6; }
4667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4668 cat >>confdefs.h
<<_ACEOF
4669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4678 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4679 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 ac_check_lib_save_LIBS
=$LIBS
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 /* Override any GCC internal prototype to avoid an error.
4692 Use char because int might match the return type of a GCC
4693 builtin and then its argument prototype would still apply. */
4706 rm -f conftest.
$ac_objext conftest
$ac_exeext
4707 if { (ac_try
="$ac_link"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_link") 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest$ac_exeext &&
4723 $as_test_x conftest$ac_exeext; then
4724 ac_cv_lib_smi_smiInit=yes
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_lib_smi_smiInit=no
4732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4733 conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4736 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4737 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4738 if test $ac_cv_lib_smi_smiInit = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define HAVE_LIBSMI 1
4747 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4749 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4750 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4751 if test "$cross_compiling" = yes; then
4752 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4753 echo "${ECHO_T}not when cross-compiling" >&6; }
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 /* libsmi available check */
4767 int current, revision, age, n;
4768 const int required = 2;
4771 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4773 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4776 if (required < current - age || required > current)
4782 rm -f conftest$ac_exeext
4783 if { (ac_try="$ac_link"
4785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4786 *) ac_try_echo
=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_link") 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4793 { (case "(($ac_try" in
4794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_try") 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4805 cat >>confdefs.h <<\_ACEOF
4811 echo "$as_me: program exited with status $ac_status" >&5
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4818 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4819 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4820 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4821 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4822 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4823 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4824 echo "${ECHO_T}no - too old" >&6; } ;;
4825 *) { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; } ;;
4830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4837 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4838 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4839 # Check whether --enable-smb was given.
4840 if test "${enable_smb+set}" = set; then
4841 enableval=$enable_smb;
4846 case "$enableval" in
4847 yes) { echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6; }
4849 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4850 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4852 cat >>confdefs.h <<\_ACEOF
4853 #define TCPDUMP_DO_SMB 1
4856 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4858 *) { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4864 # Check whether --with-user was given.
4865 if test "${with_user+set}" = set; then
4869 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4870 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4871 if test ! -z "$with_user" ; then
4873 cat >>confdefs.h <<_ACEOF
4874 #define WITH_USER "$withval"
4877 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4878 echo "${ECHO_T}to \"$withval\"" >&6; }
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4885 # Check whether --with-chroot was given.
4886 if test "${with_chroot+set}" = set; then
4887 withval=$with_chroot;
4890 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4891 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4892 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4894 cat >>confdefs.h <<_ACEOF
4895 #define WITH_CHROOT "$withval"
4898 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4899 echo "${ECHO_T}to \"$withval\"" >&6; }
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4906 # We must check this before checking whether to enable IPv6, because,
4907 # on some platforms (such as SunOS 5.x), the test program requires
4908 # the extra networking libraries.
4911 # Most operating systems have gethostbyname() in the default searched
4912 # libraries (i.e. libc):
4913 # Some OSes (eg. Solaris) place it in libnsl
4914 # Some strange OSes (SINIX) have it in libsocket:
4915 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4916 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4917 if test "${ac_cv_search_gethostbyname+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 ac_func_search_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
4934 char gethostbyname ();
4938 return gethostbyname ();
4943 for ac_lib in '' nsl socket resolv; do
4944 if test -z "$ac_lib"; then
4945 ac_res="none required"
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4954 *) ac_try_echo
=$ac_try;;
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_link") 2>conftest.er1
4959 grep -v '^ *+' conftest.er1
>conftest.err
4961 cat conftest.err
>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest
$ac_exeext &&
4967 $as_test_x conftest
$ac_exeext; then
4968 ac_cv_search_gethostbyname
=$ac_res
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.
$ac_ext >&5
4976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4978 if test "${ac_cv_search_gethostbyname+set}" = set; then
4982 if test "${ac_cv_search_gethostbyname+set}" = set; then
4985 ac_cv_search_gethostbyname
=no
4988 LIBS
=$ac_func_search_save_LIBS
4990 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4991 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4992 ac_res
=$ac_cv_search_gethostbyname
4993 if test "$ac_res" != no
; then
4994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4998 # Unfortunately libsocket sometimes depends on libnsl and
4999 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5000 if test "$ac_cv_search_gethostbyname" = "no"
5002 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5003 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS
=$LIBS
5008 LIBS
="-lsocket -lnsl $LIBS"
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5022 char gethostbyname ();
5026 return gethostbyname ();
5031 rm -f conftest.
$ac_objext conftest
$ac_exeext
5032 if { (ac_try
="$ac_link"
5034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
5049 ac_cv_lib_socket_gethostbyname=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_cv_lib_socket_gethostbyname=no
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5062 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5063 if test $ac_cv_lib_socket_gethostbyname = yes; then
5064 LIBS="-lsocket -lnsl $LIBS"
5068 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5069 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5070 if test "${ac_cv_search_socket+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_func_search_save_LIBS=$LIBS
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5096 for ac_lib in '' socket; do
5097 if test -z "$ac_lib"; then
5098 ac_res="none required"
5101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (ac_try="$ac_link"
5106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5107 *) ac_try_echo
=$ac_try;;
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_link") 2>conftest.er1
5112 grep -v '^ *+' conftest.er1
>conftest.err
5114 cat conftest.err
>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest
$ac_exeext &&
5120 $as_test_x conftest
$ac_exeext; then
5121 ac_cv_search_socket
=$ac_res
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.
$ac_ext >&5
5129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5131 if test "${ac_cv_search_socket+set}" = set; then
5135 if test "${ac_cv_search_socket+set}" = set; then
5138 ac_cv_search_socket
=no
5141 LIBS
=$ac_func_search_save_LIBS
5143 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5144 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5145 ac_res
=$ac_cv_search_socket
5146 if test "$ac_res" != no
; then
5147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5150 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5151 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5152 if test "${ac_cv_lib_socket_socket+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_check_lib_save_LIBS
=$LIBS
5156 LIBS
="-lsocket -lnsl $LIBS"
5157 cat >conftest.
$ac_ext <<_ACEOF
5160 cat confdefs.h
>>conftest.
$ac_ext
5161 cat >>conftest.
$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5164 /* Override any GCC internal prototype to avoid an error.
5165 Use char because int might match the return type of a GCC
5166 builtin and then its argument prototype would still apply. */
5179 rm -f conftest.
$ac_objext conftest
$ac_exeext
5180 if { (ac_try
="$ac_link"
5182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_link") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest$ac_exeext &&
5196 $as_test_x conftest$ac_exeext; then
5197 ac_cv_lib_socket_socket=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_cv_lib_socket_socket=no
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5210 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5211 if test $ac_cv_lib_socket_socket = yes; then
5212 LIBS="-lsocket -lnsl $LIBS"
5217 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5218 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5219 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5220 if test "${ac_cv_search_putmsg+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 ac_func_search_save_LIBS=$LIBS
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 /* Override any GCC internal prototype to avoid an error.
5232 Use char because int might match the return type of a GCC
5233 builtin and then its argument prototype would still apply. */
5246 for ac_lib in '' str; do
5247 if test -z "$ac_lib"; then
5248 ac_res="none required"
5251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5257 *) ac_try_echo
=$ac_try;;
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_link") 2>conftest.er1
5262 grep -v '^ *+' conftest.er1
>conftest.err
5264 cat conftest.err
>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest
$ac_exeext &&
5270 $as_test_x conftest
$ac_exeext; then
5271 ac_cv_search_putmsg
=$ac_res
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.
$ac_ext >&5
5279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5281 if test "${ac_cv_search_putmsg+set}" = set; then
5285 if test "${ac_cv_search_putmsg+set}" = set; then
5288 ac_cv_search_putmsg
=no
5291 LIBS
=$ac_func_search_save_LIBS
5293 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5294 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5295 ac_res
=$ac_cv_search_putmsg
5296 if test "$ac_res" != no
; then
5297 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5303 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5304 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5305 # Check whether --enable-ipv6 was given.
5306 if test "${enable_ipv6+set}" = set; then
5307 enableval
=$enable_ipv6; case "$enableval" in
5308 yes) { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5312 cat >>confdefs.h
<<\_ACEOF
5319 { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5325 if test "$cross_compiling" = yes; then
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5331 cat >conftest.
$ac_ext <<_ACEOF
5334 cat confdefs.h
>>conftest.
$ac_ext
5335 cat >>conftest.
$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 /* AF_INET6 available check */
5338 #include <sys/types.h>
5339 #include <sys/socket.h>
5342 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5349 rm -f conftest
$ac_exeext
5350 if { (ac_try
="$ac_link"
5352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360 { (case "(($ac_try" in
5361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5362 *) ac_try_echo
=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 { echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6; }
5371 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5373 cat >>confdefs.h
<<\_ACEOF
5379 echo "$as_me: program exited with status $ac_status" >&5
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5399 if test "$ipv6" = "yes"; then
5400 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5401 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5402 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <netinet/in.h>
5412 #ifdef IPV6_INRIA_VERSION
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "yes" >/dev
/null
2>&1; then
5419 CFLAGS
="-DINET6 $CFLAGS"
5425 cat >conftest.
$ac_ext <<_ACEOF
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <netinet/in.h>
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "yes" >/dev
/null
2>&1; then
5440 ipv6libdir
=/usr
/local
/v
6/lib
;
5442 CFLAGS
="-DINET6 $CFLAGS"
5448 cat >conftest.
$ac_ext <<_ACEOF
5451 cat confdefs.h
>>conftest.
$ac_ext
5452 cat >>conftest.
$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <features.h>
5455 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5460 $EGREP "yes" >/dev
/null
2>&1; then
5462 CFLAGS
="-DINET6 $CFLAGS"
5468 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
5471 ipv6libdir
=/usr
/inet
6/lib
5473 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
5477 cat >conftest.
$ac_ext <<_ACEOF
5480 cat confdefs.h
>>conftest.
$ac_ext
5481 cat >>conftest.
$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <sys/param.h>
5484 #ifdef _TOSHIBA_INET6
5488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "yes" >/dev
/null
2>&1; then
5492 ipv6libdir
=/usr
/local
/v
6/lib
;
5493 CFLAGS
="-DINET6 $CFLAGS"
5499 cat >conftest.
$ac_ext <<_ACEOF
5502 cat confdefs.h
>>conftest.
$ac_ext
5503 cat >>conftest.
$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include </usr/local/v6/include/sys/v6config.h>
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "yes" >/dev
/null
2>&1; then
5514 ipv6libdir
=/usr
/local
/v
6/lib
;
5515 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
5521 cat >conftest.
$ac_ext <<_ACEOF
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <sys/param.h>
5528 #ifdef _ZETA_MINAMI_INET6
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "yes" >/dev
/null
2>&1; then
5536 ipv6libdir
=/usr
/local
/v
6/lib
;
5537 CFLAGS
="-DINET6 $CFLAGS"
5543 if test "$ipv6type" != "unknown"; then
5547 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5548 echo "${ECHO_T}$ipv6type" >&6; }
5551 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5552 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
5553 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
5554 echo "You have $ipv6lib library, using it"
5556 if test "$ipv6trylibc" = "yes"; then
5557 echo "You do not have $ipv6lib library, using libc"
5559 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5560 echo "You need to fetch lib$ipv6lib.a from appropriate"
5561 echo 'ipv6 kit and compile beforehand.'
5568 if test "$ipv6" = "yes"; then
5570 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5571 # function in libc; there are "ngetaddrinfo()" and
5572 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5573 # "getaddrinfo" to be either "ngetaddrinfo" or
5574 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5575 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5577 # So this test doesn't work on Tru64 5.1, and possibly
5578 # on other 5.x releases. This causes the configure
5579 # script to become confused, and results in libpcap
5580 # being unbuildable.
5582 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5583 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5584 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_func_search_save_LIBS
=$LIBS
5588 cat >conftest.
$ac_ext <<_ACEOF
5591 cat confdefs.h
>>conftest.
$ac_ext
5592 cat >>conftest.
$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5595 /* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5601 char getaddrinfo ();
5605 return getaddrinfo ();
5610 for ac_lib
in '' socket
; do
5611 if test -z "$ac_lib"; then
5612 ac_res
="none required"
5615 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5617 rm -f conftest.
$ac_objext conftest
$ac_exeext
5618 if { (ac_try
="$ac_link"
5620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_link") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest$ac_exeext &&
5634 $as_test_x conftest$ac_exeext; then
5635 ac_cv_search_getaddrinfo=$ac_res
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5645 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5649 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5652 ac_cv_search_getaddrinfo=no
5655 LIBS=$ac_func_search_save_LIBS
5657 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5658 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5659 ac_res=$ac_cv_search_getaddrinfo
5660 if test "$ac_res" != no; then
5661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5662 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5663 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5664 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 if test "$cross_compiling" = yes; then
5668 td_cv_buggygetaddrinfo=yes
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5677 #include <sys/types.h>
5680 #include <sys/socket.h>
5681 #include <netinet/in.h>
5685 int passive, gaierr, inet4 = 0, inet6 = 0;
5686 struct addrinfo hints, *ai, *aitop;
5687 char straddr[INET6_ADDRSTRLEN], strport[16];
5689 for (passive = 0; passive <= 1; passive++) {
5690 memset(&hints, 0, sizeof(hints));
5691 hints.ai_family = AF_UNSPEC;
5692 hints.ai_flags = passive ? AI_PASSIVE : 0;
5693 hints.ai_socktype = SOCK_STREAM;
5694 hints.ai_protocol = IPPROTO_TCP;
5695 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5696 (void)gai_strerror(gaierr);
5699 for (ai = aitop; ai; ai = ai->ai_next) {
5700 if (ai->ai_addr == NULL ||
5701 ai->ai_addrlen == 0 ||
5702 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5703 straddr, sizeof(straddr), strport, sizeof(strport),
5704 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5707 switch (ai->ai_family) {
5709 if (strcmp(strport, "54321") != 0) {
5713 if (strcmp(straddr, "0.0.0.0") != 0) {
5717 if (strcmp(straddr, "127.0.0.1") != 0) {
5724 if (strcmp(strport, "54321") != 0) {
5728 if (strcmp(straddr, "::") != 0) {
5732 if (strcmp(straddr, "::1") != 0) {
5749 /* another family support? */
5755 /* supported family should be 2, unsupported family should be 0 */
5756 if (!(inet4 == 0 || inet4 == 2))
5758 if (!(inet6 == 0 || inet6 == 2))
5762 freeaddrinfo(aitop);
5767 freeaddrinfo(aitop);
5772 rm -f conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5776 *) ac_try_echo
=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_link") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5783 { (case "(($ac_try" in
5784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 td_cv_buggygetaddrinfo=no
5794 echo "$as_me: program exited with status $ac_status" >&5
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5799 td_cv_buggygetaddrinfo=yes
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807 if test "$td_cv_buggygetaddrinfo" = no; then
5808 { echo "$as_me:$LINENO: result: good" >&5
5809 echo "${ECHO_T}good" >&6; }
5811 { echo "$as_me:$LINENO: result: buggy" >&5
5812 echo "${ECHO_T}buggy" >&6; }
5815 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5817 # XXX - it doesn't appear that "ipv6type" can ever be
5818 # set to "linux". Should this be testing for
5819 # "linux-glibc", or for that *or* "linux-libinet6"?
5820 # If the latter, note that "linux-libinet6" is also
5821 # the type given to some non-Linux OSes.
5823 if test "$ipv6type" != "linux"; then
5824 echo 'Fatal: You must get working getaddrinfo() function.'
5825 echo ' or you can specify "--disable-ipv6"'.
5828 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5829 echo ' Better upgrade your system library to newest version'
5830 echo ' of GNU C library (aka glibc).'
5837 for ac_func in getnameinfo
5839 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5853 #define $ac_func innocuous_$ac_func
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func (); below.
5857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858 <limits.h> exists even on freestanding compilers. */
5861 # include <limits.h>
5863 # include <assert.h>
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined __stub_$ac_func || defined __stub___$ac_func
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5894 *) ac_try_echo
=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1
>conftest.err
5901 cat conftest.err
>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest
$ac_exeext &&
5907 $as_test_x conftest
$ac_exeext; then
5908 eval "$as_ac_var=yes"
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.
$ac_ext >&5
5913 eval "$as_ac_var=no"
5916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5917 conftest
$ac_exeext conftest.
$ac_ext
5919 ac_res
=`eval echo '${'$as_ac_var'}'`
5920 { echo "$as_me:$LINENO: result: $ac_res" >&5
5921 echo "${ECHO_T}$ac_res" >&6; }
5922 if test `eval echo '${'$as_ac_var'}'` = yes; then
5923 cat >>confdefs.h
<<_ACEOF
5924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5928 case " $LIBOBJS " in
5929 *" $ac_func.$ac_objext "* ) ;;
5930 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5940 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5941 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5942 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <netdnet/dnetdb.h>
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
5956 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
5958 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
5963 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5964 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5965 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5967 cat >>confdefs.h
<<\_ACEOF
5968 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5974 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5975 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5976 if test "${ac_cv_addrinfo+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5995 rm -f conftest.
$ac_objext
5996 if { (ac_try
="$ac_compile"
5998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6024 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
6025 if test $ac_cv_addrinfo = yes; then
6027 cat >>confdefs.h <<\_ACEOF
6028 #define HAVE_ADDRINFO 1
6033 cat >>confdefs.h <<\_ACEOF
6034 #define NEED_ADDRINFO_H 1
6039 if test "$ac_cv_addrinfo" = no; then
6040 missing_includes=yes
6044 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6045 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
6046 if test "${ac_cv_maxserv+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 $EGREP "yes" >/dev/null 2>&1; then
6070 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6071 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
6072 if test $ac_cv_maxserv != yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define NEED_ADDRINFO_H 1
6079 if test "$ac_cv_maxserv" = no; then
6080 missing_includes=yes
6084 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6085 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6086 if test "${ac_cv_namereqd+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "yes" >/dev/null 2>&1; then
6110 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6111 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6112 if test $ac_cv_namereqd != yes; then
6113 cat >>confdefs.h <<\_ACEOF
6114 #define NEED_ADDRINFO_H 1
6119 if test "$ac_cv_namereqd" = no; then
6120 missing_includes=yes
6124 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6125 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6126 if test "${ac_cv_sa_storage+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6136 # include <sys/types.h>
6137 # include <sys/socket.h>
6141 struct sockaddr_storage s
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6150 *) ac_try_echo
=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1
>conftest.err
6157 cat conftest.err
>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.
$ac_objext; then
6163 ac_cv_sa_storage
=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6174 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6175 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6176 if test $ac_cv_sa_storage = yes; then
6178 cat >>confdefs.h
<<\_ACEOF
6179 #define HAVE_SOCKADDR_STORAGE 1
6184 if test "$ac_cv_sa_storage" = no
; then
6185 missing_includes
=yes
6194 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6196 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6199 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.
$ac_ext <<_ACEOF
6205 cat confdefs.h
>>conftest.
$ac_ext
6206 cat >>conftest.
$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6210 #define $ac_func innocuous_$ac_func
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func (); below.
6214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6215 <limits.h> exists even on freestanding compilers. */
6218 # include <limits.h>
6220 # include <assert.h>
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined __stub_$ac_func || defined __stub___$ac_func
6247 rm -f conftest.
$ac_objext conftest
$ac_exeext
6248 if { (ac_try
="$ac_link"
6250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 eval "$as_ac_var=yes"
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 eval "$as_ac_var=no"
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6276 ac_res=`eval echo '${'$as_ac_var'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6279 if test `eval echo '${'$as_ac_var'}'` = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6285 case " $LIBOBJS " in
6286 *" $ac_func.$ac_objext "* ) ;;
6287 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6298 for ac_func in fork vfork strftime
6300 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 cat >conftest.$ac_ext <<_ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6314 #define $ac_func innocuous_$ac_func
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func (); below.
6318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6319 <limits.h> exists even on freestanding compilers. */
6322 # include <limits.h>
6324 # include <assert.h>
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined __stub_$ac_func || defined __stub___$ac_func
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6355 *) ac_try_echo
=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_link") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1
>conftest.err
6362 cat conftest.err
>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest
$ac_exeext &&
6368 $as_test_x conftest
$ac_exeext; then
6369 eval "$as_ac_var=yes"
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.
$ac_ext >&5
6374 eval "$as_ac_var=no"
6377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6378 conftest
$ac_exeext conftest.
$ac_ext
6380 ac_res
=`eval echo '${'$as_ac_var'}'`
6381 { echo "$as_me:$LINENO: result: $ac_res" >&5
6382 echo "${ECHO_T}$ac_res" >&6; }
6383 if test `eval echo '${'$as_ac_var'}'` = yes; then
6384 cat >>confdefs.h
<<_ACEOF
6385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6393 for ac_func
in setlinebuf alarm
6395 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6398 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 cat >conftest.
$ac_ext <<_ACEOF
6404 cat confdefs.h
>>conftest.
$ac_ext
6405 cat >>conftest.
$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6409 #define $ac_func innocuous_$ac_func
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char $ac_func (); below.
6413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6414 <limits.h> exists even on freestanding compilers. */
6417 # include <limits.h>
6419 # include <assert.h>
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6431 /* The GNU C library defines this for functions which it implements
6432 to always fail with ENOSYS. Some functions are actually named
6433 something starting with __ and the normal name is an alias. */
6434 #if defined __stub_$ac_func || defined __stub___$ac_func
6446 rm -f conftest.
$ac_objext conftest
$ac_exeext
6447 if { (ac_try
="$ac_link"
6449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_link") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest$ac_exeext &&
6463 $as_test_x conftest$ac_exeext; then
6464 eval "$as_ac_var=yes"
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 eval "$as_ac_var=no"
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext conftest.$ac_ext
6475 ac_res=`eval echo '${'$as_ac_var'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6490 for ac_func in vsnprintf snprintf
6492 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6506 #define $ac_func innocuous_$ac_func
6508 /* System header to define __stub macros and hopefully few prototypes,
6509 which can conflict with char $ac_func (); below.
6510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6511 <limits.h> exists even on freestanding compilers. */
6514 # include <limits.h>
6516 # include <assert.h>
6521 /* Override any GCC internal prototype to avoid an error.
6522 Use char because int might match the return type of a GCC
6523 builtin and then its argument prototype would still apply. */
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined __stub_$ac_func || defined __stub___$ac_func
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6547 *) ac_try_echo
=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest
$ac_exeext &&
6560 $as_test_x conftest
$ac_exeext; then
6561 eval "$as_ac_var=yes"
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.
$ac_ext >&5
6566 eval "$as_ac_var=no"
6569 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6570 conftest
$ac_exeext conftest.
$ac_ext
6572 ac_res
=`eval echo '${'$as_ac_var'}'`
6573 { echo "$as_me:$LINENO: result: $ac_res" >&5
6574 echo "${ECHO_T}$ac_res" >&6; }
6575 if test `eval echo '${'$as_ac_var'}'` = yes; then
6576 cat >>confdefs.h
<<_ACEOF
6577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6585 if test $needsnprintf = yes; then
6586 case " $LIBOBJS " in
6587 *" snprintf.$ac_objext "* ) ;;
6588 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6595 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6597 if test "${ac_cv_type_signal+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 cat >conftest.
$ac_ext <<_ACEOF
6603 cat confdefs.h
>>conftest.
$ac_ext
6604 cat >>conftest.
$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <sys/types.h>
6612 return *(signal (0, 0)) (0) == 1;
6617 rm -f conftest.
$ac_objext
6618 if { (ac_try
="$ac_compile"
6620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 ac_cv_type_signal=int
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_cv_type_signal=void
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6645 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6647 cat >>confdefs.h <<_ACEOF
6648 #define RETSIGTYPE $ac_cv_type_signal
6652 if test "$ac_cv_type_signal" = void ; then
6654 cat >>confdefs.h <<\_ACEOF
6660 cat >>confdefs.h <<\_ACEOF
6661 #define RETSIGVAL (0)
6669 cat >>confdefs.h <<\_ACEOF
6670 #define _BSD_SIGNALS 1
6677 for ac_func in sigaction
6679 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6693 #define $ac_func innocuous_$ac_func
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func (); below.
6697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 <limits.h> exists even on freestanding compilers. */
6701 # include <limits.h>
6703 # include <assert.h>
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6715 /* The GNU C library defines this for functions which it implements
6716 to always fail with ENOSYS. Some functions are actually named
6717 something starting with __ and the normal name is an alias. */
6718 #if defined __stub_$ac_func || defined __stub___$ac_func
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6734 *) ac_try_echo
=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1
>conftest.err
6741 cat conftest.err
>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest
$ac_exeext &&
6747 $as_test_x conftest
$ac_exeext; then
6748 eval "$as_ac_var=yes"
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6753 eval "$as_ac_var=no"
6756 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6757 conftest
$ac_exeext conftest.
$ac_ext
6759 ac_res
=`eval echo '${'$as_ac_var'}'`
6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
6761 echo "${ECHO_T}$ac_res" >&6; }
6762 if test `eval echo '${'$as_ac_var'}'` = yes; then
6763 cat >>confdefs.h
<<_ACEOF
6764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6770 if test $ac_cv_func_sigaction = no
; then
6772 for ac_func
in sigset
6774 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6777 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define $ac_func innocuous_$ac_func
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6796 # include <limits.h>
6798 # include <assert.h>
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_$ac_func || defined __stub___$ac_func
6825 rm -f conftest.
$ac_objext conftest
$ac_exeext
6826 if { (ac_try
="$ac_link"
6828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_link") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext &&
6842 $as_test_x conftest$ac_exeext; then
6843 eval "$as_ac_var=yes"
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 eval "$as_ac_var=no"
6851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6852 conftest$ac_exeext conftest.$ac_ext
6854 ac_res=`eval echo '${'$as_ac_var'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856 echo "${ECHO_T}$ac_res" >&6; }
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6869 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6870 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6871 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_func_search_save_LIBS=$LIBS
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6892 return dnet_htoa ();
6897 for ac_lib in '' dnet; do
6898 if test -z "$ac_lib"; then
6899 ac_res="none required"
6902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (ac_try="$ac_link"
6907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6908 *) ac_try_echo
=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_link") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1
>conftest.err
6915 cat conftest.err
>&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest
$ac_exeext &&
6921 $as_test_x conftest
$ac_exeext; then
6922 ac_cv_search_dnet_htoa
=$ac_res
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6930 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6932 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6936 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6939 ac_cv_search_dnet_htoa
=no
6942 LIBS
=$ac_func_search_save_LIBS
6944 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6945 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6946 ac_res
=$ac_cv_search_dnet_htoa
6947 if test "$ac_res" != no
; then
6948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6950 cat >>confdefs.h
<<\_ACEOF
6951 #define HAVE_DNET_HTOA 1
6958 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6959 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6960 if test "${ac_cv_lib_rpc_main+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_check_lib_save_LIBS
=$LIBS
6965 cat >conftest.
$ac_ext <<_ACEOF
6968 cat confdefs.h
>>conftest.
$ac_ext
6969 cat >>conftest.
$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6981 rm -f conftest.
$ac_objext conftest
$ac_exeext
6982 if { (ac_try
="$ac_link"
6984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>conftest.er1
6990 grep -v '^ *+' conftest.er1 >conftest.err
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest$ac_exeext &&
6998 $as_test_x conftest$ac_exeext; then
6999 ac_cv_lib_rpc_main=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_lib_rpc_main=no
7007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7008 conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7011 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7012 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
7013 if test $ac_cv_lib_rpc_main = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_LIBRPC 1
7022 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7023 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
7024 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_func_search_save_LIBS=$LIBS
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7035 /* Override any GCC internal prototype to avoid an error.
7036 Use char because int might match the return type of a GCC
7037 builtin and then its argument prototype would still apply. */
7041 char getrpcbynumber ();
7045 return getrpcbynumber ();
7050 for ac_lib in '' nsl; do
7051 if test -z "$ac_lib"; then
7052 ac_res="none required"
7055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7061 *) ac_try_echo
=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest
$ac_exeext &&
7074 $as_test_x conftest
$ac_exeext; then
7075 ac_cv_search_getrpcbynumber
=$ac_res
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.
$ac_ext >&5
7083 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7085 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7089 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7092 ac_cv_search_getrpcbynumber
=no
7095 LIBS
=$ac_func_search_save_LIBS
7097 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7098 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7099 ac_res
=$ac_cv_search_getrpcbynumber
7100 if test "$ac_res" != no
; then
7101 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7103 cat >>confdefs.h
<<\_ACEOF
7104 #define HAVE_GETRPCBYNUMBER 1
7113 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
7114 if test -f $pfopen ; then
7116 for ac_func
in pfopen
7118 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7121 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.
$ac_ext <<_ACEOF
7127 cat confdefs.h
>>conftest.
$ac_ext
7128 cat >>conftest.
$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7132 #define $ac_func innocuous_$ac_func
7134 /* System header to define __stub macros and hopefully few prototypes,
7135 which can conflict with char $ac_func (); below.
7136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137 <limits.h> exists even on freestanding compilers. */
7140 # include <limits.h>
7142 # include <assert.h>
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined __stub_$ac_func || defined __stub___$ac_func
7169 rm -f conftest.
$ac_objext conftest
$ac_exeext
7170 if { (ac_try
="$ac_link"
7172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest$ac_exeext &&
7186 $as_test_x conftest$ac_exeext; then
7187 eval "$as_ac_var=yes"
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 eval "$as_ac_var=no"
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196 conftest$ac_exeext conftest.$ac_ext
7198 ac_res=`eval echo '${'$as_ac_var'}'`
7199 { echo "$as_me:$LINENO: result: $ac_res" >&5
7200 echo "${ECHO_T}$ac_res" >&6; }
7201 if test `eval echo '${'$as_ac_var'}'` = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7209 if test $ac_cv_func_pfopen = "no" ; then
7210 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7211 echo "${ECHO_T}Using $pfopen" >&6; }
7212 LIBS="$LIBS $pfopen"
7215 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7216 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7219 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7220 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7221 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7222 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
7223 sed -e 's/-PRE-GIT$//' `
7224 if test $lastdir = $basedir ; then
7228 if test -r $dir/libpcap.a ; then
7229 libpcap=$dir/libpcap.a
7233 if test $libpcap = FAIL ; then
7234 { echo "$as_me:$LINENO: result: not found" >&5
7235 echo "${ECHO_T}not found" >&6; }
7238 # Look for pcap-config.
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 case $PCAP_CONFIG in
7250 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7272 if test -n "$PCAP_CONFIG"; then
7273 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7274 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7282 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7283 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7284 # Extract the first word of "pcap-config", so it can be a program name with args.
7285 set dummy pcap-config; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 case $ac_pt_PCAP_CONFIG in
7293 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7315 if test -n "$ac_pt_PCAP_CONFIG"; then
7316 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7317 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7323 if test "x$ac_pt_PCAP_CONFIG" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7329 whose name does not start with the host triplet. If you think this
7330 configuration is useful to you, please write to autoconf@gnu.org." >&5
7331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7334 ac_tool_warned=yes ;;
7336 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7339 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7342 if test -n "$PCAP_CONFIG" ; then
7344 # Found - use it to get the include flags for
7345 # libpcap and the flags to link with libpcap.
7347 # Please read section 11.6 "Shell Substitutions"
7348 # in the autoconf manual before doing anything
7349 # to this that involves quoting. Especially note
7350 # the statement "There is just no portable way to use
7351 # double-quoted strings inside double-quoted back-quoted
7352 # expressions (pfew!)."
7354 cflags=`"$PCAP_CONFIG" --cflags`
7355 V_INCLS="$cflags $V_INCLS"
7356 libpcap=`"$PCAP_CONFIG" --libs`
7359 # Not found; look for pcap.
7361 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7362 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7363 if test "${ac_cv_lib_pcap_main+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_check_lib_save_LIBS=$LIBS
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (ac_try="$ac_link"
7387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7388 *) ac_try_echo
=$ac_try;;
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_link") 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest
$ac_exeext &&
7401 $as_test_x conftest
$ac_exeext; then
7402 ac_cv_lib_pcap_main
=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.
$ac_ext >&5
7407 ac_cv_lib_pcap_main
=no
7410 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7411 conftest
$ac_exeext conftest.
$ac_ext
7412 LIBS
=$ac_check_lib_save_LIBS
7414 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7415 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7416 if test $ac_cv_lib_pcap_main = yes; then
7420 if test $libpcap = FAIL
; then
7421 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7422 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7423 { (exit 1); exit 1; }; }
7425 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7426 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7427 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7428 \
( ! -r /usr
/include
/pcap.h \
); then
7429 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7430 d
="/usr/local/include/pcap"
7431 elif test -r /usr
/include
/pcap
/pcap.h
; then
7432 d
="/usr/include/pcap"
7435 if test -z "$d" ; then
7436 { echo "$as_me:$LINENO: result: not found" >&5
7437 echo "${ECHO_T}not found" >&6; }
7439 V_INCLS
="-I$d $V_INCLS"
7440 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7441 echo "${ECHO_T}found -- -I$d added" >&6; }
7446 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7447 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7448 if test -r $d/pcap.h
; then
7449 V_INCLS
="-I$d $V_INCLS"
7450 elif test -r $places/pcap.h
; then
7451 V_INCLS
="-I$places $V_INCLS"
7453 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7454 echo "$as_me: error: cannot find pcap.h" >&2;}
7455 { (exit see INSTALL
); exit see INSTALL
; }; }
7457 { echo "$as_me:$LINENO: result: $libpcap" >&5
7458 echo "${ECHO_T}$libpcap" >&6; }
7459 # Extract the first word of "pcap-config", so it can be a program name with args.
7460 set dummy pcap-config
; ac_word
=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 case $PCAP_CONFIG in
7468 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir
=.
7476 for ac_exec_ext
in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7490 if test -n "$PCAP_CONFIG"; then
7491 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7492 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7494 { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7499 if test -n "$PCAP_CONFIG"; then
7501 # The libpcap directory has a pcap-config script.
7502 # Use it to get any additioal libraries needed
7503 # to link with the libpcap archive library in
7506 # Please read section 11.6 "Shell Substitutions"
7507 # in the autoconf manual before doing anything
7508 # to this that involves quoting. Especially note
7509 # the statement "There is just no portable way to use
7510 # double-quoted strings inside double-quoted back-quoted
7511 # expressions (pfew!)."
7513 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
7514 libpcap
="$libpcap $additional_libs"
7517 LIBS
="$libpcap $LIBS"
7518 if ! test -n "$PCAP_CONFIG" ; then
7520 # We don't have pcap-config; find out any additional link flags
7521 # we need. (If we have pcap-config, we assume it tells us what
7528 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7529 # present, as we use the STREAMS routines.
7531 # (XXX - true only if we're linking with a static libpcap?)
7533 pseexe
="/lib/pse.exp"
7534 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7535 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7536 if test -f $pseexe ; then
7537 { echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6; }
7539 LIBS
="$LIBS -I:$pseexe"
7543 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7544 # we use them to load the BPF module.
7546 # (XXX - true only if we're linking with a static libpcap?)
7548 LIBS
="$LIBS -lodm -lcfg"
7553 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7554 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7555 if test "${ac_cv_func_pcap_loop+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566 #define pcap_loop innocuous_pcap_loop
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char pcap_loop (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7574 # include <limits.h>
7576 # include <assert.h>
7581 /* Override any GCC internal prototype to avoid an error.
7582 Use char because int might match the return type of a GCC
7583 builtin and then its argument prototype would still apply. */
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7598 return pcap_loop ();
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext
7604 if { (ac_try
="$ac_link"
7606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext &&
7620 $as_test_x conftest$ac_exeext; then
7621 ac_cv_func_pcap_loop=yes
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 ac_cv_func_pcap_loop=no
7629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7630 conftest$ac_exeext conftest.$ac_ext
7632 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7633 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7634 if test $ac_cv_func_pcap_loop = yes; then
7638 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7639 config.log file in your report. If you have downloaded libpcap from
7640 tcpdump.org, and built it yourself, please also include the config.log
7641 file from the libpcap source directory, the Makefile from the libpcap
7642 source directory, and the output of the make process for libpcap, as
7643 this could be a problem with the libpcap that was built, and we will
7644 not be able to determine why this is happening, and thus will not be
7645 able to fix it, without that information, as we have not been able to
7646 reproduce this problem ourselves." >&5
7647 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7648 config.log file in your report. If you have downloaded libpcap from
7649 tcpdump.org, and built it yourself, please also include the config.log
7650 file from the libpcap source directory, the Makefile from the libpcap
7651 source directory, and the output of the make process for libpcap, as
7652 this could be a problem with the libpcap that was built, and we will
7653 not be able to determine why this is happening, and thus will not be
7654 able to fix it, without that information, as we have not been able to
7655 reproduce this problem ourselves." >&2;}
7656 { (exit 1); exit 1; }; }
7661 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7662 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7663 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7674 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char pcap_list_datalinks (); below.
7678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679 <limits.h> exists even on freestanding compilers. */
7682 # include <limits.h>
7684 # include <assert.h>
7687 #undef pcap_list_datalinks
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7695 char pcap_list_datalinks ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7706 return pcap_list_datalinks ();
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7715 *) ac_try_echo
=$ac_try;;
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_link") 2>conftest.er1
7720 grep -v '^ *+' conftest.er1
>conftest.err
7722 cat conftest.err
>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest
$ac_exeext &&
7728 $as_test_x conftest
$ac_exeext; then
7729 ac_cv_func_pcap_list_datalinks
=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 ac_cv_func_pcap_list_datalinks
=no
7737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7738 conftest
$ac_exeext conftest.
$ac_ext
7740 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7741 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7742 if test $ac_cv_func_pcap_list_datalinks = yes; then
7744 cat >>confdefs.h
<<\_ACEOF
7745 #define HAVE_PCAP_LIST_DATALINKS 1
7750 case " $LIBOBJS " in
7751 *" datalinks.$ac_objext "* ) ;;
7752 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
7759 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7760 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7761 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 cat >conftest.
$ac_ext <<_ACEOF
7767 cat confdefs.h
>>conftest.
$ac_ext
7768 cat >>conftest.
$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7772 #define pcap_set_datalink innocuous_pcap_set_datalink
7774 /* System header to define __stub macros and hopefully few prototypes,
7775 which can conflict with char pcap_set_datalink (); below.
7776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7777 <limits.h> exists even on freestanding compilers. */
7780 # include <limits.h>
7782 # include <assert.h>
7785 #undef pcap_set_datalink
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7793 char pcap_set_datalink ();
7794 /* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7804 return pcap_set_datalink ();
7809 rm -f conftest.
$ac_objext conftest
$ac_exeext
7810 if { (ac_try
="$ac_link"
7812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext &&
7826 $as_test_x conftest$ac_exeext; then
7827 ac_cv_func_pcap_set_datalink=yes
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_cv_func_pcap_set_datalink=no
7835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7836 conftest$ac_exeext conftest.$ac_ext
7838 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7839 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7840 if test $ac_cv_func_pcap_set_datalink = yes; then
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_PCAP_SET_DATALINK 1
7848 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7849 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7850 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7861 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7863 /* System header to define __stub macros and hopefully few prototypes,
7864 which can conflict with char pcap_datalink_name_to_val (); below.
7865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866 <limits.h> exists even on freestanding compilers. */
7869 # include <limits.h>
7871 # include <assert.h>
7874 #undef pcap_datalink_name_to_val
7876 /* Override any GCC internal prototype to avoid an error.
7877 Use char because int might match the return type of a GCC
7878 builtin and then its argument prototype would still apply. */
7882 char pcap_datalink_name_to_val ();
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7893 return pcap_datalink_name_to_val ();
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (ac_try="$ac_link"
7901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7902 *) ac_try_echo
=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_link") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1
>conftest.err
7909 cat conftest.err
>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest
$ac_exeext &&
7915 $as_test_x conftest
$ac_exeext; then
7916 ac_cv_func_pcap_datalink_name_to_val
=yes
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.
$ac_ext >&5
7921 ac_cv_func_pcap_datalink_name_to_val
=no
7924 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7925 conftest
$ac_exeext conftest.
$ac_ext
7927 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7928 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7929 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7932 cat >>confdefs.h
<<\_ACEOF
7933 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7936 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7937 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7938 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7949 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char pcap_datalink_val_to_description (); below.
7953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 <limits.h> exists even on freestanding compilers. */
7957 # include <limits.h>
7959 # include <assert.h>
7962 #undef pcap_datalink_val_to_description
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7970 char pcap_datalink_val_to_description ();
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7981 return pcap_datalink_val_to_description ();
7986 rm -f conftest.
$ac_objext conftest
$ac_exeext
7987 if { (ac_try
="$ac_link"
7989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest$ac_exeext &&
8003 $as_test_x conftest$ac_exeext; then
8004 ac_cv_func_pcap_datalink_val_to_description=yes
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_func_pcap_datalink_val_to_description=no
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013 conftest$ac_exeext conftest.$ac_ext
8015 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8016 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
8017 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8025 case " $LIBOBJS " in
8026 *" dlnames.$ac_objext "* ) ;;
8027 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8037 case " $LIBOBJS " in
8038 *" dlnames.$ac_objext "* ) ;;
8039 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8048 for ac_func in pcap_breakloop
8050 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
8051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8064 #define $ac_func innocuous_$ac_func
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func (); below.
8068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8069 <limits.h> exists even on freestanding compilers. */
8072 # include <limits.h>
8074 # include <assert.h>
8079 /* Override any GCC internal prototype to avoid an error.
8080 Use char because int might match the return type of a GCC
8081 builtin and then its argument prototype would still apply. */
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined __stub_$ac_func || defined __stub___$ac_func
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8105 *) ac_try_echo
=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>conftest.er1
8110 grep -v '^ *+' conftest.er1
>conftest.err
8112 cat conftest.err
>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest
$ac_exeext &&
8118 $as_test_x conftest
$ac_exeext; then
8119 eval "$as_ac_var=yes"
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8124 eval "$as_ac_var=no"
8127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8128 conftest
$ac_exeext conftest.
$ac_ext
8130 ac_res
=`eval echo '${'$as_ac_var'}'`
8131 { echo "$as_me:$LINENO: result: $ac_res" >&5
8132 echo "${ECHO_T}$ac_res" >&6; }
8133 if test `eval echo '${'$as_ac_var'}'` = yes; then
8134 cat >>confdefs.h
<<_ACEOF
8135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8143 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8144 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8155 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char pcap_dump_ftell (); below.
8159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8160 <limits.h> exists even on freestanding compilers. */
8163 # include <limits.h>
8165 # include <assert.h>
8168 #undef pcap_dump_ftell
8170 /* Override any GCC internal prototype to avoid an error.
8171 Use char because int might match the return type of a GCC
8172 builtin and then its argument prototype would still apply. */
8176 char pcap_dump_ftell ();
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8187 return pcap_dump_ftell ();
8192 rm -f conftest.
$ac_objext conftest
$ac_exeext
8193 if { (ac_try
="$ac_link"
8195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_link") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest$ac_exeext &&
8209 $as_test_x conftest$ac_exeext; then
8210 ac_cv_func_pcap_dump_ftell=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_func_pcap_dump_ftell=no
8218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8219 conftest$ac_exeext conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8222 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8223 if test $ac_cv_func_pcap_dump_ftell = yes; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_PCAP_DUMP_FTELL 1
8231 case " $LIBOBJS " in
8232 *" pcap_dump_ftell.$ac_objext "* ) ;;
8233 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8243 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8244 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8246 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8247 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8248 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8249 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8250 # it does not ship with a libc symbol "inet_ntop()", it ships with
8251 # "_inet_ntop()", and has a #define macro in one of the system headers
8254 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8255 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/socket.h>
8264 #include <netinet/in.h>
8265 #include <arpa/inet.h>
8269 char src[4], dst[128];
8270 inet_ntop(AF_INET, src, dst, sizeof(dst));
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8279 *) ac_try_echo
=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1
>conftest.err
8286 cat conftest.err
>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest
$ac_exeext &&
8292 $as_test_x conftest
$ac_exeext; then
8293 { echo "$as_me:$LINENO: result: yes" >&5
8294 echo "${ECHO_T}yes" >&6; }
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.
$ac_ext >&5
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8301 case " $LIBOBJS " in
8302 *" inet_ntop.$ac_objext "* ) ;;
8303 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8310 conftest
$ac_exeext conftest.
$ac_ext
8311 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8312 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8313 cat >conftest.
$ac_ext <<_ACEOF
8316 cat confdefs.h
>>conftest.
$ac_ext
8317 cat >>conftest.
$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/socket.h>
8321 #include <netinet/in.h>
8322 #include <arpa/inet.h>
8326 char src[128], dst[4];
8327 inet_pton(AF_INET, src, dst);
8332 rm -f conftest.
$ac_objext conftest
$ac_exeext
8333 if { (ac_try
="$ac_link"
8335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest$ac_exeext &&
8349 $as_test_x conftest$ac_exeext; then
8350 { echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6; }
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 { echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6; }
8358 case " $LIBOBJS " in
8359 *" inet_pton.$ac_objext "* ) ;;
8360 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8369 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 #include <sys/types.h>
8377 #include <netinet/in.h>
8378 #include <arpa/inet.h>
8384 inet_aton(src, &dst);
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest
$ac_exeext &&
8406 $as_test_x conftest
$ac_exeext; then
8407 { echo "$as_me:$LINENO: result: yes" >&5
8408 echo "${ECHO_T}yes" >&6; }
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.
$ac_ext >&5
8413 { echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6; }
8415 case " $LIBOBJS " in
8416 *" inet_aton.$ac_objext "* ) ;;
8417 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8423 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8424 conftest
$ac_exeext conftest.
$ac_ext
8427 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8429 # You are in a twisty little maze of UN*Xes, all different.
8430 # Some might not have ether_ntohost().
8431 # Some might have it, but not declare it in any header file.
8432 # Some might have it, but declare it in <netinet/if_ether.h>.
8433 # Some might have it, but declare it in <netinet/ether.h>
8434 # (And some might have it but document it as something declared in
8435 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8437 # Before you is a C compiler.
8440 for ac_func
in ether_ntohost
8442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8445 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 cat >conftest.
$ac_ext <<_ACEOF
8451 cat confdefs.h
>>conftest.
$ac_ext
8452 cat >>conftest.
$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8456 #define $ac_func innocuous_$ac_func
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char $ac_func (); below.
8460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8461 <limits.h> exists even on freestanding compilers. */
8464 # include <limits.h>
8466 # include <assert.h>
8471 /* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined __stub_$ac_func || defined __stub___$ac_func
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext
8494 if { (ac_try
="$ac_link"
8496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext &&
8510 $as_test_x conftest$ac_exeext; then
8511 eval "$as_ac_var=yes"
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 eval "$as_ac_var=no"
8519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520 conftest$ac_exeext conftest.$ac_ext
8522 ac_res=`eval echo '${'$as_ac_var'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525 if test `eval echo '${'$as_ac_var'}'` = yes; then
8526 cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8530 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8531 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8532 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 if test "$cross_compiling" = yes; then
8537 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8547 #include <sys/types.h>
8548 #include <sys/param.h>
8549 #include <sys/socket.h>
8552 main(int argc, char **argv)
8554 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8555 char name[MAXHOSTNAMELEN];
8557 ether_ntohost(name, (struct ether_addr *)ea);
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8566 *) ac_try_echo
=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_buggy_ether_ntohost=no
8584 echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_buggy_ether_ntohost=yes
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8596 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8597 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8598 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8600 cat >>confdefs.h <<\_ACEOF
8601 #define USE_ETHER_NTOHOST 1
8609 if test "$ac_cv_func_ether_ntohost" = yes -a \
8610 "$ac_cv_buggy_ether_ntohost" = "no"; then
8612 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8614 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8616 # Yes. Does it declare ether_ntohost()?
8618 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8619 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8620 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8630 #include <sys/types.h>
8631 #include <sys/socket.h>
8632 #include <netinet/in.h>
8633 #include <arpa/inet.h>
8637 #include <netinet/if_ether.h>
8643 #ifndef ether_ntohost
8644 (void) ether_ntohost;
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8655 *) ac_try_echo
=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.
$ac_objext; then
8668 ac_cv_have_decl_ether_ntohost
=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.
$ac_ext >&5
8673 ac_cv_have_decl_ether_ntohost
=no
8676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8678 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8679 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8680 if test $ac_cv_have_decl_ether_ntohost = yes; then
8683 cat >>confdefs.h
<<\_ACEOF
8684 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8694 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8696 # No, how about <netinet/ether.h>, as on Linux?
8699 for ac_header
in netinet
/ether.h
8701 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 ac_res
=`eval echo '${'$as_ac_Header'}'`
8709 { echo "$as_me:$LINENO: result: $ac_res" >&5
8710 echo "${ECHO_T}$ac_res" >&6; }
8712 # Is the header compilable?
8713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8715 cat >conftest.
$ac_ext <<_ACEOF
8718 cat confdefs.h
>>conftest.
$ac_ext
8719 cat >>conftest.
$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <$ac_header>
8724 rm -f conftest.
$ac_objext
8725 if { (ac_try
="$ac_compile"
8727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 ac_header_compiler=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_header_compiler=no
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751 echo "${ECHO_T}$ac_header_compiler" >&6; }
8753 # Is the header present?
8754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <$ac_header>
8764 if { (ac_try="$ac_cpp conftest.$ac_ext"
8766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8767 *) ac_try_echo
=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1
>conftest.err
8774 cat conftest.err
>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } >/dev
/null
&& {
8777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8780 ac_header_preproc
=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.
$ac_ext >&5
8785 ac_header_preproc
=no
8788 rm -f conftest.err conftest.
$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8790 echo "${ECHO_T}$ac_header_preproc" >&6; }
8792 # So? What about this header?
8793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8799 ac_header_preproc
=yes
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8819 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 eval "$as_ac_Header=\$ac_header_preproc"
8824 ac_res
=`eval echo '${'$as_ac_Header'}'`
8825 { echo "$as_me:$LINENO: result: $ac_res" >&5
8826 echo "${ECHO_T}$ac_res" >&6; }
8829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8830 cat >>confdefs.h
<<_ACEOF
8831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8838 if test "$ac_cv_header_netinet_ether_h" = yes; then
8840 # We have it - does it declare ether_ntohost()?
8841 # Unset ac_cv_have_decl_ether_ntohost so we don't
8842 # treat the previous failure as a cached value and
8843 # suppress the next test.
8845 unset ac_cv_have_decl_ether_ntohost
8846 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8847 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8848 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 cat >conftest.
$ac_ext <<_ACEOF
8854 cat confdefs.h
>>conftest.
$ac_ext
8855 cat >>conftest.
$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8858 #include <netinet/ether.h>
8864 #ifndef ether_ntohost
8865 (void) ether_ntohost;
8872 rm -f conftest.
$ac_objext
8873 if { (ac_try
="$ac_compile"
8875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_have_decl_ether_ntohost=yes
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_cv_have_decl_ether_ntohost=no
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8900 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8901 if test $ac_cv_have_decl_ether_ntohost = yes; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8914 # Is ether_ntohost() declared?
8916 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8918 # No, we'll have to declare it ourselves.
8919 # Do we have "struct ether_addr"?
8921 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8922 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8923 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 #include <sys/types.h>
8934 #include <sys/socket.h>
8935 #include <netinet/in.h>
8936 #include <arpa/inet.h>
8940 #include <netinet/if_ether.h>
8943 typedef struct ether_addr ac__type_new_;
8947 if ((ac__type_new_ *) 0)
8949 if (sizeof (ac__type_new_))
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8959 *) ac_try_echo
=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1
>conftest.err
8966 cat conftest.err
>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.
$ac_objext; then
8972 ac_cv_type_struct_ether_addr
=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 ac_cv_type_struct_ether_addr
=no
8980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8982 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8983 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8984 if test $ac_cv_type_struct_ether_addr = yes; then
8986 cat >>confdefs.h
<<_ACEOF
8987 #define HAVE_STRUCT_ETHER_ADDR 1
8994 cat >>confdefs.h
<<\_ACEOF
8995 #define HAVE_DECL_ETHER_NTOHOST 0
9000 cat >>confdefs.h
<<\_ACEOF
9001 #define HAVE_DECL_ETHER_NTOHOST 1
9007 # libdlpi is needed for Solaris 11 and later.
9008 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
9009 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
9010 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 ac_check_lib_save_LIBS
=$LIBS
9014 LIBS
="-ldlpi -L/lib $LIBS"
9015 cat >conftest.
$ac_ext <<_ACEOF
9018 cat confdefs.h
>>conftest.
$ac_ext
9019 cat >>conftest.
$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9032 return dlpi_walk ();
9037 rm -f conftest.
$ac_objext conftest
$ac_exeext
9038 if { (ac_try
="$ac_link"
9040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_link") 2>conftest.er1
9046 grep -v '^ *+' conftest.er1 >conftest.err
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } && {
9051 test -z "$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9053 } && test -s conftest$ac_exeext &&
9054 $as_test_x conftest$ac_exeext; then
9055 ac_cv_lib_dlpi_dlpi_walk=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9060 ac_cv_lib_dlpi_dlpi_walk=no
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
9068 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
9069 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
9070 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
9075 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9076 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9077 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 # include <sys/types.h>
9088 # include <sys/socket.h>
9092 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9101 *) ac_try_echo
=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.
$ac_objext; then
9114 ac_cv_sockaddr_has_sa_len
=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.
$ac_ext >&5
9119 ac_cv_sockaddr_has_sa_len
=no
9122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9125 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9126 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9127 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9128 cat >>confdefs.h
<<\_ACEOF
9129 #define HAVE_SOCKADDR_SA_LEN 1
9134 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9135 missing_includes
=yes
9139 # Do we have the new open API? Check for pcap_create, and assume that,
9140 # if we do, we also have pcap_activate() and the other new routines
9141 # introduced in libpcap 1.0.0.
9144 for ac_func
in pcap_create
9146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9149 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 cat >conftest.
$ac_ext <<_ACEOF
9155 cat confdefs.h
>>conftest.
$ac_ext
9156 cat >>conftest.
$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9160 #define $ac_func innocuous_$ac_func
9162 /* System header to define __stub macros and hopefully few prototypes,
9163 which can conflict with char $ac_func (); below.
9164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165 <limits.h> exists even on freestanding compilers. */
9168 # include <limits.h>
9170 # include <assert.h>
9175 /* Override any GCC internal prototype to avoid an error.
9176 Use char because int might match the return type of a GCC
9177 builtin and then its argument prototype would still apply. */
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined __stub_$ac_func || defined __stub___$ac_func
9197 rm -f conftest.
$ac_objext conftest
$ac_exeext
9198 if { (ac_try
="$ac_link"
9200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_link") 2>conftest.er1
9206 grep -v '^ *+' conftest.er1 >conftest.err
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && {
9211 test -z "$ac_c_werror_flag" ||
9212 test ! -s conftest.err
9213 } && test -s conftest$ac_exeext &&
9214 $as_test_x conftest$ac_exeext; then
9215 eval "$as_ac_var=yes"
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 eval "$as_ac_var=no"
9223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224 conftest$ac_exeext conftest.$ac_ext
9226 ac_res=`eval echo '${'$as_ac_var'}'`
9227 { echo "$as_me:$LINENO: result: $ac_res" >&5
9228 echo "${ECHO_T}$ac_res" >&6; }
9229 if test `eval echo '${'$as_ac_var'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9237 if test $ac_cv_func_pcap_create = "yes" ; then
9239 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9240 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9243 for ac_func in pcap_set_tstamp_type
9245 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259 #define $ac_func innocuous_$ac_func
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9267 # include <limits.h>
9269 # include <assert.h>
9274 /* Override any GCC internal prototype to avoid an error.
9275 Use char because int might match the return type of a GCC
9276 builtin and then its argument prototype would still apply. */
9281 /* The GNU C library defines this for functions which it implements
9282 to always fail with ENOSYS. Some functions are actually named
9283 something starting with __ and the normal name is an alias. */
9284 #if defined __stub_$ac_func || defined __stub___$ac_func
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9300 *) ac_try_echo
=$ac_try;;
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>conftest.er1
9305 grep -v '^ *+' conftest.er1
>conftest.err
9307 cat conftest.err
>&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest
$ac_exeext &&
9313 $as_test_x conftest
$ac_exeext; then
9314 eval "$as_ac_var=yes"
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.
$ac_ext >&5
9319 eval "$as_ac_var=no"
9322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9323 conftest
$ac_exeext conftest.
$ac_ext
9325 ac_res
=`eval echo '${'$as_ac_var'}'`
9326 { echo "$as_me:$LINENO: result: $ac_res" >&5
9327 echo "${ECHO_T}$ac_res" >&6; }
9328 if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h
<<_ACEOF
9330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9341 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9343 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9346 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 cat >conftest.
$ac_ext <<_ACEOF
9352 cat confdefs.h
>>conftest.
$ac_ext
9353 cat >>conftest.
$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9357 #define $ac_func innocuous_$ac_func
9359 /* System header to define __stub macros and hopefully few prototypes,
9360 which can conflict with char $ac_func (); below.
9361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362 <limits.h> exists even on freestanding compilers. */
9365 # include <limits.h>
9367 # include <assert.h>
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9379 /* The GNU C library defines this for functions which it implements
9380 to always fail with ENOSYS. Some functions are actually named
9381 something starting with __ and the normal name is an alias. */
9382 #if defined __stub_$ac_func || defined __stub___$ac_func
9394 rm -f conftest.
$ac_objext conftest
$ac_exeext
9395 if { (ac_try
="$ac_link"
9397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext &&
9411 $as_test_x conftest$ac_exeext; then
9412 eval "$as_ac_var=yes"
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 eval "$as_ac_var=no"
9420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 conftest$ac_exeext conftest.$ac_ext
9423 ac_res=`eval echo '${'$as_ac_var'}'`
9424 { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9434 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9435 savedcppflags="$CPPFLAGS"
9436 CPPFLAGS="$CPPFLAGS $V_INCLS"
9437 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9438 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9439 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9450 typedef pcap_if_t ac__type_new_;
9454 if ((ac__type_new_ *) 0)
9456 if (sizeof (ac__type_new_))
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9466 *) ac_try_echo
=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9471 grep -v '^ *+' conftest.er1
>conftest.err
9473 cat conftest.err
>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.
$ac_objext; then
9479 ac_cv_type_pcap_if_t
=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.
$ac_ext >&5
9484 ac_cv_type_pcap_if_t
=no
9487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9490 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9491 if test $ac_cv_type_pcap_if_t = yes; then
9493 cat >>confdefs.h
<<_ACEOF
9494 #define HAVE_PCAP_IF_T 1
9500 CPPFLAGS
="$savedcppflags"
9503 if test $ac_cv_func_pcap_lib_version = "no" ; then
9504 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9505 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9506 cat >conftest.
$ac_ext <<_ACEOF
9509 cat confdefs.h
>>conftest.
$ac_ext
9510 cat >>conftest.
$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9517 extern char pcap_version[];
9519 return (int)pcap_version;
9525 rm -f conftest.
$ac_objext conftest
$ac_exeext
9526 if { (ac_try
="$ac_link"
9528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_lbl_cv_pcap_version_defined=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_lbl_cv_pcap_version_defined=no
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9554 { echo "$as_me:$LINENO: result: yes" >&5
9555 echo "${ECHO_T}yes" >&6; }
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PCAP_VERSION 1
9562 { echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6; }
9566 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9567 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9579 extern int pcap_debug;
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9591 *) ac_try_echo
=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1
>conftest.err
9598 cat conftest.err
>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest
$ac_exeext &&
9604 $as_test_x conftest
$ac_exeext; then
9605 ac_lbl_cv_pcap_debug_defined
=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.
$ac_ext >&5
9610 ac_lbl_cv_pcap_debug_defined
=no
9613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9614 conftest
$ac_exeext conftest.
$ac_ext
9615 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9616 { echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6; }
9619 cat >>confdefs.h
<<\_ACEOF
9620 #define HAVE_PCAP_DEBUG 1
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9627 # OK, what about "yydebug"?
9629 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9630 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9650 rm -f conftest.
$ac_objext conftest
$ac_exeext
9651 if { (ac_try
="$ac_link"
9653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext &&
9667 $as_test_x conftest$ac_exeext; then
9668 ac_lbl_cv_yydebug_defined=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_lbl_cv_yydebug_defined=no
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9679 { echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6; }
9682 cat >>confdefs.h <<\_ACEOF
9683 #define HAVE_YYDEBUG 1
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9692 for ac_func in bpf_dump
9694 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define $ac_func innocuous_$ac_func
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char $ac_func (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9716 # include <limits.h>
9718 # include <assert.h>
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9730 /* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733 #if defined __stub_$ac_func || defined __stub___$ac_func
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9749 *) ac_try_echo
=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1
>conftest.err
9756 cat conftest.err
>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest
$ac_exeext &&
9762 $as_test_x conftest
$ac_exeext; then
9763 eval "$as_ac_var=yes"
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.
$ac_ext >&5
9768 eval "$as_ac_var=no"
9771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9772 conftest
$ac_exeext conftest.
$ac_ext
9774 ac_res
=`eval echo '${'$as_ac_var'}'`
9775 { echo "$as_me:$LINENO: result: $ac_res" >&5
9776 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_var'}'` = yes; then
9778 cat >>confdefs.h
<<_ACEOF
9779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783 case " $LIBOBJS " in
9784 *" $ac_func.$ac_objext "* ) ;;
9785 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9794 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9798 # Assume V7/BSD convention for man pages (file formats in section 5,
9799 # miscellaneous info in section 7).
9807 cat >>confdefs.h
<<\_ACEOF
9815 # Use System V conventions for man pages.
9825 # Use System V conventions for man pages.
9835 # Use System V conventions for man pages.
9845 # Use System V conventions for man pages.
9852 if test -f /dev
/bpf0
; then
9857 for ac_header
in sys
/bitypes.h
9859 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_res
=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9873 cat >conftest.
$ac_ext <<_ACEOF
9876 cat confdefs.h
>>conftest.
$ac_ext
9877 cat >>conftest.
$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9882 rm -f conftest.
$ac_objext
9883 if { (ac_try
="$ac_compile"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_compiler=no
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <$ac_header>
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9925 *) ac_try_echo
=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1
>conftest.err
9932 cat conftest.err
>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev
/null
&& {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9938 ac_header_preproc
=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_header_preproc
=no
9946 rm -f conftest.err conftest.
$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc
=yes
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 eval "$as_ac_Header=\$ac_header_preproc"
9982 ac_res
=`eval echo '${'$as_ac_Header'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h
<<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9997 { echo "$as_me:$LINENO: checking for int8_t" >&5
9998 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9999 if test "${ac_cv_type_int8_t+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >conftest.
$ac_ext <<_ACEOF
10005 cat confdefs.h
>>conftest.
$ac_ext
10006 cat >>conftest.
$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 #ifdef HAVE_SYS_BITYPES_H
10010 #include <sys/bitypes.h>
10013 typedef int8_t ac__type_new_;
10017 if ((ac__type_new_ *) 0)
10019 if (sizeof (ac__type_new_))
10025 rm -f conftest.
$ac_objext
10026 if { (ac_try
="$ac_compile"
10027 case "(($ac_try" in
10028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_compile") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
10042 ac_cv_type_int8_t=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_type_int8_t=no
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10053 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
10054 if test $ac_cv_type_int8_t = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define int8_t signed char
10064 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
10065 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
10066 if test "${ac_cv_type_u_int8_t+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 #ifdef HAVE_SYS_BITYPES_H
10077 #include <sys/bitypes.h>
10080 typedef u_int8_t ac__type_new_;
10084 if ((ac__type_new_ *) 0)
10086 if (sizeof (ac__type_new_))
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10096 *) ac_try_echo
=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1
>conftest.err
10103 cat conftest.err
>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.
$ac_objext; then
10109 ac_cv_type_u_int8_t
=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.
$ac_ext >&5
10114 ac_cv_type_u_int8_t
=no
10117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10119 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10120 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10121 if test $ac_cv_type_u_int8_t = yes; then
10125 cat >>confdefs.h
<<\_ACEOF
10126 #define u_int8_t unsigned char
10131 { echo "$as_me:$LINENO: checking for int16_t" >&5
10132 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10133 if test "${ac_cv_type_int16_t+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 cat >conftest.
$ac_ext <<_ACEOF
10139 cat confdefs.h
>>conftest.
$ac_ext
10140 cat >>conftest.
$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 typedef int16_t ac__type_new_;
10147 if ((ac__type_new_ *) 0)
10149 if (sizeof (ac__type_new_))
10155 rm -f conftest.
$ac_objext
10156 if { (ac_try
="$ac_compile"
10157 case "(($ac_try" in
10158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_compile") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest.$ac_objext; then
10172 ac_cv_type_int16_t=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_type_int16_t=no
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10183 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10184 if test $ac_cv_type_int16_t = yes; then
10188 cat >>confdefs.h <<\_ACEOF
10189 #define int16_t short
10192 $ac_includes_default
10193 #ifdef HAVE_SYS_BITYPES_H
10194 #include <sys/bitypes.h>
10198 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10199 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10200 if test "${ac_cv_type_u_int16_t+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 $ac_includes_default
10210 #ifdef HAVE_SYS_BITYPES_H
10211 #include <sys/bitypes.h>
10214 typedef u_int16_t ac__type_new_;
10218 if ((ac__type_new_ *) 0)
10220 if (sizeof (ac__type_new_))
10226 rm -f conftest.$ac_objext
10227 if { (ac_try="$ac_compile"
10228 case "(($ac_try" in
10229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10230 *) ac_try_echo
=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_compile") 2>conftest.er1
10235 grep -v '^ *+' conftest.er1
>conftest.err
10237 cat conftest.err
>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest.
$ac_objext; then
10243 ac_cv_type_u_int16_t
=yes
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.
$ac_ext >&5
10248 ac_cv_type_u_int16_t
=no
10251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10253 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10254 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10255 if test $ac_cv_type_u_int16_t = yes; then
10259 cat >>confdefs.h
<<\_ACEOF
10260 #define u_int16_t unsigned short
10265 { echo "$as_me:$LINENO: checking for int32_t" >&5
10266 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10267 if test "${ac_cv_type_int32_t+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 cat >conftest.
$ac_ext <<_ACEOF
10273 cat confdefs.h
>>conftest.
$ac_ext
10274 cat >>conftest.
$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276 $ac_includes_default
10277 #ifdef HAVE_SYS_BITYPES_H
10278 #include <sys/bitypes.h>
10281 typedef int32_t ac__type_new_;
10285 if ((ac__type_new_ *) 0)
10287 if (sizeof (ac__type_new_))
10293 rm -f conftest.
$ac_objext
10294 if { (ac_try
="$ac_compile"
10295 case "(($ac_try" in
10296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_compile") 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest.$ac_objext; then
10310 ac_cv_type_int32_t=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_cv_type_int32_t=no
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10321 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10322 if test $ac_cv_type_int32_t = yes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define int32_t int
10332 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10333 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10334 if test "${ac_cv_type_u_int32_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 $ac_includes_default
10344 #ifdef HAVE_SYS_BITYPES_H
10345 #include <sys/bitypes.h>
10348 typedef u_int32_t ac__type_new_;
10352 if ((ac__type_new_ *) 0)
10354 if (sizeof (ac__type_new_))
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10364 *) ac_try_echo
=$ac_try;;
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_compile") 2>conftest.er1
10369 grep -v '^ *+' conftest.er1
>conftest.err
10371 cat conftest.err
>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest.
$ac_objext; then
10377 ac_cv_type_u_int32_t
=yes
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.
$ac_ext >&5
10382 ac_cv_type_u_int32_t
=no
10385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10387 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10388 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10389 if test $ac_cv_type_u_int32_t = yes; then
10393 cat >>confdefs.h
<<\_ACEOF
10394 #define u_int32_t unsigned int
10399 { echo "$as_me:$LINENO: checking for int64_t" >&5
10400 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10401 if test "${ac_cv_type_int64_t+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 cat >conftest.
$ac_ext <<_ACEOF
10407 cat confdefs.h
>>conftest.
$ac_ext
10408 cat >>conftest.
$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10411 #ifdef HAVE_SYS_BITYPES_H
10412 #include <sys/bitypes.h>
10415 typedef int64_t ac__type_new_;
10419 if ((ac__type_new_ *) 0)
10421 if (sizeof (ac__type_new_))
10427 rm -f conftest.
$ac_objext
10428 if { (ac_try
="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10436 grep -v '^ *+' conftest.er1 >conftest.err
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_cv_type_int64_t=yes
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_type_int64_t=no
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10455 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10456 if test $ac_cv_type_int64_t = yes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define int64_t long long
10466 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10467 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10468 if test "${ac_cv_type_u_int64_t+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 #ifdef HAVE_SYS_BITYPES_H
10479 #include <sys/bitypes.h>
10482 typedef u_int64_t ac__type_new_;
10486 if ((ac__type_new_ *) 0)
10488 if (sizeof (ac__type_new_))
10494 rm -f conftest.$ac_objext
10495 if { (ac_try="$ac_compile"
10496 case "(($ac_try" in
10497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10498 *) ac_try_echo
=$ac_try;;
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_compile") 2>conftest.er1
10503 grep -v '^ *+' conftest.er1
>conftest.err
10505 cat conftest.err
>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && {
10508 test -z "$ac_c_werror_flag" ||
10509 test ! -s conftest.err
10510 } && test -s conftest.
$ac_objext; then
10511 ac_cv_type_u_int64_t
=yes
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.
$ac_ext >&5
10516 ac_cv_type_u_int64_t
=no
10519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10521 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10522 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10523 if test $ac_cv_type_u_int64_t = yes; then
10527 cat >>confdefs.h
<<\_ACEOF
10528 #define u_int64_t unsigned long long
10535 # We can't just check for <inttypes.h> - some systems have one that
10536 # doesn't define all the PRI[doxu]64 macros.
10539 for ac_header
in inttypes.h
10541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 ac_res
=`eval echo '${'$as_ac_Header'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550 echo "${ECHO_T}$ac_res" >&6; }
10552 # Is the header compilable?
10553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10555 cat >conftest.
$ac_ext <<_ACEOF
10558 cat confdefs.h
>>conftest.
$ac_ext
10559 cat >>conftest.
$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 #include <$ac_header>
10564 rm -f conftest.
$ac_objext
10565 if { (ac_try
="$ac_compile"
10566 case "(($ac_try" in
10567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest.$ac_objext; then
10581 ac_header_compiler=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_header_compiler=no
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591 echo "${ECHO_T}$ac_header_compiler" >&6; }
10593 # Is the header present?
10594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <$ac_header>
10604 if { (ac_try="$ac_cpp conftest.$ac_ext"
10605 case "(($ac_try" in
10606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10607 *) ac_try_echo
=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1
>conftest.err
10614 cat conftest.err
>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } >/dev
/null
&& {
10617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10620 ac_header_preproc
=yes
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.
$ac_ext >&5
10625 ac_header_preproc
=no
10628 rm -f conftest.err conftest.
$ac_ext
10629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10630 echo "${ECHO_T}$ac_header_preproc" >&6; }
10632 # So? What about this header?
10633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10639 ac_header_preproc
=yes
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 eval "$as_ac_Header=\$ac_header_preproc"
10664 ac_res
=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10670 cat >>confdefs.h
<<_ACEOF
10671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 # OK, we have inttypes.h, but does it define those macros?
10677 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10678 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10679 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10687 #include <inttypes.h>
10689 #include <sys/types.h>
10690 #ifdef HAVE_SYS_BITYPES_H
10691 #include <sys/bitypes.h>
10696 printf("%" PRId64 "\n", (u_int64_t)1);
10697 printf("%" PRIo64 "\n", (u_int64_t)1);
10698 printf("%" PRIx64 "\n", (u_int64_t)1);
10699 printf("%" PRIu64 "\n", (u_int64_t)1);
10704 rm -f conftest.
$ac_objext
10705 if { (ac_try
="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10722 { echo "$as_me:$LINENO: result: yes" >&5
10723 echo "${ECHO_T}yes" >&6; }
10724 ac_lbl_inttypes_h_defines_formats=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10733 ac_lbl_inttypes_h_defines_formats=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 # We don't have inttypes.h, so it obviously can't define those
10745 ac_lbl_inttypes_h_defines_formats=no
10751 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10753 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10754 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10755 if test "$cross_compiling" = yes; then
10756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10757 See \`config.log
' for more details." >&5
10758 echo "$as_me: error: cannot run test program while cross compiling
10759 See \`config.log' for more details.
" >&2;}
10760 { (exit 1); exit 1; }; }
10762 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10770 # ifdef HAVE_INTTYPES_H
10771 #include <inttypes.h>
10773 # ifdef HAVE_SYS_BITYPES_H
10774 #include <sys/bitypes.h>
10777 #include <sys/types.h>
10783 sprintf(strbuf, "%016lx
", t << 32);
10784 if (strcmp(strbuf, "0000000100000000") == 0)
10792 rm -f conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>&5
10801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10803 { (case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_try") 2>&5
10810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10811 (exit $ac_status); }; }; then
10814 cat >>confdefs.h <<\_ACEOF
10815 #define PRId64 "ld
"
10819 cat >>confdefs.h <<\_ACEOF
10820 #define PRIo64 "lo
"
10824 cat >>confdefs.h <<\_ACEOF
10825 #define PRIx64 "lx
"
10829 cat >>confdefs.h <<\_ACEOF
10830 #define PRIu64 "lu
"
10833 { echo "$as_me:$LINENO: result
: yes" >&5
10834 echo "${ECHO_T}yes" >&6; }
10837 echo "$as_me: program exited with status
$ac_status" >&5
10838 echo "$as_me: failed program was
:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ( exit $ac_status )
10843 { echo "$as_me:$LINENO: result
: no
" >&5
10844 echo "${ECHO_T}no
" >&6; }
10847 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
10848 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
10849 if test "$cross_compiling" = yes; then
10850 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
10851 See \
`config.log' for more details." >&5
10852 echo "$as_me: error: cannot run test program while cross compiling
10853 See \`config.log
' for more details." >&2;}
10854 { (exit 1); exit 1; }; }
10856 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 # ifdef HAVE_INTTYPES_H
10865 #include <inttypes.h>
10867 # ifdef HAVE_SYS_BITYPES_H
10868 #include <sys/bitypes.h>
10871 #include <sys/types.h>
10877 sprintf(strbuf, "%016llx", t << 32);
10878 if (strcmp(strbuf, "0000000100000000") == 0)
10886 rm -f conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_link") 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define PRId64 "lld"
10913 cat >>confdefs.h <<\_ACEOF
10914 #define PRIo64 "llo"
10918 cat >>confdefs.h <<\_ACEOF
10919 #define PRIx64 "llx"
10923 cat >>confdefs.h <<\_ACEOF
10924 #define PRIu64 "llu"
10927 { echo "$as_me:$LINENO: result: yes" >&5
10928 echo "${ECHO_T}yes" >&6; }
10931 echo "$as_me: program exited with status $ac_status" >&5
10932 echo "$as_me: failed program was:" >&5
10933 sed 's
/^
/|
/' conftest.$ac_ext >&5
10935 ( exit $ac_status )
10937 { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10941 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10942 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10943 if test "$cross_compiling" = yes; then
10944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10945 See \`config.log' for more details.
" >&5
10946 echo "$as_me: error
: cannot run
test program
while cross compiling
10947 See \
`config.log' for more details." >&2;}
10948 { (exit 1); exit 1; }; }
10950 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10958 # ifdef HAVE_INTTYPES_H
10959 #include <inttypes.h>
10961 # ifdef HAVE_SYS_BITYPES_H
10962 #include <sys/bitypes.h>
10965 #include <sys/types.h>
10971 sprintf(strbuf, "%016Lx", t << 32);
10972 if (strcmp(strbuf, "0000000100000000") == 0)
10980 rm -f conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10984 *) ac_try_echo
=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_link") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10991 { (case "(($ac_try" in
10992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define PRId64 "Ld"
11007 cat >>confdefs.h <<\_ACEOF
11008 #define PRIo64 "Lo"
11012 cat >>confdefs.h <<\_ACEOF
11013 #define PRIx64 "Lx"
11017 cat >>confdefs.h <<\_ACEOF
11018 #define PRIu64 "Lu"
11021 { echo "$as_me:$LINENO: result: yes" >&5
11022 echo "${ECHO_T}yes" >&6; }
11025 echo "$as_me: program exited with status $ac_status" >&5
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ( exit $ac_status )
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11035 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11036 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
11037 if test "$cross_compiling" = yes; then
11038 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11039 See \`config.log
' for more details." >&5
11040 echo "$as_me: error: cannot run test program while cross compiling
11041 See \`config.log' for more details.
" >&2;}
11042 { (exit 1); exit 1; }; }
11044 cat >conftest.$ac_ext <<_ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11052 # ifdef HAVE_INTTYPES_H
11053 #include <inttypes.h>
11055 # ifdef HAVE_SYS_BITYPES_H
11056 #include <sys/bitypes.h>
11059 #include <sys/types.h>
11065 sprintf(strbuf, "%016qx
", t << 32);
11066 if (strcmp(strbuf, "0000000100000000") == 0)
11074 rm -f conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_link") 2>&5
11083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11093 (exit $ac_status); }; }; then
11096 cat >>confdefs.h <<\_ACEOF
11097 #define PRId64 "qd
"
11101 cat >>confdefs.h <<\_ACEOF
11102 #define PRIo64 "qo
"
11106 cat >>confdefs.h <<\_ACEOF
11107 #define PRIx64 "qx
"
11111 cat >>confdefs.h <<\_ACEOF
11112 #define PRIu64 "qu
"
11115 { echo "$as_me:$LINENO: result
: yes" >&5
11116 echo "${ECHO_T}yes" >&6; }
11119 echo "$as_me: program exited with status
$ac_status" >&5
11120 echo "$as_me: failed program was
:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ( exit $ac_status )
11125 { echo "$as_me:$LINENO: result
: no
" >&5
11126 echo "${ECHO_T}no
" >&6; }
11128 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
11129 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
11130 { (exit 1); exit 1; }; }
11134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11166 # Check for some headers introduced in later versions of libpcap
11167 # and used by some printers.
11169 # Those headers use the {u_}intN_t types, so we must do this after
11170 # we check for what's needed to get them defined.
11172 savedcppflags="$CPPFLAGS"
11173 CPPFLAGS="$CPPFLAGS $V_INCLS"
11175 for ac_header in pcap/bluetooth.h
11177 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11178 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11179 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached
) $ECHO_C" >&6
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 #include <tcpdump-stdinc.h>
11191 #include <$ac_header>
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11202 grep -v '^ *+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 eval "$as_ac_Header=yes"
11212 echo "$as_me: failed program was
:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 eval "$as_ac_Header=no
"
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 ac_res=`eval echo '${'$as_ac_Header'}'`
11221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11222 echo "${ECHO_T}$ac_res" >&6; }
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11233 for ac_header in pcap/usb.h
11235 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached
) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <tcpdump-stdinc.h>
11249 #include <$ac_header>
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 eval "$as_ac_Header=yes"
11270 echo "$as_me: failed program was
:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_Header=no
"
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11290 CPPFLAGS="$savedcppflags"
11292 if test -n "$ac_tool_prefix"; then
11293 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11295 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11296 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11297 if test "${ac_cv_prog_RANLIB+set}" = set; then
11298 echo $ECHO_N "(cached
) $ECHO_C" >&6
11300 if test -n "$RANLIB"; then
11301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11311 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11320 RANLIB=$ac_cv_prog_RANLIB
11321 if test -n "$RANLIB"; then
11322 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
11323 echo "${ECHO_T}$RANLIB" >&6; }
11325 { echo "$as_me:$LINENO: result
: no
" >&5
11326 echo "${ECHO_T}no
" >&6; }
11331 if test -z "$ac_cv_prog_RANLIB"; then
11332 ac_ct_RANLIB=$RANLIB
11333 # Extract the first word of "ranlib
", so it can be a program name with args.
11334 set dummy ranlib; ac_word=$2
11335 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11336 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11338 echo $ECHO_N "(cached
) $ECHO_C" >&6
11340 if test -n "$ac_ct_RANLIB"; then
11341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11351 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11361 if test -n "$ac_ct_RANLIB"; then
11362 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
11363 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11365 { echo "$as_me:$LINENO: result
: no
" >&5
11366 echo "${ECHO_T}no
" >&6; }
11369 if test "x
$ac_ct_RANLIB" = x; then
11372 case $cross_compiling:$ac_tool_warned in
11374 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
11375 whose name does not start with the
host triplet. If you think this
11376 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
11377 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
11378 whose name does not start with the
host triplet. If you think this
11379 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
11380 ac_tool_warned=yes ;;
11382 RANLIB=$ac_ct_RANLIB
11385 RANLIB="$ac_cv_prog_RANLIB"
11390 if test "${LBL_CFLAGS+set}" = set; then
11391 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11393 if test -f .devel ; then
11395 # Skip all the warning option stuff on some compilers.
11397 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
11399 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option
" >&5
11400 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option...
$ECHO_C" >&6; }
11401 save_CFLAGS="$CFLAGS"
11402 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11436 { echo "$as_me:$LINENO: result
: no
" >&5
11437 echo "${ECHO_T}no
" >&6; }
11439 # We're assuming this is clang, where
11440 # -Werror=unknown-warning-option is the appropriate
11441 # option to force the compiler to fail.
11443 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option
"
11446 echo "$as_me: failed program was
:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11450 { echo "$as_me:$LINENO: result
: yes" >&5
11451 echo "${ECHO_T}yes" >&6; }
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 CFLAGS="$save_CFLAGS"
11459 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wall option
" >&5
11460 echo $ECHO_N "checking whether the compiler supports the
-Wall option...
$ECHO_C" >&6; }
11461 save_CFLAGS="$CFLAGS"
11462 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_compile") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11491 (exit $ac_status); } && {
11492 test -z "$ac_c_werror_flag" ||
11493 test ! -s conftest.err
11494 } && test -s conftest.$ac_objext; then
11496 { echo "$as_me:$LINENO: result
: yes" >&5
11497 echo "${ECHO_T}yes" >&6; }
11498 CFLAGS="$save_CFLAGS"
11499 V_CCOPT="$V_CCOPT -Wall"
11502 echo "$as_me: failed program was
:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11506 { echo "$as_me:$LINENO: result
: no
" >&5
11507 echo "${ECHO_T}no
" >&6; }
11508 CFLAGS="$save_CFLAGS"
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wmissing-prototypes option
" >&5
11516 echo $ECHO_N "checking whether the compiler supports the
-Wmissing-prototypes option...
$ECHO_C" >&6; }
11517 save_CFLAGS="$CFLAGS"
11518 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11534 rm -f conftest.$ac_objext
11535 if { (ac_try="$ac_compile"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_compile") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.$ac_objext; then
11552 { echo "$as_me:$LINENO: result
: yes" >&5
11553 echo "${ECHO_T}yes" >&6; }
11554 CFLAGS="$save_CFLAGS"
11555 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11558 echo "$as_me: failed program was
:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11562 { echo "$as_me:$LINENO: result
: no
" >&5
11563 echo "${ECHO_T}no
" >&6; }
11564 CFLAGS="$save_CFLAGS"
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wstrict-prototypes option
" >&5
11572 echo $ECHO_N "checking whether the compiler supports the
-Wstrict-prototypes option...
$ECHO_C" >&6; }
11573 save_CFLAGS="$CFLAGS"
11574 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11599 grep -v '^ *+' conftest.er1 >conftest.err
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11603 (exit $ac_status); } && {
11604 test -z "$ac_c_werror_flag" ||
11605 test ! -s conftest.err
11606 } && test -s conftest.$ac_objext; then
11608 { echo "$as_me:$LINENO: result
: yes" >&5
11609 echo "${ECHO_T}yes" >&6; }
11610 CFLAGS="$save_CFLAGS"
11611 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11614 echo "$as_me: failed program was
:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11618 { echo "$as_me:$LINENO: result
: no
" >&5
11619 echo "${ECHO_T}no
" >&6; }
11620 CFLAGS="$save_CFLAGS"
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wwrite-strings option
" >&5
11628 echo $ECHO_N "checking whether the compiler supports the
-Wwrite-strings option...
$ECHO_C" >&6; }
11629 save_CFLAGS="$CFLAGS"
11630 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11631 cat >conftest.$ac_ext <<_ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_compile") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11659 (exit $ac_status); } && {
11660 test -z "$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 } && test -s conftest.$ac_objext; then
11664 { echo "$as_me:$LINENO: result
: yes" >&5
11665 echo "${ECHO_T}yes" >&6; }
11666 CFLAGS="$save_CFLAGS"
11667 V_CCOPT="$V_CCOPT -Wwrite-strings"
11670 echo "$as_me: failed program was
:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11674 { echo "$as_me:$LINENO: result
: no
" >&5
11675 echo "${ECHO_T}no
" >&6; }
11676 CFLAGS="$save_CFLAGS"
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wpointer-arith option
" >&5
11684 echo $ECHO_N "checking whether the compiler supports the
-Wpointer-arith option...
$ECHO_C" >&6; }
11685 save_CFLAGS="$CFLAGS"
11686 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11720 { echo "$as_me:$LINENO: result
: yes" >&5
11721 echo "${ECHO_T}yes" >&6; }
11722 CFLAGS="$save_CFLAGS"
11723 V_CCOPT="$V_CCOPT -Wpointer-arith"
11726 echo "$as_me: failed program was
:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11730 { echo "$as_me:$LINENO: result
: no
" >&5
11731 echo "${ECHO_T}no
" >&6; }
11732 CFLAGS="$save_CFLAGS"
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 { echo "$as_me:$LINENO: checking whether the compiler supports the
-W option
" >&5
11740 echo $ECHO_N "checking whether the compiler supports the
-W option...
$ECHO_C" >&6; }
11741 save_CFLAGS="$CFLAGS"
11742 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest.$ac_objext; then
11776 { echo "$as_me:$LINENO: result
: yes" >&5
11777 echo "${ECHO_T}yes" >&6; }
11778 CFLAGS="$save_CFLAGS"
11779 V_CCOPT="$V_CCOPT -W"
11782 echo "$as_me: failed program was
:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11786 { echo "$as_me:$LINENO: result
: no
" >&5
11787 echo "${ECHO_T}no
" >&6; }
11788 CFLAGS="$save_CFLAGS"
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies
" >&5
11797 echo $ECHO_N "checking whether the compiler supports generating dependencies...
$ECHO_C" >&6; }
11798 if test "$GCC" = yes ; then
11800 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11801 # though it's not); we assume that, in this case, the flag
11804 ac_lbl_dependency_flag="-M"
11807 # Not GCC or a compiler deemed to be GCC; what platform is
11808 # this? (We're assuming that if the compiler isn't GCC
11809 # it's the compiler from the vendor of the OS; that won't
11810 # necessarily be true for x86 platforms, where it might be
11811 # the Intel C compiler.)
11815 irix*|osf*|darwin*)
11817 # MIPS C for IRIX, DEC C, and clang all use -M.
11819 ac_lbl_dependency_flag="-M"
11826 ac_lbl_dependency_flag="-xM"
11831 # HP's older C compilers don't support this.
11832 # HP's newer C compilers support this with
11833 # either +M or +Make; the older compilers
11834 # interpret +M as something completely
11835 # different, so we use +Make so we don't
11836 # think it works with the older compilers.
11838 ac_lbl_dependency_flag="+Make
"
11843 # Not one of the above; assume no support for
11844 # generating dependencies.
11846 ac_lbl_dependency_flag=""
11852 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11853 # complain about it?
11855 # Note: clang doesn't seem to exit with an error status when handed
11856 # an unknown non-warning error, even if you pass it
11857 # -Werror=unknown-warning-option. However, it always supports
11858 # -M, so the fact that this test always succeeds with clang
11861 if test ! -z "$ac_lbl_dependency_flag"; then
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 int main(void) { return 0; }
11870 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11871 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11872 { echo "$as_me:$LINENO: result
: yes, with
$ac_lbl_dependency_flag" >&5
11873 echo "${ECHO_T}yes, with
$ac_lbl_dependency_flag" >&6; }
11874 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11875 MKDEP='${srcdir}/mkdep'
11877 { echo "$as_me:$LINENO: result
: no
" >&5
11878 echo "${ECHO_T}no
" >&6; }
11880 # We can't run mkdep, so have "make depend
" do
11887 { echo "$as_me:$LINENO: result
: no
" >&5
11888 echo "${ECHO_T}no
" >&6; }
11890 # We can't run mkdep, so have "make depend
" do
11898 if test "$GCC" = yes ; then
11899 if test "${LBL_CFLAGS+set}" != set; then
11900 if test "$ac_cv_prog_cc_g" = yes ; then
11901 V_CCOPT="-g $V_CCOPT"
11908 V_CCOPT="$V_CCOPT -n32"
11915 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11916 name="lbl
/os-
$os.h
"
11917 if test -f $name ; then
11918 ln -s $name os-proto.h
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_OS_PROTO_H 1
11925 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
11926 echo "$as_me: WARNING: can't
find $name" >&2;}
11930 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
11931 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
11932 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11933 echo $ECHO_N "(cached
) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11942 # include <sys/types.h>
11943 # include <sys/socket.h>
11947 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11952 rm -f conftest.$ac_objext
11953 if { (ac_try="$ac_compile"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_compile") 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11965 (exit $ac_status); } && {
11966 test -z "$ac_c_werror_flag" ||
11967 test ! -s conftest.err
11968 } && test -s conftest.$ac_objext; then
11969 ac_cv_lbl_sockaddr_has_sa_len=yes
11971 echo "$as_me: failed program was
:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ac_cv_lbl_sockaddr_has_sa_len=no
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11981 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11982 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_SOCKADDR_SA_LEN 1
11990 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
11991 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
11992 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11993 echo $ECHO_N "(cached
) $ECHO_C" >&6
11995 case "$host_cpu" in
11998 # These are CPU types where:
12000 # the CPU faults on an unaligned access, but at least some
12001 # OSes that support that CPU catch the fault and simulate
12002 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12003 # the simulation is slow, so we don't want to use it;
12005 # the CPU, I infer (from the old
12007 # XXX: should also check that they don't do weird things (like on arm)
12009 # comment) doesn't fault on unaligned accesses, but doesn't
12010 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12012 # for whatever reason, the test program doesn't work
12013 # (this has been claimed to be the case for several of those
12014 # CPUs - I don't know what the problem is; the problem
12015 # was reported as "the
test program dumps core
" for SuperH,
12016 # but that's what the test program is *supposed* to do -
12017 # it dumps core before it writes anything, so the test
12018 # for an empty output file should find an empty output
12019 # file and conclude that unaligned accesses don't work).
12021 # This run-time test won't work if you're cross-compiling, so
12022 # in order to support cross-compiling for a particular CPU,
12023 # we have to wire in the list of CPU types anyway, as far as
12024 # I know, so perhaps we should just have a set of CPUs on
12025 # which we know it doesn't work, a set of CPUs on which we
12026 # know it does work, and have the script just fail on other
12027 # cpu types and update it when such a failure occurs.
12029 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
12030 ac_cv_lbl_unaligned_fail=yes
12034 cat >conftest.c <<EOF
12035 # include <sys/types.h>
12036 # include <sys/wait.h>
12037 # include <stdio.h>
12038 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12043 /* avoid "core dumped
" message */
12049 pid = waitpid(pid, &status, 0);
12052 exit(!WIFEXITED(status));
12055 i = *(unsigned int *)&a[1];
12060 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12061 conftest.c $LIBS >/dev/null 2>&1
12062 if test ! -x conftest ; then
12063 ac_cv_lbl_unaligned_fail=yes
12065 ./conftest >conftest.out
12066 if test ! -s conftest.out ; then
12067 ac_cv_lbl_unaligned_fail=yes
12069 ac_cv_lbl_unaligned_fail=no
12072 rm -f -r conftest* core core.conftest
12077 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
12078 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
12079 if test $ac_cv_lbl_unaligned_fail = yes ; then
12081 cat >>confdefs.h <<\_ACEOF
12082 #define LBL_ALIGN 1
12088 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
12089 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
12090 if test "${ac_cv_var_h_errno+set}" = set; then
12091 echo $ECHO_N "(cached
) $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 # include <sys/types.h>
12101 # include <netdb.h>
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest.$ac_objext; then
12127 ac_cv_var_h_errno=yes
12129 echo "$as_me: failed program was
:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_cv_var_h_errno=no
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
12139 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12140 if test "$ac_cv_var_h_errno" = "yes"; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_H_ERRNO 1
12149 # Check for OpenSSL libcrypto
12150 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto
" >&5
12151 echo $ECHO_N "checking whether to use OpenSSL libcrypto...
$ECHO_C" >&6; }
12152 # Specify location for both includes and libraries.
12153 want_libcrypto=ifavailable
12155 # Check whether --with-crypto was given.
12156 if test "${with_crypto+set}" = set; then
12157 withval=$with_crypto;
12158 if test $withval = no
12161 { echo "$as_me:$LINENO: result
: no
" >&5
12162 echo "${ECHO_T}no
" >&6; }
12163 elif test $withval = yes
12166 { echo "$as_me:$LINENO: result
: yes" >&5
12167 echo "${ECHO_T}yes" >&6; }
12173 # Use libcrypto if it's present, otherwise don't.
12175 want_libcrypto=ifavailable
12176 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
12177 echo "${ECHO_T}yes, if available
" >&6; }
12181 if test "$want_libcrypto" != "no
"; then
12183 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
12184 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
12185 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12186 echo $ECHO_N "(cached
) $ECHO_C" >&6
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lcrypto $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12203 char DES_cbc_encrypt ();
12207 return DES_cbc_encrypt ();
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12232 echo "$as_me: failed program was
:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_lib_crypto_DES_cbc_encrypt=no
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12243 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12244 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBCRYPTO 1
12249 LIBS="-lcrypto $LIBS"
12254 for ac_header in openssl/evp.h
12256 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12257 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12258 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12259 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12261 echo $ECHO_N "(cached
) $ECHO_C" >&6
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12267 # Is the header compilable?
12268 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12269 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12277 #include <$ac_header>
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
12296 ac_header_compiler=yes
12298 echo "$as_me: failed program was
:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_header_compiler=no
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12306 echo "${ECHO_T}$ac_header_compiler" >&6; }
12308 # Is the header present?
12309 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12310 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <$ac_header>
12319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12331 (exit $ac_status); } >/dev/null && {
12332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12335 ac_header_preproc=yes
12337 echo "$as_me: failed program was
:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 ac_header_preproc=no
12343 rm -f conftest.err conftest.$ac_ext
12344 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6; }
12347 # So? What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12350 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12351 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12354 ac_header_preproc=yes
12357 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12358 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12359 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12360 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12361 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12362 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12363 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12364 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12367 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12368 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12372 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12373 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12374 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached
) $ECHO_C" >&6
12377 eval "$as_ac_Header=\
$ac_header_preproc"
12379 ac_res=`eval echo '${'$as_ac_Header'}'`
12380 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12381 echo "${ECHO_T}$ac_res" >&6; }
12384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12395 if test "$missing_includes" = "yes"; then
12396 CPPFLAGS="$CPPFLAGS -I$srcdir/missing
"
12397 V_INCLS="$V_INCLS -I$srcdir/missing
"
12409 # Find a good install program. We prefer a C program (faster),
12410 # so one script is as good as another. But avoid the broken or
12411 # incompatible versions:
12412 # SysV /etc/install, /usr/sbin/install
12413 # SunOS /usr/etc/install
12414 # IRIX /sbin/install
12416 # AmigaOS /C/install, which installs bootblocks on floppy discs
12417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
12420 # OS/2's system install, which has a completely different semantic
12421 # ./install, which can be erroneously created by make from ./install.sh.
12422 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
12423 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
12424 if test -z "$INSTALL"; then
12425 if test "${ac_cv_path_install+set}" = set; then
12426 echo $ECHO_N "(cached
) $ECHO_C" >&6
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12432 test -z "$as_dir" && as_dir=.
12433 # Account for people who put trailing slashes in PATH elements.
12435 ./ | .// | /cC/* | \
12436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12437 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12440 # OSF1 and SCO ODT 3.0 have their own names for install.
12441 # Don't use installbsd from OSF since it installs stuff as root
12443 for ac_prog in ginstall scoinst install; do
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12446 if test $ac_prog = install &&
12447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12448 # AIX install. It has an incompatible calling convention.
12450 elif test $ac_prog = install &&
12451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12452 # program-specific install script used by HP pwplus--don't use.
12455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12468 if test "${ac_cv_path_install+set}" = set; then
12469 INSTALL=$ac_cv_path_install
12471 # As a last resort, use the slow shell script. Don't cache a
12472 # value for INSTALL within a source directory, because that will
12473 # break other packages using the cache if that directory is
12474 # removed, or if the value is a relative name.
12475 INSTALL=$ac_install_sh
12478 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
12479 echo "${ECHO_T}$INSTALL" >&6; }
12481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12482 # It thinks the first close brace ends the variable substitution.
12483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12490 ac_config_headers="$ac_config_headers config.h
"
12493 ac_config_commands="$ac_config_commands default-1
"
12495 ac_config_files="$ac_config_files Makefile tcpdump
.1"
12497 cat >confcache <<\_ACEOF
12498 # This file is a shell script that caches the results of configure
12499 # tests run on this system so they can be shared between configure
12500 # scripts and configure runs, see configure's option --config-cache.
12501 # It is not useful on other systems. If it contains results you don't
12502 # want to keep, you may remove or edit it.
12504 # config.status only pays attention to the cache file if you give it
12505 # the --recheck option to rerun configure.
12507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12509 # following values.
12513 # The following way of writing the cache mishandles newlines in values,
12514 # but we know of no workaround that is simple, portable, and efficient.
12515 # So, we kill variables containing newlines.
12516 # Ultrix sh set writes to stderr and can't be redirected directly,
12517 # and sets the high bit in the cache file unless we assign to the vars.
12519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12520 eval ac_val=\$$ac_var
12524 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
12525 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
12528 _ | IFS | as_nl) ;; #(
12529 *) $as_unset $ac_var ;;
12535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12536 *${as_nl}ac_space=\ *)
12537 # `set' does not quote correctly, so add quotes (double-quote
12538 # substitution turns \\\\ into \\, and sed turns \\ into \).
12541 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12544 # `set' quotes correctly as required by POSIX, so do not add quotes.
12545 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12559 if test -w "$cache_file"; then
12560 test "x
$cache_file" != "x
/dev
/null
" &&
12561 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12562 echo "$as_me: updating cache
$cache_file" >&6;}
12563 cat confcache >$cache_file
12565 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12566 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12571 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12572 # Let make expand exec_prefix.
12573 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12575 DEFS=-DHAVE_CONFIG_H
12579 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12580 # 1. Remove the extension, and $U if already installed.
12581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12582 ac_i=`echo "$ac_i" | sed "$ac_script"`
12583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12584 # will be set to the directory where LIBOBJS objects are built.
12585 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12586 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12588 LIBOBJS=$ac_libobjs
12590 LTLIBOBJS=$ac_ltlibobjs
12594 : ${CONFIG_STATUS=./config.status}
12595 ac_clean_files_save=$ac_clean_files
12596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12597 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12598 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12599 cat >$CONFIG_STATUS <<_ACEOF
12601 # Generated by $as_me.
12602 # Run this file to recreate the current configuration.
12603 # Compiler output produced by configure, useful for debugging
12604 # configure, is in config.log if it exists.
12607 ac_cs_recheck=false
12609 SHELL=\${CONFIG_SHELL-$SHELL}
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 ## --------------------- ##
12614 ## M4sh Initialization. ##
12615 ## --------------------- ##
12617 # Be more Bourne compatible
12618 DUALCASE=1; export DUALCASE # for MKS sh
12619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12623 # is contrary to our usage. Disable this feature.
12624 alias -g '${1+"$@"}'='"$@
"'
12625 setopt NO_GLOB_SUBST
12627 case `(set -o) 2>/dev/null` in
12628 *posix*) set -o posix ;;
12637 # Avoid depending upon Character Ranges.
12638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12641 as_cr_digits='0123456789'
12642 as_cr_alnum=$as_cr_Letters$as_cr_digits
12644 # The user is always right.
12645 if test "${PATH_SEPARATOR+set}" != set; then
12646 echo "#! /bin/sh" >conf$$.sh
12647 echo "exit 0" >>conf$$.sh
12649 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12657 # Support unset when possible.
12658 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12666 # We need space, tab and new line, in precisely that order. Quoting is
12667 # there to prevent editors from complaining about space-tab.
12668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12669 # splitting by setting IFS to empty value.)
12674 # Find who we are. Look in the path if we contain no directory separator.
12676 *[\\/]* ) as_myself
=$0 ;;
12677 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12678 for as_dir
in $PATH
12681 test -z "$as_dir" && as_dir
=.
12682 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12688 # We did not find ourselves, most probably we were run as `sh COMMAND'
12689 # in which case we are not to be found in the path.
12690 if test "x$as_myself" = x
; then
12693 if test ! -f "$as_myself"; then
12694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12695 { (exit 1); exit 1; }
12698 # Work around bugs in pre-3.0 UWIN ksh.
12699 for as_var
in ENV MAIL MAILPATH
12700 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12710 LC_TELEPHONE LC_TIME
12712 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12713 eval $as_var=C
; export $as_var
12715 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12719 # Required to use basename.
12720 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12721 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12727 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12728 as_basename
=basename
12734 # Name of the executable.
12735 as_me
=`$as_basename -- "$0" ||
12736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12737 X"$0" : 'X\(//\)$' \| \
12738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12740 sed '/^.*\/\([^/][^/]*\)\/*$/{
12759 as_lineno_1
=$LINENO
12760 as_lineno_2
=$LINENO
12761 test "x$as_lineno_1" != "x$as_lineno_2" &&
12762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12765 # uniformly replaced by the line number. The first 'sed' inserts a
12766 # line-number line after each line using $LINENO; the second 'sed'
12767 # does the real work. The second script uses 'N' to pair each
12768 # line-number line with the line containing $LINENO, and appends
12769 # trailing '-' during substitution so that $LINENO is not a special
12770 # case at line end.
12771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12772 # scripts with optimization help from Paolo Bonzini. Blame Lee
12773 # E. McMahon (1931-1989) for sed's syntax. :-)
12785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12788 ' >$as_me.lineno
&&
12789 chmod +x
"$as_me.lineno" ||
12790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12791 { (exit 1); exit 1; }; }
12793 # Don't try to exec as it changes $[0], causing all sort of problems
12794 # (the dirname of $[0] is not the place where we might find the
12795 # original and so on. Autoconf is especially sensitive to this).
12796 .
"./$as_me.lineno"
12797 # Exit status is that of the last command.
12802 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12808 ECHO_C
= ECHO_N
= ECHO_T
=
12809 case `echo -n x` in
12811 case `echo 'x\c'` in
12812 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12819 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12820 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12826 rm -f conf$$ conf$$.exe conf$$.
file
12827 if test -d conf$$.dir
; then
12828 rm -f conf$$.dir
/conf$$.
file
12834 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12836 # ... but there are two gotchas:
12837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12839 # In both cases, we have to default to `cp -p'.
12840 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12842 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12847 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12848 rmdir conf$$.dir
2>/dev
/null
12850 if mkdir
-p .
2>/dev
/null
; then
12853 test -d .
/-p && rmdir .
/-p
12857 if test -x / >/dev
/null
2>&1; then
12858 as_test_x
='test -x'
12860 if ls -dL / >/dev
/null
2>&1; then
12867 if test -d "$1"; then
12873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12874 ???[sx]*):;;*)false;;esac;fi
12878 as_executable_p
=$as_test_x
12880 # Sed expression to map a string onto a valid CPP name.
12881 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12883 # Sed expression to map a string onto a valid variable name.
12884 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12889 # Save the log message, to keep $[0] and so on meaningful, and to
12890 # report actual input values of CONFIG_FILES etc. instead of their
12891 # values after options handling.
12893 This file was extended by $as_me, which was
12894 generated by GNU Autoconf 2.61. Invocation command line was
12896 CONFIG_FILES = $CONFIG_FILES
12897 CONFIG_HEADERS = $CONFIG_HEADERS
12898 CONFIG_LINKS = $CONFIG_LINKS
12899 CONFIG_COMMANDS = $CONFIG_COMMANDS
12902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12907 cat >>$CONFIG_STATUS <<_ACEOF
12908 # Files that config.status was made for.
12909 config_files="$ac_config_files"
12910 config_headers="$ac_config_headers"
12911 config_commands="$ac_config_commands"
12915 cat >>$CONFIG_STATUS <<\_ACEOF
12917 \`$as_me' instantiates files from templates according to the
12918 current configuration.
12920 Usage: $0 [OPTIONS] [FILE]...
12922 -h, --help print this help, then exit
12923 -V, --version print version number and configuration settings, then exit
12924 -q, --quiet do not print progress messages
12925 -d, --debug don't remove temporary files
12926 --recheck update $as_me by reconfiguring in the same conditions
12927 --file=FILE[:TEMPLATE]
12928 instantiate the configuration file FILE
12929 --header=FILE[:TEMPLATE]
12930 instantiate the configuration header FILE
12932 Configuration files:
12935 Configuration headers:
12938 Configuration commands:
12941 Report bugs to <bug-autoconf@gnu.org>."
12944 cat >>$CONFIG_STATUS <<_ACEOF
12947 configured by $0, generated by GNU Autoconf 2.61,
12948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12950 Copyright (C) 2006 Free Software Foundation, Inc.
12951 This config.status script is free software; the Free Software Foundation
12952 gives unlimited permission to copy, distribute and modify it."
12959 cat >>$CONFIG_STATUS <<\_ACEOF
12960 # If no file are specified by the user, then we need to provide default
12961 # value. By we need to know if files were specified by the user.
12967 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12968 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12979 # Handling of the options.
12980 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12982 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12983 echo "$ac_cs_version"; exit ;;
12984 --debug |
--debu |
--deb |
--de |
--d |
-d )
12986 --file |
--fil |
--fi |
--f )
12988 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12989 ac_need_defaults
=false
;;
12990 --header |
--heade |
--head |
--hea )
12992 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12993 ac_need_defaults
=false
;;
12995 # Conflict between --help and --header
12996 { echo "$as_me: error: ambiguous option: $1
12997 Try \`$0 --help' for more information." >&2
12998 { (exit 1); exit 1; }; };;
12999 --help |
--hel |
-h )
13000 echo "$ac_cs_usage"; exit ;;
13001 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13002 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13005 # This is an error.
13006 -*) { echo "$as_me: error: unrecognized option: $1
13007 Try \`$0 --help' for more information." >&2
13008 { (exit 1); exit 1; }; } ;;
13010 *) ac_config_targets
="$ac_config_targets $1"
13011 ac_need_defaults
=false
;;
13017 ac_configure_extra_args
=
13019 if $ac_cs_silent; then
13021 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13025 cat >>$CONFIG_STATUS <<_ACEOF
13026 if \$ac_cs_recheck; then
13027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13028 CONFIG_SHELL=$SHELL
13029 export CONFIG_SHELL
13030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13034 cat >>$CONFIG_STATUS <<\_ACEOF
13038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13039 ## Running $as_me. ##
13045 cat >>$CONFIG_STATUS <<_ACEOF
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13055 # Handling of arguments.
13056 for ac_config_target
in $ac_config_targets
13058 case $ac_config_target in
13059 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13060 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13061 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13062 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
13064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13066 { (exit 1); exit 1; }; };;
13071 # If the user did not use the arguments to specify the items to instantiate,
13072 # then the envvar interface is used. Set only those that are not.
13073 # We use the long form for the default assignment because of an extremely
13074 # bizarre bug on SunOS 4.1.3.
13075 if $ac_need_defaults; then
13076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13081 # Have a temporary directory for convenience. Make it in the build tree
13082 # simply because there is no reason against having it here, and in addition,
13083 # creating and moving files from /tmp can sometimes cause problems.
13084 # Hook for its removal unless debugging.
13085 # Note that there is a small window in which the directory will not be cleaned:
13086 # after its creation but before its name has been assigned to `$tmp'.
13090 trap 'exit_status=$?
13091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13093 trap '{ (exit 1); exit 1; }' 1 2 13 15
13095 # Create a (secure) tmp directory for tmp files.
13098 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13099 test -n "$tmp" && test -d "$tmp"
13102 tmp
=.
/conf$$
-$RANDOM
13103 (umask 077 && mkdir
"$tmp")
13106 echo "$me: cannot create a temporary directory in ." >&2
13107 { (exit 1); exit 1; }
13111 # Set up the sed scripts for CONFIG_FILES section.
13114 # No need to generate the scripts if there are no CONFIG_FILES.
13115 # This happens for instance when ./config.status config.h
13116 if test -n "$CONFIG_FILES"; then
13123 for ac_last_try
in false false false false false
:; do
13124 cat >conf$
$subs.
sed <<_ACEOF
13125 SHELL!$SHELL$ac_delim
13126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13132 exec_prefix!$exec_prefix$ac_delim
13133 prefix!$prefix$ac_delim
13134 program_transform_name!$program_transform_name$ac_delim
13135 bindir!$bindir$ac_delim
13136 sbindir!$sbindir$ac_delim
13137 libexecdir!$libexecdir$ac_delim
13138 datarootdir!$datarootdir$ac_delim
13139 datadir!$datadir$ac_delim
13140 sysconfdir!$sysconfdir$ac_delim
13141 sharedstatedir!$sharedstatedir$ac_delim
13142 localstatedir!$localstatedir$ac_delim
13143 includedir!$includedir$ac_delim
13144 oldincludedir!$oldincludedir$ac_delim
13145 docdir!$docdir$ac_delim
13146 infodir!$infodir$ac_delim
13147 htmldir!$htmldir$ac_delim
13148 dvidir!$dvidir$ac_delim
13149 pdfdir!$pdfdir$ac_delim
13150 psdir!$psdir$ac_delim
13151 libdir!$libdir$ac_delim
13152 localedir!$localedir$ac_delim
13153 mandir!$mandir$ac_delim
13154 DEFS!$DEFS$ac_delim
13155 ECHO_C!$ECHO_C$ac_delim
13156 ECHO_N!$ECHO_N$ac_delim
13157 ECHO_T!$ECHO_T$ac_delim
13158 LIBS!$LIBS$ac_delim
13159 build_alias!$build_alias$ac_delim
13160 host_alias!$host_alias$ac_delim
13161 target_alias!$target_alias$ac_delim
13162 build!$build$ac_delim
13163 build_cpu!$build_cpu$ac_delim
13164 build_vendor!$build_vendor$ac_delim
13165 build_os!$build_os$ac_delim
13166 host!$host$ac_delim
13167 host_cpu!$host_cpu$ac_delim
13168 host_vendor!$host_vendor$ac_delim
13169 host_os!$host_os$ac_delim
13170 SHLICC2!$SHLICC2$ac_delim
13172 CFLAGS!$CFLAGS$ac_delim
13173 LDFLAGS!$LDFLAGS$ac_delim
13174 CPPFLAGS!$CPPFLAGS$ac_delim
13175 ac_ct_CC!$ac_ct_CC$ac_delim
13176 EXEEXT!$EXEEXT$ac_delim
13177 OBJEXT!$OBJEXT$ac_delim
13179 GREP!$GREP$ac_delim
13180 EGREP!$EGREP$ac_delim
13181 LIBOBJS!$LIBOBJS$ac_delim
13182 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13183 RANLIB!$RANLIB$ac_delim
13184 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
13185 MKDEP!$MKDEP$ac_delim
13186 V_CCOPT!$V_CCOPT$ac_delim
13187 V_DEFS!$V_DEFS$ac_delim
13188 V_GROUP!$V_GROUP$ac_delim
13189 V_INCLS!$V_INCLS$ac_delim
13190 V_PCAPDEP!$V_PCAPDEP$ac_delim
13191 LOCALSRC!$LOCALSRC$ac_delim
13192 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13193 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13194 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13195 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13196 INSTALL_DATA!$INSTALL_DATA$ac_delim
13197 LTLIBOBJS!$LTLIBOBJS$ac_delim
13200 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
13202 elif $ac_last_try; then
13203 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13205 { (exit 1); exit 1; }; }
13207 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13211 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13212 if test -n "$ac_eof"; then
13213 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13214 ac_eof
=`expr $ac_eof + 1`
13217 cat >>$CONFIG_STATUS <<_ACEOF
13218 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13223 s/^/s,@/; s/!/@,|#_!!_#|/
13226 s/'"$ac_delim"'$/,g/; t
13228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13229 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13230 rm -f conf$
$subs.
sed
13231 cat >>$CONFIG_STATUS <<_ACEOF
13238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13240 # trailing colons and then remove the whole line if VPATH becomes empty
13241 # (actually we leave an empty line to preserve line numbers).
13242 if test "x$srcdir" = x.
; then
13243 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13244 s/:*\$(srcdir):*/:/
13245 s/:*\${srcdir}:*/:/
13247 s/^\([^=]*=[ ]*\):*/\1/
13253 cat >>$CONFIG_STATUS <<\_ACEOF
13254 fi # test -n "$CONFIG_FILES"
13257 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13260 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13262 case $ac_mode$ac_tag in
13264 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13266 { (exit 1); exit 1; }; };;
13267 :[FH
]-) ac_tag
=-:-;;
13268 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13285 -) ac_f
="$tmp/stdin";;
13286 *) # Look for the file first in the build tree, then in the source tree
13287 # (if the path is not absolute). The absolute path cannot be DOS-style,
13288 # because $ac_f cannot contain `:'.
13292 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13296 { (exit 1); exit 1; }; };;
13298 ac_file_inputs
="$ac_file_inputs $ac_f"
13301 # Let's still pretend it is `configure' which instantiates (i.e., don't
13302 # use $as_me), people would be surprised to read:
13303 # /* config.h. Generated by config.status. */
13304 configure_input
="Generated from "`IFS=:
13305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13306 if test x
"$ac_file" != x-
; then
13307 configure_input
="$ac_file. $configure_input"
13308 { echo "$as_me:$LINENO: creating $ac_file" >&5
13309 echo "$as_me: creating $ac_file" >&6;}
13313 *:-:* |
*:-) cat >"$tmp/stdin";;
13318 ac_dir
=`$as_dirname -- "$ac_file" ||
13319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13320 X"$ac_file" : 'X\(//\)[^/]' \| \
13321 X"$ac_file" : 'X\(//\)$' \| \
13322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13328 /^X\(\/\/\)[^/].*/{
13343 -*) as_dir
=.
/$as_dir;;
13345 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13349 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13350 *) as_qdir
=$as_dir;;
13352 as_dirs
="'$as_qdir' $as_dirs"
13353 as_dir
=`$as_dirname -- "$as_dir" ||
13354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13355 X"$as_dir" : 'X\(//\)[^/]' \| \
13356 X"$as_dir" : 'X\(//\)$' \| \
13357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13363 /^X\(\/\/\)[^/].*/{
13376 test -d "$as_dir" && break
13378 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13379 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13381 { (exit 1); exit 1; }; }; }
13385 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13387 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13388 # A ".." for each directory in $ac_dir_suffix.
13389 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13390 case $ac_top_builddir_sub in
13391 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13392 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13395 ac_abs_top_builddir
=$ac_pwd
13396 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13397 # for backward compatibility:
13398 ac_top_builddir
=$ac_top_build_prefix
13401 .
) # We are building in place.
13403 ac_top_srcdir
=$ac_top_builddir_sub
13404 ac_abs_top_srcdir
=$ac_pwd ;;
13405 [\\/]* | ?
:[\\/]* ) # Absolute name.
13406 ac_srcdir
=$srcdir$ac_dir_suffix;
13407 ac_top_srcdir
=$srcdir
13408 ac_abs_top_srcdir
=$srcdir ;;
13409 *) # Relative name.
13410 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13411 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13412 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13414 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13424 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13425 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13429 cat >>$CONFIG_STATUS <<\_ACEOF
13430 # If the template does not know about datarootdir, expand it.
13431 # FIXME: This hack should be removed a few years after 2.60.
13432 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13434 case `sed -n '/datarootdir/ {
13443 ' $ac_file_inputs` in
13444 *datarootdir
*) ac_datarootdir_seen
=yes;;
13445 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13446 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13447 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13449 cat >>$CONFIG_STATUS <<_ACEOF
13450 ac_datarootdir_hack='
13451 s&@datadir@&$datadir&g
13452 s&@docdir@&$docdir&g
13453 s&@infodir@&$infodir&g
13454 s&@localedir@&$localedir&g
13455 s&@mandir@&$mandir&g
13456 s&\\\${datarootdir}&$datarootdir&g' ;;
13460 # Neutralize VPATH when `$srcdir' = `.'.
13461 # Shell code in configure.ac might set extrasub.
13462 # FIXME: do we really want to maintain this feature?
13463 cat >>$CONFIG_STATUS <<_ACEOF
13467 cat >>$CONFIG_STATUS <<\_ACEOF
13469 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13470 s
&@configure_input@
&$configure_input&;t t
13471 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13472 s
&@srcdir@
&$ac_srcdir&;t t
13473 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13474 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13475 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13476 s
&@builddir@
&$ac_builddir&;t t
13477 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13478 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13479 s
&@INSTALL@
&$ac_INSTALL&;t t
13480 $ac_datarootdir_hack
13481 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
13483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13486 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13487 which seems to be undefined. Please make sure it is defined." >&5
13488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13489 which seems to be undefined. Please make sure it is defined." >&2;}
13493 -) cat "$tmp/out"; rm -f "$tmp/out";;
13494 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13503 # Transform confdefs.h into a sed script `conftest.defines', that
13504 # substitutes the proper values into config.h.in to produce config.h.
13505 rm -f conftest.defines conftest.
tail
13506 # First, append a space to every undef/define line, to ease matching.
13507 echo 's/$/ /' >conftest.defines
13508 # Then, protect against being on the right side of a sed subst, or in
13509 # an unquoted here document, in config.status. If some macros were
13510 # called several times there might be several #defines for the same
13511 # symbol, which is useless. But do not sort them, since the last
13512 # AC_DEFINE must be honored.
13513 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13516 # PARAMS is the parameter list in the macro definition--in most cases, it's
13517 # just an empty string.
13518 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13519 ac_dB
='\\)[ (].*,\\1define\\2'
13527 s/^[ ]*#[ ]*define[ ][ ]*//
13532 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13533 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13534 ' >>conftest.defines
13536 # Remove the space that was appended to ease matching.
13537 # Then replace #undef with comments. This is necessary, for
13538 # example, in the case of _POSIX_SOURCE, which is predefined and required
13539 # on some systems where configure will not decide to define it.
13540 # (The regexp can be short, since the line contains either #define or #undef.)
13542 s,^[ #]*u.*,/* & */,' >>conftest.defines
13544 # Break up conftest.defines:
13545 ac_max_sed_lines
=50
13547 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13548 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13549 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13551 ac_in
='$ac_file_inputs'
13552 ac_out
='"$tmp/out1"'
13553 ac_nxt
='"$tmp/out2"'
13557 # Write a here document:
13558 cat >>$CONFIG_STATUS <<_ACEOF
13559 # First, check the format of the line:
13560 cat >"\$tmp/defines.sed" <<\\CEOF
13561 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13562 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13566 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13568 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13569 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13570 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13571 grep . conftest.
tail >/dev
/null ||
break
13572 rm -f conftest.defines
13573 mv conftest.
tail conftest.defines
13575 rm -f conftest.defines conftest.
tail
13577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13578 cat >>$CONFIG_STATUS <<\_ACEOF
13579 if test x
"$ac_file" != x-
; then
13580 echo "/* $configure_input */" >"$tmp/config.h"
13581 cat "$ac_result" >>"$tmp/config.h"
13582 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13584 echo "$as_me: $ac_file is unchanged" >&6;}
13587 mv "$tmp/config.h" $ac_file
13590 echo "/* $configure_input */"
13596 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13597 echo "$as_me: executing $ac_file commands" >&6;}
13602 case $ac_file$ac_mode in
13603 "default-1":C
) if test -f .devel
; then
13604 echo timestamp
> stamp-h
13605 cat Makefile-devel-adds
>> Makefile
13613 { (exit 0); exit 0; }
13615 chmod +x
$CONFIG_STATUS
13616 ac_clean_files
=$ac_clean_files_save
13619 # configure is writing to config.log, and then calls config.status.
13620 # config.status does its own redirection, appending to config.log.
13621 # Unfortunately, on DOS this fails, as config.log is still kept open
13622 # by configure, so config.status won't be able to write to it; its
13623 # output is simply discarded. So we exec the FD to /dev/null,
13624 # effectively closing config.log, so it can be properly (re)opened and
13625 # appended to by config.status. When coming back to configure, we
13626 # need to make the FD available again.
13627 if test "$no_create" != yes; then
13629 ac_config_status_args
=
13630 test "$silent" = yes &&
13631 ac_config_status_args
="$ac_config_status_args --quiet"
13633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13636 # would make configure fail if this is the last instruction.
13637 $ac_cs_success ||
{ (exit 1); exit 1; }