2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
689 ac_precious_vars
='build_alias
700 # Initialize some variables set by options.
702 ac_init_version
=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
712 program_transform_name
=s
,x
,x
,
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir
='${exec_prefix}/bin'
727 sbindir
='${exec_prefix}/sbin'
728 libexecdir
='${exec_prefix}/libexec'
729 datarootdir
='${prefix}/share'
730 datadir
='${datarootdir}'
731 sysconfdir
='${prefix}/etc'
732 sharedstatedir
='${prefix}/com'
733 localstatedir
='${prefix}/var'
734 includedir
='${prefix}/include'
735 oldincludedir
='/usr/include'
736 docdir
='${datarootdir}/doc/${PACKAGE}'
737 infodir
='${datarootdir}/info'
742 libdir
='${exec_prefix}/lib'
743 localedir
='${datarootdir}/locale'
744 mandir
='${datarootdir}/man'
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\
$ac_option
758 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762 # Accept the important Cygnus configure options, so we can diagnose typos.
764 case $ac_dashdash$ac_option in
768 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
770 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
773 -build |
--build |
--buil |
--bui |
--bu)
774 ac_prev
=build_alias
;;
775 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
776 build_alias
=$ac_optarg ;;
778 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
779 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
780 ac_prev
=cache_file
;;
781 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
782 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
783 cache_file
=$ac_optarg ;;
786 cache_file
=config.cache
;;
788 -datadir |
--datadir |
--datadi |
--datad)
790 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
791 datadir
=$ac_optarg ;;
793 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
794 |
--dataroo |
--dataro |
--datar)
795 ac_prev
=datarootdir
;;
796 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
797 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
798 datarootdir
=$ac_optarg ;;
800 -disable-* |
--disable-*)
801 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_
$ac_feature=no
;;
809 -docdir |
--docdir |
--docdi |
--doc |
--do)
811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
819 -enable-* |
--enable-*)
820 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_
$ac_feature=\
$ac_optarg ;;
828 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
829 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
830 |
--exec |
--exe |
--ex)
831 ac_prev
=exec_prefix
;;
832 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
833 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
834 |
--exec=* |
--exe=* |
--ex=*)
835 exec_prefix
=$ac_optarg ;;
837 -gas |
--gas |
--ga |
--g)
838 # Obsolete; use --with-gas.
841 -help |
--help |
--hel |
--he |
-h)
843 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
844 ac_init_help
=recursive
;;
845 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
846 ac_init_help
=short
;;
848 -host |
--host |
--hos |
--ho)
849 ac_prev
=host_alias
;;
850 -host=* |
--host=* |
--hos=* |
--ho=*)
851 host_alias
=$ac_optarg ;;
853 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
855 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
857 htmldir
=$ac_optarg ;;
859 -includedir |
--includedir |
--includedi |
--included |
--include \
860 |
--includ |
--inclu |
--incl |
--inc)
861 ac_prev
=includedir
;;
862 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
863 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
864 includedir
=$ac_optarg ;;
866 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
868 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
869 infodir
=$ac_optarg ;;
871 -libdir |
--libdir |
--libdi |
--libd)
873 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
876 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
877 |
--libexe |
--libex |
--libe)
878 ac_prev
=libexecdir
;;
879 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
880 |
--libexe=* |
--libex=* |
--libe=*)
881 libexecdir
=$ac_optarg ;;
883 -localedir |
--localedir |
--localedi |
--localed |
--locale)
885 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
886 localedir
=$ac_optarg ;;
888 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
889 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
890 ac_prev
=localstatedir
;;
891 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
892 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
893 localstatedir
=$ac_optarg ;;
895 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
897 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
901 # Obsolete; use --without-fp.
904 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
905 |
--no-cr |
--no-c |
-n)
908 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
909 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
912 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
913 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
914 |
--oldin |
--oldi |
--old |
--ol |
--o)
915 ac_prev
=oldincludedir
;;
916 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
917 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
918 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
919 oldincludedir
=$ac_optarg ;;
921 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
923 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
926 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
927 |
--program-pre |
--program-pr |
--program-p)
928 ac_prev
=program_prefix
;;
929 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
930 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
931 program_prefix
=$ac_optarg ;;
933 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
934 |
--program-suf |
--program-su |
--program-s)
935 ac_prev
=program_suffix
;;
936 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
937 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
938 program_suffix
=$ac_optarg ;;
940 -program-transform-name |
--program-transform-name \
941 |
--program-transform-nam |
--program-transform-na \
942 |
--program-transform-n |
--program-transform- \
943 |
--program-transform |
--program-transfor \
944 |
--program-transfo |
--program-transf \
945 |
--program-trans |
--program-tran \
946 |
--progr-tra |
--program-tr |
--program-t)
947 ac_prev
=program_transform_name
;;
948 -program-transform-name=* |
--program-transform-name=* \
949 |
--program-transform-nam=* |
--program-transform-na=* \
950 |
--program-transform-n=* |
--program-transform-=* \
951 |
--program-transform=* |
--program-transfor=* \
952 |
--program-transfo=* |
--program-transf=* \
953 |
--program-trans=* |
--program-tran=* \
954 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
955 program_transform_name
=$ac_optarg ;;
957 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
959 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
962 -psdir |
--psdir |
--psdi |
--psd |
--ps)
964 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
967 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
968 |
-silent |
--silent |
--silen |
--sile |
--sil)
971 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
973 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
975 sbindir
=$ac_optarg ;;
977 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
978 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
979 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
981 ac_prev
=sharedstatedir
;;
982 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
983 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
984 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
986 sharedstatedir
=$ac_optarg ;;
988 -site |
--site |
--sit)
990 -site=* |
--site=* |
--sit=*)
993 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
995 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
998 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
999 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1000 ac_prev
=sysconfdir
;;
1001 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1002 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1003 sysconfdir
=$ac_optarg ;;
1005 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1006 ac_prev
=target_alias
;;
1007 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1008 target_alias
=$ac_optarg ;;
1010 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1013 -version |
--version |
--versio |
--versi |
--vers |
-V)
1014 ac_init_version
=: ;;
1017 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_
$ac_package=\
$ac_optarg ;;
1025 -without-* |
--without-*)
1026 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_
$ac_package=no
;;
1035 # Obsolete; use --with-x.
1038 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1039 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1040 ac_prev
=x_includes
;;
1041 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1042 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1043 x_includes
=$ac_optarg ;;
1045 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1046 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1047 ac_prev
=x_libraries
;;
1048 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1049 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1050 x_libraries
=$ac_optarg ;;
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1058 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\
$ac_optarg
1064 export $ac_envvar ;;
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1077 if test -n "$ac_prev"; then
1078 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1083 # Be sure to have absolute directory names.
1084 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1089 eval ac_val
=\$
$ac_var
1091 [\\/$
]* | ?
:[\\/]* ) continue;;
1092 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1103 target
=$target_alias
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x
; then
1107 if test "x$build_alias" = x
; then
1108 cross_compiling
=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1117 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1119 test "$silent" = yes && exec 6>/dev
/null
1122 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di
=`ls -di .` &&
1124 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted
=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir
=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1164 ac_srcdir_defaulted
=no
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1171 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1184 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 for ac_var
in $ac_precious_vars; do
1187 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1189 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1194 # Report the --help message.
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1200 \`configure' configures this package to adapt to many kinds of systems.
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1207 Defaults for the options are specified in brackets.
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1231 For better control, use the options below.
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1258 --build=BUILD configure
for building on BUILD
[guessed
]
1259 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1263 if test -n "$ac_init_help"; then
1268 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1269 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1270 --enable-smb enable possibly-buggy SMB printer default
=yes
1271 --disable-smb disable possibly-buggy SMB printer
1272 --enable-ipv6 enable ipv6
(with ipv4
) support
1273 --disable-ipv6 disable ipv6 support
1276 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1277 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1278 --without-gcc don
't use gcc
1279 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280 --without-smi don't link with libsmi
1281 --with-user=USERNAME drop privileges by default to USERNAME
1282 --with-chroot=DIRECTORY when dropping privileges
, chroot to DIRECTORY
1283 --with-crypto[=PATH
] use SSLeay libcrypto
(located
in directory PATH
, if
1284 supplied
).
[default
=yes, if available
]
1286 Some influential environment variables
:
1287 CC C compiler
command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1290 nonstandard directory
<lib dir
>
1291 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1292 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1293 you have headers
in a nonstandard directory
<include dir
>
1296 Use these variables to override the choices made by
`configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 test -d "$ac_dir" || continue
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1326 .) # We are building in place.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1360 generated by GNU Autoconf 2.61
1362 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1369 cat >config.log <<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1386 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1387 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1388 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1389 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1390 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1392 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1393 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1395 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1396 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1397 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1398 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1399 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1400 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1401 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir=.
1410 echo "PATH: $as_dir"
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1434 ac_must_keep_next=false
1440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1445 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1448 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true; then
1452 ac_must_keep_next=false # Got value, back to normal.
1455 *=* | --config-cache | -C | -disable-* | --disable-* \
1456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 | -with-* | --with-* | -without-* | --without-* | --x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1463 -* ) ac_must_keep_next=true ;;
1466 ac_configure_args="$ac_configure_args '$ac_arg'"
1471 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1490 # The following way of writing the cache mishandles newlines in values,
1492 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1493 eval ac_val=\$$ac_var
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1507 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1527 for ac_var in $ac_subst_vars
1529 eval ac_val=\$$ac_var
1531 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 echo "$ac_var='\''$ac_val'\''"
1537 if test -n "$ac_subst_files"; then
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1544 for ac_var in $ac_subst_files
1546 eval ac_val=\$$ac_var
1548 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 echo "$ac_var='\''$ac_val'\''"
1555 if test -s confdefs.h; then
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1573 for ac_signal in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest* confdefs.h
1581 # Predefined preprocessor variables.
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x "$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE; then
1613 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 set x "$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 *) . "./$cache_file";;
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1646 # Check that the precious variables saved in the cache have kept the same
1648 ac_cache_corrupted=false
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 eval ac_new_set=\$ac_env_${ac_var}_set
1652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 eval ac_new_val=\$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1657 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1661 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted=: ;;
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1668 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1669 echo "$as_me: former value
: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1671 echo "$as_me: current value
: $ac_new_val" >&2;}
1672 ac_cache_corrupted=:
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1678 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1679 *) ac_arg=$ac_var=$ac_new_val ;;
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1689 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1690 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 elif test -f "$ac_dir/install.sh"; then
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 elif test -f "$ac_dir/shtool"; then
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1783 ac_save_IFS=$IFS; IFS='-'
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1793 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1820 ac_save_IFS=$IFS; IFS='-'
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1830 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1847 if test "${srcdir}" != "." ; then
1848 V_INCLS="-I\$(srcdir)"
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS="$CFLAGS"
1853 if test -z "$CC" ; then
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2; ac_word=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1885 SHLICC2=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1895 if test $SHLICC2 = yes ; then
1902 if test -z "$CC" -a "$with_gcc" = no ; then
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1951 if test -z "$ac_cv_prog_CC"; then
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1989 if test "x$ac_ct_CC" = x; then
1992 case $cross_compiling:$ac_tool_warned in
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$CC" && break
2149 if test -z "$CC"; then
2151 for ac_prog in cl.exe
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2190 test -n "$ac_ct_CC" && break
2193 if test "x$ac_ct_CC" = x; then
2196 case $cross_compiling:$ac_tool_warned in
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log
' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details.
" >&2;}
2217 { (exit 1); exit 1; }; }
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2251 (exit $ac_status); }
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2273 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2274 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2286 for ac_file in $ac_files
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2295 if { (ac_try="$ac_link_default"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2310 for ac_file in $ac_files ''
2312 test -f "$ac_file" || continue
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2317 # We found the default executable, but exeext='' is most
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2341 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was
:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2348 See \
`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log
' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2354 ac_exeext=$ac_cv_exeext
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='.
/$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 if test "$cross_compiling" = maybe; then
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \
`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details.
" >&2;}
2384 { (exit 1); exit 1; }; }
2388 { echo "$as_me:$LINENO: result
: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2396 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2400 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2401 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2427 See \
`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log
' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2480 echo "$as_me: failed program was:" >&5
2481 sed 's
/^
/|
/' conftest.$ac_ext >&5
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details.
" >&5
2485 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2486 See \
`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2523 *) ac_try_echo
=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2528 grep -v '^ *+' conftest.er1
>conftest.err
2530 cat conftest.err
>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.
$ac_objext; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.
$ac_ext >&5
2544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2545 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS
=${CFLAGS+set}
2552 ac_save_CFLAGS
=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 ac_save_c_werror_flag
=$ac_c_werror_flag
2559 ac_c_werror_flag
=yes
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.
$ac_objext
2578 if { (ac_try
="$ac_compile"
2580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2619 *) ac_try_echo
=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2624 grep -v '^ *+' conftest.er1
>conftest.err
2626 cat conftest.err
>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.
$ac_objext; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.
$ac_ext >&5
2637 ac_c_werror_flag
=$ac_save_c_werror_flag
2639 cat >conftest.
$ac_ext <<_ACEOF
2642 cat confdefs.h
>>conftest.
$ac_ext
2643 cat >>conftest.
$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.
$ac_objext
2655 if { (ac_try
="$ac_compile"
2657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2699 if test "$GCC" = yes; then
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 ac_cv_prog_cc_c89=no
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2777 *) ac_try_echo
=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.
$ac_objext; then
2790 ac_cv_prog_cc_c89
=$ac_arg
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.
$ac_ext >&5
2798 rm -f core conftest.err conftest.
$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 rm -f conftest.
$ac_ext
2806 case "x$ac_cv_prog_cc_c89" in
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2814 CC
="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2821 ac_cpp
='$CPP $CPPFLAGS'
2822 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers
=2
2835 { echo "$as_me:$LINENO: checking gcc version" >&5
2836 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2847 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2854 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 cat >conftest.
$ac_ext <<_ACEOF
2863 cat confdefs.h
>>conftest.
$ac_ext
2864 cat >>conftest.
$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2870 int frob(int, char *)
2875 rm -f conftest.
$ac_objext
2876 if { (ac_try
="$ac_compile"
2878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_lbl_cc_ansi_prototypes=no
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2909 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2926 int frob(int, char *)
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2935 *) ac_try_echo
=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.
$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa
=yes
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 ac_cv_lbl_cc_hpux_cc_aa
=no
2956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2959 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 { (exit 1); exit 1; }; }
2966 CFLAGS
="$savedcflags"
2967 V_CCOPT
="-Aa $V_CCOPT"
2969 cat >>confdefs.h
<<\_ACEOF
2970 #define _HPUX_SOURCE 1
2976 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 savedcflags
="$CFLAGS"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 cat >conftest.
$ac_ext <<_ACEOF
2986 cat confdefs.h
>>conftest.
$ac_ext
2987 cat >>conftest.
$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2993 int frob(int, char *)
2998 rm -f conftest.
$ac_objext
2999 if { (ac_try
="$ac_compile"
3001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 { (exit 1); exit 1; }; }
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3038 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 { (exit 1); exit 1; }; }
3044 V_INCLS="$V_INCLS -I/usr/local/include"
3045 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3058 V_CCOPT="$V_CCOPT -O"
3062 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3077 struct a { int b; };
3078 void c(const struct a *)
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3087 *) ac_try_echo
=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1
>conftest.err
3094 cat conftest.err
>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.
$ac_objext; then
3100 ac_cv_lbl_cc_const_proto
=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.
$ac_ext >&5
3105 ac_cv_lbl_cc_const_proto
=no
3108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no
; then
3115 cat >>confdefs.h
<<\_ACEOF
3124 { echo "$as_me:$LINENO: checking for inline" >&5
3125 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 save_CFLAGS
="$CFLAGS"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 for ac_lbl_inline
in inline __inline__ __inline
3136 cat >conftest.
$ac_ext <<_ACEOF
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3149 static inline struct iltest *
3152 static struct iltest xxx;
3164 rm -f conftest.
$ac_objext
3165 if { (ac_try
="$ac_compile"
3167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204 { echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6; }
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3213 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3228 static void foo(void) __attribute__ ((noreturn));
3237 main(int argc, char **argv)
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3247 *) ac_try_echo
=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1
>conftest.err
3254 cat conftest.err
>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.
$ac_objext; then
3260 ac_cv___attribute__
=yes
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3265 ac_cv___attribute__
=no
3268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3271 if test "$ac_cv___attribute__" = "yes"; then
3273 cat >>confdefs.h
<<\_ACEOF
3274 #define HAVE___ATTRIBUTE__ 1
3277 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3279 V_DEFS
="$V_DEFS -D_U_=\"\""
3281 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3282 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3284 if test "$ac_cv___attribute__" = "yes"; then
3286 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3287 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3288 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 cat >conftest.
$ac_ext <<_ACEOF
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3301 extern int (*foo)(const char *fmt, ...)
3302 __attribute__ ((format (printf, 1, 2)));
3305 main(int argc, char **argv)
3307 (*foo)("%s", "test");
3311 rm -f conftest.
$ac_objext
3312 if { (ac_try
="$ac_compile"
3314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3328 ac_cv___attribute___format_function_pointer=yes
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cv___attribute___format_function_pointer=no
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3341 cat >>confdefs.h <<\_ACEOF
3342 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3346 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3347 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3357 # On Suns, sometimes $CPP names a directory.
3358 if test -n "$CPP" && test -d "$CPP"; then
3361 if test -z "$CPP"; then
3362 if test "${ac_cv_prog_CPP+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 # Double quotes because CPP needs to be expanded
3366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 for ac_c_preproc_warn_flag in '' yes
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3384 # include <limits.h>
3386 # include <assert.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3393 *) ac_try_echo
=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1
>conftest.err
3400 cat conftest.err
>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev
/null
&& {
3403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.
$ac_ext >&5
3411 # Broken: fails on valid input.
3415 rm -f conftest.err conftest.
$ac_ext
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
3419 cat >conftest.
$ac_ext <<_ACEOF
3422 cat confdefs.h
>>conftest.
$ac_ext
3423 cat >>conftest.
$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ac_nonexistent.h>
3427 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null && {
3440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3443 # Broken: success on invalid input.
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Passes both tests.
3454 rm -f conftest.err conftest.$ac_ext
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.err conftest.
$ac_ext
3459 if $ac_preproc_ok; then
3471 { echo "$as_me:$LINENO: result: $CPP" >&5
3472 echo "${ECHO_T}$CPP" >&6; }
3474 for ac_c_preproc_warn_flag
in '' yes
3476 # Use a header file that comes with gcc, so configuring glibc
3477 # with a fresh cross-compiler works.
3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479 # <limits.h> exists even on freestanding compilers.
3480 # On the NeXT, cc -E runs the code through the compiler's parser,
3481 # not just through cpp. "Syntax error" is here to catch this case.
3482 cat >conftest.
$ac_ext <<_ACEOF
3485 cat confdefs.h
>>conftest.
$ac_ext
3486 cat >>conftest.
$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3489 # include <limits.h>
3491 # include <assert.h>
3495 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null && {
3508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3535 *) ac_try_echo
=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1
>conftest.err
3542 cat conftest.err
>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev
/null
&& {
3545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546 test ! -s conftest.err
3548 # Broken: success on invalid input.
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.
$ac_ext >&5
3554 # Passes both tests.
3559 rm -f conftest.err conftest.
$ac_ext
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.
$ac_ext
3564 if $ac_preproc_ok; then
3567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }
3575 ac_cpp
='$CPP $CPPFLAGS'
3576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3581 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 # Extract the first word of "grep ggrep" to use in msg output
3587 if test -z "$GREP"; then
3588 set dummy
grep ggrep
; ac_prog_name
=$2
3589 if test "${ac_cv_path_GREP+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_path_GREP_found
=false
3593 # Loop through the user's path and test for each of PROGNAME-LIST
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_prog
in grep ggrep
; do
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604 # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3607 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3610 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3613 cat "conftest.in" "conftest.in" >"conftest.tmp"
3614 mv "conftest.tmp" "conftest.in"
3615 cp "conftest.in" "conftest.nl"
3616 echo 'GREP' >> "conftest.nl"
3617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3618 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3619 ac_count
=`expr $ac_count + 1`
3620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 # Best one so far, save it but keep looking for a better one
3622 ac_cv_path_GREP
="$ac_path_GREP"
3623 ac_path_GREP_max
=$ac_count
3625 # 10*(2^10) chars as input seems more than enough
3626 test $ac_count -gt 10 && break
3628 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3632 $ac_path_GREP_found && break 3
3642 GREP
="$ac_cv_path_GREP"
3643 if test -z "$GREP"; then
3644 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 { (exit 1); exit 1; }; }
3650 ac_cv_path_GREP
=$GREP
3655 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3656 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3657 GREP
="$ac_cv_path_GREP"
3660 { echo "$as_me:$LINENO: checking for egrep" >&5
3661 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3662 if test "${ac_cv_path_EGREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3666 then ac_cv_path_EGREP
="$GREP -E"
3668 # Extract the first word of "egrep" to use in msg output
3669 if test -z "$EGREP"; then
3670 set dummy
egrep; ac_prog_name
=$2
3671 if test "${ac_cv_path_EGREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_path_EGREP_found
=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3680 test -z "$as_dir" && as_dir
=.
3681 for ac_prog
in egrep; do
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3684 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3685 # Check for GNU ac_path_EGREP and select it if it is found.
3686 # Check for GNU $ac_path_EGREP
3687 case `"$ac_path_EGREP" --version 2>&1` in
3689 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'EGREP' >> "conftest.nl"
3699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3700 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3701 ac_count
=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_EGREP
="$ac_path_EGREP"
3705 ac_path_EGREP_max
=$ac_count
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3710 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3714 $ac_path_EGREP_found && break 3
3724 EGREP
="$ac_cv_path_EGREP"
3725 if test -z "$EGREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3732 ac_cv_path_EGREP
=$EGREP
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3740 EGREP
="$ac_cv_path_EGREP"
3743 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3744 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3745 if test "${ac_cv_header_stdc+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 cat >conftest.
$ac_ext <<_ACEOF
3751 cat confdefs.h
>>conftest.
$ac_ext
3752 cat >>conftest.
$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3767 rm -f conftest.
$ac_objext
3768 if { (ac_try
="$ac_compile"
3770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 ac_cv_header_stdc=yes
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_header_stdc=no
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 if test $ac_cv_header_stdc = yes; then
3795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806 $EGREP "memchr" >/dev/null 2>&1; then
3809 ac_cv_header_stdc=no
3815 if test $ac_cv_header_stdc = yes; then
3816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "free" >/dev/null 2>&1; then
3830 ac_cv_header_stdc=no
3836 if test $ac_cv_header_stdc = yes; then
3837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3838 if test "$cross_compiling" = yes; then
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3849 #if ((' ' & 0x0FF) == 0x020)
3850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3853 # define ISLOWER(c) \
3854 (('a' <= (c) && (c) <= 'i') \
3855 || ('j' <= (c) && (c) <= 'r') \
3856 || ('s' <= (c) && (c) <= 'z'))
3857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3865 for (i = 0; i < 256; i++)
3866 if (XOR (islower (i), ISLOWER (i))
3867 || toupper (i) != TOUPPER (i))
3872 rm -f conftest$ac_exeext
3873 if { (ac_try="$ac_link"
3875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3876 *) ac_try_echo
=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_link") 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3883 { (case "(($ac_try" in
3884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_try") 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3894 echo "$as_me: program exited with status $ac_status" >&5
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3899 ac_cv_header_stdc=no
3901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3907 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3908 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3909 if test $ac_cv_header_stdc = yes; then
3911 cat >>confdefs.h <<\_ACEOF
3912 #define STDC_HEADERS 1
3917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3928 inttypes.h stdint.h unistd.h
3930 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_includes_default
3944 #include <$ac_header>
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3950 *) ac_try_echo
=$ac_try;;
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1
>conftest.err
3957 cat conftest.err
>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.
$ac_objext; then
3963 eval "$as_ac_Header=yes"
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.
$ac_ext >&5
3968 eval "$as_ac_Header=no"
3971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3973 ac_res
=`eval echo '${'$as_ac_Header'}'`
3974 { echo "$as_me:$LINENO: result: $ac_res" >&5
3975 echo "${ECHO_T}$ac_res" >&6; }
3976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3977 cat >>confdefs.h
<<_ACEOF
3978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3989 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_res
=`eval echo '${'$as_ac_Header'}'`
3999 { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 echo "${ECHO_T}$ac_res" >&6; }
4002 # Is the header compilable?
4003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4005 cat >conftest.
$ac_ext <<_ACEOF
4008 cat confdefs.h
>>conftest.
$ac_ext
4009 cat >>conftest.
$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_includes_default
4012 #include <$ac_header>
4014 rm -f conftest.
$ac_objext
4015 if { (ac_try
="$ac_compile"
4017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 ac_header_compiler=yes
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 ac_header_compiler=no
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4041 echo "${ECHO_T}$ac_header_compiler" >&6; }
4043 # Is the header present?
4044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <$ac_header>
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4057 *) ac_try_echo
=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1
>conftest.err
4064 cat conftest.err
>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev
/null
&& {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4070 ac_header_preproc
=yes
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.
$ac_ext >&5
4075 ac_header_preproc
=no
4078 rm -f conftest.err conftest.
$ac_ext
4079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080 echo "${ECHO_T}$ac_header_preproc" >&6; }
4082 # So? What about this header?
4083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4089 ac_header_preproc
=yes
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4109 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 eval "$as_ac_Header=\$ac_header_preproc"
4114 ac_res
=`eval echo '${'$as_ac_Header'}'`
4115 { echo "$as_me:$LINENO: result: $ac_res" >&5
4116 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 for ac_header
in net
/pfvar.h
4131 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4134 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.
$ac_ext <<_ACEOF
4140 cat confdefs.h
>>conftest.
$ac_ext
4141 cat >>conftest.
$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/socket.h>
4147 #include <$ac_header>
4149 rm -f conftest.
$ac_objext
4150 if { (ac_try
="$ac_compile"
4152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_compile") 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && {
4163 test -z "$ac_c_werror_flag" ||
4164 test ! -s conftest.err
4165 } && test -s conftest.$ac_objext; then
4166 eval "$as_ac_Header=yes"
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 eval "$as_ac_Header=no"
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_res=`eval echo '${'$as_ac_Header'}'`
4177 { echo "$as_me:$LINENO: result: $ac_res" >&5
4178 echo "${ECHO_T}$ac_res" >&6; }
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4188 if test "$ac_cv_header_net_pfvar_h" = yes; then
4189 LOCALSRC="print-pflog.c $LOCALSRC"
4192 for ac_header in netinet/if_ether.h
4194 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <sys/types.h>
4207 #include <sys/socket.h>
4209 #include <$ac_header>
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4215 *) ac_try_echo
=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1
>conftest.err
4222 cat conftest.err
>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.
$ac_objext; then
4228 eval "$as_ac_Header=yes"
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.
$ac_ext >&5
4233 eval "$as_ac_Header=no"
4236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4238 ac_res
=`eval echo '${'$as_ac_Header'}'`
4239 { echo "$as_me:$LINENO: result: $ac_res" >&5
4240 echo "${ECHO_T}$ac_res" >&6; }
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h
<<_ACEOF
4243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4252 # The simple test didn't work.
4253 # Do we need to include <net/if.h> first?
4254 # Unset ac_cv_header_netinet_if_ether_h so we don't
4255 # treat the previous failure as a cached value and
4256 # suppress the next test.
4258 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4259 echo "$as_me: Rechecking with some additional includes" >&6;}
4260 unset ac_cv_header_netinet_if_ether_h
4262 for ac_header
in netinet
/if_ether.h
4264 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4267 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 cat >conftest.
$ac_ext <<_ACEOF
4273 cat confdefs.h
>>conftest.
$ac_ext
4274 cat >>conftest.
$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <sys/types.h>
4277 #include <sys/socket.h>
4278 #include <netinet/in.h>
4283 #include <$ac_header>
4285 rm -f conftest.
$ac_objext
4286 if { (ac_try
="$ac_compile"
4288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest.$ac_objext; then
4302 eval "$as_ac_Header=yes"
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 eval "$as_ac_Header=no"
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_res=`eval echo '${'$as_ac_Header'}'`
4313 { echo "$as_me:$LINENO: result: $ac_res" >&5
4314 echo "${ECHO_T}$ac_res" >&6; }
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4326 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4327 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4328 if test "${ac_cv_header_time+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <sys/types.h>
4338 #include <sys/time.h>
4344 if ((struct tm *) 0)
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4354 *) ac_try_echo
=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4359 grep -v '^ *+' conftest.er1
>conftest.err
4361 cat conftest.err
>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.
$ac_objext; then
4367 ac_cv_header_time
=yes
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4372 ac_cv_header_time
=no
4375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4377 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4378 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4379 if test $ac_cv_header_time = yes; then
4381 cat >>confdefs.h
<<\_ACEOF
4382 #define TIME_WITH_SYS_TIME 1
4391 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4392 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4393 if test "$cross_compiling" = yes; then
4394 if test "${ac_cv_linux_vers+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 ac_cv_linux_vers
=unknown
4401 if test "${ac_cv_linux_vers+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 ac_cv_linux_vers
=`uname -r 2>&1 | \
4405 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4409 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4410 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4411 if test $ac_cv_linux_vers = unknown
; then
4412 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4413 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4414 { (exit 1); exit 1; }; }
4416 if test $ac_cv_linux_vers -lt 2 ; then
4417 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4418 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4419 { (exit 1); exit 1; }; }
4429 # Check whether --with-smi was given.
4430 if test "${with_smi+set}" = set; then
4437 if test "x$with_smi" != "xno" ; then
4439 for ac_header
in smi.h
4441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_res
=`eval echo '${'$as_ac_Header'}'`
4449 { echo "$as_me:$LINENO: result: $ac_res" >&5
4450 echo "${ECHO_T}$ac_res" >&6; }
4452 # Is the header compilable?
4453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4462 #include <$ac_header>
4464 rm -f conftest.
$ac_objext
4465 if { (ac_try
="$ac_compile"
4467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest.$ac_objext; then
4481 ac_header_compiler=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_header_compiler=no
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491 echo "${ECHO_T}$ac_header_compiler" >&6; }
4493 # Is the header present?
4494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <$ac_header>
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4507 *) ac_try_echo
=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1
>conftest.err
4514 cat conftest.err
>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev
/null
&& {
4517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4520 ac_header_preproc
=yes
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.
$ac_ext >&5
4525 ac_header_preproc
=no
4528 rm -f conftest.err conftest.
$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4530 echo "${ECHO_T}$ac_header_preproc" >&6; }
4532 # So? What about this header?
4533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4539 ac_header_preproc
=yes
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4559 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 eval "$as_ac_Header=\$ac_header_preproc"
4564 ac_res
=`eval echo '${'$as_ac_Header'}'`
4565 { echo "$as_me:$LINENO: result: $ac_res" >&5
4566 echo "${ECHO_T}$ac_res" >&6; }
4569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 cat >>confdefs.h
<<_ACEOF
4571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4580 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4581 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_check_lib_save_LIBS
=$LIBS
4586 cat >conftest.
$ac_ext <<_ACEOF
4589 cat confdefs.h
>>conftest.
$ac_ext
4590 cat >>conftest.
$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4593 /* Override any GCC internal prototype to avoid an error.
4594 Use char because int might match the return type of a GCC
4595 builtin and then its argument prototype would still apply. */
4608 rm -f conftest.
$ac_objext conftest
$ac_exeext
4609 if { (ac_try
="$ac_link"
4611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_link") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest$ac_exeext &&
4625 $as_test_x conftest$ac_exeext; then
4626 ac_cv_lib_smi_smiInit=yes
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_lib_smi_smiInit=no
4634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4635 conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4638 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4639 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4640 if test $ac_cv_lib_smi_smiInit = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define HAVE_LIBSMI 1
4649 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4651 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4652 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4653 if test "$cross_compiling" = yes; then
4654 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4655 echo "${ECHO_T}not when cross-compiling" >&6; }
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 /* libsmi available check */
4669 int current, revision, age, n;
4670 const int required = 2;
4673 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4675 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4678 if (required < current - age || required > current)
4684 rm -f conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4688 *) ac_try_echo
=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4695 { (case "(($ac_try" in
4696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_try") 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 { echo "$as_me:$LINENO: result: yes" >&5
4705 echo "${ECHO_T}yes" >&6; }
4706 cat >>confdefs.h <<\_ACEOF
4712 echo "$as_me: program exited with status $ac_status" >&5
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4718 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4719 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4720 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4721 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4722 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4723 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4724 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4725 echo "${ECHO_T}no - too old" >&6; } ;;
4726 *) { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; } ;;
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4738 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4739 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4740 # Check whether --enable-smb was given.
4741 if test "${enable_smb+set}" = set; then
4742 enableval=$enable_smb;
4747 case "$enableval" in
4748 yes) { echo "$as_me:$LINENO: result: yes" >&5
4749 echo "${ECHO_T}yes" >&6; }
4750 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4751 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4752 cat >>confdefs.h <<\_ACEOF
4753 #define TCPDUMP_DO_SMB 1
4756 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4758 *) { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4764 # Check whether --with-user was given.
4765 if test "${with_user+set}" = set; then
4769 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4770 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4771 if test ! -z "$with_user" ; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define WITH_USER "$withval"
4776 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4777 echo "${ECHO_T}to \"$withval\"" >&6; }
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4784 # Check whether --with-chroot was given.
4785 if test "${with_chroot+set}" = set; then
4786 withval=$with_chroot;
4789 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4790 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4791 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define WITH_CHROOT "$withval"
4796 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4797 echo "${ECHO_T}to \"$withval\"" >&6; }
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4803 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4804 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4805 # Check whether --enable-ipv6 was given.
4806 if test "${enable_ipv6+set}" = set; then
4807 enableval=$enable_ipv6; case "$enableval" in
4808 yes) { echo "$as_me:$LINENO: result: yes" >&5
4809 echo "${ECHO_T}yes" >&6; }
4810 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 $LOCALSRC"
4811 cat >>confdefs.h <<\_ACEOF
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4824 if test "$cross_compiling" = yes; then
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 /* AF_INET6 available check */
4837 #include <sys/types.h>
4838 #include <sys/socket.h>
4841 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4852 *) ac_try_echo
=$ac_try;;
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_link") 2>&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4859 { (case "(($ac_try" in
4860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_try") 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 { echo "$as_me:$LINENO: result: yes" >&5
4869 echo "${ECHO_T}yes" >&6; }
4870 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 $LOCALSRC"
4871 cat >>confdefs.h <<\_ACEOF
4877 echo "$as_me: program exited with status $ac_status" >&5
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 if test "$ipv6" = "yes"; then
4898 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4899 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4900 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <netinet/in.h>
4910 #ifdef IPV6_INRIA_VERSION
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 $EGREP "yes" >/dev/null 2>&1; then
4917 CFLAGS="-DINET6 $CFLAGS"
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 #include <netinet/in.h>
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 $EGREP "yes" >/dev/null 2>&1; then
4938 ipv6libdir=/usr/local/v6/lib;
4940 CFLAGS="-DINET6 $CFLAGS"
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <features.h>
4953 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "yes" >/dev/null 2>&1; then
4960 CFLAGS="-DINET6 $CFLAGS"
4966 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4969 ipv6libdir=/usr/inet6/lib
4971 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <sys/param.h>
4982 #ifdef _TOSHIBA_INET6
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987 $EGREP "yes" >/dev/null 2>&1; then
4990 ipv6libdir=/usr/local/v6/lib;
4991 CFLAGS="-DINET6 $CFLAGS"
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include </usr/local/v6/include/sys/v6config.h>
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "yes" >/dev/null 2>&1; then
5012 ipv6libdir=/usr/local/v6/lib;
5013 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <sys/param.h>
5026 #ifdef _ZETA_MINAMI_INET6
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "yes" >/dev/null 2>&1; then
5034 ipv6libdir=/usr/local/v6/lib;
5035 CFLAGS="-DINET6 $CFLAGS"
5041 if test "$ipv6type" != "unknown"; then
5045 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5046 echo "${ECHO_T}$ipv6type" >&6; }
5049 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5050 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5051 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5052 echo "You have $ipv6lib library, using it"
5054 if test "$ipv6trylibc" = "yes"; then
5055 echo "You do not have $ipv6lib library, using libc"
5057 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5058 echo "You need to fetch lib$ipv6lib.a from appropriate"
5059 echo 'ipv6 kit and compile beforehand.'
5066 if test "$ipv6" = "yes"; then
5068 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5069 # function in libc; there are "ngetaddrinfo()" and
5070 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5071 # "getaddrinfo" to be either "ngetaddrinfo" or
5072 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5073 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5075 # So this test doesn't work on Tru64 5.1, and possibly
5076 # on other 5.x releases. This causes the configure
5077 # script to become confused, and results in libpcap
5078 # being unbuildable.
5080 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5081 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5082 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_func_search_save_LIBS=$LIBS
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 /* Override any GCC internal prototype to avoid an error.
5094 Use char because int might match the return type of a GCC
5095 builtin and then its argument prototype would still apply. */
5099 char getaddrinfo ();
5103 return getaddrinfo ();
5108 for ac_lib in '' socket; do
5109 if test -z "$ac_lib"; then
5110 ac_res="none required"
5113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5115 rm -f conftest.$ac_objext conftest$ac_exeext
5116 if { (ac_try="$ac_link"
5118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5119 *) ac_try_echo
=$ac_try;;
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_link") 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest
$ac_exeext &&
5132 $as_test_x conftest
$ac_exeext; then
5133 ac_cv_search_getaddrinfo
=$ac_res
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.
$ac_ext >&5
5141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5143 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5147 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5150 ac_cv_search_getaddrinfo
=no
5153 LIBS
=$ac_func_search_save_LIBS
5155 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5156 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5157 ac_res
=$ac_cv_search_getaddrinfo
5158 if test "$ac_res" != no
; then
5159 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5160 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5161 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5162 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test "$cross_compiling" = yes; then
5166 td_cv_buggygetaddrinfo
=yes
5168 cat >conftest.
$ac_ext <<_ACEOF
5171 cat confdefs.h
>>conftest.
$ac_ext
5172 cat >>conftest.
$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5175 #include <sys/types.h>
5178 #include <sys/socket.h>
5179 #include <netinet/in.h>
5183 int passive, gaierr, inet4 = 0, inet6 = 0;
5184 struct addrinfo hints, *ai, *aitop;
5185 char straddr[INET6_ADDRSTRLEN], strport[16];
5187 for (passive = 0; passive <= 1; passive++) {
5188 memset(&hints, 0, sizeof(hints));
5189 hints.ai_family = AF_UNSPEC;
5190 hints.ai_flags = passive ? AI_PASSIVE : 0;
5191 hints.ai_socktype = SOCK_STREAM;
5192 hints.ai_protocol = IPPROTO_TCP;
5193 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5194 (void)gai_strerror(gaierr);
5197 for (ai = aitop; ai; ai = ai->ai_next) {
5198 if (ai->ai_addr == NULL ||
5199 ai->ai_addrlen == 0 ||
5200 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5201 straddr, sizeof(straddr), strport, sizeof(strport),
5202 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5205 switch (ai->ai_family) {
5207 if (strcmp(strport, "54321") != 0) {
5211 if (strcmp(straddr, "0.0.0.0") != 0) {
5215 if (strcmp(straddr, "127.0.0.1") != 0) {
5222 if (strcmp(strport, "54321") != 0) {
5226 if (strcmp(straddr, "::") != 0) {
5230 if (strcmp(straddr, "::1") != 0) {
5247 /* another family support? */
5253 /* supported family should be 2, unsupported family should be 0 */
5254 if (!(inet4 == 0 || inet4 == 2))
5256 if (!(inet6 == 0 || inet6 == 2))
5260 freeaddrinfo(aitop);
5265 freeaddrinfo(aitop);
5270 rm -f conftest
$ac_exeext
5271 if { (ac_try
="$ac_link"
5273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_link") 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281 { (case "(($ac_try" in
5282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5283 *) ac_try_echo
=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_try") 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 td_cv_buggygetaddrinfo
=no
5292 echo "$as_me: program exited with status $ac_status" >&5
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.
$ac_ext >&5
5297 td_cv_buggygetaddrinfo
=yes
5299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5305 if test "$td_cv_buggygetaddrinfo" = no
; then
5306 { echo "$as_me:$LINENO: result: good" >&5
5307 echo "${ECHO_T}good" >&6; }
5309 { echo "$as_me:$LINENO: result: buggy" >&5
5310 echo "${ECHO_T}buggy" >&6; }
5313 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5315 # XXX - it doesn't appear that "ipv6type" can ever be
5316 # set to "linux". Should this be testing for
5317 # "linux-glibc", or for that *or* "linux-libinet6"?
5318 # If the latter, note that "linux-libinet6" is also
5319 # the type given to some non-Linux OSes.
5321 if test "$ipv6type" != "linux"; then
5322 echo 'Fatal: You must get working getaddrinfo() function.'
5323 echo ' or you can specify "--disable-ipv6"'.
5326 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5327 echo ' Better upgrade your system library to newest version'
5328 echo ' of GNU C library (aka glibc).'
5335 for ac_func
in getnameinfo
5337 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5340 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 cat confdefs.h
>>conftest.
$ac_ext
5347 cat >>conftest.
$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5351 #define $ac_func innocuous_$ac_func
5353 /* System header to define __stub macros and hopefully few prototypes,
5354 which can conflict with char $ac_func (); below.
5355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356 <limits.h> exists even on freestanding compilers. */
5359 # include <limits.h>
5361 # include <assert.h>
5366 /* Override any GCC internal prototype to avoid an error.
5367 Use char because int might match the return type of a GCC
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined __stub_$ac_func || defined __stub___$ac_func
5388 rm -f conftest.
$ac_objext conftest
$ac_exeext
5389 if { (ac_try
="$ac_link"
5391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_link") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest$ac_exeext &&
5405 $as_test_x conftest$ac_exeext; then
5406 eval "$as_ac_var=yes"
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 eval "$as_ac_var=no"
5414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415 conftest$ac_exeext conftest.$ac_ext
5417 ac_res=`eval echo '${'$as_ac_var'}'`
5418 { echo "$as_me:$LINENO: result: $ac_res" >&5
5419 echo "${ECHO_T}$ac_res" >&6; }
5420 if test `eval echo '${'$as_ac_var'}'` = yes; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5426 case " $LIBOBJS " in
5427 *" $ac_func.$ac_objext "* ) ;;
5428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5438 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5439 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5440 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <netdnet/dnetdb.h>
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5454 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5456 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5461 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5462 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5463 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5464 cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5470 { echo "$as_me:$LINENO: checking for char" >&5
5471 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5472 if test "${ac_cv_type_char+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef char ac__type_new_;
5486 if ((ac__type_new_ *) 0)
5488 if (sizeof (ac__type_new_))
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5498 *) ac_try_echo
=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1
>conftest.err
5505 cat conftest.err
>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.
$ac_objext; then
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.
$ac_ext >&5
5519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5522 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5524 # The cast to long int works around a bug in the HP C Compiler
5525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5527 # This bug is HP SR number 8606223364.
5528 { echo "$as_me:$LINENO: checking size of char" >&5
5529 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5530 if test "${ac_cv_sizeof_char+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 if test "$cross_compiling" = yes; then
5534 # Depending upon the size, compute the lo and hi bounds.
5535 cat >conftest.
$ac_ext <<_ACEOF
5538 cat confdefs.h
>>conftest.
$ac_ext
5539 cat >>conftest.
$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 $ac_includes_default
5542 typedef char ac__type_sizeof_;
5546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5553 rm -f conftest.
$ac_objext
5554 if { (ac_try
="$ac_compile"
5556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1 >conftest.err
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5579 typedef char ac__type_sizeof_;
5583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5594 *) ac_try_echo
=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1
>conftest.err
5601 cat conftest.err
>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.
$ac_objext; then
5607 ac_hi
=$ac_mid; break
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.
$ac_ext >&5
5612 ac_lo
=`expr $ac_mid + 1`
5613 if test $ac_lo -le $ac_mid; then
5617 ac_mid
=`expr 2 '*' $ac_mid + 1`
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 $ac_includes_default
5633 typedef char ac__type_sizeof_;
5637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5644 rm -f conftest.
$ac_objext
5645 if { (ac_try
="$ac_compile"
5647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && {
5658 test -z "$ac_c_werror_flag" ||
5659 test ! -s conftest.err
5660 } && test -s conftest.$ac_objext; then
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 typedef char ac__type_sizeof_;
5674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5685 *) ac_try_echo
=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1
>conftest.err
5692 cat conftest.err
>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.
$ac_objext; then
5698 ac_lo
=$ac_mid; break
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.
$ac_ext >&5
5703 ac_hi
=`expr '(' $ac_mid ')' - 1`
5704 if test $ac_mid -le $ac_hi; then
5708 ac_mid
=`expr 2 '*' $ac_mid`
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.
$ac_ext >&5
5720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 # Binary search between lo and hi bounds.
5725 while test "x$ac_lo" != "x$ac_hi"; do
5726 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5727 cat >conftest.
$ac_ext <<_ACEOF
5730 cat confdefs.h
>>conftest.
$ac_ext
5731 cat >>conftest.
$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 $ac_includes_default
5734 typedef char ac__type_sizeof_;
5738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5745 rm -f conftest.
$ac_objext
5746 if { (ac_try
="$ac_compile"
5748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_lo=`expr '(' $ac_mid ')' + 1`
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ?*) ac_cv_sizeof_char=$ac_lo;;
5774 '') if test "$ac_cv_type_char" = yes; then
5775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5776 See \`config.log
' for more details." >&5
5777 echo "$as_me: error: cannot compute sizeof (char)
5778 See \`config.log' for more details.
" >&2;}
5779 { (exit 77); exit 77; }; }
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 typedef char ac__type_sizeof_;
5793 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5794 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5801 FILE *f = fopen ("conftest.val
", "w
");
5804 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5806 long int i = longval ();
5807 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5809 fprintf (f, "%ld
\n", i);
5813 unsigned long int i = ulongval ();
5814 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5816 fprintf (f, "%lu
\n", i);
5818 return ferror (f) || fclose (f) != 0;
5824 rm -f conftest$ac_exeext
5825 if { (ac_try="$ac_link"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_link") 2>&5
5833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_sizeof_char=`cat conftest.val`
5846 echo "$as_me: program exited with status
$ac_status" >&5
5847 echo "$as_me: failed program was
:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5851 if test "$ac_cv_type_char" = yes; then
5852 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5853 See \
`config.log' for more details." >&5
5854 echo "$as_me: error: cannot compute sizeof (char)
5855 See \`config.log
' for more details." >&2;}
5856 { (exit 77); exit 77; }; }
5861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5865 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5866 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_CHAR $ac_cv_sizeof_char
5875 { echo "$as_me:$LINENO: checking for short" >&5
5876 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5877 if test "${ac_cv_type_short+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5887 typedef short ac__type_new_;
5891 if ((ac__type_new_ *) 0)
5893 if (sizeof (ac__type_new_))
5899 rm -f conftest.$ac_objext
5900 if { (ac_try="$ac_compile"
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5908 grep -v '^
*+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && {
5913 test -z "$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5915 } && test -s conftest.$ac_objext; then
5916 ac_cv_type_short=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's
/^
/|
/' conftest.$ac_ext >&5
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5927 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5929 # The cast to long int works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 { echo "$as_me:$LINENO: checking size of short" >&5
5934 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5935 if test "${ac_cv_sizeof_short+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test "$cross_compiling" = yes; then
5939 # Depending upon the size, compute the lo and hi bounds.
5940 cat >conftest.
$ac_ext <<_ACEOF
5943 cat confdefs.h
>>conftest.
$ac_ext
5944 cat >>conftest.
$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 typedef short ac__type_sizeof_;
5951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5958 rm -f conftest.
$ac_objext
5959 if { (ac_try
="$ac_compile"
5961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 typedef short ac__type_sizeof_;
5988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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
6012 ac_hi
=$ac_mid; break
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6017 ac_lo
=`expr $ac_mid + 1`
6018 if test $ac_lo -le $ac_mid; then
6022 ac_mid
=`expr 2 '*' $ac_mid + 1`
6025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.
$ac_ext >&5
6031 cat >conftest.
$ac_ext <<_ACEOF
6034 cat confdefs.h
>>conftest.
$ac_ext
6035 cat >>conftest.
$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 $ac_includes_default
6038 typedef short ac__type_sizeof_;
6042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6049 rm -f conftest.
$ac_objext
6050 if { (ac_try
="$ac_compile"
6052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6075 typedef short ac__type_sizeof_;
6079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6090 *) ac_try_echo
=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
6097 cat conftest.err
>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.
$ac_objext; then
6103 ac_lo
=$ac_mid; break
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.
$ac_ext >&5
6108 ac_hi
=`expr '(' $ac_mid ')' - 1`
6109 if test $ac_mid -le $ac_hi; then
6113 ac_mid
=`expr 2 '*' $ac_mid`
6116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.
$ac_ext >&5
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6129 # Binary search between lo and hi bounds.
6130 while test "x$ac_lo" != "x$ac_hi"; do
6131 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6139 typedef short ac__type_sizeof_;
6143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6150 rm -f conftest.
$ac_objext
6151 if { (ac_try
="$ac_compile"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.$ac_objext; then
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_lo=`expr '(' $ac_mid ')' + 1`
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 ?*) ac_cv_sizeof_short=$ac_lo;;
6179 '') if test "$ac_cv_type_short" = yes; then
6180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6181 See \`config.log
' for more details." >&5
6182 echo "$as_me: error: cannot compute sizeof (short)
6183 See \`config.log' for more details.
" >&2;}
6184 { (exit 77); exit 77; }; }
6186 ac_cv_sizeof_short=0
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 typedef short ac__type_sizeof_;
6198 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6199 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6206 FILE *f = fopen ("conftest.val
", "w
");
6209 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6211 long int i = longval ();
6212 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6214 fprintf (f, "%ld
\n", i);
6218 unsigned long int i = ulongval ();
6219 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6221 fprintf (f, "%lu
\n", i);
6223 return ferror (f) || fclose (f) != 0;
6229 rm -f conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_link") 2>&5
6238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6240 { (case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_try") 2>&5
6247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_sizeof_short=`cat conftest.val`
6251 echo "$as_me: program exited with status
$ac_status" >&5
6252 echo "$as_me: failed program was
:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6256 if test "$ac_cv_type_short" = yes; then
6257 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6258 See \
`config.log' for more details." >&5
6259 echo "$as_me: error: cannot compute sizeof (short)
6260 See \`config.log
' for more details." >&2;}
6261 { (exit 77); exit 77; }; }
6263 ac_cv_sizeof_short=0
6266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6270 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6271 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6275 cat >>confdefs.h <<_ACEOF
6276 #define SIZEOF_SHORT $ac_cv_sizeof_short
6280 { echo "$as_me:$LINENO: checking for int" >&5
6281 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6282 if test "${ac_cv_type_int+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6292 typedef int ac__type_new_;
6296 if ((ac__type_new_ *) 0)
6298 if (sizeof (ac__type_new_))
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6313 grep -v '^
*+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6323 echo "$as_me: failed program was:" >&5
6324 sed 's
/^
/|
/' conftest.$ac_ext >&5
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6334 # The cast to long int works around a bug in the HP C Compiler
6335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6337 # This bug is HP SR number 8606223364.
6338 { echo "$as_me:$LINENO: checking size of int" >&5
6339 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6340 if test "${ac_cv_sizeof_int+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 if test "$cross_compiling" = yes; then
6344 # Depending upon the size, compute the lo and hi bounds.
6345 cat >conftest.
$ac_ext <<_ACEOF
6348 cat confdefs.h
>>conftest.
$ac_ext
6349 cat >>conftest.
$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 typedef int ac__type_sizeof_;
6356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6363 rm -f conftest.
$ac_objext
6364 if { (ac_try
="$ac_compile"
6366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && {
6377 test -z "$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 } && test -s conftest.$ac_objext; then
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6389 typedef int ac__type_sizeof_;
6393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6400 rm -f conftest.$ac_objext
6401 if { (ac_try="$ac_compile"
6403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6404 *) ac_try_echo
=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1
>conftest.err
6411 cat conftest.err
>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.
$ac_objext; then
6417 ac_hi
=$ac_mid; break
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.
$ac_ext >&5
6422 ac_lo
=`expr $ac_mid + 1`
6423 if test $ac_lo -le $ac_mid; then
6427 ac_mid
=`expr 2 '*' $ac_mid + 1`
6430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.
$ac_ext >&5
6436 cat >conftest.
$ac_ext <<_ACEOF
6439 cat confdefs.h
>>conftest.
$ac_ext
6440 cat >>conftest.
$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 $ac_includes_default
6443 typedef int ac__type_sizeof_;
6447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6454 rm -f conftest.
$ac_objext
6455 if { (ac_try
="$ac_compile"
6457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6480 typedef int ac__type_sizeof_;
6484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6495 *) ac_try_echo
=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6500 grep -v '^ *+' conftest.er1
>conftest.err
6502 cat conftest.err
>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.
$ac_objext; then
6508 ac_lo
=$ac_mid; break
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6513 ac_hi
=`expr '(' $ac_mid ')' - 1`
6514 if test $ac_mid -le $ac_hi; then
6518 ac_mid
=`expr 2 '*' $ac_mid`
6521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.
$ac_ext >&5
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 # Binary search between lo and hi bounds.
6535 while test "x$ac_lo" != "x$ac_hi"; do
6536 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6537 cat >conftest.
$ac_ext <<_ACEOF
6540 cat confdefs.h
>>conftest.
$ac_ext
6541 cat >>conftest.
$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 typedef int ac__type_sizeof_;
6548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6555 rm -f conftest.
$ac_objext
6556 if { (ac_try
="$ac_compile"
6558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest.$ac_objext; then
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 ac_lo=`expr '(' $ac_mid ')' + 1`
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 ?*) ac_cv_sizeof_int=$ac_lo;;
6584 '') if test "$ac_cv_type_int" = yes; then
6585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6586 See \`config.log
' for more details." >&5
6587 echo "$as_me: error: cannot compute sizeof (int)
6588 See \`config.log' for more details.
" >&2;}
6589 { (exit 77); exit 77; }; }
6595 cat >conftest.$ac_ext <<_ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6602 typedef int ac__type_sizeof_;
6603 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6604 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6611 FILE *f = fopen ("conftest.val
", "w
");
6614 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6616 long int i = longval ();
6617 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6619 fprintf (f, "%ld
\n", i);
6623 unsigned long int i = ulongval ();
6624 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6626 fprintf (f, "%lu
\n", i);
6628 return ferror (f) || fclose (f) != 0;
6634 rm -f conftest$ac_exeext
6635 if { (ac_try="$ac_link"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_link") 2>&5
6643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645 { (case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_try") 2>&5
6652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_sizeof_int=`cat conftest.val`
6656 echo "$as_me: program exited with status
$ac_status" >&5
6657 echo "$as_me: failed program was
:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6661 if test "$ac_cv_type_int" = yes; then
6662 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6663 See \
`config.log' for more details." >&5
6664 echo "$as_me: error: cannot compute sizeof (int)
6665 See \`config.log
' for more details." >&2;}
6666 { (exit 77); exit 77; }; }
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6676 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6680 cat >>confdefs.h <<_ACEOF
6681 #define SIZEOF_INT $ac_cv_sizeof_int
6685 { echo "$as_me:$LINENO: checking for long" >&5
6686 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6687 if test "${ac_cv_type_long+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 typedef long ac__type_new_;
6701 if ((ac__type_new_ *) 0)
6703 if (sizeof (ac__type_new_))
6709 rm -f conftest.$ac_objext
6710 if { (ac_try="$ac_compile"
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6718 grep -v '^
*+' conftest.er1 >conftest.err
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6728 echo "$as_me: failed program was:" >&5
6729 sed 's
/^
/|
/' conftest.$ac_ext >&5
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6737 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6739 # The cast to long int works around a bug in the HP C Compiler
6740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6742 # This bug is HP SR number 8606223364.
6743 { echo "$as_me:$LINENO: checking size of long" >&5
6744 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6745 if test "${ac_cv_sizeof_long+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test "$cross_compiling" = yes; then
6749 # Depending upon the size, compute the lo and hi bounds.
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 typedef long ac__type_sizeof_;
6761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6768 rm -f conftest.
$ac_objext
6769 if { (ac_try
="$ac_compile"
6771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_compile") 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } && {
6782 test -z "$ac_c_werror_flag" ||
6783 test ! -s conftest.err
6784 } && test -s conftest.$ac_objext; then
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 $ac_includes_default
6794 typedef long ac__type_sizeof_;
6798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6805 rm -f conftest.$ac_objext
6806 if { (ac_try="$ac_compile"
6808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6809 *) ac_try_echo
=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_compile") 2>conftest.er1
6814 grep -v '^ *+' conftest.er1
>conftest.err
6816 cat conftest.err
>&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest.
$ac_objext; then
6822 ac_hi
=$ac_mid; break
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.
$ac_ext >&5
6827 ac_lo
=`expr $ac_mid + 1`
6828 if test $ac_lo -le $ac_mid; then
6832 ac_mid
=`expr 2 '*' $ac_mid + 1`
6835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.
$ac_ext >&5
6841 cat >conftest.
$ac_ext <<_ACEOF
6844 cat confdefs.h
>>conftest.
$ac_ext
6845 cat >>conftest.
$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 typedef long ac__type_sizeof_;
6852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6859 rm -f conftest.
$ac_objext
6860 if { (ac_try
="$ac_compile"
6862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 typedef long ac__type_sizeof_;
6889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6900 *) ac_try_echo
=$ac_try;;
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1
>conftest.err
6907 cat conftest.err
>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.
$ac_objext; then
6913 ac_lo
=$ac_mid; break
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.
$ac_ext >&5
6918 ac_hi
=`expr '(' $ac_mid ')' - 1`
6919 if test $ac_mid -le $ac_hi; then
6923 ac_mid
=`expr 2 '*' $ac_mid`
6926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 # Binary search between lo and hi bounds.
6940 while test "x$ac_lo" != "x$ac_hi"; do
6941 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 typedef long ac__type_sizeof_;
6953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6960 rm -f conftest.
$ac_objext
6961 if { (ac_try
="$ac_compile"
6963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_lo=`expr '(' $ac_mid ')' + 1`
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 ?*) ac_cv_sizeof_long=$ac_lo;;
6989 '') if test "$ac_cv_type_long" = yes; then
6990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6991 See \`config.log
' for more details." >&5
6992 echo "$as_me: error: cannot compute sizeof (long)
6993 See \`config.log' for more details.
" >&2;}
6994 { (exit 77); exit 77; }; }
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 $ac_includes_default
7007 typedef long ac__type_sizeof_;
7008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7016 FILE *f = fopen ("conftest.val
", "w
");
7019 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7021 long int i = longval ();
7022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7024 fprintf (f, "%ld
\n", i);
7028 unsigned long int i = ulongval ();
7029 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7031 fprintf (f, "%lu
\n", i);
7033 return ferror (f) || fclose (f) != 0;
7039 rm -f conftest$ac_exeext
7040 if { (ac_try="$ac_link"
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_link") 2>&5
7048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7050 { (case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_try") 2>&5
7057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 ac_cv_sizeof_long=`cat conftest.val`
7061 echo "$as_me: program exited with status
$ac_status" >&5
7062 echo "$as_me: failed program was
:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7066 if test "$ac_cv_type_long" = yes; then
7067 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7068 See \
`config.log' for more details." >&5
7069 echo "$as_me: error: cannot compute sizeof (long)
7070 See \`config.log
' for more details." >&2;}
7071 { (exit 77); exit 77; }; }
7076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7081 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7085 cat >>confdefs.h <<_ACEOF
7086 #define SIZEOF_LONG $ac_cv_sizeof_long
7090 { echo "$as_me:$LINENO: checking for long long" >&5
7091 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7092 if test "${ac_cv_type_long_long+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7102 typedef long long ac__type_new_;
7106 if ((ac__type_new_ *) 0)
7108 if (sizeof (ac__type_new_))
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^
*+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_type_long_long=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's
/^
/|
/' conftest.$ac_ext >&5
7136 ac_cv_type_long_long=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7142 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7144 # The cast to long int works around a bug in the HP C Compiler
7145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7147 # This bug is HP SR number 8606223364.
7148 { echo "$as_me:$LINENO: checking size of long long" >&5
7149 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7150 if test "${ac_cv_sizeof_long_long+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 if test "$cross_compiling" = yes; then
7154 # Depending upon the size, compute the lo and hi bounds.
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 typedef long long ac__type_sizeof_;
7166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7173 rm -f conftest.
$ac_objext
7174 if { (ac_try
="$ac_compile"
7176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 $ac_includes_default
7199 typedef long long ac__type_sizeof_;
7203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7214 *) ac_try_echo
=$ac_try;;
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.
$ac_objext; then
7227 ac_hi
=$ac_mid; break
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.
$ac_ext >&5
7232 ac_lo
=`expr $ac_mid + 1`
7233 if test $ac_lo -le $ac_mid; then
7237 ac_mid
=`expr 2 '*' $ac_mid + 1`
7240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.
$ac_ext >&5
7246 cat >conftest.
$ac_ext <<_ACEOF
7249 cat confdefs.h
>>conftest.
$ac_ext
7250 cat >>conftest.
$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7253 typedef long long ac__type_sizeof_;
7257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7264 rm -f conftest.
$ac_objext
7265 if { (ac_try
="$ac_compile"
7267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7273 grep -v '^ *+' conftest.er1 >conftest.err
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.$ac_objext; then
7283 cat >conftest.$ac_ext <<_ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 typedef long long ac__type_sizeof_;
7294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7305 *) ac_try_echo
=$ac_try;;
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7310 grep -v '^ *+' conftest.er1
>conftest.err
7312 cat conftest.err
>&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.
$ac_objext; then
7318 ac_lo
=$ac_mid; break
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.
$ac_ext >&5
7323 ac_hi
=`expr '(' $ac_mid ')' - 1`
7324 if test $ac_mid -le $ac_hi; then
7328 ac_mid
=`expr 2 '*' $ac_mid`
7331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.
$ac_ext >&5
7340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 # Binary search between lo and hi bounds.
7345 while test "x$ac_lo" != "x$ac_hi"; do
7346 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7347 cat >conftest.
$ac_ext <<_ACEOF
7350 cat confdefs.h
>>conftest.
$ac_ext
7351 cat >>conftest.
$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 $ac_includes_default
7354 typedef long long ac__type_sizeof_;
7358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7365 rm -f conftest.
$ac_objext
7366 if { (ac_try
="$ac_compile"
7368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 ac_lo=`expr '(' $ac_mid ')' + 1`
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7394 '') if test "$ac_cv_type_long_long" = yes; then
7395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7396 See \`config.log
' for more details." >&5
7397 echo "$as_me: error: cannot compute sizeof (long long)
7398 See \`config.log' for more details.
" >&2;}
7399 { (exit 77); exit 77; }; }
7401 ac_cv_sizeof_long_long=0
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 typedef long long ac__type_sizeof_;
7413 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7414 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7421 FILE *f = fopen ("conftest.val
", "w
");
7424 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7426 long int i = longval ();
7427 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7429 fprintf (f, "%ld
\n", i);
7433 unsigned long int i = ulongval ();
7434 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7436 fprintf (f, "%lu
\n", i);
7438 return ferror (f) || fclose (f) != 0;
7444 rm -f conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>&5
7453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455 { (case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_try") 2>&5
7462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_sizeof_long_long=`cat conftest.val`
7466 echo "$as_me: program exited with status
$ac_status" >&5
7467 echo "$as_me: failed program was
:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7471 if test "$ac_cv_type_long_long" = yes; then
7472 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7473 See \
`config.log' for more details." >&5
7474 echo "$as_me: error: cannot compute sizeof (long long)
7475 See \`config.log
' for more details." >&2;}
7476 { (exit 77); exit 77; }; }
7478 ac_cv_sizeof_long_long=0
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7486 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7490 cat >>confdefs.h <<_ACEOF
7491 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7497 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7498 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7499 if test "${ac_cv_addrinfo+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7527 grep -v '^
*+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest.$ac_objext; then
7537 echo "$as_me: failed program was:" >&5
7538 sed 's
/^
/|
/' conftest.$ac_ext >&5
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7547 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7548 if test $ac_cv_addrinfo = yes; then
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_ADDRINFO 1
7554 cat >>confdefs.h <<\_ACEOF
7555 #define NEED_ADDRINFO_H 1
7560 if test "$ac_cv_addrinfo" = no; then
7561 missing_includes=yes
7565 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7566 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7567 if test "${ac_cv_maxserv+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582 $EGREP "yes" >/dev/null 2>&1; then
7591 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7592 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7593 if test $ac_cv_maxserv != yes; then
7594 cat >>confdefs.h <<\_ACEOF
7595 #define NEED_ADDRINFO_H 1
7600 if test "$ac_cv_maxserv" = no; then
7601 missing_includes=yes
7605 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7606 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7607 if test "${ac_cv_namereqd+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622 $EGREP "yes" >/dev/null 2>&1; then
7631 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7632 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7633 if test $ac_cv_namereqd != yes; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define NEED_ADDRINFO_H 1
7640 if test "$ac_cv_namereqd" = no; then
7641 missing_includes=yes
7645 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7646 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7647 if test "${ac_cv_sa_storage+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 # include <sys/types.h>
7658 # include <sys/socket.h>
7662 struct sockaddr_storage s
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7676 grep -v '^
*+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.$ac_objext; then
7684 ac_cv_sa_storage=yes
7686 echo "$as_me: failed program was:" >&5
7687 sed 's
/^
/|
/' conftest.$ac_ext >&5
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7696 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7697 if test $ac_cv_sa_storage = yes; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_SOCKADDR_STORAGE 1
7704 if test "$ac_cv_sa_storage" = no; then
7705 missing_includes=yes
7710 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7711 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7712 if test "${ac_cv_inaddrsz+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 # include <arpa/nameser.h>
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7740 grep -v '^
*+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7750 echo "$as_me: failed program was:" >&5
7751 sed 's
/^
/|
/' conftest.$ac_ext >&5
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7760 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7761 if test $ac_cv_inaddrsz = yes; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_INADDRSZ 1
7769 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7770 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7771 if test "${ac_cv_in6addrsz+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 # include <arpa/nameser.h>
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^
*+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7809 echo "$as_me: failed program was:" >&5
7810 sed 's
/^
/|
/' conftest.$ac_ext >&5
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7819 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7820 if test $ac_cv_in6addrsz = yes; then
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_IN6ADDRSZ 1
7829 if test "$ac_cv_addrsz" = no; then
7830 missing_includes=yes
7834 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7835 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7836 if test "${ac_cv_res_inet6+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 # include <sys/types.h>
7847 # include <netinet/in.h>
7848 # include <resolv.h>
7852 int a = RES_USE_INET6
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7866 grep -v '^
*+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7876 echo "$as_me: failed program was:" >&5
7877 sed 's
/^
/|
/' conftest.$ac_ext >&5
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7886 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7887 if test $ac_cv_res_inet6 = yes; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_RES_USE_INET6 1
7894 if test "$ac_cv_res_inet6" = no; then
7895 missing_includes=yes
7899 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7900 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7901 if test "${ac_cv_res_state_ext+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7911 # include <sys/types.h>
7912 # include <netinet/in.h>
7913 # include <netinet6/in6.h>
7914 # include <resolv.h>
7918 struct __res_state_ext e
7923 rm -f conftest.$ac_objext
7924 if { (ac_try="$ac_compile"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7932 grep -v '^
*+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_cv_res_state_ext=yes
7942 echo "$as_me: failed program was:" >&5
7943 sed 's
/^
/|
/' conftest.$ac_ext >&5
7945 ac_cv_res_state_ext=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7952 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7953 if test $ac_cv_res_state_ext = yes; then
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_RES_STATE_EXT 1
7960 if test "$ac_cv_res_state_ext" = no; then
7961 missing_includes=yes
7965 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7966 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7967 if test "${ac_cv_res_state+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 # include <sys/types.h>
7978 # include <netinet/in.h>
7979 # include <netinet6/in6.h>
7980 # include <resolv.h>
7984 struct __res_state e; e.nsort = 0
7989 rm -f conftest.$ac_objext
7990 if { (ac_try="$ac_compile"
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_compile") 2>conftest.er1
7998 grep -v '^
*+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest.$ac_objext; then
8008 echo "$as_me: failed program was:" >&5
8009 sed 's
/^
/|
/' conftest.$ac_ext >&5
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8018 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8019 if test $ac_cv_res_state = yes; then
8020 cat >>confdefs.h <<\_ACEOF
8021 #define HAVE_NEW_RES_STATE 1
8034 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8050 #define $ac_func innocuous_$ac_func
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func (); below.
8054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8055 <limits.h> exists even on freestanding compilers. */
8058 # include <limits.h>
8060 # include <assert.h>
8065 /* Override any GCC internal prototype to avoid an error.
8066 Use char because int might match the return type of a GCC
8067 builtin and then its argument prototype would still apply. */
8072 /* The GNU C library defines this for functions which it implements
8073 to always fail with ENOSYS. Some functions are actually named
8074 something starting with __ and the normal name is an alias. */
8075 #if defined __stub_$ac_func || defined __stub___$ac_func
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^
*+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext &&
8104 $as_test_x conftest$ac_exeext; then
8105 eval "$as_ac_var=yes"
8107 echo "$as_me: failed program was:" >&5
8108 sed 's
/^
/|
/' conftest.$ac_ext >&5
8110 eval "$as_ac_var=no"
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114 conftest$ac_exeext conftest.$ac_ext
8116 ac_res=`eval echo '${'$as_ac_var'}'`
8117 { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8119 if test `eval echo '${'$as_ac_var'}'` = yes; then
8120 cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8125 case " $LIBOBJS " in
8126 *" $ac_func.$ac_objext "* ) ;;
8127 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8136 for ac_func in strftime
8138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152 #define $ac_func innocuous_$ac_func
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
8160 # include <limits.h>
8162 # include <assert.h>
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined __stub_$ac_func || defined __stub___$ac_func
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_link") 2>conftest.er1
8198 grep -v '^
*+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest$ac_exeext &&
8206 $as_test_x conftest$ac_exeext; then
8207 eval "$as_ac_var=yes"
8209 echo "$as_me: failed program was:" >&5
8210 sed 's
/^
/|
/' conftest.$ac_ext >&5
8212 eval "$as_ac_var=no"
8215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8216 conftest$ac_exeext conftest.$ac_ext
8218 ac_res=`eval echo '${'$as_ac_var'}'`
8219 { echo "$as_me:$LINENO: result: $ac_res" >&5
8220 echo "${ECHO_T}$ac_res" >&6; }
8221 if test `eval echo '${'$as_ac_var'}'` = yes; then
8222 cat >>confdefs.h <<_ACEOF
8223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8231 for ac_func in setlinebuf alarm
8233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8247 #define $ac_func innocuous_$ac_func
8249 /* System header to define __stub macros and hopefully few prototypes,
8250 which can conflict with char $ac_func (); below.
8251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252 <limits.h> exists even on freestanding compilers. */
8255 # include <limits.h>
8257 # include <assert.h>
8262 /* Override any GCC internal prototype to avoid an error.
8263 Use char because int might match the return type of a GCC
8264 builtin and then its argument prototype would still apply. */
8269 /* The GNU C library defines this for functions which it implements
8270 to always fail with ENOSYS. Some functions are actually named
8271 something starting with __ and the normal name is an alias. */
8272 #if defined __stub_$ac_func || defined __stub___$ac_func
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (ac_try="$ac_link"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_link") 2>conftest.er1
8293 grep -v '^
*+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest$ac_exeext &&
8301 $as_test_x conftest$ac_exeext; then
8302 eval "$as_ac_var=yes"
8304 echo "$as_me: failed program was:" >&5
8305 sed 's
/^
/|
/' conftest.$ac_ext >&5
8307 eval "$as_ac_var=no"
8310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8311 conftest$ac_exeext conftest.$ac_ext
8313 ac_res=`eval echo '${'$as_ac_var'}'`
8314 { echo "$as_me:$LINENO: result: $ac_res" >&5
8315 echo "${ECHO_T}$ac_res" >&6; }
8316 if test `eval echo '${'$as_ac_var'}'` = yes; then
8317 cat >>confdefs.h <<_ACEOF
8318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8328 for ac_func in vsnprintf snprintf
8330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8344 #define $ac_func innocuous_$ac_func
8346 /* System header to define __stub macros and hopefully few prototypes,
8347 which can conflict with char $ac_func (); below.
8348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349 <limits.h> exists even on freestanding compilers. */
8352 # include <limits.h>
8354 # include <assert.h>
8359 /* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
8366 /* The GNU C library defines this for functions which it implements
8367 to always fail with ENOSYS. Some functions are actually named
8368 something starting with __ and the normal name is an alias. */
8369 #if defined __stub_$ac_func || defined __stub___$ac_func
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (ac_try="$ac_link"
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8390 grep -v '^
*+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest$ac_exeext &&
8398 $as_test_x conftest$ac_exeext; then
8399 eval "$as_ac_var=yes"
8401 echo "$as_me: failed program was:" >&5
8402 sed 's
/^
/|
/' conftest.$ac_ext >&5
8404 eval "$as_ac_var=no"
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408 conftest$ac_exeext conftest.$ac_ext
8410 ac_res=`eval echo '${'$as_ac_var'}'`
8411 { echo "$as_me:$LINENO: result: $ac_res" >&5
8412 echo "${ECHO_T}$ac_res" >&6; }
8413 if test `eval echo '${'$as_ac_var'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8423 if test $needsnprintf = yes; then
8424 case " $LIBOBJS " in
8425 *" snprintf.$ac_objext "* ) ;;
8426 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8433 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8435 if test "${ac_cv_type_signal+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 #include <sys/types.h>
8450 return *(signal (0, 0)) (0) == 1;
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8464 grep -v '^
*+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.$ac_objext; then
8472 ac_cv_type_signal=int
8474 echo "$as_me: failed program was:" >&5
8475 sed 's
/^
/|
/' conftest.$ac_ext >&5
8477 ac_cv_type_signal=void
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8483 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8485 cat >>confdefs.h <<_ACEOF
8486 #define RETSIGTYPE $ac_cv_type_signal
8490 if test "$ac_cv_type_signal" = void ; then
8492 cat >>confdefs.h <<\_ACEOF
8498 cat >>confdefs.h <<\_ACEOF
8499 #define RETSIGVAL (0)
8507 cat >>confdefs.h <<\_ACEOF
8508 #define _BSD_SIGNALS 1
8515 for ac_func in sigaction
8517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531 #define $ac_func innocuous_$ac_func
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char $ac_func (); below.
8535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 <limits.h> exists even on freestanding compilers. */
8539 # include <limits.h>
8541 # include <assert.h>
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined __stub_$ac_func || defined __stub___$ac_func
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_link") 2>conftest.er1
8577 grep -v '^
*+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest$ac_exeext &&
8585 $as_test_x conftest$ac_exeext; then
8586 eval "$as_ac_var=yes"
8588 echo "$as_me: failed program was:" >&5
8589 sed 's
/^
/|
/' conftest.$ac_ext >&5
8591 eval "$as_ac_var=no"
8594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8595 conftest$ac_exeext conftest.$ac_ext
8597 ac_res=`eval echo '${'$as_ac_var'}'`
8598 { echo "$as_me:$LINENO: result: $ac_res" >&5
8599 echo "${ECHO_T}$ac_res" >&6; }
8600 if test `eval echo '${'$as_ac_var'}'` = yes; then
8601 cat >>confdefs.h <<_ACEOF
8602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8608 if test $ac_cv_func_sigaction = no ; then
8610 for ac_func in sigset
8612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8626 #define $ac_func innocuous_$ac_func
8628 /* System header to define __stub macros and hopefully few prototypes,
8629 which can conflict with char $ac_func (); below.
8630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 <limits.h> exists even on freestanding compilers. */
8634 # include <limits.h>
8636 # include <assert.h>
8641 /* Override any GCC internal prototype to avoid an error.
8642 Use char because int might match the return type of a GCC
8643 builtin and then its argument prototype would still apply. */
8648 /* The GNU C library defines this for functions which it implements
8649 to always fail with ENOSYS. Some functions are actually named
8650 something starting with __ and the normal name is an alias. */
8651 #if defined __stub_$ac_func || defined __stub___$ac_func
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_link") 2>conftest.er1
8672 grep -v '^
*+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest$ac_exeext &&
8680 $as_test_x conftest$ac_exeext; then
8681 eval "$as_ac_var=yes"
8683 echo "$as_me: failed program was:" >&5
8684 sed 's
/^
/|
/' conftest.$ac_ext >&5
8686 eval "$as_ac_var=no"
8689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690 conftest$ac_exeext conftest.$ac_ext
8692 ac_res=`eval echo '${'$as_ac_var'}'`
8693 { echo "$as_me:$LINENO: result: $ac_res" >&5
8694 echo "${ECHO_T}$ac_res" >&6; }
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8708 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8709 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 ac_func_search_save_LIBS=$LIBS
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8720 /* Override any GCC internal prototype to avoid an error.
8721 Use char because int might match the return type of a GCC
8722 builtin and then its argument prototype would still apply. */
8730 return dnet_htoa ();
8735 for ac_lib in '' dnet; do
8736 if test -z "$ac_lib"; then
8737 ac_res="none required"
8740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (ac_try="$ac_link"
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_link") 2>conftest.er1
8751 grep -v '^
*+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && {
8756 test -z "$ac_c_werror_flag" ||
8757 test ! -s conftest.err
8758 } && test -s conftest$ac_exeext &&
8759 $as_test_x conftest$ac_exeext; then
8760 ac_cv_search_dnet_htoa=$ac_res
8762 echo "$as_me: failed program was:" >&5
8763 sed 's
/^
/|
/' conftest.$ac_ext >&5
8768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8774 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8777 ac_cv_search_dnet_htoa=no
8780 LIBS=$ac_func_search_save_LIBS
8782 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8783 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8784 ac_res=$ac_cv_search_dnet_htoa
8785 if test "$ac_res" != no; then
8786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_DNET_HTOA 1
8795 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8796 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8797 if test "${ac_cv_lib_rpc_main+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 ac_check_lib_save_LIBS=$LIBS
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (ac_try="$ac_link"
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_link") 2>conftest.er1
8827 grep -v '^
*+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest$ac_exeext &&
8835 $as_test_x conftest$ac_exeext; then
8836 ac_cv_lib_rpc_main=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's
/^
/|
/' conftest.$ac_ext >&5
8841 ac_cv_lib_rpc_main=no
8844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8845 conftest$ac_exeext conftest.$ac_ext
8846 LIBS=$ac_check_lib_save_LIBS
8848 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8849 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8850 if test $ac_cv_lib_rpc_main = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_LIBRPC 1
8859 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8860 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8861 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 ac_func_search_save_LIBS=$LIBS
8865 cat >conftest.$ac_ext <<_ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8878 char getrpcbynumber ();
8882 return getrpcbynumber ();
8887 for ac_lib in '' nsl; do
8888 if test -z "$ac_lib"; then
8889 ac_res="none required"
8892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (ac_try="$ac_link"
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_link") 2>conftest.er1
8903 grep -v '^
*+' conftest.er1 >conftest.err
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && {
8908 test -z "$ac_c_werror_flag" ||
8909 test ! -s conftest.err
8910 } && test -s conftest$ac_exeext &&
8911 $as_test_x conftest$ac_exeext; then
8912 ac_cv_search_getrpcbynumber=$ac_res
8914 echo "$as_me: failed program was:" >&5
8915 sed 's
/^
/|
/' conftest.$ac_ext >&5
8920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8922 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8926 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8929 ac_cv_search_getrpcbynumber=no
8932 LIBS=$ac_func_search_save_LIBS
8934 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8935 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8936 ac_res=$ac_cv_search_getrpcbynumber
8937 if test "$ac_res" != no; then
8938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_GETRPCBYNUMBER 1
8948 # Most operating systems have gethostbyname() in the default searched
8949 # libraries (i.e. libc):
8950 # Some OSes (eg. Solaris) place it in libnsl
8951 # Some strange OSes (SINIX) have it in libsocket:
8952 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8953 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8954 if test "${ac_cv_search_gethostbyname+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_func_search_save_LIBS=$LIBS
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8965 /* Override any GCC internal prototype to avoid an error.
8966 Use char because int might match the return type of a GCC
8967 builtin and then its argument prototype would still apply. */
8971 char gethostbyname ();
8975 return gethostbyname ();
8980 for ac_lib in '' nsl socket resolv; do
8981 if test -z "$ac_lib"; then
8982 ac_res="none required"
8985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (ac_try="$ac_link"
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_link") 2>conftest.er1
8996 grep -v '^
*+' conftest.er1 >conftest.err
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest$ac_exeext &&
9004 $as_test_x conftest$ac_exeext; then
9005 ac_cv_search_gethostbyname=$ac_res
9007 echo "$as_me: failed program was:" >&5
9008 sed 's
/^
/|
/' conftest.$ac_ext >&5
9013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015 if test "${ac_cv_search_gethostbyname+set}" = set; then
9019 if test "${ac_cv_search_gethostbyname+set}" = set; then
9022 ac_cv_search_gethostbyname=no
9025 LIBS=$ac_func_search_save_LIBS
9027 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9028 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9029 ac_res=$ac_cv_search_gethostbyname
9030 if test "$ac_res" != no; then
9031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9035 # Unfortunately libsocket sometimes depends on libnsl and
9036 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9037 if test "$ac_cv_search_gethostbyname" = "no"
9039 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9040 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9041 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 ac_check_lib_save_LIBS
=$LIBS
9045 LIBS
="-lsocket -lnsl $LIBS"
9046 cat >conftest.
$ac_ext <<_ACEOF
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9053 /* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9059 char gethostbyname ();
9063 return gethostbyname ();
9068 rm -f conftest.
$ac_objext conftest
$ac_exeext
9069 if { (ac_try
="$ac_link"
9071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_link") 2>conftest.er1
9077 grep -v '^ *+' conftest.er1 >conftest.err
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest$ac_exeext &&
9085 $as_test_x conftest$ac_exeext; then
9086 ac_cv_lib_socket_gethostbyname=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 ac_cv_lib_socket_gethostbyname=no
9094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_check_lib_save_LIBS
9098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9099 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9100 if test $ac_cv_lib_socket_gethostbyname = yes; then
9101 LIBS="-lsocket -lnsl $LIBS"
9105 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9106 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9107 if test "${ac_cv_search_socket+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_func_search_save_LIBS=$LIBS
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9133 for ac_lib in '' socket; do
9134 if test -z "$ac_lib"; then
9135 ac_res="none required"
9138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (ac_try="$ac_link"
9143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9144 *) ac_try_echo
=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_link") 2>conftest.er1
9149 grep -v '^ *+' conftest.er1
>conftest.err
9151 cat conftest.err
>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest
$ac_exeext &&
9157 $as_test_x conftest
$ac_exeext; then
9158 ac_cv_search_socket
=$ac_res
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.
$ac_ext >&5
9166 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9168 if test "${ac_cv_search_socket+set}" = set; then
9172 if test "${ac_cv_search_socket+set}" = set; then
9175 ac_cv_search_socket
=no
9178 LIBS
=$ac_func_search_save_LIBS
9180 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9181 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9182 ac_res
=$ac_cv_search_socket
9183 if test "$ac_res" != no
; then
9184 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9187 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9188 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9189 if test "${ac_cv_lib_socket_socket+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 ac_check_lib_save_LIBS
=$LIBS
9193 LIBS
="-lsocket -lnsl $LIBS"
9194 cat >conftest.
$ac_ext <<_ACEOF
9197 cat confdefs.h
>>conftest.
$ac_ext
9198 cat >>conftest.
$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9216 rm -f conftest.
$ac_objext conftest
$ac_exeext
9217 if { (ac_try
="$ac_link"
9219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_link") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest$ac_exeext &&
9233 $as_test_x conftest$ac_exeext; then
9234 ac_cv_lib_socket_socket=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_cv_lib_socket_socket=no
9242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9246 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9247 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9248 if test $ac_cv_lib_socket_socket = yes; then
9249 LIBS="-lsocket -lnsl $LIBS"
9254 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9255 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9256 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9257 if test "${ac_cv_search_putmsg+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 ac_func_search_save_LIBS=$LIBS
9261 cat >conftest.$ac_ext <<_ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9268 /* Override any GCC internal prototype to avoid an error.
9269 Use char because int might match the return type of a GCC
9270 builtin and then its argument prototype would still apply. */
9283 for ac_lib in '' str; do
9284 if test -z "$ac_lib"; then
9285 ac_res="none required"
9288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (ac_try="$ac_link"
9293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9294 *) ac_try_echo
=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_link") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1
>conftest.err
9301 cat conftest.err
>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest
$ac_exeext &&
9307 $as_test_x conftest
$ac_exeext; then
9308 ac_cv_search_putmsg
=$ac_res
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9318 if test "${ac_cv_search_putmsg+set}" = set; then
9322 if test "${ac_cv_search_putmsg+set}" = set; then
9325 ac_cv_search_putmsg
=no
9328 LIBS
=$ac_func_search_save_LIBS
9330 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9331 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9332 ac_res
=$ac_cv_search_putmsg
9333 if test "$ac_res" != no
; then
9334 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9341 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9342 if test -f $pfopen ; then
9344 for ac_func
in pfopen
9346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9349 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.
$ac_ext <<_ACEOF
9355 cat confdefs.h
>>conftest.
$ac_ext
9356 cat >>conftest.
$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9360 #define $ac_func innocuous_$ac_func
9362 /* System header to define __stub macros and hopefully few prototypes,
9363 which can conflict with char $ac_func (); below.
9364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365 <limits.h> exists even on freestanding compilers. */
9368 # include <limits.h>
9370 # include <assert.h>
9375 /* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
9382 /* The GNU C library defines this for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined __stub_$ac_func || defined __stub___$ac_func
9397 rm -f conftest.
$ac_objext conftest
$ac_exeext
9398 if { (ac_try
="$ac_link"
9400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_link") 2>conftest.er1
9406 grep -v '^ *+' conftest.er1 >conftest.err
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest$ac_exeext &&
9414 $as_test_x conftest$ac_exeext; then
9415 eval "$as_ac_var=yes"
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 eval "$as_ac_var=no"
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 conftest$ac_exeext conftest.$ac_ext
9426 ac_res=`eval echo '${'$as_ac_var'}'`
9427 { echo "$as_me:$LINENO: result: $ac_res" >&5
9428 echo "${ECHO_T}$ac_res" >&6; }
9429 if test `eval echo '${'$as_ac_var'}'` = yes; then
9430 cat >>confdefs.h <<_ACEOF
9431 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9437 if test $ac_cv_func_pfopen = "no" ; then
9438 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9439 echo "${ECHO_T}Using $pfopen" >&6; }
9440 LIBS="$LIBS $pfopen"
9443 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9444 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9447 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9448 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9449 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9450 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
9451 sed -e 's/-PRE-GIT$//' `
9452 if test $lastdir = $basedir ; then
9456 if test -r $dir/libpcap.a ; then
9457 libpcap=$dir/libpcap.a
9461 if test $libpcap = FAIL ; then
9462 { echo "$as_me:$LINENO: result: not found" >&5
9463 echo "${ECHO_T}not found" >&6; }
9466 # Look for pcap-config.
9468 # Extract the first word of "pcap-config", so it can be a program name with args.
9469 set dummy pcap-config; ac_word=$2
9470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9472 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 case $PCAP_CONFIG in
9477 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9499 if test -n "$PCAP_CONFIG"; then
9500 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9501 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9503 { echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6; }
9508 if test -n "$PCAP_CONFIG" ; then
9510 # Found - use it to get the include flags for
9511 # libpcap and the flags to link with libpcap.
9513 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9514 libpcap="`\"$PCAP_CONFIG\" --libs`"
9517 # Not found; look for pcap.
9519 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9520 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9521 if test "${ac_cv_lib_pcap_main+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 ac_check_lib_save_LIBS=$LIBS
9526 cat >conftest.$ac_ext <<_ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (ac_try="$ac_link"
9545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9546 *) ac_try_echo
=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_link") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1
>conftest.err
9553 cat conftest.err
>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && {
9556 test -z "$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9558 } && test -s conftest
$ac_exeext &&
9559 $as_test_x conftest
$ac_exeext; then
9560 ac_cv_lib_pcap_main
=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.
$ac_ext >&5
9565 ac_cv_lib_pcap_main
=no
9568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9569 conftest
$ac_exeext conftest.
$ac_ext
9570 LIBS
=$ac_check_lib_save_LIBS
9572 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9573 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9574 if test $ac_cv_lib_pcap_main = yes; then
9578 if test $libpcap = FAIL
; then
9579 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9580 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9581 { (exit 1); exit 1; }; }
9583 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9584 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9585 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9586 \
( ! -r /usr
/include
/pcap.h \
); then
9587 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9588 d
="/usr/local/include/pcap"
9589 elif test -r /usr
/include
/pcap
/pcap.h
; then
9590 d
="/usr/include/pcap"
9593 if test -z "$d" ; then
9594 { echo "$as_me:$LINENO: result: not found" >&5
9595 echo "${ECHO_T}not found" >&6; }
9597 V_INCLS
="-I$d $V_INCLS"
9598 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9599 echo "${ECHO_T}found -- -I$d added" >&6; }
9604 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9605 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9606 if test -r $d/pcap.h
; then
9607 V_INCLS
="-I$d $V_INCLS"
9608 elif test -r $places/pcap.h
; then
9609 V_INCLS
="-I$places $V_INCLS"
9611 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9612 echo "$as_me: error: cannot find pcap.h" >&2;}
9613 { (exit see INSTALL
); exit see INSTALL
; }; }
9615 { echo "$as_me:$LINENO: result: $libpcap" >&5
9616 echo "${ECHO_T}$libpcap" >&6; }
9617 # Extract the first word of "pcap-config", so it can be a program name with args.
9618 set dummy pcap-config
; ac_word
=$2
9619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 case $PCAP_CONFIG in
9626 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
9629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9633 test -z "$as_dir" && as_dir
=.
9634 for ac_exec_ext
in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
9648 if test -n "$PCAP_CONFIG"; then
9649 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9650 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9652 { echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6; }
9657 if test -n "$PCAP_CONFIG"; then
9659 # The libpcap directory has a pcap-config script.
9660 # Use it to get any additioal libraries needed
9661 # to link with the libpcap archive library in
9664 libpcap
="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9667 LIBS
="$libpcap $LIBS"
9668 if ! test -n "$PCAP_CONFIG" ; then
9670 # We don't have pcap-config; find out any additional link flags
9671 # we need. (If we have pcap-config, we assume it tells us what
9678 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9679 # present, as we use the STREAMS routines.
9681 # (XXX - true only if we're linking with a static libpcap?)
9683 pseexe
="/lib/pse.exp"
9684 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9685 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9686 if test -f $pseexe ; then
9687 { echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6; }
9689 LIBS
="$LIBS -I:$pseexe"
9693 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9694 # we use them to load the BPF module.
9696 # (XXX - true only if we're linking with a static libpcap?)
9698 LIBS
="$LIBS -lodm -lcfg"
9703 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9704 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.
$ac_ext <<_ACEOF
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char pcap_list_datalinks (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9729 #undef pcap_list_datalinks
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9737 char pcap_list_datalinks ();
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9748 return pcap_list_datalinks ();
9753 rm -f conftest.
$ac_objext conftest
$ac_exeext
9754 if { (ac_try
="$ac_link"
9756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
9771 ac_cv_func_pcap_list_datalinks=yes
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_cv_func_pcap_list_datalinks=no
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9783 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9784 if test $ac_cv_func_pcap_list_datalinks = yes; then
9785 cat >>confdefs.h <<\_ACEOF
9786 #define HAVE_PCAP_LIST_DATALINKS 1
9791 case " $LIBOBJS " in
9792 *" datalinks.$ac_objext "* ) ;;
9793 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9800 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9801 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9802 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813 #define pcap_set_datalink innocuous_pcap_set_datalink
9815 /* System header to define __stub macros and hopefully few prototypes,
9816 which can conflict with char pcap_set_datalink (); below.
9817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818 <limits.h> exists even on freestanding compilers. */
9821 # include <limits.h>
9823 # include <assert.h>
9826 #undef pcap_set_datalink
9828 /* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9834 char pcap_set_datalink ();
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9845 return pcap_set_datalink ();
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9854 *) ac_try_echo
=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1
>conftest.err
9861 cat conftest.err
>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest
$ac_exeext &&
9867 $as_test_x conftest
$ac_exeext; then
9868 ac_cv_func_pcap_set_datalink
=yes
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.
$ac_ext >&5
9873 ac_cv_func_pcap_set_datalink
=no
9876 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9877 conftest
$ac_exeext conftest.
$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9880 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9881 if test $ac_cv_func_pcap_set_datalink = yes; then
9882 cat >>confdefs.h
<<\_ACEOF
9883 #define HAVE_PCAP_SET_DATALINK 1
9888 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9889 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9890 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 cat >conftest.
$ac_ext <<_ACEOF
9896 cat confdefs.h
>>conftest.
$ac_ext
9897 cat >>conftest.
$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char pcap_datalink_name_to_val (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9909 # include <limits.h>
9911 # include <assert.h>
9914 #undef pcap_datalink_name_to_val
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9922 char pcap_datalink_name_to_val ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9933 return pcap_datalink_name_to_val ();
9938 rm -f conftest.
$ac_objext conftest
$ac_exeext
9939 if { (ac_try
="$ac_link"
9941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 ac_cv_func_pcap_datalink_name_to_val=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_cv_func_pcap_datalink_name_to_val=no
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9967 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9968 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9969 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9975 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9976 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9977 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9988 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9990 /* System header to define __stub macros and hopefully few prototypes,
9991 which can conflict with char pcap_datalink_val_to_description (); below.
9992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993 <limits.h> exists even on freestanding compilers. */
9996 # include <limits.h>
9998 # include <assert.h>
10001 #undef pcap_datalink_val_to_description
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10009 char pcap_datalink_val_to_description ();
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10020 return pcap_datalink_val_to_description ();
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (ac_try="$ac_link"
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_link") 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_exeext &&
10042 $as_test_x conftest
$ac_exeext; then
10043 ac_cv_func_pcap_datalink_val_to_description
=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10048 ac_cv_func_pcap_datalink_val_to_description
=no
10051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10052 conftest
$ac_exeext conftest.
$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10055 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10056 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10057 cat >>confdefs.h
<<\_ACEOF
10058 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10063 case " $LIBOBJS " in
10064 *" dlnames.$ac_objext "* ) ;;
10065 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10075 case " $LIBOBJS " in
10076 *" dlnames.$ac_objext "* ) ;;
10077 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10086 for ac_func
in pcap_breakloop
10088 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10091 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 cat >conftest.
$ac_ext <<_ACEOF
10097 cat confdefs.h
>>conftest.
$ac_ext
10098 cat >>conftest.
$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10102 #define $ac_func innocuous_$ac_func
10104 /* System header to define __stub macros and hopefully few prototypes,
10105 which can conflict with char $ac_func (); below.
10106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10107 <limits.h> exists even on freestanding compilers. */
10110 # include <limits.h>
10112 # include <assert.h>
10117 /* Override any GCC internal prototype to avoid an error.
10118 Use char because int might match the return type of a GCC
10119 builtin and then its argument prototype would still apply. */
10124 /* The GNU C library defines this for functions which it implements
10125 to always fail with ENOSYS. Some functions are actually named
10126 something starting with __ and the normal name is an alias. */
10127 #if defined __stub_$ac_func || defined __stub___$ac_func
10134 return $ac_func ();
10139 rm -f conftest.
$ac_objext conftest
$ac_exeext
10140 if { (ac_try
="$ac_link"
10141 case "(($ac_try" in
10142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_link") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1 >conftest.err
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest$ac_exeext &&
10156 $as_test_x conftest$ac_exeext; then
10157 eval "$as_ac_var=yes"
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 eval "$as_ac_var=no"
10165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10166 conftest$ac_exeext conftest.$ac_ext
10168 ac_res=`eval echo '${'$as_ac_var'}'`
10169 { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10171 if test `eval echo '${'$as_ac_var'}'` = yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10180 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10181 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10182 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10193 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char pcap_dump_ftell (); below.
10197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198 <limits.h> exists even on freestanding compilers. */
10201 # include <limits.h>
10203 # include <assert.h>
10206 #undef pcap_dump_ftell
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10214 char pcap_dump_ftell ();
10215 /* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10225 return pcap_dump_ftell ();
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10234 *) ac_try_echo
=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10239 grep -v '^ *+' conftest.er1
>conftest.err
10241 cat conftest.err
>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest
$ac_exeext &&
10247 $as_test_x conftest
$ac_exeext; then
10248 ac_cv_func_pcap_dump_ftell
=yes
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.
$ac_ext >&5
10253 ac_cv_func_pcap_dump_ftell
=no
10256 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10257 conftest
$ac_exeext conftest.
$ac_ext
10259 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10260 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10261 if test $ac_cv_func_pcap_dump_ftell = yes; then
10262 cat >>confdefs.h
<<\_ACEOF
10263 #define HAVE_PCAP_DUMP_FTELL 1
10268 case " $LIBOBJS " in
10269 *" pcap_dump_ftell.$ac_objext "* ) ;;
10270 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
10280 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10281 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10283 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10284 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10285 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10286 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10287 # it does not ship with a libc symbol "inet_ntop()", it ships with
10288 # "_inet_ntop()", and has a #define macro in one of the system headers
10291 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10292 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10293 cat >conftest.
$ac_ext <<_ACEOF
10296 cat confdefs.h
>>conftest.
$ac_ext
10297 cat >>conftest.
$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <sys/types.h>
10300 #include <sys/socket.h>
10301 #include <netinet/in.h>
10302 #include <arpa/inet.h>
10306 char src[4], dst[128];
10307 inet_ntop(AF_INET, src, dst, sizeof(dst));
10312 rm -f conftest.
$ac_objext conftest
$ac_exeext
10313 if { (ac_try
="$ac_link"
10314 case "(($ac_try" in
10315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10321 grep -v '^ *+' conftest.er1 >conftest.err
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && {
10326 test -z "$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 } && test -s conftest$ac_exeext &&
10329 $as_test_x conftest$ac_exeext; then
10330 { echo "$as_me:$LINENO: result: yes" >&5
10331 echo "${ECHO_T}yes" >&6; }
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 { echo "$as_me:$LINENO: result: no" >&5
10337 echo "${ECHO_T}no" >&6; }
10338 case " $LIBOBJS " in
10339 *" inet_ntop.$ac_objext "* ) ;;
10340 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10349 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <sys/types.h>
10357 #include <sys/socket.h>
10358 #include <netinet/in.h>
10359 #include <arpa/inet.h>
10363 char src[128], dst[4];
10364 inet_pton(AF_INET, src, dst);
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10373 *) ac_try_echo
=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1
>conftest.err
10380 cat conftest.err
>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest
$ac_exeext &&
10386 $as_test_x conftest
$ac_exeext; then
10387 { echo "$as_me:$LINENO: result: yes" >&5
10388 echo "${ECHO_T}yes" >&6; }
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10393 { echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6; }
10395 case " $LIBOBJS " in
10396 *" inet_pton.$ac_objext "* ) ;;
10397 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
10403 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10404 conftest
$ac_exeext conftest.
$ac_ext
10405 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10406 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10407 cat >conftest.
$ac_ext <<_ACEOF
10410 cat confdefs.h
>>conftest.
$ac_ext
10411 cat >>conftest.
$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <sys/types.h>
10414 #include <netinet/in.h>
10415 #include <arpa/inet.h>
10420 struct in_addr dst;
10421 inet_aton(src, &dst);
10426 rm -f conftest.
$ac_objext conftest
$ac_exeext
10427 if { (ac_try
="$ac_link"
10428 case "(($ac_try" in
10429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest$ac_exeext &&
10443 $as_test_x conftest$ac_exeext; then
10444 { echo "$as_me:$LINENO: result: yes" >&5
10445 echo "${ECHO_T}yes" >&6; }
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 { echo "$as_me:$LINENO: result: no" >&5
10451 echo "${ECHO_T}no" >&6; }
10452 case " $LIBOBJS " in
10453 *" inet_aton.$ac_objext "* ) ;;
10454 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461 conftest$ac_exeext conftest.$ac_ext
10464 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10466 # You are in a twisty little maze of UN*Xes, all different.
10467 # Some might not have ether_ntohost().
10468 # Some might have it, but not declare it in any header file.
10469 # Some might have it, but declare it in <netinet/if_ether.h>.
10470 # Some might have it, but declare it in <netinet/ether.h>
10471 # (And some might have it but document it as something declared in
10472 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10474 # Before you is a C compiler.
10477 for ac_func in ether_ntohost
10479 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10493 #define $ac_func innocuous_$ac_func
10495 /* System header to define __stub macros and hopefully few prototypes,
10496 which can conflict with char $ac_func (); below.
10497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 <limits.h> exists even on freestanding compilers. */
10501 # include <limits.h>
10503 # include <assert.h>
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10515 /* The GNU C library defines this for functions which it implements
10516 to always fail with ENOSYS. Some functions are actually named
10517 something starting with __ and the normal name is an alias. */
10518 #if defined __stub_$ac_func || defined __stub___$ac_func
10525 return $ac_func ();
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10534 *) ac_try_echo
=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1
>conftest.err
10541 cat conftest.err
>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest
$ac_exeext &&
10547 $as_test_x conftest
$ac_exeext; then
10548 eval "$as_ac_var=yes"
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.
$ac_ext >&5
10553 eval "$as_ac_var=no"
10556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10557 conftest
$ac_exeext conftest.
$ac_ext
10559 ac_res
=`eval echo '${'$as_ac_var'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10562 if test `eval echo '${'$as_ac_var'}'` = yes; then
10563 cat >>confdefs.h
<<_ACEOF
10564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10567 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10568 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10569 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 if test "$cross_compiling" = yes; then
10574 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10584 #include <sys/types.h>
10585 #include <sys/param.h>
10586 #include <sys/socket.h>
10589 main(int argc, char **argv)
10591 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10592 char name[MAXHOSTNAMELEN];
10594 ether_ntohost(name, (struct ether_addr *)ea);
10599 rm -f conftest
$ac_exeext
10600 if { (ac_try
="$ac_link"
10601 case "(($ac_try" in
10602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10612 *) ac_try_echo
=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_buggy_ether_ntohost
=no
10621 echo "$as_me: program exited with status $ac_status" >&5
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.
$ac_ext >&5
10625 ( exit $ac_status )
10626 ac_cv_buggy_ether_ntohost
=yes
10628 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10633 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10634 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10635 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10636 cat >>confdefs.h
<<\_ACEOF
10637 #define USE_ETHER_NTOHOST 1
10645 if test "$ac_cv_func_ether_ntohost" = yes -a \
10646 "$ac_cv_buggy_ether_ntohost" = "no"; then
10648 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10650 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10652 # Yes. Does it declare ether_ntohost()?
10654 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10655 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10656 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 cat >conftest.
$ac_ext <<_ACEOF
10662 cat confdefs.h
>>conftest.
$ac_ext
10663 cat >>conftest.
$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10666 #include <sys/types.h>
10667 #include <sys/socket.h>
10668 #include <netinet/in.h>
10669 #include <arpa/inet.h>
10672 #include <net/if.h>
10673 #include <netinet/if_ether.h>
10679 #ifndef ether_ntohost
10680 (void) ether_ntohost;
10687 rm -f conftest.
$ac_objext
10688 if { (ac_try
="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest.$ac_objext; then
10704 ac_cv_have_decl_ether_ntohost=yes
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_have_decl_ether_ntohost=no
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10715 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10716 if test $ac_cv_have_decl_ether_ntohost = yes; then
10719 cat >>confdefs.h <<\_ACEOF
10720 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10728 # Did that succeed?
10730 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10732 # No, how about <netinet/ether.h>, as on Linux?
10735 for ac_header in netinet/ether.h
10737 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 ac_res=`eval echo '${'$as_ac_Header'}'`
10745 { echo "$as_me:$LINENO: result: $ac_res" >&5
10746 echo "${ECHO_T}$ac_res" >&6; }
10748 # Is the header compilable?
10749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 $ac_includes_default
10758 #include <$ac_header>
10760 rm -f conftest.$ac_objext
10761 if { (ac_try="$ac_compile"
10762 case "(($ac_try" in
10763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10764 *) ac_try_echo
=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_compile") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1
>conftest.err
10771 cat conftest.err
>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest.
$ac_objext; then
10777 ac_header_compiler
=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.
$ac_ext >&5
10782 ac_header_compiler
=no
10785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10787 echo "${ECHO_T}$ac_header_compiler" >&6; }
10789 # Is the header present?
10790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10792 cat >conftest.
$ac_ext <<_ACEOF
10795 cat confdefs.h
>>conftest.
$ac_ext
10796 cat >>conftest.
$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <$ac_header>
10800 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10801 case "(($ac_try" in
10802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } >/dev/null && {
10813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10816 ac_header_preproc=yes
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_header_preproc=no
10824 rm -f conftest.err conftest.$ac_ext
10825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10826 echo "${ECHO_T}$ac_header_preproc" >&6; }
10828 # So? What about this header?
10829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10835 ac_header_preproc=yes
10838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 eval "$as_ac_Header=\$ac_header_preproc"
10860 ac_res=`eval echo '${'$as_ac_Header'}'`
10861 { echo "$as_me:$LINENO: result: $ac_res" >&5
10862 echo "${ECHO_T}$ac_res" >&6; }
10865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10866 cat >>confdefs.h <<_ACEOF
10867 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10874 if test "$ac_cv_header_netinet_ether_h" = yes; then
10876 # We have it - does it declare ether_ntohost()?
10877 # Unset ac_cv_have_decl_ether_ntohost so we don't
10878 # treat the previous failure as a cached value and
10879 # suppress the next test.
10881 unset ac_cv_have_decl_ether_ntohost
10882 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10883 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10884 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 #include <netinet/ether.h>
10900 #ifndef ether_ntohost
10901 (void) ether_ntohost;
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10912 *) ac_try_echo
=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1
>conftest.err
10919 cat conftest.err
>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest.
$ac_objext; then
10925 ac_cv_have_decl_ether_ntohost
=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.
$ac_ext >&5
10930 ac_cv_have_decl_ether_ntohost
=no
10933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10936 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10937 if test $ac_cv_have_decl_ether_ntohost = yes; then
10940 cat >>confdefs.h
<<\_ACEOF
10941 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10950 # Is ether_ntohost() declared?
10952 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10954 # No, we'll have to declare it ourselves.
10955 # Do we have "struct ether_addr"?
10957 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10958 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10959 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.
$ac_ext <<_ACEOF
10965 cat confdefs.h
>>conftest.
$ac_ext
10966 cat >>conftest.
$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 #include <sys/types.h>
10970 #include <sys/socket.h>
10971 #include <netinet/in.h>
10972 #include <arpa/inet.h>
10975 #include <net/if.h>
10976 #include <netinet/if_ether.h>
10979 typedef struct ether_addr ac__type_new_;
10983 if ((ac__type_new_ *) 0)
10985 if (sizeof (ac__type_new_))
10991 rm -f conftest.
$ac_objext
10992 if { (ac_try
="$ac_compile"
10993 case "(($ac_try" in
10994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11008 ac_cv_type_struct_ether_addr=yes
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_type_struct_ether_addr=no
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11019 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11020 if test $ac_cv_type_struct_ether_addr = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_STRUCT_ETHER_ADDR 1
11030 cat >>confdefs.h <<\_ACEOF
11031 #define HAVE_DECL_ETHER_NTOHOST 0
11036 cat >>confdefs.h <<\_ACEOF
11037 #define HAVE_DECL_ETHER_NTOHOST 1
11043 # libdlpi is needed for Solaris 11 and later.
11044 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11045 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11046 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-ldlpi -L/lib $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11068 return dlpi_walk ();
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11077 *) ac_try_echo
=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1
>conftest.err
11084 cat conftest.err
>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest
$ac_exeext &&
11090 $as_test_x conftest
$ac_exeext; then
11091 ac_cv_lib_dlpi_dlpi_walk
=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.
$ac_ext >&5
11096 ac_cv_lib_dlpi_dlpi_walk
=no
11099 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11100 conftest
$ac_exeext conftest.
$ac_ext
11101 LIBS
=$ac_check_lib_save_LIBS
11103 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11104 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11105 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11106 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
11111 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11112 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11113 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 cat >conftest.
$ac_ext <<_ACEOF
11119 cat confdefs.h
>>conftest.
$ac_ext
11120 cat >>conftest.
$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11123 # include <sys/types.h>
11124 # include <sys/socket.h>
11128 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11133 rm -f conftest.
$ac_objext
11134 if { (ac_try
="$ac_compile"
11135 case "(($ac_try" in
11136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_compile") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest.$ac_objext; then
11150 ac_cv_sockaddr_has_sa_len=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_sockaddr_has_sa_len=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11162 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11163 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_SOCKADDR_SA_LEN 1
11170 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11171 missing_includes=yes
11175 # Do we have the new open API? Check for pcap_create, and assume that,
11176 # if we do, we also have pcap_activate() and the other new routines
11177 # introduced in libpcap 1.0.0.
11180 for ac_func in pcap_create
11182 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11196 #define $ac_func innocuous_$ac_func
11198 /* System header to define __stub macros and hopefully few prototypes,
11199 which can conflict with char $ac_func (); below.
11200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11201 <limits.h> exists even on freestanding compilers. */
11204 # include <limits.h>
11206 # include <assert.h>
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11218 /* The GNU C library defines this for functions which it implements
11219 to always fail with ENOSYS. Some functions are actually named
11220 something starting with __ and the normal name is an alias. */
11221 #if defined __stub_$ac_func || defined __stub___$ac_func
11228 return $ac_func ();
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11237 *) ac_try_echo
=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_link") 2>conftest.er1
11242 grep -v '^ *+' conftest.er1
>conftest.err
11244 cat conftest.err
>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && {
11247 test -z "$ac_c_werror_flag" ||
11248 test ! -s conftest.err
11249 } && test -s conftest
$ac_exeext &&
11250 $as_test_x conftest
$ac_exeext; then
11251 eval "$as_ac_var=yes"
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.
$ac_ext >&5
11256 eval "$as_ac_var=no"
11259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11260 conftest
$ac_exeext conftest.
$ac_ext
11262 ac_res
=`eval echo '${'$as_ac_var'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11265 if test `eval echo '${'$as_ac_var'}'` = yes; then
11266 cat >>confdefs.h
<<_ACEOF
11267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11273 if test $ac_cv_func_pcap_create = "yes" ; then
11275 # OK, do we have pcap_set_tstamp_type? If so, assume we have
11276 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
11279 for ac_func
in pcap_set_tstamp_type
11281 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11284 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 cat >conftest.
$ac_ext <<_ACEOF
11290 cat confdefs.h
>>conftest.
$ac_ext
11291 cat >>conftest.
$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11295 #define $ac_func innocuous_$ac_func
11297 /* System header to define __stub macros and hopefully few prototypes,
11298 which can conflict with char $ac_func (); below.
11299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11300 <limits.h> exists even on freestanding compilers. */
11303 # include <limits.h>
11305 # include <assert.h>
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined __stub_$ac_func || defined __stub___$ac_func
11327 return $ac_func ();
11332 rm -f conftest.
$ac_objext conftest
$ac_exeext
11333 if { (ac_try
="$ac_link"
11334 case "(($ac_try" in
11335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest$ac_exeext &&
11349 $as_test_x conftest$ac_exeext; then
11350 eval "$as_ac_var=yes"
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 eval "$as_ac_var=no"
11358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11359 conftest$ac_exeext conftest.$ac_ext
11361 ac_res=`eval echo '${'$as_ac_var'}'`
11362 { echo "$as_me:$LINENO: result: $ac_res" >&5
11363 echo "${ECHO_T}$ac_res" >&6; }
11364 if test `eval echo '${'$as_ac_var'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11377 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11379 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11401 # include <limits.h>
11403 # include <assert.h>
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11425 return $ac_func ();
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11434 *) ac_try_echo
=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1
>conftest.err
11441 cat conftest.err
>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest
$ac_exeext &&
11447 $as_test_x conftest
$ac_exeext; then
11448 eval "$as_ac_var=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 eval "$as_ac_var=no"
11456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11457 conftest
$ac_exeext conftest.
$ac_ext
11459 ac_res
=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h
<<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11471 savedppflags
="$CPPLAGS"
11472 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11473 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11474 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11475 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 cat >conftest.
$ac_ext <<_ACEOF
11481 cat confdefs.h
>>conftest.
$ac_ext
11482 cat >>conftest.
$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11486 typedef pcap_if_t ac__type_new_;
11490 if ((ac__type_new_ *) 0)
11492 if (sizeof (ac__type_new_))
11498 rm -f conftest.
$ac_objext
11499 if { (ac_try
="$ac_compile"
11500 case "(($ac_try" in
11501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 ac_cv_type_pcap_if_t=yes
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_cv_type_pcap_if_t=no
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11527 if test $ac_cv_type_pcap_if_t = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530 #define HAVE_PCAP_IF_T 1
11536 CPPFLAGS="$savedcppflags"
11539 if test $ac_cv_func_pcap_lib_version = "no" ; then
11540 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11541 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11553 extern char pcap_version[];
11555 return (int)pcap_version;
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11565 *) ac_try_echo
=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1
>conftest.err
11572 cat conftest.err
>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest
$ac_exeext &&
11578 $as_test_x conftest
$ac_exeext; then
11579 ac_lbl_cv_pcap_version_defined
=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.
$ac_ext >&5
11584 ac_lbl_cv_pcap_version_defined
=no
11587 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11588 conftest
$ac_exeext conftest.
$ac_ext
11589 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11590 { echo "$as_me:$LINENO: result: yes" >&5
11591 echo "${ECHO_T}yes" >&6; }
11592 cat >>confdefs.h
<<\_ACEOF
11593 #define HAVE_PCAP_VERSION 1
11597 { echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6; }
11601 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11602 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11603 cat >conftest.
$ac_ext <<_ACEOF
11606 cat confdefs.h
>>conftest.
$ac_ext
11607 cat >>conftest.
$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11614 extern int pcap_debug;
11622 rm -f conftest.
$ac_objext conftest
$ac_exeext
11623 if { (ac_try
="$ac_link"
11624 case "(($ac_try" in
11625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_link") 2>conftest.er1
11631 grep -v '^ *+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest$ac_exeext &&
11639 $as_test_x conftest$ac_exeext; then
11640 ac_lbl_cv_pcap_debug_defined=yes
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_lbl_cv_pcap_debug_defined=no
11648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649 conftest$ac_exeext conftest.$ac_ext
11650 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11651 { echo "$as_me:$LINENO: result: yes" >&5
11652 echo "${ECHO_T}yes" >&6; }
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_PCAP_DEBUG 1
11658 { echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6; }
11661 # OK, what about "yydebug"?
11663 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11664 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11676 extern int yydebug;
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (ac_try="$ac_link"
11686 case "(($ac_try" in
11687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11688 *) ac_try_echo
=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_link") 2>conftest.er1
11693 grep -v '^ *+' conftest.er1
>conftest.err
11695 cat conftest.err
>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest
$ac_exeext &&
11701 $as_test_x conftest
$ac_exeext; then
11702 ac_lbl_cv_yydebug_defined
=yes
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.
$ac_ext >&5
11707 ac_lbl_cv_yydebug_defined
=no
11710 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11711 conftest
$ac_exeext conftest.
$ac_ext
11712 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11713 { echo "$as_me:$LINENO: result: yes" >&5
11714 echo "${ECHO_T}yes" >&6; }
11715 cat >>confdefs.h
<<\_ACEOF
11716 #define HAVE_YYDEBUG 1
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11725 for ac_func
in bpf_dump
11727 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11730 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 cat >conftest.
$ac_ext <<_ACEOF
11736 cat confdefs.h
>>conftest.
$ac_ext
11737 cat >>conftest.
$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11741 #define $ac_func innocuous_$ac_func
11743 /* System header to define __stub macros and hopefully few prototypes,
11744 which can conflict with char $ac_func (); below.
11745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11746 <limits.h> exists even on freestanding compilers. */
11749 # include <limits.h>
11751 # include <assert.h>
11756 /* Override any GCC internal prototype to avoid an error.
11757 Use char because int might match the return type of a GCC
11758 builtin and then its argument prototype would still apply. */
11763 /* The GNU C library defines this for functions which it implements
11764 to always fail with ENOSYS. Some functions are actually named
11765 something starting with __ and the normal name is an alias. */
11766 #if defined __stub_$ac_func || defined __stub___$ac_func
11773 return $ac_func ();
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext
11779 if { (ac_try
="$ac_link"
11780 case "(($ac_try" in
11781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_link") 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest$ac_exeext &&
11795 $as_test_x conftest$ac_exeext; then
11796 eval "$as_ac_var=yes"
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11805 conftest$ac_exeext conftest.$ac_ext
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11816 case " $LIBOBJS " in
11817 *" $ac_func.$ac_objext "* ) ;;
11818 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11827 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc
/group
`" ; then
11831 # Assume V7/BSD convention for man pages (file formats in section 5,
11832 # miscellaneous info in section 7).
11840 cat >>confdefs.h <<\_ACEOF
11848 # Use System V conventions for man pages.
11858 # Use System V conventions for man pages.
11868 # Use System V conventions for man pages.
11878 # Use System V conventions for man pages.
11885 if test -f /dev/bpf0 ; then
11890 # Check for some headers introduced in later versions of libpcap
11891 # and used by some printers.
11893 savedcppflags="$CPPFLAGS"
11894 CPPFLAGS="$CPPFLAGS $V_INCLS"
11896 for ac_header in pcap/bluetooth.h
11898 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_res=`eval echo '${'$as_ac_Header'}'`
11906 { echo "$as_me:$LINENO: result: $ac_res" >&5
11907 echo "${ECHO_T}$ac_res" >&6; }
11909 # Is the header compilable?
11910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 $ac_includes_default
11919 #include <$ac_header>
11921 rm -f conftest.$ac_objext
11922 if { (ac_try="$ac_compile"
11923 case "(($ac_try" in
11924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11925 *) ac_try_echo
=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1
>conftest.err
11932 cat conftest.err
>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.
$ac_objext; then
11938 ac_header_compiler
=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.
$ac_ext >&5
11943 ac_header_compiler
=no
11946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11948 echo "${ECHO_T}$ac_header_compiler" >&6; }
11950 # Is the header present?
11951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11953 cat >conftest.
$ac_ext <<_ACEOF
11956 cat confdefs.h
>>conftest.
$ac_ext
11957 cat >>conftest.
$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 #include <$ac_header>
11961 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11962 case "(($ac_try" in
11963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } >/dev/null && {
11974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11977 ac_header_preproc=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_header_preproc=no
11985 rm -f conftest.err conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11987 echo "${ECHO_T}$ac_header_preproc" >&6; }
11989 # So? What about this header?
11990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11996 ac_header_preproc=yes
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 eval "$as_ac_Header=\$ac_header_preproc"
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12036 for ac_header in pcap/usb.h
12038 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 ac_res=`eval echo '${'$as_ac_Header'}'`
12046 { echo "$as_me:$LINENO: result: $ac_res" >&5
12047 echo "${ECHO_T}$ac_res" >&6; }
12049 # Is the header compilable?
12050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 $ac_includes_default
12059 #include <$ac_header>
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12065 *) ac_try_echo
=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_compile") 2>conftest.er1
12070 grep -v '^ *+' conftest.er1
>conftest.err
12072 cat conftest.err
>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } && {
12075 test -z "$ac_c_werror_flag" ||
12076 test ! -s conftest.err
12077 } && test -s conftest.
$ac_objext; then
12078 ac_header_compiler
=yes
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.
$ac_ext >&5
12083 ac_header_compiler
=no
12086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12088 echo "${ECHO_T}$ac_header_compiler" >&6; }
12090 # Is the header present?
12091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12092 echo $ECHO_N "checking $ac_header presence... $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. */
12099 #include <$ac_header>
12101 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12102 case "(($ac_try" in
12103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1 >conftest.err
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev/null && {
12114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12115 test ! -s conftest.err
12117 ac_header_preproc=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_header_preproc=no
12125 rm -f conftest.err conftest.$ac_ext
12126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12127 echo "${ECHO_T}$ac_header_preproc" >&6; }
12129 # So? What about this header?
12130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12136 ac_header_preproc=yes
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 eval "$as_ac_Header=\$ac_header_preproc"
12161 ac_res=`eval echo '${'$as_ac_Header'}'`
12162 { echo "$as_me:$LINENO: result: $ac_res" >&5
12163 echo "${ECHO_T}$ac_res" >&6; }
12166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12175 CPPFLAGS="$savedcppflags"
12178 for ac_header in sys/bitypes.h
12180 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 ac_res=`eval echo '${'$as_ac_Header'}'`
12188 { echo "$as_me:$LINENO: result: $ac_res" >&5
12189 echo "${ECHO_T}$ac_res" >&6; }
12191 # Is the header compilable?
12192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <$ac_header>
12203 rm -f conftest.$ac_objext
12204 if { (ac_try="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12207 *) ac_try_echo
=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_compile") 2>conftest.er1
12212 grep -v '^ *+' conftest.er1
>conftest.err
12214 cat conftest.err
>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.
$ac_objext; then
12220 ac_header_compiler
=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.
$ac_ext >&5
12225 ac_header_compiler
=no
12228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6; }
12232 # Is the header present?
12233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235 cat >conftest.
$ac_ext <<_ACEOF
12238 cat confdefs.h
>>conftest.
$ac_ext
12239 cat >>conftest.
$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <$ac_header>
12243 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12244 case "(($ac_try" in
12245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null && {
12256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12259 ac_header_preproc=yes
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_header_preproc=no
12267 rm -f conftest.err conftest.$ac_ext
12268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269 echo "${ECHO_T}$ac_header_preproc" >&6; }
12271 # So? What about this header?
12272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12278 ac_header_preproc=yes
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 eval "$as_ac_Header=\$ac_header_preproc"
12303 ac_res=`eval echo '${'$as_ac_Header'}'`
12304 { echo "$as_me:$LINENO: result: $ac_res" >&5
12305 echo "${ECHO_T}$ac_res" >&6; }
12308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12318 { echo "$as_me:$LINENO: checking for int8_t" >&5
12319 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12320 if test "${ac_cv_type_int8_t+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 $ac_includes_default
12330 #ifdef HAVE_SYS_BITYPES_H
12331 #include <sys/bitypes.h>
12334 typedef int8_t ac__type_new_;
12338 if ((ac__type_new_ *) 0)
12340 if (sizeof (ac__type_new_))
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12350 *) ac_try_echo
=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1
>conftest.err
12357 cat conftest.err
>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.
$ac_objext; then
12363 ac_cv_type_int8_t
=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.
$ac_ext >&5
12368 ac_cv_type_int8_t
=no
12371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12374 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12375 if test $ac_cv_type_int8_t = yes; then
12379 cat >>confdefs.h
<<\_ACEOF
12380 #define int8_t signed char
12385 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12386 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12387 if test "${ac_cv_type_u_int8_t+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.
$ac_ext <<_ACEOF
12393 cat confdefs.h
>>conftest.
$ac_ext
12394 cat >>conftest.
$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12397 #ifdef HAVE_SYS_BITYPES_H
12398 #include <sys/bitypes.h>
12401 typedef u_int8_t ac__type_new_;
12405 if ((ac__type_new_ *) 0)
12407 if (sizeof (ac__type_new_))
12413 rm -f conftest.
$ac_objext
12414 if { (ac_try
="$ac_compile"
12415 case "(($ac_try" in
12416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_compile") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest.$ac_objext; then
12430 ac_cv_type_u_int8_t=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_type_u_int8_t=no
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12441 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12442 if test $ac_cv_type_u_int8_t = yes; then
12446 cat >>confdefs.h <<\_ACEOF
12447 #define u_int8_t unsigned char
12452 { echo "$as_me:$LINENO: checking for int16_t" >&5
12453 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12454 if test "${ac_cv_type_int16_t+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12464 typedef int16_t ac__type_new_;
12468 if ((ac__type_new_ *) 0)
12470 if (sizeof (ac__type_new_))
12476 rm -f conftest.$ac_objext
12477 if { (ac_try="$ac_compile"
12478 case "(($ac_try" in
12479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12480 *) ac_try_echo
=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_compile") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1
>conftest.err
12487 cat conftest.err
>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest.
$ac_objext; then
12493 ac_cv_type_int16_t
=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.
$ac_ext >&5
12498 ac_cv_type_int16_t
=no
12501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12503 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12504 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12505 if test $ac_cv_type_int16_t = yes; then
12509 cat >>confdefs.h
<<\_ACEOF
12510 #define int16_t short
12513 $ac_includes_default
12514 #ifdef HAVE_SYS_BITYPES_H
12515 #include <sys/bitypes.h>
12519 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12520 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12521 if test "${ac_cv_type_u_int16_t+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 cat >conftest.
$ac_ext <<_ACEOF
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12531 #ifdef HAVE_SYS_BITYPES_H
12532 #include <sys/bitypes.h>
12535 typedef u_int16_t ac__type_new_;
12539 if ((ac__type_new_ *) 0)
12541 if (sizeof (ac__type_new_))
12547 rm -f conftest.
$ac_objext
12548 if { (ac_try
="$ac_compile"
12549 case "(($ac_try" in
12550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 ac_cv_type_u_int16_t=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_type_u_int16_t=no
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12575 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12576 if test $ac_cv_type_u_int16_t = yes; then
12580 cat >>confdefs.h <<\_ACEOF
12581 #define u_int16_t unsigned short
12586 { echo "$as_me:$LINENO: checking for int32_t" >&5
12587 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12588 if test "${ac_cv_type_int32_t+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 $ac_includes_default
12598 #ifdef HAVE_SYS_BITYPES_H
12599 #include <sys/bitypes.h>
12602 typedef int32_t ac__type_new_;
12606 if ((ac__type_new_ *) 0)
12608 if (sizeof (ac__type_new_))
12614 rm -f conftest.$ac_objext
12615 if { (ac_try="$ac_compile"
12616 case "(($ac_try" in
12617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12618 *) ac_try_echo
=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_compile") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1
>conftest.err
12625 cat conftest.err
>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest.
$ac_objext; then
12631 ac_cv_type_int32_t
=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.
$ac_ext >&5
12636 ac_cv_type_int32_t
=no
12639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12641 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12642 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12643 if test $ac_cv_type_int32_t = yes; then
12647 cat >>confdefs.h
<<\_ACEOF
12648 #define int32_t int
12653 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12654 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12655 if test "${ac_cv_type_u_int32_t+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 cat >conftest.
$ac_ext <<_ACEOF
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 $ac_includes_default
12665 #ifdef HAVE_SYS_BITYPES_H
12666 #include <sys/bitypes.h>
12669 typedef u_int32_t ac__type_new_;
12673 if ((ac__type_new_ *) 0)
12675 if (sizeof (ac__type_new_))
12681 rm -f conftest.
$ac_objext
12682 if { (ac_try
="$ac_compile"
12683 case "(($ac_try" in
12684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_compile") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest.$ac_objext; then
12698 ac_cv_type_u_int32_t=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_type_u_int32_t=no
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12709 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12710 if test $ac_cv_type_u_int32_t = yes; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define u_int32_t unsigned int
12720 { echo "$as_me:$LINENO: checking for int64_t" >&5
12721 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12722 if test "${ac_cv_type_int64_t+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 $ac_includes_default
12732 #ifdef HAVE_SYS_BITYPES_H
12733 #include <sys/bitypes.h>
12736 typedef int64_t ac__type_new_;
12740 if ((ac__type_new_ *) 0)
12742 if (sizeof (ac__type_new_))
12748 rm -f conftest.$ac_objext
12749 if { (ac_try="$ac_compile"
12750 case "(($ac_try" in
12751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12752 *) ac_try_echo
=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_compile") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1
>conftest.err
12759 cat conftest.err
>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && {
12762 test -z "$ac_c_werror_flag" ||
12763 test ! -s conftest.err
12764 } && test -s conftest.
$ac_objext; then
12765 ac_cv_type_int64_t
=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.
$ac_ext >&5
12770 ac_cv_type_int64_t
=no
12773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12775 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12776 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12777 if test $ac_cv_type_int64_t = yes; then
12781 cat >>confdefs.h
<<\_ACEOF
12782 #define int64_t long long
12787 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12788 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12789 if test "${ac_cv_type_u_int64_t+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 cat >conftest.
$ac_ext <<_ACEOF
12795 cat confdefs.h
>>conftest.
$ac_ext
12796 cat >>conftest.
$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #ifdef HAVE_SYS_BITYPES_H
12800 #include <sys/bitypes.h>
12803 typedef u_int64_t ac__type_new_;
12807 if ((ac__type_new_ *) 0)
12809 if (sizeof (ac__type_new_))
12815 rm -f conftest.
$ac_objext
12816 if { (ac_try
="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_cv_type_u_int64_t=yes
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_type_u_int64_t=no
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12843 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12844 if test $ac_cv_type_u_int64_t = yes; then
12848 cat >>confdefs.h <<\_ACEOF
12849 #define u_int64_t unsigned long long
12856 # We can't just check for <inttypes.h> - some systems have one that
12857 # doesn't define all the PRI[doxu]64 macros.
12860 for ac_header in inttypes.h
12862 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 ac_res=`eval echo '${'$as_ac_Header'}'`
12870 { echo "$as_me:$LINENO: result: $ac_res" >&5
12871 echo "${ECHO_T}$ac_res" >&6; }
12873 # Is the header compilable?
12874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 $ac_includes_default
12883 #include <$ac_header>
12885 rm -f conftest.$ac_objext
12886 if { (ac_try="$ac_compile"
12887 case "(($ac_try" in
12888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12889 *) ac_try_echo
=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_compile") 2>conftest.er1
12894 grep -v '^ *+' conftest.er1
>conftest.err
12896 cat conftest.err
>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } && {
12899 test -z "$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12901 } && test -s conftest.
$ac_objext; then
12902 ac_header_compiler
=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.
$ac_ext >&5
12907 ac_header_compiler
=no
12910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12912 echo "${ECHO_T}$ac_header_compiler" >&6; }
12914 # Is the header present?
12915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12917 cat >conftest.
$ac_ext <<_ACEOF
12920 cat confdefs.h
>>conftest.
$ac_ext
12921 cat >>conftest.
$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 #include <$ac_header>
12925 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12926 case "(($ac_try" in
12927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12933 grep -v '^ *+' conftest.er1 >conftest.err
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } >/dev/null && {
12938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12939 test ! -s conftest.err
12941 ac_header_preproc=yes
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_header_preproc=no
12949 rm -f conftest.err conftest.$ac_ext
12950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12951 echo "${ECHO_T}$ac_header_preproc" >&6; }
12953 # So? What about this header?
12954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12960 ac_header_preproc=yes
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 eval "$as_ac_Header=\$ac_header_preproc"
12985 ac_res=`eval echo '${'$as_ac_Header'}'`
12986 { echo "$as_me:$LINENO: result: $ac_res" >&5
12987 echo "${ECHO_T}$ac_res" >&6; }
12990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12996 # OK, we have inttypes.h, but does it define those macros?
12998 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12999 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
13000 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13008 #include <inttypes.h>
13010 #include <sys/types.h>
13011 #ifdef HAVE_SYS_BITYPES_H
13012 #include <sys/bitypes.h>
13017 printf("%" PRId64 "\n", (u_int64_t)1);
13018 printf("%" PRIo64 "\n", (u_int64_t)1);
13019 printf("%" PRIx64 "\n", (u_int64_t)1);
13020 printf("%" PRIu64 "\n", (u_int64_t)1);
13025 rm -f conftest.$ac_objext
13026 if { (ac_try="$ac_compile"
13027 case "(($ac_try" in
13028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13029 *) ac_try_echo
=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1
>conftest.err
13036 cat conftest.err
>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && {
13039 test -z "$ac_c_werror_flag" ||
13040 test ! -s conftest.err
13041 } && test -s conftest.
$ac_objext; then
13043 { echo "$as_me:$LINENO: result: yes" >&5
13044 echo "${ECHO_T}yes" >&6; }
13045 ac_lbl_inttypes_h_defines_formats
=yes
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.
$ac_ext >&5
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13054 ac_lbl_inttypes_h_defines_formats
=no
13058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13063 # We don't have inttypes.h, so it obviously can't define those
13066 ac_lbl_inttypes_h_defines_formats
=no
13072 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
13074 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
13075 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13076 if test "$cross_compiling" = yes; then
13077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13078 See \`config.log' for more details." >&5
13079 echo "$as_me: error: cannot run test program while cross compiling
13080 See \`config.log' for more details." >&2;}
13081 { (exit 1); exit 1; }; }
13083 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 # ifdef HAVE_INTTYPES_H
13092 #include <inttypes.h>
13094 # ifdef HAVE_SYS_BITYPES_H
13095 #include <sys/bitypes.h>
13098 #include <sys/types.h>
13104 sprintf(strbuf, "%016lx", t << 32);
13105 if (strcmp(strbuf, "0000000100000000") == 0)
13113 rm -f conftest
$ac_exeext
13114 if { (ac_try
="$ac_link"
13115 case "(($ac_try" in
13116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_link") 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13126 *) ac_try_echo
=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13134 cat >>confdefs.h
<<\_ACEOF
13135 #define PRId64 "ld"
13138 cat >>confdefs.h
<<\_ACEOF
13139 #define PRIo64 "lo"
13142 cat >>confdefs.h
<<\_ACEOF
13143 #define PRIx64 "lx"
13146 cat >>confdefs.h
<<\_ACEOF
13147 #define PRIu64 "lu"
13150 { echo "$as_me:$LINENO: result: yes" >&5
13151 echo "${ECHO_T}yes" >&6; }
13154 echo "$as_me: program exited with status $ac_status" >&5
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.
$ac_ext >&5
13158 ( exit $ac_status )
13160 { echo "$as_me:$LINENO: result: no" >&5
13161 echo "${ECHO_T}no" >&6; }
13164 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13165 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13166 if test "$cross_compiling" = yes; then
13167 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13168 See \`config.log' for more details." >&5
13169 echo "$as_me: error: cannot run test program while cross compiling
13170 See \`config.log' for more details." >&2;}
13171 { (exit 1); exit 1; }; }
13173 cat >conftest.
$ac_ext <<_ACEOF
13177 cat confdefs.h
>>conftest.
$ac_ext
13178 cat >>conftest.
$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 # ifdef HAVE_INTTYPES_H
13182 #include <inttypes.h>
13184 # ifdef HAVE_SYS_BITYPES_H
13185 #include <sys/bitypes.h>
13188 #include <sys/types.h>
13194 sprintf(strbuf, "%016llx", t << 32);
13195 if (strcmp(strbuf, "0000000100000000") == 0)
13203 rm -f conftest
$ac_exeext
13204 if { (ac_try
="$ac_link"
13205 case "(($ac_try" in
13206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_link") 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13216 *) ac_try_echo
=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13224 cat >>confdefs.h
<<\_ACEOF
13225 #define PRId64 "lld"
13228 cat >>confdefs.h
<<\_ACEOF
13229 #define PRIo64 "llo"
13232 cat >>confdefs.h
<<\_ACEOF
13233 #define PRIx64 "llx"
13236 cat >>confdefs.h
<<\_ACEOF
13237 #define PRIu64 "llu"
13240 { echo "$as_me:$LINENO: result: yes" >&5
13241 echo "${ECHO_T}yes" >&6; }
13244 echo "$as_me: program exited with status $ac_status" >&5
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.
$ac_ext >&5
13248 ( exit $ac_status )
13250 { echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6; }
13254 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13255 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13256 if test "$cross_compiling" = yes; then
13257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13258 See \`config.log' for more details." >&5
13259 echo "$as_me: error: cannot run test program while cross compiling
13260 See \`config.log' for more details." >&2;}
13261 { (exit 1); exit 1; }; }
13263 cat >conftest.
$ac_ext <<_ACEOF
13267 cat confdefs.h
>>conftest.
$ac_ext
13268 cat >>conftest.
$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13271 # ifdef HAVE_INTTYPES_H
13272 #include <inttypes.h>
13274 # ifdef HAVE_SYS_BITYPES_H
13275 #include <sys/bitypes.h>
13278 #include <sys/types.h>
13284 sprintf(strbuf, "%016Lx", t << 32);
13285 if (strcmp(strbuf, "0000000100000000") == 0)
13293 rm -f conftest
$ac_exeext
13294 if { (ac_try
="$ac_link"
13295 case "(($ac_try" in
13296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13306 *) ac_try_echo
=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13314 cat >>confdefs.h
<<\_ACEOF
13315 #define PRId64 "Ld"
13318 cat >>confdefs.h
<<\_ACEOF
13319 #define PRIo64 "Lo"
13322 cat >>confdefs.h
<<\_ACEOF
13323 #define PRIx64 "Lx"
13326 cat >>confdefs.h
<<\_ACEOF
13327 #define PRIu64 "Lu"
13330 { echo "$as_me:$LINENO: result: yes" >&5
13331 echo "${ECHO_T}yes" >&6; }
13334 echo "$as_me: program exited with status $ac_status" >&5
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.
$ac_ext >&5
13338 ( exit $ac_status )
13340 { echo "$as_me:$LINENO: result: no" >&5
13341 echo "${ECHO_T}no" >&6; }
13344 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13345 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13346 if test "$cross_compiling" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13348 See \`config.log' for more details." >&5
13349 echo "$as_me: error: cannot run test program while cross compiling
13350 See \`config.log' for more details." >&2;}
13351 { (exit 1); exit 1; }; }
13353 cat >conftest.
$ac_ext <<_ACEOF
13357 cat confdefs.h
>>conftest.
$ac_ext
13358 cat >>conftest.
$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13361 # ifdef HAVE_INTTYPES_H
13362 #include <inttypes.h>
13364 # ifdef HAVE_SYS_BITYPES_H
13365 #include <sys/bitypes.h>
13368 #include <sys/types.h>
13374 sprintf(strbuf, "%016qx", t << 32);
13375 if (strcmp(strbuf, "0000000100000000") == 0)
13383 rm -f conftest
$ac_exeext
13384 if { (ac_try
="$ac_link"
13385 case "(($ac_try" in
13386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13396 *) ac_try_echo
=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13404 cat >>confdefs.h
<<\_ACEOF
13405 #define PRId64 "qd"
13408 cat >>confdefs.h
<<\_ACEOF
13409 #define PRIo64 "qo"
13412 cat >>confdefs.h
<<\_ACEOF
13413 #define PRIx64 "qx"
13416 cat >>confdefs.h
<<\_ACEOF
13417 #define PRIu64 "qu"
13420 { echo "$as_me:$LINENO: result: yes" >&5
13421 echo "${ECHO_T}yes" >&6; }
13424 echo "$as_me: program exited with status $ac_status" >&5
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.
$ac_ext >&5
13428 ( exit $ac_status )
13430 { echo "$as_me:$LINENO: result: no" >&5
13431 echo "${ECHO_T}no" >&6; }
13433 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13434 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13435 { (exit 1); exit 1; }; }
13439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13470 if test -n "$ac_tool_prefix"; then
13471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13472 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
13473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13475 if test "${ac_cv_prog_RANLIB+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 if test -n "$RANLIB"; then
13479 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
13481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13482 for as_dir
in $PATH
13485 test -z "$as_dir" && as_dir
=.
13486 for ac_exec_ext
in '' $ac_executable_extensions; do
13487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13488 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
13489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 RANLIB
=$ac_cv_prog_RANLIB
13499 if test -n "$RANLIB"; then
13500 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13501 echo "${ECHO_T}$RANLIB" >&6; }
13503 { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13509 if test -z "$ac_cv_prog_RANLIB"; then
13510 ac_ct_RANLIB
=$RANLIB
13511 # Extract the first word of "ranlib", so it can be a program name with args.
13512 set dummy ranlib
; ac_word
=$2
13513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13515 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 if test -n "$ac_ct_RANLIB"; then
13519 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
13521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13522 for as_dir
in $PATH
13525 test -z "$as_dir" && as_dir
=.
13526 for ac_exec_ext
in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_prog_ac_ct_RANLIB
="ranlib"
13529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
13539 if test -n "$ac_ct_RANLIB"; then
13540 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13541 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13543 { echo "$as_me:$LINENO: result: no" >&5
13544 echo "${ECHO_T}no" >&6; }
13547 if test "x$ac_ct_RANLIB" = x
; then
13550 case $cross_compiling:$ac_tool_warned in
13552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13553 whose name does not start with the host triplet. If you think this
13554 configuration is useful to you, please write to autoconf@gnu.org." >&5
13555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13556 whose name does not start with the host triplet. If you think this
13557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13558 ac_tool_warned
=yes ;;
13560 RANLIB
=$ac_ct_RANLIB
13563 RANLIB
="$ac_cv_prog_RANLIB"
13568 if test "${LBL_CFLAGS+set}" = set; then
13569 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
13571 if test -f .devel
; then
13572 if test "$GCC" = yes ; then
13573 if test "${LBL_CFLAGS+set}" != set; then
13574 if test "$ac_cv_prog_cc_g" = yes ; then
13575 V_CCOPT
="-g $V_CCOPT"
13577 V_CCOPT
="$V_CCOPT -Wall"
13578 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13579 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13586 V_CCOPT
="$V_CCOPT -n32"
13593 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13594 name
="lbl/os-$os.h"
13595 if test -f $name ; then
13596 ln -s $name os-proto.h
13598 cat >>confdefs.h
<<\_ACEOF
13599 #define HAVE_OS_PROTO_H 1
13603 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13604 echo "$as_me: WARNING: can't find $name" >&2;}
13608 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13609 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13610 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.
$ac_ext <<_ACEOF
13616 cat confdefs.h
>>conftest.
$ac_ext
13617 cat >>conftest.
$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 # include <sys/types.h>
13621 # include <sys/socket.h>
13625 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13630 rm -f conftest.
$ac_objext
13631 if { (ac_try
="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 ac_cv_lbl_sockaddr_has_sa_len=yes
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_lbl_sockaddr_has_sa_len=no
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13659 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13660 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_SOCKADDR_SA_LEN 1
13668 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13669 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13670 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 case "$host_cpu" in
13676 # These are CPU types where:
13678 # the CPU faults on an unaligned access, but at least some
13679 # OSes that support that CPU catch the fault and simulate
13680 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13681 # the simulation is slow, so we don't want to use it;
13683 # the CPU, I infer (from the old
13685 # XXX: should also check that they don't do weird things (like on arm)
13687 # comment) doesn't fault on unaligned accesses, but doesn't
13688 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13690 # for whatever reason, the test program doesn't work
13691 # (this has been claimed to be the case for several of those
13692 # CPUs - I don't know what the problem is; the problem
13693 # was reported as "the test program dumps core" for SuperH,
13694 # but that's what the test program is *supposed* to do -
13695 # it dumps core before it writes anything, so the test
13696 # for an empty output file should find an empty output
13697 # file and conclude that unaligned accesses don't work).
13699 # This run-time test won't work if you're cross-compiling, so
13700 # in order to support cross-compiling for a particular CPU,
13701 # we have to wire in the list of CPU types anyway, as far as
13702 # I know, so perhaps we should just have a set of CPUs on
13703 # which we know it doesn't work, a set of CPUs on which we
13704 # know it does work, and have the script just fail on other
13705 # cpu types and update it when such a failure occurs.
13707 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13708 ac_cv_lbl_unaligned_fail=yes
13712 cat >conftest.c <<EOF
13713 # include <sys/types.h>
13714 # include <sys/wait.h>
13715 # include <stdio.h>
13716 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13721 /* avoid "core dumped" message */
13727 pid = waitpid(pid, &status, 0);
13730 exit(!WIFEXITED(status));
13733 i = *(unsigned int *)&a[1];
13738 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13739 conftest.c $LIBS >/dev/null 2>&1
13740 if test ! -x conftest ; then
13741 ac_cv_lbl_unaligned_fail=yes
13743 ./conftest >conftest.out
13744 if test ! -s conftest.out ; then
13745 ac_cv_lbl_unaligned_fail=yes
13747 ac_cv_lbl_unaligned_fail=no
13750 rm -f -r conftest* core core.conftest
13755 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13756 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13757 if test $ac_cv_lbl_unaligned_fail = yes ; then
13759 cat >>confdefs.h <<\_ACEOF
13760 #define LBL_ALIGN 1
13766 { echo "$as_me:$LINENO: checking for h_errno" >&5
13767 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13768 if test "${ac_cv_var_h_errno+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13778 # include <sys/types.h>
13779 # include <netdb.h>
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13792 *) ac_try_echo
=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_compile") 2>conftest.er1
13797 grep -v '^ *+' conftest.er1
>conftest.err
13799 cat conftest.err
>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_c_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest.
$ac_objext; then
13805 ac_cv_var_h_errno
=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.
$ac_ext >&5
13810 ac_cv_var_h_errno
=no
13813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13816 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13817 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13818 if test "$ac_cv_var_h_errno" = "yes"; then
13819 cat >>confdefs.h
<<\_ACEOF
13820 #define HAVE_H_ERRNO 1
13827 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13828 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13829 # Specify location for both includes and libraries.
13830 want_libcrypto
=youmama
13832 # Check whether --with-crypto was given.
13833 if test "${with_crypto+set}" = set; then
13834 withval
=$with_crypto;
13835 if test $withval = no
13838 { echo "$as_me:$LINENO: result: no" >&5
13839 echo "${ECHO_T}no" >&6; }
13840 elif test $withval = yes
13843 { echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6; }
13847 { echo "$as_me:$LINENO: result: yes" >&5
13848 echo "${ECHO_T}yes" >&6; }
13849 crypto_dir
=$withval
13855 # Use libcrypto if it's present, otherwise don't.
13857 want_libcrypto
=ifavailable
13858 { echo "$as_me:$LINENO: result: yes, if available" >&5
13859 echo "${ECHO_T}yes, if available" >&6; }
13863 if test "$want_libcrypto" != "no"; then
13864 ac_cv_ssleay_path
=no
13866 if test "x$crypto_dir" = x
; then
13868 # Location not specified; check the default locations.
13870 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13871 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13872 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13873 if test "x${host_alias}" != x
; then
13874 dirs="/usr/${host_alias} $dirs"
13876 for dir
in $dirs; do
13879 # Find the last component of $libdir; it's not necessarily
13880 # "lib" - it might be "lib64" on, for example, x86-64
13883 # We assume the directory in which we're looking for
13884 # libcrypto has a subdirectory with that as its name.
13886 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
13889 # XXX - is there a better way to check if a given library is
13890 # in a given directory than checking each of the possible
13891 # shared library suffixes?
13893 # Are there any other suffixes we need to look for? Do we
13894 # have to worry about ".so.{version}"?
13896 # Or should we just look for "libcrypto.*"?
13898 if test -d "$dir/$tmplib" -a \
( -f "$dir/$tmplib/libcrypto.a" -o \
13899 -f "$dir/$tmplib/libcrypto.so" -o \
13900 -f "$dir/$tmplib/libcrypto.sl" -o \
13901 -f "$dir/$tmplib/libcrypto.dylib" \
); then
13902 ac_cv_ssleay_path
="$dir"
13906 # Make sure we have the headers as well.
13908 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13909 incdir
="-I$dir/include"
13913 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13916 ac_cv_ssleay_path
=no
13920 if test "$ac_cv_ssleay_path" != no
; then
13921 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13922 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13925 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13926 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13929 # Find the last component of $libdir; it's not necessarily
13930 # "lib" - it might be "lib64" on, for example, x86-64
13933 # We assume the directory in which we're looking for
13934 # libcrypto has a subdirectory with that as its name.
13936 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
13939 # XXX - is there a better way to check if a given library is
13940 # in a given directory than checking each of the possible
13941 # shared library suffixes?
13943 # Are there any other suffixes we need to look for? Do we
13944 # have to worry about ".so.{version}"?
13946 # Or should we just look for "libcrypto.*"?
13948 if test -d "$crypto_dir/$tmplib" -a \
( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13949 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13950 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13951 -f "$crypto_dir/$tmplib/libcrypto.dylib" \
); then
13952 ac_cv_ssleay_path
="$crypto_dir"
13956 # Make sure we have the headers as well.
13958 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13959 incdir
="-I$crypto_dir/include"
13962 if test "$ac_cv_ssleay_path" != no
; then
13963 { echo "$as_me:$LINENO: result: found" >&5
13964 echo "${ECHO_T}found" >&6; }
13967 if test "$ac_cv_ssleay_path" != no
; then
13968 V_INCLS
="$V_INCLS $incdir"
13969 if test "$dir" != "/usr"; then
13970 LDFLAGS
="-L$dir/lib $LDFLAGS"
13972 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
13973 LIBS
="$LIBS -lRSAglue"
13975 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
13976 LIBS
="$LIBS -lrsaref"
13979 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13980 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13981 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 ac_check_lib_save_LIBS
=$LIBS
13985 LIBS
="-lcrypto $LIBS"
13986 cat >conftest.
$ac_ext <<_ACEOF
13989 cat confdefs.h
>>conftest.
$ac_ext
13990 cat >>conftest.
$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13993 /* Override any GCC internal prototype to avoid an error.
13994 Use char because int might match the return type of a GCC
13995 builtin and then its argument prototype would still apply. */
13999 char DES_cbc_encrypt ();
14003 return DES_cbc_encrypt ();
14008 rm -f conftest.
$ac_objext conftest
$ac_exeext
14009 if { (ac_try
="$ac_link"
14010 case "(($ac_try" in
14011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_link") 2>conftest.er1
14017 grep -v '^ *+' conftest.er1 >conftest.err
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } && {
14022 test -z "$ac_c_werror_flag" ||
14023 test ! -s conftest.err
14024 } && test -s conftest$ac_exeext &&
14025 $as_test_x conftest$ac_exeext; then
14026 ac_cv_lib_crypto_DES_cbc_encrypt=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_cv_lib_crypto_DES_cbc_encrypt=no
14034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14035 conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14038 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
14039 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
14040 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_LIBCRYPTO 1
14045 LIBS="-lcrypto $LIBS"
14050 CPPFLAGS="$CPPFLAGS $V_INCLS"
14052 for ac_header in openssl/evp.h
14054 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 ac_res=`eval echo '${'$as_ac_Header'}'`
14062 { echo "$as_me:$LINENO: result: $ac_res" >&5
14063 echo "${ECHO_T}$ac_res" >&6; }
14065 # Is the header compilable?
14066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 $ac_includes_default
14075 #include <$ac_header>
14077 rm -f conftest.$ac_objext
14078 if { (ac_try="$ac_compile"
14079 case "(($ac_try" in
14080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14081 *) ac_try_echo
=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_compile") 2>conftest.er1
14086 grep -v '^ *+' conftest.er1
>conftest.err
14088 cat conftest.err
>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } && {
14091 test -z "$ac_c_werror_flag" ||
14092 test ! -s conftest.err
14093 } && test -s conftest.
$ac_objext; then
14094 ac_header_compiler
=yes
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.
$ac_ext >&5
14099 ac_header_compiler
=no
14102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14104 echo "${ECHO_T}$ac_header_compiler" >&6; }
14106 # Is the header present?
14107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14109 cat >conftest.
$ac_ext <<_ACEOF
14112 cat confdefs.h
>>conftest.
$ac_ext
14113 cat >>conftest.
$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <$ac_header>
14117 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14118 case "(($ac_try" in
14119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14120 *) ac_try_echo=$ac_try;;
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14125 grep -v '^ *+' conftest.er1 >conftest.err
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } >/dev/null && {
14130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14131 test ! -s conftest.err
14133 ac_header_preproc=yes
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ac_header_preproc=no
14141 rm -f conftest.err conftest.$ac_ext
14142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14143 echo "${ECHO_T}$ac_header_preproc" >&6; }
14145 # So? What about this header?
14146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14152 ac_header_preproc=yes
14155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 eval "$as_ac_Header=\$ac_header_preproc"
14177 ac_res=`eval echo '${'$as_ac_Header'}'`
14178 { echo "$as_me:$LINENO: result: $ac_res" >&5
14179 echo "${ECHO_T}$ac_res" >&6; }
14182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14183 cat >>confdefs.h <<_ACEOF
14184 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14193 # Not found. Did the user explicitly ask for it?
14195 { echo "$as_me:$LINENO: result: not found" >&5
14196 echo "${ECHO_T}not found" >&6; }
14197 if test "$want_libcrypto" = yes; then
14198 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14199 echo "$as_me: error: SSLeay not found" >&2;}
14200 { (exit 1); exit 1; }; }
14205 if test "$missing_includes" = "yes"; then
14206 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14207 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14219 # Find a good install program. We prefer a C program (faster),
14220 # so one script is as good as another. But avoid the broken or
14221 # incompatible versions:
14222 # SysV /etc/install, /usr/sbin/install
14223 # SunOS /usr/etc/install
14224 # IRIX /sbin/install
14226 # AmigaOS /C/install, which installs bootblocks on floppy discs
14227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14230 # OS/2's system install, which has a completely different semantic
14231 # ./install, which can be erroneously created by make from ./install.sh.
14232 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14234 if test -z "$INSTALL"; then
14235 if test "${ac_cv_path_install+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14242 test -z "$as_dir" && as_dir=.
14243 # Account for people who put trailing slashes in PATH elements.
14245 ./ | .// | /cC/* | \
14246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14250 # OSF1 and SCO ODT 3.0 have their own names for install.
14251 # Don't use installbsd from OSF since it installs stuff as root
14253 for ac_prog in ginstall scoinst install; do
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14256 if test $ac_prog = install &&
14257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14258 # AIX install. It has an incompatible calling convention.
14260 elif test $ac_prog = install &&
14261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14262 # program-specific install script used by HP pwplus--don't use.
14265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14278 if test "${ac_cv_path_install+set}" = set; then
14279 INSTALL=$ac_cv_path_install
14281 # As a last resort, use the slow shell script. Don't cache a
14282 # value for INSTALL within a source directory, because that will
14283 # break other packages using the cache if that directory is
14284 # removed, or if the value is a relative name.
14285 INSTALL=$ac_install_sh
14288 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14289 echo "${ECHO_T}$INSTALL" >&6; }
14291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14292 # It thinks the first close brace ends the variable substitution.
14293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14300 ac_config_headers="$ac_config_headers config.h"
14303 ac_config_commands="$ac_config_commands default-1"
14305 ac_config_files="$ac_config_files Makefile tcpdump.1"
14307 cat >confcache <<\_ACEOF
14308 # This file is a shell script that caches the results of configure
14309 # tests run on this system so they can be shared between configure
14310 # scripts and configure runs, see configure's option --config-cache.
14311 # It is not useful on other systems. If it contains results you don't
14312 # want to keep, you may remove or edit it.
14314 # config.status only pays attention to the cache file if you give it
14315 # the --recheck option to rerun configure.
14317 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
14318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14319 # following values.
14323 # The following way of writing the cache mishandles newlines in values,
14324 # but we know of no workaround that is simple, portable, and efficient.
14325 # So, we kill variables containing newlines.
14326 # Ultrix sh set writes to stderr and can't be redirected directly,
14327 # and sets the high bit in the cache file unless we assign to the vars.
14329 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14330 eval ac_val
=\$
$ac_var
14334 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14335 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14338 _ | IFS | as_nl
) ;; #(
14339 *) $as_unset $ac_var ;;
14345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14346 *${as_nl}ac_space
=\
*)
14347 # `set' does not quote correctly, so add quotes (double-quote
14348 # substitution turns \\\\ into \\, and sed turns \\ into \).
14351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14354 # `set' quotes correctly as required by POSIX, so do not add quotes.
14355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14368 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14369 if test -w "$cache_file"; then
14370 test "x$cache_file" != "x/dev/null" &&
14371 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14372 echo "$as_me: updating cache $cache_file" >&6;}
14373 cat confcache
>$cache_file
14375 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14376 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14381 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14382 # Let make expand exec_prefix.
14383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14385 DEFS
=-DHAVE_CONFIG_H
14389 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14390 # 1. Remove the extension, and $U if already installed.
14391 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14392 ac_i
=`echo "$ac_i" | sed "$ac_script"`
14393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14394 # will be set to the directory where LIBOBJS objects are built.
14395 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14396 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14398 LIBOBJS
=$ac_libobjs
14400 LTLIBOBJS
=$ac_ltlibobjs
14404 : ${CONFIG_STATUS=./config.status}
14405 ac_clean_files_save
=$ac_clean_files
14406 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14407 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14408 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14409 cat >$CONFIG_STATUS <<_ACEOF
14411 # Generated by $as_me.
14412 # Run this file to recreate the current configuration.
14413 # Compiler output produced by configure, useful for debugging
14414 # configure, is in config.log if it exists.
14417 ac_cs_recheck=false
14419 SHELL=\${CONFIG_SHELL-$SHELL}
14422 cat >>$CONFIG_STATUS <<\_ACEOF
14423 ## --------------------- ##
14424 ## M4sh Initialization. ##
14425 ## --------------------- ##
14427 # Be more Bourne compatible
14428 DUALCASE
=1; export DUALCASE
# for MKS sh
14429 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14432 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14433 # is contrary to our usage. Disable this feature.
14434 alias -g '${1+"$@"}'='"$@"'
14435 setopt NO_GLOB_SUBST
14437 case `(set -o) 2>/dev/null` in
14438 *posix
*) set -o posix
;;
14447 # Avoid depending upon Character Ranges.
14448 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14449 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14450 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14451 as_cr_digits
='0123456789'
14452 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14454 # The user is always right.
14455 if test "${PATH_SEPARATOR+set}" != set; then
14456 echo "#! /bin/sh" >conf$$.sh
14457 echo "exit 0" >>conf$$.sh
14459 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14467 # Support unset when possible.
14468 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
14476 # We need space, tab and new line, in precisely that order. Quoting is
14477 # there to prevent editors from complaining about space-tab.
14478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14479 # splitting by setting IFS to empty value.)
14484 # Find who we are. Look in the path if we contain no directory separator.
14486 *[\\/]* ) as_myself
=$0 ;;
14487 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14488 for as_dir
in $PATH
14491 test -z "$as_dir" && as_dir
=.
14492 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14498 # We did not find ourselves, most probably we were run as `sh COMMAND'
14499 # in which case we are not to be found in the path.
14500 if test "x$as_myself" = x
; then
14503 if test ! -f "$as_myself"; then
14504 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14505 { (exit 1); exit 1; }
14508 # Work around bugs in pre-3.0 UWIN ksh.
14509 for as_var
in ENV MAIL MAILPATH
14510 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14518 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14519 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14520 LC_TELEPHONE LC_TIME
14522 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14523 eval $as_var=C
; export $as_var
14525 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14529 # Required to use basename.
14530 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14531 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14537 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14538 as_basename
=basename
14544 # Name of the executable.
14545 as_me
=`$as_basename -- "$0" ||
14546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14547 X"$0" : 'X\(//\)$' \| \
14548 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14550 sed '/^.*\/\([^/][^/]*\)\/*$/{
14569 as_lineno_1
=$LINENO
14570 as_lineno_2
=$LINENO
14571 test "x$as_lineno_1" != "x$as_lineno_2" &&
14572 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
14574 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14575 # uniformly replaced by the line number. The first 'sed' inserts a
14576 # line-number line after each line using $LINENO; the second 'sed'
14577 # does the real work. The second script uses 'N' to pair each
14578 # line-number line with the line containing $LINENO, and appends
14579 # trailing '-' during substitution so that $LINENO is not a special
14580 # case at line end.
14581 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14582 # scripts with optimization help from Paolo Bonzini. Blame Lee
14583 # E. McMahon (1931-1989) for sed's syntax. :-)
14595 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14598 ' >$as_me.lineno
&&
14599 chmod +x
"$as_me.lineno" ||
14600 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14601 { (exit 1); exit 1; }; }
14603 # Don't try to exec as it changes $[0], causing all sort of problems
14604 # (the dirname of $[0] is not the place where we might find the
14605 # original and so on. Autoconf is especially sensitive to this).
14606 .
"./$as_me.lineno"
14607 # Exit status is that of the last command.
14612 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14618 ECHO_C
= ECHO_N
= ECHO_T
=
14619 case `echo -n x` in
14621 case `echo 'x\c'` in
14622 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14629 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14630 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14636 rm -f conf$$ conf$$.exe conf$$.
file
14637 if test -d conf$$.dir
; then
14638 rm -f conf$$.dir
/conf$$.
file
14644 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14646 # ... but there are two gotchas:
14647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14649 # In both cases, we have to default to `cp -p'.
14650 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14652 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14657 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14658 rmdir conf$$.dir
2>/dev
/null
14660 if mkdir
-p .
2>/dev
/null
; then
14663 test -d .
/-p && rmdir .
/-p
14667 if test -x / >/dev
/null
2>&1; then
14668 as_test_x
='test -x'
14670 if ls -dL / >/dev
/null
2>&1; then
14677 if test -d "$1"; then
14683 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14684 ???[sx]*):;;*)false;;esac;fi
14688 as_executable_p
=$as_test_x
14690 # Sed expression to map a string onto a valid CPP name.
14691 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14693 # Sed expression to map a string onto a valid variable name.
14694 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14699 # Save the log message, to keep $[0] and so on meaningful, and to
14700 # report actual input values of CONFIG_FILES etc. instead of their
14701 # values after options handling.
14703 This file was extended by $as_me, which was
14704 generated by GNU Autoconf 2.61. Invocation command line was
14706 CONFIG_FILES = $CONFIG_FILES
14707 CONFIG_HEADERS = $CONFIG_HEADERS
14708 CONFIG_LINKS = $CONFIG_LINKS
14709 CONFIG_COMMANDS = $CONFIG_COMMANDS
14712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14717 cat >>$CONFIG_STATUS <<_ACEOF
14718 # Files that config.status was made for.
14719 config_files="$ac_config_files"
14720 config_headers="$ac_config_headers"
14721 config_commands="$ac_config_commands"
14725 cat >>$CONFIG_STATUS <<\_ACEOF
14727 \`$as_me' instantiates files from templates according to the
14728 current configuration.
14730 Usage: $0 [OPTIONS] [FILE]...
14732 -h, --help print this help, then exit
14733 -V, --version print version number and configuration settings, then exit
14734 -q, --quiet do not print progress messages
14735 -d, --debug don't remove temporary files
14736 --recheck update $as_me by reconfiguring in the same conditions
14737 --file=FILE[:TEMPLATE]
14738 instantiate the configuration file FILE
14739 --header=FILE[:TEMPLATE]
14740 instantiate the configuration header FILE
14742 Configuration files:
14745 Configuration headers:
14748 Configuration commands:
14751 Report bugs to <bug-autoconf@gnu.org>."
14754 cat >>$CONFIG_STATUS <<_ACEOF
14757 configured by $0, generated by GNU Autoconf 2.61,
14758 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14760 Copyright (C) 2006 Free Software Foundation, Inc.
14761 This config.status script is free software; the Free Software Foundation
14762 gives unlimited permission to copy, distribute and modify it."
14769 cat >>$CONFIG_STATUS <<\_ACEOF
14770 # If no file are specified by the user, then we need to provide default
14771 # value. By we need to know if files were specified by the user.
14777 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14778 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14789 # Handling of the options.
14790 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14792 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14793 echo "$ac_cs_version"; exit ;;
14794 --debug |
--debu |
--deb |
--de |
--d |
-d )
14796 --file |
--fil |
--fi |
--f )
14798 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14799 ac_need_defaults
=false
;;
14800 --header |
--heade |
--head |
--hea )
14802 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14803 ac_need_defaults
=false
;;
14805 # Conflict between --help and --header
14806 { echo "$as_me: error: ambiguous option: $1
14807 Try \`$0 --help' for more information." >&2
14808 { (exit 1); exit 1; }; };;
14809 --help |
--hel |
-h )
14810 echo "$ac_cs_usage"; exit ;;
14811 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14812 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14815 # This is an error.
14816 -*) { echo "$as_me: error: unrecognized option: $1
14817 Try \`$0 --help' for more information." >&2
14818 { (exit 1); exit 1; }; } ;;
14820 *) ac_config_targets
="$ac_config_targets $1"
14821 ac_need_defaults
=false
;;
14827 ac_configure_extra_args
=
14829 if $ac_cs_silent; then
14831 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14835 cat >>$CONFIG_STATUS <<_ACEOF
14836 if \$ac_cs_recheck; then
14837 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14838 CONFIG_SHELL=$SHELL
14839 export CONFIG_SHELL
14840 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14844 cat >>$CONFIG_STATUS <<\_ACEOF
14848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14849 ## Running $as_me. ##
14855 cat >>$CONFIG_STATUS <<_ACEOF
14863 cat >>$CONFIG_STATUS <<\_ACEOF
14865 # Handling of arguments.
14866 for ac_config_target
in $ac_config_targets
14868 case $ac_config_target in
14869 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14870 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14871 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14872 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
14874 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14875 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14876 { (exit 1); exit 1; }; };;
14881 # If the user did not use the arguments to specify the items to instantiate,
14882 # then the envvar interface is used. Set only those that are not.
14883 # We use the long form for the default assignment because of an extremely
14884 # bizarre bug on SunOS 4.1.3.
14885 if $ac_need_defaults; then
14886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14887 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14888 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14891 # Have a temporary directory for convenience. Make it in the build tree
14892 # simply because there is no reason against having it here, and in addition,
14893 # creating and moving files from /tmp can sometimes cause problems.
14894 # Hook for its removal unless debugging.
14895 # Note that there is a small window in which the directory will not be cleaned:
14896 # after its creation but before its name has been assigned to `$tmp'.
14900 trap 'exit_status=$?
14901 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14903 trap '{ (exit 1); exit 1; }' 1 2 13 15
14905 # Create a (secure) tmp directory for tmp files.
14908 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14909 test -n "$tmp" && test -d "$tmp"
14912 tmp
=.
/conf$$
-$RANDOM
14913 (umask 077 && mkdir
"$tmp")
14916 echo "$me: cannot create a temporary directory in ." >&2
14917 { (exit 1); exit 1; }
14921 # Set up the sed scripts for CONFIG_FILES section.
14924 # No need to generate the scripts if there are no CONFIG_FILES.
14925 # This happens for instance when ./config.status config.h
14926 if test -n "$CONFIG_FILES"; then
14933 for ac_last_try
in false false false false false
:; do
14934 cat >conf$
$subs.
sed <<_ACEOF
14935 SHELL!$SHELL$ac_delim
14936 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14937 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14938 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14939 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14940 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14941 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14942 exec_prefix!$exec_prefix$ac_delim
14943 prefix!$prefix$ac_delim
14944 program_transform_name!$program_transform_name$ac_delim
14945 bindir!$bindir$ac_delim
14946 sbindir!$sbindir$ac_delim
14947 libexecdir!$libexecdir$ac_delim
14948 datarootdir!$datarootdir$ac_delim
14949 datadir!$datadir$ac_delim
14950 sysconfdir!$sysconfdir$ac_delim
14951 sharedstatedir!$sharedstatedir$ac_delim
14952 localstatedir!$localstatedir$ac_delim
14953 includedir!$includedir$ac_delim
14954 oldincludedir!$oldincludedir$ac_delim
14955 docdir!$docdir$ac_delim
14956 infodir!$infodir$ac_delim
14957 htmldir!$htmldir$ac_delim
14958 dvidir!$dvidir$ac_delim
14959 pdfdir!$pdfdir$ac_delim
14960 psdir!$psdir$ac_delim
14961 libdir!$libdir$ac_delim
14962 localedir!$localedir$ac_delim
14963 mandir!$mandir$ac_delim
14964 DEFS!$DEFS$ac_delim
14965 ECHO_C!$ECHO_C$ac_delim
14966 ECHO_N!$ECHO_N$ac_delim
14967 ECHO_T!$ECHO_T$ac_delim
14968 LIBS!$LIBS$ac_delim
14969 build_alias!$build_alias$ac_delim
14970 host_alias!$host_alias$ac_delim
14971 target_alias!$target_alias$ac_delim
14972 build!$build$ac_delim
14973 build_cpu!$build_cpu$ac_delim
14974 build_vendor!$build_vendor$ac_delim
14975 build_os!$build_os$ac_delim
14976 host!$host$ac_delim
14977 host_cpu!$host_cpu$ac_delim
14978 host_vendor!$host_vendor$ac_delim
14979 host_os!$host_os$ac_delim
14980 SHLICC2!$SHLICC2$ac_delim
14982 CFLAGS!$CFLAGS$ac_delim
14983 LDFLAGS!$LDFLAGS$ac_delim
14984 CPPFLAGS!$CPPFLAGS$ac_delim
14985 ac_ct_CC!$ac_ct_CC$ac_delim
14986 EXEEXT!$EXEEXT$ac_delim
14987 OBJEXT!$OBJEXT$ac_delim
14989 GREP!$GREP$ac_delim
14990 EGREP!$EGREP$ac_delim
14991 LIBOBJS!$LIBOBJS$ac_delim
14992 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14993 RANLIB!$RANLIB$ac_delim
14994 V_CCOPT!$V_CCOPT$ac_delim
14995 V_DEFS!$V_DEFS$ac_delim
14996 V_GROUP!$V_GROUP$ac_delim
14997 V_INCLS!$V_INCLS$ac_delim
14998 V_PCAPDEP!$V_PCAPDEP$ac_delim
14999 LOCALSRC!$LOCALSRC$ac_delim
15000 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
15001 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
15002 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15003 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15004 INSTALL_DATA!$INSTALL_DATA$ac_delim
15005 LTLIBOBJS!$LTLIBOBJS$ac_delim
15008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
15010 elif $ac_last_try; then
15011 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15012 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15013 { (exit 1); exit 1; }; }
15015 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
15019 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15020 if test -n "$ac_eof"; then
15021 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
15022 ac_eof
=`expr $ac_eof + 1`
15025 cat >>$CONFIG_STATUS <<_ACEOF
15026 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15030 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15031 s/^/s,@/; s/!/@,|#_!!_#|/
15034 s/'"$ac_delim"'$/,g/; t
15036 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15037 ' >>$CONFIG_STATUS <conf$
$subs.
sed
15038 rm -f conf$
$subs.
sed
15039 cat >>$CONFIG_STATUS <<_ACEOF
15046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15048 # trailing colons and then remove the whole line if VPATH becomes empty
15049 # (actually we leave an empty line to preserve line numbers).
15050 if test "x$srcdir" = x.
; then
15051 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15052 s/:*\$(srcdir):*/:/
15053 s/:*\${srcdir}:*/:/
15055 s/^\([^=]*=[ ]*\):*/\1/
15061 cat >>$CONFIG_STATUS <<\_ACEOF
15062 fi # test -n "$CONFIG_FILES"
15065 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
15068 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15070 case $ac_mode$ac_tag in
15072 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15073 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15074 { (exit 1); exit 1; }; };;
15075 :[FH
]-) ac_tag
=-:-;;
15076 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15093 -) ac_f
="$tmp/stdin";;
15094 *) # Look for the file first in the build tree, then in the source tree
15095 # (if the path is not absolute). The absolute path cannot be DOS-style,
15096 # because $ac_f cannot contain `:'.
15100 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15102 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15103 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15104 { (exit 1); exit 1; }; };;
15106 ac_file_inputs
="$ac_file_inputs $ac_f"
15109 # Let's still pretend it is `configure' which instantiates (i.e., don't
15110 # use $as_me), people would be surprised to read:
15111 # /* config.h. Generated by config.status. */
15112 configure_input
="Generated from "`IFS=:
15113 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15114 if test x
"$ac_file" != x-
; then
15115 configure_input
="$ac_file. $configure_input"
15116 { echo "$as_me:$LINENO: creating $ac_file" >&5
15117 echo "$as_me: creating $ac_file" >&6;}
15121 *:-:* |
*:-) cat >"$tmp/stdin";;
15126 ac_dir
=`$as_dirname -- "$ac_file" ||
15127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15128 X"$ac_file" : 'X\(//\)[^/]' \| \
15129 X"$ac_file" : 'X\(//\)$' \| \
15130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15136 /^X\(\/\/\)[^/].*/{
15151 -*) as_dir
=.
/$as_dir;;
15153 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
15157 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15158 *) as_qdir
=$as_dir;;
15160 as_dirs
="'$as_qdir' $as_dirs"
15161 as_dir
=`$as_dirname -- "$as_dir" ||
15162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15163 X"$as_dir" : 'X\(//\)[^/]' \| \
15164 X"$as_dir" : 'X\(//\)$' \| \
15165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15171 /^X\(\/\/\)[^/].*/{
15184 test -d "$as_dir" && break
15186 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15187 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15188 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15189 { (exit 1); exit 1; }; }; }
15193 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15195 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15196 # A ".." for each directory in $ac_dir_suffix.
15197 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15198 case $ac_top_builddir_sub in
15199 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15200 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15203 ac_abs_top_builddir
=$ac_pwd
15204 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15205 # for backward compatibility:
15206 ac_top_builddir
=$ac_top_build_prefix
15209 .
) # We are building in place.
15211 ac_top_srcdir
=$ac_top_builddir_sub
15212 ac_abs_top_srcdir
=$ac_pwd ;;
15213 [\\/]* | ?
:[\\/]* ) # Absolute name.
15214 ac_srcdir
=$srcdir$ac_dir_suffix;
15215 ac_top_srcdir
=$srcdir
15216 ac_abs_top_srcdir
=$srcdir ;;
15217 *) # Relative name.
15218 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15219 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15220 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15222 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15232 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15233 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15237 cat >>$CONFIG_STATUS <<\_ACEOF
15238 # If the template does not know about datarootdir, expand it.
15239 # FIXME: This hack should be removed a few years after 2.60.
15240 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15242 case `sed -n '/datarootdir/ {
15251 ' $ac_file_inputs` in
15252 *datarootdir
*) ac_datarootdir_seen
=yes;;
15253 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15254 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15255 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15257 cat >>$CONFIG_STATUS <<_ACEOF
15258 ac_datarootdir_hack='
15259 s&@datadir@&$datadir&g
15260 s&@docdir@&$docdir&g
15261 s&@infodir@&$infodir&g
15262 s&@localedir@&$localedir&g
15263 s&@mandir@&$mandir&g
15264 s&\\\${datarootdir}&$datarootdir&g' ;;
15268 # Neutralize VPATH when `$srcdir' = `.'.
15269 # Shell code in configure.ac might set extrasub.
15270 # FIXME: do we really want to maintain this feature?
15271 cat >>$CONFIG_STATUS <<_ACEOF
15275 cat >>$CONFIG_STATUS <<\_ACEOF
15277 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15278 s
&@configure_input@
&$configure_input&;t t
15279 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15280 s
&@srcdir@
&$ac_srcdir&;t t
15281 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15282 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15283 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15284 s
&@builddir@
&$ac_builddir&;t t
15285 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15286 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15287 s
&@INSTALL@
&$ac_INSTALL&;t t
15288 $ac_datarootdir_hack
15289 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
15291 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15292 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15294 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15295 which seems to be undefined. Please make sure it is defined." >&5
15296 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15297 which seems to be undefined. Please make sure it is defined." >&2;}
15301 -) cat "$tmp/out"; rm -f "$tmp/out";;
15302 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15311 # Transform confdefs.h into a sed script `conftest.defines', that
15312 # substitutes the proper values into config.h.in to produce config.h.
15313 rm -f conftest.defines conftest.
tail
15314 # First, append a space to every undef/define line, to ease matching.
15315 echo 's/$/ /' >conftest.defines
15316 # Then, protect against being on the right side of a sed subst, or in
15317 # an unquoted here document, in config.status. If some macros were
15318 # called several times there might be several #defines for the same
15319 # symbol, which is useless. But do not sort them, since the last
15320 # AC_DEFINE must be honored.
15321 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15322 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15323 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15324 # PARAMS is the parameter list in the macro definition--in most cases, it's
15325 # just an empty string.
15326 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15327 ac_dB
='\\)[ (].*,\\1define\\2'
15335 s/^[ ]*#[ ]*define[ ][ ]*//
15340 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15341 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15342 ' >>conftest.defines
15344 # Remove the space that was appended to ease matching.
15345 # Then replace #undef with comments. This is necessary, for
15346 # example, in the case of _POSIX_SOURCE, which is predefined and required
15347 # on some systems where configure will not decide to define it.
15348 # (The regexp can be short, since the line contains either #define or #undef.)
15350 s,^[ #]*u.*,/* & */,' >>conftest.defines
15352 # Break up conftest.defines:
15353 ac_max_sed_lines
=50
15355 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15356 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15357 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15359 ac_in
='$ac_file_inputs'
15360 ac_out
='"$tmp/out1"'
15361 ac_nxt
='"$tmp/out2"'
15365 # Write a here document:
15366 cat >>$CONFIG_STATUS <<_ACEOF
15367 # First, check the format of the line:
15368 cat >"\$tmp/defines.sed" <<\\CEOF
15369 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15370 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15374 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15376 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15377 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15378 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15379 grep . conftest.
tail >/dev
/null ||
break
15380 rm -f conftest.defines
15381 mv conftest.
tail conftest.defines
15383 rm -f conftest.defines conftest.
tail
15385 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15386 cat >>$CONFIG_STATUS <<\_ACEOF
15387 if test x
"$ac_file" != x-
; then
15388 echo "/* $configure_input */" >"$tmp/config.h"
15389 cat "$ac_result" >>"$tmp/config.h"
15390 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15391 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15392 echo "$as_me: $ac_file is unchanged" >&6;}
15395 mv "$tmp/config.h" $ac_file
15398 echo "/* $configure_input */"
15404 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15405 echo "$as_me: executing $ac_file commands" >&6;}
15410 case $ac_file$ac_mode in
15411 "default-1":C
) if test -f .devel
; then
15412 echo timestamp
> stamp-h
15413 cat Makefile-devel-adds
>> Makefile
15421 { (exit 0); exit 0; }
15423 chmod +x
$CONFIG_STATUS
15424 ac_clean_files
=$ac_clean_files_save
15427 # configure is writing to config.log, and then calls config.status.
15428 # config.status does its own redirection, appending to config.log.
15429 # Unfortunately, on DOS this fails, as config.log is still kept open
15430 # by configure, so config.status won't be able to write to it; its
15431 # output is simply discarded. So we exec the FD to /dev/null,
15432 # effectively closing config.log, so it can be properly (re)opened and
15433 # appended to by config.status. When coming back to configure, we
15434 # need to make the FD available again.
15435 if test "$no_create" != yes; then
15437 ac_config_status_args
=
15438 test "$silent" = yes &&
15439 ac_config_status_args
="$ac_config_status_args --quiet"
15441 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15443 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15444 # would make configure fail if this is the last instruction.
15445 $ac_cs_success ||
{ (exit 1); exit 1; }