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 --disable-universal don
't build universal on OS X
1271 --enable-smb enable possibly-buggy SMB printer default=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6 (with ipv4) support
1274 --disable-ipv6 disable ipv6 support
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --without-gcc don't use gcc
1280 --with-smi link with libsmi
(allows to load MIBs on the fly to decode SNMP packets. default
=yes
1281 --without-smi don
't link with libsmi
1282 --with-user=USERNAME drop privileges by default to USERNAME
1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1285 supplied). [default=yes, if available]
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1297 Use these variables to override the choices made by `configure' or to
help
1298 it to
find libraries and programs with nonstandard names
/locations.
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1307 test -d "$ac_dir" ||
continue
1311 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1313 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1318 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1321 ac_abs_top_builddir
=$ac_pwd
1322 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir
=$ac_top_build_prefix
1327 .
) # We are building in place.
1329 ac_top_srcdir
=$ac_top_builddir_sub
1330 ac_abs_top_srcdir
=$ac_pwd ;;
1331 [\\/]* | ?
:[\\/]* ) # Absolute name.
1332 ac_srcdir
=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir
=$srcdir
1334 ac_abs_top_srcdir
=$srcdir ;;
1336 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1340 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1361 generated by GNU Autoconf
2.61
1363 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1365 This configure
script is free software
; the Free Software Foundation
1366 gives unlimited permission to copy
, distribute and modify it.
1370 cat >config.log
<<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir
=.
1411 echo "PATH: $as_dir"
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_must_keep_next
=false
1441 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1442 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1443 |
-silent |
--silent |
--silen |
--sile |
--sil)
1446 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1449 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1451 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true
; then
1453 ac_must_keep_next
=false
# Got value, back to normal.
1456 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1457 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1458 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1459 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1464 -* ) ac_must_keep_next
=true
;;
1467 ac_configure_args
="$ac_configure_args '$ac_arg'"
1472 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1473 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1491 # The following way of writing the cache mishandles newlines in values,
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1528 for ac_var in $ac_subst_vars
1530 eval ac_val=\$$ac_var
1532 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534 echo "$ac_var='\''$ac_val'\''"
1538 if test -n "$ac_subst_files"; then
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1545 for ac_var
in $ac_subst_files
1547 eval ac_val
=\$
$ac_var
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 echo "$ac_var='\''$ac_val'\''"
1556 if test -s confdefs.h; then
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1574 for ac_signal
in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest
* confdefs.h
1582 # Predefined preprocessor variables.
1584 cat >>confdefs.h
<<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1589 cat >>confdefs.h
<<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1594 cat >>confdefs.h
<<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1599 cat >>confdefs.h
<<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 cat >>confdefs.h
<<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x
"$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE
; then
1614 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1616 set x
"$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1637 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1638 *) .
"./$cache_file";;
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1647 # Check that the precious variables saved in the cache have kept the same
1649 ac_cache_corrupted
=false
1650 for ac_var
in $ac_precious_vars; do
1651 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1652 eval ac_new_set
=\
$ac_env_${ac_var}_set
1653 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1654 eval ac_new_val
=\
$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted
=: ;;
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted
=: ;;
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted
=:
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1679 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg
=$ac_var=$ac_new_val ;;
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1713 ac_cpp
='$CPP $CPPFLAGS'
1714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1721 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1724 ac_install_sh
="$ac_aux_dir/install-sh -c"
1726 elif test -f "$ac_dir/install.sh"; then
1728 ac_install_sh
="$ac_aux_dir/install.sh -c"
1730 elif test -f "$ac_dir/shtool"; then
1732 ac_install_sh
="$ac_aux_dir/shtool install -c"
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 ac_build_alias
=$build_alias
1763 test "x$ac_build_alias" = x
&&
1764 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x
&&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1784 ac_save_IFS
=$IFS; IFS
='-'
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1794 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test "x$host_alias" = x
; then
1803 ac_cv_host
=$ac_cv_build
1805 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1821 ac_save_IFS
=$IFS; IFS
='-'
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1831 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1848 if test "${srcdir}" != "." ; then
1849 V_INCLS
="-I\$(srcdir)"
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS
="$CFLAGS"
1854 if test -z "$CC" ; then
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2
; ac_word
=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2
="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1886 SHLICC2
=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1896 if test $SHLICC2 = yes ; then
1903 if test -z "$CC" -a "$with_gcc" = no
; then
1909 ac_cpp
='$CPP $CPPFLAGS'
1910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC
="$CC" # Let the user override the test.
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir
=.
1929 for ac_exec_ext
in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc
; ac_word
=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC
="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1990 if test "x$ac_ct_CC" = x
; then
1993 case $cross_compiling:$ac_tool_warned in
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned
=yes ;;
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC
="$CC" # Let the user override the test.
2021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir
=.
2026 for ac_exec_ext
in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc
; ac_word
=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC
="$CC" # Let the user override the test.
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 for ac_exec_ext
in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected
=yes
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy
$ac_cv_prog_CC
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2090 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog
in cl.exe
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC
="$CC" # Let the user override the test.
2120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir
=.
2125 for ac_exec_ext
in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$CC" && break
2150 if test -z "$CC"; then
2152 for ac_prog
in cl.exe
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy
$ac_prog; ac_word
=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_exec_ext
in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC
="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$ac_ct_CC" && break
2194 if test "x$ac_ct_CC" = x
; then
2197 case $cross_compiling:$ac_tool_warned in
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned
=yes ;;
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler
=`set X $ac_compile; echo $2`
2223 { (ac_try
="$ac_compiler --version >&5"
2225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2236 *) ac_try_echo
=$ac_try;;
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try
="$ac_compiler -V >&5"
2245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2287 for ac_file in $ac_files
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2296 if { (ac_try="$ac_link_default"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2311 for ac_file
in $ac_files ''
2313 test -f "$ac_file" ||
continue
2315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2318 # We found the default executable, but exeext='' is most
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2324 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2336 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.
$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2355 ac_exeext
=$ac_cv_exeext
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try
='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2376 if test "$cross_compiling" = maybe; then
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details.
" >&5
2382 echo "$as_me: error
: cannot run C compiled programs.
2383 If you meant to cross compile
, use \
`--host'.
2384 See \`config.log
' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2417 for ac_file
in conftest.exe conftest conftest.
*; do
2418 test -f "$ac_file" ||
continue
2420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2421 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2434 rm -f conftest
$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2438 rm -f conftest.
$ac_ext
2439 EXEEXT
=$ac_cv_exeext
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 cat >conftest.
$ac_ext <<_ACEOF
2449 cat confdefs.h
>>conftest.
$ac_ext
2450 cat >>conftest.
$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try
="$ac_compile"
2464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log
' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details.
" >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached
) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2539 echo "$as_me: failed program was
:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2555 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached
) $ECHO_C" >&6
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2597 echo "$as_me: failed program was
:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 echo "$as_me: failed program was
:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2674 echo "$as_me: failed program was
:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2689 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2700 if test "$GCC" = yes; then
2706 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2707 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached
) $ECHO_C" >&6
2711 ac_cv_prog_cc_c89=no
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2737 s = g (p, va_arg (v,int));
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2793 echo "$as_me: failed program was
:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2802 rm -f conftest.$ac_ext
2807 case "x
$ac_cv_prog_cc_c89" in
2809 { echo "$as_me:$LINENO: result
: none needed
" >&5
2810 echo "${ECHO_T}none needed
" >&6; } ;;
2812 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2813 echo "${ECHO_T}unsupported
" >&6; } ;;
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2836 { echo "$as_me:$LINENO: checking gcc version
" >&5
2837 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached
) $ECHO_C" >&6
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2848 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2855 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2856 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2857 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858 echo $ECHO_N "(cached
) $ECHO_C" >&6
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <sys/types.h>
2871 int frob(int, char *)
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_lbl_cc_ansi_prototypes=yes
2895 echo "$as_me: failed program was
:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_cv_lbl_cc_ansi_prototypes=no
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2906 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2910 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2911 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2912 savedcflags="$CFLAGS"
2913 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915 echo $ECHO_N "(cached
) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <sys/types.h>
2927 int frob(int, char *)
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2949 ac_cv_lbl_cc_hpux_cc_aa=yes
2951 echo "$as_me: failed program was
:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 ac_cv_lbl_cc_hpux_cc_aa=no
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2962 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
2964 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
2965 { (exit 1); exit 1; }; }
2967 CFLAGS="$savedcflags"
2968 V_CCOPT="-Aa $V_CCOPT"
2970 cat >>confdefs.h <<\_ACEOF
2971 #define _HPUX_SOURCE 1
2977 { echo "$as_me:$LINENO: checking
for ansi mode
in DEC compiler
($CC -std1)" >&5
2978 echo $ECHO_N "checking
for ansi mode
in DEC compiler
($CC -std1)...
$ECHO_C" >&6; }
2979 savedcflags="$CFLAGS"
2981 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982 echo $ECHO_N "(cached
) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <sys/types.h>
2994 int frob(int, char *)
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_lbl_cc_osf1_cc_std1=yes
3018 echo "$as_me: failed program was
:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 ac_cv_lbl_cc_osf1_cc_std1=no
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3031 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3032 { (exit 1); exit 1; }; }
3034 CFLAGS="$savedcflags"
3035 V_CCOPT="-std1 $V_CCOPT"
3039 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3040 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3041 { (exit 1); exit 1; }; }
3045 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3046 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3051 V_CCOPT="$V_CCOPT -xansi -signed -O"
3056 # Presumed to be DEC OSF/1, Digital UNIX, or
3059 V_CCOPT="$V_CCOPT -O"
3063 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3064 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3065 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3066 echo $ECHO_N "(cached
) $ECHO_C" >&6
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <sys/types.h>
3078 struct a { int b; };
3079 void c(const struct a *)
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_cv_lbl_cc_const_proto=yes
3103 echo "$as_me: failed program was
:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cv_lbl_cc_const_proto=no
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3113 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3114 if test $ac_cv_lbl_cc_const_proto = no ; then
3116 cat >>confdefs.h <<\_ACEOF
3125 { echo "$as_me:$LINENO: checking
for inline
" >&5
3126 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3127 save_CFLAGS="$CFLAGS"
3129 if test "${ac_cv_lbl_inline+set}" = set; then
3130 echo $ECHO_N "(cached
) $ECHO_C" >&6
3135 for ac_lbl_inline in inline __inline__ __inline
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #define inline $ac_lbl_inline
3144 static inline struct iltest *foo(void);
3150 static inline struct iltest *
3153 static struct iltest xxx;
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_lbl_cc_inline=yes
3184 echo "$as_me: failed program was
:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 if test "$ac_lbl_cc_inline" = yes ; then
3195 if test "$ac_lbl_cc_inline" = yes ; then
3196 ac_cv_lbl_inline=$ac_lbl_inline
3200 CFLAGS="$save_CFLAGS"
3201 if test ! -z "$ac_cv_lbl_inline" ; then
3202 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3205 { echo "$as_me:$LINENO: result
: no
" >&5
3206 echo "${ECHO_T}no
" >&6; }
3209 cat >>confdefs.h <<_ACEOF
3210 #define inline $ac_cv_lbl_inline
3214 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3215 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3216 if test "${ac_cv___attribute__+set}" = set; then
3217 echo $ECHO_N "(cached
) $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3229 static void foo(void) __attribute__ ((noreturn));
3238 main(int argc, char **argv)
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv___attribute__=yes
3263 echo "$as_me: failed program was
:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_cv___attribute__=no
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 if test "$ac_cv___attribute__" = "yes"; then
3274 cat >>confdefs.h <<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3278 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3280 V_DEFS="$V_DEFS -D_U_=\"\""
3282 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3285 if test "$ac_cv___attribute__" = "yes"; then
3287 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3288 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached
) $ECHO_C" >&6
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3302 extern int (*foo)(const char *fmt, ...)
3303 __attribute__ ((format (printf, 1, 2)));
3306 main(int argc, char **argv)
3308 (*foo)("%s
", "test");
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv___attribute___format_function_pointer=yes
3331 echo "$as_me: failed program was
:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 ac_cv___attribute___format_function_pointer=no
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3342 cat >>confdefs.h <<\_ACEOF
3343 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3347 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3348 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached
) $ECHO_C" >&6
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3370 for ac_c_preproc_warn_flag in '' yes
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error
" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3385 # include <limits.h>
3387 # include <assert.h>
3391 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3403 (exit $ac_status); } >/dev/null && {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3409 echo "$as_me: failed program was
:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3440 (exit $ac_status); } >/dev/null && {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3444 # Broken: success on invalid input.
3447 echo "$as_me: failed program was
:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Passes both tests.
3455 rm -f conftest.err conftest.$ac_ext
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.$ac_ext
3460 if $ac_preproc_ok; then
3472 { echo "$as_me:$LINENO: result
: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3475 for ac_c_preproc_warn_flag in '' yes
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error
" is here to catch this case.
3483 cat >conftest.$ac_ext <<_ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3490 # include <limits.h>
3492 # include <assert.h>
3496 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3514 echo "$as_me: failed program was
:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3521 rm -f conftest.err conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3533 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3549 # Broken: success on invalid input.
3552 echo "$as_me: failed program was
:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 # Passes both tests.
3560 rm -f conftest.err conftest.$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3568 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3569 See \
`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log
' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3578 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3583 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3584 if test "${ac_cv_path_GREP+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 # Extract the first word of "grep ggrep" to use in msg output
3588 if test -z "$GREP"; then
3589 set dummy grep ggrep; ac_prog_name=$2
3590 if test "${ac_cv_path_GREP+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_path_GREP_found=false
3594 # Loop through the user's path and
test for each of PROGNAME-LIST
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_prog
in grep ggrep
; do
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3604 # Check for GNU ac_path_GREP and select it if it is found.
3605 # Check for GNU $ac_path_GREP
3606 case `"$ac_path_GREP" --version 2>&1` in
3608 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3611 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3614 cat "conftest.in" "conftest.in" >"conftest.tmp"
3615 mv "conftest.tmp" "conftest.in"
3616 cp "conftest.in" "conftest.nl"
3617 echo 'GREP' >> "conftest.nl"
3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3619 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3620 ac_count
=`expr $ac_count + 1`
3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3622 # Best one so far, save it but keep looking for a better one
3623 ac_cv_path_GREP
="$ac_path_GREP"
3624 ac_path_GREP_max
=$ac_count
3626 # 10*(2^10) chars as input seems more than enough
3627 test $ac_count -gt 10 && break
3629 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3633 $ac_path_GREP_found && break 3
3643 GREP
="$ac_cv_path_GREP"
3644 if test -z "$GREP"; then
3645 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647 { (exit 1); exit 1; }; }
3651 ac_cv_path_GREP
=$GREP
3656 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3657 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3658 GREP
="$ac_cv_path_GREP"
3661 { echo "$as_me:$LINENO: checking for egrep" >&5
3662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3667 then ac_cv_path_EGREP
="$GREP -E"
3669 # Extract the first word of "egrep" to use in msg output
3670 if test -z "$EGREP"; then
3671 set dummy
egrep; ac_prog_name
=$2
3672 if test "${ac_cv_path_EGREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_path_EGREP_found
=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_prog
in egrep; do
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3686 # Check for GNU ac_path_EGREP and select it if it is found.
3687 # Check for GNU $ac_path_EGREP
3688 case `"$ac_path_EGREP" --version 2>&1` in
3690 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'EGREP' >> "conftest.nl"
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3702 ac_count
=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_EGREP
="$ac_path_EGREP"
3706 ac_path_EGREP_max
=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3715 $ac_path_EGREP_found && break 3
3725 EGREP
="$ac_cv_path_EGREP"
3726 if test -z "$EGREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3733 ac_cv_path_EGREP
=$EGREP
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3741 EGREP
="$ac_cv_path_EGREP"
3744 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3746 if test "${ac_cv_header_stdc+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3768 rm -f conftest.
$ac_objext
3769 if { (ac_try
="$ac_compile"
3771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_cv_header_stdc=yes
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 ac_cv_header_stdc=no
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 if test $ac_cv_header_stdc = yes; then
3796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "memchr" >/dev/null 2>&1; then
3810 ac_cv_header_stdc=no
3816 if test $ac_cv_header_stdc = yes; then
3817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "free" >/dev/null 2>&1; then
3831 ac_cv_header_stdc=no
3837 if test $ac_cv_header_stdc = yes; then
3838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3839 if test "$cross_compiling" = yes; then
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3850 #if ((' ' & 0x0FF) == 0x020)
3851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3854 # define ISLOWER(c) \
3855 (('a' <= (c) && (c) <= 'i') \
3856 || ('j' <= (c) && (c) <= 'r') \
3857 || ('s' <= (c) && (c) <= 'z'))
3858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3866 for (i = 0; i < 256; i++)
3867 if (XOR (islower (i), ISLOWER (i))
3868 || toupper (i) != TOUPPER (i))
3873 rm -f conftest$ac_exeext
3874 if { (ac_try="$ac_link"
3876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3877 *) ac_try_echo
=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3884 { (case "(($ac_try" in
3885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: program exited with status $ac_status" >&5
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 ac_cv_header_stdc=no
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3908 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3909 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3912 cat >>confdefs.h <<\_ACEOF
3913 #define STDC_HEADERS 1
3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3928 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929 inttypes.h stdint.h unistd.h
3931 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_includes_default
3945 #include <$ac_header>
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3951 *) ac_try_echo
=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1
>conftest.err
3958 cat conftest.err
>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.
$ac_objext; then
3964 eval "$as_ac_Header=yes"
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.
$ac_ext >&5
3969 eval "$as_ac_Header=no"
3972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3974 ac_res
=`eval echo '${'$as_ac_Header'}'`
3975 { echo "$as_me:$LINENO: result: $ac_res" >&5
3976 echo "${ECHO_T}$ac_res" >&6; }
3977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978 cat >>confdefs.h
<<_ACEOF
3979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_res
=`eval echo '${'$as_ac_Header'}'`
4000 { echo "$as_me:$LINENO: result: $ac_res" >&5
4001 echo "${ECHO_T}$ac_res" >&6; }
4003 # Is the header compilable?
4004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4006 cat >conftest.
$ac_ext <<_ACEOF
4009 cat confdefs.h
>>conftest.
$ac_ext
4010 cat >>conftest.
$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4013 #include <$ac_header>
4015 rm -f conftest.
$ac_objext
4016 if { (ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_header_compiler=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_header_compiler=no
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4042 echo "${ECHO_T}$ac_header_compiler" >&6; }
4044 # Is the header present?
4045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <$ac_header>
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4058 *) ac_try_echo
=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1
>conftest.err
4065 cat conftest.err
>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev
/null
&& {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4071 ac_header_preproc
=yes
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.
$ac_ext >&5
4076 ac_header_preproc
=no
4079 rm -f conftest.err conftest.
$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4081 echo "${ECHO_T}$ac_header_preproc" >&6; }
4083 # So? What about this header?
4084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4090 ac_header_preproc
=yes
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4110 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 eval "$as_ac_Header=\$ac_header_preproc"
4115 ac_res
=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h
<<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 for ac_header
in net
/pfvar.h
4132 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4135 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 cat >conftest.
$ac_ext <<_ACEOF
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/socket.h>
4148 #include <$ac_header>
4150 rm -f conftest.
$ac_objext
4151 if { (ac_try
="$ac_compile"
4153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 eval "$as_ac_Header=yes"
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 eval "$as_ac_Header=no"
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4189 if test "$ac_cv_header_net_pfvar_h" = yes; then
4190 LOCALSRC="print-pflog.c $LOCALSRC"
4193 for ac_header in netinet/if_ether.h
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/socket.h>
4210 #include <$ac_header>
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.
$ac_objext; then
4229 eval "$as_ac_Header=yes"
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.
$ac_ext >&5
4234 eval "$as_ac_Header=no"
4237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4239 ac_res
=`eval echo '${'$as_ac_Header'}'`
4240 { echo "$as_me:$LINENO: result: $ac_res" >&5
4241 echo "${ECHO_T}$ac_res" >&6; }
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h
<<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4253 # The simple test didn't work.
4254 # Do we need to include <net/if.h> first?
4255 # Unset ac_cv_header_netinet_if_ether_h so we don't
4256 # treat the previous failure as a cached value and
4257 # suppress the next test.
4259 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4260 echo "$as_me: Rechecking with some additional includes" >&6;}
4261 unset ac_cv_header_netinet_if_ether_h
4263 for ac_header
in netinet
/if_ether.h
4265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 cat >conftest.
$ac_ext <<_ACEOF
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/socket.h>
4279 #include <netinet/in.h>
4284 #include <$ac_header>
4286 rm -f conftest.
$ac_objext
4287 if { (ac_try
="$ac_compile"
4289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compile") 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest.$ac_objext; then
4303 eval "$as_ac_Header=yes"
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 eval "$as_ac_Header=no"
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_res=`eval echo '${'$as_ac_Header'}'`
4314 { echo "$as_me:$LINENO: result: $ac_res" >&5
4315 echo "${ECHO_T}$ac_res" >&6; }
4316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4327 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4329 if test "${ac_cv_header_time+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 #include <sys/time.h>
4345 if ((struct tm *) 0)
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4355 *) ac_try_echo
=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1
>conftest.err
4362 cat conftest.err
>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.
$ac_objext; then
4368 ac_cv_header_time
=yes
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4373 ac_cv_header_time
=no
4376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4380 if test $ac_cv_header_time = yes; then
4382 cat >>confdefs.h
<<\_ACEOF
4383 #define TIME_WITH_SYS_TIME 1
4392 # Check whether --enable-universal was given.
4393 if test "${enable_universal+set}" = set; then
4394 enableval
=$enable_universal;
4397 if test "$enable_universal" != "no"; then
4402 # Leopard. Build for x86 and 32-bit PowerPC, with
4403 # x86 first. (That's what Apple does.)
4405 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4406 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4411 # Snow Leopard. Build for x86-64 and x86, with
4412 # x86-64 first. (That's what Apple does.)
4414 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4415 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4422 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4423 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4424 if test "$cross_compiling" = yes; then
4425 if test "${ac_cv_linux_vers+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 ac_cv_linux_vers
=unknown
4432 if test "${ac_cv_linux_vers+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 ac_cv_linux_vers
=`uname -r 2>&1 | \
4436 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4440 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4441 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4442 if test $ac_cv_linux_vers = unknown
; then
4443 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4444 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4445 { (exit 1); exit 1; }; }
4447 if test $ac_cv_linux_vers -lt 2 ; then
4448 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4449 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4450 { (exit 1); exit 1; }; }
4460 # Check whether --with-smi was given.
4461 if test "${with_smi+set}" = set; then
4468 if test "x$with_smi" != "xno" ; then
4470 for ac_header
in smi.h
4472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_res
=`eval echo '${'$as_ac_Header'}'`
4480 { echo "$as_me:$LINENO: result: $ac_res" >&5
4481 echo "${ECHO_T}$ac_res" >&6; }
4483 # Is the header compilable?
4484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4486 cat >conftest.
$ac_ext <<_ACEOF
4489 cat confdefs.h
>>conftest.
$ac_ext
4490 cat >>conftest.
$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4493 #include <$ac_header>
4495 rm -f conftest.
$ac_objext
4496 if { (ac_try
="$ac_compile"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_compile") 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } && {
4509 test -z "$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4511 } && test -s conftest.$ac_objext; then
4512 ac_header_compiler=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_header_compiler=no
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4522 echo "${ECHO_T}$ac_header_compiler" >&6; }
4524 # Is the header present?
4525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <$ac_header>
4535 if { (ac_try="$ac_cpp conftest.$ac_ext"
4537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4538 *) ac_try_echo
=$ac_try;;
4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4543 grep -v '^ *+' conftest.er1
>conftest.err
4545 cat conftest.err
>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } >/dev
/null
&& {
4548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4551 ac_header_preproc
=yes
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 ac_header_preproc
=no
4559 rm -f conftest.err conftest.
$ac_ext
4560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4561 echo "${ECHO_T}$ac_header_preproc" >&6; }
4563 # So? What about this header?
4564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4570 ac_header_preproc
=yes
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4590 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 eval "$as_ac_Header=\$ac_header_preproc"
4595 ac_res
=`eval echo '${'$as_ac_Header'}'`
4596 { echo "$as_me:$LINENO: result: $ac_res" >&5
4597 echo "${ECHO_T}$ac_res" >&6; }
4600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4601 cat >>confdefs.h
<<_ACEOF
4602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4610 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4611 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4612 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 ac_check_lib_save_LIBS
=$LIBS
4617 cat >conftest.
$ac_ext <<_ACEOF
4620 cat confdefs.h
>>conftest.
$ac_ext
4621 cat >>conftest.
$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4624 /* Override any GCC internal prototype to avoid an error.
4625 Use char because int might match the return type of a GCC
4626 builtin and then its argument prototype would still apply. */
4639 rm -f conftest.
$ac_objext conftest
$ac_exeext
4640 if { (ac_try
="$ac_link"
4642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_link") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest$ac_exeext &&
4656 $as_test_x conftest$ac_exeext; then
4657 ac_cv_lib_smi_smiInit=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_lib_smi_smiInit=no
4665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4666 conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4669 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4670 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4671 if test $ac_cv_lib_smi_smiInit = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673 #define HAVE_LIBSMI 1
4680 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4682 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4683 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4684 if test "$cross_compiling" = yes; then
4685 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4686 echo "${ECHO_T}not when cross-compiling" >&6; }
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 /* libsmi available check */
4700 int current, revision, age, n;
4701 const int required = 2;
4704 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4706 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4709 if (required < current - age || required > current)
4715 rm -f conftest$ac_exeext
4716 if { (ac_try="$ac_link"
4718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4719 *) ac_try_echo
=$ac_try;;
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_link") 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4726 { (case "(($ac_try" in
4727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_try") 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 { echo "$as_me:$LINENO: result: yes" >&5
4736 echo "${ECHO_T}yes" >&6; }
4737 cat >>confdefs.h <<\_ACEOF
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4749 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4750 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4751 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4752 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4753 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4754 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4755 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4756 echo "${ECHO_T}no - too old" >&6; } ;;
4757 *) { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; } ;;
4762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4769 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4770 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4771 # Check whether --enable-smb was given.
4772 if test "${enable_smb+set}" = set; then
4773 enableval=$enable_smb;
4778 case "$enableval" in
4779 yes) { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4781 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4782 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4783 cat >>confdefs.h <<\_ACEOF
4784 #define TCPDUMP_DO_SMB 1
4787 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4789 *) { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4795 # Check whether --with-user was given.
4796 if test "${with_user+set}" = set; then
4800 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4801 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4802 if test ! -z "$with_user" ; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define WITH_USER "$withval"
4807 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4808 echo "${ECHO_T}to \"$withval\"" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 # Check whether --with-chroot was given.
4816 if test "${with_chroot+set}" = set; then
4817 withval=$with_chroot;
4820 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4821 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4822 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4823 cat >>confdefs.h <<_ACEOF
4824 #define WITH_CHROOT "$withval"
4827 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4828 echo "${ECHO_T}to \"$withval\"" >&6; }
4830 { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4834 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4835 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4836 # Check whether --enable-ipv6 was given.
4837 if test "${enable_ipv6+set}" = set; then
4838 enableval=$enable_ipv6; case "$enableval" in
4839 yes) { echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6; }
4841 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"
4842 cat >>confdefs.h <<\_ACEOF
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4855 if test "$cross_compiling" = yes; then
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 /* AF_INET6 available check */
4868 #include <sys/types.h>
4869 #include <sys/socket.h>
4872 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4879 rm -f conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4883 *) ac_try_echo
=$ac_try;;
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_link") 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4890 { (case "(($ac_try" in
4891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_try") 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 { echo "$as_me:$LINENO: result: yes" >&5
4900 echo "${ECHO_T}yes" >&6; }
4901 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"
4902 cat >>confdefs.h <<\_ACEOF
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4913 { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928 if test "$ipv6" = "yes"; then
4929 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4930 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4931 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <netinet/in.h>
4941 #ifdef IPV6_INRIA_VERSION
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "yes" >/dev/null 2>&1; then
4948 CFLAGS="-DINET6 $CFLAGS"
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <netinet/in.h>
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "yes" >/dev/null 2>&1; then
4969 ipv6libdir=/usr/local/v6/lib;
4971 CFLAGS="-DINET6 $CFLAGS"
4977 cat >conftest.$ac_ext <<_ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <features.h>
4984 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989 $EGREP "yes" >/dev/null 2>&1; then
4991 CFLAGS="-DINET6 $CFLAGS"
4997 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5000 ipv6libdir=/usr/inet6/lib
5002 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #include <sys/param.h>
5013 #ifdef _TOSHIBA_INET6
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "yes" >/dev/null 2>&1; then
5021 ipv6libdir=/usr/local/v6/lib;
5022 CFLAGS="-DINET6 $CFLAGS"
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include </usr/local/v6/include/sys/v6config.h>
5039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040 $EGREP "yes" >/dev/null 2>&1; then
5043 ipv6libdir=/usr/local/v6/lib;
5044 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <sys/param.h>
5057 #ifdef _ZETA_MINAMI_INET6
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "yes" >/dev/null 2>&1; then
5065 ipv6libdir=/usr/local/v6/lib;
5066 CFLAGS="-DINET6 $CFLAGS"
5072 if test "$ipv6type" != "unknown"; then
5076 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5077 echo "${ECHO_T}$ipv6type" >&6; }
5080 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5081 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5082 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5083 echo "You have $ipv6lib library, using it"
5085 if test "$ipv6trylibc" = "yes"; then
5086 echo "You do not have $ipv6lib library, using libc"
5088 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5089 echo "You need to fetch lib$ipv6lib.a from appropriate"
5090 echo 'ipv6 kit and compile beforehand.'
5097 if test "$ipv6" = "yes"; then
5099 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5100 # function in libc; there are "ngetaddrinfo()" and
5101 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5102 # "getaddrinfo" to be either "ngetaddrinfo" or
5103 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5104 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5106 # So this test doesn't work on Tru64 5.1, and possibly
5107 # on other 5.x releases. This causes the configure
5108 # script to become confused, and results in libpcap
5109 # being unbuildable.
5111 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5112 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5113 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 ac_func_search_save_LIBS=$LIBS
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5124 /* Override any GCC internal prototype to avoid an error.
5125 Use char because int might match the return type of a GCC
5126 builtin and then its argument prototype would still apply. */
5130 char getaddrinfo ();
5134 return getaddrinfo ();
5139 for ac_lib in '' socket; do
5140 if test -z "$ac_lib"; then
5141 ac_res="none required"
5144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5146 rm -f conftest.$ac_objext conftest$ac_exeext
5147 if { (ac_try="$ac_link"
5149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5150 *) ac_try_echo
=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_link") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1
>conftest.err
5157 cat conftest.err
>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest
$ac_exeext &&
5163 $as_test_x conftest
$ac_exeext; then
5164 ac_cv_search_getaddrinfo
=$ac_res
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.
$ac_ext >&5
5172 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5174 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5178 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5181 ac_cv_search_getaddrinfo
=no
5184 LIBS
=$ac_func_search_save_LIBS
5186 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5187 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5188 ac_res
=$ac_cv_search_getaddrinfo
5189 if test "$ac_res" != no
; then
5190 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5191 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5192 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5193 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 if test "$cross_compiling" = yes; then
5197 td_cv_buggygetaddrinfo
=yes
5199 cat >conftest.
$ac_ext <<_ACEOF
5202 cat confdefs.h
>>conftest.
$ac_ext
5203 cat >>conftest.
$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5206 #include <sys/types.h>
5209 #include <sys/socket.h>
5210 #include <netinet/in.h>
5214 int passive, gaierr, inet4 = 0, inet6 = 0;
5215 struct addrinfo hints, *ai, *aitop;
5216 char straddr[INET6_ADDRSTRLEN], strport[16];
5218 for (passive = 0; passive <= 1; passive++) {
5219 memset(&hints, 0, sizeof(hints));
5220 hints.ai_family = AF_UNSPEC;
5221 hints.ai_flags = passive ? AI_PASSIVE : 0;
5222 hints.ai_socktype = SOCK_STREAM;
5223 hints.ai_protocol = IPPROTO_TCP;
5224 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5225 (void)gai_strerror(gaierr);
5228 for (ai = aitop; ai; ai = ai->ai_next) {
5229 if (ai->ai_addr == NULL ||
5230 ai->ai_addrlen == 0 ||
5231 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5232 straddr, sizeof(straddr), strport, sizeof(strport),
5233 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5236 switch (ai->ai_family) {
5238 if (strcmp(strport, "54321") != 0) {
5242 if (strcmp(straddr, "0.0.0.0") != 0) {
5246 if (strcmp(straddr, "127.0.0.1") != 0) {
5253 if (strcmp(strport, "54321") != 0) {
5257 if (strcmp(straddr, "::") != 0) {
5261 if (strcmp(straddr, "::1") != 0) {
5278 /* another family support? */
5284 /* supported family should be 2, unsupported family should be 0 */
5285 if (!(inet4 == 0 || inet4 == 2))
5287 if (!(inet6 == 0 || inet6 == 2))
5291 freeaddrinfo(aitop);
5296 freeaddrinfo(aitop);
5301 rm -f conftest
$ac_exeext
5302 if { (ac_try
="$ac_link"
5304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_link") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5314 *) ac_try_echo
=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 td_cv_buggygetaddrinfo
=no
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.
$ac_ext >&5
5328 td_cv_buggygetaddrinfo
=yes
5330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5336 if test "$td_cv_buggygetaddrinfo" = no
; then
5337 { echo "$as_me:$LINENO: result: good" >&5
5338 echo "${ECHO_T}good" >&6; }
5340 { echo "$as_me:$LINENO: result: buggy" >&5
5341 echo "${ECHO_T}buggy" >&6; }
5344 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5346 # XXX - it doesn't appear that "ipv6type" can ever be
5347 # set to "linux". Should this be testing for
5348 # "linux-glibc", or for that *or* "linux-libinet6"?
5349 # If the latter, note that "linux-libinet6" is also
5350 # the type given to some non-Linux OSes.
5352 if test "$ipv6type" != "linux"; then
5353 echo 'Fatal: You must get working getaddrinfo() function.'
5354 echo ' or you can specify "--disable-ipv6"'.
5357 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5358 echo ' Better upgrade your system library to newest version'
5359 echo ' of GNU C library (aka glibc).'
5366 for ac_func
in getnameinfo
5368 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5371 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 cat >conftest.
$ac_ext <<_ACEOF
5377 cat confdefs.h
>>conftest.
$ac_ext
5378 cat >>conftest.
$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5382 #define $ac_func innocuous_$ac_func
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func (); below.
5386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 <limits.h> exists even on freestanding compilers. */
5390 # include <limits.h>
5392 # include <assert.h>
5397 /* Override any GCC internal prototype to avoid an error.
5398 Use char because int might match the return type of a GCC
5399 builtin and then its argument prototype would still apply. */
5404 /* The GNU C library defines this for functions which it implements
5405 to always fail with ENOSYS. Some functions are actually named
5406 something starting with __ and the normal name is an alias. */
5407 #if defined __stub_$ac_func || defined __stub___$ac_func
5419 rm -f conftest.
$ac_objext conftest
$ac_exeext
5420 if { (ac_try
="$ac_link"
5422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest$ac_exeext &&
5436 $as_test_x conftest$ac_exeext; then
5437 eval "$as_ac_var=yes"
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 eval "$as_ac_var=no"
5445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5446 conftest$ac_exeext conftest.$ac_ext
5448 ac_res=`eval echo '${'$as_ac_var'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5451 if test `eval echo '${'$as_ac_var'}'` = yes; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5457 case " $LIBOBJS " in
5458 *" $ac_func.$ac_objext "* ) ;;
5459 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5469 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5470 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5471 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <netdnet/dnetdb.h>
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5485 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5492 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5493 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5494 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5502 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5503 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5504 if test "${ac_cv_addrinfo+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5527 *) ac_try_echo
=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1
>conftest.err
5534 cat conftest.err
>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.
$ac_objext; then
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.
$ac_ext >&5
5548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5551 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5552 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5553 if test $ac_cv_addrinfo = yes; then
5554 cat >>confdefs.h
<<\_ACEOF
5555 #define HAVE_ADDRINFO 1
5559 cat >>confdefs.h
<<\_ACEOF
5560 #define NEED_ADDRINFO_H 1
5565 if test "$ac_cv_addrinfo" = no
; then
5566 missing_includes
=yes
5570 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5571 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5572 if test "${ac_cv_maxserv+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 $EGREP "yes" >/dev
/null
2>&1; then
5596 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5597 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5598 if test $ac_cv_maxserv != yes; then
5599 cat >>confdefs.h
<<\_ACEOF
5600 #define NEED_ADDRINFO_H 1
5605 if test "$ac_cv_maxserv" = no
; then
5606 missing_includes
=yes
5610 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5611 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5612 if test "${ac_cv_namereqd+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5618 cat confdefs.h
>>conftest.
$ac_ext
5619 cat >>conftest.
$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5627 $EGREP "yes" >/dev
/null
2>&1; then
5636 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5637 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5638 if test $ac_cv_namereqd != yes; then
5639 cat >>confdefs.h
<<\_ACEOF
5640 #define NEED_ADDRINFO_H 1
5645 if test "$ac_cv_namereqd" = no
; then
5646 missing_includes
=yes
5650 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5651 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5652 if test "${ac_cv_sa_storage+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5662 # include <sys/types.h>
5663 # include <sys/socket.h>
5667 struct sockaddr_storage s
5672 rm -f conftest.
$ac_objext
5673 if { (ac_try
="$ac_compile"
5675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5681 grep -v '^ *+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_cv_sa_storage=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5701 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5702 if test $ac_cv_sa_storage = yes; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_SOCKADDR_STORAGE 1
5709 if test "$ac_cv_sa_storage" = no; then
5710 missing_includes=yes
5715 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
5716 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
5717 if test "${ac_cv_inaddrsz+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5727 # include <arpa/nameser.h>
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5740 *) ac_try_echo
=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1
>conftest.err
5747 cat conftest.err
>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.
$ac_objext; then
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.
$ac_ext >&5
5761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5764 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
5765 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
5766 if test $ac_cv_inaddrsz = yes; then
5767 cat >>confdefs.h
<<\_ACEOF
5768 #define HAVE_INADDRSZ 1
5774 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
5775 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
5776 if test "${ac_cv_in6addrsz+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 cat >conftest.
$ac_ext <<_ACEOF
5782 cat confdefs.h
>>conftest.
$ac_ext
5783 cat >>conftest.
$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5786 # include <arpa/nameser.h>
5795 rm -f conftest.
$ac_objext
5796 if { (ac_try
="$ac_compile"
5798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
5824 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
5825 if test $ac_cv_in6addrsz = yes; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define HAVE_IN6ADDRSZ 1
5834 if test "$ac_cv_addrsz" = no; then
5835 missing_includes=yes
5839 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
5840 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
5841 if test "${ac_cv_res_inet6+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5851 # include <sys/types.h>
5852 # include <netinet/in.h>
5853 # include <resolv.h>
5857 int a = RES_USE_INET6
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5866 *) ac_try_echo
=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1
>conftest.err
5873 cat conftest.err
>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.
$ac_objext; then
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5890 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
5891 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
5892 if test $ac_cv_res_inet6 = yes; then
5893 cat >>confdefs.h
<<\_ACEOF
5894 #define HAVE_RES_USE_INET6 1
5899 if test "$ac_cv_res_inet6" = no
; then
5900 missing_includes
=yes
5904 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
5905 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
5906 if test "${ac_cv_res_state_ext+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.
$ac_ext <<_ACEOF
5912 cat confdefs.h
>>conftest.
$ac_ext
5913 cat >>conftest.
$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 # include <sys/types.h>
5917 # include <netinet/in.h>
5918 # include <netinet6/in6.h>
5919 # include <resolv.h>
5923 struct __res_state_ext e
5928 rm -f conftest.
$ac_objext
5929 if { (ac_try
="$ac_compile"
5931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_cv_res_state_ext=yes
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 ac_cv_res_state_ext=no
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
5957 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
5958 if test $ac_cv_res_state_ext = yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define HAVE_RES_STATE_EXT 1
5965 if test "$ac_cv_res_state_ext" = no; then
5966 missing_includes=yes
5970 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
5971 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
5972 if test "${ac_cv_res_state+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5982 # include <sys/types.h>
5983 # include <netinet/in.h>
5984 # include <netinet6/in6.h>
5985 # include <resolv.h>
5989 struct __res_state e; e.nsort = 0
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5998 *) ac_try_echo
=$ac_try;;
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compile") 2>conftest.er1
6003 grep -v '^ *+' conftest.er1
>conftest.err
6005 cat conftest.err
>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_c_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest.
$ac_objext; then
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.
$ac_ext >&5
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6023 echo "${ECHO_T}$ac_cv_res_state" >&6; }
6024 if test $ac_cv_res_state = yes; then
6025 cat >>confdefs.h
<<\_ACEOF
6026 #define HAVE_NEW_RES_STATE 1
6039 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6041 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6044 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.
$ac_ext <<_ACEOF
6050 cat confdefs.h
>>conftest.
$ac_ext
6051 cat >>conftest.
$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6055 #define $ac_func innocuous_$ac_func
6057 /* System header to define __stub macros and hopefully few prototypes,
6058 which can conflict with char $ac_func (); below.
6059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 <limits.h> exists even on freestanding compilers. */
6063 # include <limits.h>
6065 # include <assert.h>
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined __stub_$ac_func || defined __stub___$ac_func
6092 rm -f conftest.
$ac_objext conftest
$ac_exeext
6093 if { (ac_try
="$ac_link"
6095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_link") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest$ac_exeext &&
6109 $as_test_x conftest$ac_exeext; then
6110 eval "$as_ac_var=yes"
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 eval "$as_ac_var=no"
6118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6119 conftest$ac_exeext conftest.$ac_ext
6121 ac_res=`eval echo '${'$as_ac_var'}'`
6122 { echo "$as_me:$LINENO: result: $ac_res" >&5
6123 echo "${ECHO_T}$ac_res" >&6; }
6124 if test `eval echo '${'$as_ac_var'}'` = yes; then
6125 cat >>confdefs.h <<_ACEOF
6126 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6130 case " $LIBOBJS " in
6131 *" $ac_func.$ac_objext "* ) ;;
6132 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6141 for ac_func in strftime
6143 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6157 #define $ac_func innocuous_$ac_func
6159 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char $ac_func (); below.
6161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 <limits.h> exists even on freestanding compilers. */
6165 # include <limits.h>
6167 # include <assert.h>
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined __stub_$ac_func || defined __stub___$ac_func
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6198 *) ac_try_echo
=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1
>conftest.err
6205 cat conftest.err
>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest
$ac_exeext &&
6211 $as_test_x conftest
$ac_exeext; then
6212 eval "$as_ac_var=yes"
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.
$ac_ext >&5
6217 eval "$as_ac_var=no"
6220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6221 conftest
$ac_exeext conftest.
$ac_ext
6223 ac_res
=`eval echo '${'$as_ac_var'}'`
6224 { echo "$as_me:$LINENO: result: $ac_res" >&5
6225 echo "${ECHO_T}$ac_res" >&6; }
6226 if test `eval echo '${'$as_ac_var'}'` = yes; then
6227 cat >>confdefs.h
<<_ACEOF
6228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6236 for ac_func
in setlinebuf alarm
6238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6241 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 cat >conftest.
$ac_ext <<_ACEOF
6247 cat confdefs.h
>>conftest.
$ac_ext
6248 cat >>conftest.
$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6252 #define $ac_func innocuous_$ac_func
6254 /* System header to define __stub macros and hopefully few prototypes,
6255 which can conflict with char $ac_func (); below.
6256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6257 <limits.h> exists even on freestanding compilers. */
6260 # include <limits.h>
6262 # include <assert.h>
6267 /* Override any GCC internal prototype to avoid an error.
6268 Use char because int might match the return type of a GCC
6269 builtin and then its argument prototype would still apply. */
6274 /* The GNU C library defines this for functions which it implements
6275 to always fail with ENOSYS. Some functions are actually named
6276 something starting with __ and the normal name is an alias. */
6277 #if defined __stub_$ac_func || defined __stub___$ac_func
6289 rm -f conftest.
$ac_objext conftest
$ac_exeext
6290 if { (ac_try
="$ac_link"
6292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_link") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest$ac_exeext &&
6306 $as_test_x conftest$ac_exeext; then
6307 eval "$as_ac_var=yes"
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 eval "$as_ac_var=no"
6315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6316 conftest$ac_exeext conftest.$ac_ext
6318 ac_res=`eval echo '${'$as_ac_var'}'`
6319 { echo "$as_me:$LINENO: result: $ac_res" >&5
6320 echo "${ECHO_T}$ac_res" >&6; }
6321 if test `eval echo '${'$as_ac_var'}'` = yes; then
6322 cat >>confdefs.h <<_ACEOF
6323 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6333 for ac_func in vsnprintf snprintf
6335 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6349 #define $ac_func innocuous_$ac_func
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char $ac_func (); below.
6353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354 <limits.h> exists even on freestanding compilers. */
6357 # include <limits.h>
6359 # include <assert.h>
6364 /* Override any GCC internal prototype to avoid an error.
6365 Use char because int might match the return type of a GCC
6366 builtin and then its argument prototype would still apply. */
6371 /* The GNU C library defines this for functions which it implements
6372 to always fail with ENOSYS. Some functions are actually named
6373 something starting with __ and the normal name is an alias. */
6374 #if defined __stub_$ac_func || defined __stub___$ac_func
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (ac_try="$ac_link"
6389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6390 *) ac_try_echo
=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_link") 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest
$ac_exeext &&
6403 $as_test_x conftest
$ac_exeext; then
6404 eval "$as_ac_var=yes"
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 eval "$as_ac_var=no"
6412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6413 conftest
$ac_exeext conftest.
$ac_ext
6415 ac_res
=`eval echo '${'$as_ac_var'}'`
6416 { echo "$as_me:$LINENO: result: $ac_res" >&5
6417 echo "${ECHO_T}$ac_res" >&6; }
6418 if test `eval echo '${'$as_ac_var'}'` = yes; then
6419 cat >>confdefs.h
<<_ACEOF
6420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6428 if test $needsnprintf = yes; then
6429 case " $LIBOBJS " in
6430 *" snprintf.$ac_objext "* ) ;;
6431 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6438 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6439 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6440 if test "${ac_cv_type_signal+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 cat >conftest.
$ac_ext <<_ACEOF
6446 cat confdefs.h
>>conftest.
$ac_ext
6447 cat >>conftest.
$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <sys/types.h>
6455 return *(signal (0, 0)) (0) == 1;
6460 rm -f conftest.
$ac_objext
6461 if { (ac_try
="$ac_compile"
6463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_compile") 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && {
6474 test -z "$ac_c_werror_flag" ||
6475 test ! -s conftest.err
6476 } && test -s conftest.$ac_objext; then
6477 ac_cv_type_signal=int
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_type_signal=void
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6488 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6490 cat >>confdefs.h <<_ACEOF
6491 #define RETSIGTYPE $ac_cv_type_signal
6495 if test "$ac_cv_type_signal" = void ; then
6497 cat >>confdefs.h <<\_ACEOF
6503 cat >>confdefs.h <<\_ACEOF
6504 #define RETSIGVAL (0)
6512 cat >>confdefs.h <<\_ACEOF
6513 #define _BSD_SIGNALS 1
6520 for ac_func in sigaction
6522 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6536 #define $ac_func innocuous_$ac_func
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func (); below.
6540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541 <limits.h> exists even on freestanding compilers. */
6544 # include <limits.h>
6546 # include <assert.h>
6551 /* Override any GCC internal prototype to avoid an error.
6552 Use char because int might match the return type of a GCC
6553 builtin and then its argument prototype would still apply. */
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined __stub_$ac_func || defined __stub___$ac_func
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (ac_try="$ac_link"
6576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6577 *) ac_try_echo
=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_link") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1
>conftest.err
6584 cat conftest.err
>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest
$ac_exeext &&
6590 $as_test_x conftest
$ac_exeext; then
6591 eval "$as_ac_var=yes"
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.
$ac_ext >&5
6596 eval "$as_ac_var=no"
6599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6600 conftest
$ac_exeext conftest.
$ac_ext
6602 ac_res
=`eval echo '${'$as_ac_var'}'`
6603 { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6605 if test `eval echo '${'$as_ac_var'}'` = yes; then
6606 cat >>confdefs.h
<<_ACEOF
6607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6613 if test $ac_cv_func_sigaction = no
; then
6615 for ac_func
in sigset
6617 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6620 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.
$ac_ext <<_ACEOF
6626 cat confdefs.h
>>conftest.
$ac_ext
6627 cat >>conftest.
$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6631 #define $ac_func innocuous_$ac_func
6633 /* System header to define __stub macros and hopefully few prototypes,
6634 which can conflict with char $ac_func (); below.
6635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6636 <limits.h> exists even on freestanding compilers. */
6639 # include <limits.h>
6641 # include <assert.h>
6646 /* Override any GCC internal prototype to avoid an error.
6647 Use char because int might match the return type of a GCC
6648 builtin and then its argument prototype would still apply. */
6653 /* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656 #if defined __stub_$ac_func || defined __stub___$ac_func
6668 rm -f conftest.
$ac_objext conftest
$ac_exeext
6669 if { (ac_try
="$ac_link"
6671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_link") 2>conftest.er1
6677 grep -v '^ *+' conftest.er1 >conftest.err
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest$ac_exeext &&
6685 $as_test_x conftest$ac_exeext; then
6686 eval "$as_ac_var=yes"
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 eval "$as_ac_var=no"
6694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6695 conftest$ac_exeext conftest.$ac_ext
6697 ac_res=`eval echo '${'$as_ac_var'}'`
6698 { echo "$as_me:$LINENO: result: $ac_res" >&5
6699 echo "${ECHO_T}$ac_res" >&6; }
6700 if test `eval echo '${'$as_ac_var'}'` = yes; then
6701 cat >>confdefs.h <<_ACEOF
6702 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6712 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6713 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6714 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_func_search_save_LIBS=$LIBS
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6735 return dnet_htoa ();
6740 for ac_lib in '' dnet; do
6741 if test -z "$ac_lib"; then
6742 ac_res="none required"
6745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (ac_try="$ac_link"
6750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6751 *) ac_try_echo
=$ac_try;;
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_link") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1
>conftest.err
6758 cat conftest.err
>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest
$ac_exeext &&
6764 $as_test_x conftest
$ac_exeext; then
6765 ac_cv_search_dnet_htoa
=$ac_res
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.
$ac_ext >&5
6773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6775 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6779 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6782 ac_cv_search_dnet_htoa
=no
6785 LIBS
=$ac_func_search_save_LIBS
6787 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6788 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6789 ac_res
=$ac_cv_search_dnet_htoa
6790 if test "$ac_res" != no
; then
6791 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6792 cat >>confdefs.h
<<\_ACEOF
6793 #define HAVE_DNET_HTOA 1
6800 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6801 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6802 if test "${ac_cv_lib_rpc_main+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_check_lib_save_LIBS
=$LIBS
6807 cat >conftest.
$ac_ext <<_ACEOF
6810 cat confdefs.h
>>conftest.
$ac_ext
6811 cat >>conftest.
$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6823 rm -f conftest.
$ac_objext conftest
$ac_exeext
6824 if { (ac_try
="$ac_link"
6826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_link") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest$ac_exeext &&
6840 $as_test_x conftest$ac_exeext; then
6841 ac_cv_lib_rpc_main=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_lib_rpc_main=no
6849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6853 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6854 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6855 if test $ac_cv_lib_rpc_main = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRPC 1
6864 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6865 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6866 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_func_search_save_LIBS=$LIBS
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 /* Override any GCC internal prototype to avoid an error.
6878 Use char because int might match the return type of a GCC
6879 builtin and then its argument prototype would still apply. */
6883 char getrpcbynumber ();
6887 return getrpcbynumber ();
6892 for ac_lib in '' nsl; do
6893 if test -z "$ac_lib"; then
6894 ac_res="none required"
6897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6903 *) ac_try_echo
=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1
>conftest.err
6910 cat conftest.err
>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest
$ac_exeext &&
6916 $as_test_x conftest
$ac_exeext; then
6917 ac_cv_search_getrpcbynumber
=$ac_res
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6925 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6927 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6931 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6934 ac_cv_search_getrpcbynumber
=no
6937 LIBS
=$ac_func_search_save_LIBS
6939 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6940 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6941 ac_res
=$ac_cv_search_getrpcbynumber
6942 if test "$ac_res" != no
; then
6943 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6944 cat >>confdefs.h
<<\_ACEOF
6945 #define HAVE_GETRPCBYNUMBER 1
6953 # Most operating systems have gethostbyname() in the default searched
6954 # libraries (i.e. libc):
6955 # Some OSes (eg. Solaris) place it in libnsl
6956 # Some strange OSes (SINIX) have it in libsocket:
6957 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6958 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6959 if test "${ac_cv_search_gethostbyname+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_func_search_save_LIBS
=$LIBS
6963 cat >conftest.
$ac_ext <<_ACEOF
6966 cat confdefs.h
>>conftest.
$ac_ext
6967 cat >>conftest.
$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6970 /* Override any GCC internal prototype to avoid an error.
6971 Use char because int might match the return type of a GCC
6972 builtin and then its argument prototype would still apply. */
6976 char gethostbyname ();
6980 return gethostbyname ();
6985 for ac_lib
in '' nsl socket resolv
; do
6986 if test -z "$ac_lib"; then
6987 ac_res
="none required"
6990 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6992 rm -f conftest.
$ac_objext conftest
$ac_exeext
6993 if { (ac_try
="$ac_link"
6995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_link") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest$ac_exeext &&
7009 $as_test_x conftest$ac_exeext; then
7010 ac_cv_search_gethostbyname=$ac_res
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7020 if test "${ac_cv_search_gethostbyname+set}" = set; then
7024 if test "${ac_cv_search_gethostbyname+set}" = set; then
7027 ac_cv_search_gethostbyname=no
7030 LIBS=$ac_func_search_save_LIBS
7032 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7033 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
7034 ac_res=$ac_cv_search_gethostbyname
7035 if test "$ac_res" != no; then
7036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7040 # Unfortunately libsocket sometimes depends on libnsl and
7041 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7042 if test "$ac_cv_search_gethostbyname" = "no"
7044 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7045 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
7046 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_check_lib_save_LIBS=$LIBS
7050 LIBS="-lsocket -lnsl $LIBS"
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7058 /* Override any GCC internal prototype to avoid an error.
7059 Use char because int might match the return type of a GCC
7060 builtin and then its argument prototype would still apply. */
7064 char gethostbyname ();
7068 return gethostbyname ();
7073 rm -f conftest.$ac_objext conftest$ac_exeext
7074 if { (ac_try="$ac_link"
7076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7077 *) ac_try_echo
=$ac_try;;
7079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7080 (eval "$ac_link") 2>conftest.er1
7082 grep -v '^ *+' conftest.er1
>conftest.err
7084 cat conftest.err
>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && {
7087 test -z "$ac_c_werror_flag" ||
7088 test ! -s conftest.err
7089 } && test -s conftest
$ac_exeext &&
7090 $as_test_x conftest
$ac_exeext; then
7091 ac_cv_lib_socket_gethostbyname
=yes
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.
$ac_ext >&5
7096 ac_cv_lib_socket_gethostbyname
=no
7099 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7100 conftest
$ac_exeext conftest.
$ac_ext
7101 LIBS
=$ac_check_lib_save_LIBS
7103 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7104 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
7105 if test $ac_cv_lib_socket_gethostbyname = yes; then
7106 LIBS
="-lsocket -lnsl $LIBS"
7110 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7111 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7112 if test "${ac_cv_search_socket+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_func_search_save_LIBS
=$LIBS
7116 cat >conftest.
$ac_ext <<_ACEOF
7119 cat confdefs.h
>>conftest.
$ac_ext
7120 cat >>conftest.
$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7123 /* Override any GCC internal prototype to avoid an error.
7124 Use char because int might match the return type of a GCC
7125 builtin and then its argument prototype would still apply. */
7138 for ac_lib
in '' socket
; do
7139 if test -z "$ac_lib"; then
7140 ac_res
="none required"
7143 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7145 rm -f conftest.
$ac_objext conftest
$ac_exeext
7146 if { (ac_try
="$ac_link"
7148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_link") 2>conftest.er1
7154 grep -v '^ *+' conftest.er1 >conftest.err
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest$ac_exeext &&
7162 $as_test_x conftest$ac_exeext; then
7163 ac_cv_search_socket=$ac_res
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7173 if test "${ac_cv_search_socket+set}" = set; then
7177 if test "${ac_cv_search_socket+set}" = set; then
7180 ac_cv_search_socket=no
7183 LIBS=$ac_func_search_save_LIBS
7185 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7186 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7187 ac_res=$ac_cv_search_socket
7188 if test "$ac_res" != no; then
7189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7192 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
7194 if test "${ac_cv_lib_socket_socket+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_check_lib_save_LIBS=$LIBS
7198 LIBS="-lsocket -lnsl $LIBS"
7199 cat >conftest.$ac_ext <<_ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7206 /* Override any GCC internal prototype to avoid an error.
7207 Use char because int might match the return type of a GCC
7208 builtin and then its argument prototype would still apply. */
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (ac_try="$ac_link"
7224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7225 *) ac_try_echo
=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_link") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1
>conftest.err
7232 cat conftest.err
>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest
$ac_exeext &&
7238 $as_test_x conftest
$ac_exeext; then
7239 ac_cv_lib_socket_socket
=yes
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.
$ac_ext >&5
7244 ac_cv_lib_socket_socket
=no
7247 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7248 conftest
$ac_exeext conftest.
$ac_ext
7249 LIBS
=$ac_check_lib_save_LIBS
7251 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7252 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
7253 if test $ac_cv_lib_socket_socket = yes; then
7254 LIBS
="-lsocket -lnsl $LIBS"
7259 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7260 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7261 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
7262 if test "${ac_cv_search_putmsg+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_func_search_save_LIBS
=$LIBS
7266 cat >conftest.
$ac_ext <<_ACEOF
7269 cat confdefs.h
>>conftest.
$ac_ext
7270 cat >>conftest.
$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7273 /* Override any GCC internal prototype to avoid an error.
7274 Use char because int might match the return type of a GCC
7275 builtin and then its argument prototype would still apply. */
7288 for ac_lib
in '' str
; do
7289 if test -z "$ac_lib"; then
7290 ac_res
="none required"
7293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7295 rm -f conftest.
$ac_objext conftest
$ac_exeext
7296 if { (ac_try
="$ac_link"
7298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_link") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest$ac_exeext &&
7312 $as_test_x conftest$ac_exeext; then
7313 ac_cv_search_putmsg=$ac_res
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7323 if test "${ac_cv_search_putmsg+set}" = set; then
7327 if test "${ac_cv_search_putmsg+set}" = set; then
7330 ac_cv_search_putmsg=no
7333 LIBS=$ac_func_search_save_LIBS
7335 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7336 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7337 ac_res=$ac_cv_search_putmsg
7338 if test "$ac_res" != no; then
7339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7346 pfopen=/usr/examples/packetfilter/pfopen.c
7347 if test -f $pfopen ; then
7349 for ac_func in pfopen
7351 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7365 #define $ac_func innocuous_$ac_func
7367 /* System header to define __stub macros and hopefully few prototypes,
7368 which can conflict with char $ac_func (); below.
7369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7370 <limits.h> exists even on freestanding compilers. */
7373 # include <limits.h>
7375 # include <assert.h>
7380 /* Override any GCC internal prototype to avoid an error.
7381 Use char because int might match the return type of a GCC
7382 builtin and then its argument prototype would still apply. */
7387 /* The GNU C library defines this for functions which it implements
7388 to always fail with ENOSYS. Some functions are actually named
7389 something starting with __ and the normal name is an alias. */
7390 #if defined __stub_$ac_func || defined __stub___$ac_func
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7406 *) ac_try_echo
=$ac_try;;
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>conftest.er1
7411 grep -v '^ *+' conftest.er1
>conftest.err
7413 cat conftest.err
>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest
$ac_exeext &&
7419 $as_test_x conftest
$ac_exeext; then
7420 eval "$as_ac_var=yes"
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 eval "$as_ac_var=no"
7428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7429 conftest
$ac_exeext conftest.
$ac_ext
7431 ac_res
=`eval echo '${'$as_ac_var'}'`
7432 { echo "$as_me:$LINENO: result: $ac_res" >&5
7433 echo "${ECHO_T}$ac_res" >&6; }
7434 if test `eval echo '${'$as_ac_var'}'` = yes; then
7435 cat >>confdefs.h
<<_ACEOF
7436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7442 if test $ac_cv_func_pfopen = "no" ; then
7443 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7444 echo "${ECHO_T}Using $pfopen" >&6; }
7445 LIBS
="$LIBS $pfopen"
7448 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7449 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7452 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7453 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7454 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
7455 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7456 sed -e 's/-PRE-GIT$//' `
7457 if test $lastdir = $basedir ; then
7461 if test -r $dir/libpcap.a
; then
7462 libpcap
=$dir/libpcap.a
7466 if test $libpcap = FAIL
; then
7467 { echo "$as_me:$LINENO: result: not found" >&5
7468 echo "${ECHO_T}not found" >&6; }
7471 # Look for pcap-config.
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7475 set dummy
${ac_tool_prefix}pcap-config
; ac_word
=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 case $PCAP_CONFIG in
7483 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir
=.
7491 for ac_exec_ext
in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7505 if test -n "$PCAP_CONFIG"; then
7506 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7507 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7515 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7516 ac_pt_PCAP_CONFIG
=$PCAP_CONFIG
7517 # Extract the first word of "pcap-config", so it can be a program name with args.
7518 set dummy pcap-config
; ac_word
=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 case $ac_pt_PCAP_CONFIG in
7526 ac_cv_path_ac_pt_PCAP_CONFIG
="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir
=.
7534 for ac_exec_ext
in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_ac_pt_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 ac_pt_PCAP_CONFIG
=$ac_cv_path_ac_pt_PCAP_CONFIG
7548 if test -n "$ac_pt_PCAP_CONFIG"; then
7549 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7550 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7556 if test "x$ac_pt_PCAP_CONFIG" = x
; then
7559 case $cross_compiling:$ac_tool_warned in
7561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7562 whose name does not start with the host triplet. If you think this
7563 configuration is useful to you, please write to autoconf@gnu.org." >&5
7564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7565 whose name does not start with the host triplet. If you think this
7566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7567 ac_tool_warned
=yes ;;
7569 PCAP_CONFIG
=$ac_pt_PCAP_CONFIG
7572 PCAP_CONFIG
="$ac_cv_path_PCAP_CONFIG"
7575 if test -n "$PCAP_CONFIG" ; then
7577 # Found - use it to get the include flags for
7578 # libpcap and the flags to link with libpcap.
7580 V_INCLS
="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
7581 libpcap
="`\"$PCAP_CONFIG\" --libs`"
7584 # Not found; look for pcap.
7586 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7587 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7588 if test "${ac_cv_lib_pcap_main+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_check_lib_save_LIBS
=$LIBS
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7609 rm -f conftest.
$ac_objext conftest
$ac_exeext
7610 if { (ac_try
="$ac_link"
7612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_link") 2>conftest.er1
7618 grep -v '^ *+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest$ac_exeext &&
7626 $as_test_x conftest$ac_exeext; then
7627 ac_cv_lib_pcap_main=yes
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_cv_lib_pcap_main=no
7635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636 conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_check_lib_save_LIBS
7639 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7640 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7641 if test $ac_cv_lib_pcap_main = yes; then
7645 if test $libpcap = FAIL ; then
7646 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7647 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7648 { (exit 1); exit 1; }; }
7650 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7651 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7652 if test \( ! -r /usr/local/include/pcap.h \) -a \
7653 \( ! -r /usr/include/pcap.h \); then
7654 if test -r /usr/local/include/pcap/pcap.h; then
7655 d="/usr/local/include/pcap"
7656 elif test -r /usr/include/pcap/pcap.h; then
7657 d="/usr/include/pcap"
7660 if test -z "$d" ; then
7661 { echo "$as_me:$LINENO: result: not found" >&5
7662 echo "${ECHO_T}not found" >&6; }
7664 V_INCLS="-I$d $V_INCLS"
7665 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7666 echo "${ECHO_T}found -- -I$d added" >&6; }
7671 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7672 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7673 if test -r $d/pcap.h; then
7674 V_INCLS="-I$d $V_INCLS"
7675 elif test -r $places/pcap.h; then
7676 V_INCLS="-I$places $V_INCLS"
7678 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7679 echo "$as_me: error: cannot find pcap.h" >&2;}
7680 { (exit see INSTALL); exit see INSTALL; }; }
7682 { echo "$as_me:$LINENO: result: $libpcap" >&5
7683 echo "${ECHO_T}$libpcap" >&6; }
7684 # Extract the first word of "pcap-config", so it can be a program name with args.
7685 set dummy pcap-config; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 case $PCAP_CONFIG in
7693 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7715 if test -n "$PCAP_CONFIG"; then
7716 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7717 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7719 { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7724 if test -n "$PCAP_CONFIG"; then
7726 # The libpcap directory has a pcap-config script.
7727 # Use it to get any additioal libraries needed
7728 # to link with the libpcap archive library in
7731 libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
7734 LIBS="$libpcap $LIBS"
7735 if ! test -n "$PCAP_CONFIG" ; then
7737 # We don't have pcap-config; find out any additional link flags
7738 # we need. (If we have pcap-config, we assume it tells us what
7745 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7746 # present, as we use the STREAMS routines.
7748 # (XXX - true only if we're linking with a static libpcap?)
7750 pseexe="/lib/pse.exp"
7751 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7752 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7753 if test -f $pseexe ; then
7754 { echo "$as_me:$LINENO: result: yes" >&5
7755 echo "${ECHO_T}yes" >&6; }
7756 LIBS="$LIBS -I:$pseexe"
7760 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7761 # we use them to load the BPF module.
7763 # (XXX - true only if we're linking with a static libpcap?)
7765 LIBS="$LIBS -lodm -lcfg"
7770 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7771 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7772 if test "${ac_cv_func_pcap_loop+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 cat >conftest.$ac_ext <<_ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7783 #define pcap_loop innocuous_pcap_loop
7785 /* System header to define __stub macros and hopefully few prototypes,
7786 which can conflict with char pcap_loop (); below.
7787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7788 <limits.h> exists even on freestanding compilers. */
7791 # include <limits.h>
7793 # include <assert.h>
7798 /* Override any GCC internal prototype to avoid an error.
7799 Use char because int might match the return type of a GCC
7800 builtin and then its argument prototype would still apply. */
7805 /* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7815 return pcap_loop ();
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7824 *) ac_try_echo
=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1
>conftest.err
7831 cat conftest.err
>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest
$ac_exeext &&
7837 $as_test_x conftest
$ac_exeext; then
7838 ac_cv_func_pcap_loop
=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7843 ac_cv_func_pcap_loop
=no
7846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7847 conftest
$ac_exeext conftest.
$ac_ext
7849 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7850 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7851 if test $ac_cv_func_pcap_loop = yes; then
7855 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@tcpdump.org, and include the
7856 config.log file in your report" >&5
7857 echo "$as_me: error: Report this to tcpdump-workers@tcpdump.org, and include the
7858 config.log file in your report" >&2;}
7859 { (exit 1); exit 1; }; }
7864 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7865 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7866 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7877 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char pcap_list_datalinks (); below.
7881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7882 <limits.h> exists even on freestanding compilers. */
7885 # include <limits.h>
7887 # include <assert.h>
7890 #undef pcap_list_datalinks
7892 /* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7898 char pcap_list_datalinks ();
7899 /* The GNU C library defines this for functions which it implements
7900 to always fail with ENOSYS. Some functions are actually named
7901 something starting with __ and the normal name is an alias. */
7902 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7909 return pcap_list_datalinks ();
7914 rm -f conftest.
$ac_objext conftest
$ac_exeext
7915 if { (ac_try
="$ac_link"
7917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_link") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest$ac_exeext &&
7931 $as_test_x conftest$ac_exeext; then
7932 ac_cv_func_pcap_list_datalinks=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_cv_func_pcap_list_datalinks=no
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941 conftest$ac_exeext conftest.$ac_ext
7943 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7944 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7945 if test $ac_cv_func_pcap_list_datalinks = yes; then
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_PCAP_LIST_DATALINKS 1
7952 case " $LIBOBJS " in
7953 *" datalinks.$ac_objext "* ) ;;
7954 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7961 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7962 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7963 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7974 #define pcap_set_datalink innocuous_pcap_set_datalink
7976 /* System header to define __stub macros and hopefully few prototypes,
7977 which can conflict with char pcap_set_datalink (); below.
7978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7979 <limits.h> exists even on freestanding compilers. */
7982 # include <limits.h>
7984 # include <assert.h>
7987 #undef pcap_set_datalink
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7995 char pcap_set_datalink ();
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
8006 return pcap_set_datalink ();
8011 rm -f conftest.$ac_objext conftest$ac_exeext
8012 if { (ac_try="$ac_link"
8014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8015 *) ac_try_echo
=$ac_try;;
8017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8018 (eval "$ac_link") 2>conftest.er1
8020 grep -v '^ *+' conftest.er1
>conftest.err
8022 cat conftest.err
>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest
$ac_exeext &&
8028 $as_test_x conftest
$ac_exeext; then
8029 ac_cv_func_pcap_set_datalink
=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.
$ac_ext >&5
8034 ac_cv_func_pcap_set_datalink
=no
8037 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8038 conftest
$ac_exeext conftest.
$ac_ext
8040 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8041 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
8042 if test $ac_cv_func_pcap_set_datalink = yes; then
8043 cat >>confdefs.h
<<\_ACEOF
8044 #define HAVE_PCAP_SET_DATALINK 1
8049 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8050 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
8051 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 cat >conftest.
$ac_ext <<_ACEOF
8057 cat confdefs.h
>>conftest.
$ac_ext
8058 cat >>conftest.
$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
8061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8062 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char pcap_datalink_name_to_val (); below.
8066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067 <limits.h> exists even on freestanding compilers. */
8070 # include <limits.h>
8072 # include <assert.h>
8075 #undef pcap_datalink_name_to_val
8077 /* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8083 char pcap_datalink_name_to_val ();
8084 /* The GNU C library defines this for functions which it implements
8085 to always fail with ENOSYS. Some functions are actually named
8086 something starting with __ and the normal name is an alias. */
8087 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
8094 return pcap_datalink_name_to_val ();
8099 rm -f conftest.
$ac_objext conftest
$ac_exeext
8100 if { (ac_try
="$ac_link"
8102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_link") 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest$ac_exeext &&
8116 $as_test_x conftest$ac_exeext; then
8117 ac_cv_func_pcap_datalink_name_to_val=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_func_pcap_datalink_name_to_val=no
8125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126 conftest$ac_exeext conftest.$ac_ext
8128 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8129 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
8130 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8132 cat >>confdefs.h <<\_ACEOF
8133 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8136 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8137 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
8138 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
8148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8149 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char pcap_datalink_val_to_description (); below.
8153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8154 <limits.h> exists even on freestanding compilers. */
8157 # include <limits.h>
8159 # include <assert.h>
8162 #undef pcap_datalink_val_to_description
8164 /* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
8170 char pcap_datalink_val_to_description ();
8171 /* The GNU C library defines this for functions which it implements
8172 to always fail with ENOSYS. Some functions are actually named
8173 something starting with __ and the normal name is an alias. */
8174 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
8181 return pcap_datalink_val_to_description ();
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (ac_try="$ac_link"
8189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8190 *) ac_try_echo
=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1
>conftest.err
8197 cat conftest.err
>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest
$ac_exeext &&
8203 $as_test_x conftest
$ac_exeext; then
8204 ac_cv_func_pcap_datalink_val_to_description
=yes
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.
$ac_ext >&5
8209 ac_cv_func_pcap_datalink_val_to_description
=no
8212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8213 conftest
$ac_exeext conftest.
$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8216 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
8217 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8218 cat >>confdefs.h
<<\_ACEOF
8219 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8224 case " $LIBOBJS " in
8225 *" dlnames.$ac_objext "* ) ;;
8226 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8236 case " $LIBOBJS " in
8237 *" dlnames.$ac_objext "* ) ;;
8238 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8247 for ac_func
in pcap_breakloop
8249 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8252 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 cat >conftest.
$ac_ext <<_ACEOF
8258 cat confdefs.h
>>conftest.
$ac_ext
8259 cat >>conftest.
$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8263 #define $ac_func innocuous_$ac_func
8265 /* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char $ac_func (); below.
8267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268 <limits.h> exists even on freestanding compilers. */
8271 # include <limits.h>
8273 # include <assert.h>
8278 /* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8285 /* The GNU C library defines this for functions which it implements
8286 to always fail with ENOSYS. Some functions are actually named
8287 something starting with __ and the normal name is an alias. */
8288 #if defined __stub_$ac_func || defined __stub___$ac_func
8300 rm -f conftest.
$ac_objext conftest
$ac_exeext
8301 if { (ac_try
="$ac_link"
8303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest$ac_exeext &&
8317 $as_test_x conftest$ac_exeext; then
8318 eval "$as_ac_var=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_var=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8327 conftest$ac_exeext conftest.$ac_ext
8329 ac_res=`eval echo '${'$as_ac_var'}'`
8330 { echo "$as_me:$LINENO: result: $ac_res" >&5
8331 echo "${ECHO_T}$ac_res" >&6; }
8332 if test `eval echo '${'$as_ac_var'}'` = yes; then
8333 cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8341 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8342 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8343 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8354 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char pcap_dump_ftell (); below.
8358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8359 <limits.h> exists even on freestanding compilers. */
8362 # include <limits.h>
8364 # include <assert.h>
8367 #undef pcap_dump_ftell
8369 /* Override any GCC internal prototype to avoid an error.
8370 Use char because int might match the return type of a GCC
8371 builtin and then its argument prototype would still apply. */
8375 char pcap_dump_ftell ();
8376 /* The GNU C library defines this for functions which it implements
8377 to always fail with ENOSYS. Some functions are actually named
8378 something starting with __ and the normal name is an alias. */
8379 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8386 return pcap_dump_ftell ();
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (ac_try="$ac_link"
8394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8395 *) ac_try_echo
=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_link") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1
>conftest.err
8402 cat conftest.err
>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest
$ac_exeext &&
8408 $as_test_x conftest
$ac_exeext; then
8409 ac_cv_func_pcap_dump_ftell
=yes
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.
$ac_ext >&5
8414 ac_cv_func_pcap_dump_ftell
=no
8417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8418 conftest
$ac_exeext conftest.
$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8421 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8422 if test $ac_cv_func_pcap_dump_ftell = yes; then
8423 cat >>confdefs.h
<<\_ACEOF
8424 #define HAVE_PCAP_DUMP_FTELL 1
8429 case " $LIBOBJS " in
8430 *" pcap_dump_ftell.$ac_objext "* ) ;;
8431 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
8441 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8442 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8444 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8445 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8446 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8447 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8448 # it does not ship with a libc symbol "inet_ntop()", it ships with
8449 # "_inet_ntop()", and has a #define macro in one of the system headers
8452 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8453 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8454 cat >conftest.
$ac_ext <<_ACEOF
8457 cat confdefs.h
>>conftest.
$ac_ext
8458 cat >>conftest.
$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/socket.h>
8462 #include <netinet/in.h>
8463 #include <arpa/inet.h>
8467 char src[4], dst[128];
8468 inet_ntop(AF_INET, src, dst, sizeof(dst));
8473 rm -f conftest.
$ac_objext conftest
$ac_exeext
8474 if { (ac_try
="$ac_link"
8476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext &&
8490 $as_test_x conftest$ac_exeext; then
8491 { echo "$as_me:$LINENO: result: yes" >&5
8492 echo "${ECHO_T}yes" >&6; }
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 { echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6; }
8499 case " $LIBOBJS " in
8500 *" inet_ntop.$ac_objext "* ) ;;
8501 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8508 conftest$ac_exeext conftest.$ac_ext
8509 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8510 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/socket.h>
8519 #include <netinet/in.h>
8520 #include <arpa/inet.h>
8524 char src[128], dst[4];
8525 inet_pton(AF_INET, src, dst);
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8534 *) ac_try_echo
=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1
>conftest.err
8541 cat conftest.err
>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest
$ac_exeext &&
8547 $as_test_x conftest
$ac_exeext; then
8548 { echo "$as_me:$LINENO: result: yes" >&5
8549 echo "${ECHO_T}yes" >&6; }
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8554 { echo "$as_me:$LINENO: result: no" >&5
8555 echo "${ECHO_T}no" >&6; }
8556 case " $LIBOBJS " in
8557 *" inet_pton.$ac_objext "* ) ;;
8558 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
8564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8565 conftest
$ac_exeext conftest.
$ac_ext
8566 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8567 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8568 cat >conftest.
$ac_ext <<_ACEOF
8571 cat confdefs.h
>>conftest.
$ac_ext
8572 cat >>conftest.
$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include <sys/types.h>
8575 #include <netinet/in.h>
8576 #include <arpa/inet.h>
8582 inet_aton(src, &dst);
8587 rm -f conftest.
$ac_objext conftest
$ac_exeext
8588 if { (ac_try
="$ac_link"
8590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest$ac_exeext &&
8604 $as_test_x conftest$ac_exeext; then
8605 { echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6; }
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 { echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6; }
8613 case " $LIBOBJS " in
8614 *" inet_aton.$ac_objext "* ) ;;
8615 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8622 conftest$ac_exeext conftest.$ac_ext
8625 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8627 # You are in a twisty little maze of UN*Xes, all different.
8628 # Some might not have ether_ntohost().
8629 # Some might have it, but not declare it in any header file.
8630 # Some might have it, but declare it in <netinet/if_ether.h>.
8631 # Some might have it, but declare it in <netinet/ether.h>
8632 # (And some might have it but document it as something declared in
8633 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8635 # Before you is a C compiler.
8638 for ac_func in ether_ntohost
8640 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
8641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8654 #define $ac_func innocuous_$ac_func
8656 /* System header to define __stub macros and hopefully few prototypes,
8657 which can conflict with char $ac_func (); below.
8658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659 <limits.h> exists even on freestanding compilers. */
8662 # include <limits.h>
8664 # include <assert.h>
8669 /* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8676 /* The GNU C library defines this for functions which it implements
8677 to always fail with ENOSYS. Some functions are actually named
8678 something starting with __ and the normal name is an alias. */
8679 #if defined __stub_$ac_func || defined __stub___$ac_func
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8695 *) ac_try_echo
=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_link") 2>conftest.er1
8700 grep -v '^ *+' conftest.er1
>conftest.err
8702 cat conftest.err
>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest
$ac_exeext &&
8708 $as_test_x conftest
$ac_exeext; then
8709 eval "$as_ac_var=yes"
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 eval "$as_ac_var=no"
8717 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8718 conftest
$ac_exeext conftest.
$ac_ext
8720 ac_res
=`eval echo '${'$as_ac_var'}'`
8721 { echo "$as_me:$LINENO: result: $ac_res" >&5
8722 echo "${ECHO_T}$ac_res" >&6; }
8723 if test `eval echo '${'$as_ac_var'}'` = yes; then
8724 cat >>confdefs.h
<<_ACEOF
8725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8729 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8730 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 if test "$cross_compiling" = yes; then
8735 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
8737 cat >conftest.
$ac_ext <<_ACEOF
8740 cat confdefs.h
>>conftest.
$ac_ext
8741 cat >>conftest.
$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8745 #include <sys/types.h>
8746 #include <sys/param.h>
8747 #include <sys/socket.h>
8750 main(int argc, char **argv)
8752 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8753 char name[MAXHOSTNAMELEN];
8755 ether_ntohost(name, (struct ether_addr *)ea);
8760 rm -f conftest
$ac_exeext
8761 if { (ac_try
="$ac_link"
8763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_link") 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8773 *) ac_try_echo
=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_buggy_ether_ntohost
=no
8782 echo "$as_me: program exited with status $ac_status" >&5
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.
$ac_ext >&5
8787 ac_cv_buggy_ether_ntohost
=yes
8789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8795 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8796 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8797 cat >>confdefs.h
<<\_ACEOF
8798 #define USE_ETHER_NTOHOST 1
8806 if test "$ac_cv_func_ether_ntohost" = yes -a \
8807 "$ac_cv_buggy_ether_ntohost" = "no"; then
8809 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8811 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8813 # Yes. Does it declare ether_ntohost()?
8815 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8816 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8817 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.
$ac_ext <<_ACEOF
8823 cat confdefs.h
>>conftest.
$ac_ext
8824 cat >>conftest.
$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8827 #include <sys/types.h>
8828 #include <sys/socket.h>
8829 #include <netinet/in.h>
8830 #include <arpa/inet.h>
8834 #include <netinet/if_ether.h>
8840 #ifndef ether_ntohost
8841 (void) ether_ntohost;
8848 rm -f conftest.
$ac_objext
8849 if { (ac_try
="$ac_compile"
8851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
8865 ac_cv_have_decl_ether_ntohost=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_have_decl_ether_ntohost=no
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8876 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8877 if test $ac_cv_have_decl_ether_ntohost = yes; then
8880 cat >>confdefs.h <<\_ACEOF
8881 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8891 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8893 # No, how about <netinet/ether.h>, as on Linux?
8896 for ac_header in netinet/ether.h
8898 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 ac_res=`eval echo '${'$as_ac_Header'}'`
8906 { echo "$as_me:$LINENO: result: $ac_res" >&5
8907 echo "${ECHO_T}$ac_res" >&6; }
8909 # Is the header compilable?
8910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #include <$ac_header>
8921 rm -f conftest.$ac_objext
8922 if { (ac_try="$ac_compile"
8924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8925 *) ac_try_echo
=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_compile") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1
>conftest.err
8932 cat conftest.err
>&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
8937 } && test -s conftest.
$ac_objext; then
8938 ac_header_compiler
=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.
$ac_ext >&5
8943 ac_header_compiler
=no
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8948 echo "${ECHO_T}$ac_header_compiler" >&6; }
8950 # Is the header present?
8951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <$ac_header>
8961 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } >/dev/null && {
8974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8977 ac_header_preproc=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_preproc=no
8985 rm -f conftest.err conftest.$ac_ext
8986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6; }
8989 # So? What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996 ac_header_preproc=yes
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 eval "$as_ac_Header=\$ac_header_preproc"
9021 ac_res=`eval echo '${'$as_ac_Header'}'`
9022 { echo "$as_me:$LINENO: result: $ac_res" >&5
9023 echo "${ECHO_T}$ac_res" >&6; }
9026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9027 cat >>confdefs.h <<_ACEOF
9028 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9035 if test "$ac_cv_header_netinet_ether_h" = yes; then
9037 # We have it - does it declare ether_ntohost()?
9038 # Unset ac_cv_have_decl_ether_ntohost so we don't
9039 # treat the previous failure as a cached value and
9040 # suppress the next test.
9042 unset ac_cv_have_decl_ether_ntohost
9043 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9044 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
9045 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9055 #include <netinet/ether.h>
9061 #ifndef ether_ntohost
9062 (void) ether_ntohost;
9069 rm -f conftest.$ac_objext
9070 if { (ac_try="$ac_compile"
9072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9073 *) ac_try_echo
=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
9078 grep -v '^ *+' conftest.er1
>conftest.err
9080 cat conftest.err
>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } && {
9083 test -z "$ac_c_werror_flag" ||
9084 test ! -s conftest.err
9085 } && test -s conftest.
$ac_objext; then
9086 ac_cv_have_decl_ether_ntohost
=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 ac_cv_have_decl_ether_ntohost
=no
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9097 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
9098 if test $ac_cv_have_decl_ether_ntohost = yes; then
9101 cat >>confdefs.h
<<\_ACEOF
9102 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9111 # Is ether_ntohost() declared?
9113 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9115 # No, we'll have to declare it ourselves.
9116 # Do we have "struct ether_addr"?
9118 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9119 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
9120 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 cat >conftest.
$ac_ext <<_ACEOF
9126 cat confdefs.h
>>conftest.
$ac_ext
9127 cat >>conftest.
$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9130 #include <sys/types.h>
9131 #include <sys/socket.h>
9132 #include <netinet/in.h>
9133 #include <arpa/inet.h>
9137 #include <netinet/if_ether.h>
9140 typedef struct ether_addr ac__type_new_;
9144 if ((ac__type_new_ *) 0)
9146 if (sizeof (ac__type_new_))
9152 rm -f conftest.
$ac_objext
9153 if { (ac_try
="$ac_compile"
9155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.$ac_objext; then
9169 ac_cv_type_struct_ether_addr=yes
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_type_struct_ether_addr=no
9177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9180 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
9181 if test $ac_cv_type_struct_ether_addr = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_STRUCT_ETHER_ADDR 1
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_DECL_ETHER_NTOHOST 0
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_DECL_ETHER_NTOHOST 1
9204 # libdlpi is needed for Solaris 11 and later.
9205 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
9206 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
9207 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ldlpi -L/lib $LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9219 /* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9229 return dlpi_walk ();
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9238 *) ac_try_echo
=$ac_try;;
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>conftest.er1
9243 grep -v '^ *+' conftest.er1
>conftest.err
9245 cat conftest.err
>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest
$ac_exeext &&
9251 $as_test_x conftest
$ac_exeext; then
9252 ac_cv_lib_dlpi_dlpi_walk
=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.
$ac_ext >&5
9257 ac_cv_lib_dlpi_dlpi_walk
=no
9260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9261 conftest
$ac_exeext conftest.
$ac_ext
9262 LIBS
=$ac_check_lib_save_LIBS
9264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
9265 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
9266 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
9267 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
9272 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9273 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9274 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 cat >conftest.
$ac_ext <<_ACEOF
9280 cat confdefs.h
>>conftest.
$ac_ext
9281 cat >>conftest.
$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9284 # include <sys/types.h>
9285 # include <sys/socket.h>
9289 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9294 rm -f conftest.
$ac_objext
9295 if { (ac_try
="$ac_compile"
9297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_compile") 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && {
9308 test -z "$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 } && test -s conftest.$ac_objext; then
9311 ac_cv_sockaddr_has_sa_len=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_cv_sockaddr_has_sa_len=no
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9323 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9324 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9325 cat >>confdefs.h <<\_ACEOF
9326 #define HAVE_SOCKADDR_SA_LEN 1
9331 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9332 missing_includes=yes
9336 # Do we have the new open API? Check for pcap_create, and assume that,
9337 # if we do, we also have pcap_activate() and the other new routines
9338 # introduced in libpcap 1.0.0.
9341 for ac_func in pcap_create
9343 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9357 #define $ac_func innocuous_$ac_func
9359 /* System header to define __stub macros and hopefully few prototypes,
9360 which can conflict with char $ac_func (); below.
9361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362 <limits.h> exists even on freestanding compilers. */
9365 # include <limits.h>
9367 # include <assert.h>
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9379 /* The GNU C library defines this for functions which it implements
9380 to always fail with ENOSYS. Some functions are actually named
9381 something starting with __ and the normal name is an alias. */
9382 #if defined __stub_$ac_func || defined __stub___$ac_func
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9398 *) ac_try_echo
=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1
>conftest.err
9405 cat conftest.err
>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest
$ac_exeext &&
9411 $as_test_x conftest
$ac_exeext; then
9412 eval "$as_ac_var=yes"
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.
$ac_ext >&5
9417 eval "$as_ac_var=no"
9420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9421 conftest
$ac_exeext conftest.
$ac_ext
9423 ac_res
=`eval echo '${'$as_ac_var'}'`
9424 { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h
<<_ACEOF
9428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434 if test $ac_cv_func_pcap_create = "yes" ; then
9436 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9437 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9440 for ac_func
in pcap_set_tstamp_type
9442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9445 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 cat >conftest.
$ac_ext <<_ACEOF
9451 cat confdefs.h
>>conftest.
$ac_ext
9452 cat >>conftest.
$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456 #define $ac_func innocuous_$ac_func
9458 /* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char $ac_func (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9464 # include <limits.h>
9466 # include <assert.h>
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9478 /* The GNU C library defines this for functions which it implements
9479 to always fail with ENOSYS. Some functions are actually named
9480 something starting with __ and the normal name is an alias. */
9481 #if defined __stub_$ac_func || defined __stub___$ac_func
9493 rm -f conftest.
$ac_objext conftest
$ac_exeext
9494 if { (ac_try
="$ac_link"
9496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_link") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest$ac_exeext &&
9510 $as_test_x conftest$ac_exeext; then
9511 eval "$as_ac_var=yes"
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 eval "$as_ac_var=no"
9519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9520 conftest$ac_exeext conftest.$ac_ext
9522 ac_res=`eval echo '${'$as_ac_var'}'`
9523 { echo "$as_me:$LINENO: result: $ac_res" >&5
9524 echo "${ECHO_T}$ac_res" >&6; }
9525 if test `eval echo '${'$as_ac_var'}'` = yes; then
9526 cat >>confdefs.h <<_ACEOF
9527 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9538 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9540 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define $ac_func innocuous_$ac_func
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char $ac_func (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9562 # include <limits.h>
9564 # include <assert.h>
9569 /* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
9576 /* The GNU C library defines this for functions which it implements
9577 to always fail with ENOSYS. Some functions are actually named
9578 something starting with __ and the normal name is an alias. */
9579 #if defined __stub_$ac_func || defined __stub___$ac_func
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (ac_try="$ac_link"
9594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9595 *) ac_try_echo
=$ac_try;;
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_link") 2>conftest.er1
9600 grep -v '^ *+' conftest.er1
>conftest.err
9602 cat conftest.err
>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } && {
9605 test -z "$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 } && test -s conftest
$ac_exeext &&
9608 $as_test_x conftest
$ac_exeext; then
9609 eval "$as_ac_var=yes"
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.
$ac_ext >&5
9614 eval "$as_ac_var=no"
9617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9618 conftest
$ac_exeext conftest.
$ac_ext
9620 ac_res
=`eval echo '${'$as_ac_var'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622 echo "${ECHO_T}$ac_res" >&6; }
9623 if test `eval echo '${'$as_ac_var'}'` = yes; then
9624 cat >>confdefs.h
<<_ACEOF
9625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9632 savedppflags
="$CPPLAGS"
9633 CPPFLAGS
="$CPPFLAGS $V_INCLS"
9634 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9635 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9636 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 cat >conftest.
$ac_ext <<_ACEOF
9642 cat confdefs.h
>>conftest.
$ac_ext
9643 cat >>conftest.
$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9647 typedef pcap_if_t ac__type_new_;
9651 if ((ac__type_new_ *) 0)
9653 if (sizeof (ac__type_new_))
9659 rm -f conftest.
$ac_objext
9660 if { (ac_try
="$ac_compile"
9662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_compile") 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest.$ac_objext; then
9676 ac_cv_type_pcap_if_t=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_type_pcap_if_t=no
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9687 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9688 if test $ac_cv_type_pcap_if_t = yes; then
9690 cat >>confdefs.h <<_ACEOF
9691 #define HAVE_PCAP_IF_T 1
9697 CPPFLAGS="$savedcppflags"
9700 if test $ac_cv_func_pcap_lib_version = "no" ; then
9701 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9702 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9714 extern char pcap_version[];
9716 return (int)pcap_version;
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9726 *) ac_try_echo
=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1
>conftest.err
9733 cat conftest.err
>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest
$ac_exeext &&
9739 $as_test_x conftest
$ac_exeext; then
9740 ac_lbl_cv_pcap_version_defined
=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.
$ac_ext >&5
9745 ac_lbl_cv_pcap_version_defined
=no
9748 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9749 conftest
$ac_exeext conftest.
$ac_ext
9750 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9751 { echo "$as_me:$LINENO: result: yes" >&5
9752 echo "${ECHO_T}yes" >&6; }
9753 cat >>confdefs.h
<<\_ACEOF
9754 #define HAVE_PCAP_VERSION 1
9758 { echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6; }
9762 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9763 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9764 cat >conftest.
$ac_ext <<_ACEOF
9767 cat confdefs.h
>>conftest.
$ac_ext
9768 cat >>conftest.
$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9775 extern int pcap_debug;
9783 rm -f conftest.
$ac_objext conftest
$ac_exeext
9784 if { (ac_try
="$ac_link"
9786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9801 ac_lbl_cv_pcap_debug_defined=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_lbl_cv_pcap_debug_defined=no
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810 conftest$ac_exeext conftest.$ac_ext
9811 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9812 { echo "$as_me:$LINENO: result: yes" >&5
9813 echo "${ECHO_T}yes" >&6; }
9814 cat >>confdefs.h <<\_ACEOF
9815 #define HAVE_PCAP_DEBUG 1
9819 { echo "$as_me:$LINENO: result: no" >&5
9820 echo "${ECHO_T}no" >&6; }
9822 # OK, what about "yydebug"?
9824 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9825 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9849 *) ac_try_echo
=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1
>conftest.err
9856 cat conftest.err
>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest
$ac_exeext &&
9862 $as_test_x conftest
$ac_exeext; then
9863 ac_lbl_cv_yydebug_defined
=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.
$ac_ext >&5
9868 ac_lbl_cv_yydebug_defined
=no
9871 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9872 conftest
$ac_exeext conftest.
$ac_ext
9873 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9874 { echo "$as_me:$LINENO: result: yes" >&5
9875 echo "${ECHO_T}yes" >&6; }
9876 cat >>confdefs.h
<<\_ACEOF
9877 #define HAVE_YYDEBUG 1
9881 { echo "$as_me:$LINENO: result: no" >&5
9882 echo "${ECHO_T}no" >&6; }
9886 for ac_func
in bpf_dump
9888 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9891 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 cat >conftest.
$ac_ext <<_ACEOF
9897 cat confdefs.h
>>conftest.
$ac_ext
9898 cat >>conftest.
$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902 #define $ac_func innocuous_$ac_func
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char $ac_func (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9910 # include <limits.h>
9912 # include <assert.h>
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9924 /* The GNU C library defines this for functions which it implements
9925 to always fail with ENOSYS. Some functions are actually named
9926 something starting with __ and the normal name is an alias. */
9927 #if defined __stub_$ac_func || defined __stub___$ac_func
9939 rm -f conftest.
$ac_objext conftest
$ac_exeext
9940 if { (ac_try
="$ac_link"
9942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext &&
9956 $as_test_x conftest$ac_exeext; then
9957 eval "$as_ac_var=yes"
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 eval "$as_ac_var=no"
9965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966 conftest$ac_exeext conftest.$ac_ext
9968 ac_res=`eval echo '${'$as_ac_var'}'`
9969 { echo "$as_me:$LINENO: result: $ac_res" >&5
9970 echo "${ECHO_T}$ac_res" >&6; }
9971 if test `eval echo '${'$as_ac_var'}'` = yes; then
9972 cat >>confdefs.h <<_ACEOF
9973 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9977 case " $LIBOBJS " in
9978 *" $ac_func.$ac_objext "* ) ;;
9979 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9988 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc
/group
`" ; then
9992 # Assume V7/BSD convention for man pages (file formats in section 5,
9993 # miscellaneous info in section 7).
10001 cat >>confdefs.h <<\_ACEOF
10009 # Use System V conventions for man pages.
10019 # Use System V conventions for man pages.
10029 # Use System V conventions for man pages.
10039 # Use System V conventions for man pages.
10046 if test -f /dev/bpf0 ; then
10051 # Check for some headers introduced in later versions of libpcap
10052 # and used by some printers.
10054 savedcppflags="$CPPFLAGS"
10055 CPPFLAGS="$CPPFLAGS $V_INCLS"
10057 for ac_header in pcap/bluetooth.h
10059 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_res=`eval echo '${'$as_ac_Header'}'`
10067 { echo "$as_me:$LINENO: result: $ac_res" >&5
10068 echo "${ECHO_T}$ac_res" >&6; }
10070 # Is the header compilable?
10071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 #include <$ac_header>
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10086 *) ac_try_echo
=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_compile") 2>conftest.er1
10091 grep -v '^ *+' conftest.er1
>conftest.err
10093 cat conftest.err
>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest.
$ac_objext; then
10099 ac_header_compiler
=yes
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.
$ac_ext >&5
10104 ac_header_compiler
=no
10107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10109 echo "${ECHO_T}$ac_header_compiler" >&6; }
10111 # Is the header present?
10112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10114 cat >conftest.
$ac_ext <<_ACEOF
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <$ac_header>
10122 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10123 case "(($ac_try" in
10124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } >/dev/null && {
10135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10138 ac_header_preproc=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_header_preproc=no
10146 rm -f conftest.err conftest.$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10148 echo "${ECHO_T}$ac_header_preproc" >&6; }
10150 # So? What about this header?
10151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10157 ac_header_preproc=yes
10160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 eval "$as_ac_Header=\$ac_header_preproc"
10182 ac_res=`eval echo '${'$as_ac_Header'}'`
10183 { echo "$as_me:$LINENO: result: $ac_res" >&5
10184 echo "${ECHO_T}$ac_res" >&6; }
10187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10188 cat >>confdefs.h <<_ACEOF
10189 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10197 for ac_header in pcap/usb.h
10199 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_res=`eval echo '${'$as_ac_Header'}'`
10207 { echo "$as_me:$LINENO: result: $ac_res" >&5
10208 echo "${ECHO_T}$ac_res" >&6; }
10210 # Is the header compilable?
10211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 $ac_includes_default
10220 #include <$ac_header>
10222 rm -f conftest.$ac_objext
10223 if { (ac_try="$ac_compile"
10224 case "(($ac_try" in
10225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10226 *) ac_try_echo
=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_compile") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1
>conftest.err
10233 cat conftest.err
>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest.
$ac_objext; then
10239 ac_header_compiler
=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.
$ac_ext >&5
10244 ac_header_compiler
=no
10247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6; }
10251 # Is the header present?
10252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10254 cat >conftest.
$ac_ext <<_ACEOF
10257 cat confdefs.h
>>conftest.
$ac_ext
10258 cat >>conftest.
$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10260 #include <$ac_header>
10262 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10263 case "(($ac_try" in
10264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } >/dev/null && {
10275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10278 ac_header_preproc=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_header_preproc=no
10286 rm -f conftest.err conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10288 echo "${ECHO_T}$ac_header_preproc" >&6; }
10290 # So? What about this header?
10291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10297 ac_header_preproc=yes
10300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 eval "$as_ac_Header=\$ac_header_preproc"
10322 ac_res=`eval echo '${'$as_ac_Header'}'`
10323 { echo "$as_me:$LINENO: result: $ac_res" >&5
10324 echo "${ECHO_T}$ac_res" >&6; }
10327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10336 CPPFLAGS="$savedcppflags"
10339 for ac_header in sys/bitypes.h
10341 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 ac_res=`eval echo '${'$as_ac_Header'}'`
10349 { echo "$as_me:$LINENO: result: $ac_res" >&5
10350 echo "${ECHO_T}$ac_res" >&6; }
10352 # Is the header compilable?
10353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10362 #include <$ac_header>
10364 rm -f conftest.$ac_objext
10365 if { (ac_try="$ac_compile"
10366 case "(($ac_try" in
10367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10368 *) ac_try_echo
=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_compile") 2>conftest.er1
10373 grep -v '^ *+' conftest.er1
>conftest.err
10375 cat conftest.err
>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && {
10378 test -z "$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 } && test -s conftest.
$ac_objext; then
10381 ac_header_compiler
=yes
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.
$ac_ext >&5
10386 ac_header_compiler
=no
10389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10391 echo "${ECHO_T}$ac_header_compiler" >&6; }
10393 # Is the header present?
10394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10396 cat >conftest.
$ac_ext <<_ACEOF
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 #include <$ac_header>
10404 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10405 case "(($ac_try" in
10406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } >/dev/null && {
10417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10420 ac_header_preproc=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_header_preproc=no
10428 rm -f conftest.err conftest.$ac_ext
10429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10430 echo "${ECHO_T}$ac_header_preproc" >&6; }
10432 # So? What about this header?
10433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10439 ac_header_preproc=yes
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 eval "$as_ac_Header=\$ac_header_preproc"
10464 ac_res=`eval echo '${'$as_ac_Header'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10479 { echo "$as_me:$LINENO: checking for int8_t" >&5
10480 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
10481 if test "${ac_cv_type_int8_t+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 cat >conftest.$ac_ext <<_ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10491 #ifdef HAVE_SYS_BITYPES_H
10492 #include <sys/bitypes.h>
10495 typedef int8_t ac__type_new_;
10499 if ((ac__type_new_ *) 0)
10501 if (sizeof (ac__type_new_))
10507 rm -f conftest.$ac_objext
10508 if { (ac_try="$ac_compile"
10509 case "(($ac_try" in
10510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10511 *) ac_try_echo
=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_compile") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1
>conftest.err
10518 cat conftest.err
>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && {
10521 test -z "$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 } && test -s conftest.
$ac_objext; then
10524 ac_cv_type_int8_t
=yes
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.
$ac_ext >&5
10529 ac_cv_type_int8_t
=no
10532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10534 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10535 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
10536 if test $ac_cv_type_int8_t = yes; then
10540 cat >>confdefs.h
<<\_ACEOF
10541 #define int8_t signed char
10546 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
10547 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
10548 if test "${ac_cv_type_u_int8_t+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 cat >conftest.
$ac_ext <<_ACEOF
10554 cat confdefs.h
>>conftest.
$ac_ext
10555 cat >>conftest.
$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 $ac_includes_default
10558 #ifdef HAVE_SYS_BITYPES_H
10559 #include <sys/bitypes.h>
10562 typedef u_int8_t ac__type_new_;
10566 if ((ac__type_new_ *) 0)
10568 if (sizeof (ac__type_new_))
10574 rm -f conftest.
$ac_objext
10575 if { (ac_try
="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_cv_type_u_int8_t=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_type_u_int8_t=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10602 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10603 if test $ac_cv_type_u_int8_t = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define u_int8_t unsigned char
10613 { echo "$as_me:$LINENO: checking for int16_t" >&5
10614 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10615 if test "${ac_cv_type_int16_t+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 $ac_includes_default
10625 typedef int16_t ac__type_new_;
10629 if ((ac__type_new_ *) 0)
10631 if (sizeof (ac__type_new_))
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10641 *) ac_try_echo
=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1
>conftest.err
10648 cat conftest.err
>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.
$ac_objext; then
10654 ac_cv_type_int16_t
=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.
$ac_ext >&5
10659 ac_cv_type_int16_t
=no
10662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10664 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10665 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10666 if test $ac_cv_type_int16_t = yes; then
10670 cat >>confdefs.h
<<\_ACEOF
10671 #define int16_t short
10674 $ac_includes_default
10675 #ifdef HAVE_SYS_BITYPES_H
10676 #include <sys/bitypes.h>
10680 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10681 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10682 if test "${ac_cv_type_u_int16_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 $ac_includes_default
10692 #ifdef HAVE_SYS_BITYPES_H
10693 #include <sys/bitypes.h>
10696 typedef u_int16_t ac__type_new_;
10700 if ((ac__type_new_ *) 0)
10702 if (sizeof (ac__type_new_))
10708 rm -f conftest.
$ac_objext
10709 if { (ac_try
="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10725 ac_cv_type_u_int16_t=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_u_int16_t=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10736 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10737 if test $ac_cv_type_u_int16_t = yes; then
10741 cat >>confdefs.h <<\_ACEOF
10742 #define u_int16_t unsigned short
10747 { echo "$as_me:$LINENO: checking for int32_t" >&5
10748 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10749 if test "${ac_cv_type_int32_t+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10759 #ifdef HAVE_SYS_BITYPES_H
10760 #include <sys/bitypes.h>
10763 typedef int32_t ac__type_new_;
10767 if ((ac__type_new_ *) 0)
10769 if (sizeof (ac__type_new_))
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10779 *) ac_try_echo
=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_compile") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1
>conftest.err
10786 cat conftest.err
>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest.
$ac_objext; then
10792 ac_cv_type_int32_t
=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.
$ac_ext >&5
10797 ac_cv_type_int32_t
=no
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10803 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10804 if test $ac_cv_type_int32_t = yes; then
10808 cat >>confdefs.h
<<\_ACEOF
10809 #define int32_t int
10814 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10815 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10816 if test "${ac_cv_type_u_int32_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.
$ac_ext <<_ACEOF
10822 cat confdefs.h
>>conftest.
$ac_ext
10823 cat >>conftest.
$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 #ifdef HAVE_SYS_BITYPES_H
10827 #include <sys/bitypes.h>
10830 typedef u_int32_t ac__type_new_;
10834 if ((ac__type_new_ *) 0)
10836 if (sizeof (ac__type_new_))
10842 rm -f conftest.
$ac_objext
10843 if { (ac_try
="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_u_int32_t=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_u_int32_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10871 if test $ac_cv_type_u_int32_t = yes; then
10875 cat >>confdefs.h <<\_ACEOF
10876 #define u_int32_t unsigned int
10881 { echo "$as_me:$LINENO: checking for int64_t" >&5
10882 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10883 if test "${ac_cv_type_int64_t+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10893 #ifdef HAVE_SYS_BITYPES_H
10894 #include <sys/bitypes.h>
10897 typedef int64_t ac__type_new_;
10901 if ((ac__type_new_ *) 0)
10903 if (sizeof (ac__type_new_))
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10913 *) ac_try_echo
=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1
>conftest.err
10920 cat conftest.err
>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.
$ac_objext; then
10926 ac_cv_type_int64_t
=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.
$ac_ext >&5
10931 ac_cv_type_int64_t
=no
10934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10937 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10938 if test $ac_cv_type_int64_t = yes; then
10942 cat >>confdefs.h
<<\_ACEOF
10943 #define int64_t long long
10948 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10949 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10950 if test "${ac_cv_type_u_int64_t+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 cat >conftest.
$ac_ext <<_ACEOF
10956 cat confdefs.h
>>conftest.
$ac_ext
10957 cat >>conftest.
$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 $ac_includes_default
10960 #ifdef HAVE_SYS_BITYPES_H
10961 #include <sys/bitypes.h>
10964 typedef u_int64_t ac__type_new_;
10968 if ((ac__type_new_ *) 0)
10970 if (sizeof (ac__type_new_))
10976 rm -f conftest.
$ac_objext
10977 if { (ac_try
="$ac_compile"
10978 case "(($ac_try" in
10979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_compile") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest.$ac_objext; then
10993 ac_cv_type_u_int64_t=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_cv_type_u_int64_t=no
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11004 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11005 if test $ac_cv_type_u_int64_t = yes; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define u_int64_t unsigned long long
11017 # We can't just check for <inttypes.h> - some systems have one that
11018 # doesn't define all the PRI[doxu]64 macros.
11021 for ac_header in inttypes.h
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_res=`eval echo '${'$as_ac_Header'}'`
11031 { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11034 # Is the header compilable?
11035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 $ac_includes_default
11044 #include <$ac_header>
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11050 *) ac_try_echo
=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1
>conftest.err
11057 cat conftest.err
>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest.
$ac_objext; then
11063 ac_header_compiler
=yes
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.
$ac_ext >&5
11068 ac_header_compiler
=no
11071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11073 echo "${ECHO_T}$ac_header_compiler" >&6; }
11075 # Is the header present?
11076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11078 cat >conftest.
$ac_ext <<_ACEOF
11081 cat confdefs.h
>>conftest.
$ac_ext
11082 cat >>conftest.
$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <$ac_header>
11086 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11087 case "(($ac_try" in
11088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null && {
11099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11102 ac_header_preproc=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_header_preproc=no
11110 rm -f conftest.err conftest.$ac_ext
11111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11112 echo "${ECHO_T}$ac_header_preproc" >&6; }
11114 # So? What about this header?
11115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11121 ac_header_preproc=yes
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 eval "$as_ac_Header=\$ac_header_preproc"
11146 ac_res=`eval echo '${'$as_ac_Header'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11157 # OK, we have inttypes.h, but does it define those macros?
11159 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
11160 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
11161 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11169 #include <inttypes.h>
11171 #include <sys/types.h>
11172 #ifdef HAVE_SYS_BITYPES_H
11173 #include <sys/bitypes.h>
11178 printf("%" PRId64 "\n", (u_int64_t)1);
11179 printf("%" PRIo64 "\n", (u_int64_t)1);
11180 printf("%" PRIx64 "\n", (u_int64_t)1);
11181 printf("%" PRIu64 "\n", (u_int64_t)1);
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11190 *) ac_try_echo
=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1
>conftest.err
11197 cat conftest.err
>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest.
$ac_objext; then
11204 { echo "$as_me:$LINENO: result: yes" >&5
11205 echo "${ECHO_T}yes" >&6; }
11206 ac_lbl_inttypes_h_defines_formats
=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11213 { echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6; }
11215 ac_lbl_inttypes_h_defines_formats
=no
11219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11224 # We don't have inttypes.h, so it obviously can't define those
11227 ac_lbl_inttypes_h_defines_formats
=no
11233 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
11235 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
11236 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11237 if test "$cross_compiling" = yes; then
11238 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11239 See \`config.log' for more details." >&5
11240 echo "$as_me: error: cannot run test program while cross compiling
11241 See \`config.log' for more details." >&2;}
11242 { (exit 1); exit 1; }; }
11244 cat >conftest.
$ac_ext <<_ACEOF
11248 cat confdefs.h
>>conftest.
$ac_ext
11249 cat >>conftest.
$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11252 # ifdef HAVE_INTTYPES_H
11253 #include <inttypes.h>
11255 # ifdef HAVE_SYS_BITYPES_H
11256 #include <sys/bitypes.h>
11259 #include <sys/types.h>
11265 sprintf(strbuf, "%016lx", t << 32);
11266 if (strcmp(strbuf, "0000000100000000") == 0)
11274 rm -f conftest
$ac_exeext
11275 if { (ac_try
="$ac_link"
11276 case "(($ac_try" in
11277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11287 *) ac_try_echo
=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11295 cat >>confdefs.h
<<\_ACEOF
11296 #define PRId64 "ld"
11299 cat >>confdefs.h
<<\_ACEOF
11300 #define PRIo64 "lo"
11303 cat >>confdefs.h
<<\_ACEOF
11304 #define PRIx64 "lx"
11307 cat >>confdefs.h
<<\_ACEOF
11308 #define PRIu64 "lu"
11311 { echo "$as_me:$LINENO: result: yes" >&5
11312 echo "${ECHO_T}yes" >&6; }
11315 echo "$as_me: program exited with status $ac_status" >&5
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.
$ac_ext >&5
11319 ( exit $ac_status )
11321 { echo "$as_me:$LINENO: result: no" >&5
11322 echo "${ECHO_T}no" >&6; }
11325 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
11326 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
11327 if test "$cross_compiling" = yes; then
11328 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11329 See \`config.log' for more details." >&5
11330 echo "$as_me: error: cannot run test program while cross compiling
11331 See \`config.log' for more details." >&2;}
11332 { (exit 1); exit 1; }; }
11334 cat >conftest.
$ac_ext <<_ACEOF
11338 cat confdefs.h
>>conftest.
$ac_ext
11339 cat >>conftest.
$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11342 # ifdef HAVE_INTTYPES_H
11343 #include <inttypes.h>
11345 # ifdef HAVE_SYS_BITYPES_H
11346 #include <sys/bitypes.h>
11349 #include <sys/types.h>
11355 sprintf(strbuf, "%016llx", t << 32);
11356 if (strcmp(strbuf, "0000000100000000") == 0)
11364 rm -f conftest
$ac_exeext
11365 if { (ac_try
="$ac_link"
11366 case "(($ac_try" in
11367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_link") 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11375 { (case "(($ac_try" in
11376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11377 *) ac_try_echo
=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_try") 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11385 cat >>confdefs.h
<<\_ACEOF
11386 #define PRId64 "lld"
11389 cat >>confdefs.h
<<\_ACEOF
11390 #define PRIo64 "llo"
11393 cat >>confdefs.h
<<\_ACEOF
11394 #define PRIx64 "llx"
11397 cat >>confdefs.h
<<\_ACEOF
11398 #define PRIu64 "llu"
11401 { echo "$as_me:$LINENO: result: yes" >&5
11402 echo "${ECHO_T}yes" >&6; }
11405 echo "$as_me: program exited with status $ac_status" >&5
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.
$ac_ext >&5
11409 ( exit $ac_status )
11411 { echo "$as_me:$LINENO: result: no" >&5
11412 echo "${ECHO_T}no" >&6; }
11415 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11416 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11417 if test "$cross_compiling" = yes; then
11418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11419 See \`config.log' for more details." >&5
11420 echo "$as_me: error: cannot run test program while cross compiling
11421 See \`config.log' for more details." >&2;}
11422 { (exit 1); exit 1; }; }
11424 cat >conftest.
$ac_ext <<_ACEOF
11428 cat confdefs.h
>>conftest.
$ac_ext
11429 cat >>conftest.
$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 # ifdef HAVE_INTTYPES_H
11433 #include <inttypes.h>
11435 # ifdef HAVE_SYS_BITYPES_H
11436 #include <sys/bitypes.h>
11439 #include <sys/types.h>
11445 sprintf(strbuf, "%016Lx", t << 32);
11446 if (strcmp(strbuf, "0000000100000000") == 0)
11454 rm -f conftest
$ac_exeext
11455 if { (ac_try
="$ac_link"
11456 case "(($ac_try" in
11457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11467 *) ac_try_echo
=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11475 cat >>confdefs.h
<<\_ACEOF
11476 #define PRId64 "Ld"
11479 cat >>confdefs.h
<<\_ACEOF
11480 #define PRIo64 "Lo"
11483 cat >>confdefs.h
<<\_ACEOF
11484 #define PRIx64 "Lx"
11487 cat >>confdefs.h
<<\_ACEOF
11488 #define PRIu64 "Lu"
11491 { echo "$as_me:$LINENO: result: yes" >&5
11492 echo "${ECHO_T}yes" >&6; }
11495 echo "$as_me: program exited with status $ac_status" >&5
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.
$ac_ext >&5
11499 ( exit $ac_status )
11501 { echo "$as_me:$LINENO: result: no" >&5
11502 echo "${ECHO_T}no" >&6; }
11505 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11506 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
11507 if test "$cross_compiling" = yes; then
11508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11509 See \`config.log' for more details." >&5
11510 echo "$as_me: error: cannot run test program while cross compiling
11511 See \`config.log' for more details." >&2;}
11512 { (exit 1); exit 1; }; }
11514 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11522 # ifdef HAVE_INTTYPES_H
11523 #include <inttypes.h>
11525 # ifdef HAVE_SYS_BITYPES_H
11526 #include <sys/bitypes.h>
11529 #include <sys/types.h>
11535 sprintf(strbuf, "%016qx", t << 32);
11536 if (strcmp(strbuf, "0000000100000000") == 0)
11544 rm -f conftest
$ac_exeext
11545 if { (ac_try
="$ac_link"
11546 case "(($ac_try" in
11547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11557 *) ac_try_echo
=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11565 cat >>confdefs.h
<<\_ACEOF
11566 #define PRId64 "qd"
11569 cat >>confdefs.h
<<\_ACEOF
11570 #define PRIo64 "qo"
11573 cat >>confdefs.h
<<\_ACEOF
11574 #define PRIx64 "qx"
11577 cat >>confdefs.h
<<\_ACEOF
11578 #define PRIu64 "qu"
11581 { echo "$as_me:$LINENO: result: yes" >&5
11582 echo "${ECHO_T}yes" >&6; }
11585 echo "$as_me: program exited with status $ac_status" >&5
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.
$ac_ext >&5
11589 ( exit $ac_status )
11591 { echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6; }
11594 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11595 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11596 { (exit 1); exit 1; }; }
11600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11608 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11631 if test -n "$ac_tool_prefix"; then
11632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11633 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
11634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11636 if test "${ac_cv_prog_RANLIB+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 if test -n "$RANLIB"; then
11640 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
11642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11643 for as_dir
in $PATH
11646 test -z "$as_dir" && as_dir
=.
11647 for ac_exec_ext
in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
11650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 RANLIB
=$ac_cv_prog_RANLIB
11660 if test -n "$RANLIB"; then
11661 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11662 echo "${ECHO_T}$RANLIB" >&6; }
11664 { echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6; }
11670 if test -z "$ac_cv_prog_RANLIB"; then
11671 ac_ct_RANLIB
=$RANLIB
11672 # Extract the first word of "ranlib", so it can be a program name with args.
11673 set dummy ranlib
; ac_word
=$2
11674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11676 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 if test -n "$ac_ct_RANLIB"; then
11680 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
11682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11683 for as_dir
in $PATH
11686 test -z "$as_dir" && as_dir
=.
11687 for ac_exec_ext
in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_prog_ac_ct_RANLIB
="ranlib"
11690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
11700 if test -n "$ac_ct_RANLIB"; then
11701 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11702 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11704 { echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6; }
11708 if test "x$ac_ct_RANLIB" = x
; then
11711 case $cross_compiling:$ac_tool_warned in
11713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11714 whose name does not start with the host triplet. If you think this
11715 configuration is useful to you, please write to autoconf@gnu.org." >&5
11716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11717 whose name does not start with the host triplet. If you think this
11718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11719 ac_tool_warned
=yes ;;
11721 RANLIB
=$ac_ct_RANLIB
11724 RANLIB
="$ac_cv_prog_RANLIB"
11729 if test "${LBL_CFLAGS+set}" = set; then
11730 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
11732 if test -f .devel
; then
11733 if test "$GCC" = yes ; then
11734 if test "${LBL_CFLAGS+set}" != set; then
11735 if test "$ac_cv_prog_cc_g" = yes ; then
11736 V_CCOPT
="-g $V_CCOPT"
11738 V_CCOPT
="$V_CCOPT -Wall"
11739 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11740 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11747 V_CCOPT
="$V_CCOPT -n32"
11754 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11755 name
="lbl/os-$os.h"
11756 if test -f $name ; then
11757 ln -s $name os-proto.h
11759 cat >>confdefs.h
<<\_ACEOF
11760 #define HAVE_OS_PROTO_H 1
11764 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11765 echo "$as_me: WARNING: can't find $name" >&2;}
11769 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11770 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11771 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 cat >conftest.
$ac_ext <<_ACEOF
11777 cat confdefs.h
>>conftest.
$ac_ext
11778 cat >>conftest.
$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11781 # include <sys/types.h>
11782 # include <sys/socket.h>
11786 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11791 rm -f conftest.
$ac_objext
11792 if { (ac_try
="$ac_compile"
11793 case "(($ac_try" in
11794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_compile") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest.$ac_objext; then
11808 ac_cv_lbl_sockaddr_has_sa_len=yes
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 ac_cv_lbl_sockaddr_has_sa_len=no
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11820 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11821 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11823 cat >>confdefs.h <<\_ACEOF
11824 #define HAVE_SOCKADDR_SA_LEN 1
11829 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11830 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11831 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 case "$host_cpu" in
11837 # These are CPU types where:
11839 # the CPU faults on an unaligned access, but at least some
11840 # OSes that support that CPU catch the fault and simulate
11841 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11842 # the simulation is slow, so we don't want to use it;
11844 # the CPU, I infer (from the old
11846 # XXX: should also check that they don't do weird things (like on arm)
11848 # comment) doesn't fault on unaligned accesses, but doesn't
11849 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11851 # for whatever reason, the test program doesn't work
11852 # (this has been claimed to be the case for several of those
11853 # CPUs - I don't know what the problem is; the problem
11854 # was reported as "the test program dumps core" for SuperH,
11855 # but that's what the test program is *supposed* to do -
11856 # it dumps core before it writes anything, so the test
11857 # for an empty output file should find an empty output
11858 # file and conclude that unaligned accesses don't work).
11860 # This run-time test won't work if you're cross-compiling, so
11861 # in order to support cross-compiling for a particular CPU,
11862 # we have to wire in the list of CPU types anyway, as far as
11863 # I know, so perhaps we should just have a set of CPUs on
11864 # which we know it doesn't work, a set of CPUs on which we
11865 # know it does work, and have the script just fail on other
11866 # cpu types and update it when such a failure occurs.
11868 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11869 ac_cv_lbl_unaligned_fail=yes
11873 cat >conftest.c <<EOF
11874 # include <sys/types.h>
11875 # include <sys/wait.h>
11876 # include <stdio.h>
11877 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11882 /* avoid "core dumped" message */
11888 pid = waitpid(pid, &status, 0);
11891 exit(!WIFEXITED(status));
11894 i = *(unsigned int *)&a[1];
11899 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11900 conftest.c $LIBS >/dev/null 2>&1
11901 if test ! -x conftest ; then
11902 ac_cv_lbl_unaligned_fail=yes
11904 ./conftest >conftest.out
11905 if test ! -s conftest.out ; then
11906 ac_cv_lbl_unaligned_fail=yes
11908 ac_cv_lbl_unaligned_fail=no
11911 rm -f -r conftest* core core.conftest
11916 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11917 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11918 if test $ac_cv_lbl_unaligned_fail = yes ; then
11920 cat >>confdefs.h <<\_ACEOF
11921 #define LBL_ALIGN 1
11927 { echo "$as_me:$LINENO: checking for h_errno" >&5
11928 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11929 if test "${ac_cv_var_h_errno+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 cat >conftest.$ac_ext <<_ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11939 # include <sys/types.h>
11940 # include <netdb.h>
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11953 *) ac_try_echo
=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1
>conftest.err
11960 cat conftest.err
>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && {
11963 test -z "$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11965 } && test -s conftest.
$ac_objext; then
11966 ac_cv_var_h_errno
=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.
$ac_ext >&5
11971 ac_cv_var_h_errno
=no
11974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11978 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11979 if test "$ac_cv_var_h_errno" = "yes"; then
11980 cat >>confdefs.h
<<\_ACEOF
11981 #define HAVE_H_ERRNO 1
11988 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
11989 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
11990 # Specify location for both includes and libraries.
11991 want_libcrypto
=youmama
11993 # Check whether --with-crypto was given.
11994 if test "${with_crypto+set}" = set; then
11995 withval
=$with_crypto;
11996 if test $withval = no
11999 { echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6; }
12001 elif test $withval = yes
12004 { echo "$as_me:$LINENO: result: yes" >&5
12005 echo "${ECHO_T}yes" >&6; }
12008 { echo "$as_me:$LINENO: result: yes" >&5
12009 echo "${ECHO_T}yes" >&6; }
12010 crypto_dir
=$withval
12016 # Use libcrypto if it's present, otherwise don't.
12018 want_libcrypto
=ifavailable
12019 { echo "$as_me:$LINENO: result: yes, if available" >&5
12020 echo "${ECHO_T}yes, if available" >&6; }
12024 if test "$want_libcrypto" != "no"; then
12025 ac_cv_ssleay_path
=no
12027 if test "x$crypto_dir" = x
; then
12029 # Location not specified; check the default locations.
12031 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
12032 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
12033 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
12034 if test "x${host_alias}" != x
; then
12035 dirs="/usr/${host_alias} $dirs"
12037 for dir
in $dirs; do
12040 # Find the last component of $libdir; it's not necessarily
12041 # "lib" - it might be "lib64" on, for example, x86-64
12044 # We assume the directory in which we're looking for
12045 # libcrypto has a subdirectory with that as its name.
12047 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
12050 # XXX - is there a better way to check if a given library is
12051 # in a given directory than checking each of the possible
12052 # shared library suffixes?
12054 # Are there any other suffixes we need to look for? Do we
12055 # have to worry about ".so.{version}"?
12057 # Or should we just look for "libcrypto.*"?
12059 if test -d "$dir/$tmplib" -a \
( -f "$dir/$tmplib/libcrypto.a" -o \
12060 -f "$dir/$tmplib/libcrypto.so" -o \
12061 -f "$dir/$tmplib/libcrypto.sl" -o \
12062 -f "$dir/$tmplib/libcrypto.dylib" \
); then
12063 ac_cv_ssleay_path
="$dir"
12067 # Make sure we have the headers as well.
12069 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
12070 incdir
="-I$dir/include"
12074 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12077 ac_cv_ssleay_path
=no
12081 if test "$ac_cv_ssleay_path" != no
; then
12082 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12083 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
12086 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
12087 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
12090 # Find the last component of $libdir; it's not necessarily
12091 # "lib" - it might be "lib64" on, for example, x86-64
12094 # We assume the directory in which we're looking for
12095 # libcrypto has a subdirectory with that as its name.
12097 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
12100 # XXX - is there a better way to check if a given library is
12101 # in a given directory than checking each of the possible
12102 # shared library suffixes?
12104 # Are there any other suffixes we need to look for? Do we
12105 # have to worry about ".so.{version}"?
12107 # Or should we just look for "libcrypto.*"?
12109 if test -d "$crypto_dir/$tmplib" -a \
( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
12110 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
12111 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
12112 -f "$crypto_dir/$tmplib/libcrypto.dylib" \
); then
12113 ac_cv_ssleay_path
="$crypto_dir"
12117 # Make sure we have the headers as well.
12119 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
12120 incdir
="-I$crypto_dir/include"
12123 if test "$ac_cv_ssleay_path" != no
; then
12124 { echo "$as_me:$LINENO: result: found" >&5
12125 echo "${ECHO_T}found" >&6; }
12128 if test "$ac_cv_ssleay_path" != no
; then
12129 V_INCLS
="$V_INCLS $incdir"
12130 if test "$dir" != "/usr"; then
12131 LDFLAGS
="-L$dir/lib $LDFLAGS"
12133 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
12134 LIBS
="$LIBS -lRSAglue"
12136 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
12137 LIBS
="$LIBS -lrsaref"
12140 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12141 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12142 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 ac_check_lib_save_LIBS
=$LIBS
12146 LIBS
="-lcrypto $LIBS"
12147 cat >conftest.
$ac_ext <<_ACEOF
12150 cat confdefs.h
>>conftest.
$ac_ext
12151 cat >>conftest.
$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12154 /* Override any GCC internal prototype to avoid an error.
12155 Use char because int might match the return type of a GCC
12156 builtin and then its argument prototype would still apply. */
12160 char DES_cbc_encrypt ();
12164 return DES_cbc_encrypt ();
12169 rm -f conftest.
$ac_objext conftest
$ac_exeext
12170 if { (ac_try
="$ac_link"
12171 case "(($ac_try" in
12172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12178 grep -v '^ *+' conftest.er1 >conftest.err
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && {
12183 test -z "$ac_c_werror_flag" ||
12184 test ! -s conftest.err
12185 } && test -s conftest$ac_exeext &&
12186 $as_test_x conftest$ac_exeext; then
12187 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_lib_crypto_DES_cbc_encrypt=no
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12200 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12201 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_LIBCRYPTO 1
12206 LIBS="-lcrypto $LIBS"
12211 CPPFLAGS="$CPPFLAGS $V_INCLS"
12213 for ac_header in openssl/evp.h
12215 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 ac_res=`eval echo '${'$as_ac_Header'}'`
12223 { echo "$as_me:$LINENO: result: $ac_res" >&5
12224 echo "${ECHO_T}$ac_res" >&6; }
12226 # Is the header compilable?
12227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 $ac_includes_default
12236 #include <$ac_header>
12238 rm -f conftest.$ac_objext
12239 if { (ac_try="$ac_compile"
12240 case "(($ac_try" in
12241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12242 *) ac_try_echo
=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_compile") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1
>conftest.err
12249 cat conftest.err
>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest.
$ac_objext; then
12255 ac_header_compiler
=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.
$ac_ext >&5
12260 ac_header_compiler
=no
12263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12265 echo "${ECHO_T}$ac_header_compiler" >&6; }
12267 # Is the header present?
12268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12270 cat >conftest.
$ac_ext <<_ACEOF
12273 cat confdefs.h
>>conftest.
$ac_ext
12274 cat >>conftest.
$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 #include <$ac_header>
12278 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12279 case "(($ac_try" in
12280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } >/dev/null && {
12291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12294 ac_header_preproc=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_header_preproc=no
12302 rm -f conftest.err conftest.$ac_ext
12303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12304 echo "${ECHO_T}$ac_header_preproc" >&6; }
12306 # So? What about this header?
12307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12313 ac_header_preproc=yes
12316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 eval "$as_ac_Header=\$ac_header_preproc"
12338 ac_res=`eval echo '${'$as_ac_Header'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340 echo "${ECHO_T}$ac_res" >&6; }
12343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12354 # Not found. Did the user explicitly ask for it?
12356 { echo "$as_me:$LINENO: result: not found" >&5
12357 echo "${ECHO_T}not found" >&6; }
12358 if test "$want_libcrypto" = yes; then
12359 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
12360 echo "$as_me: error: SSLeay not found" >&2;}
12361 { (exit 1); exit 1; }; }
12366 if test "$missing_includes" = "yes"; then
12367 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
12368 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
12380 # Find a good install program. We prefer a C program (faster),
12381 # so one script is as good as another. But avoid the broken or
12382 # incompatible versions:
12383 # SysV /etc/install, /usr/sbin/install
12384 # SunOS /usr/etc/install
12385 # IRIX /sbin/install
12387 # AmigaOS /C/install, which installs bootblocks on floppy discs
12388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12391 # OS/2's system install, which has a completely different semantic
12392 # ./install, which can be erroneously created by make from ./install.sh.
12393 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12394 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12395 if test -z "$INSTALL"; then
12396 if test "${ac_cv_path_install+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 test -z "$as_dir" && as_dir=.
12404 # Account for people who put trailing slashes in PATH elements.
12406 ./ | .// | /cC/* | \
12407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12408 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12411 # OSF1 and SCO ODT 3.0 have their own names for install.
12412 # Don't use installbsd from OSF since it installs stuff as root
12414 for ac_prog in ginstall scoinst install; do
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12417 if test $ac_prog = install &&
12418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12419 # AIX install. It has an incompatible calling convention.
12421 elif test $ac_prog = install &&
12422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12423 # program-specific install script used by HP pwplus--don't use.
12426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12439 if test "${ac_cv_path_install+set}" = set; then
12440 INSTALL=$ac_cv_path_install
12442 # As a last resort, use the slow shell script. Don't cache a
12443 # value for INSTALL within a source directory, because that will
12444 # break other packages using the cache if that directory is
12445 # removed, or if the value is a relative name.
12446 INSTALL=$ac_install_sh
12449 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12450 echo "${ECHO_T}$INSTALL" >&6; }
12452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12453 # It thinks the first close brace ends the variable substitution.
12454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12461 ac_config_headers="$ac_config_headers config.h"
12464 ac_config_commands="$ac_config_commands default-1"
12466 ac_config_files="$ac_config_files Makefile tcpdump.1"
12468 cat >confcache <<\_ACEOF
12469 # This file is a shell script that caches the results of configure
12470 # tests run on this system so they can be shared between configure
12471 # scripts and configure runs, see configure's option --config-cache.
12472 # It is not useful on other systems. If it contains results you don't
12473 # want to keep, you may remove or edit it.
12475 # config.status only pays attention to the cache file if you give it
12476 # the --recheck option to rerun configure.
12478 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
12479 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12480 # following values.
12484 # The following way of writing the cache mishandles newlines in values,
12485 # but we know of no workaround that is simple, portable, and efficient.
12486 # So, we kill variables containing newlines.
12487 # Ultrix sh set writes to stderr and can't be redirected directly,
12488 # and sets the high bit in the cache file unless we assign to the vars.
12490 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12491 eval ac_val
=\$
$ac_var
12495 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12496 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12499 _ | IFS | as_nl
) ;; #(
12500 *) $as_unset $ac_var ;;
12506 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12507 *${as_nl}ac_space
=\
*)
12508 # `set' does not quote correctly, so add quotes (double-quote
12509 # substitution turns \\\\ into \\, and sed turns \\ into \).
12512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12515 # `set' quotes correctly as required by POSIX, so do not add quotes.
12516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12527 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12529 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12530 if test -w "$cache_file"; then
12531 test "x$cache_file" != "x/dev/null" &&
12532 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12533 echo "$as_me: updating cache $cache_file" >&6;}
12534 cat confcache
>$cache_file
12536 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12537 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12542 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12543 # Let make expand exec_prefix.
12544 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12546 DEFS
=-DHAVE_CONFIG_H
12550 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12551 # 1. Remove the extension, and $U if already installed.
12552 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12553 ac_i
=`echo "$ac_i" | sed "$ac_script"`
12554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12555 # will be set to the directory where LIBOBJS objects are built.
12556 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12557 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12559 LIBOBJS
=$ac_libobjs
12561 LTLIBOBJS
=$ac_ltlibobjs
12565 : ${CONFIG_STATUS=./config.status}
12566 ac_clean_files_save
=$ac_clean_files
12567 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12570 cat >$CONFIG_STATUS <<_ACEOF
12572 # Generated by $as_me.
12573 # Run this file to recreate the current configuration.
12574 # Compiler output produced by configure, useful for debugging
12575 # configure, is in config.log if it exists.
12578 ac_cs_recheck=false
12580 SHELL=\${CONFIG_SHELL-$SHELL}
12583 cat >>$CONFIG_STATUS <<\_ACEOF
12584 ## --------------------- ##
12585 ## M4sh Initialization. ##
12586 ## --------------------- ##
12588 # Be more Bourne compatible
12589 DUALCASE
=1; export DUALCASE
# for MKS sh
12590 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12593 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12594 # is contrary to our usage. Disable this feature.
12595 alias -g '${1+"$@"}'='"$@"'
12596 setopt NO_GLOB_SUBST
12598 case `(set -o) 2>/dev/null` in
12599 *posix
*) set -o posix
;;
12608 # Avoid depending upon Character Ranges.
12609 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12610 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12611 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12612 as_cr_digits
='0123456789'
12613 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12615 # The user is always right.
12616 if test "${PATH_SEPARATOR+set}" != set; then
12617 echo "#! /bin/sh" >conf$$.sh
12618 echo "exit 0" >>conf$$.sh
12620 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12628 # Support unset when possible.
12629 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12637 # We need space, tab and new line, in precisely that order. Quoting is
12638 # there to prevent editors from complaining about space-tab.
12639 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12640 # splitting by setting IFS to empty value.)
12645 # Find who we are. Look in the path if we contain no directory separator.
12647 *[\\/]* ) as_myself
=$0 ;;
12648 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12649 for as_dir
in $PATH
12652 test -z "$as_dir" && as_dir
=.
12653 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12659 # We did not find ourselves, most probably we were run as `sh COMMAND'
12660 # in which case we are not to be found in the path.
12661 if test "x$as_myself" = x
; then
12664 if test ! -f "$as_myself"; then
12665 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12666 { (exit 1); exit 1; }
12669 # Work around bugs in pre-3.0 UWIN ksh.
12670 for as_var
in ENV MAIL MAILPATH
12671 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12679 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12680 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12681 LC_TELEPHONE LC_TIME
12683 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12684 eval $as_var=C
; export $as_var
12686 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12690 # Required to use basename.
12691 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12692 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12698 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12699 as_basename
=basename
12705 # Name of the executable.
12706 as_me
=`$as_basename -- "$0" ||
12707 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12708 X"$0" : 'X\(//\)$' \| \
12709 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12711 sed '/^.*\/\([^/][^/]*\)\/*$/{
12730 as_lineno_1
=$LINENO
12731 as_lineno_2
=$LINENO
12732 test "x$as_lineno_1" != "x$as_lineno_2" &&
12733 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12736 # uniformly replaced by the line number. The first 'sed' inserts a
12737 # line-number line after each line using $LINENO; the second 'sed'
12738 # does the real work. The second script uses 'N' to pair each
12739 # line-number line with the line containing $LINENO, and appends
12740 # trailing '-' during substitution so that $LINENO is not a special
12741 # case at line end.
12742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12743 # scripts with optimization help from Paolo Bonzini. Blame Lee
12744 # E. McMahon (1931-1989) for sed's syntax. :-)
12756 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12759 ' >$as_me.lineno
&&
12760 chmod +x
"$as_me.lineno" ||
12761 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12762 { (exit 1); exit 1; }; }
12764 # Don't try to exec as it changes $[0], causing all sort of problems
12765 # (the dirname of $[0] is not the place where we might find the
12766 # original and so on. Autoconf is especially sensitive to this).
12767 .
"./$as_me.lineno"
12768 # Exit status is that of the last command.
12773 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12779 ECHO_C
= ECHO_N
= ECHO_T
=
12780 case `echo -n x` in
12782 case `echo 'x\c'` in
12783 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12790 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12791 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12797 rm -f conf$$ conf$$.exe conf$$.
file
12798 if test -d conf$$.dir
; then
12799 rm -f conf$$.dir
/conf$$.
file
12805 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12807 # ... but there are two gotchas:
12808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12810 # In both cases, we have to default to `cp -p'.
12811 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12813 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12818 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12819 rmdir conf$$.dir
2>/dev
/null
12821 if mkdir
-p .
2>/dev
/null
; then
12824 test -d .
/-p && rmdir .
/-p
12828 if test -x / >/dev
/null
2>&1; then
12829 as_test_x
='test -x'
12831 if ls -dL / >/dev
/null
2>&1; then
12838 if test -d "$1"; then
12844 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12845 ???[sx]*):;;*)false;;esac;fi
12849 as_executable_p
=$as_test_x
12851 # Sed expression to map a string onto a valid CPP name.
12852 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12854 # Sed expression to map a string onto a valid variable name.
12855 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12860 # Save the log message, to keep $[0] and so on meaningful, and to
12861 # report actual input values of CONFIG_FILES etc. instead of their
12862 # values after options handling.
12864 This file was extended by $as_me, which was
12865 generated by GNU Autoconf 2.61. Invocation command line was
12867 CONFIG_FILES = $CONFIG_FILES
12868 CONFIG_HEADERS = $CONFIG_HEADERS
12869 CONFIG_LINKS = $CONFIG_LINKS
12870 CONFIG_COMMANDS = $CONFIG_COMMANDS
12873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12878 cat >>$CONFIG_STATUS <<_ACEOF
12879 # Files that config.status was made for.
12880 config_files="$ac_config_files"
12881 config_headers="$ac_config_headers"
12882 config_commands="$ac_config_commands"
12886 cat >>$CONFIG_STATUS <<\_ACEOF
12888 \`$as_me' instantiates files from templates according to the
12889 current configuration.
12891 Usage: $0 [OPTIONS] [FILE]...
12893 -h, --help print this help, then exit
12894 -V, --version print version number and configuration settings, then exit
12895 -q, --quiet do not print progress messages
12896 -d, --debug don't remove temporary files
12897 --recheck update $as_me by reconfiguring in the same conditions
12898 --file=FILE[:TEMPLATE]
12899 instantiate the configuration file FILE
12900 --header=FILE[:TEMPLATE]
12901 instantiate the configuration header FILE
12903 Configuration files:
12906 Configuration headers:
12909 Configuration commands:
12912 Report bugs to <bug-autoconf@gnu.org>."
12915 cat >>$CONFIG_STATUS <<_ACEOF
12918 configured by $0, generated by GNU Autoconf 2.61,
12919 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12921 Copyright (C) 2006 Free Software Foundation, Inc.
12922 This config.status script is free software; the Free Software Foundation
12923 gives unlimited permission to copy, distribute and modify it."
12930 cat >>$CONFIG_STATUS <<\_ACEOF
12931 # If no file are specified by the user, then we need to provide default
12932 # value. By we need to know if files were specified by the user.
12938 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12939 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12950 # Handling of the options.
12951 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12953 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12954 echo "$ac_cs_version"; exit ;;
12955 --debug |
--debu |
--deb |
--de |
--d |
-d )
12957 --file |
--fil |
--fi |
--f )
12959 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12960 ac_need_defaults
=false
;;
12961 --header |
--heade |
--head |
--hea )
12963 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12964 ac_need_defaults
=false
;;
12966 # Conflict between --help and --header
12967 { echo "$as_me: error: ambiguous option: $1
12968 Try \`$0 --help' for more information." >&2
12969 { (exit 1); exit 1; }; };;
12970 --help |
--hel |
-h )
12971 echo "$ac_cs_usage"; exit ;;
12972 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12973 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12976 # This is an error.
12977 -*) { echo "$as_me: error: unrecognized option: $1
12978 Try \`$0 --help' for more information." >&2
12979 { (exit 1); exit 1; }; } ;;
12981 *) ac_config_targets
="$ac_config_targets $1"
12982 ac_need_defaults
=false
;;
12988 ac_configure_extra_args
=
12990 if $ac_cs_silent; then
12992 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12996 cat >>$CONFIG_STATUS <<_ACEOF
12997 if \$ac_cs_recheck; then
12998 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12999 CONFIG_SHELL=$SHELL
13000 export CONFIG_SHELL
13001 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13005 cat >>$CONFIG_STATUS <<\_ACEOF
13009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13010 ## Running $as_me. ##
13016 cat >>$CONFIG_STATUS <<_ACEOF
13024 cat >>$CONFIG_STATUS <<\_ACEOF
13026 # Handling of arguments.
13027 for ac_config_target
in $ac_config_targets
13029 case $ac_config_target in
13030 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13031 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13032 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13033 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
13035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13037 { (exit 1); exit 1; }; };;
13042 # If the user did not use the arguments to specify the items to instantiate,
13043 # then the envvar interface is used. Set only those that are not.
13044 # We use the long form for the default assignment because of an extremely
13045 # bizarre bug on SunOS 4.1.3.
13046 if $ac_need_defaults; then
13047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13052 # Have a temporary directory for convenience. Make it in the build tree
13053 # simply because there is no reason against having it here, and in addition,
13054 # creating and moving files from /tmp can sometimes cause problems.
13055 # Hook for its removal unless debugging.
13056 # Note that there is a small window in which the directory will not be cleaned:
13057 # after its creation but before its name has been assigned to `$tmp'.
13061 trap 'exit_status=$?
13062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13064 trap '{ (exit 1); exit 1; }' 1 2 13 15
13066 # Create a (secure) tmp directory for tmp files.
13069 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13070 test -n "$tmp" && test -d "$tmp"
13073 tmp
=.
/conf$$
-$RANDOM
13074 (umask 077 && mkdir
"$tmp")
13077 echo "$me: cannot create a temporary directory in ." >&2
13078 { (exit 1); exit 1; }
13082 # Set up the sed scripts for CONFIG_FILES section.
13085 # No need to generate the scripts if there are no CONFIG_FILES.
13086 # This happens for instance when ./config.status config.h
13087 if test -n "$CONFIG_FILES"; then
13094 for ac_last_try
in false false false false false
:; do
13095 cat >conf$
$subs.
sed <<_ACEOF
13096 SHELL!$SHELL$ac_delim
13097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13103 exec_prefix!$exec_prefix$ac_delim
13104 prefix!$prefix$ac_delim
13105 program_transform_name!$program_transform_name$ac_delim
13106 bindir!$bindir$ac_delim
13107 sbindir!$sbindir$ac_delim
13108 libexecdir!$libexecdir$ac_delim
13109 datarootdir!$datarootdir$ac_delim
13110 datadir!$datadir$ac_delim
13111 sysconfdir!$sysconfdir$ac_delim
13112 sharedstatedir!$sharedstatedir$ac_delim
13113 localstatedir!$localstatedir$ac_delim
13114 includedir!$includedir$ac_delim
13115 oldincludedir!$oldincludedir$ac_delim
13116 docdir!$docdir$ac_delim
13117 infodir!$infodir$ac_delim
13118 htmldir!$htmldir$ac_delim
13119 dvidir!$dvidir$ac_delim
13120 pdfdir!$pdfdir$ac_delim
13121 psdir!$psdir$ac_delim
13122 libdir!$libdir$ac_delim
13123 localedir!$localedir$ac_delim
13124 mandir!$mandir$ac_delim
13125 DEFS!$DEFS$ac_delim
13126 ECHO_C!$ECHO_C$ac_delim
13127 ECHO_N!$ECHO_N$ac_delim
13128 ECHO_T!$ECHO_T$ac_delim
13129 LIBS!$LIBS$ac_delim
13130 build_alias!$build_alias$ac_delim
13131 host_alias!$host_alias$ac_delim
13132 target_alias!$target_alias$ac_delim
13133 build!$build$ac_delim
13134 build_cpu!$build_cpu$ac_delim
13135 build_vendor!$build_vendor$ac_delim
13136 build_os!$build_os$ac_delim
13137 host!$host$ac_delim
13138 host_cpu!$host_cpu$ac_delim
13139 host_vendor!$host_vendor$ac_delim
13140 host_os!$host_os$ac_delim
13141 SHLICC2!$SHLICC2$ac_delim
13143 CFLAGS!$CFLAGS$ac_delim
13144 LDFLAGS!$LDFLAGS$ac_delim
13145 CPPFLAGS!$CPPFLAGS$ac_delim
13146 ac_ct_CC!$ac_ct_CC$ac_delim
13147 EXEEXT!$EXEEXT$ac_delim
13148 OBJEXT!$OBJEXT$ac_delim
13150 GREP!$GREP$ac_delim
13151 EGREP!$EGREP$ac_delim
13152 LIBOBJS!$LIBOBJS$ac_delim
13153 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13154 RANLIB!$RANLIB$ac_delim
13155 V_CCOPT!$V_CCOPT$ac_delim
13156 V_DEFS!$V_DEFS$ac_delim
13157 V_GROUP!$V_GROUP$ac_delim
13158 V_INCLS!$V_INCLS$ac_delim
13159 V_PCAPDEP!$V_PCAPDEP$ac_delim
13160 LOCALSRC!$LOCALSRC$ac_delim
13161 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13162 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13163 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13164 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13165 INSTALL_DATA!$INSTALL_DATA$ac_delim
13166 LTLIBOBJS!$LTLIBOBJS$ac_delim
13169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
13171 elif $ac_last_try; then
13172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13174 { (exit 1); exit 1; }; }
13176 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13180 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13181 if test -n "$ac_eof"; then
13182 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13183 ac_eof
=`expr $ac_eof + 1`
13186 cat >>$CONFIG_STATUS <<_ACEOF
13187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13192 s/^/s,@/; s/!/@,|#_!!_#|/
13195 s/'"$ac_delim"'$/,g/; t
13197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13198 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13199 rm -f conf$
$subs.
sed
13200 cat >>$CONFIG_STATUS <<_ACEOF
13207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13209 # trailing colons and then remove the whole line if VPATH becomes empty
13210 # (actually we leave an empty line to preserve line numbers).
13211 if test "x$srcdir" = x.
; then
13212 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13213 s/:*\$(srcdir):*/:/
13214 s/:*\${srcdir}:*/:/
13216 s/^\([^=]*=[ ]*\):*/\1/
13222 cat >>$CONFIG_STATUS <<\_ACEOF
13223 fi # test -n "$CONFIG_FILES"
13226 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13229 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13231 case $ac_mode$ac_tag in
13233 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13234 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13235 { (exit 1); exit 1; }; };;
13236 :[FH
]-) ac_tag
=-:-;;
13237 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13254 -) ac_f
="$tmp/stdin";;
13255 *) # Look for the file first in the build tree, then in the source tree
13256 # (if the path is not absolute). The absolute path cannot be DOS-style,
13257 # because $ac_f cannot contain `:'.
13261 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13263 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13264 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13265 { (exit 1); exit 1; }; };;
13267 ac_file_inputs
="$ac_file_inputs $ac_f"
13270 # Let's still pretend it is `configure' which instantiates (i.e., don't
13271 # use $as_me), people would be surprised to read:
13272 # /* config.h. Generated by config.status. */
13273 configure_input
="Generated from "`IFS=:
13274 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13275 if test x
"$ac_file" != x-
; then
13276 configure_input
="$ac_file. $configure_input"
13277 { echo "$as_me:$LINENO: creating $ac_file" >&5
13278 echo "$as_me: creating $ac_file" >&6;}
13282 *:-:* |
*:-) cat >"$tmp/stdin";;
13287 ac_dir
=`$as_dirname -- "$ac_file" ||
13288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13289 X"$ac_file" : 'X\(//\)[^/]' \| \
13290 X"$ac_file" : 'X\(//\)$' \| \
13291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13297 /^X\(\/\/\)[^/].*/{
13312 -*) as_dir
=.
/$as_dir;;
13314 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13318 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13319 *) as_qdir
=$as_dir;;
13321 as_dirs
="'$as_qdir' $as_dirs"
13322 as_dir
=`$as_dirname -- "$as_dir" ||
13323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13324 X"$as_dir" : 'X\(//\)[^/]' \| \
13325 X"$as_dir" : 'X\(//\)$' \| \
13326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13332 /^X\(\/\/\)[^/].*/{
13345 test -d "$as_dir" && break
13347 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13348 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13349 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13350 { (exit 1); exit 1; }; }; }
13354 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13356 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13357 # A ".." for each directory in $ac_dir_suffix.
13358 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13359 case $ac_top_builddir_sub in
13360 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13361 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13364 ac_abs_top_builddir
=$ac_pwd
13365 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13366 # for backward compatibility:
13367 ac_top_builddir
=$ac_top_build_prefix
13370 .
) # We are building in place.
13372 ac_top_srcdir
=$ac_top_builddir_sub
13373 ac_abs_top_srcdir
=$ac_pwd ;;
13374 [\\/]* | ?
:[\\/]* ) # Absolute name.
13375 ac_srcdir
=$srcdir$ac_dir_suffix;
13376 ac_top_srcdir
=$srcdir
13377 ac_abs_top_srcdir
=$srcdir ;;
13378 *) # Relative name.
13379 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13380 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13381 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13383 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13393 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13394 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13398 cat >>$CONFIG_STATUS <<\_ACEOF
13399 # If the template does not know about datarootdir, expand it.
13400 # FIXME: This hack should be removed a few years after 2.60.
13401 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13403 case `sed -n '/datarootdir/ {
13412 ' $ac_file_inputs` in
13413 *datarootdir
*) ac_datarootdir_seen
=yes;;
13414 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13415 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13416 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13418 cat >>$CONFIG_STATUS <<_ACEOF
13419 ac_datarootdir_hack='
13420 s&@datadir@&$datadir&g
13421 s&@docdir@&$docdir&g
13422 s&@infodir@&$infodir&g
13423 s&@localedir@&$localedir&g
13424 s&@mandir@&$mandir&g
13425 s&\\\${datarootdir}&$datarootdir&g' ;;
13429 # Neutralize VPATH when `$srcdir' = `.'.
13430 # Shell code in configure.ac might set extrasub.
13431 # FIXME: do we really want to maintain this feature?
13432 cat >>$CONFIG_STATUS <<_ACEOF
13436 cat >>$CONFIG_STATUS <<\_ACEOF
13438 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13439 s
&@configure_input@
&$configure_input&;t t
13440 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13441 s
&@srcdir@
&$ac_srcdir&;t t
13442 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13443 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13444 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13445 s
&@builddir@
&$ac_builddir&;t t
13446 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13447 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13448 s
&@INSTALL@
&$ac_INSTALL&;t t
13449 $ac_datarootdir_hack
13450 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
13452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13453 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13455 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13456 which seems to be undefined. Please make sure it is defined." >&5
13457 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13458 which seems to be undefined. Please make sure it is defined." >&2;}
13462 -) cat "$tmp/out"; rm -f "$tmp/out";;
13463 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13472 # Transform confdefs.h into a sed script `conftest.defines', that
13473 # substitutes the proper values into config.h.in to produce config.h.
13474 rm -f conftest.defines conftest.
tail
13475 # First, append a space to every undef/define line, to ease matching.
13476 echo 's/$/ /' >conftest.defines
13477 # Then, protect against being on the right side of a sed subst, or in
13478 # an unquoted here document, in config.status. If some macros were
13479 # called several times there might be several #defines for the same
13480 # symbol, which is useless. But do not sort them, since the last
13481 # AC_DEFINE must be honored.
13482 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13483 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13484 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13485 # PARAMS is the parameter list in the macro definition--in most cases, it's
13486 # just an empty string.
13487 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13488 ac_dB
='\\)[ (].*,\\1define\\2'
13496 s/^[ ]*#[ ]*define[ ][ ]*//
13501 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13502 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13503 ' >>conftest.defines
13505 # Remove the space that was appended to ease matching.
13506 # Then replace #undef with comments. This is necessary, for
13507 # example, in the case of _POSIX_SOURCE, which is predefined and required
13508 # on some systems where configure will not decide to define it.
13509 # (The regexp can be short, since the line contains either #define or #undef.)
13511 s,^[ #]*u.*,/* & */,' >>conftest.defines
13513 # Break up conftest.defines:
13514 ac_max_sed_lines
=50
13516 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13517 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13518 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13520 ac_in
='$ac_file_inputs'
13521 ac_out
='"$tmp/out1"'
13522 ac_nxt
='"$tmp/out2"'
13526 # Write a here document:
13527 cat >>$CONFIG_STATUS <<_ACEOF
13528 # First, check the format of the line:
13529 cat >"\$tmp/defines.sed" <<\\CEOF
13530 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13531 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13535 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13537 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13538 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13539 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13540 grep . conftest.
tail >/dev
/null ||
break
13541 rm -f conftest.defines
13542 mv conftest.
tail conftest.defines
13544 rm -f conftest.defines conftest.
tail
13546 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13547 cat >>$CONFIG_STATUS <<\_ACEOF
13548 if test x
"$ac_file" != x-
; then
13549 echo "/* $configure_input */" >"$tmp/config.h"
13550 cat "$ac_result" >>"$tmp/config.h"
13551 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13552 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13553 echo "$as_me: $ac_file is unchanged" >&6;}
13556 mv "$tmp/config.h" $ac_file
13559 echo "/* $configure_input */"
13565 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13566 echo "$as_me: executing $ac_file commands" >&6;}
13571 case $ac_file$ac_mode in
13572 "default-1":C
) if test -f .devel
; then
13573 echo timestamp
> stamp-h
13574 cat Makefile-devel-adds
>> Makefile
13582 { (exit 0); exit 0; }
13584 chmod +x
$CONFIG_STATUS
13585 ac_clean_files
=$ac_clean_files_save
13588 # configure is writing to config.log, and then calls config.status.
13589 # config.status does its own redirection, appending to config.log.
13590 # Unfortunately, on DOS this fails, as config.log is still kept open
13591 # by configure, so config.status won't be able to write to it; its
13592 # output is simply discarded. So we exec the FD to /dev/null,
13593 # effectively closing config.log, so it can be properly (re)opened and
13594 # appended to by config.status. When coming back to configure, we
13595 # need to make the FD available again.
13596 if test "$no_create" != yes; then
13598 ac_config_status_args
=
13599 test "$silent" = yes &&
13600 ac_config_status_args
="$ac_config_status_args --quiet"
13602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13605 # would make configure fail if this is the last instruction.
13606 $ac_cs_success ||
{ (exit 1); exit 1; }